@openfilz-sdk/typescript-ee 1.9.6 → 1.9.8

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.
Files changed (128) hide show
  1. package/.openapi-generator/FILES +26 -0
  2. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
  3. package/README.md +27 -4
  4. package/api/aichat-api.ts +82 -9
  5. package/api/document-controller-api.ts +30 -14
  6. package/api/document-insights-api.ts +357 -0
  7. package/api/esign-api.ts +9 -9
  8. package/api/settings-api.ts +142 -0
  9. package/api/smart-filing-api.ts +421 -0
  10. package/api.ts +2 -0
  11. package/dist/api/aichat-api.d.ts +37 -4
  12. package/dist/api/aichat-api.js +77 -9
  13. package/dist/api/document-controller-api.d.ts +16 -8
  14. package/dist/api/document-controller-api.js +28 -14
  15. package/dist/api/document-insights-api.d.ts +170 -0
  16. package/dist/api/document-insights-api.js +346 -0
  17. package/dist/api/esign-api.d.ts +4 -4
  18. package/dist/api/esign-api.js +9 -9
  19. package/dist/api/settings-api.d.ts +62 -0
  20. package/dist/api/settings-api.js +132 -0
  21. package/dist/api/smart-filing-api.d.ts +197 -0
  22. package/dist/api/smart-filing-api.js +409 -0
  23. package/dist/api.d.ts +2 -0
  24. package/dist/api.js +2 -0
  25. package/dist/esm/api/aichat-api.d.ts +37 -4
  26. package/dist/esm/api/aichat-api.js +77 -9
  27. package/dist/esm/api/document-controller-api.d.ts +16 -8
  28. package/dist/esm/api/document-controller-api.js +28 -14
  29. package/dist/esm/api/document-insights-api.d.ts +170 -0
  30. package/dist/esm/api/document-insights-api.js +339 -0
  31. package/dist/esm/api/esign-api.d.ts +4 -4
  32. package/dist/esm/api/esign-api.js +9 -9
  33. package/dist/esm/api/settings-api.d.ts +62 -0
  34. package/dist/esm/api/settings-api.js +132 -0
  35. package/dist/esm/api/smart-filing-api.d.ts +197 -0
  36. package/dist/esm/api/smart-filing-api.js +402 -0
  37. package/dist/esm/api.d.ts +2 -0
  38. package/dist/esm/api.js +2 -0
  39. package/dist/esm/models/ai-preferences-view.d.ts +16 -0
  40. package/dist/esm/models/ai-preferences-view.js +14 -0
  41. package/dist/esm/models/auto-file-job-view.d.ts +25 -0
  42. package/dist/esm/models/auto-file-job-view.js +14 -0
  43. package/dist/esm/models/auto-file-request.d.ts +15 -0
  44. package/dist/esm/models/auto-file-request.js +14 -0
  45. package/dist/esm/models/auto-file-ticket.d.ts +15 -0
  46. package/dist/esm/models/auto-file-ticket.js +14 -0
  47. package/dist/esm/models/document-insight-view.d.ts +33 -0
  48. package/dist/esm/models/document-insight-view.js +14 -0
  49. package/dist/esm/models/filing-outcome.d.ts +25 -0
  50. package/dist/esm/models/filing-outcome.js +14 -0
  51. package/dist/esm/models/index.d.ts +11 -0
  52. package/dist/esm/models/index.js +11 -0
  53. package/dist/esm/models/insight-backfill-request.d.ts +15 -0
  54. package/dist/esm/models/insight-backfill-request.js +14 -0
  55. package/dist/esm/models/insight-backfill-status.d.ts +23 -0
  56. package/dist/esm/models/insight-backfill-status.js +14 -0
  57. package/dist/esm/models/insight-category-update.d.ts +14 -0
  58. package/dist/esm/models/insight-category-update.js +14 -0
  59. package/dist/esm/models/reorganization-by-kind-request.d.ts +14 -0
  60. package/dist/esm/models/reorganization-by-kind-request.js +14 -0
  61. package/dist/esm/models/save-ai-preferences-request.d.ts +15 -0
  62. package/dist/esm/models/save-ai-preferences-request.js +14 -0
  63. package/dist/esm/models/settings.d.ts +3 -0
  64. package/dist/esm/models/tus-finalize-request.d.ts +1 -0
  65. package/dist/esm/models/upload-response.d.ts +2 -0
  66. package/dist/models/ai-preferences-view.d.ts +16 -0
  67. package/dist/models/ai-preferences-view.js +15 -0
  68. package/dist/models/auto-file-job-view.d.ts +25 -0
  69. package/dist/models/auto-file-job-view.js +15 -0
  70. package/dist/models/auto-file-request.d.ts +15 -0
  71. package/dist/models/auto-file-request.js +15 -0
  72. package/dist/models/auto-file-ticket.d.ts +15 -0
  73. package/dist/models/auto-file-ticket.js +15 -0
  74. package/dist/models/document-insight-view.d.ts +33 -0
  75. package/dist/models/document-insight-view.js +15 -0
  76. package/dist/models/filing-outcome.d.ts +25 -0
  77. package/dist/models/filing-outcome.js +15 -0
  78. package/dist/models/index.d.ts +11 -0
  79. package/dist/models/index.js +11 -0
  80. package/dist/models/insight-backfill-request.d.ts +15 -0
  81. package/dist/models/insight-backfill-request.js +15 -0
  82. package/dist/models/insight-backfill-status.d.ts +23 -0
  83. package/dist/models/insight-backfill-status.js +15 -0
  84. package/dist/models/insight-category-update.d.ts +14 -0
  85. package/dist/models/insight-category-update.js +15 -0
  86. package/dist/models/reorganization-by-kind-request.d.ts +14 -0
  87. package/dist/models/reorganization-by-kind-request.js +15 -0
  88. package/dist/models/save-ai-preferences-request.d.ts +15 -0
  89. package/dist/models/save-ai-preferences-request.js +15 -0
  90. package/dist/models/settings.d.ts +3 -0
  91. package/dist/models/tus-finalize-request.d.ts +1 -0
  92. package/dist/models/upload-response.d.ts +2 -0
  93. package/docs/AIChatApi.md +57 -4
  94. package/docs/AiPreferencesView.md +24 -0
  95. package/docs/AutoFileJobView.md +40 -0
  96. package/docs/AutoFileRequest.md +22 -0
  97. package/docs/AutoFileTicket.md +22 -0
  98. package/docs/DocumentControllerApi.md +6 -0
  99. package/docs/DocumentInsightView.md +54 -0
  100. package/docs/DocumentInsightsApi.md +219 -0
  101. package/docs/ESignApi.md +4 -4
  102. package/docs/FilingOutcome.md +42 -0
  103. package/docs/InsightBackfillRequest.md +22 -0
  104. package/docs/InsightBackfillStatus.md +38 -0
  105. package/docs/InsightCategoryUpdate.md +20 -0
  106. package/docs/ReorganizationByKindRequest.md +20 -0
  107. package/docs/SaveAiPreferencesRequest.md +22 -0
  108. package/docs/Settings.md +6 -0
  109. package/docs/SettingsApi.md +97 -0
  110. package/docs/SmartFilingApi.md +264 -0
  111. package/docs/TusFinalizeRequest.md +2 -0
  112. package/docs/UploadResponse.md +2 -0
  113. package/models/ai-preferences-view.ts +22 -0
  114. package/models/auto-file-job-view.ts +33 -0
  115. package/models/auto-file-request.ts +21 -0
  116. package/models/auto-file-ticket.ts +21 -0
  117. package/models/document-insight-view.ts +37 -0
  118. package/models/filing-outcome.ts +31 -0
  119. package/models/index.ts +11 -0
  120. package/models/insight-backfill-request.ts +21 -0
  121. package/models/insight-backfill-status.ts +29 -0
  122. package/models/insight-category-update.ts +20 -0
  123. package/models/reorganization-by-kind-request.ts +20 -0
  124. package/models/save-ai-preferences-request.ts +21 -0
  125. package/models/settings.ts +3 -0
  126. package/models/tus-finalize-request.ts +1 -0
  127. package/models/upload-response.ts +4 -0
  128. package/package.json +1 -1
