@twin.org/federated-catalogue-service 0.0.2-next.6 → 0.0.3-next.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.
Files changed (33) hide show
  1. package/dist/es/entities/dataResourceEntry.js +124 -0
  2. package/dist/es/entities/dataResourceEntry.js.map +1 -0
  3. package/dist/es/entities/dataSpaceConnectorEntry.js +139 -0
  4. package/dist/es/entities/dataSpaceConnectorEntry.js.map +1 -0
  5. package/dist/es/entities/participantEntry.js +91 -0
  6. package/dist/es/entities/participantEntry.js.map +1 -0
  7. package/dist/es/entities/serviceOfferingEntry.js +115 -0
  8. package/dist/es/entities/serviceOfferingEntry.js.map +1 -0
  9. package/dist/es/federatedCatalogueRoutes.js +783 -0
  10. package/dist/es/federatedCatalogueRoutes.js.map +1 -0
  11. package/dist/es/federatedCatalogueService.js +700 -0
  12. package/dist/es/federatedCatalogueService.js.map +1 -0
  13. package/dist/es/index.js +13 -0
  14. package/dist/es/index.js.map +1 -0
  15. package/dist/es/models/IFederatedCatalogueServiceConfig.js +4 -0
  16. package/dist/es/models/IFederatedCatalogueServiceConfig.js.map +1 -0
  17. package/dist/es/models/IFederatedCatalogueServiceConstructorOptions.js +2 -0
  18. package/dist/es/models/IFederatedCatalogueServiceConstructorOptions.js.map +1 -0
  19. package/dist/es/restEntryPoints.js +10 -0
  20. package/dist/es/restEntryPoints.js.map +1 -0
  21. package/dist/es/schema.js +17 -0
  22. package/dist/es/schema.js.map +1 -0
  23. package/dist/es/verification/complianceCredentialVerificationService.js +240 -0
  24. package/dist/es/verification/complianceCredentialVerificationService.js.map +1 -0
  25. package/dist/types/federatedCatalogueService.d.ts +6 -1
  26. package/dist/types/index.d.ts +10 -10
  27. package/dist/types/models/IFederatedCatalogueServiceConstructorOptions.d.ts +1 -1
  28. package/docs/changelog.md +42 -0
  29. package/docs/open-api/spec.json +294 -385
  30. package/docs/reference/classes/FederatedCatalogueService.md +18 -0
  31. package/package.json +6 -8
  32. package/dist/cjs/index.cjs +0 -2209
  33. package/dist/esm/index.mjs +0 -2191
