@twin.org/document-management-rest-client 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.
@@ -92,6 +92,8 @@ class DocumentManagementClient extends apiCore.BaseRestClient {
92
92
  * @param options.includeBlobStorageData Flag to include the blob storage data for the document, defaults to false.
93
93
  * @param options.includeAttestation Flag to include the attestation information for the document, defaults to false.
94
94
  * @param options.includeRemoved Flag to include deleted documents, defaults to false.
95
+ * @param options.extractRuleGroupId If provided will extract data from the document using the specified rule group id.
96
+ * @param options.extractMimeType By default extraction will auto detect the mime type of the document, this can be used to override the detection.
95
97
  * @param cursor The cursor to get the next chunk of revisions.
96
98
  * @param pageSize Page size of items to return, defaults to 1 so only most recent is returned.
97
99
  * @returns The documents and revisions if requested, ordered by revision descending, cursor is set if there are more document revisions.
@@ -107,6 +109,8 @@ class DocumentManagementClient extends apiCore.BaseRestClient {
107
109
  includeBlobStorageData: options?.includeBlobStorageData,
108
110
  includeAttestation: options?.includeAttestation,
109
111
  includeRemoved: options?.includeRemoved,
112
+ extractRuleGroupId: options?.extractRuleGroupId,
113
+ extractMimeType: options?.extractMimeType,
110
114
  cursor,
111
115
  pageSize: core.Coerce.string(pageSize)
112
116
  }
@@ -90,6 +90,8 @@ class DocumentManagementClient extends BaseRestClient {
90
90
  * @param options.includeBlobStorageData Flag to include the blob storage data for the document, defaults to false.
91
91
  * @param options.includeAttestation Flag to include the attestation information for the document, defaults to false.
92
92
  * @param options.includeRemoved Flag to include deleted documents, defaults to false.
93
+ * @param options.extractRuleGroupId If provided will extract data from the document using the specified rule group id.
94
+ * @param options.extractMimeType By default extraction will auto detect the mime type of the document, this can be used to override the detection.
93
95
  * @param cursor The cursor to get the next chunk of revisions.
94
96
  * @param pageSize Page size of items to return, defaults to 1 so only most recent is returned.
95
97
  * @returns The documents and revisions if requested, ordered by revision descending, cursor is set if there are more document revisions.
@@ -105,6 +107,8 @@ class DocumentManagementClient extends BaseRestClient {
105
107
  includeBlobStorageData: options?.includeBlobStorageData,
106
108
  includeAttestation: options?.includeAttestation,
107
109
  includeRemoved: options?.includeRemoved,
110
+ extractRuleGroupId: options?.extractRuleGroupId,
111
+ extractMimeType: options?.extractMimeType,
108
112
  cursor,
109
113
  pageSize: Coerce.string(pageSize)
110
114
  }
@@ -65,6 +65,8 @@ export declare class DocumentManagementClient extends BaseRestClient implements
65
65
  * @param options.includeBlobStorageData Flag to include the blob storage data for the document, defaults to false.
66
66
  * @param options.includeAttestation Flag to include the attestation information for the document, defaults to false.
67
67
  * @param options.includeRemoved Flag to include deleted documents, defaults to false.
68
+ * @param options.extractRuleGroupId If provided will extract data from the document using the specified rule group id.
69
+ * @param options.extractMimeType By default extraction will auto detect the mime type of the document, this can be used to override the detection.
68
70
  * @param cursor The cursor to get the next chunk of revisions.
69
71
  * @param pageSize Page size of items to return, defaults to 1 so only most recent is returned.
70
72
  * @returns The documents and revisions if requested, ordered by revision descending, cursor is set if there are more document revisions.
@@ -74,6 +76,8 @@ export declare class DocumentManagementClient extends BaseRestClient implements
74
76
  includeBlobStorageData?: boolean;
75
77
  includeAttestation?: boolean;
76
78
  includeRemoved?: boolean;
79
+ extractRuleGroupId?: string;
80
+ extractMimeType?: string;
77
81
  }, cursor?: string, pageSize?: number): Promise<IDocumentList>;
78
82
  /**
79
83
  * Remove an auditable item graph vertex using it's id.
package/docs/changelog.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @twin.org/document-management-rest-client - Changelog
2
2
 
3
+ ## [0.0.1-next.11](https://github.com/twinfoundation/document-management/compare/document-management-rest-client-v0.0.1-next.10...document-management-rest-client-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
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/document-management-models bumped from 0.0.1-next.10 to 0.0.1-next.11
16
+
3
17
  ## [0.0.1-next.10](https://github.com/twinfoundation/document-management/compare/document-management-rest-client-v0.0.1-next.9...document-management-rest-client-v0.0.1-next.10) (2025-04-25)
4
18
 
5
19
 
@@ -216,6 +216,18 @@ Flag to include the attestation information for the document, defaults to false.
216
216
 
217
217
  Flag to include deleted documents, defaults to false.
218
218
 
219
+ ###### extractRuleGroupId?
220
+
221
+ `string`
222
+
223
+ If provided will extract data from the document using the specified rule group id.
224
+
225
+ ###### extractMimeType?
226
+
227
+ `string`
228
+
229
+ By default extraction will auto detect the mime type of the document, this can be used to override the detection.
230
+
219
231
  ##### cursor?
220
232
 
221
233
  `string`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/document-management-rest-client",
3
- "version": "0.0.1-next.10",
3
+ "version": "0.0.1-next.11",
4
4
  "description": "Document management contract implementation which can connect to REST endpoints",
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,7 +19,7 @@
19
19
  "@twin.org/auditable-item-graph-models": "next",
20
20
  "@twin.org/core": "next",
21
21
  "@twin.org/data-json-ld": "next",
22
- "@twin.org/document-management-models": "0.0.1-next.10",
22
+ "@twin.org/document-management-models": "0.0.1-next.11",
23
23
  "@twin.org/entity": "next",
24
24
  "@twin.org/nameof": "next",
25
25
  "@twin.org/standards-unece": "next",