@@ -0,0 +1,402 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * openfilz-api
5
+ * API for Document Management System
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import globalAxios from 'axios';
24
+ // Some imports not used depending on template conditions
25
+ // @ts-ignore
26
+ import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
27
+ // @ts-ignore
28
+ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
29
+ /**
30
+ * SmartFilingApi - axios parameter creator
31
+ */
32
+ export const SmartFilingApiAxiosParamCreator = function (configuration) {
33
+ return {
34
+ /**
35
+ * Runs smart filing for the given documents (e.g. the contents of an Inbox) and returns the job at once.
36
+ * @summary File existing documents on demand
37
+ * @param {AutoFileRequest} autoFileRequest
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ */
41
+ file: (autoFileRequest_1, ...args_1) => __awaiter(this, [autoFileRequest_1, ...args_1], void 0, function* (autoFileRequest, options = {}) {
42
+ // verify required parameter 'autoFileRequest' is not null or undefined
43
+ assertParamExists('file', 'autoFileRequest', autoFileRequest);
44
+ const localVarPath = `/api/v1/ai/auto-file`;
45
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
46
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
47
+ let baseOptions;
48
+ if (configuration) {
49
+ baseOptions = configuration.baseOptions;
50
+ }
51
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
52
+ const localVarHeaderParameter = {};
53
+ const localVarQueryParameter = {};
54
+ // authentication keycloak_auth required
55
+ // http bearer authentication required
56
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
57
+ localVarHeaderParameter['Content-Type'] = 'application/json';
58
+ localVarHeaderParameter['Accept'] = 'application/json';
59
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
60
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
61
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
62
+ localVarRequestOptions.data = serializeDataIfNeeded(autoFileRequest, localVarRequestOptions, configuration);
63
+ return {
64
+ url: toPathString(localVarUrlObj),
65
+ options: localVarRequestOptions,
66
+ };
67
+ }),
68
+ /**
69
+ *
70
+ * @summary Progress and outcome of a filing job
71
+ * @param {string} jobId
72
+ * @param {*} [options] Override http request option.
73
+ * @throws {RequiredError}
74
+ */
75
+ job: (jobId_1, ...args_1) => __awaiter(this, [jobId_1, ...args_1], void 0, function* (jobId, options = {}) {
76
+ // verify required parameter 'jobId' is not null or undefined
77
+ assertParamExists('job', 'jobId', jobId);
78
+ const localVarPath = `/api/v1/ai/auto-file/{jobId}`
79
+ .replace('{jobId}', encodeURIComponent(String(jobId)));
80
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
81
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
82
+ let baseOptions;
83
+ if (configuration) {
84
+ baseOptions = configuration.baseOptions;
85
+ }
86
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
87
+ const localVarHeaderParameter = {};
88
+ const localVarQueryParameter = {};
89
+ // authentication keycloak_auth required
90
+ // http bearer authentication required
91
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
92
+ localVarHeaderParameter['Accept'] = 'application/json';
93
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
94
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
95
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
96
+ return {
97
+ url: toPathString(localVarUrlObj),
98
+ options: localVarRequestOptions,
99
+ };
100
+ }),
101
+ /**
102
+ *
103
+ * @summary The latest filing record of a document (the \"Filed by OpenFilz\" chip)
104
+ * @param {string} documentId
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ lastFiling: (documentId_1, ...args_1) => __awaiter(this, [documentId_1, ...args_1], void 0, function* (documentId, options = {}) {
109
+ // verify required parameter 'documentId' is not null or undefined
110
+ assertParamExists('lastFiling', 'documentId', documentId);
111
+ const localVarPath = `/api/v1/ai/auto-file/document/{documentId}`
112
+ .replace('{documentId}', encodeURIComponent(String(documentId)));
113
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
114
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
115
+ let baseOptions;
116
+ if (configuration) {
117
+ baseOptions = configuration.baseOptions;
118
+ }
119
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
120
+ const localVarHeaderParameter = {};
121
+ const localVarQueryParameter = {};
122
+ // authentication keycloak_auth required
123
+ // http bearer authentication required
124
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
125
+ localVarHeaderParameter['Accept'] = 'application/json';
126
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
127
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
128
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
129
+ return {
130
+ url: toPathString(localVarUrlObj),
131
+ options: localVarRequestOptions,
132
+ };
133
+ }),
134
+ /**
135
+ *
136
+ * @summary Move every document the job filed back where it came from
137
+ * @param {string} jobId
138
+ * @param {*} [options] Override http request option.
139
+ * @throws {RequiredError}
140
+ */
141
+ undo: (jobId_1, ...args_1) => __awaiter(this, [jobId_1, ...args_1], void 0, function* (jobId, options = {}) {
142
+ // verify required parameter 'jobId' is not null or undefined
143
+ assertParamExists('undo', 'jobId', jobId);
144
+ const localVarPath = `/api/v1/ai/auto-file/{jobId}/undo`
145
+ .replace('{jobId}', encodeURIComponent(String(jobId)));
146
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
147
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
148
+ let baseOptions;
149
+ if (configuration) {
150
+ baseOptions = configuration.baseOptions;
151
+ }
152
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
153
+ const localVarHeaderParameter = {};
154
+ const localVarQueryParameter = {};
155
+ // authentication keycloak_auth required
156
+ // http bearer authentication required
157
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
158
+ localVarHeaderParameter['Accept'] = 'application/json';
159
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
160
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
161
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
162
+ return {
163
+ url: toPathString(localVarUrlObj),
164
+ options: localVarRequestOptions,
165
+ };
166
+ }),
167
+ /**
168
+ *
169
+ * @summary Move one filed document back (the chip\'s \"Move back\")
170
+ * @param {string} planId
171
+ * @param {*} [options] Override http request option.
172
+ * @throws {RequiredError}
173
+ */
174
+ undoFiling: (planId_1, ...args_1) => __awaiter(this, [planId_1, ...args_1], void 0, function* (planId, options = {}) {
175
+ // verify required parameter 'planId' is not null or undefined
176
+ assertParamExists('undoFiling', 'planId', planId);
177
+ const localVarPath = `/api/v1/ai/auto-file/filing/{planId}/undo`
178
+ .replace('{planId}', encodeURIComponent(String(planId)));
179
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
180
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
181
+ let baseOptions;
182
+ if (configuration) {
183
+ baseOptions = configuration.baseOptions;
184
+ }
185
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
186
+ const localVarHeaderParameter = {};
187
+ const localVarQueryParameter = {};
188
+ // authentication keycloak_auth required
189
+ // http bearer authentication required
190
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
191
+ localVarHeaderParameter['Accept'] = 'application/json';
192
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
193
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
194
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
195
+ return {
196
+ url: toPathString(localVarUrlObj),
197
+ options: localVarRequestOptions,
198
+ };
199
+ }),
200
+ };
201
+ };
202
+ /**
203
+ * SmartFilingApi - functional programming interface
204
+ */
205
+ export const SmartFilingApiFp = function (configuration) {
206
+ const localVarAxiosParamCreator = SmartFilingApiAxiosParamCreator(configuration);
207
+ return {
208
+ /**
209
+ * Runs smart filing for the given documents (e.g. the contents of an Inbox) and returns the job at once.
210
+ * @summary File existing documents on demand
211
+ * @param {AutoFileRequest} autoFileRequest
212
+ * @param {*} [options] Override http request option.
213
+ * @throws {RequiredError}
214
+ */
215
+ file(autoFileRequest, options) {
216
+ return __awaiter(this, void 0, void 0, function* () {
217
+ var _a, _b, _c;
218
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.file(autoFileRequest, options);
219
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
220
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SmartFilingApi.file']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
221
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
222
+ });
223
+ },
224
+ /**
225
+ *
226
+ * @summary Progress and outcome of a filing job
227
+ * @param {string} jobId
228
+ * @param {*} [options] Override http request option.
229
+ * @throws {RequiredError}
230
+ */
231
+ job(jobId, options) {
232
+ return __awaiter(this, void 0, void 0, function* () {
233
+ var _a, _b, _c;
234
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.job(jobId, options);
235
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
236
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SmartFilingApi.job']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
237
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
238
+ });
239
+ },
240
+ /**
241
+ *
242
+ * @summary The latest filing record of a document (the \"Filed by OpenFilz\" chip)
243
+ * @param {string} documentId
244
+ * @param {*} [options] Override http request option.
245
+ * @throws {RequiredError}
246
+ */
247
+ lastFiling(documentId, options) {
248
+ return __awaiter(this, void 0, void 0, function* () {
249
+ var _a, _b, _c;
250
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.lastFiling(documentId, options);
251
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
252
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SmartFilingApi.lastFiling']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
253
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
254
+ });
255
+ },
256
+ /**
257
+ *
258
+ * @summary Move every document the job filed back where it came from
259
+ * @param {string} jobId
260
+ * @param {*} [options] Override http request option.
261
+ * @throws {RequiredError}
262
+ */
263
+ undo(jobId, options) {
264
+ return __awaiter(this, void 0, void 0, function* () {
265
+ var _a, _b, _c;
266
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.undo(jobId, options);
267
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
268
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SmartFilingApi.undo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
269
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
270
+ });
271
+ },
272
+ /**
273
+ *
274
+ * @summary Move one filed document back (the chip\'s \"Move back\")
275
+ * @param {string} planId
276
+ * @param {*} [options] Override http request option.
277
+ * @throws {RequiredError}
278
+ */
279
+ undoFiling(planId, options) {
280
+ return __awaiter(this, void 0, void 0, function* () {
281
+ var _a, _b, _c;
282
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.undoFiling(planId, options);
283
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
284
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SmartFilingApi.undoFiling']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
285
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
286
+ });
287
+ },
288
+ };
289
+ };
290
+ /**
291
+ * SmartFilingApi - factory interface
292
+ */
293
+ export const SmartFilingApiFactory = function (configuration, basePath, axios) {
294
+ const localVarFp = SmartFilingApiFp(configuration);
295
+ return {
296
+ /**
297
+ * Runs smart filing for the given documents (e.g. the contents of an Inbox) and returns the job at once.
298
+ * @summary File existing documents on demand
299
+ * @param {AutoFileRequest} autoFileRequest
300
+ * @param {*} [options] Override http request option.
301
+ * @throws {RequiredError}
302
+ */
303
+ file(autoFileRequest, options) {
304
+ return localVarFp.file(autoFileRequest, options).then((request) => request(axios, basePath));
305
+ },
306
+ /**
307
+ *
308
+ * @summary Progress and outcome of a filing job
309
+ * @param {string} jobId
310
+ * @param {*} [options] Override http request option.
311
+ * @throws {RequiredError}
312
+ */
313
+ job(jobId, options) {
314
+ return localVarFp.job(jobId, options).then((request) => request(axios, basePath));
315
+ },
316
+ /**
317
+ *
318
+ * @summary The latest filing record of a document (the \"Filed by OpenFilz\" chip)
319
+ * @param {string} documentId
320
+ * @param {*} [options] Override http request option.
321
+ * @throws {RequiredError}
322
+ */
323
+ lastFiling(documentId, options) {
324
+ return localVarFp.lastFiling(documentId, options).then((request) => request(axios, basePath));
325
+ },
326
+ /**
327
+ *
328
+ * @summary Move every document the job filed back where it came from
329
+ * @param {string} jobId
330
+ * @param {*} [options] Override http request option.
331
+ * @throws {RequiredError}
332
+ */
333
+ undo(jobId, options) {
334
+ return localVarFp.undo(jobId, options).then((request) => request(axios, basePath));
335
+ },
336
+ /**
337
+ *
338
+ * @summary Move one filed document back (the chip\'s \"Move back\")
339
+ * @param {string} planId
340
+ * @param {*} [options] Override http request option.
341
+ * @throws {RequiredError}
342
+ */
343
+ undoFiling(planId, options) {
344
+ return localVarFp.undoFiling(planId, options).then((request) => request(axios, basePath));
345
+ },
346
+ };
347
+ };
348
+ /**
349
+ * SmartFilingApi - object-oriented interface
350
+ */
351
+ export class SmartFilingApi extends BaseAPI {
352
+ /**
353
+ * Runs smart filing for the given documents (e.g. the contents of an Inbox) and returns the job at once.
354
+ * @summary File existing documents on demand
355
+ * @param {AutoFileRequest} autoFileRequest
356
+ * @param {*} [options] Override http request option.
357
+ * @throws {RequiredError}
358
+ */
359
+ file(autoFileRequest, options) {
360
+ return SmartFilingApiFp(this.configuration).file(autoFileRequest, options).then((request) => request(this.axios, this.basePath));
361
+ }
362
+ /**
363
+ *
364
+ * @summary Progress and outcome of a filing job
365
+ * @param {string} jobId
366
+ * @param {*} [options] Override http request option.
367
+ * @throws {RequiredError}
368
+ */
369
+ job(jobId, options) {
370
+ return SmartFilingApiFp(this.configuration).job(jobId, options).then((request) => request(this.axios, this.basePath));
371
+ }
372
+ /**
373
+ *
374
+ * @summary The latest filing record of a document (the \"Filed by OpenFilz\" chip)
375
+ * @param {string} documentId
376
+ * @param {*} [options] Override http request option.
377
+ * @throws {RequiredError}
378
+ */
379
+ lastFiling(documentId, options) {
380
+ return SmartFilingApiFp(this.configuration).lastFiling(documentId, options).then((request) => request(this.axios, this.basePath));
381
+ }
382
+ /**
383
+ *
384
+ * @summary Move every document the job filed back where it came from
385
+ * @param {string} jobId
386
+ * @param {*} [options] Override http request option.
387
+ * @throws {RequiredError}
388
+ */
389
+ undo(jobId, options) {
390
+ return SmartFilingApiFp(this.configuration).undo(jobId, options).then((request) => request(this.axios, this.basePath));
391
+ }
392
+ /**
393
+ *
394
+ * @summary Move one filed document back (the chip\'s \"Move back\")
395
+ * @param {string} planId
396
+ * @param {*} [options] Override http request option.
397
+ * @throws {RequiredError}
398
+ */
399
+ undoFiling(planId, options) {
400
+ return SmartFilingApiFp(this.configuration).undoFiling(planId, options).then((request) => request(this.axios, this.basePath));
401
+ }
402
+ }
package/dist/esm/api.d.ts CHANGED
@@ -18,6 +18,7 @@ export * from './api/dashboard-api';
18
18
  export * from './api/delegated-browse-grants-admin-api';
