@api-client/core 0.13.6 → 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 +3 -4
- package/build/src/modeling/DomainFile.d.ts.map +1 -1
- package/build/src/modeling/DomainFile.js +5 -9
- 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/CertificateFile.d.ts +2 -3
- package/build/src/models/CertificateFile.d.ts.map +1 -1
- package/build/src/models/CertificateFile.js +4 -8
- package/build/src/models/CertificateFile.js.map +1 -1
- package/build/src/models/Folder.d.ts +1 -2
- package/build/src/models/Folder.d.ts.map +1 -1
- package/build/src/models/Folder.js +2 -4
- package/build/src/models/Folder.js.map +1 -1
- package/build/src/models/Project.d.ts +2 -3
- package/build/src/models/Project.d.ts.map +1 -1
- package/build/src/models/Project.js +4 -8
- package/build/src/models/Project.js.map +1 -1
- 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/File.d.ts +1 -21
- package/build/src/models/store/File.d.ts.map +1 -1
- package/build/src/models/store/File.js +3 -23
- package/build/src/models/store/File.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/src/sdk/FilesSdk.js +1 -1
- package/build/src/sdk/FilesSdk.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/data/models/example-generator-api.json +22 -22
- package/eslint.config.js +1 -0
- package/package.json +5 -5
- 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 +5 -9
- 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/CertificateFile.ts +4 -12
- package/src/models/Folder.ts +2 -4
- package/src/models/Project.ts +4 -8
- package/src/models/kinds.ts +0 -25
- package/src/models/store/File.ts +4 -35
- package/src/models/store/data_catalog.ts +1 -1
- package/src/sdk/FilesSdk.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_file.spec.ts +4 -27
- package/tests/unit/modeling/{domain.property.spec.ts → domain_property.spec.ts} +139 -23
- package/tests/unit/models/Certificate/from_name.spec.ts +3 -15
- package/tests/unit/models/File/constructor.spec.ts +0 -1
- package/tests/unit/models/File/new.spec.ts +0 -13
- package/tests/unit/models/File/shortcutTo.spec.ts +1 -2
- package/tests/unit/models/File/toJSON.spec.ts +0 -13
- package/tests/unit/models/File/updateByMeMeta.spec.ts +4 -6
- package/tests/unit/models/Folder/create.spec.ts +2 -23
- package/tests/unit/models/Project/create.spec.ts +6 -32
- 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 -31
- package/build/src/models/store/DataFile.d.ts.map +0 -1
- package/build/src/models/store/DataFile.js +0 -92
- 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 -100
- 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
|
+
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,KAAK,EAAE,aAAa,CAAC,QAAQ;QAC7B,WAAW,EAAE,+EAA+E;QAC5F,mBAAmB,EAAE,CAAC,QAAQ,CAAC;KAChC;CACF,CAAA","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"]}
|
|
@@ -6,12 +6,11 @@ export interface ICertificateFile extends IFile {
|
|
|
6
6
|
}
|
|
7
7
|
export declare class CertificateFile extends File {
|
|
8
8
|
kind: string;
|
|
9
|
-
static fromCertificate(certificate: ICertificate | Certificate
|
|
9
|
+
static fromCertificate(certificate: ICertificate | Certificate): CertificateFile;
|
|
10
10
|
/**
|
|
11
11
|
* @param name The name to set.
|
|
12
|
-
* @param owner The user id that is the owner of the file.
|
|
13
12
|
*/
|
|
14
|
-
static fromName(name: string
|
|
13
|
+
static fromName(name: string): CertificateFile;
|
|
15
14
|
constructor(input?: string | ICertificateFile);
|
|
16
15
|
new(init: ICertificateFile): this;
|
|
17
16
|
static isCertificate(input: unknown): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CertificateFile.d.ts","sourceRoot":"","sources":["../../../src/models/CertificateFile.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAG7C,MAAM,WAAW,gBAAiB,SAAQ,KAAK;IAC7C,IAAI,EAAE,OAAO,mBAAmB,CAAA;CACjC;AAED,qBAAa,eAAgB,SAAQ,IAAI;IAC9B,IAAI,SAAsB;IAEnC,MAAM,CAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"CertificateFile.d.ts","sourceRoot":"","sources":["../../../src/models/CertificateFile.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAG7C,MAAM,WAAW,gBAAiB,SAAQ,KAAK;IAC7C,IAAI,EAAE,OAAO,mBAAmB,CAAA;CACjC;AAED,qBAAa,eAAgB,SAAQ,IAAI;IAC9B,IAAI,SAAsB;IAEnC,MAAM,CAAC,eAAe,CAAC,WAAW,EAAE,YAAY,GAAG,WAAW,GAAG,eAAe;IAahF;;OAEG;WACa,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe;gBAI3C,KAAK,CAAC,EAAE,MAAM,GAAG,gBAAgB;IAqBpC,GAAG,CAAC,IAAI,EAAE,gBAAgB,GAAG,IAAI;IAS1C,MAAM,CAAC,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO;IAQpC,MAAM,IAAI,gBAAgB;CAOpC"}
|
|
@@ -4,14 +4,12 @@ import { File } from './store/File.js';
|
|
|
4
4
|
import { Thing } from './Thing.js';
|
|
5
5
|
export class CertificateFile extends File {
|
|
6
6
|
kind = CertificateFileKind;
|
|
7
|
-
static fromCertificate(certificate
|
|
7
|
+
static fromCertificate(certificate) {
|
|
8
8
|
const init = {
|
|
9
9
|
kind: CertificateFileKind,
|
|
10
10
|
key: certificate.key,
|
|
11
|
-
organization,
|
|
12
11
|
info: Thing.fromName(certificate.name).toJSON(),
|
|
13
|
-
lastModified: { user:
|
|
14
|
-
owner,
|
|
12
|
+
lastModified: { user: '', time: 0, byMe: false },
|
|
15
13
|
parents: [],
|
|
16
14
|
permissionIds: [],
|
|
17
15
|
permissions: [],
|
|
@@ -20,10 +18,9 @@ export class CertificateFile extends File {
|
|
|
20
18
|
}
|
|
21
19
|
/**
|
|
22
20
|
* @param name The name to set.
|
|
23
|
-
* @param owner The user id that is the owner of the file.
|
|
24
21
|
*/
|
|
25
|
-
static fromName(name
|
|
26
|
-
return super.fromName(name,
|
|
22
|
+
static fromName(name) {
|
|
23
|
+
return super.fromName(name, CertificateFileKind);
|
|
27
24
|
}
|
|
28
25
|
constructor(input) {
|
|
29
26
|
super();
|
|
@@ -38,7 +35,6 @@ export class CertificateFile extends File {
|
|
|
38
35
|
init = {
|
|
39
36
|
kind: CertificateFileKind,
|
|
40
37
|
key: nanoid(),
|
|
41
|
-
organization: '',
|
|
42
38
|
info: Thing.fromName('').toJSON(),
|
|
43
39
|
parents: [],
|
|
44
40
|
permissionIds: [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CertificateFile.js","sourceRoot":"","sources":["../../../src/models/CertificateFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAErC,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,EAAS,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAMlC,MAAM,OAAO,eAAgB,SAAQ,IAAI;IAC9B,IAAI,GAAG,mBAAmB,CAAA;IAEnC,MAAM,CAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"CertificateFile.js","sourceRoot":"","sources":["../../../src/models/CertificateFile.ts"],"names":[],"mappings":"AAAA,O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AAE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE;gBACjC,OAAO,EAAE,EAAE;gBACX,aAAa,EAAE,EAAE;gBACjB,WAAW,EAAE,EAAE;gBACf,YAAY,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE;aACjD,CAAA;QACH,CAAC;QACD,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;IAChB,CAAC;IAEQ,GAAG,CAAC,IAAsB;QACjC,IAAI,CAAC,eAAe,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC;YACzC,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAA;QAC5C,CAAC;QACD,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QACf,IAAI,CAAC,IAAI,GAAG,mBAAmB,CAAA;QAC/B,OAAO,IAAI,CAAA;IACb,CAAC;IAED,MAAM,CAAC,aAAa,CAAC,KAAc;QACjC,MAAM,KAAK,GAAG,KAAyB,CAAA;QACvC,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,mBAAmB,EAAE,CAAC;YACjD,OAAO,KAAK,CAAA;QACd,CAAC;QACD,OAAO,IAAI,CAAA;IACb,CAAC;IAEQ,MAAM;QACb,MAAM,MAAM,GAAqB;YAC/B,GAAG,KAAK,CAAC,MAAM,EAAE;YACjB,IAAI,EAAE,mBAAmB;SAC1B,CAAA;QACD,OAAO,MAAM,CAAA;IACf,CAAC;CACF","sourcesContent":["import { nanoid } from '../nanoid.js'\nimport { Certificate, ICertificate } from './ClientCertificate.js'\nimport { CertificateFileKind } from './kinds.js'\nimport { IFile, File } from './store/File.js'\nimport { Thing } from './Thing.js'\n\nexport interface ICertificateFile extends IFile {\n kind: typeof CertificateFileKind\n}\n\nexport class CertificateFile extends File {\n override kind = CertificateFileKind\n\n static fromCertificate(certificate: ICertificate | Certificate): CertificateFile {\n const init: ICertificateFile = {\n kind: CertificateFileKind,\n key: certificate.key,\n info: Thing.fromName(certificate.name).toJSON(),\n lastModified: { user: '', time: 0, byMe: false },\n parents: [],\n permissionIds: [],\n permissions: [],\n }\n return new CertificateFile(init)\n }\n\n /**\n * @param name The name to set.\n */\n static override fromName(name: string): CertificateFile {\n return super.fromName(name, CertificateFileKind) as CertificateFile\n }\n\n constructor(input?: string | ICertificateFile) {\n super()\n let init: ICertificateFile\n if (typeof input === 'string') {\n init = JSON.parse(input)\n } else if (typeof input === 'object') {\n init = input\n } else {\n init = {\n kind: CertificateFileKind,\n key: nanoid(),\n info: Thing.fromName('').toJSON(),\n parents: [],\n permissionIds: [],\n permissions: [],\n lastModified: { user: '', time: 0, byMe: false },\n }\n }\n this.new(init)\n }\n\n override new(init: ICertificateFile): this {\n if (!CertificateFile.isCertificate(init)) {\n throw new Error(`Not a certificate file.`)\n }\n super.new(init)\n this.kind = CertificateFileKind\n return this\n }\n\n static isCertificate(input: unknown): boolean {\n const typed = input as ICertificateFile\n if (!input || typed.kind !== CertificateFileKind) {\n return false\n }\n return true\n }\n\n override toJSON(): ICertificateFile {\n const result: ICertificateFile = {\n ...super.toJSON(),\n kind: CertificateFileKind,\n }\n return result\n }\n}\n"]}
|
|
@@ -15,9 +15,8 @@ export declare class Folder extends File {
|
|
|
15
15
|
* Creates a new Folder object from a name.
|
|
16
16
|
*
|
|
17
17
|
* @param name The name to set.
|
|
18
|
-
* @param owner The user id that is the owner of the folder.
|
|
19
18
|
*/
|
|
20
|
-
static fromName(name: string
|
|
19
|
+
static fromName(name: string): Folder;
|
|
21
20
|
/**
|
|
22
21
|
* @param input The environment definition used to restore the state.
|
|
23
22
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Folder.d.ts","sourceRoot":"","sources":["../../../src/models/Folder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAG7C,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAEvC;;GAEG;AACH,MAAM,WAAW,OAAQ,SAAQ,KAAK;IACpC,IAAI,EAAE,OAAO,UAAU,CAAA;CACxB;AAED;;GAEG;AACH,qBAAa,MAAO,SAAQ,IAAI;IACrB,IAAI,SAAa;IAE1B
|
|
1
|
+
{"version":3,"file":"Folder.d.ts","sourceRoot":"","sources":["../../../src/models/Folder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAG7C,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAEvC;;GAEG;AACH,MAAM,WAAW,OAAQ,SAAQ,KAAK;IACpC,IAAI,EAAE,OAAO,UAAU,CAAA;CACxB;AAED;;GAEG;AACH,qBAAa,MAAO,SAAQ,IAAI;IACrB,IAAI,SAAa;IAE1B;;;;OAIG;WACa,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAI9C;;OAEG;gBACS,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO;IAqBpC;;OAEG;IACM,GAAG,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI;IASjC;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO;IAQ/B,MAAM,IAAI,OAAO;CAO3B"}
|
|
@@ -11,10 +11,9 @@ export class Folder extends File {
|
|
|
11
11
|
* Creates a new Folder object from a name.
|
|
12
12
|
*
|
|
13
13
|
* @param name The name to set.
|
|
14
|
-
* @param owner The user id that is the owner of the folder.
|
|
15
14
|
*/
|
|
16
|
-
static fromName(name
|
|
17
|
-
return super.fromName(name,
|
|
15
|
+
static fromName(name) {
|
|
16
|
+
return super.fromName(name, FolderKind);
|
|
18
17
|
}
|
|
19
18
|
/**
|
|
20
19
|
* @param input The environment definition used to restore the state.
|
|
@@ -32,7 +31,6 @@ export class Folder extends File {
|
|
|
32
31
|
init = {
|
|
33
32
|
kind: FolderKind,
|
|
34
33
|
key: nanoid(),
|
|
35
|
-
organization: '',
|
|
36
34
|
info: Thing.fromName('').toJSON(),
|
|
37
35
|
parents: [],
|
|
38
36
|
permissionIds: [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Folder.js","sourceRoot":"","sources":["../../../src/models/Folder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AASvC;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,IAAI;IACrB,IAAI,GAAG,UAAU,CAAA;IAE1B
|
|
1
|
+
{"version":3,"file":"Folder.js","sourceRoot":"","sources":["../../../src/models/Folder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AASvC;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,IAAI;IACrB,IAAI,GAAG,UAAU,CAAA;IAE1B;;;;OAIG;IACH,MAAM,CAAU,QAAQ,CAAC,IAAY;QACnC,OAAO,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAW,CAAA;IACnD,CAAC;IAED;;OAEG;IACH,YAAY,KAAwB;QAClC,KAAK,EAAE,CAAA;QACP,IAAI,IAAa,CAAA;QACjB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC9B,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;QAC1B,CAAC;aAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YACrC,IAAI,GAAG,KAAK,CAAA;QACd,CAAC;aAAM,CAAC;YACN,IAAI,GAAG;gBACL,IAAI,EAAE,UAAU;gBAChB,GAAG,EAAE,MAAM,EAAE;gBACb,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE;gBACjC,OAAO,EAAE,EAAE;gBACX,aAAa,EAAE,EAAE;gBACjB,WAAW,EAAE,EAAE;gBACf,YAAY,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE;aACjD,CAAA;QACH,CAAC;QACD,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;IAChB,CAAC;IAED;;OAEG;IACM,GAAG,CAAC,IAAa;QACxB,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAA;QAClC,CAAC;QACD,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QACf,IAAI,CAAC,IAAI,GAAG,UAAU,CAAA;QACtB,OAAO,IAAI,CAAA;IACb,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,KAAc;QAC5B,MAAM,KAAK,GAAG,KAAgB,CAAA;QAC9B,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;YACxC,OAAO,KAAK,CAAA;QACd,CAAC;QACD,OAAO,IAAI,CAAA;IACb,CAAC;IAEQ,MAAM;QACb,MAAM,MAAM,GAAY;YACtB,GAAG,KAAK,CAAC,MAAM,EAAE;YACjB,IAAI,EAAE,UAAU;SACjB,CAAA;QACD,OAAO,MAAM,CAAA;IACf,CAAC;CACF","sourcesContent":["import { IFile, File } from './store/File.js'\nimport { nanoid } from '../nanoid.js'\nimport { Thing } from './Thing.js'\nimport { FolderKind } from './kinds.js'\n\n/**\n * A definition of a folder.\n */\nexport interface IFolder extends IFile {\n kind: typeof FolderKind\n}\n\n/**\n * A definition of a folder.\n */\nexport class Folder extends File {\n override kind = FolderKind\n\n /**\n * Creates a new Folder object from a name.\n *\n * @param name The name to set.\n */\n static override fromName(name: string): Folder {\n return super.fromName(name, FolderKind) as Folder\n }\n\n /**\n * @param input The environment definition used to restore the state.\n */\n constructor(input?: string | IFolder) {\n super()\n let init: IFolder\n if (typeof input === 'string') {\n init = JSON.parse(input)\n } else if (typeof input === 'object') {\n init = input\n } else {\n init = {\n kind: FolderKind,\n key: nanoid(),\n info: Thing.fromName('').toJSON(),\n parents: [],\n permissionIds: [],\n permissions: [],\n lastModified: { user: '', time: 0, byMe: false },\n }\n }\n this.new(init)\n }\n\n /**\n * Creates a new environment clearing anything that is so far defined.\n */\n override new(init: IFolder): this {\n if (!Folder.isFolder(init)) {\n throw new Error(`Not a folder.`)\n }\n super.new(init)\n this.kind = FolderKind\n return this\n }\n\n /**\n * Checks whether the input is a definition of a folder.\n */\n static isFolder(input: unknown): boolean {\n const typed = input as IFolder\n if (!input || typed.kind !== FolderKind) {\n return false\n }\n return true\n }\n\n override toJSON(): IFolder {\n const result: IFolder = {\n ...super.toJSON(),\n kind: FolderKind,\n }\n return result\n }\n}\n"]}
|
|
@@ -14,12 +14,11 @@ export interface IProject extends IFile {
|
|
|
14
14
|
*/
|
|
15
15
|
export declare class Project extends File {
|
|
16
16
|
kind: string;
|
|
17
|
-
static fromProject(project: HttpProject | IHttpProject
|
|
17
|
+
static fromProject(project: HttpProject | IHttpProject): Project;
|
|
18
18
|
/**
|
|
19
19
|
* @param name The name to set.
|
|
20
|
-
* @param owner The user id that is the owner of the file.
|
|
21
20
|
*/
|
|
22
|
-
static fromName(name: string
|
|
21
|
+
static fromName(name: string): Project;
|
|
23
22
|
constructor(input?: string | IProject);
|
|
24
23
|
new(init: IProject): this;
|
|
25
24
|
static isProject(input: unknown): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Project.d.ts","sourceRoot":"","sources":["../../../src/models/Project.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAE7C,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAExC;;;GAGG;AACH,MAAM,WAAW,QAAS,SAAQ,KAAK;IACrC,IAAI,EAAE,OAAO,WAAW,CAAA;CACzB;AAED;;;GAGG;AACH,qBAAa,OAAQ,SAAQ,IAAI;IACtB,IAAI,SAAc;IAE3B,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,YAAY,
|
|
1
|
+
{"version":3,"file":"Project.d.ts","sourceRoot":"","sources":["../../../src/models/Project.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAE7C,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAExC;;;GAGG;AACH,MAAM,WAAW,QAAS,SAAQ,KAAK;IACrC,IAAI,EAAE,OAAO,WAAW,CAAA;CACzB;AAED;;;GAGG;AACH,qBAAa,OAAQ,SAAQ,IAAI;IACtB,IAAI,SAAc;IAE3B,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,YAAY,GAAG,OAAO;IAmBhE;;OAEG;WACa,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;gBAInC,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ;IAqB5B,GAAG,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI;IASlC,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO;IAQhC,MAAM,IAAI,QAAQ;CAO5B"}
|
|
@@ -8,7 +8,7 @@ import { ProjectKind } from './kinds.js';
|
|
|
8
8
|
*/
|
|
9
9
|
export class Project extends File {
|
|
10
10
|
kind = ProjectKind;
|
|
11
|
-
static fromProject(project
|
|
11
|
+
static fromProject(project) {
|
|
12
12
|
let final;
|
|
13
13
|
if (typeof project.toJSON === 'function') {
|
|
14
14
|
final = project.toJSON();
|
|
@@ -19,10 +19,8 @@ export class Project extends File {
|
|
|
19
19
|
const init = {
|
|
20
20
|
kind: ProjectKind,
|
|
21
21
|
key: project.key,
|
|
22
|
-
organization,
|
|
23
22
|
info: { ...final.info },
|
|
24
|
-
lastModified: { user:
|
|
25
|
-
owner,
|
|
23
|
+
lastModified: { user: '', time: 0, byMe: false },
|
|
26
24
|
parents: [],
|
|
27
25
|
permissionIds: [],
|
|
28
26
|
permissions: [],
|
|
@@ -31,10 +29,9 @@ export class Project extends File {
|
|
|
31
29
|
}
|
|
32
30
|
/**
|
|
33
31
|
* @param name The name to set.
|
|
34
|
-
* @param owner The user id that is the owner of the file.
|
|
35
32
|
*/
|
|
36
|
-
static fromName(name
|
|
37
|
-
return super.fromName(name,
|
|
33
|
+
static fromName(name) {
|
|
34
|
+
return super.fromName(name, ProjectKind);
|
|
38
35
|
}
|
|
39
36
|
constructor(input) {
|
|
40
37
|
super();
|
|
@@ -49,7 +46,6 @@ export class Project extends File {
|
|
|
49
46
|
init = {
|
|
50
47
|
kind: ProjectKind,
|
|
51
48
|
key: nanoid(),
|
|
52
|
-
organization: '',
|
|
53
49
|
info: Thing.fromName('').toJSON(),
|
|
54
50
|
parents: [],
|
|
55
51
|
permissionIds: [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Project.js","sourceRoot":"","sources":["../../../src/models/Project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AACrC,OAAO,EAAS,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAElC,OAAO,EAAE,WAA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GAAa;YACvB,GAAG,KAAK,CAAC,MAAM,EAAE;YACjB,IAAI,EAAE,WAAW;SAClB,CAAA;QACD,OAAO,MAAM,CAAA;IACf,CAAC;CACF","sourcesContent":["import { nanoid } from '../nanoid.js'\nimport { IFile, File } from './store/File.js'\nimport { Thing } from './Thing.js'\nimport { HttpProject, IHttpProject } from './HttpProject.js'\nimport { ProjectKind } from './kinds.js'\n\n/**\n * This model represents a meta data for an HTTP project stored with the data store.\n * This does not include the HTTP project entity, though, it is referenced through the same key.\n */\nexport interface IProject extends IFile {\n kind: typeof ProjectKind\n}\n\n/**\n * This model represents a meta data for an HTTP project stored with the data store.\n * This does not include the HTTP project entity, though, it is referenced through the same key.\n */\nexport class Project extends File {\n override kind = ProjectKind\n\n static fromProject(project: HttpProject | IHttpProject): Project {\n let final: IHttpProject\n if (typeof (project as HttpProject).toJSON === 'function') {\n final = (project as HttpProject).toJSON()\n } else {\n final = project as IHttpProject\n }\n const init: IProject = {\n kind: ProjectKind,\n key: project.key,\n info: { ...final.info },\n lastModified: { user: '', time: 0, byMe: false },\n parents: [],\n permissionIds: [],\n permissions: [],\n }\n return new Project(init)\n }\n\n /**\n * @param name The name to set.\n */\n static override fromName(name: string): Project {\n return super.fromName(name, ProjectKind) as Project\n }\n\n constructor(input?: string | IProject) {\n super()\n let init: IProject\n if (typeof input === 'string') {\n init = JSON.parse(input)\n } else if (typeof input === 'object') {\n init = input\n } else {\n init = {\n kind: ProjectKind,\n key: nanoid(),\n info: Thing.fromName('').toJSON(),\n parents: [],\n permissionIds: [],\n permissions: [],\n lastModified: { user: '', time: 0, byMe: false },\n }\n }\n this.new(init)\n }\n\n override new(init: IProject): this {\n if (!Project.isProject(init)) {\n throw new Error(`Not a project file.`)\n }\n super.new(init)\n this.kind = ProjectKind\n return this\n }\n\n static isProject(input: unknown): boolean {\n const typed = input as IProject\n if (!input || typed.kind !== ProjectKind) {\n return false\n }\n return true\n }\n\n override toJSON(): IProject {\n const result: IProject = {\n ...super.toJSON(),\n kind: ProjectKind,\n }\n return result\n }\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,eAA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BAAqB,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"],"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,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"]}
|
|
@@ -43,19 +43,10 @@ export interface IStoredFile {
|
|
|
43
43
|
* The identifier of the entity
|
|
44
44
|
*/
|
|
45
45
|
key: string;
|
|
46
|
-
/**
|
|
47
|
-
* The parent organization of the file.
|
|
48
|
-
*/
|
|
49
|
-
organization: string;
|
|
50
46
|
/**
|
|
51
47
|
* The file's meta info.
|
|
52
48
|
*/
|
|
53
49
|
info: IThing;
|
|
54
|
-
/**
|
|
55
|
-
* The owner of this object. The id of the User object.
|
|
56
|
-
* Once the File is persistent by the API this is always populated.
|
|
57
|
-
*/
|
|
58
|
-
owner?: string;
|
|
59
50
|
/**
|
|
60
51
|
* The color of the icon to render for this file in the file explorer.
|
|
61
52
|
* This should be a hex format, e.g.: #c00 for red.
|
|
@@ -134,7 +125,6 @@ export interface IFile extends IStoredFile {
|
|
|
134
125
|
declare const parentsSymbol: unique symbol;
|
|
135
126
|
declare const deletedSymbol: unique symbol;
|
|
136
127
|
declare const deletedInfoSymbol: unique symbol;
|
|
137
|
-
declare const ownerSymbol: unique symbol;
|
|
138
128
|
declare const lastModifiedSymbol: unique symbol;
|
|
139
129
|
declare const capabilitiesSymbol: unique symbol;
|
|
140
130
|
declare const permissionsSymbol: unique symbol;
|
|
@@ -149,20 +139,10 @@ export declare class StoredFile {
|
|
|
149
139
|
* The identifier of the entity
|
|
150
140
|
*/
|
|
151
141
|
key: string;
|
|
152
|
-
/**
|
|
153
|
-
* The parent organization of the file.
|
|
154
|
-
*/
|
|
155
|
-
organization: string;
|
|
156
142
|
/**
|
|
157
143
|
* The name of the environment.
|
|
158
144
|
*/
|
|
159
145
|
info: Thing;
|
|
160
|
-
[ownerSymbol]?: string;
|
|
161
|
-
/**
|
|
162
|
-
* The owner of this file. This is the id of the User object.
|
|
163
|
-
* Set to `default` when there are no users in the system (no authentication).
|
|
164
|
-
*/
|
|
165
|
-
get owner(): string | undefined;
|
|
166
146
|
/**
|
|
167
147
|
* The color of the icon to render for this file in the file explorer.
|
|
168
148
|
*/
|
|
@@ -277,7 +257,7 @@ export declare class File extends StoredFile {
|
|
|
277
257
|
* @param name The name to set.
|
|
278
258
|
* @param owner The user id that is the owner of the file.
|
|
279
259
|
*/
|
|
280
|
-
static fromName(name: string,
|
|
260
|
+
static fromName(name: string, kind?: string): File;
|
|
281
261
|
shortcutTo(fileId: string): this;
|
|
282
262
|
/**
|
|
283
263
|
* Updates the "lastModified" value.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"File.d.ts","sourceRoot":"","sources":["../../../../src/models/store/File.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAc,cAAc,EAAE,MAAM,iBAAiB,CAAA;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,EAAE,KAAK,EAAoB,MAAM,WAAW,CAAA;AACnD,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAKjD,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH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