@@ -0,0 +1,124 @@
1
+ import { entity, property, SortDirection } from "@twin.org/entity";
2
+ /**
3
+ * Data Resource Entry.
4
+ */
5
+ let DataResourceEntry = class DataResourceEntry {
6
+ /**
7
+ * The Id.
8
+ */
9
+ id;
10
+ /**
11
+ * The trusted issuer of the compliance credential
12
+ */
13
+ issuer;
14
+ /**
15
+ * The name.
16
+ */
17
+ name;
18
+ /**
19
+ * The description.
20
+ */
21
+ description;
22
+ /**
23
+ * The Id of the producer of the data described by this Data Resource.
24
+ */
25
+ producedBy;
26
+ /**
27
+ * The copyright owner
28
+ */
29
+ copyrightOwnedBy;
30
+ /**
31
+ * The license
32
+ */
33
+ license;
34
+ /**
35
+ * The data exchange component used to expose the Data Resource.
36
+ * Only a URL pointing to the resource is stored
37
+ */
38
+ exposedThrough;
39
+ /**
40
+ * The Data Resource policy
41
+ */
42
+ resourcePolicy;
43
+ /**
44
+ * Valid from
45
+ */
46
+ validFrom;
47
+ /**
48
+ * Valid to
49
+ */
50
+ validUntil;
51
+ /**
52
+ * Date created
53
+ */
54
+ dateCreated;
55
+ /**
56
+ * Evidences
57
+ */
58
+ evidence;
59
+ /**
60
+ * Extended data of a Data Resource entry.
61
+ */
62
+ extraData;
63
+ };
64
+ __decorate([
65
+ property({ type: "string", isPrimary: true }),
66
+ __metadata("design:type", String)
67
+ ], DataResourceEntry.prototype, "id", void 0);
68
+ __decorate([
69
+ property({ type: "string" }),
70
+ __metadata("design:type", String)
71
+ ], DataResourceEntry.prototype, "issuer", void 0);
72
+ __decorate([
73
+ property({ type: "string" }),
74
+ __metadata("design:type", String)
75
+ ], DataResourceEntry.prototype, "name", void 0);
76
+ __decorate([
77
+ property({ type: "string", optional: true }),
78
+ __metadata("design:type", String)
79
+ ], DataResourceEntry.prototype, "description", void 0);
80
+ __decorate([
81
+ property({ type: "string", isSecondary: true }),
82
+ __metadata("design:type", String)
83
+ ], DataResourceEntry.prototype, "producedBy", void 0);
84
+ __decorate([
85
+ property({ type: "string" }),
86
+ __metadata("design:type", String)
87
+ ], DataResourceEntry.prototype, "copyrightOwnedBy", void 0);
88
+ __decorate([
89
+ property({ type: "string" }),
90
+ __metadata("design:type", String)
91
+ ], DataResourceEntry.prototype, "license", void 0);
92
+ __decorate([
93
+ property({ type: "string" }),
94
+ __metadata("design:type", String)
95
+ ], DataResourceEntry.prototype, "exposedThrough", void 0);
96
+ __decorate([
97
+ property({ type: "array" }),
98
+ __metadata("design:type", Array)
99
+ ], DataResourceEntry.prototype, "resourcePolicy", void 0);
100
+ __decorate([
101
+ property({ type: "string", format: "date-time" }),
102
+ __metadata("design:type", String)
103
+ ], DataResourceEntry.prototype, "validFrom", void 0);
104
+ __decorate([
105
+ property({ type: "string", format: "date-time" }),
106
+ __metadata("design:type", String)
107
+ ], DataResourceEntry.prototype, "validUntil", void 0);
108
+ __decorate([
109
+ property({ type: "string", format: "date-time", sortDirection: SortDirection.Descending }),
110
+ __metadata("design:type", String)
111
+ ], DataResourceEntry.prototype, "dateCreated", void 0);
112
+ __decorate([
113
+ property({ type: "array" }),
114
+ __metadata("design:type", Array)
115
+ ], DataResourceEntry.prototype, "evidence", void 0);
116
+ __decorate([
117
+ property({ type: "object", optional: true }),
118
+ __metadata("design:type", Object)
119
+ ], DataResourceEntry.prototype, "extraData", void 0);
120
+ DataResourceEntry = __decorate([
121
+ entity()
122
+ ], DataResourceEntry);
123
+ export { DataResourceEntry };
124
+ //# sourceMappingURL=dataResourceEntry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataResourceEntry.js","sourceRoot":"","sources":["../../../src/entities/dataResourceEntry.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGnE;;GAEG;AAEI,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAC7B;;OAEG;IAEI,EAAE,CAAU;IAEnB;;O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nB;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;;qDACvB;AAMpB;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,CAAC,UAAU,EAAE,CAAC;;sDAC/D;AAMrB;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;mDACD;AAMpB;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACR;AApFzB,iBAAiB;IAD7B,MAAM,EAAE;GACI,iBAAiB,CAqF7B","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport { entity, property, SortDirection } from \"@twin.org/entity\";\nimport type { IOdrlPolicy } from \"@twin.org/standards-w3c-odrl\";\n\n/**\n * Data Resource Entry.\n */\n@entity()\nexport class DataResourceEntry {\n\t/**\n\t * The Id.\n\t */\n\t@property({ type: \"string\", isPrimary: true })\n\tpublic id!: string;\n\n\t/**\n\t * The trusted issuer of the compliance credential\n\t */\n\t@property({ type: \"string\" })\n\tpublic issuer!: string;\n\n\t/**\n\t * The name.\n\t */\n\t@property({ type: \"string\" })\n\tpublic name!: string;\n\n\t/**\n\t * The description.\n\t */\n\t@property({ type: \"string\", optional: true })\n\tpublic description?: string;\n\n\t/**\n\t * The Id of the producer of the data described by this Data Resource.\n\t */\n\t@property({ type: \"string\", isSecondary: true })\n\tpublic producedBy!: string;\n\n\t/**\n\t * The copyright owner\n\t */\n\t@property({ type: \"string\" })\n\tpublic copyrightOwnedBy!: string;\n\n\t/**\n\t * The license\n\t */\n\t@property({ type: \"string\" })\n\tpublic license!: string;\n\n\t/**\n\t * The data exchange component used to expose the Data Resource.\n\t * Only a URL pointing to the resource is stored\n\t */\n\t@property({ type: \"string\" })\n\tpublic exposedThrough!: string;\n\n\t/**\n\t * The Data Resource policy\n\t */\n\t@property({ type: \"array\" })\n\tpublic resourcePolicy!: IOdrlPolicy[];\n\n\t/**\n\t * Valid from\n\t */\n\t@property({ type: \"string\", format: \"date-time\" })\n\tpublic validFrom!: string;\n\n\t/**\n\t * Valid to\n\t */\n\t@property({ type: \"string\", format: \"date-time\" })\n\tpublic validUntil!: string;\n\n\t/**\n\t * Date created\n\t */\n\t@property({ type: \"string\", format: \"date-time\", sortDirection: SortDirection.Descending })\n\tpublic dateCreated!: string;\n\n\t/**\n\t * Evidences\n\t */\n\t@property({ type: \"array\" })\n\tpublic evidence!: string[];\n\n\t/**\n\t * Extended data of a Data Resource entry.\n\t */\n\t@property({ type: \"object\", optional: true })\n\tpublic extraData?: IJsonLdNodeObject;\n}\n"]}
@@ -0,0 +1,139 @@
1
+ import { entity, property, SortDirection } from "@twin.org/entity";
2
+ /**
3
+ * Data Space Connector Entry.
4
+ */
5
+ let DataSpaceConnectorEntry = class DataSpaceConnectorEntry {
6
+ /**
7
+ * The Id.
8
+ */
9
+ id;
10
+ /**
11
+ * The trusted issuer of the compliance credential.
12
+ */
13
+ issuer;
14
+ /**
15
+ * The name.
16
+ */
17
+ name;
18
+ /**
19
+ * The description.
20
+ */
21
+ description;
22
+ /**
23
+ * The identity of the Data Space Connector
24
+ */
25
+ identity;
26
+ /**
27
+ * Who maintains the Data Space Connector
28
+ */
29
+ maintainer;
30
+ /**
31
+ * The default endpoint
32
+ */
33
+ defaultEndpoint;
34
+ /**
35
+ * The activity push endpoint
36
+ */
37
+ pushActivityEndpoint;
38
+ /**
39
+ * The activity subscribe endpoint
40
+ */
41
+ subscriptionActivityEndpoint;
42
+ /**
43
+ * The pull data endpoint
44
+ */
45
+ pullDataEndpoint;
46
+ /**
47
+ * The pull data endpoint
48
+ */
49
+ offeredResource;
50
+ /**
51
+ * Valid from
52
+ */
53
+ validFrom;
54
+ /**
55
+ * Valid to
56
+ */
57
+ validUntil;
58
+ /**
59
+ * Date created
60
+ */
61
+ dateCreated;
62
+ /**
63
+ * Evidences
64
+ */
65
+ evidence;
66
+ /**
67
+ * Extended data of a DS Connector entry.
68
+ */
69
+ extraData;
70
+ };
71
+ __decorate([
72
+ property({ type: "string", isPrimary: true }),
73
+ __metadata("design:type", String)
74
+ ], DataSpaceConnectorEntry.prototype, "id", void 0);
75
+ __decorate([
76
+ property({ type: "string" }),
77
+ __metadata("design:type", String)
78
+ ], DataSpaceConnectorEntry.prototype, "issuer", void 0);
79
+ __decorate([
80
+ property({ type: "string", optional: true }),
81
+ __metadata("design:type", String)
82
+ ], DataSpaceConnectorEntry.prototype, "name", void 0);
83
+ __decorate([
84
+ property({ type: "string", optional: true }),
85
+ __metadata("design:type", String)
86
+ ], DataSpaceConnectorEntry.prototype, "description", void 0);
87
+ __decorate([
88
+ property({ type: "string" }),
89
+ __metadata("design:type", String)
90
+ ], DataSpaceConnectorEntry.prototype, "identity", void 0);
91
+ __decorate([
92
+ property({ type: "string", isSecondary: true }),
93
+ __metadata("design:type", String)
94
+ ], DataSpaceConnectorEntry.prototype, "maintainer", void 0);
95
+ __decorate([
96
+ property({ type: "object" }),
97
+ __metadata("design:type", Object)
98
+ ], DataSpaceConnectorEntry.prototype, "defaultEndpoint", void 0);
99
+ __decorate([
100
+ property({ type: "object" }),
101
+ __metadata("design:type", Object)
102
+ ], DataSpaceConnectorEntry.prototype, "pushActivityEndpoint", void 0);
103
+ __decorate([
104
+ property({ type: "object", optional: true }),
105
+ __metadata("design:type", Object)
106
+ ], DataSpaceConnectorEntry.prototype, "subscriptionActivityEndpoint", void 0);
107
+ __decorate([
108
+ property({ type: "object" }),
109
+ __metadata("design:type", Object)
110
+ ], DataSpaceConnectorEntry.prototype, "pullDataEndpoint", void 0);
111
+ __decorate([
112
+ property({ type: "array" }),
113
+ __metadata("design:type", Array)
114
+ ], DataSpaceConnectorEntry.prototype, "offeredResource", void 0);
115
+ __decorate([
116
+ property({ type: "string", format: "date-time" }),
117
+ __metadata("design:type", String)
118
+ ], DataSpaceConnectorEntry.prototype, "validFrom", void 0);
119
+ __decorate([
120
+ property({ type: "string", format: "date-time" }),
121
+ __metadata("design:type", String)
122
+ ], DataSpaceConnectorEntry.prototype, "validUntil", void 0);
123
+ __decorate([
124
+ property({ type: "string", format: "date-time", sortDirection: SortDirection.Descending }),
125
+ __metadata("design:type", String)
126
+ ], DataSpaceConnectorEntry.prototype, "dateCreated", void 0);
127
+ __decorate([
128
+ property({ type: "array" }),
129
+ __metadata("design:type", Array)
130
+ ], DataSpaceConnectorEntry.prototype, "evidence", void 0);
131
+ __decorate([
132
+ property({ type: "object", optional: true }),
133
+ __metadata("design:type", Object)
134
+ ], DataSpaceConnectorEntry.prototype, "extraData", void 0);
135
+ DataSpaceConnectorEntry = __decorate([
136
+ entity()
137
+ ], DataSpaceConnectorEntry);
138
+ export { DataSpaceConnectorEntry };
139
+ //# sourceMappingURL=dataSpaceConnectorEntry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataSpaceConnectorEntry.js","sourceRoot":"","sources":["../../../src/entities/dataSpaceConnectorEntry.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGnE;;GAEG;AAEI,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IACnC;;OAEG;IAEI,EAAE,CAAU;IAEnB;;OAEG;IAEI,MAAM,CAAU;IAEvB;;OAEG;IAEI,IAAI,CAAU;IAErB;;OAEG;IAEI,WAAW,CAAU;IAE5B;;OAEG;IAEI,QAAQ,CAAU;IAEzB;;OAEG;IAEI,UAAU,CAAU;IAE3B;;OAEG;IAEI,eAAe,CAAa;IAEnC;;OAEG;IAEI,oBAAoB,CAAa;IAExC;;OAEG;IAEI,4BAA4B,CAAa;IAEhD;;OAEG;IAEI,gBAAgB,CAAa;IAEpC;;OAEG;IAEI,eAAe,CAAY;IAElC;;OAEG;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E,CAAC;;2DACvB;AAMpB;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,CAAC,UAAU,EAAE,CAAC;;4DAC/D;AAMrB;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;yDACD;AAMpB;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACR;AA/FzB,uBAAuB;IADnC,MAAM,EAAE;GACI,uBAAuB,CAgGnC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport { entity, property, SortDirection } from \"@twin.org/entity\";\nimport type { IEndpoint } from \"@twin.org/standards-gaia-x\";\n\n/**\n * Data Space Connector Entry.\n */\n@entity()\nexport class DataSpaceConnectorEntry {\n\t/**\n\t * The Id.\n\t */\n\t@property({ type: \"string\", isPrimary: true })\n\tpublic id!: string;\n\n\t/**\n\t * The trusted issuer of the compliance credential.\n\t */\n\t@property({ type: \"string\" })\n\tpublic issuer!: string;\n\n\t/**\n\t * The name.\n\t */\n\t@property({ type: \"string\", optional: true })\n\tpublic name?: string;\n\n\t/**\n\t * The description.\n\t */\n\t@property({ type: \"string\", optional: true })\n\tpublic description?: string;\n\n\t/**\n\t * The identity of the Data Space Connector\n\t */\n\t@property({ type: \"string\" })\n\tpublic identity!: string;\n\n\t/**\n\t * Who maintains the Data Space Connector\n\t */\n\t@property({ type: \"string\", isSecondary: true })\n\tpublic maintainer!: string;\n\n\t/**\n\t * The default endpoint\n\t */\n\t@property({ type: \"object\" })\n\tpublic defaultEndpoint!: IEndpoint;\n\n\t/**\n\t * The activity push endpoint\n\t */\n\t@property({ type: \"object\" })\n\tpublic pushActivityEndpoint!: IEndpoint;\n\n\t/**\n\t * The activity subscribe endpoint\n\t */\n\t@property({ type: \"object\", optional: true })\n\tpublic subscriptionActivityEndpoint?: IEndpoint;\n\n\t/**\n\t * The pull data endpoint\n\t */\n\t@property({ type: \"object\" })\n\tpublic pullDataEndpoint!: IEndpoint;\n\n\t/**\n\t * The pull data endpoint\n\t */\n\t@property({ type: \"array\" })\n\tpublic offeredResource!: string[];\n\n\t/**\n\t * Valid from\n\t */\n\t@property({ type: \"string\", format: \"date-time\" })\n\tpublic validFrom!: string;\n\n\t/**\n\t * Valid to\n\t */\n\t@property({ type: \"string\", format: \"date-time\" })\n\tpublic validUntil!: string;\n\n\t/**\n\t * Date created\n\t */\n\t@property({ type: \"string\", format: \"date-time\", sortDirection: SortDirection.Descending })\n\tpublic dateCreated!: string;\n\n\t/**\n\t * Evidences\n\t */\n\t@property({ type: \"array\" })\n\tpublic evidence!: string[];\n\n\t/**\n\t * Extended data of a DS Connector entry.\n\t */\n\t@property({ type: \"object\", optional: true })\n\tpublic extraData?: IJsonLdNodeObject;\n}\n"]}
@@ -0,0 +1,91 @@
1
+ import { entity, property, SortDirection } from "@twin.org/entity";
2
+ /**
3
+ * Participant entry.
4
+ */
5
+ let ParticipantEntry = class ParticipantEntry {
6
+ /**
7
+ * The participant Id.
8
+ */
9
+ id;
10
+ /**
11
+ * The trusted issuer of the compliance credential
12
+ */
13
+ issuer;
14
+ /**
15
+ * The legal registration number.
16
+ */
17
+ registrationNumber;
18
+ /**
19
+ * The legal name.
20
+ */
21
+ legalName;
22
+ /**
23
+ * Address
24
+ */
25
+ legalAddress;
26
+ /**
27
+ * Valid from
28
+ */
29
+ validFrom;
30
+ /**
31
+ * Valid to
32
+ */
33
+ validUntil;
34
+ /**
35
+ * Date created
36
+ */
37
+ dateCreated;
38
+ /**
39
+ * Evidences
40
+ */
41
+ evidence;
42
+ /**
43
+ * Extended data of a Participant entry.
44
+ */
45
+ extraData;
46
+ };
47
+ __decorate([
48
+ property({ type: "string", isPrimary: true }),
49
+ __metadata("design:type", String)
50
+ ], ParticipantEntry.prototype, "id", void 0);
51
+ __decorate([
52
+ property({ type: "string" }),
53
+ __metadata("design:type", String)
54
+ ], ParticipantEntry.prototype, "issuer", void 0);
55
+ __decorate([
56
+ property({ type: "object", isSecondary: true }),
57
+ __metadata("design:type", Object)
58
+ ], ParticipantEntry.prototype, "registrationNumber", void 0);
59
+ __decorate([
60
+ property({ type: "string", isSecondary: true }),
61
+ __metadata("design:type", String)
62
+ ], ParticipantEntry.prototype, "legalName", void 0);
63
+ __decorate([
64
+ property({ type: "object" }),
65
+ __metadata("design:type", Object)
66
+ ], ParticipantEntry.prototype, "legalAddress", void 0);
67
+ __decorate([
68
+ property({ type: "string", format: "date-time" }),
69
+ __metadata("design:type", String)
70
+ ], ParticipantEntry.prototype, "validFrom", void 0);
71
+ __decorate([
72
+ property({ type: "string", format: "date-time" }),
73
+ __metadata("design:type", String)
74
+ ], ParticipantEntry.prototype, "validUntil", void 0);
75
+ __decorate([
76
+ property({ type: "string", format: "date-time", sortDirection: SortDirection.Descending }),
77
+ __metadata("design:type", String)
78
+ ], ParticipantEntry.prototype, "dateCreated", void 0);
79
+ __decorate([
80
+ property({ type: "array" }),
81
+ __metadata("design:type", Array)
82
+ ], ParticipantEntry.prototype, "evidence", void 0);
83
+ __decorate([
84
+ property({ type: "object", optional: true }),
85
+ __metadata("design:type", Object)
86
+ ], ParticipantEntry.prototype, "extraData", void 0);
87
+ ParticipantEntry = __decorate([
88
+ entity()
89
+ ], ParticipantEntry);
90
+ export { ParticipantEntry };
91
+ //# sourceMappingURL=participantEntry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"participantEntry.js","sourceRoot":"","sources":["../../../src/entities/participantEntry.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGnE;;GAEG;AAEI,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC5B;;OAEG;IAEI,EAAE,CAAU;IAEnB;;OAEG;IAEI,MAAM,CA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,gBAAgB,CA4D5B","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport { entity, property, SortDirection } from \"@twin.org/entity\";\nimport type { IAddress, IRegistrationNumber } from \"@twin.org/standards-gaia-x\";\n\n/**\n * Participant entry.\n */\n@entity()\nexport class ParticipantEntry {\n\t/**\n\t * The participant Id.\n\t */\n\t@property({ type: \"string\", isPrimary: true })\n\tpublic id!: string;\n\n\t/**\n\t * The trusted issuer of the compliance credential\n\t */\n\t@property({ type: \"string\" })\n\tpublic issuer!: string;\n\n\t/**\n\t * The legal registration number.\n\t */\n\t@property({ type: \"object\", isSecondary: true })\n\tpublic registrationNumber!: IRegistrationNumber;\n\n\t/**\n\t * The legal name.\n\t */\n\t@property({ type: \"string\", isSecondary: true })\n\tpublic legalName!: string;\n\n\t/**\n\t * Address\n\t */\n\t@property({ type: \"object\" })\n\tpublic legalAddress!: IAddress;\n\n\t/**\n\t * Valid from\n\t */\n\t@property({ type: \"string\", format: \"date-time\" })\n\tpublic validFrom!: string;\n\n\t/**\n\t * Valid to\n\t */\n\t@property({ type: \"string\", format: \"date-time\" })\n\tpublic validUntil!: string;\n\n\t/**\n\t * Date created\n\t */\n\t@property({ type: \"string\", format: \"date-time\", sortDirection: SortDirection.Descending })\n\tpublic dateCreated!: string;\n\n\t/**\n\t * Evidences\n\t */\n\t@property({ type: \"array\" })\n\tpublic evidence!: string[];\n\n\t/**\n\t * Extended data of a Participant entry.\n\t */\n\t@property({ type: \"object\", optional: true })\n\tpublic extraData?: IJsonLdNodeObject;\n}\n"]}
@@ -0,0 +1,115 @@
1
+ import { entity, property, SortDirection } from "@twin.org/entity";
2
+ /**
3
+ * Service Offering Entry.
4
+ */
5
+ let ServiceOfferingEntry = class ServiceOfferingEntry {
6
+ /**
7
+ * The service Id.
8
+ */
9
+ id;
10
+ /**
11
+ * The trusted issuer of the compliance credential associated with
12
+ */
13
+ issuer;
14
+ /**
15
+ * The service name.
16
+ */
17
+ name;
18
+ /**
19
+ * The service description.
20
+ */
21
+ description;
22
+ /**
23
+ * The provider Id
24
+ */
25
+ providedBy;
26
+ /**
27
+ * The REST endpoint
28
+ */
29
+ endpoint;
30
+ /**
31
+ * The policy
32
+ */
33
+ servicePolicy;
34
+ /**
35
+ * Resources aggregated
36
+ */
37
+ aggregationOfResources;
38
+ /**
39
+ * Valid from
40
+ */
41
+ validFrom;
42
+ /**
43
+ * Valid to
44
+ */
45
+ validUntil;
46
+ /**
47
+ * Date created
48
+ */
49
+ dateCreated;
50
+ /**
51
+ * Evidences
52
+ */
53
+ evidence;
54
+ /**
55
+ * Extended data of a Service Offering entry.
56
+ */
57
+ extraData;
58
+ };
59
+ __decorate([
60
+ property({ type: "string", isPrimary: true }),
61
+ __metadata("design:type", String)
62
+ ], ServiceOfferingEntry.prototype, "id", void 0);
63
+ __decorate([
64
+ property({ type: "string" }),
65
+ __metadata("design:type", String)
66
+ ], ServiceOfferingEntry.prototype, "issuer", void 0);
67
+ __decorate([
68
+ property({ type: "string" }),
69
+ __metadata("design:type", String)
70
+ ], ServiceOfferingEntry.prototype, "name", void 0);
71
+ __decorate([
72
+ property({ type: "string", optional: true }),
73
+ __metadata("design:type", String)
74
+ ], ServiceOfferingEntry.prototype, "description", void 0);
75
+ __decorate([
76
+ property({ type: "string", isSecondary: true }),
77
+ __metadata("design:type", String)
78
+ ], ServiceOfferingEntry.prototype, "providedBy", void 0);
79
+ __decorate([
80
+ property({ type: "object", optional: true }),
81
+ __metadata("design:type", Object)
82
+ ], ServiceOfferingEntry.prototype, "endpoint", void 0);
83
+ __decorate([
84
+ property({ type: "array" }),
85
+ __metadata("design:type", Array)
86
+ ], ServiceOfferingEntry.prototype, "servicePolicy", void 0);
87
+ __decorate([
88
+ property({ type: "array", optional: true }),
89
+ __metadata("design:type", Array)
90
+ ], ServiceOfferingEntry.prototype, "aggregationOfResources", void 0);
91
+ __decorate([
92
+ property({ type: "string", format: "date-time" }),
93
+ __metadata("design:type", String)
94
+ ], ServiceOfferingEntry.prototype, "validFrom", void 0);
95
+ __decorate([
96
+ property({ type: "string", format: "date-time" }),
97
+ __metadata("design:type", String)
98
+ ], ServiceOfferingEntry.prototype, "validUntil", void 0);
99
+ __decorate([
100
+ property({ type: "string", format: "date-time", sortDirection: SortDirection.Descending }),
101
+ __metadata("design:type", String)
102
+ ], ServiceOfferingEntry.prototype, "dateCreated", void 0);
103
+ __decorate([
104
+ property({ type: "array" }),
105
+ __metadata("design:type", Array)
106
+ ], ServiceOfferingEntry.prototype, "evidence", void 0);
107
+ __decorate([
108
+ property({ type: "object", optional: true }),
109
+ __metadata("design:type", Object)
110
+ ], ServiceOfferingEntry.prototype, "extraData", void 0);
111
+ ServiceOfferingEntry = __decorate([
112
+ entity()
113
+ ], ServiceOfferingEntry);
114
+ export { ServiceOfferingEntry };
115
+ //# sourceMappingURL=serviceOfferingEntry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serviceOfferingEntry.js","sourceRoot":"","sources":["../../../src/entities/serviceOfferingEntry.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAInE;;GAEG;AAEI,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAChC;;OAEG;IAEI,EAAE,CAAU;IAEnB;;OAEG;IAEI,MAAM,CAAU;IAEvB;;OAEG;IAEI,IAAI,CAAU;IAErB;;OAEG;IAEI,WAAW,CAAU;IAE5B;;OAEG;IAEI,UAAU,CAAU;IAE3B;;OAEG;IAEI,QAAQ,CAAa;IAE5B;;OAEG;IAEI,aAAa,CAAiB;IAErC;;OAEG;IAEI,sBAAsB,CAAY;IAEzC;;OAEG;IAEI,SAAS,CAAU;IAE1B;;OAEG;IAEI,UAAU,CAAU;IAE3B;;OAEG;IAEI,WAAW,CAAU;IAE5B;;OAEG;IAEI,QAAQ,CAAY;IAE3B;;OA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M,EAAE;GACI,oBAAoB,CA8EhC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport { entity, property, SortDirection } from \"@twin.org/entity\";\nimport type { IEndpoint } from \"@twin.org/standards-gaia-x\";\nimport type { IOdrlPolicy } from \"@twin.org/standards-w3c-odrl\";\n\n/**\n * Service Offering Entry.\n */\n@entity()\nexport class ServiceOfferingEntry {\n\t/**\n\t * The service Id.\n\t */\n\t@property({ type: \"string\", isPrimary: true })\n\tpublic id!: string;\n\n\t/**\n\t * The trusted issuer of the compliance credential associated with\n\t */\n\t@property({ type: \"string\" })\n\tpublic issuer!: string;\n\n\t/**\n\t * The service name.\n\t */\n\t@property({ type: \"string\" })\n\tpublic name!: string;\n\n\t/**\n\t * The service description.\n\t */\n\t@property({ type: \"string\", optional: true })\n\tpublic description?: string;\n\n\t/**\n\t * The provider Id\n\t */\n\t@property({ type: \"string\", isSecondary: true })\n\tpublic providedBy!: string;\n\n\t/**\n\t * The REST endpoint\n\t */\n\t@property({ type: \"object\", optional: true })\n\tpublic endpoint?: IEndpoint;\n\n\t/**\n\t * The policy\n\t */\n\t@property({ type: \"array\" })\n\tpublic servicePolicy!: IOdrlPolicy[];\n\n\t/**\n\t * Resources aggregated\n\t */\n\t@property({ type: \"array\", optional: true })\n\tpublic aggregationOfResources?: string[];\n\n\t/**\n\t * Valid from\n\t */\n\t@property({ type: \"string\", format: \"date-time\" })\n\tpublic validFrom!: string;\n\n\t/**\n\t * Valid to\n\t */\n\t@property({ type: \"string\", format: \"date-time\" })\n\tpublic validUntil!: string;\n\n\t/**\n\t * Date created\n\t */\n\t@property({ type: \"string\", format: \"date-time\", sortDirection: SortDirection.Descending })\n\tpublic dateCreated!: string;\n\n\t/**\n\t * Evidences\n\t */\n\t@property({ type: \"array\" })\n\tpublic evidence!: string[];\n\n\t/**\n\t * Extended data of a Service Offering entry.\n\t */\n\t@property({ type: \"object\", optional: true })\n\tpublic extraData?: IJsonLdNodeObject;\n}\n"]}