19
19
  export * from './api/delegated-browse-grants-end-user-api';
20
20
  export * from './api/document-controller-api';
21
+ export * from './api/document-insights-api';
21
22
  export * from './api/document-suggestion-controller-api';
22
23
  export * from './api/document-version-controller-api';
23
24
  export * from './api/esign-api';
@@ -36,6 +37,7 @@ export * from './api/scan-agent-api';
36
37
  export * from './api/scanner-proxy-api';
37
38
  export * from './api/search-administration-api';
38
39
  export * from './api/settings-api';
40
+ export * from './api/smart-filing-api';
39
41
  export * from './api/tus-controller-api';
40
42
  export * from './api/upload-token-controller-api';
41
43
  export * from './api/user-privacy-api';
package/dist/esm/api.js CHANGED
@@ -20,6 +20,7 @@ export * from './api/dashboard-api';
20
20
  export * from './api/delegated-browse-grants-admin-api';
21
21
  export * from './api/delegated-browse-grants-end-user-api';
22
22
  export * from './api/document-controller-api';
23
+ export * from './api/document-insights-api';
23
24
  export * from './api/document-suggestion-controller-api';
24
25
  export * from './api/document-version-controller-api';
25
26
  export * from './api/esign-api';
@@ -38,6 +39,7 @@ export * from './api/scan-agent-api';
38
39
  export * from './api/scanner-proxy-api';
