@twin.org/standards-gaia-x 0.0.2-next.9 → 0.0.3-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.
Files changed (56) hide show
  1. package/dist/es/dataTypes/gaiaXDataTypes.js +56 -0
  2. package/dist/es/dataTypes/gaiaXDataTypes.js.map +1 -0
  3. package/dist/es/index.js +14 -0
  4. package/dist/es/index.js.map +1 -0
  5. package/dist/es/models/IAddress.js +2 -0
  6. package/dist/es/models/IAddress.js.map +1 -0
  7. package/dist/es/models/IDataExchangeComponent.js +2 -0
  8. package/dist/es/models/IDataExchangeComponent.js.map +1 -0
  9. package/dist/es/models/IDataResource.js +2 -0
  10. package/dist/es/models/IDataResource.js.map +1 -0
  11. package/dist/es/models/IEndpoint.js +2 -0
  12. package/dist/es/models/IEndpoint.js.map +1 -0
  13. package/dist/es/models/IGaiaXEntity.js +2 -0
  14. package/dist/es/models/IGaiaXEntity.js.map +1 -0
  15. package/dist/es/models/ILegalPerson.js +2 -0
  16. package/dist/es/models/ILegalPerson.js.map +1 -0
  17. package/dist/es/models/IRegistrationNumber.js +2 -0
  18. package/dist/es/models/IRegistrationNumber.js.map +1 -0
  19. package/dist/es/models/IServiceOffering.js +2 -0
  20. package/dist/es/models/IServiceOffering.js.map +1 -0
  21. package/dist/es/models/gaiaXContextType.js +2 -0
  22. package/dist/es/models/gaiaXContextType.js.map +1 -0
  23. package/dist/es/models/gaiaXContexts.js +13 -0
  24. package/dist/es/models/gaiaXContexts.js.map +1 -0
  25. package/dist/es/models/gaiaXTypes.js +61 -0
  26. package/dist/es/models/gaiaXTypes.js.map +1 -0
  27. package/dist/es/schemas/Address.json +115 -0
  28. package/dist/es/schemas/DataExchangeComponent.json +164 -0
  29. package/dist/es/schemas/DataResource.json +325 -0
  30. package/dist/es/schemas/Endpoint.json +120 -0
  31. package/dist/es/schemas/LegalPerson.json +403 -0
  32. package/dist/es/schemas/RegistrationNumber.json +152 -0
  33. package/dist/es/schemas/ServiceOffering.json +425 -0
  34. package/dist/types/index.d.ts +11 -11
  35. package/dist/types/models/IAddress.d.ts +1 -1
  36. package/dist/types/models/IDataExchangeComponent.d.ts +2 -2
  37. package/dist/types/models/IDataResource.d.ts +7 -6
  38. package/dist/types/models/IEndpoint.d.ts +1 -1
  39. package/dist/types/models/IGaiaXEntity.d.ts +1 -1
  40. package/dist/types/models/ILegalPerson.d.ts +4 -4
  41. package/dist/types/models/IRegistrationNumber.d.ts +1 -1
  42. package/dist/types/models/IServiceOffering.d.ts +8 -7
  43. package/dist/types/models/gaiaXContextType.d.ts +1 -1
  44. package/dist/types/models/gaiaXContexts.d.ts +1 -5
  45. package/docs/changelog.md +111 -0
  46. package/docs/reference/interfaces/IAddress.md +2 -2
  47. package/docs/reference/interfaces/IDataExchangeComponent.md +1 -1
  48. package/docs/reference/interfaces/IDataResource.md +2 -2
  49. package/docs/reference/interfaces/IEndpoint.md +2 -2
  50. package/docs/reference/interfaces/ILegalPerson.md +1 -1
  51. package/docs/reference/interfaces/IRegistrationNumber.md +1 -1
  52. package/docs/reference/interfaces/IServiceOffering.md +4 -4
  53. package/docs/reference/variables/GaiaXContexts.md +1 -7
  54. package/package.json +22 -9
  55. package/dist/cjs/index.cjs +0 -1935
  56. package/dist/esm/index.mjs +0 -1931
