@twin.org/document-management-models 0.0.1-next.10 → 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/types/models/IDocument.d.ts +4 -0
- package/dist/types/models/IDocumentManagementComponent.d.ts +4 -0
- package/dist/types/models/api/IDocumentManagementGetRequest.d.ts +8 -0
- package/docs/changelog.md +7 -0
- package/docs/reference/interfaces/IDocument.md +8 -0
- package/docs/reference/interfaces/IDocumentManagementComponent.md +12 -0
- package/docs/reference/interfaces/IDocumentManagementGetRequest.md +12 -0
- package/package.json +1 -1
|
@@ -58,6 +58,10 @@ export interface IDocument {
|
|
|
58
58
|
* The additional JSON-LD for blob storage if it was requested.
|
|
59
59
|
*/
|
|
60
60
|
blobStorageEntry?: IBlobStorageEntry;
|
|
61
|
+
/**
|
|
62
|
+
* The data extracted from the document using data extraction services.
|
|
63
|
+
*/
|
|
64
|
+
extractedData?: unknown;
|
|
61
65
|
/**
|
|
62
66
|
* The attestation for the document if one was created.
|
|
63
67
|
*/
|
|
@@ -59,6 +59,8 @@ export interface IDocumentManagementComponent extends IComponent {
|
|
|
59
59
|
* @param options.includeBlobStorageData Flag to include the blob storage data for the document, defaults to false.
|
|
60
60
|
* @param options.includeAttestation Flag to include the attestation information for the document, defaults to false.
|
|
61
61
|
* @param options.includeRemoved Flag to include deleted documents, defaults to false.
|
|
62
|
+
* @param options.extractRuleGroupId If provided will extract data from the document using the specified rule group id.
|
|
63
|
+
* @param options.extractMimeType By default extraction will auto detect the mime type of the document, this can be used to override the detection.
|
|
62
64
|
* @param cursor The cursor to get the next chunk of revisions.
|
|
63
65
|
* @param pageSize Page size of items to return, defaults to 1 so only most recent is returned.
|
|
64
66
|
* @param userIdentity The identity to perform the auditable item graph operation with.
|
|
@@ -70,6 +72,8 @@ export interface IDocumentManagementComponent extends IComponent {
|
|
|
70
72
|
includeBlobStorageData?: boolean;
|
|
71
73
|
includeAttestation?: boolean;
|
|
72
74
|
includeRemoved?: boolean;
|
|
75
|
+
extractRuleGroupId?: string;
|
|
76
|
+
extractMimeType?: string;
|
|
73
77
|
}, cursor?: string, pageSize?: number, userIdentity?: string, nodeIdentity?: string): Promise<IDocumentList>;
|
|
74
78
|
/**
|
|
75
79
|
* Remove an auditable item graph vertex using it's id.
|
|
@@ -42,6 +42,14 @@ export interface IDocumentManagementGetRequest {
|
|
|
42
42
|
* @default false
|
|
43
43
|
*/
|
|
44
44
|
includeRemoved?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* If provided will extract data from the document using the specified rule group id.
|
|
47
|
+
*/
|
|
48
|
+
extractRuleGroupId?: string;
|
|
49
|
+
/**
|
|
50
|
+
* By default extraction will auto detect the mime type of the document, this can be used to override the detection.
|
|
51
|
+
*/
|
|
52
|
+
extractMimeType?: string;
|
|
45
53
|
/**
|
|
46
54
|
* Page size of items to return, defaults to 1 so only most recent is returned.
|
|
47
55
|
* @default 1
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @twin.org/document-management-models - Changelog
|
|
2
2
|
|
|
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
|
+
|
|
3
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)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -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`
|
|
@@ -192,6 +192,18 @@ Flag to include the attestation information for the document, defaults to false.
|
|
|
192
192
|
|
|
193
193
|
Flag to include deleted documents, defaults to false.
|
|
194
194
|
|
|
195
|
+
###### extractRuleGroupId?
|
|
196
|
+
|
|
197
|
+
`string`
|
|
198
|
+
|
|
199
|
+
If provided will extract data from the document using the specified rule group id.
|
|
200
|
+
|
|
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
|
+
|
|
195
207
|
##### cursor?
|
|
196
208
|
|
|
197
209
|
`string`
|
|
@@ -84,6 +84,18 @@ Include deleted documents in the response.
|
|
|
84
84
|
false
|
|
85
85
|
```
|
|
86
86
|
|
|
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
|
+
|
|
87
99
|
#### pageSize?
|
|
88
100
|
|
|
89
101
|
> `optional` **pageSize**: `string`
|
package/package.json
CHANGED