@openfilz-sdk/typescript-ee 1.9.6 → 1.9.7

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 (116) hide show
  1. package/.openapi-generator/FILES +22 -0
  2. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
  3. package/README.md +23 -4
  4. package/api/aichat-api.ts +9 -9
  5. package/api/document-controller-api.ts +30 -14
  6. package/api/document-insights-api.ts +275 -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 +4 -4
  12. package/dist/api/aichat-api.js +9 -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 +133 -0
  16. package/dist/api/document-insights-api.js +269 -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 +4 -4
  26. package/dist/esm/api/aichat-api.js +9 -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 +133 -0
  30. package/dist/esm/api/document-insights-api.js +262 -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 +9 -0
  52. package/dist/esm/models/index.js +9 -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/save-ai-preferences-request.d.ts +15 -0
  58. package/dist/esm/models/save-ai-preferences-request.js +14 -0
  59. package/dist/esm/models/settings.d.ts +2 -0
  60. package/dist/esm/models/tus-finalize-request.d.ts +1 -0
  61. package/dist/esm/models/upload-response.d.ts +2 -0
  62. package/dist/models/ai-preferences-view.d.ts +16 -0
  63. package/dist/models/ai-preferences-view.js +15 -0
  64. package/dist/models/auto-file-job-view.d.ts +25 -0
  65. package/dist/models/auto-file-job-view.js +15 -0
  66. package/dist/models/auto-file-request.d.ts +15 -0
  67. package/dist/models/auto-file-request.js +15 -0
  68. package/dist/models/auto-file-ticket.d.ts +15 -0
  69. package/dist/models/auto-file-ticket.js +15 -0
  70. package/dist/models/document-insight-view.d.ts +33 -0
  71. package/dist/models/document-insight-view.js +15 -0
  72. package/dist/models/filing-outcome.d.ts +25 -0
  73. package/dist/models/filing-outcome.js +15 -0
  74. package/dist/models/index.d.ts +9 -0
  75. package/dist/models/index.js +9 -0
  76. package/dist/models/insight-backfill-request.d.ts +15 -0
  77. package/dist/models/insight-backfill-request.js +15 -0
  78. package/dist/models/insight-backfill-status.d.ts +23 -0
  79. package/dist/models/insight-backfill-status.js +15 -0
  80. package/dist/models/save-ai-preferences-request.d.ts +15 -0
  81. package/dist/models/save-ai-preferences-request.js +15 -0
  82. package/dist/models/settings.d.ts +2 -0
  83. package/dist/models/tus-finalize-request.d.ts +1 -0
  84. package/dist/models/upload-response.d.ts +2 -0
  85. package/docs/AIChatApi.md +4 -4
  86. package/docs/AiPreferencesView.md +24 -0
  87. package/docs/AutoFileJobView.md +40 -0
  88. package/docs/AutoFileRequest.md +22 -0
  89. package/docs/AutoFileTicket.md +22 -0
  90. package/docs/DocumentControllerApi.md +6 -0
  91. package/docs/DocumentInsightView.md +54 -0
  92. package/docs/DocumentInsightsApi.md +163 -0
  93. package/docs/ESignApi.md +4 -4
  94. package/docs/FilingOutcome.md +42 -0
  95. package/docs/InsightBackfillRequest.md +22 -0
  96. package/docs/InsightBackfillStatus.md +38 -0
  97. package/docs/SaveAiPreferencesRequest.md +22 -0
  98. package/docs/Settings.md +4 -0
  99. package/docs/SettingsApi.md +97 -0
  100. package/docs/SmartFilingApi.md +264 -0
  101. package/docs/TusFinalizeRequest.md +2 -0
  102. package/docs/UploadResponse.md +2 -0
  103. package/models/ai-preferences-view.ts +22 -0
  104. package/models/auto-file-job-view.ts +33 -0
  105. package/models/auto-file-request.ts +21 -0
  106. package/models/auto-file-ticket.ts +21 -0
  107. package/models/document-insight-view.ts +37 -0
  108. package/models/filing-outcome.ts +31 -0
  109. package/models/index.ts +9 -0
  110. package/models/insight-backfill-request.ts +21 -0
  111. package/models/insight-backfill-status.ts +29 -0
  112. package/models/save-ai-preferences-request.ts +21 -0
  113. package/models/settings.ts +2 -0
  114. package/models/tus-finalize-request.ts +1 -0
  115. package/models/upload-response.ts +4 -0
  116. package/package.json +1 -1
