@twin.org/standards-gaia-x 0.0.3-next.49 → 0.0.3-next.50

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.
@@ -1 +1 @@
1
- {"version":3,"file":"IGaiaXDataResource.js","sourceRoot":"","sources":["../../../src/models/IGaiaXDataResource.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { IOdrlPolicy } from \"@twin.org/standards-w3c-odrl\";\nimport type { GaiaXContextType } from \"./gaiaXContextType.js\";\nimport type { GaiaXTypes } from \"./gaiaXTypes.js\";\nimport type { IGaiaXDataExchangeComponent } from \"./IGaiaXDataExchangeComponent.js\";\nimport type { IGaiaXEntity } from \"./IGaiaXEntity.js\";\nimport type { IGaiaXLegalPerson } from \"./IGaiaXLegalPerson.js\";\n\n/**\n * A Data Resource as defined by Gaia-X.\n * See also W3C DCAT Dataset https://www.w3.org/TR/vocab-dcat-3/.\n */\nexport interface IGaiaXDataResource extends IGaiaXEntity {\n\t/**\n\t * The LD Context\n\t */\n\t\"@context\": GaiaXContextType;\n\n\t/**\n\t * Subject Id\n\t */\n\tid: string;\n\n\t/**\n\t * Subject type\n\t */\n\ttype: typeof GaiaXTypes.DataResource;\n\n\t/**\n\t * The Resource Name\n\t */\n\tname: string;\n\n\t/**\n\t * Exposed through a Data Exchange Component.\n\t * 'string' in case just an Id pointing to the Data Exchange Component is supplied\n\t * the third case covers the idiom where a JSON-LD Node is supplied with id and type.\n\t */\n\texposedThrough:\n\t\t| IGaiaXDataExchangeComponent\n\t\t| string\n\t\t| (IJsonLdNodeObject & { id: string; type: typeof GaiaXTypes.DataExchangeComponent });\n\n\t/**\n\t * Who is the data producer\n\t */\n\tproducedBy: IGaiaXLegalPerson | string;\n\n\t/**\n\t * Pointer (URL) to the license\n\t */\n\tlicense: string;\n\n\t/**\n\t * Copyright owner\n\t */\n\tcopyrightOwnedBy: IGaiaXLegalPerson | string;\n\n\t/**\n\t * ODRL Policy\n\t */\n\tresourcePolicy: ObjectOrArray<IOdrlPolicy>;\n}\n"]}
1
+ {"version":3,"file":"IGaiaXDataResource.js","sourceRoot":"","sources":["../../../src/models/IGaiaXDataResource.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { IOdrlPolicy } from \"@twin.org/standards-w3c-odrl\";\nimport type { GaiaXContextType } from \"./gaiaXContextType.js\";\nimport type { GaiaXTypes } from \"./gaiaXTypes.js\";\nimport type { IGaiaXDataExchangeComponent } from \"./IGaiaXDataExchangeComponent.js\";\nimport type { IGaiaXEntity } from \"./IGaiaXEntity.js\";\nimport type { IGaiaXLegalPerson } from \"./IGaiaXLegalPerson.js\";\n\n/**\n * A Data Resource as defined by Gaia-X.\n * See also W3C DCAT Dataset https://www.w3.org/TR/vocab-dcat-3/.\n */\nexport interface IGaiaXDataResource extends IGaiaXEntity {\n\t/**\n\t * The LD Context\n\t */\n\t\"@context\": GaiaXContextType;\n\n\t/**\n\t * Subject Id\n\t */\n\tid: string;\n\n\t/**\n\t * Subject type\n\t */\n\ttype: typeof GaiaXTypes.DataResource;\n\n\t/**\n\t * The Resource Name\n\t */\n\tname: string;\n\n\t/**\n\t * Exposed through a Data Exchange Component.\n\t * 'string' in case just an Id pointing to the Data Exchange Component is supplied\n\t * the third case covers the idiom where a JSON-LD Node is supplied with id and type.\n\t */\n\texposedThrough:\n\t\t| IGaiaXDataExchangeComponent\n\t\t| string\n\t\t| (IJsonLdNodeObject & { id: string; type: typeof GaiaXTypes.DataExchangeComponent });\n\n\t/**\n\t * Who is the data producer\n\t */\n\tproducedBy: IGaiaXLegalPerson | string;\n\n\t/**\n\t * Pointer (URL) to the license\n\t */\n\tlicense: string;\n\n\t/**\n\t * Copyright owner\n\t */\n\tcopyrightOwnedBy: IGaiaXLegalPerson | string;\n\n\t/**\n\t * ODRL Policy\n\t */\n\tresourcePolicy: IOdrlPolicy | IOdrlPolicy[];\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"IGaiaXServiceOffering.js","sourceRoot":"","sources":["../../../src/models/IGaiaXServiceOffering.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { IOdrlPolicy } from \"@twin.org/standards-w3c-odrl\";\nimport type { GaiaXTypes } from \"./gaiaXTypes.js\";\nimport type { IGaiaXDataResource } from \"./IGaiaXDataResource.js\";\nimport type { IGaiaXEndpoint } from \"./IGaiaXEndpoint.js\";\nimport type { IGaiaXEntity } from \"./IGaiaXEntity.js\";\nimport type { IGaiaXLegalPerson } from \"./IGaiaXLegalPerson.js\";\n\n/**\n * A Service offering\n */\nexport interface IGaiaXServiceOffering extends IGaiaXEntity {\n\t/**\n\t * Type\n\t */\n\ttype: typeof GaiaXTypes.ServiceOffering;\n\n\t/**\n\t * Name of the Service Offering.\n\t */\n\tname: string;\n\n\t/**\n\t * Participant that provides the offering\n\t */\n\tprovidedBy:\n\t\t| string\n\t\t| IGaiaXLegalPerson\n\t\t| (IJsonLdNodeObject & { id: string; type: typeof GaiaXTypes.LegalPerson });\n\n\t/**\n\t * ODRL policy associated to the service offering\n\t */\n\tservicePolicy: ObjectOrArray<IOdrlPolicy>;\n\n\t/**\n\t * Resources aggregated\n\t * It is supported different representations, inline,\n\t * by reference both providing the URI or a partial JSON-LD Node object\n\t */\n\taggregationOfResources?:\n\t\t| string[]\n\t\t| IGaiaXDataResource[]\n\t\t| (IJsonLdNodeObject & { id: string; type: typeof GaiaXTypes.DataResource });\n\n\t/**\n\t * The endpoint\n\t */\n\tendpoint?: IGaiaXEndpoint;\n}\n"]}
1
+ {"version":3,"file":"IGaiaXServiceOffering.js","sourceRoot":"","sources":["../../../src/models/IGaiaXServiceOffering.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { IOdrlPolicy } from \"@twin.org/standards-w3c-odrl\";\nimport type { GaiaXTypes } from \"./gaiaXTypes.js\";\nimport type { IGaiaXDataResource } from \"./IGaiaXDataResource.js\";\nimport type { IGaiaXEndpoint } from \"./IGaiaXEndpoint.js\";\nimport type { IGaiaXEntity } from \"./IGaiaXEntity.js\";\nimport type { IGaiaXLegalPerson } from \"./IGaiaXLegalPerson.js\";\n\n/**\n * A Service offering\n */\nexport interface IGaiaXServiceOffering extends IGaiaXEntity {\n\t/**\n\t * Type\n\t */\n\ttype: typeof GaiaXTypes.ServiceOffering;\n\n\t/**\n\t * Name of the Service Offering.\n\t */\n\tname: string;\n\n\t/**\n\t * Participant that provides the offering\n\t */\n\tprovidedBy:\n\t\t| string\n\t\t| IGaiaXLegalPerson\n\t\t| (IJsonLdNodeObject & { id: string; type: typeof GaiaXTypes.LegalPerson });\n\n\t/**\n\t * ODRL policy associated to the service offering\n\t */\n\tservicePolicy: IOdrlPolicy | IOdrlPolicy[];\n\n\t/**\n\t * Resources aggregated\n\t * It is supported different representations, inline,\n\t * by reference both providing the URI or a partial JSON-LD Node object\n\t */\n\taggregationOfResources?:\n\t\t| string[]\n\t\t| IGaiaXDataResource[]\n\t\t| (IJsonLdNodeObject & { id: string; type: typeof GaiaXTypes.DataResource });\n\n\t/**\n\t * The endpoint\n\t */\n\tendpoint?: IGaiaXEndpoint;\n}\n"]}
@@ -1,4 +1,3 @@
1
- import type { ObjectOrArray } from "@twin.org/core";
2
1
  import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
