@twin.org/document-management-models 0.0.2-next.2 → 0.0.2-next.3

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.
@@ -27,7 +27,7 @@ export interface IDocumentManagementComponent extends IComponent {
27
27
  * @returns The auditable item graph vertex created for the document including its revision.
28
28
  */
29
29
  create(documentId: string, documentIdFormat: string | undefined, documentCode: UneceDocumentCodes, blob: Uint8Array, annotationObject?: IJsonLdNodeObject, auditableItemGraphEdges?: {
30
- id: string;
30
+ targetId: string;
31
31
  addAlias?: boolean;
32
32
  aliasAnnotationObject?: IJsonLdNodeObject;
33
33
  }[], options?: {
@@ -48,7 +48,7 @@ export interface IDocumentManagementComponent extends IComponent {
48
48
  * @returns Nothing.
49
49
  */
50
50
  update(auditableItemGraphDocumentId: string, blob?: Uint8Array, annotationObject?: IJsonLdNodeObject, auditableItemGraphEdges?: {
51
- id: string;
51
+ targetId: string;
52
52
  addAlias?: boolean;
53
53
  aliasAnnotationObject?: IJsonLdNodeObject;
54
54
  }[], userIdentity?: string, nodeIdentity?: string): Promise<void>;
@@ -32,7 +32,7 @@ export interface IDocumentManagementCreateRequest {
32
32
  * The auditable item graph vertices to connect the document to.
33
33
  */
34
34
  auditableItemGraphEdges?: {
35
- id: string;
35
+ targetId: string;
36
36
  addAlias?: boolean;
37
37
  aliasAnnotationObject?: IJsonLdNodeObject;
38
38
  }[];
@@ -28,7 +28,7 @@ export interface IDocumentManagementUpdateRequest {
28
28
  * The auditable item graph vertices to connect the document to.
29
29
  */
30
30
  auditableItemGraphEdges?: {
31
- id: string;
31
+ targetId: string;
32
32
  addAlias?: boolean;
33
33
  aliasAnnotationObject?: IJsonLdNodeObject;
34
34
  }[];
package/docs/changelog.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @twin.org/document-management-models - Changelog
2
2
 
3
+ ## [0.0.2-next.3](https://github.com/twinfoundation/document-management/compare/document-management-models-v0.0.2-next.2...document-management-models-v0.0.2-next.3) (2025-09-29)
4
+
5
+
6
+ ### Features
7
+
8
+ * use targetId in AIG for edges ([82dec81](https://github.com/twinfoundation/document-management/commit/82dec8190d8b523b350ef133bdcf648cab1023b0))
9
+
3
10
  ## [0.0.2-next.2](https://github.com/twinfoundation/document-management/compare/document-management-models-v0.0.2-next.1...document-management-models-v0.0.2-next.2) (2025-08-29)
4
11
 
5
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/document-management-models",
3
- "version": "0.0.2-next.2",
3
+ "version": "0.0.2-next.3",
4
4
  "description": "Models which define the structure of the document management connectors and services",
5
5
  "repository": {
6
6
  "type": "git",