@twin.org/standards-gaia-x 0.0.1 → 0.0.2-next.2
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/cjs/index.cjs +391 -68
- package/dist/esm/index.mjs +391 -68
- package/dist/types/index.d.ts +1 -1
- package/dist/types/models/IDataResource.d.ts +5 -8
- package/dist/types/models/IGaiaXEntity.d.ts +24 -0
- package/dist/types/models/ILegalPerson.d.ts +50 -0
- package/dist/types/models/IServiceOffering.d.ts +6 -18
- package/dist/types/models/gaiaXContexts.d.ts +4 -0
- package/dist/types/models/gaiaXTypes.d.ts +2 -2
- package/docs/changelog.md +25 -0
- package/docs/reference/index.md +1 -1
- package/docs/reference/interfaces/IAddress.md +1 -1
- package/docs/reference/interfaces/IDataExchangeComponent.md +1 -1
- package/docs/reference/interfaces/IDataResource.md +25 -13
- package/docs/reference/interfaces/IEndpoint.md +1 -1
- package/docs/reference/interfaces/ILegalPerson.md +139 -0
- package/docs/reference/interfaces/IRegistrationNumber.md +1 -1
- package/docs/reference/interfaces/IServiceOffering.md +26 -14
- package/docs/reference/variables/GaiaXContexts.md +6 -0
- package/docs/reference/variables/GaiaXTypes.md +3 -3
- package/package.json +4 -4
- package/dist/types/models/IParticipant.d.ts +0 -35
- package/docs/reference/interfaces/IParticipant.md +0 -63
package/dist/esm/index.mjs
CHANGED
|
@@ -10,7 +10,11 @@ const GaiaXContexts = {
|
|
|
10
10
|
/**
|
|
11
11
|
* The Gaia-X LD Context
|
|
12
12
|
*/
|
|
13
|
-
ContextRoot: "https://w3id.org/gaia-x/development"
|
|
13
|
+
ContextRoot: "https://w3id.org/gaia-x/development",
|
|
14
|
+
/**
|
|
15
|
+
* The Gaia-X custom context.
|
|
16
|
+
*/
|
|
17
|
+
TwinContext: "https://schema.twindev.org/gaia-x"
|
|
14
18
|
};
|
|
15
19
|
|
|
16
20
|
// Copyright 2024 IOTA Stiftung.
|
|
@@ -29,9 +33,9 @@ const GaiaXTypes = {
|
|
|
29
33
|
*/
|
|
30
34
|
ServiceOffering: "ServiceOffering",
|
|
31
35
|
/**
|
|
32
|
-
*
|
|
36
|
+
* Legal Person
|
|
33
37
|
*/
|
|
34
|
-
|
|
38
|
+
LegalPerson: "LegalPerson",
|
|
35
39
|
/**
|
|
36
40
|
* Data Exchange Component
|
|
37
41
|
*/
|
|
@@ -74,9 +78,9 @@ const GaiaXTypes = {
|
|
|
74
78
|
TaxID: "TaxID"
|
|
75
79
|
};
|
|
76
80
|
|
|
77
|
-
var $schema$
|
|
78
|
-
var $id$
|
|
79
|
-
var description$
|
|
81
|
+
var $schema$7 = "https://json-schema.org/draft/2020-12/schema";
|
|
82
|
+
var $id$7 = "https://schema.twindev.org/gaia-x/Address";
|
|
83
|
+
var description$7 = "Address as defined by Gaia-X https://docs.gaia-x.eu/ontology/development/classes/Address/";
|
|
80
84
|
var type$6 = "object";
|
|
81
85
|
var properties$6 = {
|
|
82
86
|
"@context": {
|
|
@@ -200,18 +204,18 @@ var additionalProperties$6 = {
|
|
|
200
204
|
]
|
|
201
205
|
};
|
|
202
206
|
var AddressSchema = {
|
|
203
|
-
$schema: $schema$
|
|
204
|
-
$id: $id$
|
|
205
|
-
description: description$
|
|
207
|
+
$schema: $schema$7,
|
|
208
|
+
$id: $id$7,
|
|
209
|
+
description: description$7,
|
|
206
210
|
type: type$6,
|
|
207
211
|
properties: properties$6,
|
|
208
212
|
required: required$6,
|
|
209
213
|
additionalProperties: additionalProperties$6
|
|
210
214
|
};
|
|
211
215
|
|
|
212
|
-
var $schema$
|
|
213
|
-
var $id$
|
|
214
|
-
var description$
|
|
216
|
+
var $schema$6 = "https://json-schema.org/draft/2020-12/schema";
|
|
217
|
+
var $id$6 = "https://schema.twindev.org/gaia-x/DataExchangeComponent";
|
|
218
|
+
var description$6 = "Data Exchange component as defined by Gaia-X https://docs.gaia-x.eu/ontology/development/classes/DataExchangeComponent";
|
|
215
219
|
var type$5 = "object";
|
|
216
220
|
var properties$5 = {
|
|
217
221
|
"@context": {
|
|
@@ -347,18 +351,18 @@ var additionalProperties$5 = {
|
|
|
347
351
|
]
|
|
348
352
|
};
|
|
349
353
|
var DataExchangeComponentSchema = {
|
|
350
|
-
$schema: $schema$
|
|
351
|
-
$id: $id$
|
|
352
|
-
description: description$
|
|
354
|
+
$schema: $schema$6,
|
|
355
|
+
$id: $id$6,
|
|
356
|
+
description: description$6,
|
|
353
357
|
type: type$5,
|
|
354
358
|
properties: properties$5,
|
|
355
359
|
required: required$5,
|
|
356
360
|
additionalProperties: additionalProperties$5
|
|
357
361
|
};
|
|
358
362
|
|
|
359
|
-
var $schema$
|
|
360
|
-
var $id$
|
|
361
|
-
var description$
|
|
363
|
+
var $schema$5 = "https://json-schema.org/draft/2020-12/schema";
|
|
364
|
+
var $id$5 = "https://schema.twindev.org/gaia-x/DataResource";
|
|
365
|
+
var description$5 = "A Data Resource as defined by Gaia-X. See also W3C DCAT Dataset https://www.w3.org/TR/vocab-dcat-3/.";
|
|
362
366
|
var type$4 = "object";
|
|
363
367
|
var properties$4 = {
|
|
364
368
|
"@context": {
|
|
@@ -445,18 +449,18 @@ var properties$4 = {
|
|
|
445
449
|
type: "string",
|
|
446
450
|
description: "Subject Id"
|
|
447
451
|
},
|
|
448
|
-
|
|
452
|
+
name: {
|
|
449
453
|
type: "string",
|
|
450
|
-
|
|
451
|
-
description: "Subject type"
|
|
454
|
+
description: "The Resource Name"
|
|
452
455
|
},
|
|
453
456
|
description: {
|
|
454
457
|
type: "string",
|
|
455
|
-
description: "Description"
|
|
458
|
+
description: "Description of the Gaia-X entity."
|
|
456
459
|
},
|
|
457
|
-
|
|
460
|
+
type: {
|
|
458
461
|
type: "string",
|
|
459
|
-
|
|
462
|
+
"const": "DataResource",
|
|
463
|
+
description: "Subject type"
|
|
460
464
|
},
|
|
461
465
|
exposedThrough: {
|
|
462
466
|
anyOf: [
|
|
@@ -592,7 +596,7 @@ var properties$4 = {
|
|
|
592
596
|
producedBy: {
|
|
593
597
|
anyOf: [
|
|
594
598
|
{
|
|
595
|
-
$ref: "https://schema.twindev.org/gaia-x/
|
|
599
|
+
$ref: "https://schema.twindev.org/gaia-x/LegalPerson"
|
|
596
600
|
},
|
|
597
601
|
{
|
|
598
602
|
type: "string"
|
|
@@ -607,7 +611,7 @@ var properties$4 = {
|
|
|
607
611
|
copyrightOwnedBy: {
|
|
608
612
|
anyOf: [
|
|
609
613
|
{
|
|
610
|
-
$ref: "https://schema.twindev.org/gaia-x/
|
|
614
|
+
$ref: "https://schema.twindev.org/gaia-x/LegalPerson"
|
|
611
615
|
},
|
|
612
616
|
{
|
|
613
617
|
type: "string"
|
|
@@ -616,20 +620,33 @@ var properties$4 = {
|
|
|
616
620
|
description: "Copyright owner"
|
|
617
621
|
},
|
|
618
622
|
resourcePolicy: {
|
|
619
|
-
|
|
620
|
-
|
|
623
|
+
description: "Object or array data type",
|
|
624
|
+
anyOf: [
|
|
625
|
+
{
|
|
626
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
type: "array",
|
|
630
|
+
items: false,
|
|
631
|
+
prefixItems: [
|
|
632
|
+
{
|
|
633
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
634
|
+
}
|
|
635
|
+
]
|
|
636
|
+
}
|
|
637
|
+
]
|
|
621
638
|
}
|
|
622
639
|
};
|
|
623
640
|
var required$4 = [
|
|
624
641
|
"@context",
|
|
642
|
+
"copyrightOwnedBy",
|
|
643
|
+
"exposedThrough",
|
|
625
644
|
"id",
|
|
626
|
-
"
|
|
645
|
+
"license",
|
|
627
646
|
"name",
|
|
628
|
-
"exposedThrough",
|
|
629
647
|
"producedBy",
|
|
630
|
-
"
|
|
631
|
-
"
|
|
632
|
-
"resourcePolicy"
|
|
648
|
+
"resourcePolicy",
|
|
649
|
+
"type"
|
|
633
650
|
];
|
|
634
651
|
var additionalProperties$4 = {
|
|
635
652
|
anyOf: [
|
|
@@ -657,18 +674,18 @@ var additionalProperties$4 = {
|
|
|
657
674
|
]
|
|
658
675
|
};
|
|
659
676
|
var DataResourceSchema = {
|
|
660
|
-
$schema: $schema$
|
|
661
|
-
$id: $id$
|
|
662
|
-
description: description$
|
|
677
|
+
$schema: $schema$5,
|
|
678
|
+
$id: $id$5,
|
|
679
|
+
description: description$5,
|
|
663
680
|
type: type$4,
|
|
664
681
|
properties: properties$4,
|
|
665
682
|
required: required$4,
|
|
666
683
|
additionalProperties: additionalProperties$4
|
|
667
684
|
};
|
|
668
685
|
|
|
669
|
-
var $schema$
|
|
670
|
-
var $id$
|
|
671
|
-
var description$
|
|
686
|
+
var $schema$4 = "https://json-schema.org/draft/2020-12/schema";
|
|
687
|
+
var $id$4 = "https://schema.twindev.org/gaia-x/Endpoint";
|
|
688
|
+
var description$4 = "Endpoint as defined by the Gaia-X ontology. https://docs.gaia-x.eu/ontology/development/classes/Endpoint";
|
|
672
689
|
var type$3 = "object";
|
|
673
690
|
var properties$3 = {
|
|
674
691
|
"@context": {
|
|
@@ -797,23 +814,71 @@ var additionalProperties$3 = {
|
|
|
797
814
|
]
|
|
798
815
|
};
|
|
799
816
|
var EndpointSchema = {
|
|
800
|
-
$schema: $schema$
|
|
801
|
-
$id: $id$
|
|
802
|
-
description: description$
|
|
817
|
+
$schema: $schema$4,
|
|
818
|
+
$id: $id$4,
|
|
819
|
+
description: description$4,
|
|
803
820
|
type: type$3,
|
|
804
821
|
properties: properties$3,
|
|
805
822
|
required: required$3,
|
|
806
823
|
additionalProperties: additionalProperties$3
|
|
807
824
|
};
|
|
808
825
|
|
|
826
|
+
var $schema$3 = "https://json-schema.org/draft/2020-12/schema";
|
|
827
|
+
var $id$3 = "https://schema.twindev.org/gaia-x/GaiaXContextType";
|
|
828
|
+
var description$3 = "The Gaia-X JSON-LD context type.";
|
|
829
|
+
var anyOf = [
|
|
830
|
+
{
|
|
831
|
+
type: "string",
|
|
832
|
+
"const": "https://w3id.org/gaia-x/development"
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
type: "array",
|
|
836
|
+
minItems: 2,
|
|
837
|
+
items: {
|
|
838
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
839
|
+
},
|
|
840
|
+
prefixItems: [
|
|
841
|
+
{
|
|
842
|
+
type: "string",
|
|
843
|
+
"const": "https://w3id.org/gaia-x/development"
|
|
844
|
+
},
|
|
845
|
+
{
|
|
846
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
847
|
+
}
|
|
848
|
+
]
|
|
849
|
+
},
|
|
850
|
+
{
|
|
851
|
+
type: "array",
|
|
852
|
+
minItems: 2,
|
|
853
|
+
items: {
|
|
854
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
855
|
+
},
|
|
856
|
+
prefixItems: [
|
|
857
|
+
{
|
|
858
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
859
|
+
},
|
|
860
|
+
{
|
|
861
|
+
type: "string",
|
|
862
|
+
"const": "https://w3id.org/gaia-x/development"
|
|
863
|
+
}
|
|
864
|
+
]
|
|
865
|
+
}
|
|
866
|
+
];
|
|
867
|
+
var GaiaXContextTypeSchema = {
|
|
868
|
+
$schema: $schema$3,
|
|
869
|
+
$id: $id$3,
|
|
870
|
+
description: description$3,
|
|
871
|
+
anyOf: anyOf
|
|
872
|
+
};
|
|
873
|
+
|
|
809
874
|
var $schema$2 = "https://json-schema.org/draft/2020-12/schema";
|
|
810
|
-
var $id$2 = "https://schema.twindev.org/gaia-x/
|
|
811
|
-
var description$2 = "A Legal Person
|
|
875
|
+
var $id$2 = "https://schema.twindev.org/gaia-x/LegalPerson";
|
|
876
|
+
var description$2 = "A Legal Person as defined by Gaia-X.";
|
|
812
877
|
var type$2 = "object";
|
|
813
878
|
var properties$2 = {
|
|
814
879
|
"@context": {
|
|
815
880
|
$ref: "https://schema.twindev.org/gaia-x/GaiaXContextType",
|
|
816
|
-
description: "The LD context"
|
|
881
|
+
description: "The LD context."
|
|
817
882
|
},
|
|
818
883
|
"@id": {
|
|
819
884
|
anyOf: [
|
|
@@ -893,7 +958,15 @@ var properties$2 = {
|
|
|
893
958
|
},
|
|
894
959
|
id: {
|
|
895
960
|
type: "string",
|
|
896
|
-
description: "The
|
|
961
|
+
description: "The Id."
|
|
962
|
+
},
|
|
963
|
+
name: {
|
|
964
|
+
type: "string",
|
|
965
|
+
description: "Human readable Name."
|
|
966
|
+
},
|
|
967
|
+
description: {
|
|
968
|
+
type: "string",
|
|
969
|
+
description: "Description of the Gaia-X entity."
|
|
897
970
|
},
|
|
898
971
|
type: {
|
|
899
972
|
type: "string",
|
|
@@ -911,15 +984,249 @@ var properties$2 = {
|
|
|
911
984
|
legalAddress: {
|
|
912
985
|
$ref: "https://schema.twindev.org/gaia-x/Address",
|
|
913
986
|
description: "Legal Address"
|
|
987
|
+
},
|
|
988
|
+
headquartersAddress: {
|
|
989
|
+
$ref: "https://schema.twindev.org/gaia-x/Address",
|
|
990
|
+
description: "Headquarters address."
|
|
991
|
+
},
|
|
992
|
+
parentOrganizationOf: {
|
|
993
|
+
type: "array",
|
|
994
|
+
items: false,
|
|
995
|
+
description: "Parent organization.",
|
|
996
|
+
prefixItems: [
|
|
997
|
+
{
|
|
998
|
+
type: "object",
|
|
999
|
+
additionalProperties: {
|
|
1000
|
+
anyOf: [
|
|
1001
|
+
{
|
|
1002
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
1009
|
+
},
|
|
1010
|
+
{
|
|
1011
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
1012
|
+
},
|
|
1013
|
+
{
|
|
1014
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
1015
|
+
},
|
|
1016
|
+
{
|
|
1017
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
1018
|
+
},
|
|
1019
|
+
{
|
|
1020
|
+
type: "array"
|
|
1021
|
+
}
|
|
1022
|
+
]
|
|
1023
|
+
},
|
|
1024
|
+
properties: {
|
|
1025
|
+
id: {
|
|
1026
|
+
type: "string"
|
|
1027
|
+
},
|
|
1028
|
+
type: {
|
|
1029
|
+
type: "string",
|
|
1030
|
+
"const": "LegalPerson"
|
|
1031
|
+
},
|
|
1032
|
+
"@context": {
|
|
1033
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
1034
|
+
},
|
|
1035
|
+
"@id": {
|
|
1036
|
+
anyOf: [
|
|
1037
|
+
{
|
|
1038
|
+
type: "string"
|
|
1039
|
+
},
|
|
1040
|
+
{
|
|
1041
|
+
type: "array",
|
|
1042
|
+
items: {
|
|
1043
|
+
type: "string"
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
]
|
|
1047
|
+
},
|
|
1048
|
+
"@included": {
|
|
1049
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
1050
|
+
},
|
|
1051
|
+
"@graph": {
|
|
1052
|
+
anyOf: [
|
|
1053
|
+
{
|
|
1054
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1055
|
+
},
|
|
1056
|
+
{
|
|
1057
|
+
type: "array",
|
|
1058
|
+
items: {
|
|
1059
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
]
|
|
1063
|
+
},
|
|
1064
|
+
"@nest": {
|
|
1065
|
+
anyOf: [
|
|
1066
|
+
{
|
|
1067
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
1068
|
+
},
|
|
1069
|
+
{
|
|
1070
|
+
type: "array",
|
|
1071
|
+
items: {
|
|
1072
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
]
|
|
1076
|
+
},
|
|
1077
|
+
"@type": {
|
|
1078
|
+
anyOf: [
|
|
1079
|
+
{
|
|
1080
|
+
type: "string"
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
type: "array",
|
|
1084
|
+
items: {
|
|
1085
|
+
type: "string"
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
]
|
|
1089
|
+
},
|
|
1090
|
+
"@reverse": {
|
|
1091
|
+
type: "object",
|
|
1092
|
+
additionalProperties: {
|
|
1093
|
+
type: "string"
|
|
1094
|
+
}
|
|
1095
|
+
},
|
|
1096
|
+
"@index": {
|
|
1097
|
+
type: "string"
|
|
1098
|
+
}
|
|
1099
|
+
},
|
|
1100
|
+
required: [
|
|
1101
|
+
"id",
|
|
1102
|
+
"type"
|
|
1103
|
+
]
|
|
1104
|
+
}
|
|
1105
|
+
]
|
|
1106
|
+
},
|
|
1107
|
+
subOrganizationOf: {
|
|
1108
|
+
type: "array",
|
|
1109
|
+
items: false,
|
|
1110
|
+
description: "Sub organization of.",
|
|
1111
|
+
prefixItems: [
|
|
1112
|
+
{
|
|
1113
|
+
type: "object",
|
|
1114
|
+
additionalProperties: {
|
|
1115
|
+
anyOf: [
|
|
1116
|
+
{
|
|
1117
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
1118
|
+
},
|
|
1119
|
+
{
|
|
1120
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
1121
|
+
},
|
|
1122
|
+
{
|
|
1123
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
1127
|
+
},
|
|
1128
|
+
{
|
|
1129
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
1130
|
+
},
|
|
1131
|
+
{
|
|
1132
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
1133
|
+
},
|
|
1134
|
+
{
|
|
1135
|
+
type: "array"
|
|
1136
|
+
}
|
|
1137
|
+
]
|
|
1138
|
+
},
|
|
1139
|
+
properties: {
|
|
1140
|
+
id: {
|
|
1141
|
+
type: "string"
|
|
1142
|
+
},
|
|
1143
|
+
type: {
|
|
1144
|
+
type: "string",
|
|
1145
|
+
"const": "LegalPerson"
|
|
1146
|
+
},
|
|
1147
|
+
"@context": {
|
|
1148
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
|
|
1149
|
+
},
|
|
1150
|
+
"@id": {
|
|
1151
|
+
anyOf: [
|
|
1152
|
+
{
|
|
1153
|
+
type: "string"
|
|
1154
|
+
},
|
|
1155
|
+
{
|
|
1156
|
+
type: "array",
|
|
1157
|
+
items: {
|
|
1158
|
+
type: "string"
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
]
|
|
1162
|
+
},
|
|
1163
|
+
"@included": {
|
|
1164
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
1165
|
+
},
|
|
1166
|
+
"@graph": {
|
|
1167
|
+
anyOf: [
|
|
1168
|
+
{
|
|
1169
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1170
|
+
},
|
|
1171
|
+
{
|
|
1172
|
+
type: "array",
|
|
1173
|
+
items: {
|
|
1174
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
]
|
|
1178
|
+
},
|
|
1179
|
+
"@nest": {
|
|
1180
|
+
anyOf: [
|
|
1181
|
+
{
|
|
1182
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
1183
|
+
},
|
|
1184
|
+
{
|
|
1185
|
+
type: "array",
|
|
1186
|
+
items: {
|
|
1187
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
]
|
|
1191
|
+
},
|
|
1192
|
+
"@type": {
|
|
1193
|
+
anyOf: [
|
|
1194
|
+
{
|
|
1195
|
+
type: "string"
|
|
1196
|
+
},
|
|
1197
|
+
{
|
|
1198
|
+
type: "array",
|
|
1199
|
+
items: {
|
|
1200
|
+
type: "string"
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
]
|
|
1204
|
+
},
|
|
1205
|
+
"@reverse": {
|
|
1206
|
+
type: "object",
|
|
1207
|
+
additionalProperties: {
|
|
1208
|
+
type: "string"
|
|
1209
|
+
}
|
|
1210
|
+
},
|
|
1211
|
+
"@index": {
|
|
1212
|
+
type: "string"
|
|
1213
|
+
}
|
|
1214
|
+
},
|
|
1215
|
+
required: [
|
|
1216
|
+
"id",
|
|
1217
|
+
"type"
|
|
1218
|
+
]
|
|
1219
|
+
}
|
|
1220
|
+
]
|
|
914
1221
|
}
|
|
915
1222
|
};
|
|
916
1223
|
var required$2 = [
|
|
917
1224
|
"@context",
|
|
918
1225
|
"id",
|
|
919
|
-
"
|
|
920
|
-
"registrationNumber",
|
|
1226
|
+
"legalAddress",
|
|
921
1227
|
"legalName",
|
|
922
|
-
"
|
|
1228
|
+
"registrationNumber",
|
|
1229
|
+
"type"
|
|
923
1230
|
];
|
|
924
1231
|
var additionalProperties$2 = {
|
|
925
1232
|
anyOf: [
|
|
@@ -946,7 +1253,7 @@ var additionalProperties$2 = {
|
|
|
946
1253
|
}
|
|
947
1254
|
]
|
|
948
1255
|
};
|
|
949
|
-
var
|
|
1256
|
+
var LegalPersonSchema = {
|
|
950
1257
|
$schema: $schema$2,
|
|
951
1258
|
$id: $id$2,
|
|
952
1259
|
description: description$2,
|
|
@@ -1135,7 +1442,7 @@ var type = "object";
|
|
|
1135
1442
|
var properties = {
|
|
1136
1443
|
"@context": {
|
|
1137
1444
|
$ref: "https://schema.twindev.org/gaia-x/GaiaXContextType",
|
|
1138
|
-
description: "The LD context"
|
|
1445
|
+
description: "The LD context."
|
|
1139
1446
|
},
|
|
1140
1447
|
"@id": {
|
|
1141
1448
|
anyOf: [
|
|
@@ -1215,20 +1522,20 @@ var properties = {
|
|
|
1215
1522
|
},
|
|
1216
1523
|
id: {
|
|
1217
1524
|
type: "string",
|
|
1218
|
-
description: "Id"
|
|
1525
|
+
description: "The Id."
|
|
1219
1526
|
},
|
|
1220
|
-
|
|
1527
|
+
name: {
|
|
1221
1528
|
type: "string",
|
|
1222
|
-
|
|
1223
|
-
description: "Type"
|
|
1529
|
+
description: "Name of the Service Offering."
|
|
1224
1530
|
},
|
|
1225
1531
|
description: {
|
|
1226
1532
|
type: "string",
|
|
1227
|
-
description: "Description"
|
|
1533
|
+
description: "Description of the Gaia-X entity."
|
|
1228
1534
|
},
|
|
1229
|
-
|
|
1535
|
+
type: {
|
|
1230
1536
|
type: "string",
|
|
1231
|
-
|
|
1537
|
+
"const": "ServiceOffering",
|
|
1538
|
+
description: "Type"
|
|
1232
1539
|
},
|
|
1233
1540
|
providedBy: {
|
|
1234
1541
|
anyOf: [
|
|
@@ -1236,7 +1543,7 @@ var properties = {
|
|
|
1236
1543
|
type: "string"
|
|
1237
1544
|
},
|
|
1238
1545
|
{
|
|
1239
|
-
$ref: "https://schema.twindev.org/gaia-x/
|
|
1546
|
+
$ref: "https://schema.twindev.org/gaia-x/LegalPerson"
|
|
1240
1547
|
},
|
|
1241
1548
|
{
|
|
1242
1549
|
type: "object",
|
|
@@ -1362,8 +1669,21 @@ var properties = {
|
|
|
1362
1669
|
description: "Participant that provides the offering"
|
|
1363
1670
|
},
|
|
1364
1671
|
servicePolicy: {
|
|
1365
|
-
|
|
1366
|
-
|
|
1672
|
+
description: "Object or array data type",
|
|
1673
|
+
anyOf: [
|
|
1674
|
+
{
|
|
1675
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1676
|
+
},
|
|
1677
|
+
{
|
|
1678
|
+
type: "array",
|
|
1679
|
+
items: false,
|
|
1680
|
+
prefixItems: [
|
|
1681
|
+
{
|
|
1682
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1683
|
+
}
|
|
1684
|
+
]
|
|
1685
|
+
}
|
|
1686
|
+
]
|
|
1367
1687
|
},
|
|
1368
1688
|
aggregationOfResources: {
|
|
1369
1689
|
anyOf: [
|
|
@@ -1515,12 +1835,12 @@ var properties = {
|
|
|
1515
1835
|
};
|
|
1516
1836
|
var required = [
|
|
1517
1837
|
"@context",
|
|
1838
|
+
"endpoint",
|
|
1518
1839
|
"id",
|
|
1519
|
-
"type",
|
|
1520
1840
|
"name",
|
|
1521
1841
|
"providedBy",
|
|
1522
1842
|
"servicePolicy",
|
|
1523
|
-
"
|
|
1843
|
+
"type"
|
|
1524
1844
|
];
|
|
1525
1845
|
var additionalProperties = {
|
|
1526
1846
|
anyOf: [
|
|
@@ -1557,8 +1877,6 @@ var ServiceOfferingSchema = {
|
|
|
1557
1877
|
additionalProperties: additionalProperties
|
|
1558
1878
|
};
|
|
1559
1879
|
|
|
1560
|
-
// Copyright 2024 IOTA Stiftung.
|
|
1561
|
-
// SPDX-License-Identifier: Apache-2.0.
|
|
1562
1880
|
/**
|
|
1563
1881
|
* Handle all the data types for Gaia-X.
|
|
1564
1882
|
*/
|
|
@@ -1567,6 +1885,11 @@ class GaiaXDataTypes {
|
|
|
1567
1885
|
* Register all the data types.
|
|
1568
1886
|
*/
|
|
1569
1887
|
static registerTypes() {
|
|
1888
|
+
DataTypeHandlerFactory.register(`${GaiaXContexts.TwinContext}/${"GaiaXContextType"}`, () => ({
|
|
1889
|
+
context: GaiaXContexts.TwinContext,
|
|
1890
|
+
type: "GaiaXContextType",
|
|
1891
|
+
jsonSchema: async () => GaiaXContextTypeSchema
|
|
1892
|
+
}));
|
|
1570
1893
|
DataTypeHandlerFactory.register(`${GaiaXContexts.ContextRoot}${GaiaXTypes.DataExchangeComponent}`, () => ({
|
|
1571
1894
|
context: GaiaXContexts.ContextRoot,
|
|
1572
1895
|
type: GaiaXTypes.DataExchangeComponent,
|
|
@@ -1592,10 +1915,10 @@ class GaiaXDataTypes {
|
|
|
1592
1915
|
type: GaiaXTypes.ServiceOffering,
|
|
1593
1916
|
jsonSchema: async () => ServiceOfferingSchema
|
|
1594
1917
|
}));
|
|
1595
|
-
DataTypeHandlerFactory.register(`${GaiaXContexts.ContextRoot}${GaiaXTypes.
|
|
1918
|
+
DataTypeHandlerFactory.register(`${GaiaXContexts.ContextRoot}${GaiaXTypes.LegalPerson}`, () => ({
|
|
1596
1919
|
context: GaiaXContexts.ContextRoot,
|
|
1597
|
-
type: GaiaXTypes.
|
|
1598
|
-
jsonSchema: async () =>
|
|
1920
|
+
type: GaiaXTypes.LegalPerson,
|
|
1921
|
+
jsonSchema: async () => LegalPersonSchema
|
|
1599
1922
|
}));
|
|
1600
1923
|
DataTypeHandlerFactory.register(`${GaiaXContexts.ContextRoot}${GaiaXTypes.RegistrationNumber}`, () => ({
|
|
1601
1924
|
context: GaiaXContexts.ContextRoot,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -6,6 +6,6 @@ export * from "./models/IAddress";
|
|
|
6
6
|
export * from "./models/IDataExchangeComponent";
|
|
7
7
|
export * from "./models/IDataResource";
|
|
8
8
|
export * from "./models/IEndpoint";
|
|
9
|
-
export * from "./models/
|
|
9
|
+
export * from "./models/ILegalPerson";
|
|
10
10
|
export * from "./models/IRegistrationNumber";
|
|
11
11
|
export * from "./models/IServiceOffering";
|