@twin.org/auditable-item-graph-models 0.0.1-next.18 → 0.0.1-next.20
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 +7 -7
- package/dist/esm/index.mjs +7 -7
- package/dist/types/models/IAuditableItemGraphAlias.d.ts +2 -2
- package/dist/types/models/IAuditableItemGraphChangeset.d.ts +2 -1
- package/dist/types/models/IAuditableItemGraphComponent.d.ts +43 -30
- package/dist/types/models/IAuditableItemGraphEdge.d.ts +2 -2
- package/dist/types/models/IAuditableItemGraphPatchOperation.d.ts +2 -1
- package/dist/types/models/IAuditableItemGraphResource.d.ts +2 -2
- package/dist/types/models/IAuditableItemGraphVertex.d.ts +2 -2
- package/dist/types/models/IAuditableItemGraphVertexList.d.ts +2 -1
- package/dist/types/models/api/IAuditableItemGraphCreateRequest.d.ts +1 -1
- package/dist/types/models/api/IAuditableItemGraphUpdateRequest.d.ts +1 -1
- package/docs/changelog.md +1 -1
- package/docs/reference/interfaces/IAuditableItemGraphAlias.md +1 -1
- package/docs/reference/interfaces/IAuditableItemGraphChangeset.md +1 -1
- package/docs/reference/interfaces/IAuditableItemGraphComponent.md +24 -16
- package/docs/reference/interfaces/IAuditableItemGraphCreateRequest.md +2 -2
- package/docs/reference/interfaces/IAuditableItemGraphEdge.md +1 -1
- package/docs/reference/interfaces/IAuditableItemGraphPatchOperation.md +1 -1
- package/docs/reference/interfaces/IAuditableItemGraphResource.md +1 -1
- package/docs/reference/interfaces/IAuditableItemGraphUpdateRequest.md +2 -2
- package/docs/reference/interfaces/IAuditableItemGraphVertex.md +1 -1
- package/docs/reference/interfaces/IAuditableItemGraphVertexList.md +1 -1
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -77,7 +77,7 @@ var properties$6 = {
|
|
|
77
77
|
}
|
|
78
78
|
],
|
|
79
79
|
additionalItems: {
|
|
80
|
-
|
|
80
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
],
|
|
@@ -131,7 +131,7 @@ var properties$5 = {
|
|
|
131
131
|
}
|
|
132
132
|
],
|
|
133
133
|
additionalItems: {
|
|
134
|
-
|
|
134
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
],
|
|
@@ -222,7 +222,7 @@ var properties$4 = {
|
|
|
222
222
|
}
|
|
223
223
|
],
|
|
224
224
|
additionalItems: {
|
|
225
|
-
|
|
225
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
],
|
|
@@ -277,7 +277,7 @@ var properties$3 = {
|
|
|
277
277
|
}
|
|
278
278
|
],
|
|
279
279
|
additionalItems: {
|
|
280
|
-
|
|
280
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
],
|
|
@@ -362,7 +362,7 @@ var properties$2 = {
|
|
|
362
362
|
}
|
|
363
363
|
],
|
|
364
364
|
additionalItems: {
|
|
365
|
-
|
|
365
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
368
|
],
|
|
@@ -427,7 +427,7 @@ var properties$1 = {
|
|
|
427
427
|
}
|
|
428
428
|
],
|
|
429
429
|
additionalItems: {
|
|
430
|
-
|
|
430
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
431
431
|
}
|
|
432
432
|
}
|
|
433
433
|
],
|
|
@@ -513,7 +513,7 @@ var properties = {
|
|
|
513
513
|
}
|
|
514
514
|
],
|
|
515
515
|
additionalItems: {
|
|
516
|
-
|
|
516
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
519
|
],
|
package/dist/esm/index.mjs
CHANGED
|
@@ -75,7 +75,7 @@ var properties$6 = {
|
|
|
75
75
|
}
|
|
76
76
|
],
|
|
77
77
|
additionalItems: {
|
|
78
|
-
|
|
78
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
],
|
|
@@ -129,7 +129,7 @@ var properties$5 = {
|
|
|
129
129
|
}
|
|
130
130
|
],
|
|
131
131
|
additionalItems: {
|
|
132
|
-
|
|
132
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
],
|
|
@@ -220,7 +220,7 @@ var properties$4 = {
|
|
|
220
220
|
}
|
|
221
221
|
],
|
|
222
222
|
additionalItems: {
|
|
223
|
-
|
|
223
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
],
|
|
@@ -275,7 +275,7 @@ var properties$3 = {
|
|
|
275
275
|
}
|
|
276
276
|
],
|
|
277
277
|
additionalItems: {
|
|
278
|
-
|
|
278
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
],
|
|
@@ -360,7 +360,7 @@ var properties$2 = {
|
|
|
360
360
|
}
|
|
361
361
|
],
|
|
362
362
|
additionalItems: {
|
|
363
|
-
|
|
363
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
366
|
],
|
|
@@ -425,7 +425,7 @@ var properties$1 = {
|
|
|
425
425
|
}
|
|
426
426
|
],
|
|
427
427
|
additionalItems: {
|
|
428
|
-
|
|
428
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
431
|
],
|
|
@@ -511,7 +511,7 @@ var properties = {
|
|
|
511
511
|
}
|
|
512
512
|
],
|
|
513
513
|
additionalItems: {
|
|
514
|
-
|
|
514
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
517
|
],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
1
|
+
import type { IJsonLdContextDefinitionElement, IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
2
|
import type { AuditableItemGraphTypes } from "./auditableItemGraphTypes";
|
|
3
3
|
import type { IAuditableItemGraphAuditedElement } from "./IAuditableItemGraphAuditedElement";
|
|
4
4
|
/**
|
|
@@ -8,7 +8,7 @@ export interface IAuditableItemGraphAlias extends IAuditableItemGraphAuditedElem
|
|
|
8
8
|
/**
|
|
9
9
|
* JSON-LD Context.
|
|
10
10
|
*/
|
|
11
|
-
"@context": typeof AuditableItemGraphTypes.ContextRoot | [typeof AuditableItemGraphTypes.ContextRoot, ...
|
|
11
|
+
"@context": typeof AuditableItemGraphTypes.ContextRoot | [typeof AuditableItemGraphTypes.ContextRoot, ...IJsonLdContextDefinitionElement[]];
|
|
12
12
|
/**
|
|
13
13
|
* The id of the element.
|
|
14
14
|
*/
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { IJsonLdContextDefinitionElement } from "@twin.org/data-json-ld";
|
|
1
2
|
import type { IImmutableProofVerification } from "@twin.org/immutable-proof-models";
|
|
2
3
|
import type { AuditableItemGraphTypes } from "./auditableItemGraphTypes";
|
|
3
4
|
import type { IAuditableItemGraphPatchOperation } from "./IAuditableItemGraphPatchOperation";
|
|
@@ -8,7 +9,7 @@ export interface IAuditableItemGraphChangeset {
|
|
|
8
9
|
/**
|
|
9
10
|
* JSON-LD Context.
|
|
10
11
|
*/
|
|
11
|
-
"@context": typeof AuditableItemGraphTypes.ContextRoot | [typeof AuditableItemGraphTypes.ContextRoot, ...
|
|
12
|
+
"@context": typeof AuditableItemGraphTypes.ContextRoot | [typeof AuditableItemGraphTypes.ContextRoot, ...IJsonLdContextDefinitionElement[]];
|
|
12
13
|
/**
|
|
13
14
|
* JSON-LD Type.
|
|
14
15
|
*/
|
|
@@ -10,49 +10,62 @@ import type { VerifyDepth } from "./verifyDepth";
|
|
|
10
10
|
export interface IAuditableItemGraphComponent extends IComponent {
|
|
11
11
|
/**
|
|
12
12
|
* Create a new graph vertex.
|
|
13
|
-
* @param
|
|
14
|
-
* @param
|
|
15
|
-
* @param
|
|
16
|
-
* @param
|
|
13
|
+
* @param vertex The vertex to create.
|
|
14
|
+
* @param vertex.annotationObject The annotation object for the vertex as JSON-LD.
|
|
15
|
+
* @param vertex.aliases Alternative aliases that can be used to identify the vertex.
|
|
16
|
+
* @param vertex.resources The resources attached to the vertex.
|
|
17
|
+
* @param vertex.edges The edges connected to the vertex.
|
|
17
18
|
* @param userIdentity The identity to create the auditable item graph operation with.
|
|
18
19
|
* @param nodeIdentity The node identity to use for vault operations.
|
|
19
20
|
* @returns The id of the new graph item.
|
|
20
21
|
*/
|
|
21
|
-
create(
|
|
22
|
-
id: string;
|
|
23
|
-
aliasFormat?: string;
|
|
24
|
-
annotationObject?: IJsonLdNodeObject;
|
|
25
|
-
}[], resources?: {
|
|
26
|
-
id?: string;
|
|
27
|
-
resourceObject?: IJsonLdNodeObject;
|
|
28
|
-
}[], edges?: {
|
|
29
|
-
id: string;
|
|
30
|
-
edgeRelationship: string;
|
|
22
|
+
create(vertex: {
|
|
31
23
|
annotationObject?: IJsonLdNodeObject;
|
|
32
|
-
|
|
24
|
+
aliases?: {
|
|
25
|
+
id: string;
|
|
26
|
+
aliasFormat?: string;
|
|
27
|
+
annotationObject?: IJsonLdNodeObject;
|
|
28
|
+
}[];
|
|
29
|
+
resources?: {
|
|
30
|
+
id?: string;
|
|
31
|
+
resourceObject?: IJsonLdNodeObject;
|
|
32
|
+
}[];
|
|
33
|
+
edges?: {
|
|
34
|
+
id: string;
|
|
35
|
+
edgeRelationship: string;
|
|
36
|
+
annotationObject?: IJsonLdNodeObject;
|
|
37
|
+
}[];
|
|
38
|
+
}, userIdentity?: string, nodeIdentity?: string): Promise<string>;
|
|
33
39
|
/**
|
|
34
40
|
* Update a graph vertex.
|
|
35
|
-
* @param
|
|
36
|
-
* @param
|
|
37
|
-
* @param
|
|
38
|
-
* @param
|
|
39
|
-
* @param
|
|
41
|
+
* @param vertex The vertex to update.
|
|
42
|
+
* @param vertex.id The id of the vertex to update.
|
|
43
|
+
* @param vertex.annotationObject The annotation object for the vertex as JSON-LD.
|
|
44
|
+
* @param vertex.aliases Alternative aliases that can be used to identify the vertex.
|
|
45
|
+
* @param vertex.resources The resources attached to the vertex.
|
|
46
|
+
* @param vertex.edges The edges connected to the vertex.
|
|
40
47
|
* @param userIdentity The identity to create the auditable item graph operation with.
|
|
41
48
|
* @param nodeIdentity The node identity to use for vault operations.
|
|
42
49
|
* @returns Nothing.
|
|
43
50
|
*/
|
|
44
|
-
update(
|
|
45
|
-
id: string;
|
|
46
|
-
aliasFormat?: string;
|
|
47
|
-
annotationObject?: IJsonLdNodeObject;
|
|
48
|
-
}[], resources?: {
|
|
49
|
-
id?: string;
|
|
50
|
-
resourceObject?: IJsonLdNodeObject;
|
|
51
|
-
}[], edges?: {
|
|
51
|
+
update(vertex: {
|
|
52
52
|
id: string;
|
|
53
|
-
edgeRelationship: string;
|
|
54
53
|
annotationObject?: IJsonLdNodeObject;
|
|
55
|
-
|
|
54
|
+
aliases?: {
|
|
55
|
+
id: string;
|
|
56
|
+
aliasFormat?: string;
|
|
57
|
+
annotationObject?: IJsonLdNodeObject;
|
|
58
|
+
}[];
|
|
59
|
+
resources?: {
|
|
60
|
+
id?: string;
|
|
61
|
+
resourceObject?: IJsonLdNodeObject;
|
|
62
|
+
}[];
|
|
63
|
+
edges?: {
|
|
64
|
+
id: string;
|
|
65
|
+
edgeRelationship: string;
|
|
66
|
+
annotationObject?: IJsonLdNodeObject;
|
|
67
|
+
}[];
|
|
68
|
+
}, userIdentity?: string, nodeIdentity?: string): Promise<void>;
|
|
56
69
|
/**
|
|
57
70
|
* Get a graph vertex.
|
|
58
71
|
* @param id The id of the vertex to get.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
1
|
+
import type { IJsonLdContextDefinitionElement, IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
2
|
import type { AuditableItemGraphTypes } from "./auditableItemGraphTypes";
|
|
3
3
|
import type { IAuditableItemGraphAuditedElement } from "./IAuditableItemGraphAuditedElement";
|
|
4
4
|
/**
|
|
@@ -8,7 +8,7 @@ export interface IAuditableItemGraphEdge extends IAuditableItemGraphAuditedEleme
|
|
|
8
8
|
/**
|
|
9
9
|
* JSON-LD Context.
|
|
10
10
|
*/
|
|
11
|
-
"@context": typeof AuditableItemGraphTypes.ContextRoot | [typeof AuditableItemGraphTypes.ContextRoot, ...
|
|
11
|
+
"@context": typeof AuditableItemGraphTypes.ContextRoot | [typeof AuditableItemGraphTypes.ContextRoot, ...IJsonLdContextDefinitionElement[]];
|
|
12
12
|
/**
|
|
13
13
|
* The id of the element.
|
|
14
14
|
*/
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { IJsonLdContextDefinitionElement } from "@twin.org/data-json-ld";
|
|
1
2
|
import type { AuditableItemGraphTypes } from "./auditableItemGraphTypes";
|
|
2
3
|
/**
|
|
3
4
|
* The patch operation for JSON diffs.
|
|
@@ -6,7 +7,7 @@ export interface IAuditableItemGraphPatchOperation {
|
|
|
6
7
|
/**
|
|
7
8
|
* JSON-LD Context.
|
|
8
9
|
*/
|
|
9
|
-
"@context": typeof AuditableItemGraphTypes.ContextRoot | [typeof AuditableItemGraphTypes.ContextRoot, ...
|
|
10
|
+
"@context": typeof AuditableItemGraphTypes.ContextRoot | [typeof AuditableItemGraphTypes.ContextRoot, ...IJsonLdContextDefinitionElement[]];
|
|
10
11
|
/**
|
|
11
12
|
* JSON-LD Type.
|
|
12
13
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
1
|
+
import type { IJsonLdContextDefinitionElement, IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
2
|
import type { AuditableItemGraphTypes } from "./auditableItemGraphTypes";
|
|
3
3
|
import type { IAuditableItemGraphAuditedElement } from "./IAuditableItemGraphAuditedElement";
|
|
4
4
|
/**
|
|
@@ -8,7 +8,7 @@ export interface IAuditableItemGraphResource extends IAuditableItemGraphAuditedE
|
|
|
8
8
|
/**
|
|
9
9
|
* JSON-LD Context.
|
|
10
10
|
*/
|
|
11
|
-
"@context": typeof AuditableItemGraphTypes.ContextRoot | [typeof AuditableItemGraphTypes.ContextRoot, ...
|
|
11
|
+
"@context": typeof AuditableItemGraphTypes.ContextRoot | [typeof AuditableItemGraphTypes.ContextRoot, ...IJsonLdContextDefinitionElement[]];
|
|
12
12
|
/**
|
|
13
13
|
* JSON-LD Type.
|
|
14
14
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
1
|
+
import type { IJsonLdContextDefinitionElement, IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
2
|
import type { AuditableItemGraphTypes } from "./auditableItemGraphTypes";
|
|
3
3
|
import type { IAuditableItemGraphAlias } from "./IAuditableItemGraphAlias";
|
|
4
4
|
import type { IAuditableItemGraphAuditedElement } from "./IAuditableItemGraphAuditedElement";
|
|
@@ -12,7 +12,7 @@ export interface IAuditableItemGraphVertex extends Omit<IAuditableItemGraphAudit
|
|
|
12
12
|
/**
|
|
13
13
|
* JSON-LD Context.
|
|
14
14
|
*/
|
|
15
|
-
"@context": typeof AuditableItemGraphTypes.ContextRoot | [typeof AuditableItemGraphTypes.ContextRoot, ...
|
|
15
|
+
"@context": typeof AuditableItemGraphTypes.ContextRoot | [typeof AuditableItemGraphTypes.ContextRoot, ...IJsonLdContextDefinitionElement[]];
|
|
16
16
|
/**
|
|
17
17
|
* The id of the element.
|
|
18
18
|
*/
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { IJsonLdContextDefinitionElement } from "@twin.org/data-json-ld";
|
|
1
2
|
import type { AuditableItemGraphTypes } from "./auditableItemGraphTypes";
|
|
2
3
|
import type { IAuditableItemGraphVertex } from "./IAuditableItemGraphVertex";
|
|
3
4
|
/**
|
|
@@ -7,7 +8,7 @@ export interface IAuditableItemGraphVertexList {
|
|
|
7
8
|
/**
|
|
8
9
|
* JSON-LD Context.
|
|
9
10
|
*/
|
|
10
|
-
"@context": typeof AuditableItemGraphTypes.ContextRoot | [typeof AuditableItemGraphTypes.ContextRoot, ...
|
|
11
|
+
"@context": typeof AuditableItemGraphTypes.ContextRoot | [typeof AuditableItemGraphTypes.ContextRoot, ...IJsonLdContextDefinitionElement[]];
|
|
11
12
|
/**
|
|
12
13
|
* JSON-LD Type.
|
|
13
14
|
*/
|
package/docs/changelog.md
CHANGED
|
@@ -10,7 +10,7 @@ Interface describing an alias for a vertex.
|
|
|
10
10
|
|
|
11
11
|
### @context
|
|
12
12
|
|
|
13
|
-
> **@context**: `"https://schema.twindev.org/aig/"` \| \[`"https://schema.twindev.org/aig/"`, `...
|
|
13
|
+
> **@context**: `"https://schema.twindev.org/aig/"` \| \[`"https://schema.twindev.org/aig/"`, `...IJsonLdContextDefinitionElement[]`\]
|
|
14
14
|
|
|
15
15
|
JSON-LD Context.
|
|
16
16
|
|
|
@@ -6,7 +6,7 @@ Interface describing a set of updates to the vertex.
|
|
|
6
6
|
|
|
7
7
|
### @context
|
|
8
8
|
|
|
9
|
-
> **@context**: `"https://schema.twindev.org/aig/"` \| \[`"https://schema.twindev.org/aig/"`, `...
|
|
9
|
+
> **@context**: `"https://schema.twindev.org/aig/"` \| \[`"https://schema.twindev.org/aig/"`, `...IJsonLdContextDefinitionElement[]`\]
|
|
10
10
|
|
|
11
11
|
JSON-LD Context.
|
|
12
12
|
|
|
@@ -10,31 +10,35 @@ Interface describing an auditable item graph contract.
|
|
|
10
10
|
|
|
11
11
|
### create()
|
|
12
12
|
|
|
13
|
-
> **create**(`
|
|
13
|
+
> **create**(`vertex`, `userIdentity`?, `nodeIdentity`?): `Promise`\<`string`\>
|
|
14
14
|
|
|
15
15
|
Create a new graph vertex.
|
|
16
16
|
|
|
17
17
|
#### Parameters
|
|
18
18
|
|
|
19
|
-
#####
|
|
19
|
+
##### vertex
|
|
20
|
+
|
|
21
|
+
The vertex to create.
|
|
22
|
+
|
|
23
|
+
###### annotationObject?
|
|
20
24
|
|
|
21
25
|
`IJsonLdNodeObject`
|
|
22
26
|
|
|
23
27
|
The annotation object for the vertex as JSON-LD.
|
|
24
28
|
|
|
25
|
-
|
|
29
|
+
###### aliases?
|
|
26
30
|
|
|
27
31
|
`object`[]
|
|
28
32
|
|
|
29
33
|
Alternative aliases that can be used to identify the vertex.
|
|
30
34
|
|
|
31
|
-
|
|
35
|
+
###### resources?
|
|
32
36
|
|
|
33
37
|
`object`[]
|
|
34
38
|
|
|
35
39
|
The resources attached to the vertex.
|
|
36
40
|
|
|
37
|
-
|
|
41
|
+
###### edges?
|
|
38
42
|
|
|
39
43
|
`object`[]
|
|
40
44
|
|
|
@@ -62,37 +66,41 @@ The id of the new graph item.
|
|
|
62
66
|
|
|
63
67
|
### update()
|
|
64
68
|
|
|
65
|
-
> **update**(`
|
|
69
|
+
> **update**(`vertex`, `userIdentity`?, `nodeIdentity`?): `Promise`\<`void`\>
|
|
66
70
|
|
|
67
71
|
Update a graph vertex.
|
|
68
72
|
|
|
69
73
|
#### Parameters
|
|
70
74
|
|
|
71
|
-
#####
|
|
75
|
+
##### vertex
|
|
76
|
+
|
|
77
|
+
The vertex to update.
|
|
78
|
+
|
|
79
|
+
###### id
|
|
72
80
|
|
|
73
81
|
`string`
|
|
74
82
|
|
|
75
83
|
The id of the vertex to update.
|
|
76
84
|
|
|
77
|
-
|
|
85
|
+
###### annotationObject?
|
|
78
86
|
|
|
79
87
|
`IJsonLdNodeObject`
|
|
80
88
|
|
|
81
89
|
The annotation object for the vertex as JSON-LD.
|
|
82
90
|
|
|
83
|
-
|
|
91
|
+
###### aliases?
|
|
84
92
|
|
|
85
93
|
`object`[]
|
|
86
94
|
|
|
87
95
|
Alternative aliases that can be used to identify the vertex.
|
|
88
96
|
|
|
89
|
-
|
|
97
|
+
###### resources?
|
|
90
98
|
|
|
91
99
|
`object`[]
|
|
92
100
|
|
|
93
101
|
The resources attached to the vertex.
|
|
94
102
|
|
|
95
|
-
|
|
103
|
+
###### edges?
|
|
96
104
|
|
|
97
105
|
`object`[]
|
|
98
106
|
|
|
@@ -136,19 +144,19 @@ The id of the vertex to get.
|
|
|
136
144
|
|
|
137
145
|
Additional options for the get operation.
|
|
138
146
|
|
|
139
|
-
###### includeDeleted
|
|
147
|
+
###### includeDeleted?
|
|
140
148
|
|
|
141
149
|
`boolean`
|
|
142
150
|
|
|
143
151
|
Whether to include deleted aliases, resource, edges, defaults to false.
|
|
144
152
|
|
|
145
|
-
###### includeChangesets
|
|
153
|
+
###### includeChangesets?
|
|
146
154
|
|
|
147
155
|
`boolean`
|
|
148
156
|
|
|
149
157
|
Whether to include the changesets of the vertex, defaults to false.
|
|
150
158
|
|
|
151
|
-
###### verifySignatureDepth
|
|
159
|
+
###### verifySignatureDepth?
|
|
152
160
|
|
|
153
161
|
[`VerifyDepth`](../type-aliases/VerifyDepth.md)
|
|
154
162
|
|
|
@@ -210,13 +218,13 @@ Query the graph for vertices.
|
|
|
210
218
|
|
|
211
219
|
The query options.
|
|
212
220
|
|
|
213
|
-
###### id
|
|
221
|
+
###### id?
|
|
214
222
|
|
|
215
223
|
`string`
|
|
216
224
|
|
|
217
225
|
The optional id to look for.
|
|
218
226
|
|
|
219
|
-
###### idMode
|
|
227
|
+
###### idMode?
|
|
220
228
|
|
|
221
229
|
`"both"` \| `"id"` \| `"alias"`
|
|
222
230
|
|
|
@@ -46,7 +46,7 @@ The date/time of when the element was deleted, as we never actually remove items
|
|
|
46
46
|
|
|
47
47
|
### @context
|
|
48
48
|
|
|
49
|
-
> **@context**: `"https://schema.twindev.org/aig/"` \| \[`"https://schema.twindev.org/aig/"`, `...
|
|
49
|
+
> **@context**: `"https://schema.twindev.org/aig/"` \| \[`"https://schema.twindev.org/aig/"`, `...IJsonLdContextDefinitionElement[]`\]
|
|
50
50
|
|
|
51
51
|
JSON-LD Context.
|
|
52
52
|
|
|
@@ -6,7 +6,7 @@ The patch operation for JSON diffs.
|
|
|
6
6
|
|
|
7
7
|
### @context
|
|
8
8
|
|
|
9
|
-
> **@context**: `"https://schema.twindev.org/aig/"` \| \[`"https://schema.twindev.org/aig/"`, `...
|
|
9
|
+
> **@context**: `"https://schema.twindev.org/aig/"` \| \[`"https://schema.twindev.org/aig/"`, `...IJsonLdContextDefinitionElement[]`\]
|
|
10
10
|
|
|
11
11
|
JSON-LD Context.
|
|
12
12
|
|
|
@@ -58,7 +58,7 @@ The date/time of when the element was deleted, as we never actually remove items
|
|
|
58
58
|
|
|
59
59
|
### @context
|
|
60
60
|
|
|
61
|
-
> **@context**: `"https://schema.twindev.org/aig/"` \| \[`"https://schema.twindev.org/aig/"`, `...
|
|
61
|
+
> **@context**: `"https://schema.twindev.org/aig/"` \| \[`"https://schema.twindev.org/aig/"`, `...IJsonLdContextDefinitionElement[]`\]
|
|
62
62
|
|
|
63
63
|
JSON-LD Context.
|
|
64
64
|
|
|
@@ -46,7 +46,7 @@ The date/time of when the element was deleted, as we never actually remove items
|
|
|
46
46
|
|
|
47
47
|
### @context
|
|
48
48
|
|
|
49
|
-
> **@context**: `"https://schema.twindev.org/aig/"` \| \[`"https://schema.twindev.org/aig/"`, `...
|
|
49
|
+
> **@context**: `"https://schema.twindev.org/aig/"` \| \[`"https://schema.twindev.org/aig/"`, `...IJsonLdContextDefinitionElement[]`\]
|
|
50
50
|
|
|
51
51
|
JSON-LD Context.
|
|
52
52
|
|
|
@@ -6,7 +6,7 @@ Interface describing an auditable item graph vertex list.
|
|
|
6
6
|
|
|
7
7
|
### @context
|
|
8
8
|
|
|
9
|
-
> **@context**: `"https://schema.twindev.org/aig/"` \| \[`"https://schema.twindev.org/aig/"`, `...
|
|
9
|
+
> **@context**: `"https://schema.twindev.org/aig/"` \| \[`"https://schema.twindev.org/aig/"`, `...IJsonLdContextDefinitionElement[]`\]
|
|
10
10
|
|
|
11
11
|
JSON-LD Context.
|
|
12
12
|
|
package/package.json
CHANGED