39
40
  export * from './api/search-administration-api';
40
41
  export * from './api/settings-api';
42
+ export * from './api/smart-filing-api';
41
43
  export * from './api/tus-controller-api';
42
44
  export * from './api/upload-token-controller-api';
43
45
  export * from './api/user-privacy-api';
@@ -0,0 +1,16 @@
1
+ /**
2
+ * openfilz-api
3
+ * API for Document Management System
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export interface AiPreferencesView {
13
+ 'autoFileAvailable'?: boolean;
14
+ 'autoFile'?: boolean;
15
+ 'autoFileNewFolders'?: boolean;
16
+ }
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * openfilz-api
5
+ * API for Document Management System
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,25 @@
1
+ /**
2
+ * openfilz-api
3
+ * API for Document Management System
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { FilingOutcome } from './filing-outcome';
13
+ export interface AutoFileJobView {
14
+ 'jobId'?: string;
15
+ 'createdBy'?: string;
16
+ 'status'?: string;
17
+ 'total'?: number;
18
+ 'filed'?: number;
19
+ 'skipped'?: number;
20
+ 'failed'?: number;
21
+ 'pending'?: number;
22
+ 'items'?: Array<FilingOutcome>;
23
+ 'createdAt'?: string;
24
+ 'finishedAt'?: string;
25
+ }
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * openfilz-api
5
+ * API for Document Management System
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,15 @@
1
+ /**
2
+ * openfilz-api
3
+ * API for Document Management System
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export interface AutoFileRequest {
13
+ 'documentIds'?: Array<string>;
14
+ 'allowNewFolders'?: boolean;
15
+ }
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * openfilz-api
5
+ * API for Document Management System
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,15 @@
1
+ /**
2
+ * openfilz-api
3
+ * API for Document Management System
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export interface AutoFileTicket {
13
+ 'jobId'?: string;
14
+ 'status'?: string;
15
+ }
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * openfilz-api
5
+ * API for Document Management System
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,33 @@
1
+ /**
2
+ * openfilz-api
3
+ * API for Document Management System
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export interface DocumentInsightView {
13
+ 'documentId'?: string;
14
+ 'fileTitle'?: string;
15
+ 'fileAuthor'?: string;
16
+ 'fileCreatedAt'?: string;
17
+ 'fileModifiedAt'?: string;
18
+ 'pageCount'?: number;
19
+ 'language'?: string;
20
+ 'category'?: string;
21
+ 'summary'?: string;
22
+ 'keywords'?: Array<string>;
23
+ 'entities'?: {
24
+ [key: string]: any;
25
+ };
26
+ 'tier'?: number;
27
+ 'model'?: string;
28
+ 'promptVersion'?: number;
29
+ 'status'?: string;
30
+ 'error'?: string;
31
+ 'createdAt'?: string;
32
+ 'updatedAt'?: string;
33
+ }
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * openfilz-api
5
+ * API for Document Management System
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,25 @@
1
+ /**
2
+ * openfilz-api
3
+ * API for Document Management System
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export interface FilingOutcome {
13
+ 'documentId'?: string;
14
+ 'name'?: string;
15
+ 'status'?: string;
16
+ 'fromFolderId'?: string;
17
+ 'fromPath'?: string;
18
+ 'toFolderId'?: string;
19
+ 'toPath'?: string;
20
+ 'stage'?: string;
21
+ 'confidence'?: number;
22
+ 'reason'?: string;
23
+ 'planId'?: string;
24
+ 'decidedAt'?: string;
25
+ }
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * openfilz-api
5
+ * API for Document Management System
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};