@twin.org/auditable-item-graph-models 0.0.1-next.42 → 0.0.1-next.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +158 -77
- package/dist/esm/index.mjs +158 -77
- package/dist/types/models/IAuditableItemGraphVertexList.d.ts +2 -1
- package/dist/types/models/api/IAuditableItemGraphGetRequest.d.ts +2 -2
- package/dist/types/models/api/IAuditableItemGraphListRequest.d.ts +1 -1
- package/dist/types/models/auditableItemGraphTypes.d.ts +4 -0
- package/docs/changelog.md +14 -0
- package/docs/reference/interfaces/IAuditableItemGraphGetRequest.md +2 -2
- package/docs/reference/interfaces/IAuditableItemGraphListRequest.md +1 -1
- package/docs/reference/interfaces/IAuditableItemGraphVertexList.md +1 -1
- package/docs/reference/variables/AuditableItemGraphTypes.md +6 -0
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -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$
|
|
56
|
-
var $id$
|
|
57
|
-
var description$
|
|
58
|
-
var type$
|
|
59
|
-
var properties$
|
|
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$
|
|
116
|
+
var required$6 = [
|
|
113
117
|
"@context",
|
|
114
118
|
"id",
|
|
115
119
|
"type"
|
|
116
120
|
];
|
|
117
|
-
var additionalProperties$
|
|
121
|
+
var additionalProperties$6 = false;
|
|
118
122
|
var AuditableItemGraphAliasSchema = {
|
|
119
|
-
$schema: $schema$
|
|
120
|
-
$id: $id$
|
|
121
|
-
description: description$
|
|
122
|
-
type: type$
|
|
123
|
-
properties: properties$
|
|
124
|
-
required: required$
|
|
125
|
-
additionalProperties: additionalProperties$
|
|
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$
|
|
129
|
-
var $id$
|
|
130
|
-
var description$
|
|
131
|
-
var type$
|
|
132
|
-
var properties$
|
|
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$
|
|
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$
|
|
199
|
+
var additionalProperties$5 = false;
|
|
196
200
|
var AuditableItemGraphChangesetSchema = {
|
|
197
|
-
$schema: $schema$
|
|
198
|
-
$id: $id$
|
|
199
|
-
description: description$
|
|
200
|
-
type: type$
|
|
201
|
-
properties: properties$
|
|
202
|
-
required: required$
|
|
203
|
-
additionalProperties: additionalProperties$
|
|
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$
|
|
207
|
-
var $id$
|
|
208
|
-
var description$
|
|
209
|
-
var type$
|
|
210
|
-
var properties$
|
|
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$
|
|
273
|
+
var required$4 = [
|
|
270
274
|
"@context",
|
|
271
275
|
"id",
|
|
272
276
|
"type",
|
|
273
277
|
"edgeRelationships"
|
|
274
278
|
];
|
|
275
|
-
var additionalProperties$
|
|
279
|
+
var additionalProperties$4 = false;
|
|
276
280
|
var AuditableItemGraphEdgeSchema = {
|
|
277
|
-
$schema: $schema$
|
|
278
|
-
$id: $id$
|
|
279
|
-
description: description$
|
|
280
|
-
type: type$
|
|
281
|
-
properties: properties$
|
|
282
|
-
required: required$
|
|
283
|
-
additionalProperties: additionalProperties$
|
|
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$
|
|
287
|
-
var $id$
|
|
288
|
-
var description$
|
|
289
|
-
var type$
|
|
290
|
-
var properties$
|
|
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$
|
|
346
|
+
var required$3 = [
|
|
343
347
|
"@context",
|
|
344
348
|
"type",
|
|
345
349
|
"patchOperation",
|
|
346
350
|
"patchPath"
|
|
347
351
|
];
|
|
348
|
-
var additionalProperties$
|
|
352
|
+
var additionalProperties$3 = false;
|
|
349
353
|
var AuditableItemGraphPatchOperationSchema = {
|
|
350
|
-
$schema: $schema$
|
|
351
|
-
$id: $id$
|
|
352
|
-
description: description$
|
|
353
|
-
type: type$
|
|
354
|
-
properties: properties$
|
|
355
|
-
required: required$
|
|
356
|
-
additionalProperties: additionalProperties$
|
|
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$
|
|
360
|
-
var $id$
|
|
361
|
-
var description$
|
|
362
|
-
var type$
|
|
363
|
-
var properties$
|
|
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$
|
|
416
|
+
var required$2 = [
|
|
413
417
|
"@context",
|
|
414
418
|
"type"
|
|
415
419
|
];
|
|
416
|
-
var additionalProperties$
|
|
420
|
+
var additionalProperties$2 = false;
|
|
417
421
|
var AuditableItemGraphResourceSchema = {
|
|
418
|
-
$schema: $schema$
|
|
419
|
-
$id: $id$
|
|
420
|
-
description: description$
|
|
421
|
-
type: type$
|
|
422
|
-
properties: properties$
|
|
423
|
-
required: required$
|
|
424
|
-
additionalProperties: additionalProperties$
|
|
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,
|
package/dist/esm/index.mjs
CHANGED
|
@@ -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$
|
|
54
|
-
var $id$
|
|
55
|
-
var description$
|
|
56
|
-
var type$
|
|
57
|
-
var properties$
|
|
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$
|
|
114
|
+
var required$6 = [
|
|
111
115
|
"@context",
|
|
112
116
|
"id",
|
|
113
117
|
"type"
|
|
114
118
|
];
|
|
115
|
-
var additionalProperties$
|
|
119
|
+
var additionalProperties$6 = false;
|
|
116
120
|
var AuditableItemGraphAliasSchema = {
|
|
117
|
-
$schema: $schema$
|
|
118
|
-
$id: $id$
|
|
119
|
-
description: description$
|
|
120
|
-
type: type$
|
|
121
|
-
properties: properties$
|
|
122
|
-
required: required$
|
|
123
|
-
additionalProperties: additionalProperties$
|
|
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$
|
|
127
|
-
var $id$
|
|
128
|
-
var description$
|
|
129
|
-
var type$
|
|
130
|
-
var properties$
|
|
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$
|
|
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$
|
|
197
|
+
var additionalProperties$5 = false;
|
|
194
198
|
var AuditableItemGraphChangesetSchema = {
|
|
195
|
-
$schema: $schema$
|
|
196
|
-
$id: $id$
|
|
197
|
-
description: description$
|
|
198
|
-
type: type$
|
|
199
|
-
properties: properties$
|
|
200
|
-
required: required$
|
|
201
|
-
additionalProperties: additionalProperties$
|
|
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$
|
|
205
|
-
var $id$
|
|
206
|
-
var description$
|
|
207
|
-
var type$
|
|
208
|
-
var properties$
|
|
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$
|
|
271
|
+
var required$4 = [
|
|
268
272
|
"@context",
|
|
269
273
|
"id",
|
|
270
274
|
"type",
|
|
271
275
|
"edgeRelationships"
|
|
272
276
|
];
|
|
273
|
-
var additionalProperties$
|
|
277
|
+
var additionalProperties$4 = false;
|
|
274
278
|
var AuditableItemGraphEdgeSchema = {
|
|
275
|
-
$schema: $schema$
|
|
276
|
-
$id: $id$
|
|
277
|
-
description: description$
|
|
278
|
-
type: type$
|
|
279
|
-
properties: properties$
|
|
280
|
-
required: required$
|
|
281
|
-
additionalProperties: additionalProperties$
|
|
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$
|
|
285
|
-
var $id$
|
|
286
|
-
var description$
|
|
287
|
-
var type$
|
|
288
|
-
var properties$
|
|
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$
|
|
344
|
+
var required$3 = [
|
|
341
345
|
"@context",
|
|
342
346
|
"type",
|
|
343
347
|
"patchOperation",
|
|
344
348
|
"patchPath"
|
|
345
349
|
];
|
|
346
|
-
var additionalProperties$
|
|
350
|
+
var additionalProperties$3 = false;
|
|
347
351
|
var AuditableItemGraphPatchOperationSchema = {
|
|
348
|
-
$schema: $schema$
|
|
349
|
-
$id: $id$
|
|
350
|
-
description: description$
|
|
351
|
-
type: type$
|
|
352
|
-
properties: properties$
|
|
353
|
-
required: required$
|
|
354
|
-
additionalProperties: additionalProperties$
|
|
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$
|
|
358
|
-
var $id$
|
|
359
|
-
var description$
|
|
360
|
-
var type$
|
|
361
|
-
var properties$
|
|
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$
|
|
414
|
+
var required$2 = [
|
|
411
415
|
"@context",
|
|
412
416
|
"type"
|
|
413
417
|
];
|
|
414
|
-
var additionalProperties$
|
|
418
|
+
var additionalProperties$2 = false;
|
|
415
419
|
var AuditableItemGraphResourceSchema = {
|
|
416
|
-
$schema: $schema$
|
|
417
|
-
$id: $id$
|
|
418
|
-
description: description$
|
|
419
|
-
type: type$
|
|
420
|
-
properties: properties$
|
|
421
|
-
required: required$
|
|
422
|
-
additionalProperties: additionalProperties$
|
|
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
|
*/
|
|
@@ -26,11 +26,11 @@ export interface IAuditableItemGraphGetRequest {
|
|
|
26
26
|
/**
|
|
27
27
|
* Whether to include deleted aliases, resource, edges, defaults to false.
|
|
28
28
|
*/
|
|
29
|
-
includeDeleted?: boolean;
|
|
29
|
+
includeDeleted?: boolean | string;
|
|
30
30
|
/**
|
|
31
31
|
* Whether to include the changesets of the vertex, defaults to false.
|
|
32
32
|
*/
|
|
33
|
-
includeChangesets?: boolean;
|
|
33
|
+
includeChangesets?: boolean | string;
|
|
34
34
|
/**
|
|
35
35
|
* How many signatures to verify, none, current or all, defaults to "none".
|
|
36
36
|
*/
|
|
@@ -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,19 @@
|
|
|
1
1
|
# @twin.org/auditable-item-graph-models - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.1-next.44](https://github.com/twinfoundation/auditable-item-graph/compare/auditable-item-graph-models-v0.0.1-next.43...auditable-item-graph-models-v0.0.1-next.44) (2025-06-20)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* query params force coercion ([2dd9afe](https://github.com/twinfoundation/auditable-item-graph/commit/2dd9afe9ec37e2a91c110317fe289f7495c187a0))
|
|
9
|
+
|
|
10
|
+
## [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)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* improve JSON schemas ([bec8dc1](https://github.com/twinfoundation/auditable-item-graph/commit/bec8dc1f270c6c9710623a192b984cf46f8a5613))
|
|
16
|
+
|
|
3
17
|
## [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
18
|
|
|
5
19
|
|
|
@@ -38,13 +38,13 @@ The query parameters.
|
|
|
38
38
|
|
|
39
39
|
#### includeDeleted?
|
|
40
40
|
|
|
41
|
-
> `optional` **includeDeleted**: `boolean`
|
|
41
|
+
> `optional` **includeDeleted**: `string` \| `boolean`
|
|
42
42
|
|
|
43
43
|
Whether to include deleted aliases, resource, edges, defaults to false.
|
|
44
44
|
|
|
45
45
|
#### includeChangesets?
|
|
46
46
|
|
|
47
|
-
> `optional` **includeChangesets**: `boolean`
|
|
47
|
+
> `optional` **includeChangesets**: `string` \| `boolean`
|
|
48
48
|
|
|
49
49
|
Whether to include the changesets of the vertex, defaults to false.
|
|
50
50
|
|
|
@@ -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