@@ -1,1931 +0,0 @@
1
- import { DataTypeHandlerFactory } from '@twin.org/data-core';
2
-
3
- // Copyright 2024 IOTA Stiftung.
4
- // SPDX-License-Identifier: Apache-2.0.
5
- /**
6
- * The LD Contexts concerning Gaia-X.
7
- */
8
- // eslint-disable-next-line @typescript-eslint/naming-convention
9
- const GaiaXContexts = {
10
- /**
11
- * The Gaia-X LD Context
12
- */
13
- ContextRoot: "https://w3id.org/gaia-x/development",
14
- /**
15
- * The Gaia-X custom context.
16
- */
17
- TwinContext: "https://schema.twindev.org/gaia-x"
18
- };
19
-
20
- // Copyright 2024 IOTA Stiftung.
21
- // SPDX-License-Identifier: Apache-2.0.
22
- /**
23
- * The types concerning Gaia-X.
24
- */
25
- // eslint-disable-next-line @typescript-eslint/naming-convention
26
- const GaiaXTypes = {
27
- /**
28
- * Data Resource
29
- */
30
- DataResource: "DataResource",
31
- /**
32
- * Service Offering Type
33
- */
34
- ServiceOffering: "ServiceOffering",
35
- /**
36
- * Legal Person
37
- */
38
- LegalPerson: "LegalPerson",
39
- /**
40
- * Data Exchange Component
41
- */
42
- DataExchangeComponent: "DataExchangeComponent",
43
- /**
44
- * Address
45
- */
46
- Address: "Address",
47
- /**
48
- * Endpoint
49
- */
50
- Endpoint: "Endpoint",
51
- /**
52
- * Registration number
53
- */
54
- RegistrationNumber: "RegistrationNumber",
55
- /**
56
- * Local Registration number
57
- */
58
- LocalRegistrationNumber: "LocalRegistrationNumber",
59
- /**
60
- * EORI
61
- */
62
- EORI: "EORI",
63
- /**
64
- * VAT ID
65
- */
66
- VatID: "VatID",
67
- /**
68
- * EU ID
69
- */
70
- EUID: "EUID",
71
- /**
72
- * GLEIF LEI code.
73
- */
74
- LeiCode: "LeiCode",
75
- /**
76
- * Tax Id.
77
- */
78
- TaxID: "TaxID"
79
- };
80
-
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/";
84
- var type$6 = "object";
85
- var properties$6 = {
86
- "@context": {
87
- $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
88
- },
89
- "@id": {
90
- anyOf: [
91
- {
92
- type: "string"
93
- },
94
- {
95
- type: "array",
96
- items: false,
97
- prefixItems: [
98
- {
99
- type: "string"
100
- }
101
- ]
102
- }
103
- ]
104
- },
105
- "@included": {
106
- $ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
107
- },
108
- "@graph": {
109
- anyOf: [
110
- {
111
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
112
- },
113
- {
114
- type: "array",
115
- items: false,
116
- prefixItems: [
117
- {
118
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
119
- }
120
- ]
121
- }
122
- ]
123
- },
124
- "@nest": {
125
- anyOf: [
126
- {
127
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
128
- },
129
- {
130
- type: "array",
131
- items: false,
132
- prefixItems: [
133
- {
134
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
135
- }
136
- ]
137
- }
138
- ]
139
- },
140
- "@type": {
141
- anyOf: [
142
- {
143
- type: "string"
144
- },
145
- {
146
- type: "array",
147
- items: false,
148
- prefixItems: [
149
- {
150
- type: "string"
151
- }
152
- ]
153
- }
154
- ]
155
- },
156
- "@reverse": {
157
- type: "object",
158
- additionalProperties: {
159
- type: "string"
160
- }
161
- },
162
- "@index": {
163
- type: "string"
164
- },
165
- type: {
166
- type: "string",
167
- "const": "Address",
168
- description: "JSON-LD @ type. In this case it is allowed to be omitted as it is usually a child node."
169
- },
170
- countryCode: {
171
- type: [
172
- "string",
173
- "number"
174
- ],
175
- description: "Country code in ISO 3166-1 alpha2, alpha-3 or numeric format"
176
- }
177
- };
178
- var required$6 = [
179
- "countryCode"
180
- ];
181
- var additionalProperties$6 = {
182
- anyOf: [
183
- {
184
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
185
- },
186
- {
187
- $ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
188
- },
189
- {
190
- $ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
191
- },
192
- {
193
- $ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
194
- },
195
- {
196
- $ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
197
- },
198
- {
199
- $ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
200
- },
201
- {
202
- type: "array"
203
- }
204
- ]
205
- };
206
- var AddressSchema = {
207
- $schema: $schema$7,
208
- $id: $id$7,
209
- description: description$7,
210
- type: type$6,
211
- properties: properties$6,
212
- required: required$6,
213
- additionalProperties: additionalProperties$6
214
- };
215
-
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";
219
- var type$5 = "object";
220
- var properties$5 = {
221
- "@context": {
222
- $ref: "https://schema.twindev.org/gaia-x/GaiaXContextType",
223
- description: "The LD Context"
224
- },
225
- "@id": {
226
- anyOf: [
227
- {
228
- type: "string"
229
- },
230
- {
231
- type: "array",
232
- items: false,
233
- prefixItems: [
234
- {
235
- type: "string"
236
- }
237
- ]
238
- }
239
- ]
240
- },
241
- "@included": {
242
- $ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
243
- },
244
- "@graph": {
245
- anyOf: [
246
- {
247
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
248
- },
249
- {
250
- type: "array",
251
- items: false,
252
- prefixItems: [
253
- {
254
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
255
- }
256
- ]
257
- }
258
- ]
259
- },
260
- "@nest": {
261
- anyOf: [
262
- {
263
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
264
- },
265
- {
266
- type: "array",
267
- items: false,
268
- prefixItems: [
269
- {
270
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
271
- }
272
- ]
273
- }
274
- ]
275
- },
276
- "@type": {
277
- anyOf: [
278
- {
279
- type: "string"
280
- },
281
- {
282
- type: "array",
283
- items: false,
284
- prefixItems: [
285
- {
286
- type: "string"
287
- }
288
- ]
289
- }
290
- ]
291
- },
292
- "@reverse": {
293
- type: "object",
294
- additionalProperties: {
295
- type: "string"
296
- }
297
- },
298
- "@index": {
299
- type: "string"
300
- },
301
- type: {
302
- anyOf: [
303
- {
304
- type: "string",
305
- "const": "DataExchangeComponent"
306
- },
307
- {
308
- type: "array",
309
- minItems: 1,
310
- items: {
311
- type: "string"
312
- },
313
- prefixItems: [
314
- {
315
- type: "string",
316
- "const": "DataExchangeComponent"
317
- }
318
- ]
319
- }
320
- ],
321
- description: "The type of JSON-LD node"
322
- }
323
- };
324
- var required$5 = [
325
- "@context",
326
- "type"
327
- ];
328
- var additionalProperties$5 = {
329
- anyOf: [
330
- {
331
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
332
- },
333
- {
334
- $ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
335
- },
336
- {
337
- $ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
338
- },
339
- {
340
- $ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
341
- },
342
- {
343
- $ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
344
- },
345
- {
346
- $ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
347
- },
348
- {
349
- type: "array"
350
- }
351
- ]
352
- };
353
- var DataExchangeComponentSchema = {
354
- $schema: $schema$6,
355
- $id: $id$6,
356
- description: description$6,
357
- type: type$5,
358
- properties: properties$5,
359
- required: required$5,
360
- additionalProperties: additionalProperties$5
361
- };
362
-
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/.";
366
- var type$4 = "object";
367
- var properties$4 = {
368
- "@context": {
369
- $ref: "https://schema.twindev.org/gaia-x/GaiaXContextType",
370
- description: "The LD Context"
371
- },
372
- "@id": {
373
- anyOf: [
374
- {
375
- type: "string"
376
- },
377
- {
378
- type: "array",
379
- items: false,
380
- prefixItems: [
381
- {
382
- type: "string"
383
- }
384
- ]
385
- }
386
- ]
387
- },
388
- "@included": {
389
- $ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
390
- },
391
- "@graph": {
392
- anyOf: [
393
- {
394
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
395
- },
396
- {
397
- type: "array",
398
- items: false,
399
- prefixItems: [
400
- {
401
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
402
- }
403
- ]
404
- }
405
- ]
406
- },
407
- "@nest": {
408
- anyOf: [
409
- {
410
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
411
- },
412
- {
413
- type: "array",
414
- items: false,
415
- prefixItems: [
416
- {
417
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
418
- }
419
- ]
420
- }
421
- ]
422
- },
423
- "@type": {
424
- anyOf: [
425
- {
426
- type: "string"
427
- },
428
- {
429
- type: "array",
430
- items: false,
431
- prefixItems: [
432
- {
433
- type: "string"
434
- }
435
- ]
436
- }
437
- ]
438
- },
439
- "@reverse": {
440
- type: "object",
441
- additionalProperties: {
442
- type: "string"
443
- }
444
- },
445
- "@index": {
446
- type: "string"
447
- },
448
- id: {
449
- type: "string",
450
- description: "Subject Id"
451
- },
452
- name: {
453
- type: "string",
454
- description: "The Resource Name"
455
- },
456
- description: {
457
- type: "string",
458
- description: "Description of the Gaia-X entity."
459
- },
460
- type: {
461
- type: "string",
462
- "const": "DataResource",
463
- description: "Subject type"
464
- },
465
- exposedThrough: {
466
- anyOf: [
467
- {
468
- $ref: "https://schema.twindev.org/gaia-x/DataExchangeComponent"
469
- },
470
- {
471
- type: "string"
472
- },
473
- {
474
- type: "object",
475
- additionalProperties: {
476
- anyOf: [
477
- {
478
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
479
- },
480
- {
481
- $ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
482
- },
483
- {
484
- $ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
485
- },
486
- {
487
- $ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
488
- },
489
- {
490
- $ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
491
- },
492
- {
493
- $ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
494
- },
495
- {
496
- type: "array"
497
- }
498
- ]
499
- },
500
- properties: {
501
- id: {
502
- type: "string"
503
- },
504
- type: {
505
- type: "string",
506
- "const": "DataExchangeComponent"
507
- },
508
- "@context": {
509
- $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
510
- },
511
- "@id": {
512
- anyOf: [
513
- {
514
- type: "string"
515
- },
516
- {
517
- type: "array",
518
- items: false,
519
- prefixItems: [
520
- {
521
- type: "string"
522
- }
523
- ]
524
- }
525
- ]
526
- },
527
- "@included": {
528
- $ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
529
- },
530
- "@graph": {
531
- anyOf: [
532
- {
533
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
534
- },
535
- {
536
- type: "array",
537
- items: false,
538
- prefixItems: [
539
- {
540
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
541
- }
542
- ]
543
- }
544
- ]
545
- },
546
- "@nest": {
547
- anyOf: [
548
- {
549
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
550
- },
551
- {
552
- type: "array",
553
- items: false,
554
- prefixItems: [
555
- {
556
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
557
- }
558
- ]
559
- }
560
- ]
561
- },
562
- "@type": {
563
- anyOf: [
564
- {
565
- type: "string"
566
- },
567
- {
568
- type: "array",
569
- items: false,
570
- prefixItems: [
571
- {
572
- type: "string"
573
- }
574
- ]
575
- }
576
- ]
577
- },
578
- "@reverse": {
579
- type: "object",
580
- additionalProperties: {
581
- type: "string"
582
- }
583
- },
584
- "@index": {
585
- type: "string"
586
- }
587
- },
588
- required: [
589
- "id",
590
- "type"
591
- ]
592
- }
593
- ],
594
- description: "Exposed through a Data Exchange Component. 'string' in case just an Id pointing to the Data Exchange Component is supplied the third case covers the idiom where a JSON-LD Node is supplied with id and type."
595
- },
596
- producedBy: {
597
- anyOf: [
598
- {
599
- $ref: "https://schema.twindev.org/gaia-x/LegalPerson"
600
- },
601
- {
602
- type: "string"
603
- }
604
- ],
605
- description: "Who is the data producer"
606
- },
607
- license: {
608
- type: "string",
609
- description: "Pointer (URL) to the license"
610
- },
611
- copyrightOwnedBy: {
612
- anyOf: [
613
- {
614
- $ref: "https://schema.twindev.org/gaia-x/LegalPerson"
615
- },
616
- {
617
- type: "string"
618
- }
619
- ],
620
- description: "Copyright owner"
621
- },
622
- resourcePolicy: {
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
- ]
638
- }
639
- };
640
- var required$4 = [
641
- "@context",
642
- "copyrightOwnedBy",
643
- "exposedThrough",
644
- "id",
645
- "license",
646
- "name",
647
- "producedBy",
648
- "resourcePolicy",
649
- "type"
650
- ];
651
- var additionalProperties$4 = {
652
- anyOf: [
653
- {
654
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
655
- },
656
- {
657
- $ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
658
- },
659
- {
660
- $ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
661
- },
662
- {
663
- $ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
664
- },
665
- {
666
- $ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
667
- },
668
- {
669
- $ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
670
- },
671
- {
672
- type: "array"
673
- }
674
- ]
675
- };
676
- var DataResourceSchema = {
677
- $schema: $schema$5,
678
- $id: $id$5,
679
- description: description$5,
680
- type: type$4,
681
- properties: properties$4,
682
- required: required$4,
683
- additionalProperties: additionalProperties$4
684
- };
685
-
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";
689
- var type$3 = "object";
690
- var properties$3 = {
691
- "@context": {
692
- $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
693
- },
694
- "@id": {
695
- anyOf: [
696
- {
697
- type: "string"
698
- },
699
- {
700
- type: "array",
701
- items: false,
702
- prefixItems: [
703
- {
704
- type: "string"
705
- }
706
- ]
707
- }
708
- ]
709
- },
710
- "@included": {
711
- $ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
712
- },
713
- "@graph": {
714
- anyOf: [
715
- {
716
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
717
- },
718
- {
719
- type: "array",
720
- items: false,
721
- prefixItems: [
722
- {
723
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
724
- }
725
- ]
726
- }
727
- ]
728
- },
729
- "@nest": {
730
- anyOf: [
731
- {
732
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
733
- },
734
- {
735
- type: "array",
736
- items: false,
737
- prefixItems: [
738
- {
739
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
740
- }
741
- ]
742
- }
743
- ]
744
- },
745
- "@type": {
746
- anyOf: [
747
- {
748
- type: "string"
749
- },
750
- {
751
- type: "array",
752
- items: false,
753
- prefixItems: [
754
- {
755
- type: "string"
756
- }
757
- ]
758
- }
759
- ]
760
- },
761
- "@reverse": {
762
- type: "object",
763
- additionalProperties: {
764
- type: "string"
765
- }
766
- },
767
- "@index": {
768
- type: "string"
769
- },
770
- type: {
771
- type: "string",
772
- "const": "Endpoint",
773
- description: "The type of JSON-LD node. In this case it is allowed to be omitted as it is usually a child node."
774
- },
775
- endpointURL: {
776
- type: "string",
777
- description: "The endpoint URL"
778
- },
779
- formalDescription: {
780
- type: "string",
781
- description: "The formal description"
782
- },
783
- standardConformity: {
784
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject",
785
- description: "Standards conformity"
786
- }
787
- };
788
- var required$3 = [
789
- "endpointURL"
790
- ];
791
- var additionalProperties$3 = {
792
- anyOf: [
793
- {
794
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
795
- },
796
- {
797
- $ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
798
- },
799
- {
800
- $ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
801
- },
802
- {
803
- $ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
804
- },
805
- {
806
- $ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
807
- },
808
- {
809
- $ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
810
- },
811
- {
812
- type: "array"
813
- }
814
- ]
815
- };
816
- var EndpointSchema = {
817
- $schema: $schema$4,
818
- $id: $id$4,
819
- description: description$4,
820
- type: type$3,
821
- properties: properties$3,
822
- required: required$3,
823
- additionalProperties: additionalProperties$3
824
- };
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
-
874
- var $schema$2 = "https://json-schema.org/draft/2020-12/schema";
875
- var $id$2 = "https://schema.twindev.org/gaia-x/LegalPerson";
876
- var description$2 = "A Legal Person as defined by Gaia-X.";
877
- var type$2 = "object";
878
- var properties$2 = {
879
- "@context": {
880
- $ref: "https://schema.twindev.org/gaia-x/GaiaXContextType",
881
- description: "The LD context."
882
- },
883
- "@id": {
884
- anyOf: [
885
- {
886
- type: "string"
887
- },
888
- {
889
- type: "array",
890
- items: false,
891
- prefixItems: [
892
- {
893
- type: "string"
894
- }
895
- ]
896
- }
897
- ]
898
- },
899
- "@included": {
900
- $ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
901
- },
902
- "@graph": {
903
- anyOf: [
904
- {
905
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
906
- },
907
- {
908
- type: "array",
909
- items: false,
910
- prefixItems: [
911
- {
912
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
913
- }
914
- ]
915
- }
916
- ]
917
- },
918
- "@nest": {
919
- anyOf: [
920
- {
921
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
922
- },
923
- {
924
- type: "array",
925
- items: false,
926
- prefixItems: [
927
- {
928
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
929
- }
930
- ]
931
- }
932
- ]
933
- },
934
- "@type": {
935
- anyOf: [
936
- {
937
- type: "string"
938
- },
939
- {
940
- type: "array",
941
- items: false,
942
- prefixItems: [
943
- {
944
- type: "string"
945
- }
946
- ]
947
- }
948
- ]
949
- },
950
- "@reverse": {
951
- type: "object",
952
- additionalProperties: {
953
- type: "string"
954
- }
955
- },
956
- "@index": {
957
- type: "string"
958
- },
959
- id: {
960
- type: "string",
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."
970
- },
971
- type: {
972
- type: "string",
973
- "const": "LegalPerson",
974
- description: "JSON-LD type."
975
- },
976
- registrationNumber: {
977
- $ref: "https://schema.twindev.org/gaia-x/RegistrationNumber",
978
- description: "The legal registration number."
979
- },
980
- legalName: {
981
- type: "string",
982
- description: "The legal name."
983
- },
984
- legalAddress: {
985
- $ref: "https://schema.twindev.org/gaia-x/Address",
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
- ]
1221
- }
1222
- };
1223
- var required$2 = [
1224
- "@context",
1225
- "id",
1226
- "legalAddress",
1227
- "legalName",
1228
- "registrationNumber",
1229
- "type"
1230
- ];
1231
- var additionalProperties$2 = {
1232
- anyOf: [
1233
- {
1234
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
1235
- },
1236
- {
1237
- $ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
1238
- },
1239
- {
1240
- $ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
1241
- },
1242
- {
1243
- $ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
1244
- },
1245
- {
1246
- $ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
1247
- },
1248
- {
1249
- $ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
1250
- },
1251
- {
1252
- type: "array"
1253
- }
1254
- ]
1255
- };
1256
- var LegalPersonSchema = {
1257
- $schema: $schema$2,
1258
- $id: $id$2,
1259
- description: description$2,
1260
- type: type$2,
1261
- properties: properties$2,
1262
- required: required$2,
1263
- additionalProperties: additionalProperties$2
1264
- };
1265
-
1266
- var $schema$1 = "https://json-schema.org/draft/2020-12/schema";
1267
- var $id$1 = "https://schema.twindev.org/gaia-x/RegistrationNumber";
1268
- var description$1 = "Registration Number as defined by the Gaia-X ontology. https://docs.gaia-x.eu/ontology/development/classes/RegistrationNumber/";
1269
- var type$1 = "object";
1270
- var properties$1 = {
1271
- "@context": {
1272
- $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
1273
- },
1274
- "@id": {
1275
- anyOf: [
1276
- {
1277
- type: "string"
1278
- },
1279
- {
1280
- type: "array",
1281
- items: false,
1282
- prefixItems: [
1283
- {
1284
- type: "string"
1285
- }
1286
- ]
1287
- }
1288
- ]
1289
- },
1290
- "@included": {
1291
- $ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
1292
- },
1293
- "@graph": {
1294
- anyOf: [
1295
- {
1296
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
1297
- },
1298
- {
1299
- type: "array",
1300
- items: false,
1301
- prefixItems: [
1302
- {
1303
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
1304
- }
1305
- ]
1306
- }
1307
- ]
1308
- },
1309
- "@nest": {
1310
- anyOf: [
1311
- {
1312
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
1313
- },
1314
- {
1315
- type: "array",
1316
- items: false,
1317
- prefixItems: [
1318
- {
1319
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
1320
- }
1321
- ]
1322
- }
1323
- ]
1324
- },
1325
- "@type": {
1326
- anyOf: [
1327
- {
1328
- type: "string"
1329
- },
1330
- {
1331
- type: "array",
1332
- items: false,
1333
- prefixItems: [
1334
- {
1335
- type: "string"
1336
- }
1337
- ]
1338
- }
1339
- ]
1340
- },
1341
- "@reverse": {
1342
- type: "object",
1343
- additionalProperties: {
1344
- type: "string"
1345
- }
1346
- },
1347
- "@index": {
1348
- type: "string"
1349
- },
1350
- type: {
1351
- type: "string",
1352
- "enum": [
1353
- "RegistrationNumber",
1354
- "LocalRegistrationNumber",
1355
- "EORI",
1356
- "EUID",
1357
- "LeiCode",
1358
- "TaxID",
1359
- "VatID"
1360
- ],
1361
- description: "JSON-LD Type."
1362
- },
1363
- local: {
1364
- type: "string",
1365
- description: "Local Registration."
1366
- },
1367
- countryCode: {
1368
- type: "string",
1369
- description: "Country code. See https://docs.gaia-x.eu/ontology/development/enums/CountryNameAlpha2/"
1370
- },
1371
- subdivisionCountryCode: {
1372
- type: "string",
1373
- description: "Subdivision country code. See https://docs.gaia-x.eu/ontology/development/enums/RegionCode/"
1374
- },
1375
- vatID: {
1376
- type: "string",
1377
- description: "The VAT identification number."
1378
- },
1379
- leiCode: {
1380
- type: "string",
1381
- description: "Unique LEI number as defined by GLEIF."
1382
- },
1383
- eori: {
1384
- type: "string",
1385
- description: "The Economic Operators Registration and Identification number (EORI)."
1386
- },
1387
- country: {
1388
- type: "string",
1389
- description: "The country where the EORI is registered written in plain english"
1390
- },
1391
- euid: {
1392
- type: "string",
1393
- description: "The European Unique Identifier (EUID) for business located in the European Ec."
1394
- },
1395
- taxId: {
1396
- type: "string",
1397
- description: "The company tax ID."
1398
- }
1399
- };
1400
- var required$1 = [
1401
- "type"
1402
- ];
1403
- var additionalProperties$1 = {
1404
- anyOf: [
1405
- {
1406
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
1407
- },
1408
- {
1409
- $ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
1410
- },
1411
- {
1412
- $ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
1413
- },
1414
- {
1415
- $ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
1416
- },
1417
- {
1418
- $ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
1419
- },
1420
- {
1421
- $ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
1422
- },
1423
- {
1424
- type: "array"
1425
- }
1426
- ]
1427
- };
1428
- var RegistrationNumberSchema = {
1429
- $schema: $schema$1,
1430
- $id: $id$1,
1431
- description: description$1,
1432
- type: type$1,
1433
- properties: properties$1,
1434
- required: required$1,
1435
- additionalProperties: additionalProperties$1
1436
- };
1437
-
1438
- var $schema = "https://json-schema.org/draft/2020-12/schema";
1439
- var $id = "https://schema.twindev.org/gaia-x/ServiceOffering";
1440
- var description = "A Service offering";
1441
- var type = "object";
1442
- var properties = {
1443
- "@context": {
1444
- $ref: "https://schema.twindev.org/gaia-x/GaiaXContextType",
1445
- description: "The LD context."
1446
- },
1447
- "@id": {
1448
- anyOf: [
1449
- {
1450
- type: "string"
1451
- },
1452
- {
1453
- type: "array",
1454
- items: false,
1455
- prefixItems: [
1456
- {
1457
- type: "string"
1458
- }
1459
- ]
1460
- }
1461
- ]
1462
- },
1463
- "@included": {
1464
- $ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
1465
- },
1466
- "@graph": {
1467
- anyOf: [
1468
- {
1469
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
1470
- },
1471
- {
1472
- type: "array",
1473
- items: false,
1474
- prefixItems: [
1475
- {
1476
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
1477
- }
1478
- ]
1479
- }
1480
- ]
1481
- },
1482
- "@nest": {
1483
- anyOf: [
1484
- {
1485
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
1486
- },
1487
- {
1488
- type: "array",
1489
- items: false,
1490
- prefixItems: [
1491
- {
1492
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
1493
- }
1494
- ]
1495
- }
1496
- ]
1497
- },
1498
- "@type": {
1499
- anyOf: [
1500
- {
1501
- type: "string"
1502
- },
1503
- {
1504
- type: "array",
1505
- items: false,
1506
- prefixItems: [
1507
- {
1508
- type: "string"
1509
- }
1510
- ]
1511
- }
1512
- ]
1513
- },
1514
- "@reverse": {
1515
- type: "object",
1516
- additionalProperties: {
1517
- type: "string"
1518
- }
1519
- },
1520
- "@index": {
1521
- type: "string"
1522
- },
1523
- id: {
1524
- type: "string",
1525
- description: "The Id."
1526
- },
1527
- name: {
1528
- type: "string",
1529
- description: "Name of the Service Offering."
1530
- },
1531
- description: {
1532
- type: "string",
1533
- description: "Description of the Gaia-X entity."
1534
- },
1535
- type: {
1536
- type: "string",
1537
- "const": "ServiceOffering",
1538
- description: "Type"
1539
- },
1540
- providedBy: {
1541
- anyOf: [
1542
- {
1543
- type: "string"
1544
- },
1545
- {
1546
- $ref: "https://schema.twindev.org/gaia-x/LegalPerson"
1547
- },
1548
- {
1549
- type: "object",
1550
- additionalProperties: {
1551
- anyOf: [
1552
- {
1553
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
1554
- },
1555
- {
1556
- $ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
1557
- },
1558
- {
1559
- $ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
1560
- },
1561
- {
1562
- $ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
1563
- },
1564
- {
1565
- $ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
1566
- },
1567
- {
1568
- $ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
1569
- },
1570
- {
1571
- type: "array"
1572
- }
1573
- ]
1574
- },
1575
- properties: {
1576
- id: {
1577
- type: "string"
1578
- },
1579
- type: {
1580
- type: "string",
1581
- "const": "LegalPerson"
1582
- },
1583
- "@context": {
1584
- $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
1585
- },
1586
- "@id": {
1587
- anyOf: [
1588
- {
1589
- type: "string"
1590
- },
1591
- {
1592
- type: "array",
1593
- items: false,
1594
- prefixItems: [
1595
- {
1596
- type: "string"
1597
- }
1598
- ]
1599
- }
1600
- ]
1601
- },
1602
- "@included": {
1603
- $ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
1604
- },
1605
- "@graph": {
1606
- anyOf: [
1607
- {
1608
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
1609
- },
1610
- {
1611
- type: "array",
1612
- items: false,
1613
- prefixItems: [
1614
- {
1615
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
1616
- }
1617
- ]
1618
- }
1619
- ]
1620
- },
1621
- "@nest": {
1622
- anyOf: [
1623
- {
1624
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
1625
- },
1626
- {
1627
- type: "array",
1628
- items: false,
1629
- prefixItems: [
1630
- {
1631
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
1632
- }
1633
- ]
1634
- }
1635
- ]
1636
- },
1637
- "@type": {
1638
- anyOf: [
1639
- {
1640
- type: "string"
1641
- },
1642
- {
1643
- type: "array",
1644
- items: false,
1645
- prefixItems: [
1646
- {
1647
- type: "string"
1648
- }
1649
- ]
1650
- }
1651
- ]
1652
- },
1653
- "@reverse": {
1654
- type: "object",
1655
- additionalProperties: {
1656
- type: "string"
1657
- }
1658
- },
1659
- "@index": {
1660
- type: "string"
1661
- }
1662
- },
1663
- required: [
1664
- "id",
1665
- "type"
1666
- ]
1667
- }
1668
- ],
1669
- description: "Participant that provides the offering"
1670
- },
1671
- servicePolicy: {
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
- ]
1687
- },
1688
- aggregationOfResources: {
1689
- anyOf: [
1690
- {
1691
- type: "array",
1692
- items: false,
1693
- prefixItems: [
1694
- {
1695
- type: "string"
1696
- }
1697
- ]
1698
- },
1699
- {
1700
- type: "array",
1701
- items: false,
1702
- prefixItems: [
1703
- {
1704
- $ref: "https://schema.twindev.org/gaia-x/DataResource"
1705
- }
1706
- ]
1707
- },
1708
- {
1709
- type: "object",
1710
- additionalProperties: {
1711
- anyOf: [
1712
- {
1713
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
1714
- },
1715
- {
1716
- $ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
1717
- },
1718
- {
1719
- $ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
1720
- },
1721
- {
1722
- $ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
1723
- },
1724
- {
1725
- $ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
1726
- },
1727
- {
1728
- $ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
1729
- },
1730
- {
1731
- type: "array"
1732
- }
1733
- ]
1734
- },
1735
- properties: {
1736
- id: {
1737
- type: "string"
1738
- },
1739
- type: {
1740
- type: "string",
1741
- "const": "DataResource"
1742
- },
1743
- "@context": {
1744
- $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionRoot"
1745
- },
1746
- "@id": {
1747
- anyOf: [
1748
- {
1749
- type: "string"
1750
- },
1751
- {
1752
- type: "array",
1753
- items: false,
1754
- prefixItems: [
1755
- {
1756
- type: "string"
1757
- }
1758
- ]
1759
- }
1760
- ]
1761
- },
1762
- "@included": {
1763
- $ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
1764
- },
1765
- "@graph": {
1766
- anyOf: [
1767
- {
1768
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
1769
- },
1770
- {
1771
- type: "array",
1772
- items: false,
1773
- prefixItems: [
1774
- {
1775
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject"
1776
- }
1777
- ]
1778
- }
1779
- ]
1780
- },
1781
- "@nest": {
1782
- anyOf: [
1783
- {
1784
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
1785
- },
1786
- {
1787
- type: "array",
1788
- items: false,
1789
- prefixItems: [
1790
- {
1791
- $ref: "https://schema.twindev.org/json-ld/JsonLdJsonObject"
1792
- }
1793
- ]
1794
- }
1795
- ]
1796
- },
1797
- "@type": {
1798
- anyOf: [
1799
- {
1800
- type: "string"
1801
- },
1802
- {
1803
- type: "array",
1804
- items: false,
1805
- prefixItems: [
1806
- {
1807
- type: "string"
1808
- }
1809
- ]
1810
- }
1811
- ]
1812
- },
1813
- "@reverse": {
1814
- type: "object",
1815
- additionalProperties: {
1816
- type: "string"
1817
- }
1818
- },
1819
- "@index": {
1820
- type: "string"
1821
- }
1822
- },
1823
- required: [
1824
- "id",
1825
- "type"
1826
- ]
1827
- }
1828
- ],
1829
- description: "Resources aggregated It is supported different representations, inline, by reference both providing the URI or a partial JSON-LD Node object"
1830
- },
1831
- endpoint: {
1832
- $ref: "https://schema.twindev.org/gaia-x/Endpoint",
1833
- description: "The endpoint"
1834
- }
1835
- };
1836
- var required = [
1837
- "@context",
1838
- "endpoint",
1839
- "id",
1840
- "name",
1841
- "providedBy",
1842
- "servicePolicy",
1843
- "type"
1844
- ];
1845
- var additionalProperties = {
1846
- anyOf: [
1847
- {
1848
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
1849
- },
1850
- {
1851
- $ref: "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
1852
- },
1853
- {
1854
- $ref: "https://schema.twindev.org/json-ld/JsonLdIndexMap"
1855
- },
1856
- {
1857
- $ref: "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
1858
- },
1859
- {
1860
- $ref: "https://schema.twindev.org/json-ld/JsonLdIdMap"
1861
- },
1862
- {
1863
- $ref: "https://schema.twindev.org/json-ld/JsonLdTypeMap"
1864
- },
1865
- {
1866
- type: "array"
1867
- }
1868
- ]
1869
- };
1870
- var ServiceOfferingSchema = {
1871
- $schema: $schema,
1872
- $id: $id,
1873
- description: description,
1874
- type: type,
1875
- properties: properties,
1876
- required: required,
1877
- additionalProperties: additionalProperties
1878
- };
1879
-
1880
- /**
1881
- * Handle all the data types for Gaia-X.
1882
- */
1883
- class GaiaXDataTypes {
1884
- /**
1885
- * Register all the data types.
1886
- */
1887
- static registerTypes() {
1888
- DataTypeHandlerFactory.register(`${GaiaXContexts.TwinContext}/${"GaiaXContextType"}`, () => ({
1889
- context: GaiaXContexts.TwinContext,
1890
- type: "GaiaXContextType",
1891
- jsonSchema: async () => GaiaXContextTypeSchema
1892
- }));
1893
- DataTypeHandlerFactory.register(`${GaiaXContexts.ContextRoot}${GaiaXTypes.DataExchangeComponent}`, () => ({
1894
- context: GaiaXContexts.ContextRoot,
1895
- type: GaiaXTypes.DataExchangeComponent,
1896
- jsonSchema: async () => DataExchangeComponentSchema
1897
- }));
1898
- DataTypeHandlerFactory.register(`${GaiaXContexts.ContextRoot}${GaiaXTypes.DataResource}`, () => ({
1899
- context: GaiaXContexts.ContextRoot,
1900
- type: GaiaXTypes.DataResource,
1901
- jsonSchema: async () => DataResourceSchema
1902
- }));
1903
- DataTypeHandlerFactory.register(`${GaiaXContexts.ContextRoot}${GaiaXTypes.Endpoint}`, () => ({
1904
- context: GaiaXContexts.ContextRoot,
1905
- type: GaiaXTypes.Endpoint,
1906
- jsonSchema: async () => EndpointSchema
1907
- }));
1908
- DataTypeHandlerFactory.register(`${GaiaXContexts.ContextRoot}${GaiaXTypes.Address}`, () => ({
1909
- context: GaiaXContexts.ContextRoot,
1910
- type: GaiaXTypes.Address,
1911
- jsonSchema: async () => AddressSchema
1912
- }));
1913
- DataTypeHandlerFactory.register(`${GaiaXContexts.ContextRoot}${GaiaXTypes.ServiceOffering}`, () => ({
1914
- context: GaiaXContexts.ContextRoot,
1915
- type: GaiaXTypes.ServiceOffering,
1916
- jsonSchema: async () => ServiceOfferingSchema
1917
- }));
1918
- DataTypeHandlerFactory.register(`${GaiaXContexts.ContextRoot}${GaiaXTypes.LegalPerson}`, () => ({
1919
- context: GaiaXContexts.ContextRoot,
1920
- type: GaiaXTypes.LegalPerson,
1921
- jsonSchema: async () => LegalPersonSchema
1922
- }));
1923
- DataTypeHandlerFactory.register(`${GaiaXContexts.ContextRoot}${GaiaXTypes.RegistrationNumber}`, () => ({
1924
- context: GaiaXContexts.ContextRoot,
1925
- type: GaiaXTypes.RegistrationNumber,
1926
- jsonSchema: async () => RegistrationNumberSchema
1927
- }));
1928
- }
1929
- }
1930
-
1931
- export { GaiaXContexts, GaiaXDataTypes, GaiaXTypes };