@@ -0,0 +1,197 @@
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 { Configuration } from '../configuration';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import { type RequestArgs, BaseAPI } from '../base';
15
+ import type { AutoFileJobView } from '../models';
16
+ import type { AutoFileRequest } from '../models';
17
+ import type { FilingOutcome } from '../models';
18
+ /**
19
+ * SmartFilingApi - axios parameter creator
20
+ */
21
+ export declare const SmartFilingApiAxiosParamCreator: (configuration?: Configuration) => {
22
+ /**
23
+ * Runs smart filing for the given documents (e.g. the contents of an Inbox) and returns the job at once.
24
+ * @summary File existing documents on demand
25
+ * @param {AutoFileRequest} autoFileRequest
26
+ * @param {*} [options] Override http request option.
27
+ * @throws {RequiredError}
28
+ */
29
+ file: (autoFileRequest: AutoFileRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30
+ /**
31
+ *
32
+ * @summary Progress and outcome of a filing job
33
+ * @param {string} jobId
34
+ * @param {*} [options] Override http request option.
35
+ * @throws {RequiredError}
36
+ */
37
+ job: (jobId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
38
+ /**
39
+ *
40
+ * @summary The latest filing record of a document (the \"Filed by OpenFilz\" chip)
41
+ * @param {string} documentId
42
+ * @param {*} [options] Override http request option.
43
+ * @throws {RequiredError}
44
+ */
45
+ lastFiling: (documentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
46
+ /**
47
+ *
48
+ * @summary Move every document the job filed back where it came from
49
+ * @param {string} jobId
50
+ * @param {*} [options] Override http request option.
51
+ * @throws {RequiredError}
52
+ */
53
+ undo: (jobId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
54
+ /**
55
+ *
56
+ * @summary Move one filed document back (the chip\'s \"Move back\")
57
+ * @param {string} planId
58
+ * @param {*} [options] Override http request option.
59
+ * @throws {RequiredError}
60
+ */
61
+ undoFiling: (planId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
62
+ };
63
+ /**
64
+ * SmartFilingApi - functional programming interface
65
+ */
66
+ export declare const SmartFilingApiFp: (configuration?: Configuration) => {
67
+ /**
68
+ * Runs smart filing for the given documents (e.g. the contents of an Inbox) and returns the job at once.
69
+ * @summary File existing documents on demand
70
+ * @param {AutoFileRequest} autoFileRequest
71
+ * @param {*} [options] Override http request option.
72
+ * @throws {RequiredError}
73
+ */
74
+ file(autoFileRequest: AutoFileRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AutoFileJobView>>;
75
+ /**
76
+ *
77
+ * @summary Progress and outcome of a filing job
78
+ * @param {string} jobId
79
+ * @param {*} [options] Override http request option.
80
+ * @throws {RequiredError}
81
+ */
82
+ job(jobId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AutoFileJobView>>;
83
+ /**
84
+ *
85
+ * @summary The latest filing record of a document (the \"Filed by OpenFilz\" chip)
86
+ * @param {string} documentId
87
+ * @param {*} [options] Override http request option.
88
+ * @throws {RequiredError}
89
+ */
90
+ lastFiling(documentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FilingOutcome>>;
91
+ /**
92
+ *
93
+ * @summary Move every document the job filed back where it came from
94
+ * @param {string} jobId
95
+ * @param {*} [options] Override http request option.
96
+ * @throws {RequiredError}
97
+ */
98
+ undo(jobId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AutoFileJobView>>;
99
+ /**
100
+ *
101
+ * @summary Move one filed document back (the chip\'s \"Move back\")
102
+ * @param {string} planId
103
+ * @param {*} [options] Override http request option.
104
+ * @throws {RequiredError}
105
+ */
106
+ undoFiling(planId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FilingOutcome>>;
107
+ };
108
+ /**
109
+ * SmartFilingApi - factory interface
110
+ */
111
+ export declare const SmartFilingApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
112
+ /**
113
+ * Runs smart filing for the given documents (e.g. the contents of an Inbox) and returns the job at once.
114
+ * @summary File existing documents on demand
115
+ * @param {AutoFileRequest} autoFileRequest
116
+ * @param {*} [options] Override http request option.
117
+ * @throws {RequiredError}
118
+ */
119
+ file(autoFileRequest: AutoFileRequest, options?: RawAxiosRequestConfig): AxiosPromise<AutoFileJobView>;
120
+ /**
121
+ *
122
+ * @summary Progress and outcome of a filing job
123
+ * @param {string} jobId
124
+ * @param {*} [options] Override http request option.
125
+ * @throws {RequiredError}
126
+ */
127
+ job(jobId: string, options?: RawAxiosRequestConfig): AxiosPromise<AutoFileJobView>;
128
+ /**
129
+ *
130
+ * @summary The latest filing record of a document (the \"Filed by OpenFilz\" chip)
131
+ * @param {string} documentId
132
+ * @param {*} [options] Override http request option.
133
+ * @throws {RequiredError}
134
+ */
135
+ lastFiling(documentId: string, options?: RawAxiosRequestConfig): AxiosPromise<FilingOutcome>;
136
+ /**
137
+ *
138
+ * @summary Move every document the job filed back where it came from
139
+ * @param {string} jobId
140
+ * @param {*} [options] Override http request option.
141
+ * @throws {RequiredError}
142
+ */
143
+ undo(jobId: string, options?: RawAxiosRequestConfig): AxiosPromise<AutoFileJobView>;
144
+ /**
145
+ *
146
+ * @summary Move one filed document back (the chip\'s \"Move back\")
147
+ * @param {string} planId
148
+ * @param {*} [options] Override http request option.
149
+ * @throws {RequiredError}
150
+ */
151
+ undoFiling(planId: string, options?: RawAxiosRequestConfig): AxiosPromise<FilingOutcome>;
152
+ };
153
+ /**
154
+ * SmartFilingApi - object-oriented interface
155
+ */
156
+ export declare class SmartFilingApi extends BaseAPI {
157
+ /**
158
+ * Runs smart filing for the given documents (e.g. the contents of an Inbox) and returns the job at once.
159
+ * @summary File existing documents on demand
160
+ * @param {AutoFileRequest} autoFileRequest
161
+ * @param {*} [options] Override http request option.
162
+ * @throws {RequiredError}
163
+ */
164
+ file(autoFileRequest: AutoFileRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AutoFileJobView, any, {}, any>>;
165
+ /**
166
+ *
167
+ * @summary Progress and outcome of a filing job
168
+ * @param {string} jobId
169
+ * @param {*} [options] Override http request option.
170
+ * @throws {RequiredError}
171
+ */
172
+ job(jobId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AutoFileJobView, any, {}, any>>;
173
+ /**
174
+ *
175
+ * @summary The latest filing record of a document (the \"Filed by OpenFilz\" chip)
176
+ * @param {string} documentId
177
+ * @param {*} [options] Override http request option.
178
+ * @throws {RequiredError}
179
+ */
180
+ lastFiling(documentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<FilingOutcome, any, {}, any>>;
181
+ /**
182
+ *
183
+ * @summary Move every document the job filed back where it came from
184
+ * @param {string} jobId
185
+ * @param {*} [options] Override http request option.
186
+ * @throws {RequiredError}
187
+ */
188
+ undo(jobId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AutoFileJobView, any, {}, any>>;
189
+ /**
190
+ *
191
+ * @summary Move one filed document back (the chip\'s \"Move back\")
192
+ * @param {string} planId
193
+ * @param {*} [options] Override http request option.
194
+ * @throws {RequiredError}
195
+ */
196
+ undoFiling(planId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<FilingOutcome, any, {}, any>>;
197
+ }
@@ -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);
@@ -62,7 +62,7 @@ export declare const AIChatApiAxiosParamCreator: (configuration?: Configuration)
62
62
  * @param {*} [options] Override http request option.
63
63
  * @throws {RequiredError}
64
64
  */
65
- get3: (planId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
65
+ get4: (planId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
66
66
  /**
67
67
  * Get all messages in a conversation
68
68
  * @summary Get conversation history
@@ -123,7 +123,7 @@ export declare const AIChatApiFp: (configuration?: Configuration) => {
123
123
  * @param {*} [options] Override http request option.
124
124
  * @throws {RequiredError}
125
125
  */
126
- get3(planId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReorganizationPlanView>>;
126
+ get4(planId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReorganizationPlanView>>;
127
127
  /**
128
128
  * Get all messages in a conversation
129
129
  * @summary Get conversation history
@@ -184,7 +184,7 @@ export declare const AIChatApiFactory: (configuration?: Configuration, basePath?
184
184
  * @param {*} [options] Override http request option.
185
185
  * @throws {RequiredError}
186
186
  */
187
- get3(planId: string, options?: RawAxiosRequestConfig): AxiosPromise<ReorganizationPlanView>;
187
+ get4(planId: string, options?: RawAxiosRequestConfig): AxiosPromise<ReorganizationPlanView>;
188
188
  /**
189
189
  * Get all messages in a conversation
190
190
  * @summary Get conversation history
@@ -245,7 +245,7 @@ export declare class AIChatApi extends BaseAPI {
245
245
  * @param {*} [options] Override http request option.
246
246
  * @throws {RequiredError}
247
247
  */
248
- get3(planId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReorganizationPlanView, any, {}, any>>;
248
+ get4(planId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReorganizationPlanView, any, {}, any>>;
249
249
  /**
250
250
  * Get all messages in a conversation
251
251
  * @summary Get conversation history