@twin.org/auditable-item-graph-models 0.0.2-next.6 → 0.0.2-next.8
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 +0 -1
- package/dist/esm/index.mjs +0 -1
- package/dist/types/models/IAuditableItemGraphComponent.d.ts +4 -4
- package/dist/types/models/IAuditableItemGraphEdge.d.ts +1 -1
- package/dist/types/models/api/IAuditableItemGraphListRequest.d.ts +2 -2
- package/dist/types/models/api/IAuditableItemGraphUpdateRequest.d.ts +1 -1
- package/docs/changelog.md +14 -0
- package/docs/reference/interfaces/IAuditableItemGraphComponent.md +12 -4
- package/docs/reference/interfaces/IAuditableItemGraphEdge.md +2 -2
- package/docs/reference/interfaces/IAuditableItemGraphListRequest.md +3 -3
- package/package.json +17 -2
package/dist/cjs/index.cjs
CHANGED
package/dist/esm/index.mjs
CHANGED
|
@@ -63,7 +63,7 @@ export interface IAuditableItemGraphComponent extends IComponent {
|
|
|
63
63
|
resourceObject?: IJsonLdNodeObject;
|
|
64
64
|
}[];
|
|
65
65
|
edges?: {
|
|
66
|
-
id
|
|
66
|
+
id?: string;
|
|
67
67
|
targetId: string;
|
|
68
68
|
edgeRelationships: string[];
|
|
69
69
|
annotationObject?: IJsonLdNodeObject;
|
|
@@ -103,8 +103,8 @@ export interface IAuditableItemGraphComponent extends IComponent {
|
|
|
103
103
|
* @param orderBy The order for the results, defaults to dateCreated.
|
|
104
104
|
* @param orderByDirection The direction for the order, defaults to descending.
|
|
105
105
|
* @param properties The properties to return, if not provided defaults to id, dateCreated, aliases and object.
|
|
106
|
-
* @param cursor The cursor to request the next
|
|
107
|
-
* @param
|
|
106
|
+
* @param cursor The cursor to request the next chunk of entities.
|
|
107
|
+
* @param limit Limit the number of entities to return.
|
|
108
108
|
* @returns The entities, which can be partial if a limited keys list was provided.
|
|
109
109
|
*/
|
|
110
110
|
query(options?: {
|
|
@@ -112,5 +112,5 @@ export interface IAuditableItemGraphComponent extends IComponent {
|
|
|
112
112
|
idMode?: "id" | "alias" | "both";
|
|
113
113
|
idExact?: boolean;
|
|
114
114
|
resourceTypes?: string[];
|
|
115
|
-
}, conditions?: IComparator[], orderBy?: keyof Pick<IAuditableItemGraphVertex, "dateCreated" | "dateModified">, orderByDirection?: SortDirection, properties?: (keyof IAuditableItemGraphVertex)[], cursor?: string,
|
|
115
|
+
}, conditions?: IComparator[], orderBy?: keyof Pick<IAuditableItemGraphVertex, "dateCreated" | "dateModified">, orderByDirection?: SortDirection, properties?: (keyof IAuditableItemGraphVertex)[], cursor?: string, limit?: number): Promise<IAuditableItemGraphVertexList>;
|
|
116
116
|
}
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @twin.org/auditable-item-graph-models - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.2-next.8](https://github.com/twinfoundation/auditable-item-graph/compare/auditable-item-graph-models-v0.0.2-next.7...auditable-item-graph-models-v0.0.2-next.8) (2025-10-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add validate-locales ([e76e6f6](https://github.com/twinfoundation/auditable-item-graph/commit/e76e6f6b3ec9c447a04315d353442e32233601d3))
|
|
9
|
+
|
|
10
|
+
## [0.0.2-next.7](https://github.com/twinfoundation/auditable-item-graph/compare/auditable-item-graph-models-v0.0.2-next.6...auditable-item-graph-models-v0.0.2-next.7) (2025-09-29)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* id optional in edge updates ([6b63fe3](https://github.com/twinfoundation/auditable-item-graph/commit/6b63fe34553104843ae15aa5066775f5872859e9))
|
|
16
|
+
|
|
3
17
|
## [0.0.2-next.6](https://github.com/twinfoundation/auditable-item-graph/compare/auditable-item-graph-models-v0.0.2-next.5...auditable-item-graph-models-v0.0.2-next.6) (2025-09-29)
|
|
4
18
|
|
|
5
19
|
|
|
@@ -6,6 +6,14 @@ Interface describing an auditable item graph contract.
|
|
|
6
6
|
|
|
7
7
|
- `IComponent`
|
|
8
8
|
|
|
9
|
+
## Indexable
|
|
10
|
+
|
|
11
|
+
\[`key`: `string`\]: `any`
|
|
12
|
+
|
|
13
|
+
All methods are optional, so we introduce an index signature to allow
|
|
14
|
+
any additional properties or methods, which removes the TypeScript error where
|
|
15
|
+
the class has no properties in common with the type.
|
|
16
|
+
|
|
9
17
|
## Methods
|
|
10
18
|
|
|
11
19
|
### create()
|
|
@@ -208,7 +216,7 @@ NotFoundError if the vertex is not found.
|
|
|
208
216
|
|
|
209
217
|
### query()
|
|
210
218
|
|
|
211
|
-
> **query**(`options?`, `conditions?`, `orderBy?`, `orderByDirection?`, `properties?`, `cursor?`, `
|
|
219
|
+
> **query**(`options?`, `conditions?`, `orderBy?`, `orderByDirection?`, `properties?`, `cursor?`, `limit?`): `Promise`\<[`IAuditableItemGraphVertexList`](IAuditableItemGraphVertexList.md)\>
|
|
212
220
|
|
|
213
221
|
Query the graph for vertices.
|
|
214
222
|
|
|
@@ -270,13 +278,13 @@ The properties to return, if not provided defaults to id, dateCreated, aliases a
|
|
|
270
278
|
|
|
271
279
|
`string`
|
|
272
280
|
|
|
273
|
-
The cursor to request the next
|
|
281
|
+
The cursor to request the next chunk of entities.
|
|
274
282
|
|
|
275
|
-
#####
|
|
283
|
+
##### limit?
|
|
276
284
|
|
|
277
285
|
`number`
|
|
278
286
|
|
|
279
|
-
|
|
287
|
+
Limit the number of entities to return.
|
|
280
288
|
|
|
281
289
|
#### Returns
|
|
282
290
|
|
|
@@ -76,8 +76,8 @@ The properties to return as a comma separated list, defaults to "id,dateCreated,
|
|
|
76
76
|
|
|
77
77
|
The optional cursor to get next chunk.
|
|
78
78
|
|
|
79
|
-
####
|
|
79
|
+
#### limit?
|
|
80
80
|
|
|
81
|
-
> `optional` **
|
|
81
|
+
> `optional` **limit**: `string`
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
Limit the number of entities to return.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/auditable-item-graph-models",
|
|
3
|
-
"version": "0.0.2-next.
|
|
3
|
+
"version": "0.0.2-next.8",
|
|
4
4
|
"description": "Models which define the structure of the auditable item graph connectors and services",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -40,5 +40,20 @@
|
|
|
40
40
|
"dist/types",
|
|
41
41
|
"locales",
|
|
42
42
|
"docs"
|
|
43
|
-
]
|
|
43
|
+
],
|
|
44
|
+
"keywords": [
|
|
45
|
+
"twin",
|
|
46
|
+
"trade",
|
|
47
|
+
"iota",
|
|
48
|
+
"framework",
|
|
49
|
+
"blockchain",
|
|
50
|
+
"auditable-item-graph",
|
|
51
|
+
"models",
|
|
52
|
+
"types",
|
|
53
|
+
"schemas"
|
|
54
|
+
],
|
|
55
|
+
"bugs": {
|
|
56
|
+
"url": "git+https://github.com/twinfoundation/auditable-item-graph/issues"
|
|
57
|
+
},
|
|
58
|
+
"homepage": "https://twindev.org"
|
|
44
59
|
}
|