@twin.org/standards-gaia-x 0.0.3-next.10 → 0.0.3-next.12
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/es/dataTypes/gaiaXDataTypes.js +34 -36
- package/dist/es/dataTypes/gaiaXDataTypes.js.map +1 -1
- package/dist/es/models/gaiaXContextType.js.map +1 -1
- package/dist/es/models/gaiaXContexts.js +3 -3
- package/dist/es/models/gaiaXContexts.js.map +1 -1
- package/dist/types/models/gaiaXContextType.d.ts +3 -3
- package/dist/types/models/gaiaXContexts.d.ts +4 -4
- package/docs/changelog.md +28 -0
- package/docs/reference/type-aliases/GaiaXContextType.md +1 -1
- package/docs/reference/type-aliases/GaiaXContexts.md +1 -1
- package/docs/reference/variables/GaiaXContexts.md +4 -4
- package/package.json +2 -2
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
// Copyright 2024 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
import { DataTypeHelper } from "@twin.org/data-core";
|
|
2
4
|
import { GaiaXContexts } from "../models/gaiaXContexts.js";
|
|
3
5
|
import { GaiaXTypes } from "../models/gaiaXTypes.js";
|
|
4
6
|
import AddressSchema from "../schemas/Address.json" with { type: "json" };
|
|
@@ -16,41 +18,37 @@ export class GaiaXDataTypes {
|
|
|
16
18
|
* Register all the data types.
|
|
17
19
|
*/
|
|
18
20
|
static registerTypes() {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
context: GaiaXContexts.ContextRoot,
|
|
51
|
-
type: GaiaXTypes.RegistrationNumber,
|
|
52
|
-
jsonSchema: async () => RegistrationNumberSchema
|
|
53
|
-
}));
|
|
21
|
+
const types = [
|
|
22
|
+
{
|
|
23
|
+
type: GaiaXTypes.DataExchangeComponent,
|
|
24
|
+
schema: DataExchangeComponentSchema
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
type: GaiaXTypes.DataResource,
|
|
28
|
+
schema: DataResourceSchema
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
type: GaiaXTypes.Endpoint,
|
|
32
|
+
schema: EndpointSchema
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
type: GaiaXTypes.Address,
|
|
36
|
+
schema: AddressSchema
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
type: GaiaXTypes.ServiceOffering,
|
|
40
|
+
schema: ServiceOfferingSchema
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
type: GaiaXTypes.LegalPerson,
|
|
44
|
+
schema: LegalPersonSchema
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
type: GaiaXTypes.RegistrationNumber,
|
|
48
|
+
schema: RegistrationNumberSchema
|
|
49
|
+
}
|
|
50
|
+
];
|
|
51
|
+
DataTypeHelper.registerTypes(GaiaXContexts.Namespace, undefined, types);
|
|
54
52
|
}
|
|
55
53
|
}
|
|
56
54
|
//# sourceMappingURL=gaiaXDataTypes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gaiaXDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/gaiaXDataTypes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"gaiaXDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/gaiaXDataTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;A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;aACzB;YACD;gBACC,IAAI,EAAE,UAAU,CAAC,kBAAkB;gBACnC,MAAM,EAAE,wBAAwB;aAChC;SACD,CAAC;QAEF,cAAc,CAAC,aAAa,CAAC,aAAa,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;IACzE,CAAC;CACD","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { DataTypeHelper } from \"@twin.org/data-core\";\nimport { GaiaXContexts } from \"../models/gaiaXContexts.js\";\nimport { GaiaXTypes } from \"../models/gaiaXTypes.js\";\nimport AddressSchema from \"../schemas/Address.json\" with { type: \"json\" };\nimport DataExchangeComponentSchema from \"../schemas/DataExchangeComponent.json\" with { type: \"json\" };\nimport DataResourceSchema from \"../schemas/DataResource.json\" with { type: \"json\" };\nimport EndpointSchema from \"../schemas/Endpoint.json\" with { type: \"json\" };\nimport LegalPersonSchema from \"../schemas/LegalPerson.json\" with { type: \"json\" };\nimport RegistrationNumberSchema from \"../schemas/RegistrationNumber.json\" with { type: \"json\" };\nimport ServiceOfferingSchema from \"../schemas/ServiceOffering.json\" with { type: \"json\" };\n\n/**\n * Handle all the data types for Gaia-X.\n */\nexport class GaiaXDataTypes {\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tconst types = [\n\t\t\t{\n\t\t\t\ttype: GaiaXTypes.DataExchangeComponent,\n\t\t\t\tschema: DataExchangeComponentSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: GaiaXTypes.DataResource,\n\t\t\t\tschema: DataResourceSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: GaiaXTypes.Endpoint,\n\t\t\t\tschema: EndpointSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: GaiaXTypes.Address,\n\t\t\t\tschema: AddressSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: GaiaXTypes.ServiceOffering,\n\t\t\t\tschema: ServiceOfferingSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: GaiaXTypes.LegalPerson,\n\t\t\t\tschema: LegalPersonSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: GaiaXTypes.RegistrationNumber,\n\t\t\t\tschema: RegistrationNumberSchema\n\t\t\t}\n\t\t];\n\n\t\tDataTypeHelper.registerTypes(GaiaXContexts.Namespace, undefined, types);\n\t}\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gaiaXContextType.js","sourceRoot":"","sources":["../../../src/models/gaiaXContextType.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement } from \"@twin.org/data-json-ld\";\nimport type { GaiaXContexts } from \"./gaiaXContexts.js\";\n\n/**\n * The Gaia-X JSON-LD context type.\n */\nexport type GaiaXContextType =\n\t| typeof GaiaXContexts.
|
|
1
|
+
{"version":3,"file":"gaiaXContextType.js","sourceRoot":"","sources":["../../../src/models/gaiaXContextType.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement } from \"@twin.org/data-json-ld\";\nimport type { GaiaXContexts } from \"./gaiaXContexts.js\";\n\n/**\n * The Gaia-X JSON-LD context type.\n */\nexport type GaiaXContextType =\n\t| typeof GaiaXContexts.Namespace\n\t| [\n\t\t\t...IJsonLdContextDefinitionElement[],\n\t\t\ttypeof GaiaXContexts.Namespace,\n\t\t\tIJsonLdContextDefinitionElement\n\t ]\n\t| [\n\t\t\tIJsonLdContextDefinitionElement,\n\t\t\ttypeof GaiaXContexts.Namespace,\n\t\t\t...IJsonLdContextDefinitionElement[]\n\t ];\n"]}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// Copyright 2024 IOTA Stiftung.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0.
|
|
3
3
|
/**
|
|
4
|
-
* The
|
|
4
|
+
* The Contexts concerning Gaia-X.
|
|
5
5
|
*/
|
|
6
6
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
7
|
export const GaiaXContexts = {
|
|
8
8
|
/**
|
|
9
|
-
* The Gaia-X
|
|
9
|
+
* The Gaia-X Namespace
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
Namespace: "https://schema.twindev.org/gaia-x-loire/"
|
|
12
12
|
};
|
|
13
13
|
//# sourceMappingURL=gaiaXContexts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gaiaXContexts.js","sourceRoot":"","sources":["../../../src/models/gaiaXContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,aAAa,GAAG;IAC5B;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"gaiaXContexts.js","sourceRoot":"","sources":["../../../src/models/gaiaXContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,aAAa,GAAG;IAC5B;;OAEG;IACH,SAAS,EAAE,0CAA0C;CAC5C,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The Contexts concerning Gaia-X.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const GaiaXContexts = {\n\t/**\n\t * The Gaia-X Namespace\n\t */\n\tNamespace: \"https://schema.twindev.org/gaia-x-loire/\"\n} as const;\n\n/**\n * The Contexts concerning Gaia-X.\n */\nexport type GaiaXContexts = (typeof GaiaXContexts)[keyof typeof GaiaXContexts];\n"]}
|
|
@@ -3,12 +3,12 @@ import type { GaiaXContexts } from "./gaiaXContexts.js";
|
|
|
3
3
|
/**
|
|
4
4
|
* The Gaia-X JSON-LD context type.
|
|
5
5
|
*/
|
|
6
|
-
export type GaiaXContextType = typeof GaiaXContexts.
|
|
6
|
+
export type GaiaXContextType = typeof GaiaXContexts.Namespace | [
|
|
7
7
|
...IJsonLdContextDefinitionElement[],
|
|
8
|
-
typeof GaiaXContexts.
|
|
8
|
+
typeof GaiaXContexts.Namespace,
|
|
9
9
|
IJsonLdContextDefinitionElement
|
|
10
10
|
] | [
|
|
11
11
|
IJsonLdContextDefinitionElement,
|
|
12
|
-
typeof GaiaXContexts.
|
|
12
|
+
typeof GaiaXContexts.Namespace,
|
|
13
13
|
...IJsonLdContextDefinitionElement[]
|
|
14
14
|
];
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The
|
|
2
|
+
* The Contexts concerning Gaia-X.
|
|
3
3
|
*/
|
|
4
4
|
export declare const GaiaXContexts: {
|
|
5
5
|
/**
|
|
6
|
-
* The Gaia-X
|
|
6
|
+
* The Gaia-X Namespace
|
|
7
7
|
*/
|
|
8
|
-
readonly
|
|
8
|
+
readonly Namespace: "https://schema.twindev.org/gaia-x-loire/";
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
|
-
* The
|
|
11
|
+
* The Contexts concerning Gaia-X.
|
|
12
12
|
*/
|
|
13
13
|
export type GaiaXContexts = (typeof GaiaXContexts)[keyof typeof GaiaXContexts];
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @twin.org/standards-gaia-x - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-next.12](https://github.com/twinfoundation/standards/compare/standards-gaia-x-v0.0.3-next.11...standards-gaia-x-v0.0.3-next.12) (2026-01-14)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Miscellaneous Chores
|
|
7
|
+
|
|
8
|
+
* **standards-gaia-x:** Synchronize repo versions
|
|
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.11 to 0.0.3-next.12
|
|
16
|
+
|
|
17
|
+
## [0.0.3-next.11](https://github.com/twinfoundation/standards/compare/standards-gaia-x-v0.0.3-next.10...standards-gaia-x-v0.0.3-next.11) (2026-01-14)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* improved namespaces and contexts ([#102](https://github.com/twinfoundation/standards/issues/102)) ([c74c370](https://github.com/twinfoundation/standards/commit/c74c370cd8145d6166ca4454353f3774c302ac3b))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Dependencies
|
|
26
|
+
|
|
27
|
+
* The following workspace dependencies were updated
|
|
28
|
+
* dependencies
|
|
29
|
+
* @twin.org/standards-w3c-odrl bumped from 0.0.3-next.10 to 0.0.3-next.11
|
|
30
|
+
|
|
3
31
|
## [0.0.3-next.10](https://github.com/twinfoundation/standards/compare/standards-gaia-x-v0.0.3-next.9...standards-gaia-x-v0.0.3-next.10) (2026-01-13)
|
|
4
32
|
|
|
5
33
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Type Alias: GaiaXContextType
|
|
2
2
|
|
|
3
|
-
> **GaiaXContextType** = *typeof* [`
|
|
3
|
+
> **GaiaXContextType** = *typeof* [`Namespace`](../variables/GaiaXContexts.md#namespace) \| \[`...IJsonLdContextDefinitionElement[]`, *typeof* [`Namespace`](../variables/GaiaXContexts.md#namespace), `IJsonLdContextDefinitionElement`\] \| \[`IJsonLdContextDefinitionElement`, *typeof* [`Namespace`](../variables/GaiaXContexts.md#namespace), `...IJsonLdContextDefinitionElement[]`\]
|
|
4
4
|
|
|
5
5
|
The Gaia-X JSON-LD context type.
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
> `const` **GaiaXContexts**: `object`
|
|
4
4
|
|
|
5
|
-
The
|
|
5
|
+
The Contexts concerning Gaia-X.
|
|
6
6
|
|
|
7
7
|
## Type Declaration
|
|
8
8
|
|
|
9
|
-
###
|
|
9
|
+
### Namespace
|
|
10
10
|
|
|
11
|
-
> `readonly` **
|
|
11
|
+
> `readonly` **Namespace**: `"https://schema.twindev.org/gaia-x-loire/"` = `"https://schema.twindev.org/gaia-x-loire/"`
|
|
12
12
|
|
|
13
|
-
The Gaia-X
|
|
13
|
+
The Gaia-X Namespace
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/standards-gaia-x",
|
|
3
|
-
"version": "0.0.3-next.
|
|
3
|
+
"version": "0.0.3-next.12",
|
|
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.
|
|
20
|
+
"@twin.org/standards-w3c-odrl": "0.0.3-next.12"
|
|
21
21
|
},
|
|
22
22
|
"main": "./dist/es/index.js",
|
|
23
23
|
"types": "./dist/types/index.d.ts",
|