@twin.org/auditable-item-graph-models 0.0.2-next.8 → 0.0.3-next.1
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/es/dataTypes/auditableItemGraphDataTypes.js +65 -0
- package/dist/es/dataTypes/auditableItemGraphDataTypes.js.map +1 -0
- package/dist/es/index.js +25 -0
- package/dist/es/index.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphAlias.js +2 -0
- package/dist/es/models/IAuditableItemGraphAlias.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphAuditedElement.js +4 -0
- package/dist/es/models/IAuditableItemGraphAuditedElement.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphChangeset.js +2 -0
- package/dist/es/models/IAuditableItemGraphChangeset.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphComponent.js +2 -0
- package/dist/es/models/IAuditableItemGraphComponent.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphEdge.js +2 -0
- package/dist/es/models/IAuditableItemGraphEdge.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphPatchOperation.js +2 -0
- package/dist/es/models/IAuditableItemGraphPatchOperation.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphResource.js +2 -0
- package/dist/es/models/IAuditableItemGraphResource.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphVertex.js +2 -0
- package/dist/es/models/IAuditableItemGraphVertex.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphVertexList.js +2 -0
- package/dist/es/models/IAuditableItemGraphVertexList.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphCreateRequest.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphCreateRequest.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphGetRequest.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphGetRequest.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphGetResponse.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphGetResponse.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphListRequest.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphListRequest.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphListResponse.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphListResponse.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphUpdateRequest.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphUpdateRequest.js.map +1 -0
- package/dist/es/models/auditableItemGraphContexts.js +17 -0
- package/dist/es/models/auditableItemGraphContexts.js.map +1 -0
- package/dist/es/models/auditableItemGraphTopics.js +17 -0
- package/dist/es/models/auditableItemGraphTopics.js.map +1 -0
- package/dist/es/models/auditableItemGraphTypes.js +37 -0
- package/dist/es/models/auditableItemGraphTypes.js.map +1 -0
- package/dist/es/models/eventBus/IAuditableItemGraphEventBusVertexCreated.js +4 -0
- package/dist/es/models/eventBus/IAuditableItemGraphEventBusVertexCreated.js.map +1 -0
- package/dist/es/models/eventBus/IAuditableItemGraphEventBusVertexUpdated.js +2 -0
- package/dist/es/models/eventBus/IAuditableItemGraphEventBusVertexUpdated.js.map +1 -0
- package/dist/es/models/verifyDepth.js +21 -0
- package/dist/es/models/verifyDepth.js.map +1 -0
- package/dist/es/schemas/AuditableItemGraphAlias.json +65 -0
- package/dist/es/schemas/AuditableItemGraphChangeset.json +66 -0
- package/dist/es/schemas/AuditableItemGraphEdge.json +73 -0
- package/dist/es/schemas/AuditableItemGraphPatchOperation.json +65 -0
- package/dist/es/schemas/AuditableItemGraphResource.json +60 -0
- package/dist/es/schemas/AuditableItemGraphVertex.json +93 -0
- package/dist/es/schemas/AuditableItemGraphVertexList.json +59 -0
- package/dist/types/index.d.ts +22 -22
- package/dist/types/models/IAuditableItemGraphAlias.d.ts +3 -3
- package/dist/types/models/IAuditableItemGraphChangeset.d.ts +4 -4
- package/dist/types/models/IAuditableItemGraphComponent.d.ts +6 -11
- package/dist/types/models/IAuditableItemGraphEdge.d.ts +3 -3
- package/dist/types/models/IAuditableItemGraphPatchOperation.d.ts +2 -2
- package/dist/types/models/IAuditableItemGraphResource.d.ts +3 -3
- package/dist/types/models/IAuditableItemGraphVertex.d.ts +9 -9
- package/dist/types/models/IAuditableItemGraphVertexList.d.ts +3 -3
- package/dist/types/models/api/IAuditableItemGraphGetRequest.d.ts +3 -3
- package/dist/types/models/api/IAuditableItemGraphGetResponse.d.ts +1 -1
- package/dist/types/models/api/IAuditableItemGraphListRequest.d.ts +2 -2
- package/dist/types/models/api/IAuditableItemGraphListResponse.d.ts +1 -1
- package/docs/changelog.md +28 -0
- package/docs/reference/interfaces/IAuditableItemGraphChangeset.md +2 -2
- package/docs/reference/interfaces/IAuditableItemGraphComponent.md +3 -41
- package/docs/reference/interfaces/IAuditableItemGraphGetRequest.md +2 -2
- package/docs/reference/interfaces/IAuditableItemGraphListRequest.md +1 -1
- package/docs/reference/interfaces/IAuditableItemGraphVertex.md +3 -3
- package/package.json +5 -7
- package/dist/cjs/index.cjs +0 -716
- package/dist/esm/index.mjs +0 -710
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
// Copyright 2024 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
import { DataTypeHandlerFactory } from "@twin.org/data-core";
|
|
4
|
+
import { AuditableItemGraphContexts } from "../models/auditableItemGraphContexts.js";
|
|
5
|
+
import { AuditableItemGraphTypes } from "../models/auditableItemGraphTypes.js";
|
|
6
|
+
import AuditableItemGraphAliasSchema from "../schemas/AuditableItemGraphAlias.json" with { type: "json" };
|
|
7
|
+
import AuditableItemGraphChangesetSchema from "../schemas/AuditableItemGraphChangeset.json" with { type: "json" };
|
|
8
|
+
import AuditableItemGraphEdgeSchema from "../schemas/AuditableItemGraphEdge.json" with { type: "json" };
|
|
9
|
+
import AuditableItemGraphPatchOperationSchema from "../schemas/AuditableItemGraphPatchOperation.json" with { type: "json" };
|
|
10
|
+
import AuditableItemGraphResourceSchema from "../schemas/AuditableItemGraphResource.json" with { type: "json" };
|
|
11
|
+
import AuditableItemGraphVertexSchema from "../schemas/AuditableItemGraphVertex.json" with { type: "json" };
|
|
12
|
+
import AuditableItemGraphVertexListSchema from "../schemas/AuditableItemGraphVertexList.json" with { type: "json" };
|
|
13
|
+
/**
|
|
14
|
+
* Handle all the data types for auditable item graph.
|
|
15
|
+
*/
|
|
16
|
+
export class AuditableItemGraphDataTypes {
|
|
17
|
+
/**
|
|
18
|
+
* Register all the data types.
|
|
19
|
+
*/
|
|
20
|
+
static registerTypes() {
|
|
21
|
+
DataTypeHandlerFactory.register(`${AuditableItemGraphContexts.ContextRoot}${AuditableItemGraphTypes.Vertex}`, () => ({
|
|
22
|
+
context: AuditableItemGraphContexts.ContextRoot,
|
|
23
|
+
type: AuditableItemGraphTypes.Vertex,
|
|
24
|
+
defaultValue: {},
|
|
25
|
+
jsonSchema: async () => AuditableItemGraphVertexSchema
|
|
26
|
+
}));
|
|
27
|
+
DataTypeHandlerFactory.register(`${AuditableItemGraphContexts.ContextRoot}${AuditableItemGraphTypes.VertexList}`, () => ({
|
|
28
|
+
context: AuditableItemGraphContexts.ContextRoot,
|
|
29
|
+
type: AuditableItemGraphTypes.VertexList,
|
|
30
|
+
defaultValue: {},
|
|
31
|
+
jsonSchema: async () => AuditableItemGraphVertexListSchema
|
|
32
|
+
}));
|
|
33
|
+
DataTypeHandlerFactory.register(`${AuditableItemGraphContexts.ContextRoot}${AuditableItemGraphTypes.Alias}`, () => ({
|
|
34
|
+
context: AuditableItemGraphContexts.ContextRoot,
|
|
35
|
+
type: AuditableItemGraphTypes.Alias,
|
|
36
|
+
defaultValue: {},
|
|
37
|
+
jsonSchema: async () => AuditableItemGraphAliasSchema
|
|
38
|
+
}));
|
|
39
|
+
DataTypeHandlerFactory.register(`${AuditableItemGraphContexts.ContextRoot}${AuditableItemGraphTypes.Resource}`, () => ({
|
|
40
|
+
context: AuditableItemGraphContexts.ContextRoot,
|
|
41
|
+
type: AuditableItemGraphTypes.Resource,
|
|
42
|
+
defaultValue: {},
|
|
43
|
+
jsonSchema: async () => AuditableItemGraphResourceSchema
|
|
44
|
+
}));
|
|
45
|
+
DataTypeHandlerFactory.register(`${AuditableItemGraphContexts.ContextRoot}${AuditableItemGraphTypes.Edge}`, () => ({
|
|
46
|
+
context: AuditableItemGraphContexts.ContextRoot,
|
|
47
|
+
type: AuditableItemGraphTypes.Edge,
|
|
48
|
+
defaultValue: {},
|
|
49
|
+
jsonSchema: async () => AuditableItemGraphEdgeSchema
|
|
50
|
+
}));
|
|
51
|
+
DataTypeHandlerFactory.register(`${AuditableItemGraphContexts.ContextRoot}${AuditableItemGraphTypes.Changeset}`, () => ({
|
|
52
|
+
context: AuditableItemGraphContexts.ContextRoot,
|
|
53
|
+
type: AuditableItemGraphTypes.Changeset,
|
|
54
|
+
defaultValue: {},
|
|
55
|
+
jsonSchema: async () => AuditableItemGraphChangesetSchema
|
|
56
|
+
}));
|
|
57
|
+
DataTypeHandlerFactory.register(`${AuditableItemGraphContexts.ContextRoot}${AuditableItemGraphTypes.PatchOperation}`, () => ({
|
|
58
|
+
context: AuditableItemGraphContexts.ContextRoot,
|
|
59
|
+
type: AuditableItemGraphTypes.PatchOperation,
|
|
60
|
+
defaultValue: {},
|
|
61
|
+
jsonSchema: async () => AuditableItemGraphPatchOperationSchema
|
|
62
|
+
}));
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=auditableItemGraphDataTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditableItemGraphDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/auditableItemGraphDataTypes.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { DataTypeHandlerFactory, type IJsonSchema } from \"@twin.org/data-core\";\nimport { AuditableItemGraphContexts } from \"../models/auditableItemGraphContexts.js\";\nimport { AuditableItemGraphTypes } from \"../models/auditableItemGraphTypes.js\";\nimport AuditableItemGraphAliasSchema from \"../schemas/AuditableItemGraphAlias.json\" with { type: \"json\" };\nimport AuditableItemGraphChangesetSchema from \"../schemas/AuditableItemGraphChangeset.json\" with { type: \"json\" };\nimport AuditableItemGraphEdgeSchema from \"../schemas/AuditableItemGraphEdge.json\" with { type: \"json\" };\nimport AuditableItemGraphPatchOperationSchema from \"../schemas/AuditableItemGraphPatchOperation.json\" with { type: \"json\" };\nimport AuditableItemGraphResourceSchema from \"../schemas/AuditableItemGraphResource.json\" with { type: \"json\" };\nimport AuditableItemGraphVertexSchema from \"../schemas/AuditableItemGraphVertex.json\" with { type: \"json\" };\nimport AuditableItemGraphVertexListSchema from \"../schemas/AuditableItemGraphVertexList.json\" with { type: \"json\" };\n\n/**\n * Handle all the data types for auditable item graph.\n */\nexport class AuditableItemGraphDataTypes {\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${AuditableItemGraphContexts.ContextRoot}${AuditableItemGraphTypes.Vertex}`,\n\t\t\t() => ({\n\t\t\t\tcontext: AuditableItemGraphContexts.ContextRoot,\n\t\t\t\ttype: AuditableItemGraphTypes.Vertex,\n\t\t\t\tdefaultValue: {},\n\t\t\t\tjsonSchema: async () => AuditableItemGraphVertexSchema as IJsonSchema\n\t\t\t})\n\t\t);\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${AuditableItemGraphContexts.ContextRoot}${AuditableItemGraphTypes.VertexList}`,\n\t\t\t() => ({\n\t\t\t\tcontext: AuditableItemGraphContexts.ContextRoot,\n\t\t\t\ttype: AuditableItemGraphTypes.VertexList,\n\t\t\t\tdefaultValue: {},\n\t\t\t\tjsonSchema: async () => AuditableItemGraphVertexListSchema as IJsonSchema\n\t\t\t})\n\t\t);\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${AuditableItemGraphContexts.ContextRoot}${AuditableItemGraphTypes.Alias}`,\n\t\t\t() => ({\n\t\t\t\tcontext: AuditableItemGraphContexts.ContextRoot,\n\t\t\t\ttype: AuditableItemGraphTypes.Alias,\n\t\t\t\tdefaultValue: {},\n\t\t\t\tjsonSchema: async () => AuditableItemGraphAliasSchema as IJsonSchema\n\t\t\t})\n\t\t);\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${AuditableItemGraphContexts.ContextRoot}${AuditableItemGraphTypes.Resource}`,\n\t\t\t() => ({\n\t\t\t\tcontext: AuditableItemGraphContexts.ContextRoot,\n\t\t\t\ttype: AuditableItemGraphTypes.Resource,\n\t\t\t\tdefaultValue: {},\n\t\t\t\tjsonSchema: async () => AuditableItemGraphResourceSchema as IJsonSchema\n\t\t\t})\n\t\t);\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${AuditableItemGraphContexts.ContextRoot}${AuditableItemGraphTypes.Edge}`,\n\t\t\t() => ({\n\t\t\t\tcontext: AuditableItemGraphContexts.ContextRoot,\n\t\t\t\ttype: AuditableItemGraphTypes.Edge,\n\t\t\t\tdefaultValue: {},\n\t\t\t\tjsonSchema: async () => AuditableItemGraphEdgeSchema as IJsonSchema\n\t\t\t})\n\t\t);\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${AuditableItemGraphContexts.ContextRoot}${AuditableItemGraphTypes.Changeset}`,\n\t\t\t() => ({\n\t\t\t\tcontext: AuditableItemGraphContexts.ContextRoot,\n\t\t\t\ttype: AuditableItemGraphTypes.Changeset,\n\t\t\t\tdefaultValue: {},\n\t\t\t\tjsonSchema: async () => AuditableItemGraphChangesetSchema as IJsonSchema\n\t\t\t})\n\t\t);\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${AuditableItemGraphContexts.ContextRoot}${AuditableItemGraphTypes.PatchOperation}`,\n\t\t\t() => ({\n\t\t\t\tcontext: AuditableItemGraphContexts.ContextRoot,\n\t\t\t\ttype: AuditableItemGraphTypes.PatchOperation,\n\t\t\t\tdefaultValue: {},\n\t\t\t\tjsonSchema: async () => AuditableItemGraphPatchOperationSchema as IJsonSchema\n\t\t\t})\n\t\t);\n\t}\n}\n"]}
|
package/dist/es/index.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Copyright 2024 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
export * from "./dataTypes/auditableItemGraphDataTypes.js";
|
|
4
|
+
export * from "./models/api/IAuditableItemGraphCreateRequest.js";
|
|
5
|
+
export * from "./models/api/IAuditableItemGraphGetRequest.js";
|
|
6
|
+
export * from "./models/api/IAuditableItemGraphGetResponse.js";
|
|
7
|
+
export * from "./models/api/IAuditableItemGraphListRequest.js";
|
|
8
|
+
export * from "./models/api/IAuditableItemGraphListResponse.js";
|
|
9
|
+
export * from "./models/api/IAuditableItemGraphUpdateRequest.js";
|
|
10
|
+
export * from "./models/auditableItemGraphContexts.js";
|
|
11
|
+
export * from "./models/auditableItemGraphTopics.js";
|
|
12
|
+
export * from "./models/auditableItemGraphTypes.js";
|
|
13
|
+
export * from "./models/eventBus/IAuditableItemGraphEventBusVertexCreated.js";
|
|
14
|
+
export * from "./models/eventBus/IAuditableItemGraphEventBusVertexUpdated.js";
|
|
15
|
+
export * from "./models/IAuditableItemGraphAlias.js";
|
|
16
|
+
export * from "./models/IAuditableItemGraphAuditedElement.js";
|
|
17
|
+
export * from "./models/IAuditableItemGraphChangeset.js";
|
|
18
|
+
export * from "./models/IAuditableItemGraphComponent.js";
|
|
19
|
+
export * from "./models/IAuditableItemGraphEdge.js";
|
|
20
|
+
export * from "./models/IAuditableItemGraphPatchOperation.js";
|
|
21
|
+
export * from "./models/IAuditableItemGraphResource.js";
|
|
22
|
+
export * from "./models/IAuditableItemGraphVertex.js";
|
|
23
|
+
export * from "./models/IAuditableItemGraphVertexList.js";
|
|
24
|
+
export * from "./models/verifyDepth.js";
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,4CAA4C,CAAC;AAC3D,cAAc,kDAAkD,CAAC;AACjE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,iDAAiD,CAAC;AAChE,cAAc,kDAAkD,CAAC;AACjE,cAAc,wCAAwC,CAAC;AACvD,cAAc,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC;AACpD,cAAc,+DAA+D,CAAC;AAC9E,cAAc,+DAA+D,CAAC;AAC9E,cAAc,sCAAsC,CAAC;AACrD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,0CAA0C,CAAC;AACzD,cAAc,0CAA0C,CAAC;AACzD,cAAc,qCAAqC,CAAC;AACpD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,yBAAyB,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./dataTypes/auditableItemGraphDataTypes.js\";\nexport * from \"./models/api/IAuditableItemGraphCreateRequest.js\";\nexport * from \"./models/api/IAuditableItemGraphGetRequest.js\";\nexport * from \"./models/api/IAuditableItemGraphGetResponse.js\";\nexport * from \"./models/api/IAuditableItemGraphListRequest.js\";\nexport * from \"./models/api/IAuditableItemGraphListResponse.js\";\nexport * from \"./models/api/IAuditableItemGraphUpdateRequest.js\";\nexport * from \"./models/auditableItemGraphContexts.js\";\nexport * from \"./models/auditableItemGraphTopics.js\";\nexport * from \"./models/auditableItemGraphTypes.js\";\nexport * from \"./models/eventBus/IAuditableItemGraphEventBusVertexCreated.js\";\nexport * from \"./models/eventBus/IAuditableItemGraphEventBusVertexUpdated.js\";\nexport * from \"./models/IAuditableItemGraphAlias.js\";\nexport * from \"./models/IAuditableItemGraphAuditedElement.js\";\nexport * from \"./models/IAuditableItemGraphChangeset.js\";\nexport * from \"./models/IAuditableItemGraphComponent.js\";\nexport * from \"./models/IAuditableItemGraphEdge.js\";\nexport * from \"./models/IAuditableItemGraphPatchOperation.js\";\nexport * from \"./models/IAuditableItemGraphResource.js\";\nexport * from \"./models/IAuditableItemGraphVertex.js\";\nexport * from \"./models/IAuditableItemGraphVertexList.js\";\nexport * from \"./models/verifyDepth.js\";\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphAlias.js","sourceRoot":"","sources":["../../../src/models/IAuditableItemGraphAlias.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement, IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { AuditableItemGraphContexts } from \"./auditableItemGraphContexts.js\";\nimport type { AuditableItemGraphTypes } from \"./auditableItemGraphTypes.js\";\nimport type { IAuditableItemGraphAuditedElement } from \"./IAuditableItemGraphAuditedElement.js\";\n\n/**\n * Interface describing an alias for a vertex.\n */\nexport interface IAuditableItemGraphAlias extends IAuditableItemGraphAuditedElement {\n\t/**\n\t * JSON-LD Context.\n\t */\n\t\"@context\":\n\t\t| typeof AuditableItemGraphContexts.ContextRoot\n\t\t| [typeof AuditableItemGraphContexts.ContextRoot, ...IJsonLdContextDefinitionElement[]];\n\n\t/**\n\t * The id of the element.\n\t */\n\tid: string;\n\n\t/**\n\t * JSON-LD Type.\n\t */\n\ttype: typeof AuditableItemGraphTypes.Alias;\n\n\t/**\n\t * The JSON-LD annotation object for the alias.\n\t */\n\tannotationObject?: IJsonLdNodeObject;\n\n\t/**\n\t * The format of the id in the alias.\n\t */\n\taliasFormat?: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphAuditedElement.js","sourceRoot":"","sources":["../../../src/models/IAuditableItemGraphAuditedElement.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Interface describing the base properties for auditable elements.\n */\nexport interface IAuditableItemGraphAuditedElement {\n\t/**\n\t * The id of the element.\n\t */\n\tid?: string;\n\n\t/**\n\t * The date/time of when the element was created.\n\t */\n\tdateCreated?: string;\n\n\t/**\n\t * The date/time of when the element was modified.\n\t */\n\tdateModified?: string;\n\n\t/**\n\t * The date/time of when the element was deleted, as we never actually remove items.\n\t */\n\tdateDeleted?: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphChangeset.js","sourceRoot":"","sources":["../../../src/models/IAuditableItemGraphChangeset.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement } from \"@twin.org/data-json-ld\";\nimport type { IImmutableProofVerification } from \"@twin.org/immutable-proof-models\";\nimport type { AuditableItemGraphContexts } from \"./auditableItemGraphContexts.js\";\nimport type { AuditableItemGraphTypes } from \"./auditableItemGraphTypes.js\";\nimport type { IAuditableItemGraphPatchOperation } from \"./IAuditableItemGraphPatchOperation.js\";\n\n/**\n * Interface describing a set of changes to the vertex.\n */\nexport interface IAuditableItemGraphChangeset {\n\t/**\n\t * JSON-LD Context.\n\t */\n\t\"@context\": [\n\t\ttypeof AuditableItemGraphContexts.ContextRoot,\n\t\ttypeof AuditableItemGraphContexts.ContextRootCommon,\n\t\t...IJsonLdContextDefinitionElement[]\n\t];\n\n\t/**\n\t * JSON-LD Type.\n\t */\n\ttype: typeof AuditableItemGraphTypes.Changeset;\n\n\t/**\n\t * The id of the changeset.\n\t */\n\tid: string;\n\n\t/**\n\t * The date/time of when the changeset was created.\n\t */\n\tdateCreated: string;\n\n\t/**\n\t * The user identity that created the changes.\n\t */\n\tuserIdentity?: string;\n\n\t/**\n\t * The patches in the changeset.\n\t */\n\tpatches: IAuditableItemGraphPatchOperation[];\n\n\t/**\n\t * The immutable proof id which contains the signature for this changeset.\n\t */\n\tproofId?: string;\n\n\t/**\n\t * The verification for the changeset.\n\t */\n\tverification?: IImmutableProofVerification;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphComponent.js","sourceRoot":"","sources":["../../../src/models/IAuditableItemGraphComponent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { IComparator, SortDirection } from \"@twin.org/entity\";\nimport type { IAuditableItemGraphVertex } from \"./IAuditableItemGraphVertex.js\";\nimport type { IAuditableItemGraphVertexList } from \"./IAuditableItemGraphVertexList.js\";\nimport type { VerifyDepth } from \"./verifyDepth.js\";\n\n/**\n * Interface describing an auditable item graph contract.\n */\nexport interface IAuditableItemGraphComponent extends IComponent {\n\t/**\n\t * Create a new graph vertex.\n\t * @param vertex The vertex to create.\n\t * @param vertex.annotationObject The annotation object for the vertex as JSON-LD.\n\t * @param vertex.aliases Alternative aliases that can be used to identify the vertex.\n\t * @param vertex.resources The resources attached to the vertex.\n\t * @param vertex.edges The edges connected to the vertex.\n\t * @returns The id of the new graph item.\n\t */\n\tcreate(vertex: {\n\t\tannotationObject?: IJsonLdNodeObject;\n\t\taliases?: {\n\t\t\tid: string;\n\t\t\taliasFormat?: string;\n\t\t\tunique?: boolean;\n\t\t\tannotationObject?: IJsonLdNodeObject;\n\t\t}[];\n\t\tresources?: {\n\t\t\tid?: string;\n\t\t\tresourceObject?: IJsonLdNodeObject;\n\t\t}[];\n\t\tedges?: {\n\t\t\ttargetId: string;\n\t\t\tedgeRelationships: string[];\n\t\t\tannotationObject?: IJsonLdNodeObject;\n\t\t}[];\n\t}): Promise<string>;\n\n\t/**\n\t * Update a graph vertex.\n\t * @param vertex The vertex to update.\n\t * @param vertex.id The id of the vertex to update.\n\t * @param vertex.annotationObject The annotation object for the vertex as JSON-LD.\n\t * @param vertex.aliases Alternative aliases that can be used to identify the vertex.\n\t * @param vertex.resources The resources attached to the vertex.\n\t * @param vertex.edges The edges connected to the vertex.\n\t * @returns Nothing.\n\t */\n\tupdate(vertex: {\n\t\tid: string;\n\t\tannotationObject?: IJsonLdNodeObject;\n\t\taliases?: {\n\t\t\tid: string;\n\t\t\taliasFormat?: string;\n\t\t\tunique?: boolean;\n\t\t\tannotationObject?: IJsonLdNodeObject;\n\t\t}[];\n\t\tresources?: {\n\t\t\tid?: string;\n\t\t\tresourceObject?: IJsonLdNodeObject;\n\t\t}[];\n\t\tedges?: {\n\t\t\tid?: string;\n\t\t\ttargetId: string;\n\t\t\tedgeRelationships: string[];\n\t\t\tannotationObject?: IJsonLdNodeObject;\n\t\t}[];\n\t}): Promise<void>;\n\n\t/**\n\t * Get a graph vertex.\n\t * @param id The id of the vertex to get.\n\t * @param options Additional options for the get operation.\n\t * @param options.includeDeleted Whether to include deleted aliases, resource, edges, defaults to false.\n\t * @param options.includeChangesets Whether to include the changesets of the vertex, defaults to false.\n\t * @param options.verifySignatureDepth How many signatures to verify, defaults to \"none\".\n\t * @returns The vertex if found.\n\t * @throws NotFoundError if the vertex is not found.\n\t */\n\tget(\n\t\tid: string,\n\t\toptions?: {\n\t\t\tincludeDeleted?: boolean;\n\t\t\tincludeChangesets?: boolean;\n\t\t\tverifySignatureDepth?: VerifyDepth;\n\t\t}\n\t): Promise<IAuditableItemGraphVertex>;\n\n\t/**\n\t * Remove the verifiable storage for an item.\n\t * @param id The id of the vertex to remove the storage from.\n\t * @returns Nothing.\n\t * @throws NotFoundError if the vertex is not found.\n\t */\n\tremoveVerifiable(id: string): Promise<void>;\n\n\t/**\n\t * Query the graph for vertices.\n\t * @param options The query options.\n\t * @param options.id The optional id to look for.\n\t * @param options.idMode Look in id, alias or both, defaults to both.\n\t * @param options.idExact Find only exact matches, default to false meaning partial matching.\n\t * @param options.resourceTypes Include vertices with specific resource types.\n\t * @param conditions Conditions to use in the query.\n\t * @param orderBy The order for the results, defaults to dateCreated.\n\t * @param orderByDirection The direction for the order, defaults to descending.\n\t * @param properties The properties to return, if not provided defaults to id, dateCreated, aliases and object.\n\t * @param cursor The cursor to request the next chunk of entities.\n\t * @param limit Limit the number of entities to return.\n\t * @returns The entities, which can be partial if a limited keys list was provided.\n\t */\n\tquery(\n\t\toptions?: {\n\t\t\tid?: string;\n\t\t\tidMode?: \"id\" | \"alias\" | \"both\";\n\t\t\tidExact?: boolean;\n\t\t\tresourceTypes?: string[];\n\t\t},\n\t\tconditions?: IComparator[],\n\t\torderBy?: keyof Pick<IAuditableItemGraphVertex, \"dateCreated\" | \"dateModified\">,\n\t\torderByDirection?: SortDirection,\n\t\tproperties?: (keyof IAuditableItemGraphVertex)[],\n\t\tcursor?: string,\n\t\tlimit?: number\n\t): Promise<IAuditableItemGraphVertexList>;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphEdge.js","sourceRoot":"","sources":["../../../src/models/IAuditableItemGraphEdge.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement, IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { AuditableItemGraphContexts } from \"./auditableItemGraphContexts.js\";\nimport type { AuditableItemGraphTypes } from \"./auditableItemGraphTypes.js\";\nimport type { IAuditableItemGraphAuditedElement } from \"./IAuditableItemGraphAuditedElement.js\";\n\n/**\n * Interface describing an edge between two vertices in an auditable item graph.\n */\nexport interface IAuditableItemGraphEdge extends IAuditableItemGraphAuditedElement {\n\t/**\n\t * JSON-LD Context.\n\t */\n\t\"@context\":\n\t\t| typeof AuditableItemGraphContexts.ContextRoot\n\t\t| [typeof AuditableItemGraphContexts.ContextRoot, ...IJsonLdContextDefinitionElement[]];\n\n\t/**\n\t * The id of the element.\n\t */\n\tid?: string;\n\n\t/**\n\t * The target vertex id the edge connects to.\n\t */\n\ttargetId: string;\n\n\t/**\n\t * JSON-LD Type.\n\t */\n\ttype: typeof AuditableItemGraphTypes.Edge;\n\n\t/**\n\t * The JSON-LD annotation object for the edge.\n\t */\n\tannotationObject?: IJsonLdNodeObject;\n\n\t/**\n\t * The relationships between the two vertices.\n\t */\n\tedgeRelationships: string[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphPatchOperation.js","sourceRoot":"","sources":["../../../src/models/IAuditableItemGraphPatchOperation.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement } from \"@twin.org/data-json-ld\";\nimport type { AuditableItemGraphContexts } from \"./auditableItemGraphContexts.js\";\nimport type { AuditableItemGraphTypes } from \"./auditableItemGraphTypes.js\";\n\n/**\n * The patch operation for JSON diffs.\n */\nexport interface IAuditableItemGraphPatchOperation {\n\t/**\n\t * JSON-LD Context.\n\t */\n\t\"@context\":\n\t\t| typeof AuditableItemGraphContexts.ContextRoot\n\t\t| [typeof AuditableItemGraphContexts.ContextRoot, ...IJsonLdContextDefinitionElement[]];\n\n\t/**\n\t * JSON-LD Type.\n\t */\n\ttype: typeof AuditableItemGraphTypes.PatchOperation;\n\n\t/**\n\t * The operation that was performed on the item.\n\t */\n\tpatchOperation: \"add\" | \"remove\" | \"replace\" | \"move\" | \"copy\" | \"test\";\n\n\t/**\n\t * The path to the object that was changed.\n\t */\n\tpatchPath: string;\n\n\t/**\n\t * The path the value was copied or moved from.\n\t */\n\tpatchFrom?: string;\n\n\t/**\n\t * The value to add.\n\t */\n\tpatchValue?: unknown;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphResource.js","sourceRoot":"","sources":["../../../src/models/IAuditableItemGraphResource.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement, IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { AuditableItemGraphContexts } from \"./auditableItemGraphContexts.js\";\nimport type { AuditableItemGraphTypes } from \"./auditableItemGraphTypes.js\";\nimport type { IAuditableItemGraphAuditedElement } from \"./IAuditableItemGraphAuditedElement.js\";\n\n/**\n * Interface describing an auditable item graph vertex resource.\n */\nexport interface IAuditableItemGraphResource extends IAuditableItemGraphAuditedElement {\n\t/**\n\t * JSON-LD Context.\n\t */\n\t\"@context\":\n\t\t| typeof AuditableItemGraphContexts.ContextRoot\n\t\t| [typeof AuditableItemGraphContexts.ContextRoot, ...IJsonLdContextDefinitionElement[]];\n\n\t/**\n\t * JSON-LD Type.\n\t */\n\ttype: typeof AuditableItemGraphTypes.Resource;\n\n\t/**\n\t * The JSON-LD object for the resource.\n\t */\n\tresourceObject?: IJsonLdNodeObject;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphVertex.js","sourceRoot":"","sources":["../../../src/models/IAuditableItemGraphVertex.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement, IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { AuditableItemGraphContexts } from \"./auditableItemGraphContexts.js\";\nimport type { AuditableItemGraphTypes } from \"./auditableItemGraphTypes.js\";\nimport type { IAuditableItemGraphAlias } from \"./IAuditableItemGraphAlias.js\";\nimport type { IAuditableItemGraphAuditedElement } from \"./IAuditableItemGraphAuditedElement.js\";\nimport type { IAuditableItemGraphChangeset } from \"./IAuditableItemGraphChangeset.js\";\nimport type { IAuditableItemGraphEdge } from \"./IAuditableItemGraphEdge.js\";\nimport type { IAuditableItemGraphResource } from \"./IAuditableItemGraphResource.js\";\n\n/**\n * Interface describing an auditable item graph vertex.\n */\nexport interface IAuditableItemGraphVertex\n\textends Omit<IAuditableItemGraphAuditedElement, \"deleted\"> {\n\t/**\n\t * JSON-LD Context.\n\t */\n\t\"@context\": [\n\t\ttypeof AuditableItemGraphContexts.ContextRoot,\n\t\ttypeof AuditableItemGraphContexts.ContextRootCommon,\n\t\t...IJsonLdContextDefinitionElement[]\n\t];\n\n\t/**\n\t * The id of the element.\n\t */\n\tid: string;\n\n\t/**\n\t * JSON-LD Type.\n\t */\n\ttype: typeof AuditableItemGraphTypes.Vertex;\n\n\t/**\n\t * The identity of the organization which controls the vertex.\n\t */\n\torganizationIdentity?: string;\n\n\t/**\n\t * The JSON-LD annotation object for the vertex.\n\t */\n\tannotationObject?: IJsonLdNodeObject;\n\n\t/**\n\t * Alternative aliases that can be used to identify the vertex.\n\t */\n\taliases?: IAuditableItemGraphAlias[];\n\n\t/**\n\t * The resources attached to the vertex.\n\t */\n\tresources?: IAuditableItemGraphResource[];\n\n\t/**\n\t * Edges connected to the vertex.\n\t */\n\tedges?: IAuditableItemGraphEdge[];\n\n\t/**\n\t * Changesets for the vertex.\n\t */\n\tchangesets?: IAuditableItemGraphChangeset[];\n\n\t/**\n\t * Is the vertex verified, will only be populated when verification is requested.\n\t */\n\tverified?: boolean;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphVertexList.js","sourceRoot":"","sources":["../../../src/models/IAuditableItemGraphVertexList.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement } from \"@twin.org/data-json-ld\";\nimport type { SchemaOrgContexts, SchemaOrgTypes } from \"@twin.org/standards-schema-org\";\nimport type { AuditableItemGraphContexts } from \"./auditableItemGraphContexts.js\";\nimport type { AuditableItemGraphTypes } from \"./auditableItemGraphTypes.js\";\nimport type { IAuditableItemGraphVertex } from \"./IAuditableItemGraphVertex.js\";\n\n/**\n * Interface describing an auditable item graph vertex list.\n */\nexport interface IAuditableItemGraphVertexList {\n\t/**\n\t * JSON-LD Context.\n\t */\n\t\"@context\": [\n\t\ttypeof SchemaOrgContexts.ContextRoot,\n\t\ttypeof AuditableItemGraphContexts.ContextRoot,\n\t\t...IJsonLdContextDefinitionElement[]\n\t];\n\n\t/**\n\t * JSON-LD Type.\n\t */\n\ttype: [typeof SchemaOrgTypes.ItemList, typeof AuditableItemGraphTypes.VertexList];\n\n\t/**\n\t * The list of vertices.\n\t */\n\t[SchemaOrgTypes.ItemListElement]: IAuditableItemGraphVertex[];\n\n\t/**\n\t * The cursor to get the next chunk of vertices.\n\t */\n\t[SchemaOrgTypes.NextItem]?: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphCreateRequest.js","sourceRoot":"","sources":["../../../../src/models/api/IAuditableItemGraphCreateRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\n\n/**\n * Create an auditable item graph vertex.\n */\nexport interface IAuditableItemGraphCreateRequest {\n\t/**\n\t * The data to be used in the vertex.\n\t */\n\tbody: {\n\t\t/**\n\t\t * The object to be used in the vertex as JSON-LD.\n\t\t */\n\t\tannotationObject?: IJsonLdNodeObject;\n\n\t\t/**\n\t\t * Alternative aliases that can be used to identify the vertex.\n\t\t */\n\t\taliases?: {\n\t\t\tid: string;\n\t\t\taliasFormat?: string;\n\t\t\tunique?: boolean;\n\t\t\tannotationObject?: IJsonLdNodeObject;\n\t\t}[];\n\n\t\t/**\n\t\t * The resources attached to the vertex.\n\t\t */\n\t\tresources?: {\n\t\t\tid?: string;\n\t\t\tresourceObject?: IJsonLdNodeObject;\n\t\t}[];\n\n\t\t/**\n\t\t * The edges connected to the vertex.\n\t\t */\n\t\tedges?: {\n\t\t\ttargetId: string;\n\t\t\tedgeRelationships: string[];\n\t\t\tannotationObject?: IJsonLdNodeObject;\n\t\t}[];\n\t};\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphGetRequest.js","sourceRoot":"","sources":["../../../../src/models/api/IAuditableItemGraphGetRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { HeaderTypes, MimeTypes } from \"@twin.org/web\";\nimport type { VerifyDepth } from \"../verifyDepth.js\";\n\n/**\n * Get an auditable item graph vertex.\n */\nexport interface IAuditableItemGraphGetRequest {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders?: {\n\t\t[HeaderTypes.Accept]: typeof MimeTypes.Json | typeof MimeTypes.JsonLd;\n\t};\n\n\t/**\n\t * The parameters from the path.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The id of the vertex to get.\n\t\t */\n\t\tid: string;\n\t};\n\n\t/**\n\t * The query parameters.\n\t */\n\tquery?: {\n\t\t/**\n\t\t * Whether to include deleted aliases, resource, edges, defaults to false.\n\t\t */\n\t\tincludeDeleted?: string;\n\n\t\t/**\n\t\t * Whether to include the changesets of the vertex, defaults to false.\n\t\t */\n\t\tincludeChangesets?: string;\n\n\t\t/**\n\t\t * How many signatures to verify, none, current or all, defaults to \"none\".\n\t\t */\n\t\tverifySignatureDepth?: VerifyDepth;\n\t};\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphGetResponse.js","sourceRoot":"","sources":["../../../../src/models/api/IAuditableItemGraphGetResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { HeaderTypes, MimeTypes } from \"@twin.org/web\";\nimport type { IAuditableItemGraphVertex } from \"../IAuditableItemGraphVertex.js\";\n\n/**\n * Response to getting an auditable item graph vertex.\n */\nexport interface IAuditableItemGraphGetResponse {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders?: {\n\t\t[HeaderTypes.ContentType]: typeof MimeTypes.Json | typeof MimeTypes.JsonLd;\n\t};\n\n\t/**\n\t * The response body.\n\t */\n\tbody: IAuditableItemGraphVertex;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphListRequest.js","sourceRoot":"","sources":["../../../../src/models/api/IAuditableItemGraphListRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { SortDirection } from \"@twin.org/entity\";\nimport type { HeaderTypes, MimeTypes } from \"@twin.org/web\";\nimport type { IAuditableItemGraphVertex } from \"../IAuditableItemGraphVertex.js\";\n\n/**\n * Get the a list of the vertices with matching ids or aliases.\n */\nexport interface IAuditableItemGraphListRequest {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders?: {\n\t\t[HeaderTypes.Accept]: typeof MimeTypes.Json | typeof MimeTypes.JsonLd;\n\t};\n\n\t/**\n\t * The query parameters.\n\t */\n\tquery?: {\n\t\t/**\n\t\t * The id or alias to try and find.\n\t\t */\n\t\tid?: string;\n\n\t\t/**\n\t\t * Which field to look in with the id, defaults to both.\n\t\t */\n\t\tidMode?: \"id\" | \"alias\" | \"both\";\n\n\t\t/**\n\t\t * Find only exact matches, default to false meaning partial matching.\n\t\t */\n\t\tidExact?: string;\n\n\t\t/**\n\t\t * Include vertices with specific resource types, comma separated.\n\t\t */\n\t\tresourceTypes?: string;\n\n\t\t/**\n\t\t * The conditions to filter the streams, JSON stringified IComparator[].\n\t\t */\n\t\tconditions?: string;\n\n\t\t/**\n\t\t * The order for the results, default to dateCreated.\n\t\t */\n\t\torderBy?: keyof Pick<IAuditableItemGraphVertex, \"dateCreated\" | \"dateModified\">;\n\n\t\t/**\n\t\t * The direction for the order, defaults to desc.\n\t\t */\n\t\torderByDirection?: SortDirection;\n\n\t\t/**\n\t\t * The properties to return as a comma separated list, defaults to \"id,dateCreated,aliases,annotationObject\".\n\t\t */\n\t\tproperties?: string;\n\n\t\t/**\n\t\t * The optional cursor to get next chunk.\n\t\t */\n\t\tcursor?: string;\n\n\t\t/**\n\t\t * Limit the number of entities to return.\n\t\t */\n\t\tlimit?: string;\n\t};\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphListResponse.js","sourceRoot":"","sources":["../../../../src/models/api/IAuditableItemGraphListResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { HeaderTypes, MimeTypes } from \"@twin.org/web\";\nimport type { IAuditableItemGraphVertexList } from \"../IAuditableItemGraphVertexList.js\";\n\n/**\n * The response to getting the a list of the vertices with matching ids or aliases.\n */\nexport interface IAuditableItemGraphListResponse {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders?: {\n\t\t[HeaderTypes.ContentType]: typeof MimeTypes.Json | typeof MimeTypes.JsonLd;\n\t};\n\n\t/**\n\t * The response payload.\n\t */\n\tbody: IAuditableItemGraphVertexList;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphUpdateRequest.js","sourceRoot":"","sources":["../../../../src/models/api/IAuditableItemGraphUpdateRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\n\n/**\n * Update an auditable item graph vertex.\n */\nexport interface IAuditableItemGraphUpdateRequest {\n\t/**\n\t * The path parameters.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The id of the vertex to update.\n\t\t */\n\t\tid: string;\n\t};\n\n\t/**\n\t * The data to be used in the vertex.\n\t */\n\tbody: {\n\t\t/**\n\t\t * The object to be used in the vertex as JSON-LD.\n\t\t */\n\t\tannotationObject?: IJsonLdNodeObject;\n\n\t\t/**\n\t\t * Alternative aliases that can be used to identify the vertex.\n\t\t */\n\t\taliases?: {\n\t\t\tid: string;\n\t\t\taliasFormat?: string;\n\t\t\tunique?: boolean;\n\t\t\tannotationObject?: IJsonLdNodeObject;\n\t\t}[];\n\n\t\t/**\n\t\t * The resources attached to the vertex.\n\t\t */\n\t\tresources?: {\n\t\t\tid?: string;\n\t\t\tresourceObject?: IJsonLdNodeObject;\n\t\t}[];\n\n\t\t/**\n\t\t * The edges connected to the vertex.\n\t\t */\n\t\tedges?: {\n\t\t\tid?: string;\n\t\t\ttargetId: string;\n\t\t\tedgeRelationships: string[];\n\t\t\tannotationObject?: IJsonLdNodeObject;\n\t\t}[];\n\t};\n}\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Copyright 2024 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* The contexts of auditable item graph data.
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const AuditableItemGraphContexts = {
|
|
8
|
+
/**
|
|
9
|
+
* The context root for the auditable item graph types.
|
|
10
|
+
*/
|
|
11
|
+
ContextRoot: "https://schema.twindev.org/aig/",
|
|
12
|
+
/**
|
|
13
|
+
* The context root for the common types.
|
|
14
|
+
*/
|
|
15
|
+
ContextRootCommon: "https://schema.twindev.org/common/"
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=auditableItemGraphContexts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditableItemGraphContexts.js","sourceRoot":"","sources":["../../../src/models/auditableItemGraphContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACzC;;OAEG;IACH,WAAW,EAAE,iCAAiC;IAE9C;;OAEG;IACH,iBAAiB,EAAE,oCAAoC;CAC9C,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The contexts of auditable item graph data.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const AuditableItemGraphContexts = {\n\t/**\n\t * The context root for the auditable item graph types.\n\t */\n\tContextRoot: \"https://schema.twindev.org/aig/\",\n\n\t/**\n\t * The context root for the common types.\n\t */\n\tContextRootCommon: \"https://schema.twindev.org/common/\"\n} as const;\n\n/**\n * The contexts of auditable item graph data.\n */\nexport type AuditableItemGraphContexts =\n\t(typeof AuditableItemGraphContexts)[keyof typeof AuditableItemGraphContexts];\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Copyright 2024 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* The topics for auditable item graph event bus notifications.
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const AuditableItemGraphTopics = {
|
|
8
|
+
/**
|
|
9
|
+
* A vertex was created.
|
|
10
|
+
*/
|
|
11
|
+
VertexCreated: "auditable-item-graph:vertex-created",
|
|
12
|
+
/**
|
|
13
|
+
* A vertex was updated.
|
|
14
|
+
*/
|
|
15
|
+
VertexUpdated: "auditable-item-graph:vertex-updated"
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=auditableItemGraphTopics.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditableItemGraphTopics.js","sourceRoot":"","sources":["../../../src/models/auditableItemGraphTopics.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACvC;;OAEG;IACH,aAAa,EAAE,qCAAqC;IAEpD;;OAEG;IACH,aAAa,EAAE,qCAAqC;CAC3C,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The topics for auditable item graph event bus notifications.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const AuditableItemGraphTopics = {\n\t/**\n\t * A vertex was created.\n\t */\n\tVertexCreated: \"auditable-item-graph:vertex-created\",\n\n\t/**\n\t * A vertex was updated.\n\t */\n\tVertexUpdated: \"auditable-item-graph:vertex-updated\"\n} as const;\n\n/**\n * The topics for auditable item graph event bus notifications.\n */\nexport type AuditableItemGraphTopics =\n\t(typeof AuditableItemGraphTopics)[keyof typeof AuditableItemGraphTopics];\n"]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// Copyright 2024 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* The types of auditable item graph data.
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const AuditableItemGraphTypes = {
|
|
8
|
+
/**
|
|
9
|
+
* Represents auditable item graph vertex.
|
|
10
|
+
*/
|
|
11
|
+
Vertex: "AuditableItemGraphVertex",
|
|
12
|
+
/**
|
|
13
|
+
* Represents auditable item graph vertex list.
|
|
14
|
+
*/
|
|
15
|
+
VertexList: "AuditableItemGraphVertexList",
|
|
16
|
+
/**
|
|
17
|
+
* Represents auditable item graph alias.
|
|
18
|
+
*/
|
|
19
|
+
Alias: "AuditableItemGraphAlias",
|
|
20
|
+
/**
|
|
21
|
+
* Represents auditable item graph resource.
|
|
22
|
+
*/
|
|
23
|
+
Resource: "AuditableItemGraphResource",
|
|
24
|
+
/**
|
|
25
|
+
* Represents auditable item graph edge.
|
|
26
|
+
*/
|
|
27
|
+
Edge: "AuditableItemGraphEdge",
|
|
28
|
+
/**
|
|
29
|
+
* Represents auditable item graph changeset.
|
|
30
|
+
*/
|
|
31
|
+
Changeset: "AuditableItemGraphChangeset",
|
|
32
|
+
/**
|
|
33
|
+
* Represents patch operation.
|
|
34
|
+
*/
|
|
35
|
+
PatchOperation: "AuditableItemGraphPatchOperation"
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=auditableItemGraphTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditableItemGraphTypes.js","sourceRoot":"","sources":["../../../src/models/auditableItemGraphTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACtC;;OAEG;IACH,MAAM,EAAE,0BAA0B;IAElC;;OAEG;IACH,UAAU,EAAE,8BAA8B;IAE1C;;OAEG;IACH,KAAK,EAAE,yBAAyB;IAEhC;;OAEG;IACH,QAAQ,EAAE,4BAA4B;IAEtC;;OAEG;IACH,IAAI,EAAE,wBAAwB;IAE9B;;OAEG;IACH,SAAS,EAAE,6BAA6B;IAExC;;OAEG;IACH,cAAc,EAAE,kCAAkC;CACzC,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types of auditable item graph data.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const AuditableItemGraphTypes = {\n\t/**\n\t * Represents auditable item graph vertex.\n\t */\n\tVertex: \"AuditableItemGraphVertex\",\n\n\t/**\n\t * Represents auditable item graph vertex list.\n\t */\n\tVertexList: \"AuditableItemGraphVertexList\",\n\n\t/**\n\t * Represents auditable item graph alias.\n\t */\n\tAlias: \"AuditableItemGraphAlias\",\n\n\t/**\n\t * Represents auditable item graph resource.\n\t */\n\tResource: \"AuditableItemGraphResource\",\n\n\t/**\n\t * Represents auditable item graph edge.\n\t */\n\tEdge: \"AuditableItemGraphEdge\",\n\n\t/**\n\t * Represents auditable item graph changeset.\n\t */\n\tChangeset: \"AuditableItemGraphChangeset\",\n\n\t/**\n\t * Represents patch operation.\n\t */\n\tPatchOperation: \"AuditableItemGraphPatchOperation\"\n} as const;\n\n/**\n * The types of auditable item graph data.\n */\nexport type AuditableItemGraphTypes =\n\t(typeof AuditableItemGraphTypes)[keyof typeof AuditableItemGraphTypes];\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphEventBusVertexCreated.js","sourceRoot":"","sources":["../../../../src/models/eventBus/IAuditableItemGraphEventBusVertexCreated.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Event bus payload for vertex created.\n */\nexport interface IAuditableItemGraphEventBusVertexCreated {\n\t/**\n\t * The id of the vertex created.\n\t */\n\tid: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphEventBusVertexUpdated.js","sourceRoot":"","sources":["../../../../src/models/eventBus/IAuditableItemGraphEventBusVertexUpdated.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IPatchOperation } from \"@twin.org/core\";\n\n/**\n * Event bus payload for vertex updated.\n */\nexport interface IAuditableItemGraphEventBusVertexUpdated {\n\t/**\n\t * The id of the vertex updated.\n\t */\n\tid: string;\n\n\t/**\n\t * The patches in the changeset.\n\t */\n\tpatches: IPatchOperation[];\n}\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Copyright 2024 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* How deep to verify the signatures.
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const VerifyDepth = {
|
|
8
|
+
/**
|
|
9
|
+
* Do not verify any signatures.
|
|
10
|
+
*/
|
|
11
|
+
None: "none",
|
|
12
|
+
/**
|
|
13
|
+
* Verify only the most recent signature.
|
|
14
|
+
*/
|
|
15
|
+
Current: "current",
|
|
16
|
+
/**
|
|
17
|
+
* Verify all the signatures.
|
|
18
|
+
*/
|
|
19
|
+
All: "all"
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=verifyDepth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verifyDepth.js","sourceRoot":"","sources":["../../../src/models/verifyDepth.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B;;OAEG;IACH,IAAI,EAAE,MAAM;IAEZ;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,GAAG,EAAE,KAAK;CACD,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * How deep to verify the signatures.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const VerifyDepth = {\n\t/**\n\t * Do not verify any signatures.\n\t */\n\tNone: \"none\",\n\n\t/**\n\t * Verify only the most recent signature.\n\t */\n\tCurrent: \"current\",\n\n\t/**\n\t * Verify all the signatures.\n\t */\n\tAll: \"all\"\n} as const;\n\n/**\n * How deep to verify the signatures.\n */\nexport type VerifyDepth = (typeof VerifyDepth)[keyof typeof VerifyDepth];\n"]}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.twindev.org/aig/AuditableItemGraphAlias",
|
|
4
|
+
"description": "Interface describing an alias for a vertex.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"id": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "The id of the element."
|
|
10
|
+
},
|
|
11
|
+
"dateCreated": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "The date/time of when the element was created."
|
|
14
|
+
},
|
|
15
|
+
"dateModified": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "The date/time of when the element was modified."
|
|
18
|
+
},
|
|
19
|
+
"dateDeleted": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "The date/time of when the element was deleted, as we never actually remove items."
|
|
22
|
+
},
|
|
23
|
+
"@context": {
|
|
24
|
+
"anyOf": [
|
|
25
|
+
{
|
|
26
|
+
"type": "string",
|
|
27
|
+
"const": "https://schema.twindev.org/aig/"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"type": "array",
|
|
31
|
+
"minItems": 1,
|
|
32
|
+
"prefixItems": [
|
|
33
|
+
{
|
|
34
|
+
"type": "string",
|
|
35
|
+
"const": "https://schema.twindev.org/aig/"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"items": {
|
|
39
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"description": "JSON-LD Context."
|
|
44
|
+
},
|
|
45
|
+
"type": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"const": "AuditableItemGraphAlias",
|
|
48
|
+
"description": "JSON-LD Type."
|
|
49
|
+
},
|
|
50
|
+
"annotationObject": {
|
|
51
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject",
|
|
52
|
+
"description": "The JSON-LD annotation object for the alias."
|
|
53
|
+
},
|
|
54
|
+
"aliasFormat": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"description": "The format of the id in the alias."
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"required": [
|
|
60
|
+
"@context",
|
|
61
|
+
"id",
|
|
62
|
+
"type"
|
|
63
|
+
],
|
|
64
|
+
"additionalProperties": false
|
|
65
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.twindev.org/aig/AuditableItemGraphChangeset",
|
|
4
|
+
"description": "Interface describing a set of changes to the vertex.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"@context": {
|
|
8
|
+
"type": "array",
|
|
9
|
+
"minItems": 2,
|
|
10
|
+
"description": "JSON-LD Context.",
|
|
11
|
+
"prefixItems": [
|
|
12
|
+
{
|
|
13
|
+
"type": "string",
|
|
14
|
+
"const": "https://schema.twindev.org/aig/"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"type": "string",
|
|
18
|
+
"const": "https://schema.twindev.org/common/"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"items": {
|
|
22
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"type": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"const": "AuditableItemGraphChangeset",
|
|
28
|
+
"description": "JSON-LD Type."
|
|
29
|
+
},
|
|
30
|
+
"id": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "The id of the changeset."
|
|
33
|
+
},
|
|
34
|
+
"dateCreated": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"description": "The date/time of when the changeset was created."
|
|
37
|
+
},
|
|
38
|
+
"userIdentity": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"description": "The user identity that created the changes."
|
|
41
|
+
},
|
|
42
|
+
"patches": {
|
|
43
|
+
"type": "array",
|
|
44
|
+
"items": {
|
|
45
|
+
"$ref": "https://schema.twindev.org/aig/AuditableItemGraphPatchOperation"
|
|
46
|
+
},
|
|
47
|
+
"description": "The patches in the changeset."
|
|
48
|
+
},
|
|
49
|
+
"proofId": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"description": "The immutable proof id which contains the signature for this changeset."
|
|
52
|
+
},
|
|
53
|
+
"verification": {
|
|
54
|
+
"$ref": "https://schema.twindev.org/immutable-proof/ImmutableProofVerification",
|
|
55
|
+
"description": "The verification for the changeset."
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"required": [
|
|
59
|
+
"@context",
|
|
60
|
+
"type",
|
|
61
|
+
"id",
|
|
62
|
+
"dateCreated",
|
|
63
|
+
"patches"
|
|
64
|
+
],
|
|
65
|
+
"additionalProperties": false
|
|
66
|
+
}
|