@openfilz-sdk/typescript 1.3.3 → 1.3.5

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 (146) hide show
  1. package/.openapi-generator/FILES +32 -0
  2. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
  3. package/README.md +30 -3
  4. package/api/aichat-api.ts +228 -0
  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 +103 -0
  12. package/dist/api/aichat-api.js +213 -0
  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 +103 -0
  26. package/dist/esm/api/aichat-api.js +213 -0
  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 +133 -1
  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 +14 -0
  52. package/dist/esm/models/index.js +14 -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/item-result.d.ts +16 -0
  58. package/dist/esm/models/item-result.js +14 -0
  59. package/dist/esm/models/item.d.ts +21 -0
  60. package/dist/esm/models/item.js +14 -0
  61. package/dist/esm/models/reorganization-apply-request.d.ts +14 -0
  62. package/dist/esm/models/reorganization-apply-request.js +14 -0
  63. package/dist/esm/models/reorganization-apply-result.d.ts +22 -0
  64. package/dist/esm/models/reorganization-apply-result.js +14 -0
  65. package/dist/esm/models/reorganization-plan-view.d.ts +28 -0
  66. package/dist/esm/models/reorganization-plan-view.js +14 -0
  67. package/dist/esm/models/save-ai-preferences-request.d.ts +15 -0
  68. package/dist/esm/models/save-ai-preferences-request.js +14 -0
  69. package/dist/esm/models/settings.d.ts +2 -0
  70. package/dist/esm/models/tus-finalize-request.d.ts +1 -0
  71. package/dist/esm/models/upload-response.d.ts +2 -0
  72. package/dist/models/ai-preferences-view.d.ts +16 -0
  73. package/dist/models/ai-preferences-view.js +15 -0
  74. package/dist/models/auto-file-job-view.d.ts +25 -0
  75. package/dist/models/auto-file-job-view.js +15 -0
  76. package/dist/models/auto-file-request.d.ts +15 -0
  77. package/dist/models/auto-file-request.js +15 -0
  78. package/dist/models/auto-file-ticket.d.ts +15 -0
  79. package/dist/models/auto-file-ticket.js +15 -0
  80. package/dist/models/document-insight-view.d.ts +33 -0
  81. package/dist/models/document-insight-view.js +15 -0
  82. package/dist/models/filing-outcome.d.ts +25 -0
  83. package/dist/models/filing-outcome.js +15 -0
  84. package/dist/models/index.d.ts +14 -0
  85. package/dist/models/index.js +14 -0
  86. package/dist/models/insight-backfill-request.d.ts +15 -0
  87. package/dist/models/insight-backfill-request.js +15 -0
  88. package/dist/models/insight-backfill-status.d.ts +23 -0
  89. package/dist/models/insight-backfill-status.js +15 -0
  90. package/dist/models/item-result.d.ts +16 -0
  91. package/dist/models/item-result.js +15 -0
  92. package/dist/models/item.d.ts +21 -0
  93. package/dist/models/item.js +15 -0
  94. package/dist/models/reorganization-apply-request.d.ts +14 -0
  95. package/dist/models/reorganization-apply-request.js +15 -0
  96. package/dist/models/reorganization-apply-result.d.ts +22 -0
  97. package/dist/models/reorganization-apply-result.js +15 -0
  98. package/dist/models/reorganization-plan-view.d.ts +28 -0
  99. package/dist/models/reorganization-plan-view.js +15 -0
  100. package/dist/models/save-ai-preferences-request.d.ts +15 -0
  101. package/dist/models/save-ai-preferences-request.js +15 -0
  102. package/dist/models/settings.d.ts +2 -0
  103. package/dist/models/tus-finalize-request.d.ts +1 -0
  104. package/dist/models/upload-response.d.ts +2 -0
  105. package/docs/AIChatApi.md +159 -0
  106. package/docs/AiPreferencesView.md +24 -0
  107. package/docs/AutoFileJobView.md +40 -0
  108. package/docs/AutoFileRequest.md +22 -0
  109. package/docs/AutoFileTicket.md +22 -0
  110. package/docs/DocumentControllerApi.md +6 -0
  111. package/docs/DocumentInsightView.md +54 -0
  112. package/docs/DocumentInsightsApi.md +163 -0
  113. package/docs/ESignApi.md +4 -4
  114. package/docs/FilingOutcome.md +42 -0
  115. package/docs/InsightBackfillRequest.md +22 -0
  116. package/docs/InsightBackfillStatus.md +38 -0
  117. package/docs/Item.md +34 -0
  118. package/docs/ItemResult.md +24 -0
  119. package/docs/ReorganizationApplyRequest.md +20 -0
  120. package/docs/ReorganizationApplyResult.md +34 -0
  121. package/docs/ReorganizationPlanView.md +44 -0
  122. package/docs/SaveAiPreferencesRequest.md +22 -0
  123. package/docs/Settings.md +4 -0
  124. package/docs/SettingsApi.md +97 -0
  125. package/docs/SmartFilingApi.md +264 -0
  126. package/docs/TusFinalizeRequest.md +2 -0
  127. package/docs/UploadResponse.md +2 -0
  128. package/models/ai-preferences-view.ts +22 -0
  129. package/models/auto-file-job-view.ts +33 -0
  130. package/models/auto-file-request.ts +21 -0
  131. package/models/auto-file-ticket.ts +21 -0
  132. package/models/document-insight-view.ts +37 -0
  133. package/models/filing-outcome.ts +31 -0
  134. package/models/index.ts +14 -0
  135. package/models/insight-backfill-request.ts +21 -0
  136. package/models/insight-backfill-status.ts +29 -0
  137. package/models/item-result.ts +22 -0
  138. package/models/item.ts +27 -0
  139. package/models/reorganization-apply-request.ts +20 -0
  140. package/models/reorganization-apply-result.ts +30 -0
  141. package/models/reorganization-plan-view.ts +38 -0
  142. package/models/save-ai-preferences-request.ts +21 -0
  143. package/models/settings.ts +2 -0
  144. package/models/tus-finalize-request.ts +1 -0
  145. package/models/upload-response.ts +4 -0
  146. package/package.json +1 -1
