@api-client/core 0.14.0 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/src/amf/AmfTypes.d.ts +1 -1
- package/build/src/amf/AmfTypes.js +1 -1
- package/build/src/amf/AmfTypes.js.map +1 -1
- package/build/src/amf/Utils.d.ts +0 -6
- package/build/src/amf/Utils.d.ts.map +1 -1
- package/build/src/amf/Utils.js +0 -14
- package/build/src/amf/Utils.js.map +1 -1
- package/build/src/browser.d.ts +1 -0
- package/build/src/browser.d.ts.map +1 -1
- package/build/src/browser.js +1 -0
- package/build/src/browser.js.map +1 -1
- package/build/src/index.d.ts +1 -0
- package/build/src/index.d.ts.map +1 -1
- package/build/src/index.js +1 -0
- package/build/src/index.js.map +1 -1
- package/build/src/legacy.d.ts +0 -8
- package/build/src/legacy.d.ts.map +1 -1
- package/build/src/legacy.js +0 -9
- package/build/src/legacy.js.map +1 -1
- package/build/src/modeling/Bindings.d.ts +1 -1
- package/build/src/modeling/Bindings.js.map +1 -1
- package/build/src/modeling/DataDomain.js +2 -2
- package/build/src/modeling/DataDomain.js.map +1 -1
- package/build/src/modeling/DataFormat.d.ts +0 -40
- package/build/src/modeling/DataFormat.d.ts.map +1 -1
- package/build/src/modeling/DataFormat.js +0 -27
- package/build/src/modeling/DataFormat.js.map +1 -1
- package/build/src/modeling/DomainAssociation.d.ts +28 -0
- package/build/src/modeling/DomainAssociation.d.ts.map +1 -1
- package/build/src/modeling/DomainAssociation.js +73 -4
- package/build/src/modeling/DomainAssociation.js.map +1 -1
- package/build/src/modeling/DomainEntity.d.ts +25 -9
- package/build/src/modeling/DomainEntity.d.ts.map +1 -1
- package/build/src/modeling/DomainEntity.js +65 -21
- package/build/src/modeling/DomainEntity.js.map +1 -1
- package/build/src/modeling/DomainFile.d.ts +1 -1
- package/build/src/modeling/DomainFile.js +1 -1
- package/build/src/modeling/DomainFile.js.map +1 -1
- package/build/src/modeling/DomainImpactAnalysis.d.ts +1 -1
- package/build/src/modeling/DomainImpactAnalysis.d.ts.map +1 -1
- package/build/src/modeling/DomainImpactAnalysis.js +3 -3
- package/build/src/modeling/DomainImpactAnalysis.js.map +1 -1
- package/build/src/modeling/DomainModel.d.ts +2 -2
- package/build/src/modeling/DomainModel.js +2 -2
- package/build/src/modeling/DomainModel.js.map +1 -1
- package/build/src/modeling/DomainProperty.d.ts +28 -12
- package/build/src/modeling/DomainProperty.d.ts.map +1 -1
- package/build/src/modeling/DomainProperty.js +61 -26
- package/build/src/modeling/DomainProperty.js.map +1 -1
- package/build/src/modeling/Semantics.d.ts +109 -0
- package/build/src/modeling/Semantics.d.ts.map +1 -0
- package/build/src/modeling/Semantics.js +97 -0
- package/build/src/modeling/Semantics.js.map +1 -0
- package/build/src/models/kinds.d.ts +0 -24
- package/build/src/models/kinds.d.ts.map +1 -1
- package/build/src/models/kinds.js +0 -24
- package/build/src/models/kinds.js.map +1 -1
- package/build/src/models/store/data_catalog.d.ts +1 -1
- package/build/src/models/store/data_catalog.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/data/models/example-generator-api.json +11 -11
- package/package.json +1 -1
- package/src/amf/AmfTypes.ts +1 -1
- package/src/amf/Utils.ts +0 -15
- package/src/modeling/Bindings.ts +1 -1
- package/src/modeling/DataDomain.ts +2 -2
- package/src/modeling/DataFormat.ts +0 -48
- package/src/modeling/DomainAssociation.ts +66 -3
- package/src/modeling/DomainEntity.ts +56 -17
- package/src/modeling/DomainFile.ts +1 -1
- package/src/modeling/DomainImpactAnalysis.ts +3 -3
- package/src/modeling/DomainModel.ts +2 -2
- package/src/modeling/DomainProperty.ts +60 -21
- package/src/modeling/Semantics.ts +178 -0
- package/src/modeling/graph.md +14 -14
- package/src/modeling/readme.md +29 -29
- package/src/models/kinds.ts +0 -25
- package/src/models/store/data_catalog.ts +1 -1
- package/tests/unit/modeling/data_domain_change_observers.spec.ts +11 -10
- package/tests/unit/modeling/data_domain_entities.spec.ts +129 -1
- package/tests/unit/modeling/data_domain_property.spec.ts +1 -1
- package/tests/unit/modeling/domain_asociation.spec.ts +177 -0
- package/tests/unit/modeling/domain_entity.spec.ts +27 -26
- package/tests/unit/modeling/domain_entity_example_generator_json.spec.ts +11 -11
- package/tests/unit/modeling/domain_entity_example_generator_xml.spec.ts +10 -10
- package/tests/unit/modeling/{domain.property.spec.ts → domain_property.spec.ts} +139 -23
- package/build/src/amf/AmfShapeGenerator.d.ts +0 -103
- package/build/src/amf/AmfShapeGenerator.d.ts.map +0 -1
- package/build/src/amf/AmfShapeGenerator.js +0 -416
- package/build/src/amf/AmfShapeGenerator.js.map +0 -1
- package/build/src/modeling/legacy/DataAssociation.d.ts +0 -284
- package/build/src/modeling/legacy/DataAssociation.d.ts.map +0 -1
- package/build/src/modeling/legacy/DataAssociation.js +0 -443
- package/build/src/modeling/legacy/DataAssociation.js.map +0 -1
- package/build/src/modeling/legacy/DataEntity.d.ts +0 -358
- package/build/src/modeling/legacy/DataEntity.d.ts.map +0 -1
- package/build/src/modeling/legacy/DataEntity.js +0 -855
- package/build/src/modeling/legacy/DataEntity.js.map +0 -1
- package/build/src/modeling/legacy/DataEntityBuilder.d.ts +0 -162
- package/build/src/modeling/legacy/DataEntityBuilder.d.ts.map +0 -1
- package/build/src/modeling/legacy/DataEntityBuilder.js +0 -221
- package/build/src/modeling/legacy/DataEntityBuilder.js.map +0 -1
- package/build/src/modeling/legacy/DataImpactAnalysis.d.ts +0 -298
- package/build/src/modeling/legacy/DataImpactAnalysis.d.ts.map +0 -1
- package/build/src/modeling/legacy/DataImpactAnalysis.js +0 -441
- package/build/src/modeling/legacy/DataImpactAnalysis.js.map +0 -1
- package/build/src/modeling/legacy/DataModel.d.ts +0 -99
- package/build/src/modeling/legacy/DataModel.d.ts.map +0 -1
- package/build/src/modeling/legacy/DataModel.js +0 -237
- package/build/src/modeling/legacy/DataModel.js.map +0 -1
- package/build/src/modeling/legacy/DataNamespace.d.ts +0 -340
- package/build/src/modeling/legacy/DataNamespace.d.ts.map +0 -1
- package/build/src/modeling/legacy/DataNamespace.js +0 -784
- package/build/src/modeling/legacy/DataNamespace.js.map +0 -1
- package/build/src/modeling/legacy/DataProperty.d.ts +0 -332
- package/build/src/modeling/legacy/DataProperty.d.ts.map +0 -1
- package/build/src/modeling/legacy/DataProperty.js +0 -415
- package/build/src/modeling/legacy/DataProperty.js.map +0 -1
- package/build/src/models/store/DataFile.d.ts +0 -29
- package/build/src/models/store/DataFile.d.ts.map +0 -1
- package/build/src/models/store/DataFile.js +0 -87
- package/build/src/models/store/DataFile.js.map +0 -1
- package/src/amf/AmfShapeGenerator.ts +0 -477
- package/src/modeling/legacy/DataAssociation.ts +0 -554
- package/src/modeling/legacy/DataEntity.ts +0 -1019
- package/src/modeling/legacy/DataEntityBuilder.ts +0 -236
- package/src/modeling/legacy/DataImpactAnalysis.ts +0 -530
- package/src/modeling/legacy/DataModel.ts +0 -276
- package/src/modeling/legacy/DataNamespace.ts +0 -929
- package/src/modeling/legacy/DataProperty.ts +0 -630
- package/src/models/store/DataFile.ts +0 -95
- package/tests/unit/modeling/legacy/amf_shape_generator.spec.ts +0 -1041
- package/tests/unit/modeling/legacy/data_association.spec.ts +0 -710
- package/tests/unit/modeling/legacy/data_entity.spec.ts +0 -2061
- package/tests/unit/modeling/legacy/data_entity_generator_json.spec.ts +0 -987
- package/tests/unit/modeling/legacy/data_entity_generator_xml.spec.ts +0 -1451
- package/tests/unit/modeling/legacy/data_model.spec.ts +0 -395
- package/tests/unit/modeling/legacy/data_namespace.spec.ts +0 -1312
- package/tests/unit/modeling/legacy/data_property.spec.ts +0 -887
- package/tests/unit/modeling/legacy/impact_analysis.spec.ts +0 -373
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import type { DomainPropertyType } from './DataFormat.js';
|
|
2
|
+
/**
|
|
3
|
+
* Defines the names for all available data semantics.
|
|
4
|
+
* Using a string enum makes it easy to add or remove semantics in a single place.
|
|
5
|
+
*/
|
|
6
|
+
export declare enum SemanticType {
|
|
7
|
+
/**
|
|
8
|
+
* Designates a Data Entity that represents users of the system.
|
|
9
|
+
*/
|
|
10
|
+
User = "https://apinow.app/semantics/entities/#User",
|
|
11
|
+
CreatedTimestamp = "https://apinow.app/semantics/properties/#CreatedTimestamp",
|
|
12
|
+
UpdatedTimestamp = "https://apinow.app/semantics/properties/#UpdatedTimestamp",
|
|
13
|
+
DeletedTimestamp = "https://apinow.app/semantics/properties/#DeletedTimestamp",
|
|
14
|
+
DeletedFlag = "https://apinow.app/semantics/properties/#DeletedFlag",
|
|
15
|
+
PublicUniqueName = "https://apinow.app/semantics/properties/#PublicUniqueName",
|
|
16
|
+
ResourceOwnerIdentifier = "https://apinow.app/semantics/associations/#ResourceOwnerIdentifier"
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Defines the scope at which a semantic can be applied.
|
|
20
|
+
*/
|
|
21
|
+
export declare enum SemanticScope {
|
|
22
|
+
Entity = "Entity",
|
|
23
|
+
Property = "Property",
|
|
24
|
+
Association = "Association"
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A base interface for all Data Semantics, containing common properties.
|
|
28
|
+
* A semantic is an annotation applied to a Data Entity, Property, or Association
|
|
29
|
+
* to provide additional context or constraints.
|
|
30
|
+
* This interface is extended by more specific semantic types.
|
|
31
|
+
*/
|
|
32
|
+
interface BaseDataSemantic {
|
|
33
|
+
/**
|
|
34
|
+
* A unique identifier for the semantic definition.
|
|
35
|
+
*/
|
|
36
|
+
id: SemanticType;
|
|
37
|
+
/**
|
|
38
|
+
* A human-readable name for the semantic.
|
|
39
|
+
*/
|
|
40
|
+
displayName: string;
|
|
41
|
+
/**
|
|
42
|
+
* A description of the semantic's purpose and impact.
|
|
43
|
+
*/
|
|
44
|
+
description: string;
|
|
45
|
+
/**
|
|
46
|
+
* Specifies whether the semantic applies to an Entity, Property, or Association.
|
|
47
|
+
*/
|
|
48
|
+
scope: SemanticScope;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Represents a semantic that can be applied to an entire Data Entity.
|
|
52
|
+
*/
|
|
53
|
+
export interface EntitySemantic extends BaseDataSemantic {
|
|
54
|
+
scope: SemanticScope.Entity;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Represents a semantic that can be applied to a single property.
|
|
58
|
+
*/
|
|
59
|
+
export interface PropertySemantic extends BaseDataSemantic {
|
|
60
|
+
scope: SemanticScope.Property;
|
|
61
|
+
/**
|
|
62
|
+
* Optional array of data types this semantic can be applied to.
|
|
63
|
+
* Enforces constraints, e.g., DeletedTimestamp on a DateTime property.
|
|
64
|
+
*/
|
|
65
|
+
applicableDataTypes?: DomainPropertyType[];
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Represents a semantic that can be applied to an association between entities.
|
|
69
|
+
*/
|
|
70
|
+
export interface AssociationSemantic extends BaseDataSemantic {
|
|
71
|
+
scope: SemanticScope.Association;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* A type guard to check if a semantic is an EntitySemantic.
|
|
75
|
+
*/
|
|
76
|
+
export declare const isEntitySemantic: (semantic: DataSemantic) => semantic is EntitySemantic;
|
|
77
|
+
/**
|
|
78
|
+
* A type guard to check if a semantic is a PropertySemantic.
|
|
79
|
+
*/
|
|
80
|
+
export declare const isPropertySemantic: (semantic: DataSemantic) => semantic is PropertySemantic;
|
|
81
|
+
/**
|
|
82
|
+
* A type guard to check if a semantic is a AssociationSemantic.
|
|
83
|
+
*/
|
|
84
|
+
export declare const isAssociationSemantic: (semantic: DataSemantic) => semantic is AssociationSemantic;
|
|
85
|
+
/**
|
|
86
|
+
* Union type for any kind of data semantic
|
|
87
|
+
*/
|
|
88
|
+
export type DataSemantic = EntitySemantic | PropertySemantic | AssociationSemantic;
|
|
89
|
+
/**
|
|
90
|
+
* A map to store the definitions of all available data semantics.
|
|
91
|
+
* This acts as a central registry for the application.
|
|
92
|
+
*/
|
|
93
|
+
export declare const DataSemantics: Record<SemanticType, DataSemantic>;
|
|
94
|
+
/**
|
|
95
|
+
* Represents the application of a data semantic to a specific
|
|
96
|
+
* entity or property within a user's data model.
|
|
97
|
+
*/
|
|
98
|
+
export interface AppliedDataSemantic {
|
|
99
|
+
/**
|
|
100
|
+
* The unique identifier of the semantic being applied.
|
|
101
|
+
*/
|
|
102
|
+
id: SemanticType;
|
|
103
|
+
/**
|
|
104
|
+
* Optional configuration or values specific to this application.
|
|
105
|
+
*/
|
|
106
|
+
config?: Record<string, unknown>;
|
|
107
|
+
}
|
|
108
|
+
export {};
|
|
109
|
+
//# sourceMappingURL=Semantics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Semantics.d.ts","sourceRoot":"","sources":["../../../src/modeling/Semantics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAEzD;;;GAGG;AACH,oBAAY,YAAY;IAEtB;;OAEG;IACH,IAAI,gDAAgD;IAGpD,gBAAgB,8DAA8D;IAC9E,gBAAgB,8DAA8D;IAC9E,gBAAgB,8DAA8D;IAC9E,WAAW,yDAAyD;IACpE,gBAAgB,8DAA8D;IAE9E,uBAAuB,uEAAuE;CAC/F;AAED;;GAEG;AACH,oBAAY,aAAa;IACvB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,WAAW,gBAAgB;CAC5B;AAED;;;;;GAKG;AACH,UAAU,gBAAgB;IACxB;;OAEG;IACH,EAAE,EAAE,YAAY,CAAA;IAChB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,KAAK,EAAE,aAAa,CAAA;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,gBAAgB;IACtD,KAAK,EAAE,aAAa,CAAC,MAAM,CAAA;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB;IACxD,KAAK,EAAE,aAAa,CAAC,QAAQ,CAAA;IAC7B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,kBAAkB,EAAE,CAAA;CAC3C;AAED;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB;IAC3D,KAAK,EAAE,aAAa,CAAC,WAAW,CAAA;CACjC;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,UAAU,YAAY,KAAG,QAAQ,IAAI,cAC7B,CAAA;AAEzC;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAI,UAAU,YAAY,KAAG,QAAQ,IAAI,gBAC7B,CAAA;AAE3C;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAAI,UAAU,YAAY,KAAG,QAAQ,IAAI,mBAC7B,CAAA;AAE9C;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,cAAc,GAAG,gBAAgB,GAAG,mBAAmB,CAAA;AAElF;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,YAAY,EAAE,YAAY,CAmD5D,CAAA;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,EAAE,EAAE,YAAY,CAAA;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACjC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defines the names for all available data semantics.
|
|
3
|
+
* Using a string enum makes it easy to add or remove semantics in a single place.
|
|
4
|
+
*/
|
|
5
|
+
export var SemanticType;
|
|
6
|
+
(function (SemanticType) {
|
|
7
|
+
// Entity-Level Semantics
|
|
8
|
+
/**
|
|
9
|
+
* Designates a Data Entity that represents users of the system.
|
|
10
|
+
*/
|
|
11
|
+
SemanticType["User"] = "https://apinow.app/semantics/entities/#User";
|
|
12
|
+
// Property-Level Semantics
|
|
13
|
+
SemanticType["CreatedTimestamp"] = "https://apinow.app/semantics/properties/#CreatedTimestamp";
|
|
14
|
+
SemanticType["UpdatedTimestamp"] = "https://apinow.app/semantics/properties/#UpdatedTimestamp";
|
|
15
|
+
SemanticType["DeletedTimestamp"] = "https://apinow.app/semantics/properties/#DeletedTimestamp";
|
|
16
|
+
SemanticType["DeletedFlag"] = "https://apinow.app/semantics/properties/#DeletedFlag";
|
|
17
|
+
SemanticType["PublicUniqueName"] = "https://apinow.app/semantics/properties/#PublicUniqueName";
|
|
18
|
+
// Association-Level Semantics
|
|
19
|
+
SemanticType["ResourceOwnerIdentifier"] = "https://apinow.app/semantics/associations/#ResourceOwnerIdentifier";
|
|
20
|
+
})(SemanticType || (SemanticType = {}));
|
|
21
|
+
/**
|
|
22
|
+
* Defines the scope at which a semantic can be applied.
|
|
23
|
+
*/
|
|
24
|
+
export var SemanticScope;
|
|
25
|
+
(function (SemanticScope) {
|
|
26
|
+
SemanticScope["Entity"] = "Entity";
|
|
27
|
+
SemanticScope["Property"] = "Property";
|
|
28
|
+
SemanticScope["Association"] = "Association";
|
|
29
|
+
})(SemanticScope || (SemanticScope = {}));
|
|
30
|
+
/**
|
|
31
|
+
* A type guard to check if a semantic is an EntitySemantic.
|
|
32
|
+
*/
|
|
33
|
+
export const isEntitySemantic = (semantic) => semantic.scope === SemanticScope.Entity;
|
|
34
|
+
/**
|
|
35
|
+
* A type guard to check if a semantic is a PropertySemantic.
|
|
36
|
+
*/
|
|
37
|
+
export const isPropertySemantic = (semantic) => semantic.scope === SemanticScope.Property;
|
|
38
|
+
/**
|
|
39
|
+
* A type guard to check if a semantic is a AssociationSemantic.
|
|
40
|
+
*/
|
|
41
|
+
export const isAssociationSemantic = (semantic) => semantic.scope === SemanticScope.Association;
|
|
42
|
+
/**
|
|
43
|
+
* A map to store the definitions of all available data semantics.
|
|
44
|
+
* This acts as a central registry for the application.
|
|
45
|
+
*/
|
|
46
|
+
export const DataSemantics = {
|
|
47
|
+
// Entity-Level Definitions
|
|
48
|
+
[SemanticType.User]: {
|
|
49
|
+
id: SemanticType.User,
|
|
50
|
+
displayName: 'User Entity',
|
|
51
|
+
scope: SemanticScope.Entity,
|
|
52
|
+
description: 'Designates an entity that represents system users, crucial for authentication and authorization.',
|
|
53
|
+
},
|
|
54
|
+
// Property-Level Definitions
|
|
55
|
+
[SemanticType.CreatedTimestamp]: {
|
|
56
|
+
id: SemanticType.CreatedTimestamp,
|
|
57
|
+
displayName: 'Creation Timestamp',
|
|
58
|
+
scope: SemanticScope.Property,
|
|
59
|
+
description: "Marks a field as the one that contains the object's creation timestamp.",
|
|
60
|
+
applicableDataTypes: ['datetime'],
|
|
61
|
+
},
|
|
62
|
+
[SemanticType.UpdatedTimestamp]: {
|
|
63
|
+
id: SemanticType.UpdatedTimestamp,
|
|
64
|
+
displayName: 'Update Timestamp',
|
|
65
|
+
scope: SemanticScope.Property,
|
|
66
|
+
description: "Marks a field as the field that contains object's last modification timestamp.",
|
|
67
|
+
applicableDataTypes: ['datetime'],
|
|
68
|
+
},
|
|
69
|
+
[SemanticType.DeletedTimestamp]: {
|
|
70
|
+
id: SemanticType.DeletedTimestamp,
|
|
71
|
+
displayName: 'Soft Delete Timestamp',
|
|
72
|
+
scope: SemanticScope.Property,
|
|
73
|
+
description: "Marks a field as the field that contains object's deletion timestamp.",
|
|
74
|
+
applicableDataTypes: ['datetime'],
|
|
75
|
+
},
|
|
76
|
+
[SemanticType.DeletedFlag]: {
|
|
77
|
+
id: SemanticType.DeletedFlag,
|
|
78
|
+
displayName: 'Soft Delete Flag',
|
|
79
|
+
scope: SemanticScope.Property,
|
|
80
|
+
description: 'A boolean property that marks the object as deleted without physically removing it.',
|
|
81
|
+
applicableDataTypes: ['boolean'],
|
|
82
|
+
},
|
|
83
|
+
[SemanticType.ResourceOwnerIdentifier]: {
|
|
84
|
+
id: SemanticType.ResourceOwnerIdentifier,
|
|
85
|
+
displayName: 'Resource Owner Identifier',
|
|
86
|
+
scope: SemanticScope.Association,
|
|
87
|
+
description: 'Links a resource to a "User" entity instance, indicating ownership for access control.',
|
|
88
|
+
},
|
|
89
|
+
[SemanticType.PublicUniqueName]: {
|
|
90
|
+
id: SemanticType.PublicUniqueName,
|
|
91
|
+
displayName: 'Public Unique Name (Slug)',
|
|
92
|
+
scope: SemanticScope.Property,
|
|
93
|
+
description: 'A user-friendly, unique public identifier for a resource, often used in URLs.',
|
|
94
|
+
applicableDataTypes: ['string'],
|
|
95
|
+
},
|
|
96
|
+
};
|
|
97
|
+
//# sourceMappingURL=Semantics.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Semantics.js","sourceRoot":"","sources":["../../../src/modeling/Semantics.ts"],"names":[],"mappings":"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","sourcesContent":["import type { DomainPropertyType } from './DataFormat.js'\n\n/**\n * Defines the names for all available data semantics.\n * Using a string enum makes it easy to add or remove semantics in a single place.\n */\nexport enum SemanticType {\n // Entity-Level Semantics\n /**\n * Designates a Data Entity that represents users of the system.\n */\n User = 'https://apinow.app/semantics/entities/#User',\n\n // Property-Level Semantics\n CreatedTimestamp = 'https://apinow.app/semantics/properties/#CreatedTimestamp',\n UpdatedTimestamp = 'https://apinow.app/semantics/properties/#UpdatedTimestamp',\n DeletedTimestamp = 'https://apinow.app/semantics/properties/#DeletedTimestamp',\n DeletedFlag = 'https://apinow.app/semantics/properties/#DeletedFlag',\n PublicUniqueName = 'https://apinow.app/semantics/properties/#PublicUniqueName',\n // Association-Level Semantics\n ResourceOwnerIdentifier = 'https://apinow.app/semantics/associations/#ResourceOwnerIdentifier',\n}\n\n/**\n * Defines the scope at which a semantic can be applied.\n */\nexport enum SemanticScope {\n Entity = 'Entity',\n Property = 'Property',\n Association = 'Association',\n}\n\n/**\n * A base interface for all Data Semantics, containing common properties.\n * A semantic is an annotation applied to a Data Entity, Property, or Association\n * to provide additional context or constraints.\n * This interface is extended by more specific semantic types.\n */\ninterface BaseDataSemantic {\n /**\n * A unique identifier for the semantic definition.\n */\n id: SemanticType\n /**\n * A human-readable name for the semantic.\n */\n displayName: string\n /**\n * A description of the semantic's purpose and impact.\n */\n description: string\n /**\n * Specifies whether the semantic applies to an Entity, Property, or Association.\n */\n scope: SemanticScope\n}\n\n/**\n * Represents a semantic that can be applied to an entire Data Entity.\n */\nexport interface EntitySemantic extends BaseDataSemantic {\n scope: SemanticScope.Entity\n}\n\n/**\n * Represents a semantic that can be applied to a single property.\n */\nexport interface PropertySemantic extends BaseDataSemantic {\n scope: SemanticScope.Property\n /**\n * Optional array of data types this semantic can be applied to.\n * Enforces constraints, e.g., DeletedTimestamp on a DateTime property.\n */\n applicableDataTypes?: DomainPropertyType[]\n}\n\n/**\n * Represents a semantic that can be applied to an association between entities.\n */\nexport interface AssociationSemantic extends BaseDataSemantic {\n scope: SemanticScope.Association\n}\n\n/**\n * A type guard to check if a semantic is an EntitySemantic.\n */\nexport const isEntitySemantic = (semantic: DataSemantic): semantic is EntitySemantic =>\n semantic.scope === SemanticScope.Entity\n\n/**\n * A type guard to check if a semantic is a PropertySemantic.\n */\nexport const isPropertySemantic = (semantic: DataSemantic): semantic is PropertySemantic =>\n semantic.scope === SemanticScope.Property\n\n/**\n * A type guard to check if a semantic is a AssociationSemantic.\n */\nexport const isAssociationSemantic = (semantic: DataSemantic): semantic is AssociationSemantic =>\n semantic.scope === SemanticScope.Association\n\n/**\n * Union type for any kind of data semantic\n */\nexport type DataSemantic = EntitySemantic | PropertySemantic | AssociationSemantic\n\n/**\n * A map to store the definitions of all available data semantics.\n * This acts as a central registry for the application.\n */\nexport const DataSemantics: Record<SemanticType, DataSemantic> = {\n // Entity-Level Definitions\n [SemanticType.User]: {\n id: SemanticType.User,\n displayName: 'User Entity',\n scope: SemanticScope.Entity,\n description: 'Designates an entity that represents system users, crucial for authentication and authorization.',\n },\n\n // Property-Level Definitions\n [SemanticType.CreatedTimestamp]: {\n id: SemanticType.CreatedTimestamp,\n displayName: 'Creation Timestamp',\n scope: SemanticScope.Property,\n description: \"Marks a field as the one that contains the object's creation timestamp.\",\n applicableDataTypes: ['datetime'],\n },\n [SemanticType.UpdatedTimestamp]: {\n id: SemanticType.UpdatedTimestamp,\n displayName: 'Update Timestamp',\n scope: SemanticScope.Property,\n description: \"Marks a field as the field that contains object's last modification timestamp.\",\n applicableDataTypes: ['datetime'],\n },\n [SemanticType.DeletedTimestamp]: {\n id: SemanticType.DeletedTimestamp,\n displayName: 'Soft Delete Timestamp',\n scope: SemanticScope.Property,\n description: \"Marks a field as the field that contains object's deletion timestamp.\",\n applicableDataTypes: ['datetime'],\n },\n [SemanticType.DeletedFlag]: {\n id: SemanticType.DeletedFlag,\n displayName: 'Soft Delete Flag',\n scope: SemanticScope.Property,\n description: 'A boolean property that marks the object as deleted without physically removing it.',\n applicableDataTypes: ['boolean'],\n },\n [SemanticType.ResourceOwnerIdentifier]: {\n id: SemanticType.ResourceOwnerIdentifier,\n displayName: 'Resource Owner Identifier',\n scope: SemanticScope.Association,\n description: 'Links a resource to a \"User\" entity instance, indicating ownership for access control.',\n },\n [SemanticType.PublicUniqueName]: {\n id: SemanticType.PublicUniqueName,\n displayName: 'Public Unique Name (Slug)',\n scope: SemanticScope.Property,\n description: 'A user-friendly, unique public identifier for a resource, often used in URLs.',\n applicableDataTypes: ['string'],\n },\n}\n\n/**\n * Represents the application of a data semantic to a specific\n * entity or property within a user's data model.\n */\nexport interface AppliedDataSemantic {\n /**\n * The unique identifier of the semantic being applied.\n */\n id: SemanticType\n\n /**\n * Optional configuration or values specific to this application.\n */\n config?: Record<string, unknown>\n}\n"]}
|
|
@@ -20,28 +20,4 @@ export declare const DataCatalogKind = "Core#DataCatalog";
|
|
|
20
20
|
export declare const DataCatalogVersionKind = "Core#DataCatalogVersion";
|
|
21
21
|
export declare const OrganizationKind = "Core#Organization";
|
|
22
22
|
export declare const InvitationKind = "Core#Invitation";
|
|
23
|
-
/**
|
|
24
|
-
* @deprecated Not used anymore.
|
|
25
|
-
*/
|
|
26
|
-
export declare const DataFileKind = "Core#DataFile";
|
|
27
|
-
/**
|
|
28
|
-
* @deprecated Not used anymore.
|
|
29
|
-
*/
|
|
30
|
-
export declare const DataNamespaceKind = "Data#DataNamespace";
|
|
31
|
-
/**
|
|
32
|
-
* @deprecated Not used anymore.
|
|
33
|
-
*/
|
|
34
|
-
export declare const DataModelKind = "Data#DataModel";
|
|
35
|
-
/**
|
|
36
|
-
* @deprecated Not used anymore.
|
|
37
|
-
*/
|
|
38
|
-
export declare const DataEntityKind = "Data#DataEntity";
|
|
39
|
-
/**
|
|
40
|
-
* @deprecated Not used anymore.
|
|
41
|
-
*/
|
|
42
|
-
export declare const DataAssociationKind = "Data#DataAssociation";
|
|
43
|
-
/**
|
|
44
|
-
* @deprecated Not used anymore.
|
|
45
|
-
*/
|
|
46
|
-
export declare const DataPropertyKind = "Data#DataProperty";
|
|
47
23
|
//# sourceMappingURL=kinds.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kinds.d.ts","sourceRoot":"","sources":["../../../src/models/kinds.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,uBAAuB,CAAA;AACrD,eAAO,MAAM,YAAY,sBAAsB,CAAA;AAC/C,eAAO,MAAM,gBAAgB,sBAAsB,CAAA;AACnD,eAAO,MAAM,mBAAmB,yBAAyB,CAAA;AACzD,eAAO,MAAM,UAAU,gBAAgB,CAAA;AACvC,eAAO,MAAM,WAAW,iBAAiB,CAAA;AACzC,eAAO,MAAM,SAAS,eAAe,CAAA;AACrC,eAAO,MAAM,YAAY,kBAAkB,CAAA;AAC3C,eAAO,MAAM,YAAY,kBAAkB,CAAA;AAC3C,eAAO,MAAM,wBAAwB,8BAA8B,CAAA;AACnE,eAAO,MAAM,QAAQ,cAAc,CAAA;AACnC,eAAO,MAAM,cAAc,oBAAoB,CAAA;AAC/C,eAAO,MAAM,cAAc,gBAAgB,CAAA;AAC3C,eAAO,MAAM,mBAAmB,qBAAqB,CAAA;AACrD,eAAO,MAAM,eAAe,iBAAiB,CAAA;AAC7C,eAAO,MAAM,gBAAgB,kBAAkB,CAAA;AAC/C,eAAO,MAAM,qBAAqB,uBAAuB,CAAA;AACzD,eAAO,MAAM,kBAAkB,oBAAoB,CAAA;AACnD,eAAO,MAAM,eAAe,qBAAqB,CAAA;AACjD,eAAO,MAAM,sBAAsB,4BAA4B,CAAA;AAC/D,eAAO,MAAM,gBAAgB,sBAAsB,CAAA;AACnD,eAAO,MAAM,cAAc,oBAAoB,CAAA
|
|
1
|
+
{"version":3,"file":"kinds.d.ts","sourceRoot":"","sources":["../../../src/models/kinds.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,uBAAuB,CAAA;AACrD,eAAO,MAAM,YAAY,sBAAsB,CAAA;AAC/C,eAAO,MAAM,gBAAgB,sBAAsB,CAAA;AACnD,eAAO,MAAM,mBAAmB,yBAAyB,CAAA;AACzD,eAAO,MAAM,UAAU,gBAAgB,CAAA;AACvC,eAAO,MAAM,WAAW,iBAAiB,CAAA;AACzC,eAAO,MAAM,SAAS,eAAe,CAAA;AACrC,eAAO,MAAM,YAAY,kBAAkB,CAAA;AAC3C,eAAO,MAAM,YAAY,kBAAkB,CAAA;AAC3C,eAAO,MAAM,wBAAwB,8BAA8B,CAAA;AACnE,eAAO,MAAM,QAAQ,cAAc,CAAA;AACnC,eAAO,MAAM,cAAc,oBAAoB,CAAA;AAC/C,eAAO,MAAM,cAAc,gBAAgB,CAAA;AAC3C,eAAO,MAAM,mBAAmB,qBAAqB,CAAA;AACrD,eAAO,MAAM,eAAe,iBAAiB,CAAA;AAC7C,eAAO,MAAM,gBAAgB,kBAAkB,CAAA;AAC/C,eAAO,MAAM,qBAAqB,uBAAuB,CAAA;AACzD,eAAO,MAAM,kBAAkB,oBAAoB,CAAA;AACnD,eAAO,MAAM,eAAe,qBAAqB,CAAA;AACjD,eAAO,MAAM,sBAAsB,4BAA4B,CAAA;AAC/D,eAAO,MAAM,gBAAgB,sBAAsB,CAAA;AACnD,eAAO,MAAM,cAAc,oBAAoB,CAAA"}
|
|
@@ -20,28 +20,4 @@ export const DataCatalogKind = 'Core#DataCatalog';
|
|
|
20
20
|
export const DataCatalogVersionKind = 'Core#DataCatalogVersion';
|
|
21
21
|
export const OrganizationKind = 'Core#Organization';
|
|
22
22
|
export const InvitationKind = 'Core#Invitation';
|
|
23
|
-
/**
|
|
24
|
-
* @deprecated Not used anymore.
|
|
25
|
-
*/
|
|
26
|
-
export const DataFileKind = 'Core#DataFile';
|
|
27
|
-
/**
|
|
28
|
-
* @deprecated Not used anymore.
|
|
29
|
-
*/
|
|
30
|
-
export const DataNamespaceKind = 'Data#DataNamespace';
|
|
31
|
-
/**
|
|
32
|
-
* @deprecated Not used anymore.
|
|
33
|
-
*/
|
|
34
|
-
export const DataModelKind = 'Data#DataModel';
|
|
35
|
-
/**
|
|
36
|
-
* @deprecated Not used anymore.
|
|
37
|
-
*/
|
|
38
|
-
export const DataEntityKind = 'Data#DataEntity';
|
|
39
|
-
/**
|
|
40
|
-
* @deprecated Not used anymore.
|
|
41
|
-
*/
|
|
42
|
-
export const DataAssociationKind = 'Data#DataAssociation';
|
|
43
|
-
/**
|
|
44
|
-
* @deprecated Not used anymore.
|
|
45
|
-
*/
|
|
46
|
-
export const DataPropertyKind = 'Data#DataProperty';
|
|
47
23
|
//# sourceMappingURL=kinds.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kinds.js","sourceRoot":"","sources":["../../../src/models/kinds.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAG,oBAAoB,CAAA;AACrD,MAAM,CAAC,MAAM,YAAY,GAAG,mBAAmB,CAAA;AAC/C,MAAM,CAAC,MAAM,gBAAgB,GAAG,mBAAmB,CAAA;AACnD,MAAM,CAAC,MAAM,mBAAmB,GAAG,sBAAsB,CAAA;AACzD,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAA;AACvC,MAAM,CAAC,MAAM,WAAW,GAAG,cAAc,CAAA;AACzC,MAAM,CAAC,MAAM,SAAS,GAAG,YAAY,CAAA;AACrC,MAAM,CAAC,MAAM,YAAY,GAAG,eAAe,CAAA;AAC3C,MAAM,CAAC,MAAM,YAAY,GAAG,eAAe,CAAA;AAC3C,MAAM,CAAC,MAAM,wBAAwB,GAAG,2BAA2B,CAAA;AACnE,MAAM,CAAC,MAAM,QAAQ,GAAG,WAAW,CAAA;AACnC,MAAM,CAAC,MAAM,cAAc,GAAG,iBAAiB,CAAA;AAC/C,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAA;AAC3C,MAAM,CAAC,MAAM,mBAAmB,GAAG,kBAAkB,CAAA;AACrD,MAAM,CAAC,MAAM,eAAe,GAAG,cAAc,CAAA;AAC7C,MAAM,CAAC,MAAM,gBAAgB,GAAG,eAAe,CAAA;AAC/C,MAAM,CAAC,MAAM,qBAAqB,GAAG,oBAAoB,CAAA;AACzD,MAAM,CAAC,MAAM,kBAAkB,GAAG,iBAAiB,CAAA;AACnD,MAAM,CAAC,MAAM,eAAe,GAAG,kBAAkB,CAAA;AACjD,MAAM,CAAC,MAAM,sBAAsB,GAAG,yBAAyB,CAAA;AAC/D,MAAM,CAAC,MAAM,gBAAgB,GAAG,mBAAmB,CAAA;AACnD,MAAM,CAAC,MAAM,cAAc,GAAG,iBAAiB,CAAA
|
|
1
|
+
{"version":3,"file":"kinds.js","sourceRoot":"","sources":["../../../src/models/kinds.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAG,oBAAoB,CAAA;AACrD,MAAM,CAAC,MAAM,YAAY,GAAG,mBAAmB,CAAA;AAC/C,MAAM,CAAC,MAAM,gBAAgB,GAAG,mBAAmB,CAAA;AACnD,MAAM,CAAC,MAAM,mBAAmB,GAAG,sBAAsB,CAAA;AACzD,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAA;AACvC,MAAM,CAAC,MAAM,WAAW,GAAG,cAAc,CAAA;AACzC,MAAM,CAAC,MAAM,SAAS,GAAG,YAAY,CAAA;AACrC,MAAM,CAAC,MAAM,YAAY,GAAG,eAAe,CAAA;AAC3C,MAAM,CAAC,MAAM,YAAY,GAAG,eAAe,CAAA;AAC3C,MAAM,CAAC,MAAM,wBAAwB,GAAG,2BAA2B,CAAA;AACnE,MAAM,CAAC,MAAM,QAAQ,GAAG,WAAW,CAAA;AACnC,MAAM,CAAC,MAAM,cAAc,GAAG,iBAAiB,CAAA;AAC/C,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAA;AAC3C,MAAM,CAAC,MAAM,mBAAmB,GAAG,kBAAkB,CAAA;AACrD,MAAM,CAAC,MAAM,eAAe,GAAG,cAAc,CAAA;AAC7C,MAAM,CAAC,MAAM,gBAAgB,GAAG,eAAe,CAAA;AAC/C,MAAM,CAAC,MAAM,qBAAqB,GAAG,oBAAoB,CAAA;AACzD,MAAM,CAAC,MAAM,kBAAkB,GAAG,iBAAiB,CAAA;AACnD,MAAM,CAAC,MAAM,eAAe,GAAG,kBAAkB,CAAA;AACjD,MAAM,CAAC,MAAM,sBAAsB,GAAG,yBAAyB,CAAA;AAC/D,MAAM,CAAC,MAAM,gBAAgB,GAAG,mBAAmB,CAAA;AACnD,MAAM,CAAC,MAAM,cAAc,GAAG,iBAAiB,CAAA","sourcesContent":["export const ProjectFolderKind = 'Core#ProjectFolder'\nexport const ResponseKind = 'Core#HttpResponse'\nexport const HttpResponseKind = 'Core#HttpResponse'\nexport const CertificateFileKind = 'Core#CertificateFile'\nexport const FolderKind = 'Core#Folder'\nexport const ProjectKind = 'Core#Project'\nexport const ThingKind = 'Core#Thing'\nexport const DeletionKind = 'Core#Deletion'\nexport const RevisionKind = 'Core#Revision'\nexport const UnresolvedDependencyKind = 'Core#UnresolvedDependency'\nexport const UserKind = 'Core#User'\nexport const DomainFileKind = 'Data#DomainFile'\nexport const DataDomainKind = 'Data#Domain'\nexport const DomainNamespaceKind = 'Domain#Namespace'\nexport const DomainModelKind = 'Domain#Model'\nexport const DomainEntityKind = 'Domain#Entity'\nexport const DomainAssociationKind = 'Domain#Association'\nexport const DomainPropertyKind = 'Domain#Property'\nexport const DataCatalogKind = 'Core#DataCatalog'\nexport const DataCatalogVersionKind = 'Core#DataCatalogVersion'\nexport const OrganizationKind = 'Core#Organization'\nexport const InvitationKind = 'Core#Invitation'\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data_catalog.js","sourceRoot":"","sources":["../../../../src/models/store/data_catalog.ts"],"names":[],"mappings":"","sourcesContent":["import { UnresolvedDependencyKind } from '../kinds.js'\n\nexport interface PublishedDataDomain {\n /**\n * Globally unique key for the data domain.\n */\n key: string\n /**\n * The key of the owning organization.\n */\n oid: string\n /**\n * The access level for the published data domain.\n * The private access means that the item was unpublished.\n */\n scope: 'public' | 'organization' | 'private'\n /**\n * The lifecycle stage of the data domain.\n */\n lifecycle: 'stable' | 'beta' | 'dev'\n /**\n * The version of the published data domain.\n */\n version: string\n /**\n * Key of the referenced `
|
|
1
|
+
{"version":3,"file":"data_catalog.js","sourceRoot":"","sources":["../../../../src/models/store/data_catalog.ts"],"names":[],"mappings":"","sourcesContent":["import { UnresolvedDependencyKind } from '../kinds.js'\n\nexport interface PublishedDataDomain {\n /**\n * Globally unique key for the data domain.\n */\n key: string\n /**\n * The key of the owning organization.\n */\n oid: string\n /**\n * The access level for the published data domain.\n * The private access means that the item was unpublished.\n */\n scope: 'public' | 'organization' | 'private'\n /**\n * The lifecycle stage of the data domain.\n */\n lifecycle: 'stable' | 'beta' | 'dev'\n /**\n * The version of the published data domain.\n */\n version: string\n /**\n * Key of the referenced `DomainNamespace` document.\n * Essentially this is a document id.\n */\n fid: string\n /**\n * Human-readable name.\n */\n name: string\n /**\n * Detailed description. Text or markdown.\n */\n description: string\n /**\n * User ID of the publisher.\n */\n publishedBy: string\n /**\n * Timestamp of publication.\n */\n publishedAt: number\n unpublishedAt?: number\n /**\n * Keywords for discovery.\n */\n tags: string[]\n /**\n * Deprecation status.\n */\n isDeprecated?: boolean\n deprecatedAt?: number\n deprecationMessage?: string\n}\n\nexport interface UnresolvedDependency {\n kind: typeof UnresolvedDependencyKind\n /**\n * Key of the missing namespace.\n */\n key: string\n /**\n * The version of the missing namespace.\n */\n version: string\n /**\n * Explanation of the failure (e.g., \"Namespace unpublished\").\n */\n reason: string\n}\n"]}
|