-
Notifications
You must be signed in to change notification settings - Fork 546
/
Copy pathEntityConstants.js
40 lines (35 loc) · 1.06 KB
/
EntityConstants.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// We cannot use TS types here because it's used during build. Types for these things are still inferred.
export const Type = Object.freeze({
Element: "ELEMENT_TYPE",
ListElement: "LIST_ELEMENT_TYPE",
DataTransfer: "DATA_TRANSFER_TYPE",
Aggregated: "AGGREGATED_TYPE",
BlobElement: "BLOB_ELEMENT_TYPE",
})
export const Cardinality = Object.freeze({
ZeroOrOne: "ZeroOrOne",
Any: "Any",
One: "One",
})
export const AssociationType = Object.freeze({
ElementAssociation: "ELEMENT_ASSOCIATION",
ListAssociation: "LIST_ASSOCIATION",
ListElementAssociationGenerated: "LIST_ELEMENT_ASSOCIATION_GENERATED",
Aggregation: "AGGREGATION",
BlobElementAssociation: "BLOB_ELEMENT_ASSOCIATION",
ListElementAssociationCustom: "LIST_ELEMENT_ASSOCIATION_CUSTOM",
})
export const ValueType = Object.freeze({
String: "String",
Number: "Number",
Bytes: "Bytes",
Date: "Date",
Boolean: "Boolean",
GeneratedId: "GeneratedId",
CustomId: "CustomId",
CompressedString: "CompressedString",
})
export const ResourceType = Object.freeze({
Persistence: "Persistence",
Service: "Service",
})