@twin.org/document-management-service 0.0.2-next.4 → 0.0.3-next.2
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/es/documentManagementRoutes.js +584 -0
- package/dist/es/documentManagementRoutes.js.map +1 -0
- package/dist/es/documentManagementService.js +622 -0
- package/dist/es/documentManagementService.js.map +1 -0
- package/dist/es/index.js +8 -0
- package/dist/es/index.js.map +1 -0
- package/dist/es/models/IDocumentManagementServiceConfig.js +4 -0
- package/dist/es/models/IDocumentManagementServiceConfig.js.map +1 -0
- package/dist/es/models/IDocumentManagementStorageServiceConstructorOptions.js +2 -0
- package/dist/es/models/IDocumentManagementStorageServiceConstructorOptions.js.map +1 -0
- package/dist/es/restEntryPoints.js +10 -0
- package/dist/es/restEntryPoints.js.map +1 -0
- package/dist/types/documentManagementService.d.ts +12 -21
- package/dist/types/index.d.ts +5 -5
- package/dist/types/models/IDocumentManagementStorageServiceConstructorOptions.d.ts +1 -1
- package/docs/changelog.md +48 -0
- package/docs/open-api/spec.json +64 -90
- package/docs/reference/classes/DocumentManagementService.md +25 -79
- package/package.json +7 -8
- package/dist/cjs/index.cjs +0 -1233
- package/dist/esm/index.mjs +0 -1222
package/docs/open-api/spec.json
CHANGED
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
"blobHash": "sha256:E3Duqrp6bHojSx+CzDttAToAiP1eFkCDAPBbKLABVGM=",
|
|
244
244
|
"blobStorageId": "blob:memory:1370eeaaba7a6c7a234b1f82cc3b6d013a0088fd5e16408300f05b28b0015463",
|
|
245
245
|
"dateCreated": "2024-08-22T04:13:20.000Z",
|
|
246
|
-
"
|
|
246
|
+
"organizationIdentity": "did:entity-storage:0x0101010101010101010101010101010101010101010101010101010101010101",
|
|
247
247
|
"userIdentity": "did:entity-storage:0x0404040404040404040404040404040404040404040404040404040404040404"
|
|
248
248
|
}
|
|
249
249
|
}
|
|
@@ -451,10 +451,7 @@
|
|
|
451
451
|
"in": "query",
|
|
452
452
|
"required": false,
|
|
453
453
|
"schema": {
|
|
454
|
-
"type":
|
|
455
|
-
"boolean",
|
|
456
|
-
"string"
|
|
457
|
-
]
|
|
454
|
+
"type": "string"
|
|
458
455
|
}
|
|
459
456
|
},
|
|
460
457
|
{
|
|
@@ -463,10 +460,7 @@
|
|
|
463
460
|
"in": "query",
|
|
464
461
|
"required": false,
|
|
465
462
|
"schema": {
|
|
466
|
-
"type":
|
|
467
|
-
"boolean",
|
|
468
|
-
"string"
|
|
469
|
-
]
|
|
463
|
+
"type": "string"
|
|
470
464
|
}
|
|
471
465
|
},
|
|
472
466
|
{
|
|
@@ -475,10 +469,7 @@
|
|
|
475
469
|
"in": "query",
|
|
476
470
|
"required": false,
|
|
477
471
|
"schema": {
|
|
478
|
-
"type":
|
|
479
|
-
"boolean",
|
|
480
|
-
"string"
|
|
481
|
-
]
|
|
472
|
+
"type": "string"
|
|
482
473
|
}
|
|
483
474
|
},
|
|
484
475
|
{
|
|
@@ -487,10 +478,7 @@
|
|
|
487
478
|
"in": "query",
|
|
488
479
|
"required": false,
|
|
489
480
|
"schema": {
|
|
490
|
-
"type":
|
|
491
|
-
"boolean",
|
|
492
|
-
"string"
|
|
493
|
-
]
|
|
481
|
+
"type": "string"
|
|
494
482
|
}
|
|
495
483
|
},
|
|
496
484
|
{
|
|
@@ -582,7 +570,7 @@
|
|
|
582
570
|
"@type": "DigitalDocument",
|
|
583
571
|
"name": "myfile.pdf"
|
|
584
572
|
},
|
|
585
|
-
"
|
|
573
|
+
"organizationIdentity": "did:entity-storage:0x6363636363636363636363636363636363636363636363636363636363636363",
|
|
586
574
|
"userIdentity": "did:entity-storage:0x6363636363636363636363636363636363636363636363636363636363636363"
|
|
587
575
|
}
|
|
588
576
|
]
|
|
@@ -624,7 +612,7 @@
|
|
|
624
612
|
"@type": "DigitalDocument",
|
|
625
613
|
"name": "myfile.pdf"
|
|
626
614
|
},
|
|
627
|
-
"
|
|
615
|
+
"organizationIdentity": "did:entity-storage:0x6363636363636363636363636363636363636363636363636363636363636363",
|
|
628
616
|
"userIdentity": "did:entity-storage:0x6363636363636363636363636363636363636363636363636363636363636363"
|
|
629
617
|
}
|
|
630
618
|
]
|
|
@@ -781,7 +769,7 @@
|
|
|
781
769
|
"@type": "DigitalDocument",
|
|
782
770
|
"name": "myfile.pdf"
|
|
783
771
|
},
|
|
784
|
-
"
|
|
772
|
+
"organizationIdentity": "did:entity-storage:0x6363636363636363636363636363636363636363636363636363636363636363",
|
|
785
773
|
"userIdentity": "did:entity-storage:0x6363636363636363636363636363636363636363636363636363636363636363"
|
|
786
774
|
}
|
|
787
775
|
}
|
|
@@ -813,7 +801,7 @@
|
|
|
813
801
|
"@type": "DigitalDocument",
|
|
814
802
|
"name": "myfile.pdf"
|
|
815
803
|
},
|
|
816
|
-
"
|
|
804
|
+
"organizationIdentity": "did:entity-storage:0x6363636363636363636363636363636363636363636363636363636363636363",
|
|
817
805
|
"userIdentity": "did:entity-storage:0x6363636363636363636363636363636363636363636363636363636363636363"
|
|
818
806
|
}
|
|
819
807
|
}
|
|
@@ -1030,9 +1018,6 @@
|
|
|
1030
1018
|
"@context": {
|
|
1031
1019
|
"type": "array",
|
|
1032
1020
|
"minItems": 3,
|
|
1033
|
-
"items": {
|
|
1034
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
1035
|
-
},
|
|
1036
1021
|
"description": "JSON-LD Context.",
|
|
1037
1022
|
"prefixItems": [
|
|
1038
1023
|
{
|
|
@@ -1047,7 +1032,10 @@
|
|
|
1047
1032
|
"type": "string",
|
|
1048
1033
|
"const": "https://schema.org"
|
|
1049
1034
|
}
|
|
1050
|
-
]
|
|
1035
|
+
],
|
|
1036
|
+
"items": {
|
|
1037
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
1038
|
+
}
|
|
1051
1039
|
},
|
|
1052
1040
|
"type": {
|
|
1053
1041
|
"type": "string",
|
|
@@ -1109,9 +1097,9 @@
|
|
|
1109
1097
|
"type": "string",
|
|
1110
1098
|
"description": "The date/time of when the document was deleted, as we never actually remove items."
|
|
1111
1099
|
},
|
|
1112
|
-
"
|
|
1100
|
+
"organizationIdentity": {
|
|
1113
1101
|
"type": "string",
|
|
1114
|
-
"description": "The
|
|
1102
|
+
"description": "The organization which added the document to the graph."
|
|
1115
1103
|
},
|
|
1116
1104
|
"userIdentity": {
|
|
1117
1105
|
"type": "string",
|
|
@@ -1127,9 +1115,7 @@
|
|
|
1127
1115
|
"documentRevision",
|
|
1128
1116
|
"blobStorageId",
|
|
1129
1117
|
"blobHash",
|
|
1130
|
-
"dateCreated"
|
|
1131
|
-
"nodeIdentity",
|
|
1132
|
-
"userIdentity"
|
|
1118
|
+
"dateCreated"
|
|
1133
1119
|
],
|
|
1134
1120
|
"additionalProperties": false,
|
|
1135
1121
|
"description": "Interface describing a document."
|
|
@@ -1140,9 +1126,6 @@
|
|
|
1140
1126
|
"@context": {
|
|
1141
1127
|
"type": "array",
|
|
1142
1128
|
"minItems": 3,
|
|
1143
|
-
"items": {
|
|
1144
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
1145
|
-
},
|
|
1146
1129
|
"description": "JSON-LD Context.",
|
|
1147
1130
|
"prefixItems": [
|
|
1148
1131
|
{
|
|
@@ -1157,7 +1140,10 @@
|
|
|
1157
1140
|
"type": "string",
|
|
1158
1141
|
"const": "https://schema.twindev.org/common/"
|
|
1159
1142
|
}
|
|
1160
|
-
]
|
|
1143
|
+
],
|
|
1144
|
+
"items": {
|
|
1145
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
1146
|
+
}
|
|
1161
1147
|
},
|
|
1162
1148
|
"type": {
|
|
1163
1149
|
"type": "string",
|
|
@@ -1166,23 +1152,17 @@
|
|
|
1166
1152
|
},
|
|
1167
1153
|
"itemListElement": {
|
|
1168
1154
|
"type": "array",
|
|
1169
|
-
"items":
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
"$ref": "#/components/schemas/Document"
|
|
1174
|
-
}
|
|
1175
|
-
]
|
|
1155
|
+
"items": {
|
|
1156
|
+
"$ref": "#/components/schemas/Document"
|
|
1157
|
+
},
|
|
1158
|
+
"description": "The list of documents."
|
|
1176
1159
|
},
|
|
1177
1160
|
"edges": {
|
|
1178
1161
|
"type": "array",
|
|
1179
|
-
"items":
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
"type": "string"
|
|
1184
|
-
}
|
|
1185
|
-
]
|
|
1162
|
+
"items": {
|
|
1163
|
+
"type": "string"
|
|
1164
|
+
},
|
|
1165
|
+
"description": "The ids of the other vertices which are connected to the document."
|
|
1186
1166
|
},
|
|
1187
1167
|
"nextItem": {
|
|
1188
1168
|
"type": "string",
|
|
@@ -1220,28 +1200,25 @@
|
|
|
1220
1200
|
},
|
|
1221
1201
|
"auditableItemGraphEdges": {
|
|
1222
1202
|
"type": "array",
|
|
1223
|
-
"items":
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
"properties": {
|
|
1229
|
-
"targetId": {
|
|
1230
|
-
"type": "string"
|
|
1231
|
-
},
|
|
1232
|
-
"addAlias": {
|
|
1233
|
-
"type": "boolean"
|
|
1234
|
-
},
|
|
1235
|
-
"aliasAnnotationObject": {
|
|
1236
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1237
|
-
}
|
|
1203
|
+
"items": {
|
|
1204
|
+
"type": "object",
|
|
1205
|
+
"properties": {
|
|
1206
|
+
"targetId": {
|
|
1207
|
+
"type": "string"
|
|
1238
1208
|
},
|
|
1239
|
-
"
|
|
1240
|
-
"
|
|
1241
|
-
|
|
1242
|
-
"
|
|
1243
|
-
|
|
1244
|
-
|
|
1209
|
+
"addAlias": {
|
|
1210
|
+
"type": "boolean"
|
|
1211
|
+
},
|
|
1212
|
+
"aliasAnnotationObject": {
|
|
1213
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1214
|
+
}
|
|
1215
|
+
},
|
|
1216
|
+
"required": [
|
|
1217
|
+
"targetId"
|
|
1218
|
+
],
|
|
1219
|
+
"additionalProperties": false
|
|
1220
|
+
},
|
|
1221
|
+
"description": "The auditable item graph vertices to connect the document to."
|
|
1245
1222
|
},
|
|
1246
1223
|
"createAttestation": {
|
|
1247
1224
|
"type": "boolean",
|
|
@@ -1275,28 +1252,25 @@
|
|
|
1275
1252
|
},
|
|
1276
1253
|
"auditableItemGraphEdges": {
|
|
1277
1254
|
"type": "array",
|
|
1278
|
-
"items":
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
"properties": {
|
|
1284
|
-
"targetId": {
|
|
1285
|
-
"type": "string"
|
|
1286
|
-
},
|
|
1287
|
-
"addAlias": {
|
|
1288
|
-
"type": "boolean"
|
|
1289
|
-
},
|
|
1290
|
-
"aliasAnnotationObject": {
|
|
1291
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1292
|
-
}
|
|
1255
|
+
"items": {
|
|
1256
|
+
"type": "object",
|
|
1257
|
+
"properties": {
|
|
1258
|
+
"targetId": {
|
|
1259
|
+
"type": "string"
|
|
1293
1260
|
},
|
|
1294
|
-
"
|
|
1295
|
-
"
|
|
1296
|
-
|
|
1297
|
-
"
|
|
1298
|
-
|
|
1299
|
-
|
|
1261
|
+
"addAlias": {
|
|
1262
|
+
"type": "boolean"
|
|
1263
|
+
},
|
|
1264
|
+
"aliasAnnotationObject": {
|
|
1265
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1266
|
+
}
|
|
1267
|
+
},
|
|
1268
|
+
"required": [
|
|
1269
|
+
"targetId"
|
|
1270
|
+
],
|
|
1271
|
+
"additionalProperties": false
|
|
1272
|
+
},
|
|
1273
|
+
"description": "The auditable item graph vertices to connect the document to."
|
|
1300
1274
|
}
|
|
1301
1275
|
},
|
|
1302
1276
|
"additionalProperties": false,
|
|
@@ -36,9 +36,27 @@ Runtime name for the class.
|
|
|
36
36
|
|
|
37
37
|
## Methods
|
|
38
38
|
|
|
39
|
+
### className()
|
|
40
|
+
|
|
41
|
+
> **className**(): `string`
|
|
42
|
+
|
|
43
|
+
Returns the class name of the component.
|
|
44
|
+
|
|
45
|
+
#### Returns
|
|
46
|
+
|
|
47
|
+
`string`
|
|
48
|
+
|
|
49
|
+
The class name of the component.
|
|
50
|
+
|
|
51
|
+
#### Implementation of
|
|
52
|
+
|
|
53
|
+
`IDocumentManagementComponent.className`
|
|
54
|
+
|
|
55
|
+
***
|
|
56
|
+
|
|
39
57
|
### create()
|
|
40
58
|
|
|
41
|
-
> **create**(`documentId`, `documentIdFormat`, `documentCode`, `blob`, `annotationObject?`, `auditableItemGraphEdges?`, `options
|
|
59
|
+
> **create**(`documentId`, `documentIdFormat`, `documentCode`, `blob`, `annotationObject?`, `auditableItemGraphEdges?`, `options?`): `Promise`\<`string`\>
|
|
42
60
|
|
|
43
61
|
Store a document as an auditable item graph vertex and add its content to blob storage.
|
|
44
62
|
If the document id already exists and the blob data is different a new revision will be created.
|
|
@@ -56,7 +74,7 @@ The document id to create.
|
|
|
56
74
|
|
|
57
75
|
The format of the document identifier.
|
|
58
76
|
|
|
59
|
-
`
|
|
77
|
+
`string` | `undefined`
|
|
60
78
|
|
|
61
79
|
##### documentCode
|
|
62
80
|
|
|
@@ -104,18 +122,6 @@ Flag to add the document id as an alias to the aig vertex, defaults to true.
|
|
|
104
122
|
|
|
105
123
|
Annotation object for the alias.
|
|
106
124
|
|
|
107
|
-
##### userIdentity?
|
|
108
|
-
|
|
109
|
-
`string`
|
|
110
|
-
|
|
111
|
-
The identity to perform the auditable item graph operation with.
|
|
112
|
-
|
|
113
|
-
##### nodeIdentity?
|
|
114
|
-
|
|
115
|
-
`string`
|
|
116
|
-
|
|
117
|
-
The node identity to use for vault operations.
|
|
118
|
-
|
|
119
125
|
#### Returns
|
|
120
126
|
|
|
121
127
|
`Promise`\<`string`\>
|
|
@@ -130,7 +136,7 @@ The auditable item graph vertex created for the document including its revision.
|
|
|
130
136
|
|
|
131
137
|
### update()
|
|
132
138
|
|
|
133
|
-
> **update**(`auditableItemGraphDocumentId`, `blob?`, `annotationObject?`, `auditableItemGraphEdges
|
|
139
|
+
> **update**(`auditableItemGraphDocumentId`, `blob?`, `annotationObject?`, `auditableItemGraphEdges?`): `Promise`\<`void`\>
|
|
134
140
|
|
|
135
141
|
Update a document as an auditable item graph vertex and add its content to blob storage.
|
|
136
142
|
If the blob data is different a new revision will be created.
|
|
@@ -162,18 +168,6 @@ Additional information to associate with the document.
|
|
|
162
168
|
|
|
163
169
|
The auditable item graph vertices to connect the document to, if undefined retains current connections.
|
|
164
170
|
|
|
165
|
-
##### userIdentity?
|
|
166
|
-
|
|
167
|
-
`string`
|
|
168
|
-
|
|
169
|
-
The identity to perform the auditable item graph operation with.
|
|
170
|
-
|
|
171
|
-
##### nodeIdentity?
|
|
172
|
-
|
|
173
|
-
`string`
|
|
174
|
-
|
|
175
|
-
The node identity to use for vault operations.
|
|
176
|
-
|
|
177
171
|
#### Returns
|
|
178
172
|
|
|
179
173
|
`Promise`\<`void`\>
|
|
@@ -188,7 +182,7 @@ Nothing.
|
|
|
188
182
|
|
|
189
183
|
### get()
|
|
190
184
|
|
|
191
|
-
> **get**(`auditableItemGraphDocumentId`, `options?`, `cursor?`, `limit
|
|
185
|
+
> **get**(`auditableItemGraphDocumentId`, `options?`, `cursor?`, `limit?`): `Promise`\<`IDocumentList`\>
|
|
192
186
|
|
|
193
187
|
Get a document using it's auditable item graph vertex id and optional revision.
|
|
194
188
|
|
|
@@ -252,18 +246,6 @@ The cursor to get the next chunk of revisions.
|
|
|
252
246
|
|
|
253
247
|
Limit the number of items to return, defaults to 1 so only most recent is returned.
|
|
254
248
|
|
|
255
|
-
##### userIdentity?
|
|
256
|
-
|
|
257
|
-
`string`
|
|
258
|
-
|
|
259
|
-
The identity to perform the auditable item graph operation with.
|
|
260
|
-
|
|
261
|
-
##### nodeIdentity?
|
|
262
|
-
|
|
263
|
-
`string`
|
|
264
|
-
|
|
265
|
-
The node identity to use for vault operations.
|
|
266
|
-
|
|
267
249
|
#### Returns
|
|
268
250
|
|
|
269
251
|
`Promise`\<`IDocumentList`\>
|
|
@@ -278,7 +260,7 @@ The documents and revisions if requested, ordered by revision descending, cursor
|
|
|
278
260
|
|
|
279
261
|
### getRevision()
|
|
280
262
|
|
|
281
|
-
> **getRevision**(`auditableItemGraphDocumentId`, `revision`, `options
|
|
263
|
+
> **getRevision**(`auditableItemGraphDocumentId`, `revision`, `options?`): `Promise`\<`IDocument`\>
|
|
282
264
|
|
|
283
265
|
Get a document revision using it's auditable item graph vertex id.
|
|
284
266
|
|
|
@@ -330,18 +312,6 @@ If provided will extract data from the document using the specified rule group i
|
|
|
330
312
|
|
|
331
313
|
By default extraction will auto detect the mime type of the document, this can be used to override the detection.
|
|
332
314
|
|
|
333
|
-
##### userIdentity?
|
|
334
|
-
|
|
335
|
-
`string`
|
|
336
|
-
|
|
337
|
-
The identity to perform the auditable item graph operation with.
|
|
338
|
-
|
|
339
|
-
##### nodeIdentity?
|
|
340
|
-
|
|
341
|
-
`string`
|
|
342
|
-
|
|
343
|
-
The node identity to use for vault operations.
|
|
344
|
-
|
|
345
315
|
#### Returns
|
|
346
316
|
|
|
347
317
|
`Promise`\<`IDocument`\>
|
|
@@ -356,7 +326,7 @@ The documents and revisions if requested, ordered by revision descending, cursor
|
|
|
356
326
|
|
|
357
327
|
### removeRevision()
|
|
358
328
|
|
|
359
|
-
> **removeRevision**(`auditableItemGraphDocumentId`, `revision
|
|
329
|
+
> **removeRevision**(`auditableItemGraphDocumentId`, `revision`): `Promise`\<`void`\>
|
|
360
330
|
|
|
361
331
|
Remove an auditable item graph vertex using it's id.
|
|
362
332
|
The document dateDeleted will be set, but can still be queried with the includeRemoved flag.
|
|
@@ -375,18 +345,6 @@ The auditable item graph vertex id which contains the document.
|
|
|
375
345
|
|
|
376
346
|
The revision of the document to remove.
|
|
377
347
|
|
|
378
|
-
##### userIdentity?
|
|
379
|
-
|
|
380
|
-
`string`
|
|
381
|
-
|
|
382
|
-
The identity to perform the auditable item graph operation with.
|
|
383
|
-
|
|
384
|
-
##### nodeIdentity?
|
|
385
|
-
|
|
386
|
-
`string`
|
|
387
|
-
|
|
388
|
-
The node identity to use for vault operations.
|
|
389
|
-
|
|
390
348
|
#### Returns
|
|
391
349
|
|
|
392
350
|
`Promise`\<`void`\>
|
|
@@ -401,7 +359,7 @@ Nothing.
|
|
|
401
359
|
|
|
402
360
|
### query()
|
|
403
361
|
|
|
404
|
-
> **query**(`documentId`, `cursor?`, `limit
|
|
362
|
+
> **query**(`documentId`, `cursor?`, `limit?`): `Promise`\<`IAuditableItemGraphVertexList`\>
|
|
405
363
|
|
|
406
364
|
Find all the document with a specific id.
|
|
407
365
|
|
|
@@ -425,18 +383,6 @@ The cursor to get the next chunk of documents.
|
|
|
425
383
|
|
|
426
384
|
The limit to get the next chunk of documents.
|
|
427
385
|
|
|
428
|
-
##### userIdentity?
|
|
429
|
-
|
|
430
|
-
`string`
|
|
431
|
-
|
|
432
|
-
The identity to perform the auditable item graph operation with.
|
|
433
|
-
|
|
434
|
-
##### nodeIdentity?
|
|
435
|
-
|
|
436
|
-
`string`
|
|
437
|
-
|
|
438
|
-
The node identity to use for vault operations.
|
|
439
|
-
|
|
440
386
|
#### Returns
|
|
441
387
|
|
|
442
388
|
`Promise`\<`IAuditableItemGraphVertexList`\>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/document-management-service",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3-next.2",
|
|
4
4
|
"description": "Document management contract implementation and REST endpoint definitions",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,11 +18,12 @@
|
|
|
18
18
|
"@twin.org/attestation-models": "next",
|
|
19
19
|
"@twin.org/auditable-item-graph-models": "next",
|
|
20
20
|
"@twin.org/blob-storage-models": "next",
|
|
21
|
+
"@twin.org/context": "next",
|
|
21
22
|
"@twin.org/core": "next",
|
|
22
23
|
"@twin.org/crypto": "next",
|
|
23
24
|
"@twin.org/data-json-ld": "next",
|
|
24
25
|
"@twin.org/data-processing-models": "next",
|
|
25
|
-
"@twin.org/document-management-models": "0.0.
|
|
26
|
+
"@twin.org/document-management-models": "0.0.3-next.2",
|
|
26
27
|
"@twin.org/entity": "next",
|
|
27
28
|
"@twin.org/entity-storage-models": "next",
|
|
28
29
|
"@twin.org/nameof": "next",
|
|
@@ -30,20 +31,18 @@
|
|
|
30
31
|
"@twin.org/standards-unece": "next",
|
|
31
32
|
"@twin.org/web": "next"
|
|
32
33
|
},
|
|
33
|
-
"main": "./dist/
|
|
34
|
-
"module": "./dist/esm/index.mjs",
|
|
34
|
+
"main": "./dist/es/index.js",
|
|
35
35
|
"types": "./dist/types/index.d.ts",
|
|
36
36
|
"exports": {
|
|
37
37
|
".": {
|
|
38
38
|
"types": "./dist/types/index.d.ts",
|
|
39
|
-
"
|
|
40
|
-
"
|
|
39
|
+
"import": "./dist/es/index.js",
|
|
40
|
+
"default": "./dist/es/index.js"
|
|
41
41
|
},
|
|
42
42
|
"./locales/*.json": "./locales/*.json"
|
|
43
43
|
},
|
|
44
44
|
"files": [
|
|
45
|
-
"dist/
|
|
46
|
-
"dist/esm",
|
|
45
|
+
"dist/es",
|
|
47
46
|
"dist/types",
|
|
48
47
|
"locales",
|
|
49
48
|
"docs"
|