@twin.org/document-management-models 0.0.1-next.3 → 0.0.1-next.4
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/types/models/IDocumentManagementComponent.d.ts +9 -2
- package/dist/types/models/api/IDocumentManagementSetRequest.d.ts +8 -0
- package/docs/changelog.md +1 -1
- package/docs/reference/interfaces/IDocumentManagementComponent.md +18 -2
- package/docs/reference/interfaces/IDocumentManagementSetRequest.md +12 -0
- package/package.json +1 -1
|
@@ -17,12 +17,19 @@ export interface IDocumentManagementComponent extends IComponent {
|
|
|
17
17
|
* @param documentCode The code for the document type.
|
|
18
18
|
* @param blob The data to create the document with.
|
|
19
19
|
* @param annotationObject Additional information to associate with the document.
|
|
20
|
-
* @param
|
|
20
|
+
* @param options Additional options for the set operation.
|
|
21
|
+
* @param options.createAttestation Flag to create an attestation for the document, defaults to false.
|
|
22
|
+
* @param options.includeIdAsAlias Include the document id as an alias to the aig vertex, defaults to false.
|
|
23
|
+
* @param options.aliasAnnotationObject Additional information to associate with the alias.
|
|
21
24
|
* @param userIdentity The identity to perform the auditable item graph operation with.
|
|
22
25
|
* @param nodeIdentity The node identity to use for vault operations.
|
|
23
26
|
* @returns The identifier for the document which includes the auditable item graph identifier.
|
|
24
27
|
*/
|
|
25
|
-
set(auditableItemGraphId: string, documentId: string, documentIdFormat: string | undefined, documentCode: UneceDocumentCodes, blob: Uint8Array, annotationObject?: IJsonLdNodeObject,
|
|
28
|
+
set(auditableItemGraphId: string, documentId: string, documentIdFormat: string | undefined, documentCode: UneceDocumentCodes, blob: Uint8Array, annotationObject?: IJsonLdNodeObject, options?: {
|
|
29
|
+
createAttestation?: boolean;
|
|
30
|
+
includeIdAsAlias?: boolean;
|
|
31
|
+
aliasAnnotationObject?: IJsonLdNodeObject;
|
|
32
|
+
}, userIdentity?: string, nodeIdentity?: string): Promise<string>;
|
|
26
33
|
/**
|
|
27
34
|
* Get a specific document from an auditable item graph vertex.
|
|
28
35
|
* @param auditableItemGraphId The auditable item graph vertex id to get the document from.
|
|
@@ -41,5 +41,13 @@ export interface IDocumentManagementSetRequest {
|
|
|
41
41
|
* Flag to create an attestation for the document, defaults to false
|
|
42
42
|
*/
|
|
43
43
|
createAttestation?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Include the document id as an alias to the aig vertex, defaults to false.
|
|
46
|
+
*/
|
|
47
|
+
includeIdAsAlias?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Additional information to associate with the alias.
|
|
50
|
+
*/
|
|
51
|
+
aliasAnnotationObject?: IJsonLdNodeObject;
|
|
44
52
|
};
|
|
45
53
|
}
|
package/docs/changelog.md
CHANGED
|
@@ -10,7 +10,7 @@ Interface describing an document management contract.
|
|
|
10
10
|
|
|
11
11
|
### set()
|
|
12
12
|
|
|
13
|
-
> **set**(`auditableItemGraphId`, `documentId`, `documentIdFormat`, `documentCode`, `blob`, `annotationObject`?, `
|
|
13
|
+
> **set**(`auditableItemGraphId`, `documentId`, `documentIdFormat`, `documentCode`, `blob`, `annotationObject`?, `options`?, `userIdentity`?, `nodeIdentity`?): `Promise`\<`string`\>
|
|
14
14
|
|
|
15
15
|
Store a document in an auditable item graph vertex and add its content to blob storage.
|
|
16
16
|
If the document id already exists and the blob data is different a new revision will be created.
|
|
@@ -54,12 +54,28 @@ The data to create the document with.
|
|
|
54
54
|
|
|
55
55
|
Additional information to associate with the document.
|
|
56
56
|
|
|
57
|
-
#####
|
|
57
|
+
##### options?
|
|
58
|
+
|
|
59
|
+
Additional options for the set operation.
|
|
60
|
+
|
|
61
|
+
###### createAttestation?
|
|
58
62
|
|
|
59
63
|
`boolean`
|
|
60
64
|
|
|
61
65
|
Flag to create an attestation for the document, defaults to false.
|
|
62
66
|
|
|
67
|
+
###### includeIdAsAlias?
|
|
68
|
+
|
|
69
|
+
`boolean`
|
|
70
|
+
|
|
71
|
+
Include the document id as an alias to the aig vertex, defaults to false.
|
|
72
|
+
|
|
73
|
+
###### aliasAnnotationObject?
|
|
74
|
+
|
|
75
|
+
`IJsonLdNodeObject`
|
|
76
|
+
|
|
77
|
+
Additional information to associate with the alias.
|
|
78
|
+
|
|
63
79
|
##### userIdentity?
|
|
64
80
|
|
|
65
81
|
`string`
|
|
@@ -59,3 +59,15 @@ Additional information to associate with the document.
|
|
|
59
59
|
> `optional` **createAttestation**: `boolean`
|
|
60
60
|
|
|
61
61
|
Flag to create an attestation for the document, defaults to false
|
|
62
|
+
|
|
63
|
+
#### includeIdAsAlias?
|
|
64
|
+
|
|
65
|
+
> `optional` **includeIdAsAlias**: `boolean`
|
|
66
|
+
|
|
67
|
+
Include the document id as an alias to the aig vertex, defaults to false.
|
|
68
|
+
|
|
69
|
+
#### aliasAnnotationObject?
|
|
70
|
+
|
|
71
|
+
> `optional` **aliasAnnotationObject**: `IJsonLdNodeObject`
|
|
72
|
+
|
|
73
|
+
Additional information to associate with the alias.
|
package/package.json
CHANGED