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