@twin.org/standards-gaia-x 0.0.2-next.9 → 0.0.3-next.10

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