@twin.org/document-management-models 0.0.1-next.1 → 0.0.1-next.11
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 +17 -3
- package/dist/esm/index.mjs +17 -4
- package/dist/types/index.d.ts +5 -2
- package/dist/types/models/IDocument.d.ts +14 -9
- package/dist/types/models/IDocumentAttestation.d.ts +41 -0
- package/dist/types/models/IDocumentList.d.ts +9 -4
- package/dist/types/models/IDocumentManagementComponent.d.ts +54 -34
- package/dist/types/models/api/{IDocumentManagementSetRequest.d.ts → IDocumentManagementCreateRequest.d.ts} +19 -12
- package/dist/types/models/api/IDocumentManagementGetRequest.d.ts +13 -9
- package/dist/types/models/api/IDocumentManagementGetResponse.d.ts +2 -2
- package/dist/types/models/api/IDocumentManagementQueryRequest.d.ts +7 -22
- package/dist/types/models/api/IDocumentManagementQueryResponse.d.ts +2 -2
- package/dist/types/models/api/IDocumentManagementRemoveRequest.d.ts +5 -15
- package/dist/types/models/api/IDocumentManagementUpdateRequest.d.ts +36 -0
- package/dist/types/models/documentContexts.d.ts +17 -0
- package/dist/types/models/{documentDataTypes.d.ts → documentTypes.d.ts} +4 -8
- package/docs/changelog.md +29 -1
- package/docs/reference/index.md +5 -1
- package/docs/reference/interfaces/IDocument.md +14 -6
- package/docs/reference/interfaces/IDocumentAttestation.md +59 -0
- package/docs/reference/interfaces/IDocumentList.md +9 -1
- package/docs/reference/interfaces/IDocumentManagementComponent.md +120 -70
- package/docs/reference/interfaces/{IDocumentManagementSetRequest.md → IDocumentManagementCreateRequest.md} +21 -17
- package/docs/reference/interfaces/IDocumentManagementGetRequest.md +20 -14
- package/docs/reference/interfaces/IDocumentManagementGetResponse.md +1 -1
- package/docs/reference/interfaces/IDocumentManagementQueryRequest.md +11 -43
- package/docs/reference/interfaces/IDocumentManagementQueryResponse.md +1 -1
- package/docs/reference/interfaces/IDocumentManagementRemoveRequest.md +7 -27
- package/docs/reference/interfaces/IDocumentManagementUpdateRequest.md +43 -0
- package/docs/reference/type-aliases/DocumentContexts.md +5 -0
- package/docs/reference/type-aliases/DocumentTypes.md +1 -1
- package/docs/reference/variables/DocumentContexts.md +19 -0
- package/docs/reference/variables/DocumentTypes.md +6 -12
- package/package.json +2 -1
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @twin.org/document-management-models - Changelog
|
|
2
2
|
|
|
3
|
-
## v0.0.1-next.1
|
|
3
|
+
## [0.0.1-next.11](https://github.com/twinfoundation/document-management/compare/document-management-models-v0.0.1-next.10...document-management-models-v0.0.1-next.11) (2025-04-28)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* document get can perform extraction ([#6](https://github.com/twinfoundation/document-management/issues/6)) ([5ce6d37](https://github.com/twinfoundation/document-management/commit/5ce6d37432ad271ca5783f422846f4be98ec2215))
|
|
9
|
+
|
|
10
|
+
## [0.0.1-next.10](https://github.com/twinfoundation/document-management/compare/document-management-models-v0.0.1-next.9...document-management-models-v0.0.1-next.10) (2025-04-25)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Miscellaneous Chores
|
|
14
|
+
|
|
15
|
+
* **document-management-models:** Synchronize repo versions
|
|
16
|
+
|
|
17
|
+
## [0.0.1-next.9](https://github.com/twinfoundation/document-management/compare/document-management-models-v0.0.1-next.8...document-management-models-v0.0.1-next.9) (2025-04-17)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* store document as a vertex ([#2](https://github.com/twinfoundation/document-management/issues/2)) ([7febedc](https://github.com/twinfoundation/document-management/commit/7febedc3fb31de9c19565d6326341046834f2c74))
|
|
23
|
+
|
|
24
|
+
## [0.0.1-next.8](https://github.com/twinfoundation/document-management/compare/document-management-models-v0.0.1-next.7...document-management-models-v0.0.1-next.8) (2025-03-28)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* improve comments ([4d2f094](https://github.com/twinfoundation/document-management/commit/4d2f094b23e3320cb739917246c1ee5f6ad41c11))
|
|
30
|
+
|
|
31
|
+
## v0.0.1-next.7
|
|
4
32
|
|
|
5
33
|
- Initial Release
|
package/docs/reference/index.md
CHANGED
|
@@ -3,19 +3,23 @@
|
|
|
3
3
|
## Interfaces
|
|
4
4
|
|
|
5
5
|
- [IDocument](interfaces/IDocument.md)
|
|
6
|
+
- [IDocumentAttestation](interfaces/IDocumentAttestation.md)
|
|
6
7
|
- [IDocumentList](interfaces/IDocumentList.md)
|
|
7
8
|
- [IDocumentManagementComponent](interfaces/IDocumentManagementComponent.md)
|
|
9
|
+
- [IDocumentManagementCreateRequest](interfaces/IDocumentManagementCreateRequest.md)
|
|
8
10
|
- [IDocumentManagementGetRequest](interfaces/IDocumentManagementGetRequest.md)
|
|
9
11
|
- [IDocumentManagementGetResponse](interfaces/IDocumentManagementGetResponse.md)
|
|
10
12
|
- [IDocumentManagementQueryRequest](interfaces/IDocumentManagementQueryRequest.md)
|
|
11
13
|
- [IDocumentManagementQueryResponse](interfaces/IDocumentManagementQueryResponse.md)
|
|
12
14
|
- [IDocumentManagementRemoveRequest](interfaces/IDocumentManagementRemoveRequest.md)
|
|
13
|
-
- [
|
|
15
|
+
- [IDocumentManagementUpdateRequest](interfaces/IDocumentManagementUpdateRequest.md)
|
|
14
16
|
|
|
15
17
|
## Type Aliases
|
|
16
18
|
|
|
19
|
+
- [DocumentContexts](type-aliases/DocumentContexts.md)
|
|
17
20
|
- [DocumentTypes](type-aliases/DocumentTypes.md)
|
|
18
21
|
|
|
19
22
|
## Variables
|
|
20
23
|
|
|
24
|
+
- [DocumentContexts](variables/DocumentContexts.md)
|
|
21
25
|
- [DocumentTypes](variables/DocumentTypes.md)
|
|
@@ -92,6 +92,14 @@ The additional JSON-LD for blob storage if it was requested.
|
|
|
92
92
|
|
|
93
93
|
***
|
|
94
94
|
|
|
95
|
+
### extractedData?
|
|
96
|
+
|
|
97
|
+
> `optional` **extractedData**: `unknown`
|
|
98
|
+
|
|
99
|
+
The data extracted from the document using data extraction services.
|
|
100
|
+
|
|
101
|
+
***
|
|
102
|
+
|
|
95
103
|
### attestationId?
|
|
96
104
|
|
|
97
105
|
> `optional` **attestationId**: `string`
|
|
@@ -132,16 +140,16 @@ The date/time of when the document was deleted, as we never actually remove item
|
|
|
132
140
|
|
|
133
141
|
***
|
|
134
142
|
|
|
135
|
-
###
|
|
143
|
+
### nodeIdentity
|
|
136
144
|
|
|
137
|
-
>
|
|
145
|
+
> **nodeIdentity**: `string`
|
|
138
146
|
|
|
139
|
-
The
|
|
147
|
+
The node which added the document to the graph.
|
|
140
148
|
|
|
141
149
|
***
|
|
142
150
|
|
|
143
|
-
###
|
|
151
|
+
### userIdentity
|
|
144
152
|
|
|
145
|
-
>
|
|
153
|
+
> **userIdentity**: `string`
|
|
146
154
|
|
|
147
|
-
The
|
|
155
|
+
The user who added the document to the graph.
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Interface: IDocumentAttestation
|
|
2
|
+
|
|
3
|
+
Interface describing a document attestation.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### @context
|
|
8
|
+
|
|
9
|
+
> **@context**: \[`"https://schema.twindev.org/documents/"`, `"https://schema.twindev.org/common/"`, `"https://schema.org"`\]
|
|
10
|
+
|
|
11
|
+
JSON-LD Context.
|
|
12
|
+
|
|
13
|
+
***
|
|
14
|
+
|
|
15
|
+
### type
|
|
16
|
+
|
|
17
|
+
> **type**: `"DocumentAttestation"`
|
|
18
|
+
|
|
19
|
+
JSON-LD Type.
|
|
20
|
+
|
|
21
|
+
***
|
|
22
|
+
|
|
23
|
+
### documentId
|
|
24
|
+
|
|
25
|
+
> **documentId**: `string`
|
|
26
|
+
|
|
27
|
+
The id of the document.
|
|
28
|
+
|
|
29
|
+
***
|
|
30
|
+
|
|
31
|
+
### documentCode
|
|
32
|
+
|
|
33
|
+
> **documentCode**: `string`
|
|
34
|
+
|
|
35
|
+
The code for the document type.
|
|
36
|
+
|
|
37
|
+
***
|
|
38
|
+
|
|
39
|
+
### documentRevision
|
|
40
|
+
|
|
41
|
+
> **documentRevision**: `number`
|
|
42
|
+
|
|
43
|
+
The revision of the document as a 0 based index.
|
|
44
|
+
|
|
45
|
+
***
|
|
46
|
+
|
|
47
|
+
### dateCreated
|
|
48
|
+
|
|
49
|
+
> **dateCreated**: `string`
|
|
50
|
+
|
|
51
|
+
The date/time of when the document was created.
|
|
52
|
+
|
|
53
|
+
***
|
|
54
|
+
|
|
55
|
+
### blobHash
|
|
56
|
+
|
|
57
|
+
> **blobHash**: `string`
|
|
58
|
+
|
|
59
|
+
The hash of the document being attested.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Interface: IDocumentList
|
|
2
2
|
|
|
3
|
-
Interface describing a document
|
|
3
|
+
Interface describing a list of document entries.
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
@@ -28,6 +28,14 @@ The list of documents.
|
|
|
28
28
|
|
|
29
29
|
***
|
|
30
30
|
|
|
31
|
+
### edges?
|
|
32
|
+
|
|
33
|
+
> `optional` **edges**: `string`[]
|
|
34
|
+
|
|
35
|
+
The ids of the other vertices which are connected to the document.
|
|
36
|
+
|
|
37
|
+
***
|
|
38
|
+
|
|
31
39
|
### cursor?
|
|
32
40
|
|
|
33
41
|
> `optional` **cursor**: `string`
|
|
@@ -8,22 +8,16 @@ Interface describing an document management contract.
|
|
|
8
8
|
|
|
9
9
|
## Methods
|
|
10
10
|
|
|
11
|
-
###
|
|
11
|
+
### create()
|
|
12
12
|
|
|
13
|
-
> **
|
|
13
|
+
> **create**(`documentId`, `documentIdFormat`, `documentCode`, `blob`, `annotationObject?`, `auditableItemGraphEdges?`, `options?`, `userIdentity?`, `nodeIdentity?`): `Promise`\<`string`\>
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Create a document as 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.
|
|
17
17
|
For any other changes the current revision will be updated.
|
|
18
18
|
|
|
19
19
|
#### Parameters
|
|
20
20
|
|
|
21
|
-
##### auditableItemGraphId
|
|
22
|
-
|
|
23
|
-
`string`
|
|
24
|
-
|
|
25
|
-
The auditable item graph vertex id to create the document on.
|
|
26
|
-
|
|
27
21
|
##### documentId
|
|
28
22
|
|
|
29
23
|
`string`
|
|
@@ -54,12 +48,34 @@ The data to create the document with.
|
|
|
54
48
|
|
|
55
49
|
Additional information to associate with the document.
|
|
56
50
|
|
|
57
|
-
#####
|
|
51
|
+
##### auditableItemGraphEdges?
|
|
52
|
+
|
|
53
|
+
`object`[]
|
|
54
|
+
|
|
55
|
+
The auditable item graph vertices to connect the document to.
|
|
56
|
+
|
|
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
|
+
###### addAlias?
|
|
68
|
+
|
|
69
|
+
`boolean`
|
|
70
|
+
|
|
71
|
+
Flag to add the document id as an alias to the aig vertex, defaults to true.
|
|
72
|
+
|
|
73
|
+
###### aliasAnnotationObject?
|
|
74
|
+
|
|
75
|
+
`IJsonLdNodeObject`
|
|
76
|
+
|
|
77
|
+
Annotation object for the alias.
|
|
78
|
+
|
|
63
79
|
##### userIdentity?
|
|
64
80
|
|
|
65
81
|
`string`
|
|
@@ -76,29 +92,77 @@ The node identity to use for vault operations.
|
|
|
76
92
|
|
|
77
93
|
`Promise`\<`string`\>
|
|
78
94
|
|
|
79
|
-
The
|
|
95
|
+
The auditable item graph vertex created for the document including its revision.
|
|
80
96
|
|
|
81
97
|
***
|
|
82
98
|
|
|
83
|
-
###
|
|
99
|
+
### update()
|
|
84
100
|
|
|
85
|
-
> **
|
|
101
|
+
> **update**(`auditableItemGraphDocumentId`, `blob?`, `annotationObject?`, `auditableItemGraphEdges?`, `userIdentity?`, `nodeIdentity?`): `Promise`\<`void`\>
|
|
86
102
|
|
|
87
|
-
|
|
103
|
+
Update a document as an auditable item graph vertex and add its content to blob storage.
|
|
104
|
+
If the blob data is different a new revision will be created.
|
|
105
|
+
For any other changes the current revision will be updated.
|
|
88
106
|
|
|
89
107
|
#### Parameters
|
|
90
108
|
|
|
91
|
-
#####
|
|
109
|
+
##### auditableItemGraphDocumentId
|
|
92
110
|
|
|
93
111
|
`string`
|
|
94
112
|
|
|
95
|
-
The auditable item graph vertex id
|
|
113
|
+
The auditable item graph vertex id which contains the document.
|
|
96
114
|
|
|
97
|
-
#####
|
|
115
|
+
##### blob?
|
|
116
|
+
|
|
117
|
+
`Uint8Array`\<`ArrayBufferLike`\>
|
|
118
|
+
|
|
119
|
+
The data to update the document with.
|
|
120
|
+
|
|
121
|
+
##### annotationObject?
|
|
122
|
+
|
|
123
|
+
`IJsonLdNodeObject`
|
|
124
|
+
|
|
125
|
+
Additional information to associate with the document.
|
|
126
|
+
|
|
127
|
+
##### auditableItemGraphEdges?
|
|
128
|
+
|
|
129
|
+
`object`[]
|
|
130
|
+
|
|
131
|
+
The auditable item graph vertices to connect the document to, if undefined retains current connections.
|
|
132
|
+
|
|
133
|
+
##### userIdentity?
|
|
134
|
+
|
|
135
|
+
`string`
|
|
136
|
+
|
|
137
|
+
The identity to perform the auditable item graph operation with.
|
|
138
|
+
|
|
139
|
+
##### nodeIdentity?
|
|
98
140
|
|
|
99
141
|
`string`
|
|
100
142
|
|
|
101
|
-
The
|
|
143
|
+
The node identity to use for vault operations.
|
|
144
|
+
|
|
145
|
+
#### Returns
|
|
146
|
+
|
|
147
|
+
`Promise`\<`void`\>
|
|
148
|
+
|
|
149
|
+
Nothing.
|
|
150
|
+
|
|
151
|
+
***
|
|
152
|
+
|
|
153
|
+
### get()
|
|
154
|
+
|
|
155
|
+
> **get**(`auditableItemGraphDocumentId`, `options?`, `cursor?`, `pageSize?`, `userIdentity?`, `nodeIdentity?`): `Promise`\<[`IDocumentList`](IDocumentList.md)\>
|
|
156
|
+
|
|
157
|
+
Get a document using it's auditable item graph vertex id and optional revision.
|
|
158
|
+
|
|
159
|
+
#### Parameters
|
|
160
|
+
|
|
161
|
+
##### auditableItemGraphDocumentId
|
|
162
|
+
|
|
163
|
+
`string`
|
|
164
|
+
|
|
165
|
+
The auditable item graph vertex id which contains the document.
|
|
102
166
|
|
|
103
167
|
##### options?
|
|
104
168
|
|
|
@@ -128,18 +192,30 @@ Flag to include the attestation information for the document, defaults to false.
|
|
|
128
192
|
|
|
129
193
|
Flag to include deleted documents, defaults to false.
|
|
130
194
|
|
|
131
|
-
######
|
|
195
|
+
###### extractRuleGroupId?
|
|
132
196
|
|
|
133
|
-
`
|
|
197
|
+
`string`
|
|
134
198
|
|
|
135
|
-
|
|
199
|
+
If provided will extract data from the document using the specified rule group id.
|
|
136
200
|
|
|
137
|
-
|
|
201
|
+
###### extractMimeType?
|
|
202
|
+
|
|
203
|
+
`string`
|
|
204
|
+
|
|
205
|
+
By default extraction will auto detect the mime type of the document, this can be used to override the detection.
|
|
206
|
+
|
|
207
|
+
##### cursor?
|
|
138
208
|
|
|
139
209
|
`string`
|
|
140
210
|
|
|
141
211
|
The cursor to get the next chunk of revisions.
|
|
142
212
|
|
|
213
|
+
##### pageSize?
|
|
214
|
+
|
|
215
|
+
`number`
|
|
216
|
+
|
|
217
|
+
Page size of items to return, defaults to 1 so only most recent is returned.
|
|
218
|
+
|
|
143
219
|
##### userIdentity?
|
|
144
220
|
|
|
145
221
|
`string`
|
|
@@ -154,42 +230,32 @@ The node identity to use for vault operations.
|
|
|
154
230
|
|
|
155
231
|
#### Returns
|
|
156
232
|
|
|
157
|
-
`Promise`\<[`
|
|
233
|
+
`Promise`\<[`IDocumentList`](IDocumentList.md)\>
|
|
158
234
|
|
|
159
235
|
The documents and revisions if requested, ordered by revision descending, cursor is set if there are more document revisions.
|
|
160
236
|
|
|
161
237
|
***
|
|
162
238
|
|
|
163
|
-
###
|
|
239
|
+
### removeRevision()
|
|
164
240
|
|
|
165
|
-
> **
|
|
241
|
+
> **removeRevision**(`auditableItemGraphDocumentId`, `revision`, `userIdentity?`, `nodeIdentity?`): `Promise`\<`void`\>
|
|
166
242
|
|
|
167
|
-
Remove
|
|
168
|
-
The
|
|
243
|
+
Remove an auditable item graph vertex using it's id.
|
|
244
|
+
The document dateDeleted will be set, but can still be queried with the includeRemoved flag.
|
|
169
245
|
|
|
170
246
|
#### Parameters
|
|
171
247
|
|
|
172
|
-
#####
|
|
248
|
+
##### auditableItemGraphDocumentId
|
|
173
249
|
|
|
174
250
|
`string`
|
|
175
251
|
|
|
176
|
-
The auditable item graph vertex id
|
|
177
|
-
|
|
178
|
-
##### identifier
|
|
179
|
-
|
|
180
|
-
`string`
|
|
181
|
-
|
|
182
|
-
The identifier of the document to remove.
|
|
183
|
-
|
|
184
|
-
##### options?
|
|
185
|
-
|
|
186
|
-
Additional options for the remove operation.
|
|
252
|
+
The auditable item graph vertex id which contains the document.
|
|
187
253
|
|
|
188
|
-
|
|
254
|
+
##### revision
|
|
189
255
|
|
|
190
|
-
`
|
|
256
|
+
`number`
|
|
191
257
|
|
|
192
|
-
|
|
258
|
+
The revision of the document to remove.
|
|
193
259
|
|
|
194
260
|
##### userIdentity?
|
|
195
261
|
|
|
@@ -213,39 +279,17 @@ Nothing.
|
|
|
213
279
|
|
|
214
280
|
### query()
|
|
215
281
|
|
|
216
|
-
> **query**(`
|
|
282
|
+
> **query**(`documentId`, `cursor?`, `pageSize?`, `userIdentity?`, `nodeIdentity?`): `Promise`\<`IAuditableItemGraphVertexList`\>
|
|
217
283
|
|
|
218
|
-
|
|
284
|
+
Find all the document with a specific id.
|
|
219
285
|
|
|
220
286
|
#### Parameters
|
|
221
287
|
|
|
222
|
-
#####
|
|
288
|
+
##### documentId
|
|
223
289
|
|
|
224
290
|
`string`
|
|
225
291
|
|
|
226
|
-
The
|
|
227
|
-
|
|
228
|
-
##### documentCodes?
|
|
229
|
-
|
|
230
|
-
`string`[]
|
|
231
|
-
|
|
232
|
-
The document codes to query for, if undefined gets all document codes.
|
|
233
|
-
|
|
234
|
-
##### options?
|
|
235
|
-
|
|
236
|
-
Additional options for the query operation.
|
|
237
|
-
|
|
238
|
-
###### includeMostRecentRevisions?
|
|
239
|
-
|
|
240
|
-
`boolean`
|
|
241
|
-
|
|
242
|
-
Include the most recent 5 revisions, use the individual get to retrieve more.
|
|
243
|
-
|
|
244
|
-
###### includeRemoved?
|
|
245
|
-
|
|
246
|
-
`boolean`
|
|
247
|
-
|
|
248
|
-
Flag to include deleted documents, defaults to false.
|
|
292
|
+
The document id to find in the graph.
|
|
249
293
|
|
|
250
294
|
##### cursor?
|
|
251
295
|
|
|
@@ -253,6 +297,12 @@ Flag to include deleted documents, defaults to false.
|
|
|
253
297
|
|
|
254
298
|
The cursor to get the next chunk of documents.
|
|
255
299
|
|
|
300
|
+
##### pageSize?
|
|
301
|
+
|
|
302
|
+
`number`
|
|
303
|
+
|
|
304
|
+
The page size to get the next chunk of documents.
|
|
305
|
+
|
|
256
306
|
##### userIdentity?
|
|
257
307
|
|
|
258
308
|
`string`
|
|
@@ -267,6 +317,6 @@ The node identity to use for vault operations.
|
|
|
267
317
|
|
|
268
318
|
#### Returns
|
|
269
319
|
|
|
270
|
-
`Promise
|
|
320
|
+
`Promise`\<`IAuditableItemGraphVertexList`\>
|
|
271
321
|
|
|
272
|
-
The
|
|
322
|
+
The graph vertices that contain documents referencing the specified document id.
|
|
@@ -1,23 +1,9 @@
|
|
|
1
|
-
# Interface:
|
|
1
|
+
# Interface: IDocumentManagementCreateRequest
|
|
2
2
|
|
|
3
|
-
Request to
|
|
3
|
+
Request to create a document as an auditable item graph vertex.
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### pathParams
|
|
8
|
-
|
|
9
|
-
> **pathParams**: `object`
|
|
10
|
-
|
|
11
|
-
The path parameters.
|
|
12
|
-
|
|
13
|
-
#### auditableItemGraphId
|
|
14
|
-
|
|
15
|
-
> **auditableItemGraphId**: `string`
|
|
16
|
-
|
|
17
|
-
The id of the auditable item graph vertex to store the document on.
|
|
18
|
-
|
|
19
|
-
***
|
|
20
|
-
|
|
21
7
|
### body
|
|
22
8
|
|
|
23
9
|
> **body**: `object`
|
|
@@ -54,8 +40,26 @@ The data to create the document with, in base64.
|
|
|
54
40
|
|
|
55
41
|
Additional information to associate with the document.
|
|
56
42
|
|
|
43
|
+
#### auditableItemGraphEdges?
|
|
44
|
+
|
|
45
|
+
> `optional` **auditableItemGraphEdges**: `object`[]
|
|
46
|
+
|
|
47
|
+
The auditable item graph vertices to connect the document to.
|
|
48
|
+
|
|
57
49
|
#### createAttestation?
|
|
58
50
|
|
|
59
51
|
> `optional` **createAttestation**: `boolean`
|
|
60
52
|
|
|
61
|
-
Flag to create an attestation for the document, defaults to false
|
|
53
|
+
Flag to create an attestation for the document, defaults to false.
|
|
54
|
+
|
|
55
|
+
#### addAlias?
|
|
56
|
+
|
|
57
|
+
> `optional` **addAlias**: `boolean`
|
|
58
|
+
|
|
59
|
+
Flag to add the document id as an alias to the aig vertex, defaults to true.
|
|
60
|
+
|
|
61
|
+
#### aliasAnnotationObject?
|
|
62
|
+
|
|
63
|
+
> `optional` **aliasAnnotationObject**: `IJsonLdNodeObject`
|
|
64
|
+
|
|
65
|
+
Annotation object for the alias.
|
|
@@ -22,15 +22,9 @@ The headers which can be used to determine the response data type.
|
|
|
22
22
|
|
|
23
23
|
The path parameters.
|
|
24
24
|
|
|
25
|
-
####
|
|
25
|
+
#### auditableItemGraphDocumentId
|
|
26
26
|
|
|
27
|
-
> **
|
|
28
|
-
|
|
29
|
-
The id of the auditable item graph vertex to store the document on.
|
|
30
|
-
|
|
31
|
-
#### documentId
|
|
32
|
-
|
|
33
|
-
> **documentId**: `string`
|
|
27
|
+
> **auditableItemGraphDocumentId**: `string`
|
|
34
28
|
|
|
35
29
|
The full id of the document to get.
|
|
36
30
|
|
|
@@ -90,20 +84,32 @@ Include deleted documents in the response.
|
|
|
90
84
|
false
|
|
91
85
|
```
|
|
92
86
|
|
|
93
|
-
####
|
|
87
|
+
#### extractRuleGroupId?
|
|
88
|
+
|
|
89
|
+
> `optional` **extractRuleGroupId**: `string`
|
|
90
|
+
|
|
91
|
+
If provided will extract data from the document using the specified rule group id.
|
|
92
|
+
|
|
93
|
+
#### extractMimeType?
|
|
94
|
+
|
|
95
|
+
> `optional` **extractMimeType**: `string`
|
|
96
|
+
|
|
97
|
+
By default extraction will auto detect the mime type of the document, this can be used to override the detection.
|
|
98
|
+
|
|
99
|
+
#### pageSize?
|
|
94
100
|
|
|
95
|
-
> `optional` **
|
|
101
|
+
> `optional` **pageSize**: `string`
|
|
96
102
|
|
|
97
|
-
|
|
103
|
+
Page size of items to return, defaults to 1 so only most recent is returned.
|
|
98
104
|
|
|
99
105
|
##### Default
|
|
100
106
|
|
|
101
107
|
```ts
|
|
102
|
-
|
|
108
|
+
1
|
|
103
109
|
```
|
|
104
110
|
|
|
105
|
-
####
|
|
111
|
+
#### cursor?
|
|
106
112
|
|
|
107
|
-
> `optional` **
|
|
113
|
+
> `optional` **cursor**: `string`
|
|
108
114
|
|
|
109
115
|
The cursor to get the next chunk of revisions.
|
|
@@ -16,58 +16,26 @@ The headers which can be used to determine the response data type.
|
|
|
16
16
|
|
|
17
17
|
***
|
|
18
18
|
|
|
19
|
-
###
|
|
19
|
+
### query
|
|
20
20
|
|
|
21
|
-
> **
|
|
22
|
-
|
|
23
|
-
The path parameters.
|
|
24
|
-
|
|
25
|
-
#### auditableItemGraphId
|
|
26
|
-
|
|
27
|
-
> **auditableItemGraphId**: `string`
|
|
28
|
-
|
|
29
|
-
The id of the auditable item graph vertex which contains the documents.
|
|
30
|
-
|
|
31
|
-
***
|
|
32
|
-
|
|
33
|
-
### query?
|
|
34
|
-
|
|
35
|
-
> `optional` **query**: `object`
|
|
21
|
+
> **query**: `object`
|
|
36
22
|
|
|
37
23
|
The query parameters.
|
|
38
24
|
|
|
39
|
-
####
|
|
40
|
-
|
|
41
|
-
> `optional` **documentCodes**: `string`
|
|
42
|
-
|
|
43
|
-
List of comma separated document codes to filter the query.
|
|
44
|
-
|
|
45
|
-
#### includeRemoved?
|
|
25
|
+
#### documentId
|
|
46
26
|
|
|
47
|
-
>
|
|
27
|
+
> **documentId**: `string`
|
|
48
28
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
##### Default
|
|
52
|
-
|
|
53
|
-
```ts
|
|
54
|
-
false
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
#### includeMostRecentRevisions?
|
|
58
|
-
|
|
59
|
-
> `optional` **includeMostRecentRevisions**: `boolean`
|
|
60
|
-
|
|
61
|
-
Include the most recent 5 revisions, use the individual get to retrieve more.
|
|
62
|
-
|
|
63
|
-
##### Default
|
|
64
|
-
|
|
65
|
-
```ts
|
|
66
|
-
false
|
|
67
|
-
```
|
|
29
|
+
The id of the document id we are trying to find.
|
|
68
30
|
|
|
69
31
|
#### cursor?
|
|
70
32
|
|
|
71
33
|
> `optional` **cursor**: `string`
|
|
72
34
|
|
|
73
35
|
The cursor to get the next chunk of documents.
|
|
36
|
+
|
|
37
|
+
#### pageSize?
|
|
38
|
+
|
|
39
|
+
> `optional` **pageSize**: `string`
|
|
40
|
+
|
|
41
|
+
The number of documents to return.
|