@twin.org/document-management-service 0.0.1-next.8 → 0.0.1
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 +728 -428
- package/dist/esm/index.mjs +728 -430
- package/dist/types/documentManagementRoutes.d.ts +20 -4
- package/dist/types/documentManagementService.d.ts +71 -36
- package/dist/types/models/IDocumentManagementStorageServiceConstructorOptions.d.ts +5 -0
- package/docs/changelog.md +195 -0
- package/docs/open-api/spec.json +609 -1470
- package/docs/reference/classes/DocumentManagementService.md +179 -63
- package/docs/reference/functions/{documentManagementSet.md → documentManagementCreate.md} +4 -4
- package/docs/reference/functions/documentManagementGetRevision.md +31 -0
- package/docs/reference/functions/documentManagementUpdate.md +31 -0
- package/docs/reference/index.md +3 -1
- package/docs/reference/interfaces/IDocumentManagementServiceConstructorOptions.md +14 -0
- package/locales/en.json +6 -5
- package/package.json +73 -15
|
@@ -8,9 +8,9 @@ Service for performing document management operations.
|
|
|
8
8
|
|
|
9
9
|
## Constructors
|
|
10
10
|
|
|
11
|
-
###
|
|
11
|
+
### Constructor
|
|
12
12
|
|
|
13
|
-
> **new DocumentManagementService**(`options
|
|
13
|
+
> **new DocumentManagementService**(`options?`): `DocumentManagementService`
|
|
14
14
|
|
|
15
15
|
Create a new instance of DocumentManagementService.
|
|
16
16
|
|
|
@@ -24,7 +24,7 @@ The options for the service.
|
|
|
24
24
|
|
|
25
25
|
#### Returns
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
`DocumentManagementService`
|
|
28
28
|
|
|
29
29
|
## Properties
|
|
30
30
|
|
|
@@ -48,22 +48,16 @@ Runtime name for the class.
|
|
|
48
48
|
|
|
49
49
|
## Methods
|
|
50
50
|
|
|
51
|
-
###
|
|
51
|
+
### create()
|
|
52
52
|
|
|
53
|
-
> **
|
|
53
|
+
> **create**(`documentId`, `documentIdFormat`, `documentCode`, `blob`, `annotationObject?`, `auditableItemGraphEdges?`, `options?`, `userIdentity?`, `nodeIdentity?`): `Promise`\<`string`\>
|
|
54
54
|
|
|
55
|
-
Store a document
|
|
55
|
+
Store a document as an auditable item graph vertex and add its content to blob storage.
|
|
56
56
|
If the document id already exists and the blob data is different a new revision will be created.
|
|
57
57
|
For any other changes the current revision will be updated.
|
|
58
58
|
|
|
59
59
|
#### Parameters
|
|
60
60
|
|
|
61
|
-
##### auditableItemGraphId
|
|
62
|
-
|
|
63
|
-
`string`
|
|
64
|
-
|
|
65
|
-
The auditable item graph vertex id to create the document on.
|
|
66
|
-
|
|
67
61
|
##### documentId
|
|
68
62
|
|
|
69
63
|
`string`
|
|
@@ -86,7 +80,7 @@ The code for the document type.
|
|
|
86
80
|
|
|
87
81
|
`Uint8Array`
|
|
88
82
|
|
|
89
|
-
The data to create the document.
|
|
83
|
+
The data to create the document with.
|
|
90
84
|
|
|
91
85
|
##### annotationObject?
|
|
92
86
|
|
|
@@ -94,6 +88,12 @@ The data to create the document.
|
|
|
94
88
|
|
|
95
89
|
Additional information to associate with the document.
|
|
96
90
|
|
|
91
|
+
##### auditableItemGraphEdges?
|
|
92
|
+
|
|
93
|
+
`object`[]
|
|
94
|
+
|
|
95
|
+
The auditable item graph vertices to connect the document to.
|
|
96
|
+
|
|
97
97
|
##### options?
|
|
98
98
|
|
|
99
99
|
Additional options for the set operation.
|
|
@@ -104,17 +104,17 @@ Additional options for the set operation.
|
|
|
104
104
|
|
|
105
105
|
Flag to create an attestation for the document, defaults to false.
|
|
106
106
|
|
|
107
|
-
######
|
|
107
|
+
###### addAlias?
|
|
108
108
|
|
|
109
109
|
`boolean`
|
|
110
110
|
|
|
111
|
-
|
|
111
|
+
Flag to add the document id as an alias to the aig vertex, defaults to true.
|
|
112
112
|
|
|
113
113
|
###### aliasAnnotationObject?
|
|
114
114
|
|
|
115
115
|
`IJsonLdNodeObject`
|
|
116
116
|
|
|
117
|
-
|
|
117
|
+
Annotation object for the alias.
|
|
118
118
|
|
|
119
119
|
##### userIdentity?
|
|
120
120
|
|
|
@@ -132,33 +132,85 @@ The node identity to use for vault operations.
|
|
|
132
132
|
|
|
133
133
|
`Promise`\<`string`\>
|
|
134
134
|
|
|
135
|
-
The
|
|
135
|
+
The auditable item graph vertex created for the document including its revision.
|
|
136
136
|
|
|
137
137
|
#### Implementation of
|
|
138
138
|
|
|
139
|
-
`IDocumentManagementComponent.
|
|
139
|
+
`IDocumentManagementComponent.create`
|
|
140
140
|
|
|
141
141
|
***
|
|
142
142
|
|
|
143
|
-
###
|
|
143
|
+
### update()
|
|
144
144
|
|
|
145
|
-
> **
|
|
145
|
+
> **update**(`auditableItemGraphDocumentId`, `blob?`, `annotationObject?`, `auditableItemGraphEdges?`, `userIdentity?`, `nodeIdentity?`): `Promise`\<`void`\>
|
|
146
146
|
|
|
147
|
-
|
|
147
|
+
Update a document as an auditable item graph vertex and add its content to blob storage.
|
|
148
|
+
If the blob data is different a new revision will be created.
|
|
149
|
+
For any other changes the current revision will be updated.
|
|
148
150
|
|
|
149
151
|
#### Parameters
|
|
150
152
|
|
|
151
|
-
#####
|
|
153
|
+
##### auditableItemGraphDocumentId
|
|
152
154
|
|
|
153
155
|
`string`
|
|
154
156
|
|
|
155
|
-
The auditable item graph vertex id
|
|
157
|
+
The auditable item graph vertex id which contains the document.
|
|
156
158
|
|
|
157
|
-
#####
|
|
159
|
+
##### blob?
|
|
160
|
+
|
|
161
|
+
`Uint8Array`\<`ArrayBufferLike`\>
|
|
162
|
+
|
|
163
|
+
The data to update the document with.
|
|
164
|
+
|
|
165
|
+
##### annotationObject?
|
|
166
|
+
|
|
167
|
+
`IJsonLdNodeObject`
|
|
168
|
+
|
|
169
|
+
Additional information to associate with the document.
|
|
170
|
+
|
|
171
|
+
##### auditableItemGraphEdges?
|
|
172
|
+
|
|
173
|
+
`object`[]
|
|
174
|
+
|
|
175
|
+
The auditable item graph vertices to connect the document to, if undefined retains current connections.
|
|
176
|
+
|
|
177
|
+
##### userIdentity?
|
|
178
|
+
|
|
179
|
+
`string`
|
|
180
|
+
|
|
181
|
+
The identity to perform the auditable item graph operation with.
|
|
182
|
+
|
|
183
|
+
##### nodeIdentity?
|
|
158
184
|
|
|
159
185
|
`string`
|
|
160
186
|
|
|
161
|
-
The
|
|
187
|
+
The node identity to use for vault operations.
|
|
188
|
+
|
|
189
|
+
#### Returns
|
|
190
|
+
|
|
191
|
+
`Promise`\<`void`\>
|
|
192
|
+
|
|
193
|
+
Nothing.
|
|
194
|
+
|
|
195
|
+
#### Implementation of
|
|
196
|
+
|
|
197
|
+
`IDocumentManagementComponent.update`
|
|
198
|
+
|
|
199
|
+
***
|
|
200
|
+
|
|
201
|
+
### get()
|
|
202
|
+
|
|
203
|
+
> **get**(`auditableItemGraphDocumentId`, `options?`, `cursor?`, `pageSize?`, `userIdentity?`, `nodeIdentity?`): `Promise`\<`IDocumentList`\>
|
|
204
|
+
|
|
205
|
+
Get a document using it's auditable item graph vertex id and optional revision.
|
|
206
|
+
|
|
207
|
+
#### Parameters
|
|
208
|
+
|
|
209
|
+
##### auditableItemGraphDocumentId
|
|
210
|
+
|
|
211
|
+
`string`
|
|
212
|
+
|
|
213
|
+
The auditable item graph vertex id which contains the document.
|
|
162
214
|
|
|
163
215
|
##### options?
|
|
164
216
|
|
|
@@ -188,18 +240,30 @@ Flag to include the attestation information for the document, defaults to false.
|
|
|
188
240
|
|
|
189
241
|
Flag to include deleted documents, defaults to false.
|
|
190
242
|
|
|
191
|
-
######
|
|
243
|
+
###### extractRuleGroupId?
|
|
192
244
|
|
|
193
|
-
`
|
|
245
|
+
`string`
|
|
246
|
+
|
|
247
|
+
If provided will extract data from the document using the specified rule group id.
|
|
194
248
|
|
|
195
|
-
|
|
249
|
+
###### extractMimeType?
|
|
196
250
|
|
|
197
|
-
|
|
251
|
+
`string`
|
|
252
|
+
|
|
253
|
+
By default extraction will auto detect the mime type of the document, this can be used to override the detection.
|
|
254
|
+
|
|
255
|
+
##### cursor?
|
|
198
256
|
|
|
199
257
|
`string`
|
|
200
258
|
|
|
201
259
|
The cursor to get the next chunk of revisions.
|
|
202
260
|
|
|
261
|
+
##### pageSize?
|
|
262
|
+
|
|
263
|
+
`number`
|
|
264
|
+
|
|
265
|
+
Page size of items to return, defaults to 1 so only most recent is returned.
|
|
266
|
+
|
|
203
267
|
##### userIdentity?
|
|
204
268
|
|
|
205
269
|
`string`
|
|
@@ -214,7 +278,7 @@ The node identity to use for vault operations.
|
|
|
214
278
|
|
|
215
279
|
#### Returns
|
|
216
280
|
|
|
217
|
-
`Promise`\<`
|
|
281
|
+
`Promise`\<`IDocumentList`\>
|
|
218
282
|
|
|
219
283
|
The documents and revisions if requested, ordered by revision descending, cursor is set if there are more document revisions.
|
|
220
284
|
|
|
@@ -224,36 +288,59 @@ The documents and revisions if requested, ordered by revision descending, cursor
|
|
|
224
288
|
|
|
225
289
|
***
|
|
226
290
|
|
|
227
|
-
###
|
|
291
|
+
### getRevision()
|
|
228
292
|
|
|
229
|
-
> **
|
|
293
|
+
> **getRevision**(`auditableItemGraphDocumentId`, `revision`, `options?`, `userIdentity?`, `nodeIdentity?`): `Promise`\<`IDocument`\>
|
|
230
294
|
|
|
231
|
-
|
|
232
|
-
The documents dateDeleted will be set, but can still be queried with the includeRemoved flag.
|
|
295
|
+
Get a document revision using it's auditable item graph vertex id.
|
|
233
296
|
|
|
234
297
|
#### Parameters
|
|
235
298
|
|
|
236
|
-
#####
|
|
299
|
+
##### auditableItemGraphDocumentId
|
|
237
300
|
|
|
238
301
|
`string`
|
|
239
302
|
|
|
240
|
-
The auditable item graph vertex id
|
|
303
|
+
The auditable item graph vertex id which contains the document.
|
|
241
304
|
|
|
242
|
-
#####
|
|
305
|
+
##### revision
|
|
243
306
|
|
|
244
|
-
`
|
|
307
|
+
`number`
|
|
245
308
|
|
|
246
|
-
The
|
|
309
|
+
The revision id for the document.
|
|
247
310
|
|
|
248
311
|
##### options?
|
|
249
312
|
|
|
250
|
-
Additional options for the
|
|
313
|
+
Additional options for the get operation.
|
|
251
314
|
|
|
252
|
-
######
|
|
315
|
+
###### includeBlobStorageMetadata?
|
|
253
316
|
|
|
254
317
|
`boolean`
|
|
255
318
|
|
|
256
|
-
Flag to
|
|
319
|
+
Flag to include the blob storage metadata for the document, defaults to false.
|
|
320
|
+
|
|
321
|
+
###### includeBlobStorageData?
|
|
322
|
+
|
|
323
|
+
`boolean`
|
|
324
|
+
|
|
325
|
+
Flag to include the blob storage data for the document, defaults to false.
|
|
326
|
+
|
|
327
|
+
###### includeAttestation?
|
|
328
|
+
|
|
329
|
+
`boolean`
|
|
330
|
+
|
|
331
|
+
Flag to include the attestation information for the document, defaults to false.
|
|
332
|
+
|
|
333
|
+
###### extractRuleGroupId?
|
|
334
|
+
|
|
335
|
+
`string`
|
|
336
|
+
|
|
337
|
+
If provided will extract data from the document using the specified rule group id.
|
|
338
|
+
|
|
339
|
+
###### extractMimeType?
|
|
340
|
+
|
|
341
|
+
`string`
|
|
342
|
+
|
|
343
|
+
By default extraction will auto detect the mime type of the document, this can be used to override the detection.
|
|
257
344
|
|
|
258
345
|
##### userIdentity?
|
|
259
346
|
|
|
@@ -269,51 +356,74 @@ The node identity to use for vault operations.
|
|
|
269
356
|
|
|
270
357
|
#### Returns
|
|
271
358
|
|
|
272
|
-
`Promise`\<`
|
|
359
|
+
`Promise`\<`IDocument`\>
|
|
273
360
|
|
|
274
|
-
|
|
361
|
+
The documents and revisions if requested, ordered by revision descending, cursor is set if there are more document revisions.
|
|
275
362
|
|
|
276
363
|
#### Implementation of
|
|
277
364
|
|
|
278
|
-
`IDocumentManagementComponent.
|
|
365
|
+
`IDocumentManagementComponent.getRevision`
|
|
279
366
|
|
|
280
367
|
***
|
|
281
368
|
|
|
282
|
-
###
|
|
369
|
+
### removeRevision()
|
|
283
370
|
|
|
284
|
-
> **
|
|
371
|
+
> **removeRevision**(`auditableItemGraphDocumentId`, `revision`, `userIdentity?`, `nodeIdentity?`): `Promise`\<`void`\>
|
|
285
372
|
|
|
286
|
-
|
|
373
|
+
Remove an auditable item graph vertex using it's id.
|
|
374
|
+
The document dateDeleted will be set, but can still be queried with the includeRemoved flag.
|
|
287
375
|
|
|
288
376
|
#### Parameters
|
|
289
377
|
|
|
290
|
-
#####
|
|
378
|
+
##### auditableItemGraphDocumentId
|
|
291
379
|
|
|
292
380
|
`string`
|
|
293
381
|
|
|
294
|
-
The auditable item graph vertex
|
|
382
|
+
The auditable item graph vertex id which contains the document.
|
|
295
383
|
|
|
296
|
-
#####
|
|
384
|
+
##### revision
|
|
297
385
|
|
|
298
|
-
`
|
|
386
|
+
`number`
|
|
299
387
|
|
|
300
|
-
The
|
|
388
|
+
The revision of the document to remove.
|
|
301
389
|
|
|
302
|
-
#####
|
|
390
|
+
##### userIdentity?
|
|
303
391
|
|
|
304
|
-
|
|
392
|
+
`string`
|
|
305
393
|
|
|
306
|
-
|
|
394
|
+
The identity to perform the auditable item graph operation with.
|
|
307
395
|
|
|
308
|
-
|
|
396
|
+
##### nodeIdentity?
|
|
309
397
|
|
|
310
|
-
|
|
398
|
+
`string`
|
|
311
399
|
|
|
312
|
-
|
|
400
|
+
The node identity to use for vault operations.
|
|
313
401
|
|
|
314
|
-
|
|
402
|
+
#### Returns
|
|
315
403
|
|
|
316
|
-
|
|
404
|
+
`Promise`\<`void`\>
|
|
405
|
+
|
|
406
|
+
Nothing.
|
|
407
|
+
|
|
408
|
+
#### Implementation of
|
|
409
|
+
|
|
410
|
+
`IDocumentManagementComponent.removeRevision`
|
|
411
|
+
|
|
412
|
+
***
|
|
413
|
+
|
|
414
|
+
### query()
|
|
415
|
+
|
|
416
|
+
> **query**(`documentId`, `cursor?`, `pageSize?`, `userIdentity?`, `nodeIdentity?`): `Promise`\<`IAuditableItemGraphVertexList`\>
|
|
417
|
+
|
|
418
|
+
Find all the document with a specific id.
|
|
419
|
+
|
|
420
|
+
#### Parameters
|
|
421
|
+
|
|
422
|
+
##### documentId
|
|
423
|
+
|
|
424
|
+
`string`
|
|
425
|
+
|
|
426
|
+
The document id to find in the graph.
|
|
317
427
|
|
|
318
428
|
##### cursor?
|
|
319
429
|
|
|
@@ -321,6 +431,12 @@ Flag to include deleted documents, defaults to false.
|
|
|
321
431
|
|
|
322
432
|
The cursor to get the next chunk of documents.
|
|
323
433
|
|
|
434
|
+
##### pageSize?
|
|
435
|
+
|
|
436
|
+
`number`
|
|
437
|
+
|
|
438
|
+
The page size to get the next chunk of documents.
|
|
439
|
+
|
|
324
440
|
##### userIdentity?
|
|
325
441
|
|
|
326
442
|
`string`
|
|
@@ -335,9 +451,9 @@ The node identity to use for vault operations.
|
|
|
335
451
|
|
|
336
452
|
#### Returns
|
|
337
453
|
|
|
338
|
-
`Promise`\<`
|
|
454
|
+
`Promise`\<`IAuditableItemGraphVertexList`\>
|
|
339
455
|
|
|
340
|
-
The
|
|
456
|
+
The graph vertices that contain documents referencing the specified document id.
|
|
341
457
|
|
|
342
458
|
#### Implementation of
|
|
343
459
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# Function:
|
|
1
|
+
# Function: documentManagementCreate()
|
|
2
2
|
|
|
3
|
-
> **
|
|
3
|
+
> **documentManagementCreate**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`ICreatedResponse`\>
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Create a document as an auditable item graph vertex.
|
|
6
6
|
|
|
7
7
|
## Parameters
|
|
8
8
|
|
|
@@ -20,7 +20,7 @@ The name of the component to use in the routes.
|
|
|
20
20
|
|
|
21
21
|
### request
|
|
22
22
|
|
|
23
|
-
`
|
|
23
|
+
`IDocumentManagementCreateRequest`
|
|
24
24
|
|
|
25
25
|
The request.
|
|
26
26
|
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Function: documentManagementGetRevision()
|
|
2
|
+
|
|
3
|
+
> **documentManagementGetRevision**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`IDocumentManagementGetRevisionResponse`\>
|
|
4
|
+
|
|
5
|
+
Get the document revision from the auditable item graph vertex.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
### httpRequestContext
|
|
10
|
+
|
|
11
|
+
`IHttpRequestContext`
|
|
12
|
+
|
|
13
|
+
The request context for the API.
|
|
14
|
+
|
|
15
|
+
### componentName
|
|
16
|
+
|
|
17
|
+
`string`
|
|
18
|
+
|
|
19
|
+
The name of the component to use in the routes.
|
|
20
|
+
|
|
21
|
+
### request
|
|
22
|
+
|
|
23
|
+
`IDocumentManagementGetRevisionRequest`
|
|
24
|
+
|
|
25
|
+
The request.
|
|
26
|
+
|
|
27
|
+
## Returns
|
|
28
|
+
|
|
29
|
+
`Promise`\<`IDocumentManagementGetRevisionResponse`\>
|
|
30
|
+
|
|
31
|
+
The response object with additional http response properties.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Function: documentManagementUpdate()
|
|
2
|
+
|
|
3
|
+
> **documentManagementUpdate**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`INoContentResponse`\>
|
|
4
|
+
|
|
5
|
+
Update the document from the auditable item graph vertex.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
### httpRequestContext
|
|
10
|
+
|
|
11
|
+
`IHttpRequestContext`
|
|
12
|
+
|
|
13
|
+
The request context for the API.
|
|
14
|
+
|
|
15
|
+
### componentName
|
|
16
|
+
|
|
17
|
+
`string`
|
|
18
|
+
|
|
19
|
+
The name of the component to use in the routes.
|
|
20
|
+
|
|
21
|
+
### request
|
|
22
|
+
|
|
23
|
+
`IDocumentManagementUpdateRequest`
|
|
24
|
+
|
|
25
|
+
The request.
|
|
26
|
+
|
|
27
|
+
## Returns
|
|
28
|
+
|
|
29
|
+
`Promise`\<`INoContentResponse`\>
|
|
30
|
+
|
|
31
|
+
The response object with additional http response properties.
|
package/docs/reference/index.md
CHANGED
|
@@ -17,7 +17,9 @@
|
|
|
17
17
|
## Functions
|
|
18
18
|
|
|
19
19
|
- [generateRestRoutesDocumentManagement](functions/generateRestRoutesDocumentManagement.md)
|
|
20
|
-
- [
|
|
20
|
+
- [documentManagementCreate](functions/documentManagementCreate.md)
|
|
21
21
|
- [documentManagementGet](functions/documentManagementGet.md)
|
|
22
|
+
- [documentManagementGetRevision](functions/documentManagementGetRevision.md)
|
|
23
|
+
- [documentManagementUpdate](functions/documentManagementUpdate.md)
|
|
22
24
|
- [documentManagementRemove](functions/documentManagementRemove.md)
|
|
23
25
|
- [documentManagementQuery](functions/documentManagementQuery.md)
|
|
@@ -46,6 +46,20 @@ attestation
|
|
|
46
46
|
|
|
47
47
|
***
|
|
48
48
|
|
|
49
|
+
### dataProcessingComponentType?
|
|
50
|
+
|
|
51
|
+
> `optional` **dataProcessingComponentType**: `string`
|
|
52
|
+
|
|
53
|
+
The type of the data processing component.
|
|
54
|
+
|
|
55
|
+
#### Default
|
|
56
|
+
|
|
57
|
+
```ts
|
|
58
|
+
data-processing
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
***
|
|
62
|
+
|
|
49
63
|
### config?
|
|
50
64
|
|
|
51
65
|
> `optional` **config**: [`IDocumentManagementServiceConfig`](IDocumentManagementServiceConfig.md)
|
package/locales/en.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"error": {
|
|
3
3
|
"documentManagementService": {
|
|
4
|
-
"
|
|
4
|
+
"createFailed": "Failed to create document",
|
|
5
|
+
"updateFailed": "Failed to update document",
|
|
5
6
|
"getFailed": "Failed to get document",
|
|
6
|
-
"
|
|
7
|
+
"getRevisionFailed": "Failed to get document revision",
|
|
8
|
+
"removeRevision": "Failed to remove document revision",
|
|
7
9
|
"queryFailed": "Failed to query document",
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"documentRevisionNotFound": "The document revision was not found \"{identifier}\"",
|
|
10
|
+
"documentRevisionNone": "There are no revisions in the document",
|
|
11
|
+
"documentRevisionNotFound": "There is no revision number \"{notFoundId}\" in the document",
|
|
11
12
|
"namespaceMismatch": "The namespace in the urn \"{id}\" does not match the namespace of the Document Management component \"{namespace}\""
|
|
12
13
|
}
|
|
13
14
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/document-management-service",
|
|
3
|
-
"version": "0.0.1
|
|
3
|
+
"version": "0.0.1",
|
|
4
4
|
"description": "Document management contract implementation and REST endpoint definitions",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -13,21 +13,79 @@
|
|
|
13
13
|
"engines": {
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"clean": "rimraf dist coverage docs/reference",
|
|
18
|
+
"build": "tsc",
|
|
19
|
+
"dev": "nodemon --watch src --ext ts --exec \"npm run build && npm run bundle:esm\"",
|
|
20
|
+
"test": "vitest --run --config ./vitest.config.ts --no-cache",
|
|
21
|
+
"coverage": "vitest --run --coverage --config ./vitest.config.ts --no-cache",
|
|
22
|
+
"bundle:esm": "rollup --config rollup.config.mjs --environment MODULE:esm",
|
|
23
|
+
"bundle:cjs": "rollup --config rollup.config.mjs --environment MODULE:cjs",
|
|
24
|
+
"bundle": "npm run bundle:esm && npm run bundle:cjs",
|
|
25
|
+
"docs:clean": "rimraf docs/reference",
|
|
26
|
+
"docs:generate": "typedoc",
|
|
27
|
+
"docs:api": "ts-to-openapi ./ts-to-openapi.json ./docs/open-api/spec.json",
|
|
28
|
+
"docs": "npm run docs:clean && npm run docs:generate && npm run docs:api",
|
|
29
|
+
"dist": "npm run clean && npm run build && npm run test && npm run bundle && npm run docs",
|
|
30
|
+
"dist:no-test": "npm run clean && npm run build && npm run bundle && npm run docs",
|
|
31
|
+
"prepare": "ts-patch install -s"
|
|
32
|
+
},
|
|
16
33
|
"dependencies": {
|
|
17
|
-
"@twin.org/api-models": "next",
|
|
18
|
-
"@twin.org/attestation-models": "
|
|
19
|
-
"@twin.org/auditable-item-graph-models": "
|
|
20
|
-
"@twin.org/blob-storage-models": "
|
|
21
|
-
"@twin.org/
|
|
22
|
-
"@twin.org/
|
|
23
|
-
"@twin.org/
|
|
24
|
-
"@twin.org/
|
|
25
|
-
"@twin.org/
|
|
26
|
-
"@twin.org/entity
|
|
27
|
-
"@twin.org/
|
|
28
|
-
"@twin.org/
|
|
29
|
-
"@twin.org/standards-
|
|
30
|
-
"@twin.org/
|
|
34
|
+
"@twin.org/api-models": "^0.0.2-next.1",
|
|
35
|
+
"@twin.org/attestation-models": "^0.0.1",
|
|
36
|
+
"@twin.org/auditable-item-graph-models": "^0.0.1",
|
|
37
|
+
"@twin.org/blob-storage-models": "^0.0.1",
|
|
38
|
+
"@twin.org/data-processing-models": "^0.0.1",
|
|
39
|
+
"@twin.org/document-management-models": "^0.0.1",
|
|
40
|
+
"@twin.org/core": "^0.0.1",
|
|
41
|
+
"@twin.org/crypto": "^0.0.1",
|
|
42
|
+
"@twin.org/data-json-ld": "^0.0.1",
|
|
43
|
+
"@twin.org/entity": "^0.0.1",
|
|
44
|
+
"@twin.org/entity-storage-models": "^0.0.1",
|
|
45
|
+
"@twin.org/nameof": "^0.0.1",
|
|
46
|
+
"@twin.org/standards-schema-org": "^0.0.1",
|
|
47
|
+
"@twin.org/standards-unece": "^0.0.1",
|
|
48
|
+
"@twin.org/web": "^0.0.1"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@twin.org/attestation-connector-nft": "^0.0.1",
|
|
52
|
+
"@twin.org/attestation-service": "^0.0.1",
|
|
53
|
+
"@twin.org/auditable-item-graph-service": "^0.0.1",
|
|
54
|
+
"@twin.org/background-task-models": "^0.0.2-next.2",
|
|
55
|
+
"@twin.org/background-task-connector-entity-storage": "^0.0.2-next.2",
|
|
56
|
+
"@twin.org/blob-storage-connector-memory": "^0.0.1",
|
|
57
|
+
"@twin.org/blob-storage-service": "^0.0.1",
|
|
58
|
+
"@twin.org/data-processing-converters": "^0.0.1",
|
|
59
|
+
"@twin.org/data-processing-extractors": "^0.0.1",
|
|
60
|
+
"@twin.org/data-processing-service": "^0.0.1",
|
|
61
|
+
"@twin.org/entity-storage-connector-memory": "^0.0.1",
|
|
62
|
+
"@twin.org/identity-connector-entity-storage": "^0.0.1",
|
|
63
|
+
"@twin.org/identity-models": "^0.0.1",
|
|
64
|
+
"@twin.org/immutable-proof-models": "^0.0.1",
|
|
65
|
+
"@twin.org/immutable-proof-service": "^0.0.1",
|
|
66
|
+
"@twin.org/modules": "^0.0.1",
|
|
67
|
+
"@twin.org/nft-connector-entity-storage": "^0.0.1",
|
|
68
|
+
"@twin.org/nft-models": "^0.0.1",
|
|
69
|
+
"@twin.org/nameof-transformer": "^0.0.1",
|
|
70
|
+
"@twin.org/nameof-vitest-plugin": "^0.0.1",
|
|
71
|
+
"@twin.org/ts-to-openapi": "^0.0.1",
|
|
72
|
+
"@twin.org/vault-models": "^0.0.1",
|
|
73
|
+
"@twin.org/vault-connector-entity-storage": "^0.0.1",
|
|
74
|
+
"@twin.org/verifiable-storage-models": "^0.0.1",
|
|
75
|
+
"@twin.org/verifiable-storage-connector-entity-storage": "^0.0.1",
|
|
76
|
+
"@twin.org/wallet-models": "^0.0.1",
|
|
77
|
+
"@twin.org/wallet-connector-entity-storage": "^0.0.1",
|
|
78
|
+
"@types/node": "24.0.1",
|
|
79
|
+
"@vitest/coverage-v8": "3.2.3",
|
|
80
|
+
"copyfiles": "2.4.1",
|
|
81
|
+
"nodemon": "3.1.10",
|
|
82
|
+
"rimraf": "6.0.1",
|
|
83
|
+
"rollup": "4.43.0",
|
|
84
|
+
"ts-patch": "3.3.0",
|
|
85
|
+
"typedoc": "0.28.5",
|
|
86
|
+
"typedoc-plugin-markdown": "4.6.4",
|
|
87
|
+
"typescript": "5.8.3",
|
|
88
|
+
"vitest": "3.2.3"
|
|
31
89
|
},
|
|
32
90
|
"main": "./dist/cjs/index.cjs",
|
|
33
91
|
"module": "./dist/esm/index.mjs",
|