@twin.org/standards-gaia-x 0.0.1-next.41 → 0.0.1-next.43
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/dist/types/index.d.ts +1 -0
- package/dist/types/models/IDataExchangeComponent.d.ts +5 -0
- package/dist/types/models/IDataResource.d.ts +5 -4
- package/dist/types/models/IParticipant.d.ts +3 -3
- package/dist/types/models/IServiceOffering.d.ts +5 -4
- package/dist/types/models/gaiaXContextType.d.ts +14 -0
- package/docs/changelog.md +14 -0
- package/docs/reference/index.md +1 -0
- package/docs/reference/interfaces/IDataExchangeComponent.md +12 -0
- package/docs/reference/interfaces/IDataResource.md +2 -2
- package/docs/reference/interfaces/IParticipant.md +1 -1
- package/docs/reference/interfaces/IServiceOffering.md +2 -2
- package/docs/reference/type-aliases/GaiaXContextType.md +5 -0
- package/package.json +2 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import type { IJsonLdKeyword, IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
|
+
import type { GaiaXContextType } from "./gaiaXContextType";
|
|
2
3
|
import type { GaiaXTypes } from "./gaiaXTypes";
|
|
3
4
|
/**
|
|
4
5
|
* Data Exchange component as defined by Gaia-X
|
|
5
6
|
* https://docs.gaia-x.eu/ontology/development/classes/DataExchangeComponent
|
|
6
7
|
*/
|
|
7
8
|
export interface IDataExchangeComponent extends IJsonLdNodeObject {
|
|
9
|
+
/**
|
|
10
|
+
* The LD Context
|
|
11
|
+
*/
|
|
12
|
+
"@context": GaiaXContextType;
|
|
8
13
|
/**
|
|
9
14
|
* The type of JSON-LD node
|
|
10
15
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { ObjectOrArray } from "@twin.org/core";
|
|
2
|
+
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
3
|
+
import type { GaiaXContextType } from "./gaiaXContextType";
|
|
3
4
|
import type { GaiaXTypes } from "./gaiaXTypes";
|
|
4
5
|
import type { IDataExchangeComponent } from "./IDataExchangeComponent";
|
|
5
6
|
import type { IParticipant } from "./IParticipant";
|
|
@@ -11,7 +12,7 @@ export interface IDataResource extends IJsonLdNodeObject {
|
|
|
11
12
|
/**
|
|
12
13
|
* The LD Context
|
|
13
14
|
*/
|
|
14
|
-
"@context":
|
|
15
|
+
"@context": GaiaXContextType;
|
|
15
16
|
/**
|
|
16
17
|
* Subject Id
|
|
17
18
|
*/
|
|
@@ -52,5 +53,5 @@ export interface IDataResource extends IJsonLdNodeObject {
|
|
|
52
53
|
/**
|
|
53
54
|
* ODRL Policy
|
|
54
55
|
*/
|
|
55
|
-
resourcePolicy: IJsonLdNodeObject
|
|
56
|
+
resourcePolicy: ObjectOrArray<IJsonLdNodeObject>;
|
|
56
57
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
|
+
import type { GaiaXContextType } from "./gaiaXContextType";
|
|
3
3
|
import type { GaiaXTypes } from "./gaiaXTypes";
|
|
4
4
|
import type { IAddress } from "./IAddress";
|
|
5
5
|
import type { IRegistrationNumber } from "./IRegistrationNumber";
|
|
@@ -10,7 +10,7 @@ export interface IParticipant extends IJsonLdNodeObject {
|
|
|
10
10
|
/**
|
|
11
11
|
* The LD context
|
|
12
12
|
*/
|
|
13
|
-
"@context":
|
|
13
|
+
"@context": GaiaXContextType;
|
|
14
14
|
/**
|
|
15
15
|
* The participant Id.
|
|
16
16
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { ObjectOrArray } from "@twin.org/core";
|
|
2
|
+
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
3
|
+
import type { GaiaXContextType } from "./gaiaXContextType";
|
|
3
4
|
import type { GaiaXTypes } from "./gaiaXTypes";
|
|
4
5
|
import type { IDataResource } from "./IDataResource";
|
|
5
6
|
import type { IEndpoint } from "./IEndpoint";
|
|
@@ -11,7 +12,7 @@ export interface IServiceOffering extends IJsonLdNodeObject {
|
|
|
11
12
|
/**
|
|
12
13
|
* The LD context
|
|
13
14
|
*/
|
|
14
|
-
"@context":
|
|
15
|
+
"@context": GaiaXContextType;
|
|
15
16
|
/**
|
|
16
17
|
* Id
|
|
17
18
|
*/
|
|
@@ -38,7 +39,7 @@ export interface IServiceOffering extends IJsonLdNodeObject {
|
|
|
38
39
|
/**
|
|
39
40
|
* ODRL policy associated to the service offering
|
|
40
41
|
*/
|
|
41
|
-
servicePolicy: IJsonLdNodeObject
|
|
42
|
+
servicePolicy: ObjectOrArray<IJsonLdNodeObject>;
|
|
42
43
|
/**
|
|
43
44
|
* Resources aggregated
|
|
44
45
|
* It is supported different representations, inline,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { IJsonLdContextDefinitionElement } from "@twin.org/data-json-ld";
|
|
2
|
+
import type { GaiaXContexts } from "./gaiaXContexts";
|
|
3
|
+
/**
|
|
4
|
+
* The Gaia-X JSON-LD context type.
|
|
5
|
+
*/
|
|
6
|
+
export type GaiaXContextType = typeof GaiaXContexts.GaiaXLdContext | [
|
|
7
|
+
...IJsonLdContextDefinitionElement[],
|
|
8
|
+
typeof GaiaXContexts.GaiaXLdContext,
|
|
9
|
+
IJsonLdContextDefinitionElement
|
|
10
|
+
] | [
|
|
11
|
+
IJsonLdContextDefinitionElement,
|
|
12
|
+
typeof GaiaXContexts.GaiaXLdContext,
|
|
13
|
+
...IJsonLdContextDefinitionElement[]
|
|
14
|
+
];
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @twin.org/standards-gaia-x - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.1-next.43](https://github.com/twinfoundation/standards/compare/standards-gaia-x-v0.0.1-next.42...standards-gaia-x-v0.0.1-next.43) (2025-05-20)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* align Data Resource and Service Offering definition (ODRL polic… ([#27](https://github.com/twinfoundation/standards/issues/27)) ([20797be](https://github.com/twinfoundation/standards/commit/20797beff059c6fb253401d49b654cd7a57762d5))
|
|
9
|
+
|
|
10
|
+
## [0.0.1-next.42](https://github.com/twinfoundation/standards/compare/standards-gaia-x-v0.0.1-next.41...standards-gaia-x-v0.0.1-next.42) (2025-05-09)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* refine the LD Context of Gaia-X entities ([#24](https://github.com/twinfoundation/standards/issues/24)) ([151c7f9](https://github.com/twinfoundation/standards/commit/151c7f940c900daac6c98a6f89ea5f708b25a1bd))
|
|
16
|
+
|
|
3
17
|
## [0.0.1-next.41](https://github.com/twinfoundation/standards/compare/standards-gaia-x-v0.0.1-next.40...standards-gaia-x-v0.0.1-next.41) (2025-05-08)
|
|
4
18
|
|
|
5
19
|
|
package/docs/reference/index.md
CHANGED
|
@@ -13,6 +13,18 @@ https://docs.gaia-x.eu/ontology/development/classes/DataExchangeComponent
|
|
|
13
13
|
|
|
14
14
|
## Properties
|
|
15
15
|
|
|
16
|
+
### @context
|
|
17
|
+
|
|
18
|
+
> **@context**: [`GaiaXContextType`](../type-aliases/GaiaXContextType.md)
|
|
19
|
+
|
|
20
|
+
The LD Context
|
|
21
|
+
|
|
22
|
+
#### Overrides
|
|
23
|
+
|
|
24
|
+
`IJsonLdNodeObject.@context`
|
|
25
|
+
|
|
26
|
+
***
|
|
27
|
+
|
|
16
28
|
### type
|
|
17
29
|
|
|
18
30
|
> **type**: `"DataExchangeComponent"` \| \[`"DataExchangeComponent"`, `...string[]`\]
|
|
@@ -15,7 +15,7 @@ See also W3C DCAT Dataset https://www.w3.org/TR/vocab-dcat-3/.
|
|
|
15
15
|
|
|
16
16
|
### @context
|
|
17
17
|
|
|
18
|
-
> **@context**: `
|
|
18
|
+
> **@context**: [`GaiaXContextType`](../type-aliases/GaiaXContextType.md)
|
|
19
19
|
|
|
20
20
|
The LD Context
|
|
21
21
|
|
|
@@ -93,6 +93,6 @@ Copyright owner
|
|
|
93
93
|
|
|
94
94
|
### resourcePolicy
|
|
95
95
|
|
|
96
|
-
> **resourcePolicy**: `IJsonLdNodeObject
|
|
96
|
+
> **resourcePolicy**: `ObjectOrArray`\<`IJsonLdNodeObject`\>
|
|
97
97
|
|
|
98
98
|
ODRL Policy
|
|
@@ -14,7 +14,7 @@ A Legal Person participating in the ecosystem
|
|
|
14
14
|
|
|
15
15
|
### @context
|
|
16
16
|
|
|
17
|
-
> **@context**: `
|
|
17
|
+
> **@context**: [`GaiaXContextType`](../type-aliases/GaiaXContextType.md)
|
|
18
18
|
|
|
19
19
|
The LD context
|
|
20
20
|
|
|
@@ -14,7 +14,7 @@ A Service offering
|
|
|
14
14
|
|
|
15
15
|
### @context
|
|
16
16
|
|
|
17
|
-
> **@context**: `
|
|
17
|
+
> **@context**: [`GaiaXContextType`](../type-aliases/GaiaXContextType.md)
|
|
18
18
|
|
|
19
19
|
The LD context
|
|
20
20
|
|
|
@@ -66,7 +66,7 @@ Participant that provides the offering
|
|
|
66
66
|
|
|
67
67
|
### servicePolicy
|
|
68
68
|
|
|
69
|
-
> **servicePolicy**: `IJsonLdNodeObject
|
|
69
|
+
> **servicePolicy**: `ObjectOrArray`\<`IJsonLdNodeObject`\>
|
|
70
70
|
|
|
71
71
|
ODRL policy associated to the service offering
|
|
72
72
|
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Type Alias: GaiaXContextType
|
|
2
|
+
|
|
3
|
+
> **GaiaXContextType** = *typeof* [`GaiaXLdContext`](../variables/GaiaXContexts.md#gaiaxldcontext) \| \[`...IJsonLdContextDefinitionElement[]`, *typeof* [`GaiaXLdContext`](../variables/GaiaXContexts.md#gaiaxldcontext), `IJsonLdContextDefinitionElement`\] \| \[`IJsonLdContextDefinitionElement`, *typeof* [`GaiaXLdContext`](../variables/GaiaXContexts.md#gaiaxldcontext), `...IJsonLdContextDefinitionElement[]`\]
|
|
4
|
+
|
|
5
|
+
The Gaia-X JSON-LD context type.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/standards-gaia-x",
|
|
3
|
-
"version": "0.0.1-next.
|
|
3
|
+
"version": "0.0.1-next.43",
|
|
4
4
|
"description": "Models which define the structure of Gaia-x",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
+
"@twin.org/core": "next",
|
|
17
18
|
"@twin.org/data-json-ld": "next"
|
|
18
19
|
},
|
|
19
20
|
"main": "./dist/cjs/index.cjs",
|