3
2
  import type { IOdrlPolicy } from "@twin.org/standards-w3c-odrl";
4
3
  import type { GaiaXContextType } from "./gaiaXContextType.js";
@@ -51,5 +50,5 @@ export interface IGaiaXDataResource extends IGaiaXEntity {
51
50
  /**
52
51
  * ODRL Policy
53
52
  */
54
- resourcePolicy: ObjectOrArray<IOdrlPolicy>;
53
+ resourcePolicy: IOdrlPolicy | IOdrlPolicy[];
55
54
  }
@@ -1,4 +1,3 @@
1
- import type { ObjectOrArray } from "@twin.org/core";
2
1
  import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
3
2
  import type { IOdrlPolicy } from "@twin.org/standards-w3c-odrl";
4
3
  import type { GaiaXTypes } from "./gaiaXTypes.js";
@@ -28,7 +27,7 @@ export interface IGaiaXServiceOffering extends IGaiaXEntity {
28
27
  /**
29
28
  * ODRL policy associated to the service offering
30
29
  */
31
- servicePolicy: ObjectOrArray<IOdrlPolicy>;
30
+ servicePolicy: IOdrlPolicy | IOdrlPolicy[];
32
31
  /**
33
32
  * Resources aggregated
34
33
  * It is supported different representations, inline,
package/docs/changelog.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @twin.org/standards-gaia-x - Changelog
2
2
 
3
+ ## [0.0.3-next.50](https://github.com/twinfoundation/standards/compare/standards-gaia-x-v0.0.3-next.49...standards-gaia-x-v0.0.3-next.50) (2026-03-09)
4
+
5
+
6
+ ### Features
7
+
8
+ * remove ObjectOrArray usage ([61fd52d](https://github.com/twinfoundation/standards/commit/61fd52da035356bbe5bcc315367089405b4d1386))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/standards-w3c-odrl bumped from 0.0.3-next.49 to 0.0.3-next.50
16
+
3
17
  ## [0.0.3-next.49](https://github.com/twinfoundation/standards/compare/standards-gaia-x-v0.0.3-next.48...standards-gaia-x-v0.0.3-next.49) (2026-03-06)
4
18
 
5
19
 
@@ -89,7 +89,7 @@ Copyright owner
89
89
 
90
90
  ### resourcePolicy
91
91
 
92
- > **resourcePolicy**: `ObjectOrArray`\<`IOdrlPolicy`\>
92
+ > **resourcePolicy**: `IOdrlPolicy` \| `IOdrlPolicy`[]
93
93
 
94
94
  ODRL Policy
95
95
 
@@ -74,7 +74,7 @@ Participant that provides the offering
74
74
 
75
75
  ### servicePolicy
76
76
 
77
- > **servicePolicy**: `ObjectOrArray`\<`IOdrlPolicy`\>
77
+ > **servicePolicy**: `IOdrlPolicy` \| `IOdrlPolicy`[]
78
78
 
79
79
  ODRL policy associated to the service offering
80
80
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/standards-gaia-x",
3
- "version": "0.0.3-next.49",
3
+ "version": "0.0.3-next.50",
4
4
  "description": "Models which define the structure of Gaia-x",
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,7 +17,7 @@
17
17
  "@twin.org/core": "next",
18
18
  "@twin.org/data-core": "next",
19
19
  "@twin.org/data-json-ld": "next",
20
- "@twin.org/standards-w3c-odrl": "0.0.3-next.49"
20
+ "@twin.org/standards-w3c-odrl": "0.0.3-next.50"
21
21
  },
22
22
  "main": "./dist/es/index.js",
23
23
  "types": "./dist/types/index.d.ts",