@openfilz-sdk/typescript 1.3.21 → 1.3.22
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/openfilz-api-generate-typescript-sdk.sha256 +1 -1
- package/README.md +2 -2
- package/api/settings-api.ts +18 -11
- package/dist/api/settings-api.d.ts +12 -8
- package/dist/api/settings-api.js +18 -11
- package/dist/esm/api/settings-api.d.ts +12 -8
- package/dist/esm/api/settings-api.js +18 -11
- package/dist/esm/models/settings.d.ts +3 -0
- package/dist/models/settings.d.ts +3 -0
- package/docs/Settings.md +2 -0
- package/docs/SettingsApi.md +10 -3
- package/models/settings.ts +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
a6b4a447a4cddf48d41ca61f812eb301410ec362b01b2a28a5a82b0eaac45bf6
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @openfilz-sdk/typescript@1.3.
|
|
1
|
+
## @openfilz-sdk/typescript@1.3.22
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @openfilz-sdk/typescript@1.3.
|
|
39
|
+
npm install @openfilz-sdk/typescript@1.3.22 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api/settings-api.ts
CHANGED
|
@@ -67,12 +67,13 @@ export const SettingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
67
67
|
};
|
|
68
68
|
},
|
|
69
69
|
/**
|
|
70
|
-
* Retrieve user\'s settings : global settings and user\'s preferences
|
|
70
|
+
* Retrieve user\'s settings : global settings and user\'s preferences. The category labels (aiInsightsCategoryLabels) are in the Accept-Language language, English when it is not supported.
|
|
71
71
|
* @summary Get user\'s settings
|
|
72
|
+
* @param {string} [acceptLanguage]
|
|
72
73
|
* @param {*} [options] Override http request option.
|
|
73
74
|
* @throws {RequiredError}
|
|
74
75
|
*/
|
|
75
|
-
getSettings1: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
76
|
+
getSettings1: async (acceptLanguage?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
76
77
|
const localVarPath = `/api/v1/settings`;
|
|
77
78
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
78
79
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -91,6 +92,9 @@ export const SettingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
91
92
|
|
|
92
93
|
localVarHeaderParameter['Accept'] = '*/*';
|
|
93
94
|
|
|
95
|
+
if (acceptLanguage != null) {
|
|
96
|
+
localVarHeaderParameter['Accept-Language'] = String(acceptLanguage);
|
|
97
|
+
}
|
|
94
98
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
95
99
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
96
100
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -165,13 +169,14 @@ export const SettingsApiFp = function(configuration?: Configuration) {
|
|
|
165
169
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
166
170
|
},
|
|
167
171
|
/**
|
|
168
|
-
* Retrieve user\'s settings : global settings and user\'s preferences
|
|
172
|
+
* Retrieve user\'s settings : global settings and user\'s preferences. The category labels (aiInsightsCategoryLabels) are in the Accept-Language language, English when it is not supported.
|
|
169
173
|
* @summary Get user\'s settings
|
|
174
|
+
* @param {string} [acceptLanguage]
|
|
170
175
|
* @param {*} [options] Override http request option.
|
|
171
176
|
* @throws {RequiredError}
|
|
172
177
|
*/
|
|
173
|
-
async getSettings1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Settings>> {
|
|
174
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getSettings1(options);
|
|
178
|
+
async getSettings1(acceptLanguage?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Settings>> {
|
|
179
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSettings1(acceptLanguage, options);
|
|
175
180
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
176
181
|
const localVarOperationServerBasePath = operationServerMap['SettingsApi.getSettings1']?.[localVarOperationServerIndex]?.url;
|
|
177
182
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -209,13 +214,14 @@ export const SettingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
209
214
|
return localVarFp.get1(options).then((request) => request(axios, basePath));
|
|
210
215
|
},
|
|
211
216
|
/**
|
|
212
|
-
* Retrieve user\'s settings : global settings and user\'s preferences
|
|
217
|
+
* Retrieve user\'s settings : global settings and user\'s preferences. The category labels (aiInsightsCategoryLabels) are in the Accept-Language language, English when it is not supported.
|
|
213
218
|
* @summary Get user\'s settings
|
|
219
|
+
* @param {string} [acceptLanguage]
|
|
214
220
|
* @param {*} [options] Override http request option.
|
|
215
221
|
* @throws {RequiredError}
|
|
216
222
|
*/
|
|
217
|
-
getSettings1(options?: RawAxiosRequestConfig): AxiosPromise<Settings> {
|
|
218
|
-
return localVarFp.getSettings1(options).then((request) => request(axios, basePath));
|
|
223
|
+
getSettings1(acceptLanguage?: string, options?: RawAxiosRequestConfig): AxiosPromise<Settings> {
|
|
224
|
+
return localVarFp.getSettings1(acceptLanguage, options).then((request) => request(axios, basePath));
|
|
219
225
|
},
|
|
220
226
|
/**
|
|
221
227
|
* A null field leaves the current value unchanged. inbox=true creates the caller\'s Inbox folder at their root on demand (named from Accept-Language, else the deployment\'s default language); inbox=false forgets it without deleting the folder. 400 when the Inbox is not offered.
|
|
@@ -246,13 +252,14 @@ export class SettingsApi extends BaseAPI {
|
|
|
246
252
|
}
|
|
247
253
|
|
|
248
254
|
/**
|
|
249
|
-
* Retrieve user\'s settings : global settings and user\'s preferences
|
|
255
|
+
* Retrieve user\'s settings : global settings and user\'s preferences. The category labels (aiInsightsCategoryLabels) are in the Accept-Language language, English when it is not supported.
|
|
250
256
|
* @summary Get user\'s settings
|
|
257
|
+
* @param {string} [acceptLanguage]
|
|
251
258
|
* @param {*} [options] Override http request option.
|
|
252
259
|
* @throws {RequiredError}
|
|
253
260
|
*/
|
|
254
|
-
public getSettings1(options?: RawAxiosRequestConfig) {
|
|
255
|
-
return SettingsApiFp(this.configuration).getSettings1(options).then((request) => request(this.axios, this.basePath));
|
|
261
|
+
public getSettings1(acceptLanguage?: string, options?: RawAxiosRequestConfig) {
|
|
262
|
+
return SettingsApiFp(this.configuration).getSettings1(acceptLanguage, options).then((request) => request(this.axios, this.basePath));
|
|
256
263
|
}
|
|
257
264
|
|
|
258
265
|
/**
|
|
@@ -27,12 +27,13 @@ export declare const SettingsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
27
27
|
*/
|
|
28
28
|
get1: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
29
29
|
/**
|
|
30
|
-
* Retrieve user\'s settings : global settings and user\'s preferences
|
|
30
|
+
* Retrieve user\'s settings : global settings and user\'s preferences. The category labels (aiInsightsCategoryLabels) are in the Accept-Language language, English when it is not supported.
|
|
31
31
|
* @summary Get user\'s settings
|
|
32
|
+
* @param {string} [acceptLanguage]
|
|
32
33
|
* @param {*} [options] Override http request option.
|
|
33
34
|
* @throws {RequiredError}
|
|
34
35
|
*/
|
|
35
|
-
getSettings1: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
36
|
+
getSettings1: (acceptLanguage?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
36
37
|
/**
|
|
37
38
|
* A null field leaves the current value unchanged. inbox=true creates the caller\'s Inbox folder at their root on demand (named from Accept-Language, else the deployment\'s default language); inbox=false forgets it without deleting the folder. 400 when the Inbox is not offered.
|
|
38
39
|
* @summary Save the caller\'s smart-filing preferences
|
|
@@ -55,12 +56,13 @@ export declare const SettingsApiFp: (configuration?: Configuration) => {
|
|
|
55
56
|
*/
|
|
56
57
|
get1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AiPreferencesView>>;
|
|
57
58
|
/**
|
|
58
|
-
* Retrieve user\'s settings : global settings and user\'s preferences
|
|
59
|
+
* Retrieve user\'s settings : global settings and user\'s preferences. The category labels (aiInsightsCategoryLabels) are in the Accept-Language language, English when it is not supported.
|
|
59
60
|
* @summary Get user\'s settings
|
|
61
|
+
* @param {string} [acceptLanguage]
|
|
60
62
|
* @param {*} [options] Override http request option.
|
|
61
63
|
* @throws {RequiredError}
|
|
62
64
|
*/
|
|
63
|
-
getSettings1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Settings>>;
|
|
65
|
+
getSettings1(acceptLanguage?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Settings>>;
|
|
64
66
|
/**
|
|
65
67
|
* A null field leaves the current value unchanged. inbox=true creates the caller\'s Inbox folder at their root on demand (named from Accept-Language, else the deployment\'s default language); inbox=false forgets it without deleting the folder. 400 when the Inbox is not offered.
|
|
66
68
|
* @summary Save the caller\'s smart-filing preferences
|
|
@@ -83,12 +85,13 @@ export declare const SettingsApiFactory: (configuration?: Configuration, basePat
|
|
|
83
85
|
*/
|
|
84
86
|
get1(options?: RawAxiosRequestConfig): AxiosPromise<AiPreferencesView>;
|
|
85
87
|
/**
|
|
86
|
-
* Retrieve user\'s settings : global settings and user\'s preferences
|
|
88
|
+
* Retrieve user\'s settings : global settings and user\'s preferences. The category labels (aiInsightsCategoryLabels) are in the Accept-Language language, English when it is not supported.
|
|
87
89
|
* @summary Get user\'s settings
|
|
90
|
+
* @param {string} [acceptLanguage]
|
|
88
91
|
* @param {*} [options] Override http request option.
|
|
89
92
|
* @throws {RequiredError}
|
|
90
93
|
*/
|
|
91
|
-
getSettings1(options?: RawAxiosRequestConfig): AxiosPromise<Settings>;
|
|
94
|
+
getSettings1(acceptLanguage?: string, options?: RawAxiosRequestConfig): AxiosPromise<Settings>;
|
|
92
95
|
/**
|
|
93
96
|
* A null field leaves the current value unchanged. inbox=true creates the caller\'s Inbox folder at their root on demand (named from Accept-Language, else the deployment\'s default language); inbox=false forgets it without deleting the folder. 400 when the Inbox is not offered.
|
|
94
97
|
* @summary Save the caller\'s smart-filing preferences
|
|
@@ -111,12 +114,13 @@ export declare class SettingsApi extends BaseAPI {
|
|
|
111
114
|
*/
|
|
112
115
|
get1(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AiPreferencesView, any, {}>>;
|
|
113
116
|
/**
|
|
114
|
-
* Retrieve user\'s settings : global settings and user\'s preferences
|
|
117
|
+
* Retrieve user\'s settings : global settings and user\'s preferences. The category labels (aiInsightsCategoryLabels) are in the Accept-Language language, English when it is not supported.
|
|
115
118
|
* @summary Get user\'s settings
|
|
119
|
+
* @param {string} [acceptLanguage]
|
|
116
120
|
* @param {*} [options] Override http request option.
|
|
117
121
|
* @throws {RequiredError}
|
|
118
122
|
*/
|
|
119
|
-
getSettings1(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Settings, any, {}>>;
|
|
123
|
+
getSettings1(acceptLanguage?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Settings, any, {}>>;
|
|
120
124
|
/**
|
|
121
125
|
* A null field leaves the current value unchanged. inbox=true creates the caller\'s Inbox folder at their root on demand (named from Accept-Language, else the deployment\'s default language); inbox=false forgets it without deleting the folder. 400 when the Inbox is not offered.
|
|
122
126
|
* @summary Save the caller\'s smart-filing preferences
|
package/dist/api/settings-api.js
CHANGED
|
@@ -64,12 +64,13 @@ const SettingsApiAxiosParamCreator = function (configuration) {
|
|
|
64
64
|
};
|
|
65
65
|
}),
|
|
66
66
|
/**
|
|
67
|
-
* Retrieve user\'s settings : global settings and user\'s preferences
|
|
67
|
+
* Retrieve user\'s settings : global settings and user\'s preferences. The category labels (aiInsightsCategoryLabels) are in the Accept-Language language, English when it is not supported.
|
|
68
68
|
* @summary Get user\'s settings
|
|
69
|
+
* @param {string} [acceptLanguage]
|
|
69
70
|
* @param {*} [options] Override http request option.
|
|
70
71
|
* @throws {RequiredError}
|
|
71
72
|
*/
|
|
72
|
-
getSettings1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
73
|
+
getSettings1: (acceptLanguage_1, ...args_1) => __awaiter(this, [acceptLanguage_1, ...args_1], void 0, function* (acceptLanguage, options = {}) {
|
|
73
74
|
const localVarPath = `/api/v1/settings`;
|
|
74
75
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
75
76
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -84,6 +85,9 @@ const SettingsApiAxiosParamCreator = function (configuration) {
|
|
|
84
85
|
// http bearer authentication required
|
|
85
86
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
86
87
|
localVarHeaderParameter['Accept'] = '*/*';
|
|
88
|
+
if (acceptLanguage != null) {
|
|
89
|
+
localVarHeaderParameter['Accept-Language'] = String(acceptLanguage);
|
|
90
|
+
}
|
|
87
91
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
88
92
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
89
93
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -155,15 +159,16 @@ const SettingsApiFp = function (configuration) {
|
|
|
155
159
|
});
|
|
156
160
|
},
|
|
157
161
|
/**
|
|
158
|
-
* Retrieve user\'s settings : global settings and user\'s preferences
|
|
162
|
+
* Retrieve user\'s settings : global settings and user\'s preferences. The category labels (aiInsightsCategoryLabels) are in the Accept-Language language, English when it is not supported.
|
|
159
163
|
* @summary Get user\'s settings
|
|
164
|
+
* @param {string} [acceptLanguage]
|
|
160
165
|
* @param {*} [options] Override http request option.
|
|
161
166
|
* @throws {RequiredError}
|
|
162
167
|
*/
|
|
163
|
-
getSettings1(options) {
|
|
168
|
+
getSettings1(acceptLanguage, options) {
|
|
164
169
|
return __awaiter(this, void 0, void 0, function* () {
|
|
165
170
|
var _a, _b, _c;
|
|
166
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSettings1(options);
|
|
171
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSettings1(acceptLanguage, options);
|
|
167
172
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
168
173
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SettingsApi.getSettings1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
169
174
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -205,13 +210,14 @@ const SettingsApiFactory = function (configuration, basePath, axios) {
|
|
|
205
210
|
return localVarFp.get1(options).then((request) => request(axios, basePath));
|
|
206
211
|
},
|
|
207
212
|
/**
|
|
208
|
-
* Retrieve user\'s settings : global settings and user\'s preferences
|
|
213
|
+
* Retrieve user\'s settings : global settings and user\'s preferences. The category labels (aiInsightsCategoryLabels) are in the Accept-Language language, English when it is not supported.
|
|
209
214
|
* @summary Get user\'s settings
|
|
215
|
+
* @param {string} [acceptLanguage]
|
|
210
216
|
* @param {*} [options] Override http request option.
|
|
211
217
|
* @throws {RequiredError}
|
|
212
218
|
*/
|
|
213
|
-
getSettings1(options) {
|
|
214
|
-
return localVarFp.getSettings1(options).then((request) => request(axios, basePath));
|
|
219
|
+
getSettings1(acceptLanguage, options) {
|
|
220
|
+
return localVarFp.getSettings1(acceptLanguage, options).then((request) => request(axios, basePath));
|
|
215
221
|
},
|
|
216
222
|
/**
|
|
217
223
|
* A null field leaves the current value unchanged. inbox=true creates the caller\'s Inbox folder at their root on demand (named from Accept-Language, else the deployment\'s default language); inbox=false forgets it without deleting the folder. 400 when the Inbox is not offered.
|
|
@@ -241,13 +247,14 @@ class SettingsApi extends base_1.BaseAPI {
|
|
|
241
247
|
return (0, exports.SettingsApiFp)(this.configuration).get1(options).then((request) => request(this.axios, this.basePath));
|
|
242
248
|
}
|
|
243
249
|
/**
|
|
244
|
-
* Retrieve user\'s settings : global settings and user\'s preferences
|
|
250
|
+
* Retrieve user\'s settings : global settings and user\'s preferences. The category labels (aiInsightsCategoryLabels) are in the Accept-Language language, English when it is not supported.
|
|
245
251
|
* @summary Get user\'s settings
|
|
252
|
+
* @param {string} [acceptLanguage]
|
|
246
253
|
* @param {*} [options] Override http request option.
|
|
247
254
|
* @throws {RequiredError}
|
|
248
255
|
*/
|
|
249
|
-
getSettings1(options) {
|
|
250
|
-
return (0, exports.SettingsApiFp)(this.configuration).getSettings1(options).then((request) => request(this.axios, this.basePath));
|
|
256
|
+
getSettings1(acceptLanguage, options) {
|
|
257
|
+
return (0, exports.SettingsApiFp)(this.configuration).getSettings1(acceptLanguage, options).then((request) => request(this.axios, this.basePath));
|
|
251
258
|
}
|
|
252
259
|
/**
|
|
253
260
|
* A null field leaves the current value unchanged. inbox=true creates the caller\'s Inbox folder at their root on demand (named from Accept-Language, else the deployment\'s default language); inbox=false forgets it without deleting the folder. 400 when the Inbox is not offered.
|
|
@@ -27,12 +27,13 @@ export declare const SettingsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
27
27
|
*/
|
|
28
28
|
get1: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
29
29
|
/**
|
|
30
|
-
* Retrieve user\'s settings : global settings and user\'s preferences
|
|
30
|
+
* Retrieve user\'s settings : global settings and user\'s preferences. The category labels (aiInsightsCategoryLabels) are in the Accept-Language language, English when it is not supported.
|
|
31
31
|
* @summary Get user\'s settings
|
|
32
|
+
* @param {string} [acceptLanguage]
|
|
32
33
|
* @param {*} [options] Override http request option.
|
|
33
34
|
* @throws {RequiredError}
|
|
34
35
|
*/
|
|
35
|
-
getSettings1: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
36
|
+
getSettings1: (acceptLanguage?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
36
37
|
/**
|
|
37
38
|
* A null field leaves the current value unchanged. inbox=true creates the caller\'s Inbox folder at their root on demand (named from Accept-Language, else the deployment\'s default language); inbox=false forgets it without deleting the folder. 400 when the Inbox is not offered.
|
|
38
39
|
* @summary Save the caller\'s smart-filing preferences
|
|
@@ -55,12 +56,13 @@ export declare const SettingsApiFp: (configuration?: Configuration) => {
|
|
|
55
56
|
*/
|
|
56
57
|
get1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AiPreferencesView>>;
|
|
57
58
|
/**
|
|
58
|
-
* Retrieve user\'s settings : global settings and user\'s preferences
|
|
59
|
+
* Retrieve user\'s settings : global settings and user\'s preferences. The category labels (aiInsightsCategoryLabels) are in the Accept-Language language, English when it is not supported.
|
|
59
60
|
* @summary Get user\'s settings
|
|
61
|
+
* @param {string} [acceptLanguage]
|
|
60
62
|
* @param {*} [options] Override http request option.
|
|
61
63
|
* @throws {RequiredError}
|
|
62
64
|
*/
|
|
63
|
-
getSettings1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Settings>>;
|
|
65
|
+
getSettings1(acceptLanguage?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Settings>>;
|
|
64
66
|
/**
|
|
65
67
|
* A null field leaves the current value unchanged. inbox=true creates the caller\'s Inbox folder at their root on demand (named from Accept-Language, else the deployment\'s default language); inbox=false forgets it without deleting the folder. 400 when the Inbox is not offered.
|
|
66
68
|
* @summary Save the caller\'s smart-filing preferences
|
|
@@ -83,12 +85,13 @@ export declare const SettingsApiFactory: (configuration?: Configuration, basePat
|
|
|
83
85
|
*/
|
|
84
86
|
get1(options?: RawAxiosRequestConfig): AxiosPromise<AiPreferencesView>;
|
|
85
87
|
/**
|
|
86
|
-
* Retrieve user\'s settings : global settings and user\'s preferences
|
|
88
|
+
* Retrieve user\'s settings : global settings and user\'s preferences. The category labels (aiInsightsCategoryLabels) are in the Accept-Language language, English when it is not supported.
|
|
87
89
|
* @summary Get user\'s settings
|
|
90
|
+
* @param {string} [acceptLanguage]
|
|
88
91
|
* @param {*} [options] Override http request option.
|
|
89
92
|
* @throws {RequiredError}
|
|
90
93
|
*/
|
|
91
|
-
getSettings1(options?: RawAxiosRequestConfig): AxiosPromise<Settings>;
|
|
94
|
+
getSettings1(acceptLanguage?: string, options?: RawAxiosRequestConfig): AxiosPromise<Settings>;
|
|
92
95
|
/**
|
|
93
96
|
* A null field leaves the current value unchanged. inbox=true creates the caller\'s Inbox folder at their root on demand (named from Accept-Language, else the deployment\'s default language); inbox=false forgets it without deleting the folder. 400 when the Inbox is not offered.
|
|
94
97
|
* @summary Save the caller\'s smart-filing preferences
|
|
@@ -111,12 +114,13 @@ export declare class SettingsApi extends BaseAPI {
|
|
|
111
114
|
*/
|
|
112
115
|
get1(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AiPreferencesView, any, {}>>;
|
|
113
116
|
/**
|
|
114
|
-
* Retrieve user\'s settings : global settings and user\'s preferences
|
|
117
|
+
* Retrieve user\'s settings : global settings and user\'s preferences. The category labels (aiInsightsCategoryLabels) are in the Accept-Language language, English when it is not supported.
|
|
115
118
|
* @summary Get user\'s settings
|
|
119
|
+
* @param {string} [acceptLanguage]
|
|
116
120
|
* @param {*} [options] Override http request option.
|
|
117
121
|
* @throws {RequiredError}
|
|
118
122
|
*/
|
|
119
|
-
getSettings1(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Settings, any, {}>>;
|
|
123
|
+
getSettings1(acceptLanguage?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Settings, any, {}>>;
|
|
120
124
|
/**
|
|
121
125
|
* A null field leaves the current value unchanged. inbox=true creates the caller\'s Inbox folder at their root on demand (named from Accept-Language, else the deployment\'s default language); inbox=false forgets it without deleting the folder. 400 when the Inbox is not offered.
|
|
122
126
|
* @summary Save the caller\'s smart-filing preferences
|
|
@@ -61,12 +61,13 @@ export const SettingsApiAxiosParamCreator = function (configuration) {
|
|
|
61
61
|
};
|
|
62
62
|
}),
|
|
63
63
|
/**
|
|
64
|
-
* Retrieve user\'s settings : global settings and user\'s preferences
|
|
64
|
+
* Retrieve user\'s settings : global settings and user\'s preferences. The category labels (aiInsightsCategoryLabels) are in the Accept-Language language, English when it is not supported.
|
|
65
65
|
* @summary Get user\'s settings
|
|
66
|
+
* @param {string} [acceptLanguage]
|
|
66
67
|
* @param {*} [options] Override http request option.
|
|
67
68
|
* @throws {RequiredError}
|
|
68
69
|
*/
|
|
69
|
-
getSettings1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
70
|
+
getSettings1: (acceptLanguage_1, ...args_1) => __awaiter(this, [acceptLanguage_1, ...args_1], void 0, function* (acceptLanguage, options = {}) {
|
|
70
71
|
const localVarPath = `/api/v1/settings`;
|
|
71
72
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
72
73
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -81,6 +82,9 @@ export const SettingsApiAxiosParamCreator = function (configuration) {
|
|
|
81
82
|
// http bearer authentication required
|
|
82
83
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
83
84
|
localVarHeaderParameter['Accept'] = '*/*';
|
|
85
|
+
if (acceptLanguage != null) {
|
|
86
|
+
localVarHeaderParameter['Accept-Language'] = String(acceptLanguage);
|
|
87
|
+
}
|
|
84
88
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
85
89
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
86
90
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -151,15 +155,16 @@ export const SettingsApiFp = function (configuration) {
|
|
|
151
155
|
});
|
|
152
156
|
},
|
|
153
157
|
/**
|
|
154
|
-
* Retrieve user\'s settings : global settings and user\'s preferences
|
|
158
|
+
* Retrieve user\'s settings : global settings and user\'s preferences. The category labels (aiInsightsCategoryLabels) are in the Accept-Language language, English when it is not supported.
|
|
155
159
|
* @summary Get user\'s settings
|
|
160
|
+
* @param {string} [acceptLanguage]
|
|
156
161
|
* @param {*} [options] Override http request option.
|
|
157
162
|
* @throws {RequiredError}
|
|
158
163
|
*/
|
|
159
|
-
getSettings1(options) {
|
|
164
|
+
getSettings1(acceptLanguage, options) {
|
|
160
165
|
return __awaiter(this, void 0, void 0, function* () {
|
|
161
166
|
var _a, _b, _c;
|
|
162
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSettings1(options);
|
|
167
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSettings1(acceptLanguage, options);
|
|
163
168
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
164
169
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SettingsApi.getSettings1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
165
170
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -200,13 +205,14 @@ export const SettingsApiFactory = function (configuration, basePath, axios) {
|
|
|
200
205
|
return localVarFp.get1(options).then((request) => request(axios, basePath));
|
|
201
206
|
},
|
|
202
207
|
/**
|
|
203
|
-
* Retrieve user\'s settings : global settings and user\'s preferences
|
|
208
|
+
* Retrieve user\'s settings : global settings and user\'s preferences. The category labels (aiInsightsCategoryLabels) are in the Accept-Language language, English when it is not supported.
|
|
204
209
|
* @summary Get user\'s settings
|
|
210
|
+
* @param {string} [acceptLanguage]
|
|
205
211
|
* @param {*} [options] Override http request option.
|
|
206
212
|
* @throws {RequiredError}
|
|
207
213
|
*/
|
|
208
|
-
getSettings1(options) {
|
|
209
|
-
return localVarFp.getSettings1(options).then((request) => request(axios, basePath));
|
|
214
|
+
getSettings1(acceptLanguage, options) {
|
|
215
|
+
return localVarFp.getSettings1(acceptLanguage, options).then((request) => request(axios, basePath));
|
|
210
216
|
},
|
|
211
217
|
/**
|
|
212
218
|
* A null field leaves the current value unchanged. inbox=true creates the caller\'s Inbox folder at their root on demand (named from Accept-Language, else the deployment\'s default language); inbox=false forgets it without deleting the folder. 400 when the Inbox is not offered.
|
|
@@ -235,13 +241,14 @@ export class SettingsApi extends BaseAPI {
|
|
|
235
241
|
return SettingsApiFp(this.configuration).get1(options).then((request) => request(this.axios, this.basePath));
|
|
236
242
|
}
|
|
237
243
|
/**
|
|
238
|
-
* Retrieve user\'s settings : global settings and user\'s preferences
|
|
244
|
+
* Retrieve user\'s settings : global settings and user\'s preferences. The category labels (aiInsightsCategoryLabels) are in the Accept-Language language, English when it is not supported.
|
|
239
245
|
* @summary Get user\'s settings
|
|
246
|
+
* @param {string} [acceptLanguage]
|
|
240
247
|
* @param {*} [options] Override http request option.
|
|
241
248
|
* @throws {RequiredError}
|
|
242
249
|
*/
|
|
243
|
-
getSettings1(options) {
|
|
244
|
-
return SettingsApiFp(this.configuration).getSettings1(options).then((request) => request(this.axios, this.basePath));
|
|
250
|
+
getSettings1(acceptLanguage, options) {
|
|
251
|
+
return SettingsApiFp(this.configuration).getSettings1(acceptLanguage, options).then((request) => request(this.axios, this.basePath));
|
|
245
252
|
}
|
|
246
253
|
/**
|
|
247
254
|
* A null field leaves the current value unchanged. inbox=true creates the caller\'s Inbox folder at their root on demand (named from Accept-Language, else the deployment\'s default language); inbox=false forgets it without deleting the folder. 400 when the Inbox is not offered.
|
|
@@ -22,6 +22,9 @@ export interface Settings {
|
|
|
22
22
|
'aiUserSettingsEnabled'?: boolean;
|
|
23
23
|
'aiInsightsActive'?: boolean;
|
|
24
24
|
'aiInsightsCategories'?: Array<string>;
|
|
25
|
+
'aiInsightsCategoryLabels'?: {
|
|
26
|
+
[key: string]: string;
|
|
27
|
+
};
|
|
25
28
|
'aiAutoFileActive'?: boolean;
|
|
26
29
|
'signatureActive'?: boolean;
|
|
27
30
|
'pdfToolsActive'?: boolean;
|
|
@@ -22,6 +22,9 @@ export interface Settings {
|
|
|
22
22
|
'aiUserSettingsEnabled'?: boolean;
|
|
23
23
|
'aiInsightsActive'?: boolean;
|
|
24
24
|
'aiInsightsCategories'?: Array<string>;
|
|
25
|
+
'aiInsightsCategoryLabels'?: {
|
|
26
|
+
[key: string]: string;
|
|
27
|
+
};
|
|
25
28
|
'aiAutoFileActive'?: boolean;
|
|
26
29
|
'signatureActive'?: boolean;
|
|
27
30
|
'pdfToolsActive'?: boolean;
|
package/docs/Settings.md
CHANGED
|
@@ -17,6 +17,7 @@ Name | Type | Description | Notes
|
|
|
17
17
|
**aiUserSettingsEnabled** | **boolean** | | [optional] [default to undefined]
|
|
18
18
|
**aiInsightsActive** | **boolean** | | [optional] [default to undefined]
|
|
19
19
|
**aiInsightsCategories** | **Array<string>** | | [optional] [default to undefined]
|
|
20
|
+
**aiInsightsCategoryLabels** | **{ [key: string]: string; }** | | [optional] [default to undefined]
|
|
20
21
|
**aiAutoFileActive** | **boolean** | | [optional] [default to undefined]
|
|
21
22
|
**signatureActive** | **boolean** | | [optional] [default to undefined]
|
|
22
23
|
**pdfToolsActive** | **boolean** | | [optional] [default to undefined]
|
|
@@ -52,6 +53,7 @@ const instance: Settings = {
|
|
|
52
53
|
aiUserSettingsEnabled,
|
|
53
54
|
aiInsightsActive,
|
|
54
55
|
aiInsightsCategories,
|
|
56
|
+
aiInsightsCategoryLabels,
|
|
55
57
|
aiAutoFileActive,
|
|
56
58
|
signatureActive,
|
|
57
59
|
pdfToolsActive,
|
package/docs/SettingsApi.md
CHANGED
|
@@ -54,7 +54,7 @@ This endpoint does not have any parameters.
|
|
|
54
54
|
# **getSettings1**
|
|
55
55
|
> Settings getSettings1()
|
|
56
56
|
|
|
57
|
-
Retrieve user\'s settings : global settings and user\'s preferences
|
|
57
|
+
Retrieve user\'s settings : global settings and user\'s preferences. The category labels (aiInsightsCategoryLabels) are in the Accept-Language language, English when it is not supported.
|
|
58
58
|
|
|
59
59
|
### Example
|
|
60
60
|
|
|
@@ -67,11 +67,18 @@ import {
|
|
|
67
67
|
const configuration = new Configuration();
|
|
68
68
|
const apiInstance = new SettingsApi(configuration);
|
|
69
69
|
|
|
70
|
-
|
|
70
|
+
let acceptLanguage: string; // (optional) (default to undefined)
|
|
71
|
+
|
|
72
|
+
const { status, data } = await apiInstance.getSettings1(
|
|
73
|
+
acceptLanguage
|
|
74
|
+
);
|
|
71
75
|
```
|
|
72
76
|
|
|
73
77
|
### Parameters
|
|
74
|
-
|
|
78
|
+
|
|
79
|
+
|Name | Type | Description | Notes|
|
|
80
|
+
|------------- | ------------- | ------------- | -------------|
|
|
81
|
+
| **acceptLanguage** | [**string**] | | (optional) defaults to undefined|
|
|
75
82
|
|
|
76
83
|
|
|
77
84
|
### Return type
|
package/models/settings.ts
CHANGED
|
@@ -27,6 +27,7 @@ export interface Settings {
|
|
|
27
27
|
'aiUserSettingsEnabled'?: boolean;
|
|
28
28
|
'aiInsightsActive'?: boolean;
|
|
29
29
|
'aiInsightsCategories'?: Array<string>;
|
|
30
|
+
'aiInsightsCategoryLabels'?: { [key: string]: string; };
|
|
30
31
|
'aiAutoFileActive'?: boolean;
|
|
31
32
|
'signatureActive'?: boolean;
|
|
32
33
|
'pdfToolsActive'?: boolean;
|