Skip to content

Commit c4e5e13

Browse files
flomillotFranckLecuyer
authored andcommitted
feat: add optional references field to ElementAttributes (#1246)
1 parent c2d80d8 commit c4e5e13

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/utils/types/types.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,17 @@ export enum ElementStatus {
1515
DELETING = 'DELETING',
1616
}
1717

18+
export enum ReferenceType {
19+
STUDY_NODE = 'STUDY_NODE',
20+
NETWORK_MODIFICATION = 'NETWORK_MODIFICATION',
21+
DIRECTORY_ELEMENT = 'DIRECTORY_ELEMENT',
22+
}
23+
24+
export type ReferenceAttributes = {
25+
referenceId: UUID;
26+
referenceType: ReferenceType;
27+
};
28+
1829
export type ElementAttributes = {
1930
elementUuid: UUID;
2031
elementName: string;
@@ -44,6 +55,7 @@ export type ElementAttributes = {
4455
subtype?: string;
4556
// only uploading element have this field
4657
id?: string;
58+
references?: ReferenceAttributes[];
4759
};
4860

4961
export type Option =

0 commit comments

Comments
 (0)