@3sixty/auditable-item-graph-service 0.0.0-stage → 0.20.0-next.0
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/LICENSE +201 -0
- package/README.md +26 -2
- package/dist/es/auditableItemGraphRoutes.js +1136 -0
- package/dist/es/auditableItemGraphRoutes.js.map +1 -0
- package/dist/es/auditableItemGraphService.js +1913 -0
- package/dist/es/auditableItemGraphService.js.map +1 -0
- package/dist/es/entities/auditableItemGraphAlias.js +70 -0
- package/dist/es/entities/auditableItemGraphAlias.js.map +1 -0
- package/dist/es/entities/auditableItemGraphChangeset.js +79 -0
- package/dist/es/entities/auditableItemGraphChangeset.js.map +1 -0
- package/dist/es/entities/auditableItemGraphEdge.js +70 -0
- package/dist/es/entities/auditableItemGraphEdge.js.map +1 -0
- package/dist/es/entities/auditableItemGraphPatch.js +45 -0
- package/dist/es/entities/auditableItemGraphPatch.js.map +1 -0
- package/dist/es/entities/auditableItemGraphResource.js +54 -0
- package/dist/es/entities/auditableItemGraphResource.js.map +1 -0
- package/dist/es/entities/auditableItemGraphVertex.js +97 -0
- package/dist/es/entities/auditableItemGraphVertex.js.map +1 -0
- package/dist/es/entities/auditableItemGraphVertexIndex.js +95 -0
- package/dist/es/entities/auditableItemGraphVertexIndex.js.map +1 -0
- package/dist/es/entities/auditableItemGraphVertexV0.js +107 -0
- package/dist/es/entities/auditableItemGraphVertexV0.js.map +1 -0
- package/dist/es/entities/auditableItemGraphVertexV1.js +113 -0
- package/dist/es/entities/auditableItemGraphVertexV1.js.map +1 -0
- package/dist/es/index.js +19 -0
- package/dist/es/index.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphServiceConfig.js +4 -0
- package/dist/es/models/IAuditableItemGraphServiceConfig.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphServiceConstructorOptions.js +2 -0
- package/dist/es/models/IAuditableItemGraphServiceConstructorOptions.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphServiceContext.js +4 -0
- package/dist/es/models/IAuditableItemGraphServiceContext.js.map +1 -0
- package/dist/es/restEntryPoints.js +13 -0
- package/dist/es/restEntryPoints.js.map +1 -0
- package/dist/es/schema.js +27 -0
- package/dist/es/schema.js.map +1 -0
- package/dist/es/utils/auditableItemGraphVertexIndexHelper.js +57 -0
- package/dist/es/utils/auditableItemGraphVertexIndexHelper.js.map +1 -0
- package/dist/types/auditableItemGraphRoutes.d.ts +94 -0
- package/dist/types/auditableItemGraphService.d.ts +164 -0
- package/dist/types/entities/auditableItemGraphAlias.d.ts +34 -0
- package/dist/types/entities/auditableItemGraphChangeset.d.ts +34 -0
- package/dist/types/entities/auditableItemGraphEdge.d.ts +34 -0
- package/dist/types/entities/auditableItemGraphPatch.d.ts +21 -0
- package/dist/types/entities/auditableItemGraphResource.d.ts +26 -0
- package/dist/types/entities/auditableItemGraphVertex.d.ts +50 -0
- package/dist/types/entities/auditableItemGraphVertexIndex.d.ts +39 -0
- package/dist/types/entities/auditableItemGraphVertexV0.d.ts +53 -0
- package/dist/types/entities/auditableItemGraphVertexV1.d.ts +58 -0
- package/dist/types/index.d.ts +16 -0
- package/dist/types/models/IAuditableItemGraphServiceConfig.d.ts +9 -0
- package/dist/types/models/IAuditableItemGraphServiceConstructorOptions.d.ts +38 -0
- package/dist/types/models/IAuditableItemGraphServiceContext.d.ts +17 -0
- package/dist/types/restEntryPoints.d.ts +5 -0
- package/dist/types/schema.d.ts +4 -0
- package/dist/types/utils/auditableItemGraphVertexIndexHelper.d.ts +25 -0
- package/docs/changelog.md +0 -0
- package/docs/examples.md +273 -0
- package/docs/open-api/spec.json +2190 -0
- package/docs/reference/classes/AuditableItemGraphAlias.md +69 -0
- package/docs/reference/classes/AuditableItemGraphChangeset.md +69 -0
- package/docs/reference/classes/AuditableItemGraphEdge.md +69 -0
- package/docs/reference/classes/AuditableItemGraphPatch.md +45 -0
- package/docs/reference/classes/AuditableItemGraphResource.md +53 -0
- package/docs/reference/classes/AuditableItemGraphService.md +539 -0
- package/docs/reference/classes/AuditableItemGraphVertex.md +93 -0
- package/docs/reference/classes/AuditableItemGraphVertexIndex.md +75 -0
- package/docs/reference/classes/AuditableItemGraphVertexIndexHelper.md +84 -0
- package/docs/reference/classes/AuditableItemGraphVertexV0.md +101 -0
- package/docs/reference/classes/AuditableItemGraphVertexV1.md +109 -0
- package/docs/reference/functions/auditableItemGraphChangesetGet.md +31 -0
- package/docs/reference/functions/auditableItemGraphChangesetList.md +31 -0
- package/docs/reference/functions/auditableItemGraphCreate.md +37 -0
- package/docs/reference/functions/auditableItemGraphGet.md +31 -0
- package/docs/reference/functions/auditableItemGraphList.md +31 -0
- package/docs/reference/functions/auditableItemGraphRemoveProof.md +31 -0
- package/docs/reference/functions/auditableItemGraphUpdate.md +31 -0
- package/docs/reference/functions/auditableItemGraphUpdatePartial.md +31 -0
- package/docs/reference/functions/auditableItemGraphVersionGet.md +31 -0
- package/docs/reference/functions/auditableItemGraphVersionList.md +31 -0
- package/docs/reference/functions/generateRestRoutesAuditableItemGraph.md +25 -0
- package/docs/reference/functions/initSchema.md +9 -0
- package/docs/reference/index.md +40 -0
- package/docs/reference/interfaces/IAuditableItemGraphServiceConfig.md +11 -0
- package/docs/reference/interfaces/IAuditableItemGraphServiceConstructorOptions.md +83 -0
- package/docs/reference/variables/restEntryPoints.md +5 -0
- package/docs/reference/variables/tagsAuditableItemGraph.md +5 -0
- package/locales/en.json +34 -0
- package/package.json +64 -5
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// Copyright 2024 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
import { entity, property } from "@3sixty/entity";
|
|
4
|
+
/**
|
|
5
|
+
* Class describing the auditable item graph patches.
|
|
6
|
+
*/
|
|
7
|
+
let AuditableItemGraphPatch = class AuditableItemGraphPatch {
|
|
8
|
+
/**
|
|
9
|
+
* The operation for the patch.
|
|
10
|
+
*/
|
|
11
|
+
op;
|
|
12
|
+
/**
|
|
13
|
+
* The path for the patch.
|
|
14
|
+
*/
|
|
15
|
+
path;
|
|
16
|
+
/**
|
|
17
|
+
* The from for the patch.
|
|
18
|
+
*/
|
|
19
|
+
from;
|
|
20
|
+
/**
|
|
21
|
+
* The value for the patch.
|
|
22
|
+
*/
|
|
23
|
+
value;
|
|
24
|
+
};
|
|
25
|
+
__decorate([
|
|
26
|
+
property({ type: "string", maxLength: 10 }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], AuditableItemGraphPatch.prototype, "op", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
property({ type: "string", maxLength: 1024 }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], AuditableItemGraphPatch.prototype, "path", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
property({ type: "string", maxLength: 1024, optional: true }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], AuditableItemGraphPatch.prototype, "from", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
property({ type: "object", optional: true }),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], AuditableItemGraphPatch.prototype, "value", void 0);
|
|
41
|
+
AuditableItemGraphPatch = __decorate([
|
|
42
|
+
entity()
|
|
43
|
+
], AuditableItemGraphPatch);
|
|
44
|
+
export { AuditableItemGraphPatch };
|
|
45
|
+
//# sourceMappingURL=auditableItemGraphPatch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditableItemGraphPatch.js","sourceRoot":"","sources":["../../../src/entities/auditableItemGraphPatch.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAElD;;GAEG;AAEI,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IACnC;;OAEG;IAEI,EAAE,CAA2D;IAEpE;;OAEG;IAEI,IAAI,CAAU;IAErB;;OAEG;IAEI,IAAI,CAAU;IAErB;;OAEG;IAEI,KAAK,CAAW;CACvB,CAAA;AAnBO;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;;mDACwB;AAM7D;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;qDACzB;AAMd;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACzC;AAMd;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACtB;AAvBX,uBAAuB;IADnC,MAAM,EAAE;GACI,uBAAuB,CAwBnC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { entity, property } from \"@3sixty/entity\";\n\n/**\n * Class describing the auditable item graph patches.\n */\n@entity()\nexport class AuditableItemGraphPatch {\n\t/**\n\t * The operation for the patch.\n\t */\n\t@property({ type: \"string\", maxLength: 10 })\n\tpublic op!: \"add\" | \"remove\" | \"replace\" | \"move\" | \"copy\" | \"test\";\n\n\t/**\n\t * The path for the patch.\n\t */\n\t@property({ type: \"string\", maxLength: 1024 })\n\tpublic path!: string;\n\n\t/**\n\t * The from for the patch.\n\t */\n\t@property({ type: \"string\", maxLength: 1024, optional: true })\n\tpublic from?: string;\n\n\t/**\n\t * The value for the patch.\n\t */\n\t@property({ type: \"object\", optional: true })\n\tpublic value?: unknown;\n}\n"]}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// Copyright 2024 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
import { JsonLdTypes } from "@3sixty/data-json-ld";
|
|
4
|
+
import { entity, property } from "@3sixty/entity";
|
|
5
|
+
/**
|
|
6
|
+
* Class describing the auditable item graph vertex resource.
|
|
7
|
+
*/
|
|
8
|
+
let AuditableItemGraphResource = class AuditableItemGraphResource {
|
|
9
|
+
/**
|
|
10
|
+
* The id of the resource.
|
|
11
|
+
*/
|
|
12
|
+
id;
|
|
13
|
+
/**
|
|
14
|
+
* The date/time of when the resource was created.
|
|
15
|
+
*/
|
|
16
|
+
dateCreated;
|
|
17
|
+
/**
|
|
18
|
+
* The date/time of when the resource was last modified.
|
|
19
|
+
*/
|
|
20
|
+
dateModified;
|
|
21
|
+
/**
|
|
22
|
+
* The timestamp of when the resource was deleted, as we never actually remove items.
|
|
23
|
+
*/
|
|
24
|
+
dateDeleted;
|
|
25
|
+
/**
|
|
26
|
+
* Object to associate with the resource as JSON-LD.
|
|
27
|
+
*/
|
|
28
|
+
resourceObject;
|
|
29
|
+
};
|
|
30
|
+
__decorate([
|
|
31
|
+
property({ type: "string", maxLength: 255, optional: true }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], AuditableItemGraphResource.prototype, "id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
property({ type: "string", format: "date-time" }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], AuditableItemGraphResource.prototype, "dateCreated", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
property({ type: "string", format: "date-time", optional: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], AuditableItemGraphResource.prototype, "dateModified", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
property({ type: "string", format: "date-time", optional: true }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], AuditableItemGraphResource.prototype, "dateDeleted", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
property({ type: "object", itemTypeRef: JsonLdTypes.NodeObject, optional: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], AuditableItemGraphResource.prototype, "resourceObject", void 0);
|
|
50
|
+
AuditableItemGraphResource = __decorate([
|
|
51
|
+
entity()
|
|
52
|
+
], AuditableItemGraphResource);
|
|
53
|
+
export { AuditableItemGraphResource };
|
|
54
|
+
//# sourceMappingURL=auditableItemGraphResource.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditableItemGraphResource.js","sourceRoot":"","sources":["../../../src/entities/auditableItemGraphResource.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,WAAW,EAA0B,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAElD;;GAEG;AAEI,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IACtC;;OAEG;IAEI,EAAE,CAAU;IAEnB;;OAEG;IAEI,WAAW,CAAU;IAE5B;;OAEG;IAEI,YAAY,CAAU;IAE7B;;OAEG;IAEI,WAAW,CAAU;IAE5B;;OAEG;IAEI,cAAc,CAAqB;CAC1C,CAAA;AAzBO;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDAC1C;AAMZ;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;;+DACtB;AAMrB;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gEACrC;AAMtB;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+DACtC;AAMrB;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,CAAC,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kEACxC;AA7B9B,0BAA0B;IADtC,MAAM,EAAE;GACI,0BAA0B,CA8BtC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { JsonLdTypes, type IJsonLdNodeObject } from \"@3sixty/data-json-ld\";\nimport { entity, property } from \"@3sixty/entity\";\n\n/**\n * Class describing the auditable item graph vertex resource.\n */\n@entity()\nexport class AuditableItemGraphResource {\n\t/**\n\t * The id of the resource.\n\t */\n\t@property({ type: \"string\", maxLength: 255, optional: true })\n\tpublic id?: string;\n\n\t/**\n\t * The date/time of when the resource was created.\n\t */\n\t@property({ type: \"string\", format: \"date-time\" })\n\tpublic dateCreated!: string;\n\n\t/**\n\t * The date/time of when the resource was last modified.\n\t */\n\t@property({ type: \"string\", format: \"date-time\", optional: true })\n\tpublic dateModified?: string;\n\n\t/**\n\t * The timestamp of when the resource was deleted, as we never actually remove items.\n\t */\n\t@property({ type: \"string\", format: \"date-time\", optional: true })\n\tpublic dateDeleted?: string;\n\n\t/**\n\t * Object to associate with the resource as JSON-LD.\n\t */\n\t@property({ type: \"object\", itemTypeRef: JsonLdTypes.NodeObject, optional: true })\n\tpublic resourceObject?: IJsonLdNodeObject;\n}\n"]}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { JsonLdTypes } from "@3sixty/data-json-ld";
|
|
2
|
+
import { entity, property, SortDirection } from "@3sixty/entity";
|
|
3
|
+
/**
|
|
4
|
+
* Class describing the auditable item graph vertex.
|
|
5
|
+
*/
|
|
6
|
+
let AuditableItemGraphVertex = class AuditableItemGraphVertex {
|
|
7
|
+
/**
|
|
8
|
+
* The id of the vertex.
|
|
9
|
+
*/
|
|
10
|
+
id;
|
|
11
|
+
/**
|
|
12
|
+
* The identity of the organization which controls the vertex.
|
|
13
|
+
*/
|
|
14
|
+
organizationIdentity;
|
|
15
|
+
/**
|
|
16
|
+
* The date/time of when the vertex was created.
|
|
17
|
+
*/
|
|
18
|
+
dateCreated;
|
|
19
|
+
/**
|
|
20
|
+
* The date/time of when the vertex was last modified.
|
|
21
|
+
*/
|
|
22
|
+
dateModified;
|
|
23
|
+
/**
|
|
24
|
+
* How the mutations of the vertex are recorded, when absent the vertex behaves as audited.
|
|
25
|
+
*/
|
|
26
|
+
auditMode;
|
|
27
|
+
/**
|
|
28
|
+
* Object to associate with the vertex as JSON-LD.
|
|
29
|
+
*/
|
|
30
|
+
annotationObject;
|
|
31
|
+
/**
|
|
32
|
+
* Alternative aliases that can be used to identify the vertex.
|
|
33
|
+
*/
|
|
34
|
+
aliases;
|
|
35
|
+
/**
|
|
36
|
+
* The resources attached to the vertex.
|
|
37
|
+
*/
|
|
38
|
+
resources;
|
|
39
|
+
/**
|
|
40
|
+
* Edges connected to the vertex.
|
|
41
|
+
*/
|
|
42
|
+
edges;
|
|
43
|
+
/**
|
|
44
|
+
* The current version of the vertex, incremented on each changeset.
|
|
45
|
+
*/
|
|
46
|
+
version;
|
|
47
|
+
};
|
|
48
|
+
__decorate([
|
|
49
|
+
property({ type: "string", isPrimary: true, maxLength: 255 }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], AuditableItemGraphVertex.prototype, "id", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
property({ type: "string", maxLength: 255 }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], AuditableItemGraphVertex.prototype, "organizationIdentity", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
property({ type: "string", format: "date-time", sortDirection: SortDirection.Descending }),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], AuditableItemGraphVertex.prototype, "dateCreated", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
property({
|
|
62
|
+
type: "string",
|
|
63
|
+
format: "date-time",
|
|
64
|
+
sortDirection: SortDirection.Descending,
|
|
65
|
+
optional: true
|
|
66
|
+
}),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], AuditableItemGraphVertex.prototype, "dateModified", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
property({ type: "string", maxLength: 10, optional: true }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], AuditableItemGraphVertex.prototype, "auditMode", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
property({ type: "object", itemTypeRef: JsonLdTypes.NodeObject, optional: true }),
|
|
75
|
+
__metadata("design:type", Object)
|
|
76
|
+
], AuditableItemGraphVertex.prototype, "annotationObject", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
property({ type: "array", itemType: "string", optional: true }),
|
|
79
|
+
__metadata("design:type", Array)
|
|
80
|
+
], AuditableItemGraphVertex.prototype, "aliases", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
property({ type: "array", itemTypeRef: "AuditableItemGraphResource", optional: true }),
|
|
83
|
+
__metadata("design:type", Array)
|
|
84
|
+
], AuditableItemGraphVertex.prototype, "resources", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
property({ type: "array", itemTypeRef: "AuditableItemGraphEdge", optional: true }),
|
|
87
|
+
__metadata("design:type", Array)
|
|
88
|
+
], AuditableItemGraphVertex.prototype, "edges", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
property({ type: "integer", optional: true }),
|
|
91
|
+
__metadata("design:type", Number)
|
|
92
|
+
], AuditableItemGraphVertex.prototype, "version", void 0);
|
|
93
|
+
AuditableItemGraphVertex = __decorate([
|
|
94
|
+
entity({ version: 2 })
|
|
95
|
+
], AuditableItemGraphVertex);
|
|
96
|
+
export { AuditableItemGraphVertex };
|
|
97
|
+
//# sourceMappingURL=auditableItemGraphVertex.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditableItemGraphVertex.js","sourceRoot":"","sources":["../../../src/entities/auditableItemGraphVertex.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAA0B,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAKjE;;GAEG;AAEI,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IACpC;;OAEG;IAEI,EAAE,CAAU;IAEnB;;OAEG;IAEI,oBAAoB,CAAU;IAErC;;OAEG;IAEI,WAAW,CAAU;IAE5B;;OAEG;IAOI,YAAY,CAAU;IAE7B;;OAEG;IAEI,SAAS,CAA+B;IAE/C;;OAEG;IAEI,gBAAgB,CAAqB;IAE5C;;OAEG;IAEI,OAAO,CAA6B;IAE3C;;OAEG;IAEI,SAAS,CAAgC;IAEhD;;OAEG;IAEI,KAAK,CAA4B;IAExC;;OAEG;IAEI,OAAO,CAAU;CACxB,CAAA;AA5DO;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC;;oDAC3C;AAMZ;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC;;sEACR;AAM9B;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,CAAC,UAAU,EAAE,CAAC;;6DAC/D;AAWrB;IANN,QAAQ,CAAC;QACT,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,WAAW;QACnB,aAAa,EAAE,aAAa,CAAC,UAAU;QACvC,QAAQ,EAAE,IAAI;KACd,CAAC;;8DAC2B;AAMtB;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2DACb;AAMxC;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,CAAC,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kEACtC;AAMrC;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACrB;AAMpC;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,4BAA4B,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2DACvC;AAMzC;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,wBAAwB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDAC3C;AAMjC;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACtB;AAhEZ,wBAAwB;IADpC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;GACV,wBAAwB,CAiEpC","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { AuditableItemGraphAuditMode } from \"@3sixty/auditable-item-graph-models\";\nimport { JsonLdTypes, type IJsonLdNodeObject } from \"@3sixty/data-json-ld\";\nimport { entity, property, SortDirection } from \"@3sixty/entity\";\nimport type { AuditableItemGraphAlias } from \"./auditableItemGraphAlias.js\";\nimport type { AuditableItemGraphEdge } from \"./auditableItemGraphEdge.js\";\nimport type { AuditableItemGraphResource } from \"./auditableItemGraphResource.js\";\n\n/**\n * Class describing the auditable item graph vertex.\n */\n@entity({ version: 2 })\nexport class AuditableItemGraphVertex {\n\t/**\n\t * The id of the vertex.\n\t */\n\t@property({ type: \"string\", isPrimary: true, maxLength: 255 })\n\tpublic id!: string;\n\n\t/**\n\t * The identity of the organization which controls the vertex.\n\t */\n\t@property({ type: \"string\", maxLength: 255 })\n\tpublic organizationIdentity!: string;\n\n\t/**\n\t * The date/time of when the vertex was created.\n\t */\n\t@property({ type: \"string\", format: \"date-time\", sortDirection: SortDirection.Descending })\n\tpublic dateCreated!: string;\n\n\t/**\n\t * The date/time of when the vertex was last modified.\n\t */\n\t@property({\n\t\ttype: \"string\",\n\t\tformat: \"date-time\",\n\t\tsortDirection: SortDirection.Descending,\n\t\toptional: true\n\t})\n\tpublic dateModified?: string;\n\n\t/**\n\t * How the mutations of the vertex are recorded, when absent the vertex behaves as audited.\n\t */\n\t@property({ type: \"string\", maxLength: 10, optional: true })\n\tpublic auditMode?: AuditableItemGraphAuditMode;\n\n\t/**\n\t * Object to associate with the vertex as JSON-LD.\n\t */\n\t@property({ type: \"object\", itemTypeRef: JsonLdTypes.NodeObject, optional: true })\n\tpublic annotationObject?: IJsonLdNodeObject;\n\n\t/**\n\t * Alternative aliases that can be used to identify the vertex.\n\t */\n\t@property({ type: \"array\", itemType: \"string\", optional: true })\n\tpublic aliases?: AuditableItemGraphAlias[];\n\n\t/**\n\t * The resources attached to the vertex.\n\t */\n\t@property({ type: \"array\", itemTypeRef: \"AuditableItemGraphResource\", optional: true })\n\tpublic resources?: AuditableItemGraphResource[];\n\n\t/**\n\t * Edges connected to the vertex.\n\t */\n\t@property({ type: \"array\", itemTypeRef: \"AuditableItemGraphEdge\", optional: true })\n\tpublic edges?: AuditableItemGraphEdge[];\n\n\t/**\n\t * The current version of the vertex, incremented on each changeset.\n\t */\n\t@property({ type: \"integer\", optional: true })\n\tpublic version?: number;\n}\n"]}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
// Copyright 2026 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
import { entity, property, SortDirection } from "@3sixty/entity";
|
|
4
|
+
/**
|
|
5
|
+
* Class describing the auditable item graph vertex index.
|
|
6
|
+
*
|
|
7
|
+
* The composite index is built on a fixed length hash of the value rather than the value itself,
|
|
8
|
+
* so its key stays within the size limit some databases place on an index key however long the
|
|
9
|
+
* value is.
|
|
10
|
+
*/
|
|
11
|
+
let AuditableItemGraphVertexIndex = class AuditableItemGraphVertexIndex {
|
|
12
|
+
/**
|
|
13
|
+
* The id of the index.
|
|
14
|
+
*/
|
|
15
|
+
id;
|
|
16
|
+
/**
|
|
17
|
+
* The id of the vertex this index refers to.
|
|
18
|
+
*/
|
|
19
|
+
vertexId;
|
|
20
|
+
/**
|
|
21
|
+
* Index type.
|
|
22
|
+
*/
|
|
23
|
+
type;
|
|
24
|
+
/**
|
|
25
|
+
* Index value, case folded so lookups do not depend on the column collation.
|
|
26
|
+
*/
|
|
27
|
+
value;
|
|
28
|
+
/**
|
|
29
|
+
* The hash of the value, used for exact lookups.
|
|
30
|
+
*/
|
|
31
|
+
valueHash;
|
|
32
|
+
/**
|
|
33
|
+
* The date/time of when the vertex was created, copied so the index can order and page its
|
|
34
|
+
* own matches without reading the vertex.
|
|
35
|
+
*/
|
|
36
|
+
dateCreated;
|
|
37
|
+
/**
|
|
38
|
+
* The date/time of when the vertex was last modified, copied so a query ordered by the
|
|
39
|
+
* modified date can also be paged from the index.
|
|
40
|
+
*/
|
|
41
|
+
dateModified;
|
|
42
|
+
};
|
|
43
|
+
__decorate([
|
|
44
|
+
property({ type: "string", isPrimary: true, maxLength: 255 }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], AuditableItemGraphVertexIndex.prototype, "id", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
property({ type: "string", maxLength: 255, isSecondary: true }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], AuditableItemGraphVertexIndex.prototype, "vertexId", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
property({
|
|
53
|
+
type: "string",
|
|
54
|
+
maxLength: 32,
|
|
55
|
+
isSecondary: true,
|
|
56
|
+
indexGroup: [{ name: "typeValue", direction: SortDirection.Ascending, index: 0 }]
|
|
57
|
+
}),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], AuditableItemGraphVertexIndex.prototype, "type", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
property({ type: "string", maxLength: 255 }),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], AuditableItemGraphVertexIndex.prototype, "value", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
property({
|
|
66
|
+
type: "string",
|
|
67
|
+
maxLength: 27,
|
|
68
|
+
isSecondary: true,
|
|
69
|
+
indexGroup: [{ name: "typeValue", direction: SortDirection.Ascending, index: 1 }]
|
|
70
|
+
}),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], AuditableItemGraphVertexIndex.prototype, "valueHash", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
property({
|
|
75
|
+
type: "string",
|
|
76
|
+
format: "date-time",
|
|
77
|
+
sortDirection: SortDirection.Descending,
|
|
78
|
+
indexGroup: [{ name: "typeValue", direction: SortDirection.Descending, index: 2 }]
|
|
79
|
+
}),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], AuditableItemGraphVertexIndex.prototype, "dateCreated", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
property({
|
|
84
|
+
type: "string",
|
|
85
|
+
format: "date-time",
|
|
86
|
+
sortDirection: SortDirection.Descending,
|
|
87
|
+
optional: true
|
|
88
|
+
}),
|
|
89
|
+
__metadata("design:type", String)
|
|
90
|
+
], AuditableItemGraphVertexIndex.prototype, "dateModified", void 0);
|
|
91
|
+
AuditableItemGraphVertexIndex = __decorate([
|
|
92
|
+
entity()
|
|
93
|
+
], AuditableItemGraphVertexIndex);
|
|
94
|
+
export { AuditableItemGraphVertexIndex };
|
|
95
|
+
//# sourceMappingURL=auditableItemGraphVertexIndex.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditableItemGraphVertexIndex.js","sourceRoot":"","sources":["../../../src/entities/auditableItemGraphVertexIndex.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEjE;;;;;;GAMG;AAEI,IAAM,6BAA6B,GAAnC,MAAM,6BAA6B;IACzC;;OAEG;IAEI,EAAE,CAAU;IAEnB;;OAEG;IAEI,QAAQ,CAAU;IAEzB;;OAEG;IAOI,IAAI,CAAU;IAErB;;OAEG;IAEI,KAAK,CAAU;IAEtB;;OAEG;IAOI,SAAS,CAAU;IAE1B;;;OAGG;IAOI,WAAW,CAAU;IAE5B;;;OAGG;IAOI,YAAY,CAAU;CAC7B,CAAA;AA3DO;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC;;yDAC3C;AAMZ;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;;+DACvC;AAWlB;IANN,QAAQ,CAAC;QACT,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE,EAAE;QACb,WAAW,EAAE,IAAI;QACjB,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,CAAC,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;KACjF,CAAC;;2DACmB;AAMd;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC;;4DACvB;AAWf;IANN,QAAQ,CAAC;QACT,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE,EAAE;QACb,WAAW,EAAE,IAAI;QACjB,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,CAAC,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;KACjF,CAAC;;gEACwB;AAYnB;IANN,QAAQ,CAAC;QACT,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,WAAW;QACnB,aAAa,EAAE,aAAa,CAAC,UAAU;QACvC,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,CAAC,UAAU,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;KAClF,CAAC;;kEAC0B;AAYrB;IANN,QAAQ,CAAC;QACT,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,WAAW;QACnB,aAAa,EAAE,aAAa,CAAC,UAAU;QACvC,QAAQ,EAAE,IAAI;KACd,CAAC;;mEAC2B;AA/DjB,6BAA6B;IADzC,MAAM,EAAE;GACI,6BAA6B,CAgEzC","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { entity, property, SortDirection } from \"@3sixty/entity\";\n\n/**\n * Class describing the auditable item graph vertex index.\n *\n * The composite index is built on a fixed length hash of the value rather than the value itself,\n * so its key stays within the size limit some databases place on an index key however long the\n * value is.\n */\n@entity()\nexport class AuditableItemGraphVertexIndex {\n\t/**\n\t * The id of the index.\n\t */\n\t@property({ type: \"string\", isPrimary: true, maxLength: 255 })\n\tpublic id!: string;\n\n\t/**\n\t * The id of the vertex this index refers to.\n\t */\n\t@property({ type: \"string\", maxLength: 255, isSecondary: true })\n\tpublic vertexId!: string;\n\n\t/**\n\t * Index type.\n\t */\n\t@property({\n\t\ttype: \"string\",\n\t\tmaxLength: 32,\n\t\tisSecondary: true,\n\t\tindexGroup: [{ name: \"typeValue\", direction: SortDirection.Ascending, index: 0 }]\n\t})\n\tpublic type!: string;\n\n\t/**\n\t * Index value, case folded so lookups do not depend on the column collation.\n\t */\n\t@property({ type: \"string\", maxLength: 255 })\n\tpublic value!: string;\n\n\t/**\n\t * The hash of the value, used for exact lookups.\n\t */\n\t@property({\n\t\ttype: \"string\",\n\t\tmaxLength: 27,\n\t\tisSecondary: true,\n\t\tindexGroup: [{ name: \"typeValue\", direction: SortDirection.Ascending, index: 1 }]\n\t})\n\tpublic valueHash!: string;\n\n\t/**\n\t * The date/time of when the vertex was created, copied so the index can order and page its\n\t * own matches without reading the vertex.\n\t */\n\t@property({\n\t\ttype: \"string\",\n\t\tformat: \"date-time\",\n\t\tsortDirection: SortDirection.Descending,\n\t\tindexGroup: [{ name: \"typeValue\", direction: SortDirection.Descending, index: 2 }]\n\t})\n\tpublic dateCreated!: string;\n\n\t/**\n\t * The date/time of when the vertex was last modified, copied so a query ordered by the\n\t * modified date can also be paged from the index.\n\t */\n\t@property({\n\t\ttype: \"string\",\n\t\tformat: \"date-time\",\n\t\tsortDirection: SortDirection.Descending,\n\t\toptional: true\n\t})\n\tpublic dateModified?: string;\n}\n"]}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
// Copyright 2026 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
import { JsonLdTypes } from "@3sixty/data-json-ld";
|
|
4
|
+
import { entity, property, SortDirection } from "@3sixty/entity";
|
|
5
|
+
/**
|
|
6
|
+
* Class describing the auditable item graph vertex, version 0.
|
|
7
|
+
*/
|
|
8
|
+
let AuditableItemGraphVertexV0 = class AuditableItemGraphVertexV0 {
|
|
9
|
+
/**
|
|
10
|
+
* The id of the vertex.
|
|
11
|
+
*/
|
|
12
|
+
id;
|
|
13
|
+
/**
|
|
14
|
+
* The identity of the organization which controls the vertex.
|
|
15
|
+
*/
|
|
16
|
+
organizationIdentity;
|
|
17
|
+
/**
|
|
18
|
+
* The date/time of when the vertex was created.
|
|
19
|
+
*/
|
|
20
|
+
dateCreated;
|
|
21
|
+
/**
|
|
22
|
+
* The date/time of when the vertex was last modified.
|
|
23
|
+
*/
|
|
24
|
+
dateModified;
|
|
25
|
+
/**
|
|
26
|
+
* Combined alias index for the vertex used for querying.
|
|
27
|
+
*/
|
|
28
|
+
aliasIndex;
|
|
29
|
+
/**
|
|
30
|
+
* Combined resource type index for the vertex used for querying.
|
|
31
|
+
*/
|
|
32
|
+
resourceTypeIndex;
|
|
33
|
+
/**
|
|
34
|
+
* Object to associate with the vertex as JSON-LD.
|
|
35
|
+
*/
|
|
36
|
+
annotationObject;
|
|
37
|
+
/**
|
|
38
|
+
* Alternative aliases that can be used to identify the vertex.
|
|
39
|
+
*/
|
|
40
|
+
aliases;
|
|
41
|
+
/**
|
|
42
|
+
* The resources attached to the vertex.
|
|
43
|
+
*/
|
|
44
|
+
resources;
|
|
45
|
+
/**
|
|
46
|
+
* Edges connected to the vertex.
|
|
47
|
+
*/
|
|
48
|
+
edges;
|
|
49
|
+
/**
|
|
50
|
+
* The current version of the vertex, incremented on each changeset.
|
|
51
|
+
*/
|
|
52
|
+
version;
|
|
53
|
+
};
|
|
54
|
+
__decorate([
|
|
55
|
+
property({ type: "string", isPrimary: true }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], AuditableItemGraphVertexV0.prototype, "id", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
property({ type: "string" }),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], AuditableItemGraphVertexV0.prototype, "organizationIdentity", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
property({ type: "string", format: "date-time", sortDirection: SortDirection.Descending }),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], AuditableItemGraphVertexV0.prototype, "dateCreated", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
property({
|
|
68
|
+
type: "string",
|
|
69
|
+
format: "date-time",
|
|
70
|
+
sortDirection: SortDirection.Descending,
|
|
71
|
+
optional: true
|
|
72
|
+
}),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], AuditableItemGraphVertexV0.prototype, "dateModified", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
property({ type: "string", isSecondary: true, optional: true }),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], AuditableItemGraphVertexV0.prototype, "aliasIndex", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
property({ type: "string", isSecondary: true, optional: true }),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], AuditableItemGraphVertexV0.prototype, "resourceTypeIndex", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
property({ type: "object", itemTypeRef: JsonLdTypes.NodeObject, optional: true }),
|
|
85
|
+
__metadata("design:type", Object)
|
|
86
|
+
], AuditableItemGraphVertexV0.prototype, "annotationObject", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
property({ type: "array", itemType: "string", optional: true }),
|
|
89
|
+
__metadata("design:type", Array)
|
|
90
|
+
], AuditableItemGraphVertexV0.prototype, "aliases", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
property({ type: "array", itemTypeRef: "AuditableItemGraphResource", optional: true }),
|
|
93
|
+
__metadata("design:type", Array)
|
|
94
|
+
], AuditableItemGraphVertexV0.prototype, "resources", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
property({ type: "array", itemTypeRef: "AuditableItemGraphEdge", optional: true }),
|
|
97
|
+
__metadata("design:type", Array)
|
|
98
|
+
], AuditableItemGraphVertexV0.prototype, "edges", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
property({ type: "integer", optional: true }),
|
|
101
|
+
__metadata("design:type", Number)
|
|
102
|
+
], AuditableItemGraphVertexV0.prototype, "version", void 0);
|
|
103
|
+
AuditableItemGraphVertexV0 = __decorate([
|
|
104
|
+
entity({ version: 0 })
|
|
105
|
+
], AuditableItemGraphVertexV0);
|
|
106
|
+
export { AuditableItemGraphVertexV0 };
|
|
107
|
+
//# sourceMappingURL=auditableItemGraphVertexV0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditableItemGraphVertexV0.js","sourceRoot":"","sources":["../../../src/entities/auditableItemGraphVertexV0.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,WAAW,EAA0B,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAKjE;;GAEG;AAEI,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IACtC;;OAEG;IAEI,EAAE,CAAU;IAEnB;;OAEG;IAEI,oBAAoB,CAAU;IAErC;;OAEG;IAEI,WAAW,CAAU;IAE5B;;OAEG;IAOI,YAAY,CAAU;IAE7B;;OAEG;IAEI,UAAU,CAAU;IAE3B;;OAEG;IAEI,iBAAiB,CAAU;IAElC;;OAEG;IAEI,gBAAgB,CAAqB;IAE5C;;OAEG;IAEI,OAAO,CAA6B;IAE3C;;OAEG;IAEI,SAAS,CAAgC;IAEhD;;OAEG;IAEI,KAAK,CAA4B;IAExC;;OAEG;IAEI,OAAO,CAAU;CACxB,CAAA;AAlEO;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;sDAC3B;AAMZ;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;;wEACQ;AAM9B;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,CAAC,UAAU,EAAE,CAAC;;+DAC/D;AAWrB;IANN,QAAQ,CAAC;QACT,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,WAAW;QACnB,aAAa,EAAE,aAAa,CAAC,UAAU;QACvC,QAAQ,EAAE,IAAI;KACd,CAAC;;gEAC2B;AAMtB;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8DACrC;AAMpB;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qEAC9B;AAM3B;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,CAAC,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oEACtC;AAMrC;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2DACrB;AAMpC;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,4BAA4B,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6DACvC;AAMzC;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,wBAAwB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDAC3C;AAMjC;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2DACtB;AAtEZ,0BAA0B;IADtC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;GACV,0BAA0B,CAuEtC","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { JsonLdTypes, type IJsonLdNodeObject } from \"@3sixty/data-json-ld\";\nimport { entity, property, SortDirection } from \"@3sixty/entity\";\nimport type { AuditableItemGraphAlias } from \"./auditableItemGraphAlias.js\";\nimport type { AuditableItemGraphEdge } from \"./auditableItemGraphEdge.js\";\nimport type { AuditableItemGraphResource } from \"./auditableItemGraphResource.js\";\n\n/**\n * Class describing the auditable item graph vertex, version 0.\n */\n@entity({ version: 0 })\nexport class AuditableItemGraphVertexV0 {\n\t/**\n\t * The id of the vertex.\n\t */\n\t@property({ type: \"string\", isPrimary: true })\n\tpublic id!: string;\n\n\t/**\n\t * The identity of the organization which controls the vertex.\n\t */\n\t@property({ type: \"string\" })\n\tpublic organizationIdentity!: string;\n\n\t/**\n\t * The date/time of when the vertex was created.\n\t */\n\t@property({ type: \"string\", format: \"date-time\", sortDirection: SortDirection.Descending })\n\tpublic dateCreated!: string;\n\n\t/**\n\t * The date/time of when the vertex was last modified.\n\t */\n\t@property({\n\t\ttype: \"string\",\n\t\tformat: \"date-time\",\n\t\tsortDirection: SortDirection.Descending,\n\t\toptional: true\n\t})\n\tpublic dateModified?: string;\n\n\t/**\n\t * Combined alias index for the vertex used for querying.\n\t */\n\t@property({ type: \"string\", isSecondary: true, optional: true })\n\tpublic aliasIndex?: string;\n\n\t/**\n\t * Combined resource type index for the vertex used for querying.\n\t */\n\t@property({ type: \"string\", isSecondary: true, optional: true })\n\tpublic resourceTypeIndex?: string;\n\n\t/**\n\t * Object to associate with the vertex as JSON-LD.\n\t */\n\t@property({ type: \"object\", itemTypeRef: JsonLdTypes.NodeObject, optional: true })\n\tpublic annotationObject?: IJsonLdNodeObject;\n\n\t/**\n\t * Alternative aliases that can be used to identify the vertex.\n\t */\n\t@property({ type: \"array\", itemType: \"string\", optional: true })\n\tpublic aliases?: AuditableItemGraphAlias[];\n\n\t/**\n\t * The resources attached to the vertex.\n\t */\n\t@property({ type: \"array\", itemTypeRef: \"AuditableItemGraphResource\", optional: true })\n\tpublic resources?: AuditableItemGraphResource[];\n\n\t/**\n\t * Edges connected to the vertex.\n\t */\n\t@property({ type: \"array\", itemTypeRef: \"AuditableItemGraphEdge\", optional: true })\n\tpublic edges?: AuditableItemGraphEdge[];\n\n\t/**\n\t * The current version of the vertex, incremented on each changeset.\n\t */\n\t@property({ type: \"integer\", optional: true })\n\tpublic version?: number;\n}\n"]}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { JsonLdTypes } from "@3sixty/data-json-ld";
|
|
2
|
+
import { entity, property, SortDirection } from "@3sixty/entity";
|
|
3
|
+
/**
|
|
4
|
+
* Class describing the auditable item graph vertex.
|
|
5
|
+
*/
|
|
6
|
+
let AuditableItemGraphVertexV1 = class AuditableItemGraphVertexV1 {
|
|
7
|
+
/**
|
|
8
|
+
* The id of the vertex.
|
|
9
|
+
*/
|
|
10
|
+
id;
|
|
11
|
+
/**
|
|
12
|
+
* The identity of the organization which controls the vertex.
|
|
13
|
+
*/
|
|
14
|
+
organizationIdentity;
|
|
15
|
+
/**
|
|
16
|
+
* The date/time of when the vertex was created.
|
|
17
|
+
*/
|
|
18
|
+
dateCreated;
|
|
19
|
+
/**
|
|
20
|
+
* The date/time of when the vertex was last modified.
|
|
21
|
+
*/
|
|
22
|
+
dateModified;
|
|
23
|
+
/**
|
|
24
|
+
* How the mutations of the vertex are recorded, when absent the vertex behaves as audited.
|
|
25
|
+
*/
|
|
26
|
+
auditMode;
|
|
27
|
+
/**
|
|
28
|
+
* Combined alias index for the vertex used for querying.
|
|
29
|
+
*/
|
|
30
|
+
aliasIndex;
|
|
31
|
+
/**
|
|
32
|
+
* Combined resource type index for the vertex used for querying.
|
|
33
|
+
*/
|
|
34
|
+
resourceTypeIndex;
|
|
35
|
+
/**
|
|
36
|
+
* Object to associate with the vertex as JSON-LD.
|
|
37
|
+
*/
|
|
38
|
+
annotationObject;
|
|
39
|
+
/**
|
|
40
|
+
* Alternative aliases that can be used to identify the vertex.
|
|
41
|
+
*/
|
|
42
|
+
aliases;
|
|
43
|
+
/**
|
|
44
|
+
* The resources attached to the vertex.
|
|
45
|
+
*/
|
|
46
|
+
resources;
|
|
47
|
+
/**
|
|
48
|
+
* Edges connected to the vertex.
|
|
49
|
+
*/
|
|
50
|
+
edges;
|
|
51
|
+
/**
|
|
52
|
+
* The current version of the vertex, incremented on each changeset.
|
|
53
|
+
*/
|
|
54
|
+
version;
|
|
55
|
+
};
|
|
56
|
+
__decorate([
|
|
57
|
+
property({ type: "string", isPrimary: true }),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], AuditableItemGraphVertexV1.prototype, "id", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
property({ type: "string" }),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], AuditableItemGraphVertexV1.prototype, "organizationIdentity", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
property({ type: "string", format: "date-time", sortDirection: SortDirection.Descending }),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], AuditableItemGraphVertexV1.prototype, "dateCreated", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
property({
|
|
70
|
+
type: "string",
|
|
71
|
+
format: "date-time",
|
|
72
|
+
sortDirection: SortDirection.Descending,
|
|
73
|
+
optional: true
|
|
74
|
+
}),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], AuditableItemGraphVertexV1.prototype, "dateModified", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
property({ type: "string", optional: true }),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], AuditableItemGraphVertexV1.prototype, "auditMode", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
property({ type: "string", isSecondary: true, optional: true }),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], AuditableItemGraphVertexV1.prototype, "aliasIndex", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
property({ type: "string", isSecondary: true, optional: true }),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], AuditableItemGraphVertexV1.prototype, "resourceTypeIndex", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
property({ type: "object", itemTypeRef: JsonLdTypes.NodeObject, optional: true }),
|
|
91
|
+
__metadata("design:type", Object)
|
|
92
|
+
], AuditableItemGraphVertexV1.prototype, "annotationObject", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
property({ type: "array", itemType: "string", optional: true }),
|
|
95
|
+
__metadata("design:type", Array)
|
|
96
|
+
], AuditableItemGraphVertexV1.prototype, "aliases", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
property({ type: "array", itemTypeRef: "AuditableItemGraphResource", optional: true }),
|
|
99
|
+
__metadata("design:type", Array)
|
|
100
|
+
], AuditableItemGraphVertexV1.prototype, "resources", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
property({ type: "array", itemTypeRef: "AuditableItemGraphEdge", optional: true }),
|
|
103
|
+
__metadata("design:type", Array)
|
|
104
|
+
], AuditableItemGraphVertexV1.prototype, "edges", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
property({ type: "integer", optional: true }),
|
|
107
|
+
__metadata("design:type", Number)
|
|
108
|
+
], AuditableItemGraphVertexV1.prototype, "version", void 0);
|
|
109
|
+
AuditableItemGraphVertexV1 = __decorate([
|
|
110
|
+
entity({ version: 1 })
|
|
111
|
+
], AuditableItemGraphVertexV1);
|
|
112
|
+
export { AuditableItemGraphVertexV1 };
|
|
113
|
+
//# sourceMappingURL=auditableItemGraphVertexV1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditableItemGraphVertexV1.js","sourceRoot":"","sources":["../../../src/entities/auditableItemGraphVertexV1.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAA0B,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAKjE;;GAEG;AAEI,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IACtC;;OAEG;IAEI,EAAE,CAAU;IAEnB;;OAEG;IAEI,oBAAoB,CAAU;IAErC;;OAEG;IAEI,WAAW,CAAU;IAE5B;;OAEG;IAOI,YAAY,CAAU;IAE7B;;OAEG;IAEI,SAAS,CAA+B;IAE/C;;OAEG;IAEI,UAAU,CAAU;IAE3B;;OAEG;IAEI,iBAAiB,CAAU;IAElC;;OAEG;IAEI,gBAAgB,CAAqB;IAE5C;;OAEG;IAEI,OAAO,CAA6B;IAE3C;;OAEG;IAEI,SAAS,CAAgC;IAEhD;;OAEG;IAEI,KAAK,CAA4B;IAExC;;OAEG;IAEI,OAAO,CAAU;CACxB,CAAA;AAxEO;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;sDAC3B;AAMZ;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;;wEACQ;AAM9B;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,CAAC,UAAU,EAAE,CAAC;;+DAC/D;AAWrB;IANN,QAAQ,CAAC;QACT,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,WAAW;QACnB,aAAa,EAAE,aAAa,CAAC,UAAU;QACvC,QAAQ,EAAE,IAAI;KACd,CAAC;;gEAC2B;AAMtB;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6DACE;AAMxC;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8DACrC;AAMpB;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qEAC9B;AAM3B;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,CAAC,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oEACtC;AAMrC;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2DACrB;AAMpC;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,4BAA4B,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6DACvC;AAMzC;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,wBAAwB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDAC3C;AAMjC;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2DACtB;AA5EZ,0BAA0B;IADtC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;GACV,0BAA0B,CA6EtC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { AuditableItemGraphAuditMode } from \"@3sixty/auditable-item-graph-models\";\nimport { JsonLdTypes, type IJsonLdNodeObject } from \"@3sixty/data-json-ld\";\nimport { entity, property, SortDirection } from \"@3sixty/entity\";\nimport type { AuditableItemGraphAlias } from \"./auditableItemGraphAlias.js\";\nimport type { AuditableItemGraphEdge } from \"./auditableItemGraphEdge.js\";\nimport type { AuditableItemGraphResource } from \"./auditableItemGraphResource.js\";\n\n/**\n * Class describing the auditable item graph vertex.\n */\n@entity({ version: 1 })\nexport class AuditableItemGraphVertexV1 {\n\t/**\n\t * The id of the vertex.\n\t */\n\t@property({ type: \"string\", isPrimary: true })\n\tpublic id!: string;\n\n\t/**\n\t * The identity of the organization which controls the vertex.\n\t */\n\t@property({ type: \"string\" })\n\tpublic organizationIdentity!: string;\n\n\t/**\n\t * The date/time of when the vertex was created.\n\t */\n\t@property({ type: \"string\", format: \"date-time\", sortDirection: SortDirection.Descending })\n\tpublic dateCreated!: string;\n\n\t/**\n\t * The date/time of when the vertex was last modified.\n\t */\n\t@property({\n\t\ttype: \"string\",\n\t\tformat: \"date-time\",\n\t\tsortDirection: SortDirection.Descending,\n\t\toptional: true\n\t})\n\tpublic dateModified?: string;\n\n\t/**\n\t * How the mutations of the vertex are recorded, when absent the vertex behaves as audited.\n\t */\n\t@property({ type: \"string\", optional: true })\n\tpublic auditMode?: AuditableItemGraphAuditMode;\n\n\t/**\n\t * Combined alias index for the vertex used for querying.\n\t */\n\t@property({ type: \"string\", isSecondary: true, optional: true })\n\tpublic aliasIndex?: string;\n\n\t/**\n\t * Combined resource type index for the vertex used for querying.\n\t */\n\t@property({ type: \"string\", isSecondary: true, optional: true })\n\tpublic resourceTypeIndex?: string;\n\n\t/**\n\t * Object to associate with the vertex as JSON-LD.\n\t */\n\t@property({ type: \"object\", itemTypeRef: JsonLdTypes.NodeObject, optional: true })\n\tpublic annotationObject?: IJsonLdNodeObject;\n\n\t/**\n\t * Alternative aliases that can be used to identify the vertex.\n\t */\n\t@property({ type: \"array\", itemType: \"string\", optional: true })\n\tpublic aliases?: AuditableItemGraphAlias[];\n\n\t/**\n\t * The resources attached to the vertex.\n\t */\n\t@property({ type: \"array\", itemTypeRef: \"AuditableItemGraphResource\", optional: true })\n\tpublic resources?: AuditableItemGraphResource[];\n\n\t/**\n\t * Edges connected to the vertex.\n\t */\n\t@property({ type: \"array\", itemTypeRef: \"AuditableItemGraphEdge\", optional: true })\n\tpublic edges?: AuditableItemGraphEdge[];\n\n\t/**\n\t * The current version of the vertex, incremented on each changeset.\n\t */\n\t@property({ type: \"integer\", optional: true })\n\tpublic version?: number;\n}\n"]}
|
package/dist/es/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Copyright 2024 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
export * from "./auditableItemGraphRoutes.js";
|
|
4
|
+
export * from "./auditableItemGraphService.js";
|
|
5
|
+
export * from "./entities/auditableItemGraphAlias.js";
|
|
6
|
+
export * from "./entities/auditableItemGraphChangeset.js";
|
|
7
|
+
export * from "./entities/auditableItemGraphEdge.js";
|
|
8
|
+
export * from "./entities/auditableItemGraphPatch.js";
|
|
9
|
+
export * from "./entities/auditableItemGraphResource.js";
|
|
10
|
+
export * from "./entities/auditableItemGraphVertex.js";
|
|
11
|
+
export * from "./entities/auditableItemGraphVertexIndex.js";
|
|
12
|
+
export * from "./entities/auditableItemGraphVertexV0.js";
|
|
13
|
+
export * from "./entities/auditableItemGraphVertexV1.js";
|
|
14
|
+
export * from "./models/IAuditableItemGraphServiceConfig.js";
|
|
15
|
+
export * from "./models/IAuditableItemGraphServiceConstructorOptions.js";
|
|
16
|
+
export * from "./restEntryPoints.js";
|
|
17
|
+
export * from "./schema.js";
|
|
18
|
+
export * from "./utils/auditableItemGraphVertexIndexHelper.js";
|
|
19
|
+
//# 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,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uCAAuC,CAAC;AACtD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,sCAAsC,CAAC;AACrD,cAAc,uCAAuC,CAAC;AACtD,cAAc,0CAA0C,CAAC;AACzD,cAAc,wCAAwC,CAAC;AACvD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,0CAA0C,CAAC;AACzD,cAAc,0CAA0C,CAAC;AACzD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,0DAA0D,CAAC;AACzE,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,gDAAgD,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./auditableItemGraphRoutes.js\";\nexport * from \"./auditableItemGraphService.js\";\nexport * from \"./entities/auditableItemGraphAlias.js\";\nexport * from \"./entities/auditableItemGraphChangeset.js\";\nexport * from \"./entities/auditableItemGraphEdge.js\";\nexport * from \"./entities/auditableItemGraphPatch.js\";\nexport * from \"./entities/auditableItemGraphResource.js\";\nexport * from \"./entities/auditableItemGraphVertex.js\";\nexport * from \"./entities/auditableItemGraphVertexIndex.js\";\nexport * from \"./entities/auditableItemGraphVertexV0.js\";\nexport * from \"./entities/auditableItemGraphVertexV1.js\";\nexport * from \"./models/IAuditableItemGraphServiceConfig.js\";\nexport * from \"./models/IAuditableItemGraphServiceConstructorOptions.js\";\nexport * from \"./restEntryPoints.js\";\nexport * from \"./schema.js\";\nexport * from \"./utils/auditableItemGraphVertexIndexHelper.js\";\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphServiceConfig.js","sourceRoot":"","sources":["../../../src/models/IAuditableItemGraphServiceConfig.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Configuration for the auditable item graph service.\n */\nexport interface IAuditableItemGraphServiceConfig {\n\t/**\n\t * Timeout in milliseconds for acquiring a mutex lock.\n\t */\n\tmutexTimeoutMs?: number;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphServiceConstructorOptions.js","sourceRoot":"","sources":["../../../src/models/IAuditableItemGraphServiceConstructorOptions.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IAuditableItemGraphServiceConfig } from \"./IAuditableItemGraphServiceConfig.js\";\n\n/**\n * Options for the constructor of the auditable item graph service.\n */\nexport interface IAuditableItemGraphServiceConstructorOptions {\n\t/**\n\t * The immutable proof component type.\n\t * @default immutable-proof\n\t */\n\timmutableProofComponentType?: string;\n\n\t/**\n\t * The entity storage for vertices.\n\t * @default auditable-item-graph-vertex\n\t */\n\tvertexEntityStorageType?: string;\n\n\t/**\n\t * The entity storage for vertex indices.\n\t * @default auditable-item-graph-vertex-index\n\t */\n\tvertexIndexEntityStorageType?: string;\n\n\t/**\n\t * The entity storage for changesets.\n\t * @default auditable-item-graph-changeset\n\t */\n\tchangesetEntityStorageType?: string;\n\n\t/**\n\t * The event bus component type, defaults to no event bus.\n\t */\n\teventBusComponentType?: string;\n\n\t/**\n\t * The component type for the optional telemetry component used for event metrics, defaults to no telemetry.\n\t */\n\ttelemetryComponentType?: string;\n\n\t/**\n\t * The configuration for the service.\n\t */\n\tconfig?: IAuditableItemGraphServiceConfig;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphServiceContext.js","sourceRoot":"","sources":["../../../src/models/IAuditableItemGraphServiceContext.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Context for the auditable item graph service.\n */\nexport interface IAuditableItemGraphServiceContext {\n\t/**\n\t * The current date/time.\n\t */\n\tnow: string;\n\n\t/**\n\t * The organization identity for the operation.\n\t */\n\torganizationIdentity: string;\n\n\t/**\n\t * The user identity for the operation.\n\t */\n\tuserIdentity?: string;\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { generateRestRoutesAuditableItemGraph, tagsAuditableItemGraph } from "./auditableItemGraphRoutes.js";
|
|
2
|
+
/**
|
|
3
|
+
* The REST entry points for the auditable item graph service.
|
|
4
|
+
*/
|
|
5
|
+
export const restEntryPoints = [
|
|
6
|
+
{
|
|
7
|
+
name: "auditable-item-graph",
|
|
8
|
+
defaultBaseRoute: "auditable-item-graph",
|
|
9
|
+
tags: tagsAuditableItemGraph,
|
|
10
|
+
generateRoutes: generateRestRoutesAuditableItemGraph
|
|
11
|
+
}
|
|
12
|
+
];
|
|
13
|
+
//# sourceMappingURL=restEntryPoints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restEntryPoints.js","sourceRoot":"","sources":["../../src/restEntryPoints.ts"],"names":[],"mappings":"AAGA,OAAO,EACN,oCAAoC,EACpC,sBAAsB,EACtB,MAAM,+BAA+B,CAAC;AAEvC;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAA2B;IACtD;QACC,IAAI,EAAE,sBAAsB;QAC5B,gBAAgB,EAAE,sBAAsB;QACxC,IAAI,EAAE,sBAAsB;QAC5B,cAAc,EAAE,oCAAoC;KACpD;CACD,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IRestRouteEntryPoint } from \"@3sixty/api-models\";\nimport {\n\tgenerateRestRoutesAuditableItemGraph,\n\ttagsAuditableItemGraph\n} from \"./auditableItemGraphRoutes.js\";\n\n/**\n * The REST entry points for the auditable item graph service.\n */\nexport const restEntryPoints: IRestRouteEntryPoint[] = [\n\t{\n\t\tname: \"auditable-item-graph\",\n\t\tdefaultBaseRoute: \"auditable-item-graph\",\n\t\ttags: tagsAuditableItemGraph,\n\t\tgenerateRoutes: generateRestRoutesAuditableItemGraph\n\t}\n];\n"]}
|