@@ -170,9 +170,9 @@ const ESignApiAxiosParamCreator = function (configuration) {
170
170
  * @param {*} [options] Override http request option.
171
171
  * @throws {RequiredError}
172
172
  */
173
- get1: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
173
+ get2: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
174
174
  // verify required parameter 'id' is not null or undefined
175
- (0, common_1.assertParamExists)('get1', 'id', id);
175
+ (0, common_1.assertParamExists)('get2', 'id', id);
176
176
  const localVarPath = `/api/v1/signatures/{id}`
177
177
  .replace('{id}', encodeURIComponent(String(id)));
178
178
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -440,12 +440,12 @@ const ESignApiFp = function (configuration) {
440
440
  * @param {*} [options] Override http request option.
441
441
  * @throws {RequiredError}
442
442
  */
443
- get1(id, options) {
443
+ get2(id, options) {
444
444
  return __awaiter(this, void 0, void 0, function* () {
445
445
  var _a, _b, _c;
446
- const localVarAxiosArgs = yield localVarAxiosParamCreator.get1(id, options);
446
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.get2(id, options);
447
447
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
448
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ESignApi.get1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
448
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ESignApi.get2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
449
449
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
450
450
  });
451
451
  },
@@ -584,8 +584,8 @@ const ESignApiFactory = function (configuration, basePath, axios) {
584
584
  * @param {*} [options] Override http request option.
585
585
  * @throws {RequiredError}
586
586
  */
587
- get1(id, options) {
588
- return localVarFp.get1(id, options).then((request) => request(axios, basePath));
587
+ get2(id, options) {
588
+ return localVarFp.get2(id, options).then((request) => request(axios, basePath));
589
589
  },
590
590
  /**
591
591
  *
@@ -690,8 +690,8 @@ class ESignApi extends base_1.BaseAPI {
690
690
  * @param {*} [options] Override http request option.
691
691
  * @throws {RequiredError}
692
692
  */
693
- get1(id, options) {
694
- return (0, exports.ESignApiFp)(this.configuration).get1(id, options).then((request) => request(this.axios, this.basePath));
693
+ get2(id, options) {
694
+ return (0, exports.ESignApiFp)(this.configuration).get2(id, options).then((request) => request(this.axios, this.basePath));
695
695
  }
696
696
  /**
697
697
  *
@@ -12,11 +12,20 @@
12
12
  import type { Configuration } from '../configuration';
13
13
  import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import { type RequestArgs, BaseAPI } from '../base';
15
+ import type { AiPreferencesView } from '../models';
16
+ import type { SaveAiPreferencesRequest } from '../models';
15
17
  import type { Settings } from '../models';
16
18
  /**
17
19
  * SettingsApi - axios parameter creator
18
20
  */
19
21
  export declare const SettingsApiAxiosParamCreator: (configuration?: Configuration) => {
22
+ /**
23
+ *
24
+ * @summary The caller\'s smart-filing preferences
25
+ * @param {*} [options] Override http request option.
26
+ * @throws {RequiredError}
27
+ */
28
+ get1: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20
29
  /**
21
30
  * Retrieve user\'s settings : global settings and user\'s preferences
22
31
  * @summary Get user\'s settings
@@ -24,11 +33,26 @@ export declare const SettingsApiAxiosParamCreator: (configuration?: Configuratio
24
33
  * @throws {RequiredError}
25
34
  */
26
35
  getSettings1: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
36
+ /**
37
+ * A null field leaves the current value unchanged.
38
+ * @summary Save the caller\'s smart-filing preferences
39
+ * @param {SaveAiPreferencesRequest} saveAiPreferencesRequest
40
+ * @param {*} [options] Override http request option.
41
+ * @throws {RequiredError}
42
+ */
43
+ save: (saveAiPreferencesRequest: SaveAiPreferencesRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
27
44
  };
28
45
  /**
29
46
  * SettingsApi - functional programming interface
30
47
  */
31
48
  export declare const SettingsApiFp: (configuration?: Configuration) => {
49
+ /**
50
+ *
51
+ * @summary The caller\'s smart-filing preferences
52
+ * @param {*} [options] Override http request option.
53
+ * @throws {RequiredError}
54
+ */
55
+ get1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AiPreferencesView>>;
32
56
  /**
33
57
  * Retrieve user\'s settings : global settings and user\'s preferences
34
58
  * @summary Get user\'s settings
@@ -36,11 +60,26 @@ export declare const SettingsApiFp: (configuration?: Configuration) => {
36
60
  * @throws {RequiredError}
37
61
  */
38
62
  getSettings1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Settings>>;
63
+ /**
64
+ * A null field leaves the current value unchanged.
65
+ * @summary Save the caller\'s smart-filing preferences
66
+ * @param {SaveAiPreferencesRequest} saveAiPreferencesRequest
67
+ * @param {*} [options] Override http request option.
68
+ * @throws {RequiredError}
69
+ */
70
+ save(saveAiPreferencesRequest: SaveAiPreferencesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AiPreferencesView>>;
39
71
  };
40
72
  /**
41
73
  * SettingsApi - factory interface
42
74
  */
43
75
  export declare const SettingsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
76
+ /**
77
+ *
78
+ * @summary The caller\'s smart-filing preferences
79
+ * @param {*} [options] Override http request option.
80
+ * @throws {RequiredError}
81
+ */
82
+ get1(options?: RawAxiosRequestConfig): AxiosPromise<AiPreferencesView>;
44
83
  /**
45
84
  * Retrieve user\'s settings : global settings and user\'s preferences
46
85
  * @summary Get user\'s settings
@@ -48,11 +87,26 @@ export declare const SettingsApiFactory: (configuration?: Configuration, basePat
48
87
  * @throws {RequiredError}
49
88
  */
50
89
  getSettings1(options?: RawAxiosRequestConfig): AxiosPromise<Settings>;
90
+ /**
91
+ * A null field leaves the current value unchanged.
92
+ * @summary Save the caller\'s smart-filing preferences
93
+ * @param {SaveAiPreferencesRequest} saveAiPreferencesRequest
94
+ * @param {*} [options] Override http request option.
95
+ * @throws {RequiredError}
96
+ */
97
+ save(saveAiPreferencesRequest: SaveAiPreferencesRequest, options?: RawAxiosRequestConfig): AxiosPromise<AiPreferencesView>;
51
98
  };
52
99
  /**
53
100
  * SettingsApi - object-oriented interface
54
101
  */
55
102
  export declare class SettingsApi extends BaseAPI {
103
+ /**
104
+ *
105
+ * @summary The caller\'s smart-filing preferences
106
+ * @param {*} [options] Override http request option.
107
+ * @throws {RequiredError}
108
+ */
109
+ get1(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AiPreferencesView, any, {}>>;
56
110
  /**
57
111
  * Retrieve user\'s settings : global settings and user\'s preferences
58
112
  * @summary Get user\'s settings
@@ -60,4 +114,12 @@ export declare class SettingsApi extends BaseAPI {
60
114
  * @throws {RequiredError}
61
115
  */
62
116
  getSettings1(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Settings, any, {}>>;
117
+ /**
118
+ * A null field leaves the current value unchanged.
119
+ * @summary Save the caller\'s smart-filing preferences
120
+ * @param {SaveAiPreferencesRequest} saveAiPreferencesRequest
121
+ * @param {*} [options] Override http request option.
122
+ * @throws {RequiredError}
123
+ */
124
+ save(saveAiPreferencesRequest: SaveAiPreferencesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AiPreferencesView, any, {}>>;
63
125
  }
@@ -34,6 +34,35 @@ const base_1 = require("../base");
34
34
  */
35
35
  const SettingsApiAxiosParamCreator = function (configuration) {
36
36
  return {
37
+ /**
38
+ *
39
+ * @summary The caller\'s smart-filing preferences
40
+ * @param {*} [options] Override http request option.
41
+ * @throws {RequiredError}
42
+ */
43
+ get1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
44
+ const localVarPath = `/api/v1/settings/ai/preferences`;
45
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
46
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
47
+ let baseOptions;
48
+ if (configuration) {
49
+ baseOptions = configuration.baseOptions;
50
+ }
51
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
52
+ const localVarHeaderParameter = {};
53
+ const localVarQueryParameter = {};
54
+ // authentication keycloak_auth required
55
+ // http bearer authentication required
56
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
57
+ localVarHeaderParameter['Accept'] = 'application/json';
58
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
59
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
60
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
61
+ return {
62
+ url: (0, common_1.toPathString)(localVarUrlObj),
63
+ options: localVarRequestOptions,
64
+ };
65
+ }),
37
66
  /**
38
67
  * Retrieve user\'s settings : global settings and user\'s preferences
39
68
  * @summary Get user\'s settings
@@ -63,6 +92,40 @@ const SettingsApiAxiosParamCreator = function (configuration) {
63
92
  options: localVarRequestOptions,
64
93
  };
65
94
  }),
95
+ /**
96
+ * A null field leaves the current value unchanged.
97
+ * @summary Save the caller\'s smart-filing preferences
98
+ * @param {SaveAiPreferencesRequest} saveAiPreferencesRequest
99
+ * @param {*} [options] Override http request option.
100
+ * @throws {RequiredError}
101
+ */
102
+ save: (saveAiPreferencesRequest_1, ...args_1) => __awaiter(this, [saveAiPreferencesRequest_1, ...args_1], void 0, function* (saveAiPreferencesRequest, options = {}) {
103
+ // verify required parameter 'saveAiPreferencesRequest' is not null or undefined
104
+ (0, common_1.assertParamExists)('save', 'saveAiPreferencesRequest', saveAiPreferencesRequest);
105
+ const localVarPath = `/api/v1/settings/ai/preferences`;
106
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
107
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
108
+ let baseOptions;
109
+ if (configuration) {
110
+ baseOptions = configuration.baseOptions;
111
+ }
112
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
113
+ const localVarHeaderParameter = {};
114
+ const localVarQueryParameter = {};
115
+ // authentication keycloak_auth required
116
+ // http bearer authentication required
117
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
118
+ localVarHeaderParameter['Content-Type'] = 'application/json';
119
+ localVarHeaderParameter['Accept'] = 'application/json';
120
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
121
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
122
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
123
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(saveAiPreferencesRequest, localVarRequestOptions, configuration);
124
+ return {
125
+ url: (0, common_1.toPathString)(localVarUrlObj),
126
+ options: localVarRequestOptions,
127
+ };
128
+ }),
66
129
  };
67
130
  };
68
131
  exports.SettingsApiAxiosParamCreator = SettingsApiAxiosParamCreator;
@@ -72,6 +135,21 @@ exports.SettingsApiAxiosParamCreator = SettingsApiAxiosParamCreator;
72
135
  const SettingsApiFp = function (configuration) {
73
136
  const localVarAxiosParamCreator = (0, exports.SettingsApiAxiosParamCreator)(configuration);
74
137
  return {
138
+ /**
139
+ *
140
+ * @summary The caller\'s smart-filing preferences
141
+ * @param {*} [options] Override http request option.
142
+ * @throws {RequiredError}
143
+ */
144
+ get1(options) {
145
+ return __awaiter(this, void 0, void 0, function* () {
146
+ var _a, _b, _c;
147
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.get1(options);
148
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
149
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SettingsApi.get1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
150
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
151
+ });
152
+ },
75
153
  /**
76
154
  * Retrieve user\'s settings : global settings and user\'s preferences
77
155
  * @summary Get user\'s settings
@@ -87,6 +165,22 @@ const SettingsApiFp = function (configuration) {
87
165
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
88
166
  });
89
167
  },
168
+ /**
169
+ * A null field leaves the current value unchanged.
170
+ * @summary Save the caller\'s smart-filing preferences
171
+ * @param {SaveAiPreferencesRequest} saveAiPreferencesRequest
172
+ * @param {*} [options] Override http request option.
173
+ * @throws {RequiredError}
174
+ */
175
+ save(saveAiPreferencesRequest, options) {
176
+ return __awaiter(this, void 0, void 0, function* () {
177
+ var _a, _b, _c;
178
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.save(saveAiPreferencesRequest, options);
179
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
180
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SettingsApi.save']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
181
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
182
+ });
183
+ },
90
184
  };
91
185
  };
92
186
  exports.SettingsApiFp = SettingsApiFp;
@@ -96,6 +190,15 @@ exports.SettingsApiFp = SettingsApiFp;
96
190
  const SettingsApiFactory = function (configuration, basePath, axios) {
97
191
  const localVarFp = (0, exports.SettingsApiFp)(configuration);
98
192
  return {
193
+ /**
194
+ *
195
+ * @summary The caller\'s smart-filing preferences
196
+ * @param {*} [options] Override http request option.
197
+ * @throws {RequiredError}
198
+ */
199
+ get1(options) {
200
+ return localVarFp.get1(options).then((request) => request(axios, basePath));
201
+ },
99
202
  /**
100
203
  * Retrieve user\'s settings : global settings and user\'s preferences
101
204
  * @summary Get user\'s settings
@@ -105,6 +208,16 @@ const SettingsApiFactory = function (configuration, basePath, axios) {
105
208
  getSettings1(options) {
106
209
  return localVarFp.getSettings1(options).then((request) => request(axios, basePath));
107
210
  },
211
+ /**
212
+ * A null field leaves the current value unchanged.
213
+ * @summary Save the caller\'s smart-filing preferences
214
+ * @param {SaveAiPreferencesRequest} saveAiPreferencesRequest
215
+ * @param {*} [options] Override http request option.
216
+ * @throws {RequiredError}
217
+ */
218
+ save(saveAiPreferencesRequest, options) {
219
+ return localVarFp.save(saveAiPreferencesRequest, options).then((request) => request(axios, basePath));
220
+ },
108
221
  };
109
222
  };
110
223
  exports.SettingsApiFactory = SettingsApiFactory;
@@ -112,6 +225,15 @@ exports.SettingsApiFactory = SettingsApiFactory;
112
225
  * SettingsApi - object-oriented interface
113
226
  */
114
227
  class SettingsApi extends base_1.BaseAPI {
228
+ /**
229
+ *
230
+ * @summary The caller\'s smart-filing preferences
231
+ * @param {*} [options] Override http request option.
232
+ * @throws {RequiredError}
233
+ */
234
+ get1(options) {
235
+ return (0, exports.SettingsApiFp)(this.configuration).get1(options).then((request) => request(this.axios, this.basePath));
236
+ }
115
237
  /**
116
238
  * Retrieve user\'s settings : global settings and user\'s preferences
117
239
  * @summary Get user\'s settings
@@ -121,5 +243,15 @@ class SettingsApi extends base_1.BaseAPI {
121
243
  getSettings1(options) {
122
244
  return (0, exports.SettingsApiFp)(this.configuration).getSettings1(options).then((request) => request(this.axios, this.basePath));
123
245
  }
246
+ /**
247
+ * A null field leaves the current value unchanged.
248
+ * @summary Save the caller\'s smart-filing preferences
249
+ * @param {SaveAiPreferencesRequest} saveAiPreferencesRequest
250
+ * @param {*} [options] Override http request option.
251
+ * @throws {RequiredError}
252
+ */
253
+ save(saveAiPreferencesRequest, options) {
254
+ return (0, exports.SettingsApiFp)(this.configuration).save(saveAiPreferencesRequest, options).then((request) => request(this.axios, this.basePath));
255
+ }
124
256
  }
125
257
  exports.SettingsApi = SettingsApi;
@@ -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, {}>>;
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, {}>>;
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, {}>>;
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, {}>>;
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, {}>>;
197
+ }