-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
709 additions
and
777 deletions.
There are no files selected for viewing
15 changes: 12 additions & 3 deletions
15
judo-ui-typescript-rest-api/src/main/resources/common/JudoIdentifiable.ts.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
/** | ||
* Utility Interface to use in places where we are not interested in a Stored object's data, only | ||
* it's `__signedIdentifier`. | ||
* Utility interface used for | ||
* - mapped elements received from the backend | ||
* - ui unmapped element discrimination which is mandatory in case an element is inside an iterable visual element such as tables. | ||
*/ | ||
export interface JudoIdentifiable<T> { | ||
export interface JudoTechnicalIdentifiable { | ||
__identifier?: string; | ||
} | ||
|
||
/** | ||
* Utility Interface to use in places where we are not interested in a Stored object's data, only | ||
* it's `__signedIdentifier`. This identifier may change on the backend based on what operations are triggered on it, | ||
* or it's containing parent. | ||
*/ | ||
export interface JudoIdentifiable<T> extends JudoTechnicalIdentifiable { | ||
__signedIdentifier: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
judo-ui-typescript-rest-api/src/main/resources/model/class.ts.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.