@twin.org/auditable-item-graph-models 0.0.1-next.27 → 0.0.1-next.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +18 -8
- package/dist/esm/index.mjs +18 -9
- package/dist/types/index.d.ts +1 -0
- package/dist/types/models/IAuditableItemGraphAlias.d.ts +2 -1
- package/dist/types/models/IAuditableItemGraphChangeset.d.ts +3 -2
- package/dist/types/models/IAuditableItemGraphEdge.d.ts +2 -1
- package/dist/types/models/IAuditableItemGraphPatchOperation.d.ts +2 -1
- package/dist/types/models/IAuditableItemGraphResource.d.ts +2 -1
- package/dist/types/models/IAuditableItemGraphVertex.d.ts +3 -2
- package/dist/types/models/IAuditableItemGraphVertexList.d.ts +2 -1
- package/dist/types/models/auditableItemGraphContexts.d.ts +17 -0
- package/dist/types/models/auditableItemGraphTypes.d.ts +0 -8
- package/docs/changelog.md +1 -1
- package/docs/reference/index.md +2 -0
- package/docs/reference/type-aliases/AuditableItemGraphContexts.md +5 -0
- package/docs/reference/variables/AuditableItemGraphContexts.md +19 -0
- package/docs/reference/variables/AuditableItemGraphTypes.md +0 -12
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -9,14 +9,6 @@ var dataCore = require('@twin.org/data-core');
|
|
|
9
9
|
*/
|
|
10
10
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
11
11
|
const AuditableItemGraphTypes = {
|
|
12
|
-
/**
|
|
13
|
-
* The context root for the auditable item graph types.
|
|
14
|
-
*/
|
|
15
|
-
ContextRoot: "https://schema.twindev.org/aig/",
|
|
16
|
-
/**
|
|
17
|
-
* The context root for the common types.
|
|
18
|
-
*/
|
|
19
|
-
ContextRootCommon: "https://schema.twindev.org/common/",
|
|
20
12
|
/**
|
|
21
13
|
* Represents auditable item graph vertex.
|
|
22
14
|
*/
|
|
@@ -591,6 +583,23 @@ class AuditableItemGraphDataTypes {
|
|
|
591
583
|
}
|
|
592
584
|
}
|
|
593
585
|
|
|
586
|
+
// Copyright 2024 IOTA Stiftung.
|
|
587
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
588
|
+
/**
|
|
589
|
+
* The contexts of auditable item graph data.
|
|
590
|
+
*/
|
|
591
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
592
|
+
const AuditableItemGraphContexts = {
|
|
593
|
+
/**
|
|
594
|
+
* The context root for the auditable item graph types.
|
|
595
|
+
*/
|
|
596
|
+
ContextRoot: "https://schema.twindev.org/aig/",
|
|
597
|
+
/**
|
|
598
|
+
* The context root for the common types.
|
|
599
|
+
*/
|
|
600
|
+
ContextRootCommon: "https://schema.twindev.org/common/"
|
|
601
|
+
};
|
|
602
|
+
|
|
594
603
|
// Copyright 2024 IOTA Stiftung.
|
|
595
604
|
// SPDX-License-Identifier: Apache-2.0.
|
|
596
605
|
/**
|
|
@@ -629,6 +638,7 @@ const VerifyDepth = {
|
|
|
629
638
|
All: "all"
|
|
630
639
|
};
|
|
631
640
|
|
|
641
|
+
exports.AuditableItemGraphContexts = AuditableItemGraphContexts;
|
|
632
642
|
exports.AuditableItemGraphDataTypes = AuditableItemGraphDataTypes;
|
|
633
643
|
exports.AuditableItemGraphTopics = AuditableItemGraphTopics;
|
|
634
644
|
exports.AuditableItemGraphTypes = AuditableItemGraphTypes;
|
package/dist/esm/index.mjs
CHANGED
|
@@ -7,14 +7,6 @@ import { DataTypeHandlerFactory } from '@twin.org/data-core';
|
|
|
7
7
|
*/
|
|
8
8
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
9
9
|
const AuditableItemGraphTypes = {
|
|
10
|
-
/**
|
|
11
|
-
* The context root for the auditable item graph types.
|
|
12
|
-
*/
|
|
13
|
-
ContextRoot: "https://schema.twindev.org/aig/",
|
|
14
|
-
/**
|
|
15
|
-
* The context root for the common types.
|
|
16
|
-
*/
|
|
17
|
-
ContextRootCommon: "https://schema.twindev.org/common/",
|
|
18
10
|
/**
|
|
19
11
|
* Represents auditable item graph vertex.
|
|
20
12
|
*/
|
|
@@ -589,6 +581,23 @@ class AuditableItemGraphDataTypes {
|
|
|
589
581
|
}
|
|
590
582
|
}
|
|
591
583
|
|
|
584
|
+
// Copyright 2024 IOTA Stiftung.
|
|
585
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
586
|
+
/**
|
|
587
|
+
* The contexts of auditable item graph data.
|
|
588
|
+
*/
|
|
589
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
590
|
+
const AuditableItemGraphContexts = {
|
|
591
|
+
/**
|
|
592
|
+
* The context root for the auditable item graph types.
|
|
593
|
+
*/
|
|
594
|
+
ContextRoot: "https://schema.twindev.org/aig/",
|
|
595
|
+
/**
|
|
596
|
+
* The context root for the common types.
|
|
597
|
+
*/
|
|
598
|
+
ContextRootCommon: "https://schema.twindev.org/common/"
|
|
599
|
+
};
|
|
600
|
+
|
|
592
601
|
// Copyright 2024 IOTA Stiftung.
|
|
593
602
|
// SPDX-License-Identifier: Apache-2.0.
|
|
594
603
|
/**
|
|
@@ -627,4 +636,4 @@ const VerifyDepth = {
|
|
|
627
636
|
All: "all"
|
|
628
637
|
};
|
|
629
638
|
|
|
630
|
-
export { AuditableItemGraphDataTypes, AuditableItemGraphTopics, AuditableItemGraphTypes, VerifyDepth };
|
|
639
|
+
export { AuditableItemGraphContexts, AuditableItemGraphDataTypes, AuditableItemGraphTopics, AuditableItemGraphTypes, VerifyDepth };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from "./models/api/IAuditableItemGraphGetResponse";
|
|
|
5
5
|
export * from "./models/api/IAuditableItemGraphListRequest";
|
|
6
6
|
export * from "./models/api/IAuditableItemGraphListResponse";
|
|
7
7
|
export * from "./models/api/IAuditableItemGraphUpdateRequest";
|
|
8
|
+
export * from "./models/auditableItemGraphContexts";
|
|
8
9
|
export * from "./models/auditableItemGraphTopics";
|
|
9
10
|
export * from "./models/auditableItemGraphTypes";
|
|
10
11
|
export * from "./models/eventBus/IAuditableItemGraphEventBusVertexCreated";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { IJsonLdContextDefinitionElement, IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
|
+
import type { AuditableItemGraphContexts } from "./auditableItemGraphContexts";
|
|
2
3
|
import type { AuditableItemGraphTypes } from "./auditableItemGraphTypes";
|
|
3
4
|
import type { IAuditableItemGraphAuditedElement } from "./IAuditableItemGraphAuditedElement";
|
|
4
5
|
/**
|
|
@@ -8,7 +9,7 @@ export interface IAuditableItemGraphAlias extends IAuditableItemGraphAuditedElem
|
|
|
8
9
|
/**
|
|
9
10
|
* JSON-LD Context.
|
|
10
11
|
*/
|
|
11
|
-
"@context": typeof
|
|
12
|
+
"@context": typeof AuditableItemGraphContexts.ContextRoot | [typeof AuditableItemGraphContexts.ContextRoot, ...IJsonLdContextDefinitionElement[]];
|
|
12
13
|
/**
|
|
13
14
|
* The id of the element.
|
|
14
15
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { IJsonLdContextDefinitionElement } from "@twin.org/data-json-ld";
|
|
2
2
|
import type { IImmutableProofVerification } from "@twin.org/immutable-proof-models";
|
|
3
|
+
import type { AuditableItemGraphContexts } from "./auditableItemGraphContexts";
|
|
3
4
|
import type { AuditableItemGraphTypes } from "./auditableItemGraphTypes";
|
|
4
5
|
import type { IAuditableItemGraphPatchOperation } from "./IAuditableItemGraphPatchOperation";
|
|
5
6
|
/**
|
|
@@ -10,8 +11,8 @@ export interface IAuditableItemGraphChangeset {
|
|
|
10
11
|
* JSON-LD Context.
|
|
11
12
|
*/
|
|
12
13
|
"@context": [
|
|
13
|
-
typeof
|
|
14
|
-
typeof
|
|
14
|
+
typeof AuditableItemGraphContexts.ContextRoot,
|
|
15
|
+
typeof AuditableItemGraphContexts.ContextRootCommon,
|
|
15
16
|
...IJsonLdContextDefinitionElement[]
|
|
16
17
|
];
|
|
17
18
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { IJsonLdContextDefinitionElement, IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
|
+
import type { AuditableItemGraphContexts } from "./auditableItemGraphContexts";
|
|
2
3
|
import type { AuditableItemGraphTypes } from "./auditableItemGraphTypes";
|
|
3
4
|
import type { IAuditableItemGraphAuditedElement } from "./IAuditableItemGraphAuditedElement";
|
|
4
5
|
/**
|
|
@@ -8,7 +9,7 @@ export interface IAuditableItemGraphEdge extends IAuditableItemGraphAuditedEleme
|
|
|
8
9
|
/**
|
|
9
10
|
* JSON-LD Context.
|
|
10
11
|
*/
|
|
11
|
-
"@context": typeof
|
|
12
|
+
"@context": typeof AuditableItemGraphContexts.ContextRoot | [typeof AuditableItemGraphContexts.ContextRoot, ...IJsonLdContextDefinitionElement[]];
|
|
12
13
|
/**
|
|
13
14
|
* The id of the element.
|
|
14
15
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { IJsonLdContextDefinitionElement } from "@twin.org/data-json-ld";
|
|
2
|
+
import type { AuditableItemGraphContexts } from "./auditableItemGraphContexts";
|
|
2
3
|
import type { AuditableItemGraphTypes } from "./auditableItemGraphTypes";
|
|
3
4
|
/**
|
|
4
5
|
* The patch operation for JSON diffs.
|
|
@@ -7,7 +8,7 @@ export interface IAuditableItemGraphPatchOperation {
|
|
|
7
8
|
/**
|
|
8
9
|
* JSON-LD Context.
|
|
9
10
|
*/
|
|
10
|
-
"@context": typeof
|
|
11
|
+
"@context": typeof AuditableItemGraphContexts.ContextRoot | [typeof AuditableItemGraphContexts.ContextRoot, ...IJsonLdContextDefinitionElement[]];
|
|
11
12
|
/**
|
|
12
13
|
* JSON-LD Type.
|
|
13
14
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { IJsonLdContextDefinitionElement, IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
|
+
import type { AuditableItemGraphContexts } from "./auditableItemGraphContexts";
|
|
2
3
|
import type { AuditableItemGraphTypes } from "./auditableItemGraphTypes";
|
|
3
4
|
import type { IAuditableItemGraphAuditedElement } from "./IAuditableItemGraphAuditedElement";
|
|
4
5
|
/**
|
|
@@ -8,7 +9,7 @@ export interface IAuditableItemGraphResource extends IAuditableItemGraphAuditedE
|
|
|
8
9
|
/**
|
|
9
10
|
* JSON-LD Context.
|
|
10
11
|
*/
|
|
11
|
-
"@context": typeof
|
|
12
|
+
"@context": typeof AuditableItemGraphContexts.ContextRoot | [typeof AuditableItemGraphContexts.ContextRoot, ...IJsonLdContextDefinitionElement[]];
|
|
12
13
|
/**
|
|
13
14
|
* JSON-LD Type.
|
|
14
15
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { IJsonLdContextDefinitionElement, IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
|
+
import type { AuditableItemGraphContexts } from "./auditableItemGraphContexts";
|
|
2
3
|
import type { AuditableItemGraphTypes } from "./auditableItemGraphTypes";
|
|
3
4
|
import type { IAuditableItemGraphAlias } from "./IAuditableItemGraphAlias";
|
|
4
5
|
import type { IAuditableItemGraphAuditedElement } from "./IAuditableItemGraphAuditedElement";
|
|
@@ -13,8 +14,8 @@ export interface IAuditableItemGraphVertex extends Omit<IAuditableItemGraphAudit
|
|
|
13
14
|
* JSON-LD Context.
|
|
14
15
|
*/
|
|
15
16
|
"@context": [
|
|
16
|
-
typeof
|
|
17
|
-
typeof
|
|
17
|
+
typeof AuditableItemGraphContexts.ContextRoot,
|
|
18
|
+
typeof AuditableItemGraphContexts.ContextRootCommon,
|
|
18
19
|
...IJsonLdContextDefinitionElement[]
|
|
19
20
|
];
|
|
20
21
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { IJsonLdContextDefinitionElement } from "@twin.org/data-json-ld";
|
|
2
|
+
import type { AuditableItemGraphContexts } from "./auditableItemGraphContexts";
|
|
2
3
|
import type { AuditableItemGraphTypes } from "./auditableItemGraphTypes";
|
|
3
4
|
import type { IAuditableItemGraphVertex } from "./IAuditableItemGraphVertex";
|
|
4
5
|
/**
|
|
@@ -8,7 +9,7 @@ export interface IAuditableItemGraphVertexList {
|
|
|
8
9
|
/**
|
|
9
10
|
* JSON-LD Context.
|
|
10
11
|
*/
|
|
11
|
-
"@context": typeof
|
|
12
|
+
"@context": typeof AuditableItemGraphContexts.ContextRoot | [typeof AuditableItemGraphContexts.ContextRoot, ...IJsonLdContextDefinitionElement[]];
|
|
12
13
|
/**
|
|
13
14
|
* JSON-LD Type.
|
|
14
15
|
*/
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The contexts of auditable item graph data.
|
|
3
|
+
*/
|
|
4
|
+
export declare const AuditableItemGraphContexts: {
|
|
5
|
+
/**
|
|
6
|
+
* The context root for the auditable item graph types.
|
|
7
|
+
*/
|
|
8
|
+
readonly ContextRoot: "https://schema.twindev.org/aig/";
|
|
9
|
+
/**
|
|
10
|
+
* The context root for the common types.
|
|
11
|
+
*/
|
|
12
|
+
readonly ContextRootCommon: "https://schema.twindev.org/common/";
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* The contexts of auditable item graph data.
|
|
16
|
+
*/
|
|
17
|
+
export type AuditableItemGraphContexts = (typeof AuditableItemGraphContexts)[keyof typeof AuditableItemGraphContexts];
|
|
@@ -2,14 +2,6 @@
|
|
|
2
2
|
* The types of auditable item graph data.
|
|
3
3
|
*/
|
|
4
4
|
export declare const AuditableItemGraphTypes: {
|
|
5
|
-
/**
|
|
6
|
-
* The context root for the auditable item graph types.
|
|
7
|
-
*/
|
|
8
|
-
readonly ContextRoot: "https://schema.twindev.org/aig/";
|
|
9
|
-
/**
|
|
10
|
-
* The context root for the common types.
|
|
11
|
-
*/
|
|
12
|
-
readonly ContextRootCommon: "https://schema.twindev.org/common/";
|
|
13
5
|
/**
|
|
14
6
|
* Represents auditable item graph vertex.
|
|
15
7
|
*/
|
package/docs/changelog.md
CHANGED
package/docs/reference/index.md
CHANGED
|
@@ -26,12 +26,14 @@
|
|
|
26
26
|
|
|
27
27
|
## Type Aliases
|
|
28
28
|
|
|
29
|
+
- [AuditableItemGraphContexts](type-aliases/AuditableItemGraphContexts.md)
|
|
29
30
|
- [AuditableItemGraphTopics](type-aliases/AuditableItemGraphTopics.md)
|
|
30
31
|
- [AuditableItemGraphTypes](type-aliases/AuditableItemGraphTypes.md)
|
|
31
32
|
- [VerifyDepth](type-aliases/VerifyDepth.md)
|
|
32
33
|
|
|
33
34
|
## Variables
|
|
34
35
|
|
|
36
|
+
- [AuditableItemGraphContexts](variables/AuditableItemGraphContexts.md)
|
|
35
37
|
- [AuditableItemGraphTopics](variables/AuditableItemGraphTopics.md)
|
|
36
38
|
- [AuditableItemGraphTypes](variables/AuditableItemGraphTypes.md)
|
|
37
39
|
- [VerifyDepth](variables/VerifyDepth.md)
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Type Alias: AuditableItemGraphContexts
|
|
2
|
+
|
|
3
|
+
> **AuditableItemGraphContexts**: *typeof* [`AuditableItemGraphContexts`](../variables/AuditableItemGraphContexts.md)\[keyof *typeof* [`AuditableItemGraphContexts`](../variables/AuditableItemGraphContexts.md)\]
|
|
4
|
+
|
|
5
|
+
The contexts of auditable item graph data.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Variable: AuditableItemGraphContexts
|
|
2
|
+
|
|
3
|
+
> `const` **AuditableItemGraphContexts**: `object`
|
|
4
|
+
|
|
5
|
+
The contexts of auditable item graph data.
|
|
6
|
+
|
|
7
|
+
## Type declaration
|
|
8
|
+
|
|
9
|
+
### ContextRoot
|
|
10
|
+
|
|
11
|
+
> `readonly` **ContextRoot**: `"https://schema.twindev.org/aig/"` = `"https://schema.twindev.org/aig/"`
|
|
12
|
+
|
|
13
|
+
The context root for the auditable item graph types.
|
|
14
|
+
|
|
15
|
+
### ContextRootCommon
|
|
16
|
+
|
|
17
|
+
> `readonly` **ContextRootCommon**: `"https://schema.twindev.org/common/"` = `"https://schema.twindev.org/common/"`
|
|
18
|
+
|
|
19
|
+
The context root for the common types.
|
|
@@ -6,18 +6,6 @@ The types of auditable item graph data.
|
|
|
6
6
|
|
|
7
7
|
## Type declaration
|
|
8
8
|
|
|
9
|
-
### ContextRoot
|
|
10
|
-
|
|
11
|
-
> `readonly` **ContextRoot**: `"https://schema.twindev.org/aig/"` = `"https://schema.twindev.org/aig/"`
|
|
12
|
-
|
|
13
|
-
The context root for the auditable item graph types.
|
|
14
|
-
|
|
15
|
-
### ContextRootCommon
|
|
16
|
-
|
|
17
|
-
> `readonly` **ContextRootCommon**: `"https://schema.twindev.org/common/"` = `"https://schema.twindev.org/common/"`
|
|
18
|
-
|
|
19
|
-
The context root for the common types.
|
|
20
|
-
|
|
21
9
|
### Vertex
|
|
22
10
|
|
|
23
11
|
> `readonly` **Vertex**: `"AuditableItemGraphVertex"` = `"AuditableItemGraphVertex"`
|
package/package.json
CHANGED