@twin.org/auditable-item-graph-models 0.0.1-next.42 → 0.0.1-next.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -30,6 +30,10 @@ const AuditableItemGraphTypes = {
30
30
  * Represents auditable item graph vertex.
31
31
  */
32
32
  Vertex: "AuditableItemGraphVertex",
33
+ /**
34
+ * Represents auditable item graph vertex list.
35
+ */
36
+ VertexList: "AuditableItemGraphVertexList",
33
37
  /**
34
38
  * Represents auditable item graph alias.
35
39
  */
@@ -52,11 +56,11 @@ const AuditableItemGraphTypes = {
52
56
  PatchOperation: "AuditableItemGraphPatchOperation"
53
57
  };
54
58
 
55
- var $schema$5 = "https://json-schema.org/draft/2020-12/schema";
56
- var $id$5 = "https://schema.twindev.org/aig/AuditableItemGraphAlias";
57
- var description$5 = "Interface describing an alias for a vertex.";
58
- var type$5 = "object";
59
- var properties$5 = {
59
+ var $schema$6 = "https://json-schema.org/draft/2020-12/schema";
60
+ var $id$6 = "https://schema.twindev.org/aig/AuditableItemGraphAlias";
61
+ var description$6 = "Interface describing an alias for a vertex.";
62
+ var type$6 = "object";
63
+ var properties$6 = {
60
64
  id: {
61
65
  type: "string",
62
66
  description: "The id of the element."
@@ -109,27 +113,27 @@ var properties$5 = {
109
113
  description: "The format of the id in the alias."
110
114
  }
111
115
  };
112
- var required$5 = [
116
+ var required$6 = [
113
117
  "@context",
114
118
  "id",
115
119
  "type"
116
120
  ];
117
- var additionalProperties$5 = false;
121
+ var additionalProperties$6 = false;
118
122
  var AuditableItemGraphAliasSchema = {
119
- $schema: $schema$5,
120
- $id: $id$5,
121
- description: description$5,
122
- type: type$5,
123
- properties: properties$5,
124
- required: required$5,
125
- additionalProperties: additionalProperties$5
123
+ $schema: $schema$6,
124
+ $id: $id$6,
125
+ description: description$6,
126
+ type: type$6,
127
+ properties: properties$6,
128
+ required: required$6,
129
+ additionalProperties: additionalProperties$6
126
130
  };
127
131
 
128
- var $schema$4 = "https://json-schema.org/draft/2020-12/schema";
129
- var $id$4 = "https://schema.twindev.org/aig/AuditableItemGraphChangeset";
130
- var description$4 = "Interface describing a set of changes to the vertex.";
131
- var type$4 = "object";
132
- var properties$4 = {
132
+ var $schema$5 = "https://json-schema.org/draft/2020-12/schema";
133
+ var $id$5 = "https://schema.twindev.org/aig/AuditableItemGraphChangeset";
134
+ var description$5 = "Interface describing a set of changes to the vertex.";
135
+ var type$5 = "object";
136
+ var properties$5 = {
133
137
  "@context": {
134
138
  type: "array",
135
139
  minItems: 2,
@@ -184,7 +188,7 @@ var properties$4 = {
184
188
  description: "The verification for the changeset."
185
189
  }
186
190
  };
187
- var required$4 = [
191
+ var required$5 = [
188
192
  "@context",
189
193
  "type",
190
194
  "id",
@@ -192,22 +196,22 @@ var required$4 = [
192
196
  "userIdentity",
193
197
  "patches"
194
198
  ];
195
- var additionalProperties$4 = false;
199
+ var additionalProperties$5 = false;
196
200
  var AuditableItemGraphChangesetSchema = {
197
- $schema: $schema$4,
198
- $id: $id$4,
199
- description: description$4,
200
- type: type$4,
201
- properties: properties$4,
202
- required: required$4,
203
- additionalProperties: additionalProperties$4
201
+ $schema: $schema$5,
202
+ $id: $id$5,
203
+ description: description$5,
204
+ type: type$5,
205
+ properties: properties$5,
206
+ required: required$5,
207
+ additionalProperties: additionalProperties$5
204
208
  };
205
209
 
206
- var $schema$3 = "https://json-schema.org/draft/2020-12/schema";
207
- var $id$3 = "https://schema.twindev.org/aig/AuditableItemGraphEdge";
208
- var description$3 = "Interface describing an edge between two vertices in an auditable item graph.";
209
- var type$3 = "object";
210
- var properties$3 = {
210
+ var $schema$4 = "https://json-schema.org/draft/2020-12/schema";
211
+ var $id$4 = "https://schema.twindev.org/aig/AuditableItemGraphEdge";
212
+ var description$4 = "Interface describing an edge between two vertices in an auditable item graph.";
213
+ var type$4 = "object";
214
+ var properties$4 = {
211
215
  id: {
212
216
  type: "string",
213
217
  description: "The id of the element."
@@ -266,28 +270,28 @@ var properties$3 = {
266
270
  ]
267
271
  }
268
272
  };
269
- var required$3 = [
273
+ var required$4 = [
270
274
  "@context",
271
275
  "id",
272
276
  "type",
273
277
  "edgeRelationships"
274
278
  ];
275
- var additionalProperties$3 = false;
279
+ var additionalProperties$4 = false;
276
280
  var AuditableItemGraphEdgeSchema = {
277
- $schema: $schema$3,
278
- $id: $id$3,
279
- description: description$3,
280
- type: type$3,
281
- properties: properties$3,
282
- required: required$3,
283
- additionalProperties: additionalProperties$3
281
+ $schema: $schema$4,
282
+ $id: $id$4,
283
+ description: description$4,
284
+ type: type$4,
285
+ properties: properties$4,
286
+ required: required$4,
287
+ additionalProperties: additionalProperties$4
284
288
  };
285
289
 
286
- var $schema$2 = "https://json-schema.org/draft/2020-12/schema";
287
- var $id$2 = "https://schema.twindev.org/aig/AuditableItemGraphPatchOperation";
288
- var description$2 = "The patch operation for JSON diffs.";
289
- var type$2 = "object";
290
- var properties$2 = {
290
+ var $schema$3 = "https://json-schema.org/draft/2020-12/schema";
291
+ var $id$3 = "https://schema.twindev.org/aig/AuditableItemGraphPatchOperation";
292
+ var description$3 = "The patch operation for JSON diffs.";
293
+ var type$3 = "object";
294
+ var properties$3 = {
291
295
  "@context": {
292
296
  anyOf: [
293
297
  {
@@ -339,28 +343,28 @@ var properties$2 = {
339
343
  description: "The value to add."
340
344
  }
341
345
  };
342
- var required$2 = [
346
+ var required$3 = [
343
347
  "@context",
344
348
  "type",
345
349
  "patchOperation",
346
350
  "patchPath"
347
351
  ];
348
- var additionalProperties$2 = false;
352
+ var additionalProperties$3 = false;
349
353
  var AuditableItemGraphPatchOperationSchema = {
350
- $schema: $schema$2,
351
- $id: $id$2,
352
- description: description$2,
353
- type: type$2,
354
- properties: properties$2,
355
- required: required$2,
356
- additionalProperties: additionalProperties$2
354
+ $schema: $schema$3,
355
+ $id: $id$3,
356
+ description: description$3,
357
+ type: type$3,
358
+ properties: properties$3,
359
+ required: required$3,
360
+ additionalProperties: additionalProperties$3
357
361
  };
358
362
 
359
- var $schema$1 = "https://json-schema.org/draft/2020-12/schema";
360
- var $id$1 = "https://schema.twindev.org/aig/AuditableItemGraphResource";
361
- var description$1 = "Interface describing an auditable item graph vertex resource.";
362
- var type$1 = "object";
363
- var properties$1 = {
363
+ var $schema$2 = "https://json-schema.org/draft/2020-12/schema";
364
+ var $id$2 = "https://schema.twindev.org/aig/AuditableItemGraphResource";
365
+ var description$2 = "Interface describing an auditable item graph vertex resource.";
366
+ var type$2 = "object";
367
+ var properties$2 = {
364
368
  id: {
365
369
  type: "string",
366
370
  description: "The id of the element."
@@ -409,26 +413,26 @@ var properties$1 = {
409
413
  description: "The JSON-LD object for the resource."
410
414
  }
411
415
  };
412
- var required$1 = [
416
+ var required$2 = [
413
417
  "@context",
414
418
  "type"
415
419
  ];
416
- var additionalProperties$1 = false;
420
+ var additionalProperties$2 = false;
417
421
  var AuditableItemGraphResourceSchema = {
418
- $schema: $schema$1,
419
- $id: $id$1,
420
- description: description$1,
421
- type: type$1,
422
- properties: properties$1,
423
- required: required$1,
424
- additionalProperties: additionalProperties$1
422
+ $schema: $schema$2,
423
+ $id: $id$2,
424
+ description: description$2,
425
+ type: type$2,
426
+ properties: properties$2,
427
+ required: required$2,
428
+ additionalProperties: additionalProperties$2
425
429
  };
426
430
 
427
- var $schema = "https://json-schema.org/draft/2020-12/schema";
428
- var $id = "https://schema.twindev.org/aig/AuditableItemGraphVertex";
429
- var description = "Interface describing an auditable item graph vertex.";
430
- var type = "object";
431
- var properties = {
431
+ var $schema$1 = "https://json-schema.org/draft/2020-12/schema";
432
+ var $id$1 = "https://schema.twindev.org/aig/AuditableItemGraphVertex";
433
+ var description$1 = "Interface describing an auditable item graph vertex.";
434
+ var type$1 = "object";
435
+ var properties$1 = {
432
436
  id: {
433
437
  type: "string",
434
438
  description: "The id of the element."
@@ -521,13 +525,84 @@ var properties = {
521
525
  description: "Is the vertex verified, will only be populated when verification is requested."
522
526
  }
523
527
  };
524
- var required = [
528
+ var required$1 = [
525
529
  "@context",
526
530
  "id",
527
531
  "type"
528
532
  ];
529
- var additionalProperties = false;
533
+ var additionalProperties$1 = false;
530
534
  var AuditableItemGraphVertexSchema = {
535
+ $schema: $schema$1,
536
+ $id: $id$1,
537
+ description: description$1,
538
+ type: type$1,
539
+ properties: properties$1,
540
+ required: required$1,
541
+ additionalProperties: additionalProperties$1
542
+ };
543
+
544
+ var $schema = "https://json-schema.org/draft/2020-12/schema";
545
+ var $id = "https://schema.twindev.org/aig/AuditableItemGraphVertexList";
546
+ var description = "Interface describing an auditable item graph vertex list.";
547
+ var type = "object";
548
+ var properties = {
549
+ "@context": {
550
+ type: "array",
551
+ minItems: 2,
552
+ items: {
553
+ $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
554
+ },
555
+ description: "JSON-LD Context.",
556
+ prefixItems: [
557
+ {
558
+ type: "string",
559
+ "const": "https://schema.org"
560
+ },
561
+ {
562
+ type: "string",
563
+ "const": "https://schema.twindev.org/aig/"
564
+ }
565
+ ]
566
+ },
567
+ type: {
568
+ type: "array",
569
+ minItems: 2,
570
+ items: false,
571
+ maxItems: 2,
572
+ description: "JSON-LD Type.",
573
+ prefixItems: [
574
+ {
575
+ type: "string",
576
+ "const": "ItemList"
577
+ },
578
+ {
579
+ type: "string",
580
+ "const": "AuditableItemGraphVertexList"
581
+ }
582
+ ]
583
+ },
584
+ itemListElement: {
585
+ type: "array",
586
+ items: false,
587
+ description: "The list of vertices.",
588
+ prefixItems: [
589
+ {
590
+ $ref: "https://schema.twindev.org/aig/AuditableItemGraphVertex"
591
+ }
592
+ ]
593
+ },
594
+ nextItem: {
595
+ type: "string",
596
+ description: "The cursor to get the next chunk of vertices."
597
+ }
598
+ };
599
+ var required = [
600
+ "@context",
601
+ "type",
602
+ "itemListElement"
603
+ ];
604
+ var additionalProperties = false;
605
+ var AuditableItemGraphVertexListSchema = {
531
606
  $schema: $schema,
532
607
  $id: $id,
533
608
  description: description,
@@ -553,6 +628,12 @@ class AuditableItemGraphDataTypes {
553
628
  defaultValue: {},
554
629
  jsonSchema: async () => AuditableItemGraphVertexSchema
555
630
  }));
631
+ dataCore.DataTypeHandlerFactory.register(`${AuditableItemGraphContexts.ContextRoot}${AuditableItemGraphTypes.VertexList}`, () => ({
632
+ context: AuditableItemGraphContexts.ContextRoot,
633
+ type: AuditableItemGraphTypes.VertexList,
634
+ defaultValue: {},
635
+ jsonSchema: async () => AuditableItemGraphVertexListSchema
636
+ }));
556
637
  dataCore.DataTypeHandlerFactory.register(`${AuditableItemGraphContexts.ContextRoot}${AuditableItemGraphTypes.Alias}`, () => ({
557
638
  context: AuditableItemGraphContexts.ContextRoot,
558
639
  type: AuditableItemGraphTypes.Alias,
@@ -28,6 +28,10 @@ const AuditableItemGraphTypes = {
28
28
  * Represents auditable item graph vertex.
29
29
  */
30
30
  Vertex: "AuditableItemGraphVertex",
31
+ /**
32
+ * Represents auditable item graph vertex list.
33
+ */
34
+ VertexList: "AuditableItemGraphVertexList",
31
35
  /**
32
36
  * Represents auditable item graph alias.
33
37
  */
@@ -50,11 +54,11 @@ const AuditableItemGraphTypes = {
50
54
  PatchOperation: "AuditableItemGraphPatchOperation"
51
55
  };
52
56
 
53
- var $schema$5 = "https://json-schema.org/draft/2020-12/schema";
54
- var $id$5 = "https://schema.twindev.org/aig/AuditableItemGraphAlias";
55
- var description$5 = "Interface describing an alias for a vertex.";
56
- var type$5 = "object";
57
- var properties$5 = {
57
+ var $schema$6 = "https://json-schema.org/draft/2020-12/schema";
58
+ var $id$6 = "https://schema.twindev.org/aig/AuditableItemGraphAlias";
59
+ var description$6 = "Interface describing an alias for a vertex.";
60
+ var type$6 = "object";
61
+ var properties$6 = {
58
62
  id: {
59
63
  type: "string",
60
64
  description: "The id of the element."
@@ -107,27 +111,27 @@ var properties$5 = {
107
111
  description: "The format of the id in the alias."
108
112
  }
109
113
  };
110
- var required$5 = [
114
+ var required$6 = [
111
115
  "@context",
112
116
  "id",
113
117
  "type"
114
118
  ];
115
- var additionalProperties$5 = false;
119
+ var additionalProperties$6 = false;
116
120
  var AuditableItemGraphAliasSchema = {
117
- $schema: $schema$5,
118
- $id: $id$5,
119
- description: description$5,
120
- type: type$5,
121
- properties: properties$5,
122
- required: required$5,
123
- additionalProperties: additionalProperties$5
121
+ $schema: $schema$6,
122
+ $id: $id$6,
123
+ description: description$6,
124
+ type: type$6,
125
+ properties: properties$6,
126
+ required: required$6,
127
+ additionalProperties: additionalProperties$6
124
128
  };
125
129
 
126
- var $schema$4 = "https://json-schema.org/draft/2020-12/schema";
127
- var $id$4 = "https://schema.twindev.org/aig/AuditableItemGraphChangeset";
128
- var description$4 = "Interface describing a set of changes to the vertex.";
129
- var type$4 = "object";
130
- var properties$4 = {
130
+ var $schema$5 = "https://json-schema.org/draft/2020-12/schema";
131
+ var $id$5 = "https://schema.twindev.org/aig/AuditableItemGraphChangeset";
132
+ var description$5 = "Interface describing a set of changes to the vertex.";
133
+ var type$5 = "object";
134
+ var properties$5 = {
131
135
  "@context": {
132
136
  type: "array",
133
137
  minItems: 2,
@@ -182,7 +186,7 @@ var properties$4 = {
182
186
  description: "The verification for the changeset."
183
187
  }
184
188
  };
185
- var required$4 = [
189
+ var required$5 = [
186
190
  "@context",
187
191
  "type",
188
192
  "id",
@@ -190,22 +194,22 @@ var required$4 = [
190
194
  "userIdentity",
191
195
  "patches"
192
196
  ];
193
- var additionalProperties$4 = false;
197
+ var additionalProperties$5 = false;
194
198
  var AuditableItemGraphChangesetSchema = {
195
- $schema: $schema$4,
196
- $id: $id$4,
197
- description: description$4,
198
- type: type$4,
199
- properties: properties$4,
200
- required: required$4,
201
- additionalProperties: additionalProperties$4
199
+ $schema: $schema$5,
200
+ $id: $id$5,
201
+ description: description$5,
202
+ type: type$5,
203
+ properties: properties$5,
204
+ required: required$5,
205
+ additionalProperties: additionalProperties$5
202
206
  };
203
207
 
204
- var $schema$3 = "https://json-schema.org/draft/2020-12/schema";
205
- var $id$3 = "https://schema.twindev.org/aig/AuditableItemGraphEdge";
206
- var description$3 = "Interface describing an edge between two vertices in an auditable item graph.";
207
- var type$3 = "object";
208
- var properties$3 = {
208
+ var $schema$4 = "https://json-schema.org/draft/2020-12/schema";
209
+ var $id$4 = "https://schema.twindev.org/aig/AuditableItemGraphEdge";
210
+ var description$4 = "Interface describing an edge between two vertices in an auditable item graph.";
211
+ var type$4 = "object";
212
+ var properties$4 = {
209
213
  id: {
210
214
  type: "string",
211
215
  description: "The id of the element."
@@ -264,28 +268,28 @@ var properties$3 = {
264
268
  ]
265
269
  }
266
270
  };
267
- var required$3 = [
271
+ var required$4 = [
268
272
  "@context",
269
273
  "id",
270
274
  "type",
271
275
  "edgeRelationships"
272
276
  ];
273
- var additionalProperties$3 = false;
277
+ var additionalProperties$4 = false;
274
278
  var AuditableItemGraphEdgeSchema = {
275
- $schema: $schema$3,
276
- $id: $id$3,
277
- description: description$3,
278
- type: type$3,
279
- properties: properties$3,
280
- required: required$3,
281
- additionalProperties: additionalProperties$3
279
+ $schema: $schema$4,
280
+ $id: $id$4,
281
+ description: description$4,
282
+ type: type$4,
283
+ properties: properties$4,
284
+ required: required$4,
285
+ additionalProperties: additionalProperties$4
282
286
  };
283
287
 
284
- var $schema$2 = "https://json-schema.org/draft/2020-12/schema";
285
- var $id$2 = "https://schema.twindev.org/aig/AuditableItemGraphPatchOperation";
286
- var description$2 = "The patch operation for JSON diffs.";
287
- var type$2 = "object";
288
- var properties$2 = {
288
+ var $schema$3 = "https://json-schema.org/draft/2020-12/schema";
289
+ var $id$3 = "https://schema.twindev.org/aig/AuditableItemGraphPatchOperation";
290
+ var description$3 = "The patch operation for JSON diffs.";
291
+ var type$3 = "object";
292
+ var properties$3 = {
289
293
  "@context": {
290
294
  anyOf: [
291
295
  {
@@ -337,28 +341,28 @@ var properties$2 = {
337
341
  description: "The value to add."
338
342
  }
339
343
  };
340
- var required$2 = [
344
+ var required$3 = [
341
345
  "@context",
342
346
  "type",
343
347
  "patchOperation",
344
348
  "patchPath"
345
349
  ];
346
- var additionalProperties$2 = false;
350
+ var additionalProperties$3 = false;
347
351
  var AuditableItemGraphPatchOperationSchema = {
348
- $schema: $schema$2,
349
- $id: $id$2,
350
- description: description$2,
351
- type: type$2,
352
- properties: properties$2,
353
- required: required$2,
354
- additionalProperties: additionalProperties$2
352
+ $schema: $schema$3,
353
+ $id: $id$3,
354
+ description: description$3,
355
+ type: type$3,
356
+ properties: properties$3,
357
+ required: required$3,
358
+ additionalProperties: additionalProperties$3
355
359
  };
356
360
 
357
- var $schema$1 = "https://json-schema.org/draft/2020-12/schema";
358
- var $id$1 = "https://schema.twindev.org/aig/AuditableItemGraphResource";
359
- var description$1 = "Interface describing an auditable item graph vertex resource.";
360
- var type$1 = "object";
361
- var properties$1 = {
361
+ var $schema$2 = "https://json-schema.org/draft/2020-12/schema";
362
+ var $id$2 = "https://schema.twindev.org/aig/AuditableItemGraphResource";
363
+ var description$2 = "Interface describing an auditable item graph vertex resource.";
364
+ var type$2 = "object";
365
+ var properties$2 = {
362
366
  id: {
363
367
  type: "string",
364
368
  description: "The id of the element."
@@ -407,26 +411,26 @@ var properties$1 = {
407
411
  description: "The JSON-LD object for the resource."
408
412
  }
409
413
  };
410
- var required$1 = [
414
+ var required$2 = [
411
415
  "@context",
412
416
  "type"
413
417
  ];
414
- var additionalProperties$1 = false;
418
+ var additionalProperties$2 = false;
415
419
  var AuditableItemGraphResourceSchema = {
416
- $schema: $schema$1,
417
- $id: $id$1,
418
- description: description$1,
419
- type: type$1,
420
- properties: properties$1,
421
- required: required$1,
422
- additionalProperties: additionalProperties$1
420
+ $schema: $schema$2,
421
+ $id: $id$2,
422
+ description: description$2,
423
+ type: type$2,
424
+ properties: properties$2,
425
+ required: required$2,
426
+ additionalProperties: additionalProperties$2
423
427
  };
424
428
 
425
- var $schema = "https://json-schema.org/draft/2020-12/schema";
426
- var $id = "https://schema.twindev.org/aig/AuditableItemGraphVertex";
427
- var description = "Interface describing an auditable item graph vertex.";
428
- var type = "object";
429
- var properties = {
429
+ var $schema$1 = "https://json-schema.org/draft/2020-12/schema";
430
+ var $id$1 = "https://schema.twindev.org/aig/AuditableItemGraphVertex";
431
+ var description$1 = "Interface describing an auditable item graph vertex.";
432
+ var type$1 = "object";
433
+ var properties$1 = {
430
434
  id: {
431
435
  type: "string",
432
436
  description: "The id of the element."
@@ -519,13 +523,84 @@ var properties = {
519
523
  description: "Is the vertex verified, will only be populated when verification is requested."
520
524
  }
521
525
  };
522
- var required = [
526
+ var required$1 = [
523
527
  "@context",
524
528
  "id",
525
529
  "type"
526
530
  ];
527
- var additionalProperties = false;
531
+ var additionalProperties$1 = false;
528
532
  var AuditableItemGraphVertexSchema = {
533
+ $schema: $schema$1,
534
+ $id: $id$1,
535
+ description: description$1,
536
+ type: type$1,
537
+ properties: properties$1,
538
+ required: required$1,
539
+ additionalProperties: additionalProperties$1
540
+ };
541
+
542
+ var $schema = "https://json-schema.org/draft/2020-12/schema";
543
+ var $id = "https://schema.twindev.org/aig/AuditableItemGraphVertexList";
544
+ var description = "Interface describing an auditable item graph vertex list.";
545
+ var type = "object";
546
+ var properties = {
547
+ "@context": {
548
+ type: "array",
549
+ minItems: 2,
550
+ items: {
551
+ $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
552
+ },
553
+ description: "JSON-LD Context.",
554
+ prefixItems: [
555
+ {
556
+ type: "string",
557
+ "const": "https://schema.org"
558
+ },
559
+ {
560
+ type: "string",
561
+ "const": "https://schema.twindev.org/aig/"
562
+ }
563
+ ]
564
+ },
565
+ type: {
566
+ type: "array",
567
+ minItems: 2,
568
+ items: false,
569
+ maxItems: 2,
570
+ description: "JSON-LD Type.",
571
+ prefixItems: [
572
+ {
573
+ type: "string",
574
+ "const": "ItemList"
575
+ },
576
+ {
577
+ type: "string",
578
+ "const": "AuditableItemGraphVertexList"
579
+ }
580
+ ]
581
+ },
582
+ itemListElement: {
583
+ type: "array",
584
+ items: false,
585
+ description: "The list of vertices.",
586
+ prefixItems: [
587
+ {
588
+ $ref: "https://schema.twindev.org/aig/AuditableItemGraphVertex"
589
+ }
590
+ ]
591
+ },
592
+ nextItem: {
593
+ type: "string",
594
+ description: "The cursor to get the next chunk of vertices."
595
+ }
596
+ };
597
+ var required = [
598
+ "@context",
599
+ "type",
600
+ "itemListElement"
601
+ ];
602
+ var additionalProperties = false;
603
+ var AuditableItemGraphVertexListSchema = {
529
604
  $schema: $schema,
530
605
  $id: $id,
531
606
  description: description,
@@ -551,6 +626,12 @@ class AuditableItemGraphDataTypes {
551
626
  defaultValue: {},
552
627
  jsonSchema: async () => AuditableItemGraphVertexSchema
553
628
  }));
629
+ DataTypeHandlerFactory.register(`${AuditableItemGraphContexts.ContextRoot}${AuditableItemGraphTypes.VertexList}`, () => ({
630
+ context: AuditableItemGraphContexts.ContextRoot,
631
+ type: AuditableItemGraphTypes.VertexList,
632
+ defaultValue: {},
633
+ jsonSchema: async () => AuditableItemGraphVertexListSchema
634
+ }));
554
635
  DataTypeHandlerFactory.register(`${AuditableItemGraphContexts.ContextRoot}${AuditableItemGraphTypes.Alias}`, () => ({
555
636
  context: AuditableItemGraphContexts.ContextRoot,
556
637
  type: AuditableItemGraphTypes.Alias,
@@ -1,6 +1,7 @@
1
1
  import type { IJsonLdContextDefinitionElement } from "@twin.org/data-json-ld";
2
2
  import type { SchemaOrgContexts, SchemaOrgTypes } from "@twin.org/standards-schema-org";
3
3
  import type { AuditableItemGraphContexts } from "./auditableItemGraphContexts";
4
+ import type { AuditableItemGraphTypes } from "./auditableItemGraphTypes";
4
5
  import type { IAuditableItemGraphVertex } from "./IAuditableItemGraphVertex";
5
6
  /**
6
7
  * Interface describing an auditable item graph vertex list.
@@ -17,7 +18,7 @@ export interface IAuditableItemGraphVertexList {
17
18
  /**
18
19
  * JSON-LD Type.
19
20
  */
20
- type: typeof SchemaOrgTypes.ItemList;
21
+ type: [typeof SchemaOrgTypes.ItemList, typeof AuditableItemGraphTypes.VertexList];
21
22
  /**
22
23
  * The list of vertices.
23
24
  */
@@ -6,6 +6,10 @@ export declare const AuditableItemGraphTypes: {
6
6
  * Represents auditable item graph vertex.
7
7
  */
8
8
  readonly Vertex: "AuditableItemGraphVertex";
9
+ /**
10
+ * Represents auditable item graph vertex list.
11
+ */
12
+ readonly VertexList: "AuditableItemGraphVertexList";
9
13
  /**
10
14
  * Represents auditable item graph alias.
11
15
  */
package/docs/changelog.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @twin.org/auditable-item-graph-models - Changelog
2
2
 
3
+ ## [0.0.1-next.43](https://github.com/twinfoundation/auditable-item-graph/compare/auditable-item-graph-models-v0.0.1-next.42...auditable-item-graph-models-v0.0.1-next.43) (2025-06-17)
4
+
5
+
6
+ ### Features
7
+
8
+ * improve JSON schemas ([bec8dc1](https://github.com/twinfoundation/auditable-item-graph/commit/bec8dc1f270c6c9710623a192b984cf46f8a5613))
9
+
3
10
  ## [0.0.1-next.42](https://github.com/twinfoundation/auditable-item-graph/compare/auditable-item-graph-models-v0.0.1-next.41...auditable-item-graph-models-v0.0.1-next.42) (2025-06-12)
4
11
 
5
12
 
@@ -14,7 +14,7 @@ JSON-LD Context.
14
14
 
15
15
  ### type
16
16
 
17
- > **type**: `"ItemList"`
17
+ > **type**: \[`"ItemList"`, `"AuditableItemGraphVertexList"`\]
18
18
 
19
19
  JSON-LD Type.
20
20
 
@@ -12,6 +12,12 @@ The types of auditable item graph data.
12
12
 
13
13
  Represents auditable item graph vertex.
14
14
 
15
+ ### VertexList
16
+
17
+ > `readonly` **VertexList**: `"AuditableItemGraphVertexList"` = `"AuditableItemGraphVertexList"`
18
+
19
+ Represents auditable item graph vertex list.
20
+
15
21
  ### Alias
16
22
 
17
23
  > `readonly` **Alias**: `"AuditableItemGraphAlias"` = `"AuditableItemGraphAlias"`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/auditable-item-graph-models",
3
- "version": "0.0.1-next.42",
3
+ "version": "0.0.1-next.43",
4
4
  "description": "Models which define the structure of the auditable item graph connectors and services",
5
5
  "repository": {
6
6
  "type": "git",