@emilgroup/setting-sdk-node 0.3.1-beta.17 → 0.3.1-beta.19

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 (59) hide show
  1. package/.openapi-generator/FILES +15 -0
  2. package/README.md +2 -2
  3. package/api/setting-definitions-api.ts +121 -14
  4. package/api/setting-keys-api.ts +868 -0
  5. package/api/setting-values-api.ts +250 -0
  6. package/api.ts +4 -0
  7. package/dist/api/setting-definitions-api.d.ts +64 -7
  8. package/dist/api/setting-definitions-api.js +106 -13
  9. package/dist/api/setting-keys-api.d.ts +490 -0
  10. package/dist/api/setting-keys-api.js +768 -0
  11. package/dist/api/setting-values-api.d.ts +150 -0
  12. package/dist/api/setting-values-api.js +264 -0
  13. package/dist/api.d.ts +2 -0
  14. package/dist/api.js +2 -0
  15. package/dist/models/create-setting-definition-request-dto.d.ts +93 -0
  16. package/dist/models/create-setting-definition-request-dto.js +53 -0
  17. package/dist/models/create-setting-definition-response-class.d.ts +25 -0
  18. package/dist/models/create-setting-definition-response-class.js +15 -0
  19. package/dist/models/create-setting-key-request-dto.d.ts +36 -0
  20. package/dist/models/create-setting-key-request-dto.js +15 -0
  21. package/dist/models/create-setting-key-response-class.d.ts +25 -0
  22. package/dist/models/create-setting-key-response-class.js +15 -0
  23. package/dist/models/delete-setting-key-response-class.d.ts +24 -0
  24. package/dist/models/delete-setting-key-response-class.js +15 -0
  25. package/dist/models/get-setting-key-response-class.d.ts +25 -0
  26. package/dist/models/get-setting-key-response-class.js +15 -0
  27. package/dist/models/index.d.ts +13 -0
  28. package/dist/models/index.js +13 -0
  29. package/dist/models/list-setting-keys-response-class.d.ts +43 -0
  30. package/dist/models/list-setting-keys-response-class.js +15 -0
  31. package/dist/models/list-setting-values-response-class.d.ts +43 -0
  32. package/dist/models/list-setting-values-response-class.js +15 -0
  33. package/dist/models/setting-definition-class.d.ts +7 -18
  34. package/dist/models/setting-definition-version-class.d.ts +72 -0
  35. package/dist/models/setting-definition-version-class.js +15 -0
  36. package/dist/models/setting-key-class.d.ts +85 -0
  37. package/dist/models/setting-key-class.js +15 -0
  38. package/dist/models/setting-value-class.d.ts +72 -0
  39. package/dist/models/setting-value-class.js +15 -0
  40. package/dist/models/update-setting-key-request-rest-dto.d.ts +30 -0
  41. package/dist/models/update-setting-key-request-rest-dto.js +15 -0
  42. package/dist/models/update-setting-key-response-class.d.ts +25 -0
  43. package/dist/models/update-setting-key-response-class.js +15 -0
  44. package/models/create-setting-definition-request-dto.ts +103 -0
  45. package/models/create-setting-definition-response-class.ts +31 -0
  46. package/models/create-setting-key-request-dto.ts +42 -0
  47. package/models/create-setting-key-response-class.ts +31 -0
  48. package/models/delete-setting-key-response-class.ts +30 -0
  49. package/models/get-setting-key-response-class.ts +31 -0
  50. package/models/index.ts +13 -0
  51. package/models/list-setting-keys-response-class.ts +49 -0
  52. package/models/list-setting-values-response-class.ts +49 -0
  53. package/models/setting-definition-class.ts +7 -18
  54. package/models/setting-definition-version-class.ts +78 -0
  55. package/models/setting-key-class.ts +91 -0
  56. package/models/setting-value-class.ts +78 -0
  57. package/models/update-setting-key-request-rest-dto.ts +36 -0
  58. package/models/update-setting-key-response-class.ts +31 -0
  59. package/package.json +1 -1
@@ -0,0 +1,768 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL SettingService
6
+ * The EMIL SettingService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
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 __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.SettingKeysApi = exports.SettingKeysApiFactory = exports.SettingKeysApiFp = exports.SettingKeysApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ // URLSearchParams not necessarily used
89
+ // @ts-ignore
90
+ var url_1 = require("url");
91
+ var FormData = require('form-data');
92
+ /**
93
+ * SettingKeysApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var SettingKeysApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ * Create a new setting key with an initial value **Required Permissions** \"tenant-management.settings.create\"
101
+ * @summary Create the setting key
102
+ * @param {CreateSettingKeyRequestDto} createSettingKeyRequestDto
103
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ */
107
+ createSettingKey: function (createSettingKeyRequestDto, authorization, options) {
108
+ if (options === void 0) { options = {}; }
109
+ return __awaiter(_this, void 0, void 0, function () {
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
+ return __generator(this, function (_a) {
112
+ switch (_a.label) {
113
+ case 0:
114
+ // verify required parameter 'createSettingKeyRequestDto' is not null or undefined
115
+ (0, common_1.assertParamExists)('createSettingKey', 'createSettingKeyRequestDto', createSettingKeyRequestDto);
116
+ localVarPath = "/settingservice/v2/setting-keys";
117
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
118
+ if (configuration) {
119
+ baseOptions = configuration.baseOptions;
120
+ baseAccessToken = configuration.accessToken;
121
+ }
122
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
123
+ localVarHeaderParameter = {};
124
+ localVarQueryParameter = {};
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
128
+ case 1:
129
+ // authentication bearer required
130
+ // http bearer authentication required
131
+ _a.sent();
132
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ }
135
+ localVarHeaderParameter['Content-Type'] = 'application/json';
136
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
137
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
138
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
139
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSettingKeyRequestDto, localVarRequestOptions, configuration);
140
+ return [2 /*return*/, {
141
+ url: (0, common_1.toPathString)(localVarUrlObj),
142
+ options: localVarRequestOptions,
143
+ }];
144
+ }
145
+ });
146
+ });
147
+ },
148
+ /**
149
+ * undefined **Required Permissions** \"tenant-management.settings.delete\"
150
+ * @param {string} code
151
+ * @param {string} ifMatch
152
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
153
+ * @param {*} [options] Override http request option.
154
+ * @throws {RequiredError}
155
+ */
156
+ deleteSettingKey: function (code, ifMatch, authorization, options) {
157
+ if (options === void 0) { options = {}; }
158
+ return __awaiter(_this, void 0, void 0, function () {
159
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
160
+ return __generator(this, function (_a) {
161
+ switch (_a.label) {
162
+ case 0:
163
+ // verify required parameter 'code' is not null or undefined
164
+ (0, common_1.assertParamExists)('deleteSettingKey', 'code', code);
165
+ // verify required parameter 'ifMatch' is not null or undefined
166
+ (0, common_1.assertParamExists)('deleteSettingKey', 'ifMatch', ifMatch);
167
+ localVarPath = "/settingservice/v2/setting-keys/{code}"
168
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
169
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
170
+ if (configuration) {
171
+ baseOptions = configuration.baseOptions;
172
+ baseAccessToken = configuration.accessToken;
173
+ }
174
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
175
+ localVarHeaderParameter = {};
176
+ localVarQueryParameter = {};
177
+ // authentication bearer required
178
+ // http bearer authentication required
179
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
180
+ case 1:
181
+ // authentication bearer required
182
+ // http bearer authentication required
183
+ _a.sent();
184
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
185
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
186
+ }
187
+ if (ifMatch !== undefined && ifMatch !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
188
+ localVarHeaderParameter['if-match'] = String(ifMatch ? ifMatch : baseAccessToken);
189
+ }
190
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
191
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
192
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
193
+ return [2 /*return*/, {
194
+ url: (0, common_1.toPathString)(localVarUrlObj),
195
+ options: localVarRequestOptions,
196
+ }];
197
+ }
198
+ });
199
+ });
200
+ },
201
+ /**
202
+ * Retrieves the details of the setting key that was previously created. Supply the unique setting key code that was returned when you created it and Emil Api will return the corresponding setting key information. **Required Permissions** \"tenant-management.settings.view\"
203
+ * @summary Retrieve the setting key
204
+ * @param {string} code
205
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
206
+ * @param {number} [version] Specific value version. Defaults to latest.
207
+ * @param {string} [expand] Optional expand (definition only).
208
+ * @param {*} [options] Override http request option.
209
+ * @throws {RequiredError}
210
+ */
211
+ getSettingKey: function (code, authorization, version, expand, options) {
212
+ if (options === void 0) { options = {}; }
213
+ return __awaiter(_this, void 0, void 0, function () {
214
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
215
+ return __generator(this, function (_a) {
216
+ switch (_a.label) {
217
+ case 0:
218
+ // verify required parameter 'code' is not null or undefined
219
+ (0, common_1.assertParamExists)('getSettingKey', 'code', code);
220
+ localVarPath = "/settingservice/v2/setting-keys/{code}"
221
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
222
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
223
+ if (configuration) {
224
+ baseOptions = configuration.baseOptions;
225
+ baseAccessToken = configuration.accessToken;
226
+ }
227
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
228
+ localVarHeaderParameter = {};
229
+ localVarQueryParameter = {};
230
+ // authentication bearer required
231
+ // http bearer authentication required
232
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
233
+ case 1:
234
+ // authentication bearer required
235
+ // http bearer authentication required
236
+ _a.sent();
237
+ if (version !== undefined) {
238
+ localVarQueryParameter['version'] = version;
239
+ }
240
+ if (expand !== undefined) {
241
+ localVarQueryParameter['expand'] = expand;
242
+ }
243
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
244
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
245
+ }
246
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
247
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
248
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
249
+ return [2 /*return*/, {
250
+ url: (0, common_1.toPathString)(localVarUrlObj),
251
+ options: localVarRequestOptions,
252
+ }];
253
+ }
254
+ });
255
+ });
256
+ },
257
+ /**
258
+ * Retrieves the details of the setting key by slug that was previously created. Supply the unique setting key by slug code that was returned when you created it and Emil Api will return the corresponding setting key by slug information. **Required Permissions** \"tenant-management.settings.view\"
259
+ * @summary Retrieve the setting key by slug
260
+ * @param {string} slug
261
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
262
+ * @param {number} [version] Specific value version. Defaults to latest.
263
+ * @param {string} [expand] Optional expand (definition only).
264
+ * @param {*} [options] Override http request option.
265
+ * @throws {RequiredError}
266
+ */
267
+ getSettingKeyBySlug: function (slug, authorization, version, expand, options) {
268
+ if (options === void 0) { options = {}; }
269
+ return __awaiter(_this, void 0, void 0, function () {
270
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
271
+ return __generator(this, function (_a) {
272
+ switch (_a.label) {
273
+ case 0:
274
+ // verify required parameter 'slug' is not null or undefined
275
+ (0, common_1.assertParamExists)('getSettingKeyBySlug', 'slug', slug);
276
+ localVarPath = "/settingservice/v2/setting-keys/slugs/{slug}"
277
+ .replace("{".concat("slug", "}"), encodeURIComponent(String(slug)));
278
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
279
+ if (configuration) {
280
+ baseOptions = configuration.baseOptions;
281
+ baseAccessToken = configuration.accessToken;
282
+ }
283
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
284
+ localVarHeaderParameter = {};
285
+ localVarQueryParameter = {};
286
+ // authentication bearer required
287
+ // http bearer authentication required
288
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
289
+ case 1:
290
+ // authentication bearer required
291
+ // http bearer authentication required
292
+ _a.sent();
293
+ if (version !== undefined) {
294
+ localVarQueryParameter['version'] = version;
295
+ }
296
+ if (expand !== undefined) {
297
+ localVarQueryParameter['expand'] = expand;
298
+ }
299
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
300
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
301
+ }
302
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
303
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
304
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
305
+ return [2 /*return*/, {
306
+ url: (0, common_1.toPathString)(localVarUrlObj),
307
+ options: localVarRequestOptions,
308
+ }];
309
+ }
310
+ });
311
+ });
312
+ },
313
+ /**
314
+ * Returns a list of setting keys you have previously created. The setting keys are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.settings.view\"
315
+ * @summary List setting keys
316
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
317
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
318
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
319
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
320
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
321
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
322
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
323
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
324
+ * @param {*} [options] Override http request option.
325
+ * @throws {RequiredError}
326
+ */
327
+ listSettingKeys: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
328
+ if (options === void 0) { options = {}; }
329
+ return __awaiter(_this, void 0, void 0, function () {
330
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
331
+ return __generator(this, function (_a) {
332
+ switch (_a.label) {
333
+ case 0:
334
+ localVarPath = "/settingservice/v2/setting-keys";
335
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
336
+ if (configuration) {
337
+ baseOptions = configuration.baseOptions;
338
+ baseAccessToken = configuration.accessToken;
339
+ }
340
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
341
+ localVarHeaderParameter = {};
342
+ localVarQueryParameter = {};
343
+ // authentication bearer required
344
+ // http bearer authentication required
345
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
346
+ case 1:
347
+ // authentication bearer required
348
+ // http bearer authentication required
349
+ _a.sent();
350
+ if (pageSize !== undefined) {
351
+ localVarQueryParameter['pageSize'] = pageSize;
352
+ }
353
+ if (pageToken !== undefined) {
354
+ localVarQueryParameter['pageToken'] = pageToken;
355
+ }
356
+ if (filter !== undefined) {
357
+ localVarQueryParameter['filter'] = filter;
358
+ }
359
+ if (search !== undefined) {
360
+ localVarQueryParameter['search'] = search;
361
+ }
362
+ if (order !== undefined) {
363
+ localVarQueryParameter['order'] = order;
364
+ }
365
+ if (expand !== undefined) {
366
+ localVarQueryParameter['expand'] = expand;
367
+ }
368
+ if (filters !== undefined) {
369
+ localVarQueryParameter['filters'] = filters;
370
+ }
371
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
372
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
373
+ }
374
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
375
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
376
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
377
+ return [2 /*return*/, {
378
+ url: (0, common_1.toPathString)(localVarUrlObj),
379
+ options: localVarRequestOptions,
380
+ }];
381
+ }
382
+ });
383
+ });
384
+ },
385
+ /**
386
+ * Updates the specified setting key by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"tenant-management.settings.update\"
387
+ * @summary Update the setting key
388
+ * @param {string} code
389
+ * @param {string} ifMatch
390
+ * @param {UpdateSettingKeyRequestRestDto} updateSettingKeyRequestRestDto
391
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
392
+ * @param {*} [options] Override http request option.
393
+ * @throws {RequiredError}
394
+ */
395
+ updateSettingKey: function (code, ifMatch, updateSettingKeyRequestRestDto, authorization, options) {
396
+ if (options === void 0) { options = {}; }
397
+ return __awaiter(_this, void 0, void 0, function () {
398
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
399
+ return __generator(this, function (_a) {
400
+ switch (_a.label) {
401
+ case 0:
402
+ // verify required parameter 'code' is not null or undefined
403
+ (0, common_1.assertParamExists)('updateSettingKey', 'code', code);
404
+ // verify required parameter 'ifMatch' is not null or undefined
405
+ (0, common_1.assertParamExists)('updateSettingKey', 'ifMatch', ifMatch);
406
+ // verify required parameter 'updateSettingKeyRequestRestDto' is not null or undefined
407
+ (0, common_1.assertParamExists)('updateSettingKey', 'updateSettingKeyRequestRestDto', updateSettingKeyRequestRestDto);
408
+ localVarPath = "/settingservice/v2/setting-keys/{code}"
409
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
410
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
411
+ if (configuration) {
412
+ baseOptions = configuration.baseOptions;
413
+ baseAccessToken = configuration.accessToken;
414
+ }
415
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
416
+ localVarHeaderParameter = {};
417
+ localVarQueryParameter = {};
418
+ // authentication bearer required
419
+ // http bearer authentication required
420
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
421
+ case 1:
422
+ // authentication bearer required
423
+ // http bearer authentication required
424
+ _a.sent();
425
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
426
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
427
+ }
428
+ if (ifMatch !== undefined && ifMatch !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
429
+ localVarHeaderParameter['if-match'] = String(ifMatch ? ifMatch : baseAccessToken);
430
+ }
431
+ localVarHeaderParameter['Content-Type'] = 'application/json';
432
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
433
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
434
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
435
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSettingKeyRequestRestDto, localVarRequestOptions, configuration);
436
+ return [2 /*return*/, {
437
+ url: (0, common_1.toPathString)(localVarUrlObj),
438
+ options: localVarRequestOptions,
439
+ }];
440
+ }
441
+ });
442
+ });
443
+ },
444
+ };
445
+ };
446
+ exports.SettingKeysApiAxiosParamCreator = SettingKeysApiAxiosParamCreator;
447
+ /**
448
+ * SettingKeysApi - functional programming interface
449
+ * @export
450
+ */
451
+ var SettingKeysApiFp = function (configuration) {
452
+ var localVarAxiosParamCreator = (0, exports.SettingKeysApiAxiosParamCreator)(configuration);
453
+ return {
454
+ /**
455
+ * Create a new setting key with an initial value **Required Permissions** \"tenant-management.settings.create\"
456
+ * @summary Create the setting key
457
+ * @param {CreateSettingKeyRequestDto} createSettingKeyRequestDto
458
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
459
+ * @param {*} [options] Override http request option.
460
+ * @throws {RequiredError}
461
+ */
462
+ createSettingKey: function (createSettingKeyRequestDto, authorization, options) {
463
+ return __awaiter(this, void 0, void 0, function () {
464
+ var localVarAxiosArgs;
465
+ return __generator(this, function (_a) {
466
+ switch (_a.label) {
467
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createSettingKey(createSettingKeyRequestDto, authorization, options)];
468
+ case 1:
469
+ localVarAxiosArgs = _a.sent();
470
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
471
+ }
472
+ });
473
+ });
474
+ },
475
+ /**
476
+ * undefined **Required Permissions** \"tenant-management.settings.delete\"
477
+ * @param {string} code
478
+ * @param {string} ifMatch
479
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
480
+ * @param {*} [options] Override http request option.
481
+ * @throws {RequiredError}
482
+ */
483
+ deleteSettingKey: function (code, ifMatch, authorization, options) {
484
+ return __awaiter(this, void 0, void 0, function () {
485
+ var localVarAxiosArgs;
486
+ return __generator(this, function (_a) {
487
+ switch (_a.label) {
488
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteSettingKey(code, ifMatch, authorization, options)];
489
+ case 1:
490
+ localVarAxiosArgs = _a.sent();
491
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
492
+ }
493
+ });
494
+ });
495
+ },
496
+ /**
497
+ * Retrieves the details of the setting key that was previously created. Supply the unique setting key code that was returned when you created it and Emil Api will return the corresponding setting key information. **Required Permissions** \"tenant-management.settings.view\"
498
+ * @summary Retrieve the setting key
499
+ * @param {string} code
500
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
501
+ * @param {number} [version] Specific value version. Defaults to latest.
502
+ * @param {string} [expand] Optional expand (definition only).
503
+ * @param {*} [options] Override http request option.
504
+ * @throws {RequiredError}
505
+ */
506
+ getSettingKey: function (code, authorization, version, expand, options) {
507
+ return __awaiter(this, void 0, void 0, function () {
508
+ var localVarAxiosArgs;
509
+ return __generator(this, function (_a) {
510
+ switch (_a.label) {
511
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSettingKey(code, authorization, version, expand, options)];
512
+ case 1:
513
+ localVarAxiosArgs = _a.sent();
514
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
515
+ }
516
+ });
517
+ });
518
+ },
519
+ /**
520
+ * Retrieves the details of the setting key by slug that was previously created. Supply the unique setting key by slug code that was returned when you created it and Emil Api will return the corresponding setting key by slug information. **Required Permissions** \"tenant-management.settings.view\"
521
+ * @summary Retrieve the setting key by slug
522
+ * @param {string} slug
523
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
524
+ * @param {number} [version] Specific value version. Defaults to latest.
525
+ * @param {string} [expand] Optional expand (definition only).
526
+ * @param {*} [options] Override http request option.
527
+ * @throws {RequiredError}
528
+ */
529
+ getSettingKeyBySlug: function (slug, authorization, version, expand, options) {
530
+ return __awaiter(this, void 0, void 0, function () {
531
+ var localVarAxiosArgs;
532
+ return __generator(this, function (_a) {
533
+ switch (_a.label) {
534
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSettingKeyBySlug(slug, authorization, version, expand, options)];
535
+ case 1:
536
+ localVarAxiosArgs = _a.sent();
537
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
538
+ }
539
+ });
540
+ });
541
+ },
542
+ /**
543
+ * Returns a list of setting keys you have previously created. The setting keys are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.settings.view\"
544
+ * @summary List setting keys
545
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
546
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
547
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
548
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
549
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
550
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
551
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
552
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
553
+ * @param {*} [options] Override http request option.
554
+ * @throws {RequiredError}
555
+ */
556
+ listSettingKeys: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
557
+ return __awaiter(this, void 0, void 0, function () {
558
+ var localVarAxiosArgs;
559
+ return __generator(this, function (_a) {
560
+ switch (_a.label) {
561
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listSettingKeys(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
562
+ case 1:
563
+ localVarAxiosArgs = _a.sent();
564
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
565
+ }
566
+ });
567
+ });
568
+ },
569
+ /**
570
+ * Updates the specified setting key by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"tenant-management.settings.update\"
571
+ * @summary Update the setting key
572
+ * @param {string} code
573
+ * @param {string} ifMatch
574
+ * @param {UpdateSettingKeyRequestRestDto} updateSettingKeyRequestRestDto
575
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
576
+ * @param {*} [options] Override http request option.
577
+ * @throws {RequiredError}
578
+ */
579
+ updateSettingKey: function (code, ifMatch, updateSettingKeyRequestRestDto, authorization, options) {
580
+ return __awaiter(this, void 0, void 0, function () {
581
+ var localVarAxiosArgs;
582
+ return __generator(this, function (_a) {
583
+ switch (_a.label) {
584
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateSettingKey(code, ifMatch, updateSettingKeyRequestRestDto, authorization, options)];
585
+ case 1:
586
+ localVarAxiosArgs = _a.sent();
587
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
588
+ }
589
+ });
590
+ });
591
+ },
592
+ };
593
+ };
594
+ exports.SettingKeysApiFp = SettingKeysApiFp;
595
+ /**
596
+ * SettingKeysApi - factory interface
597
+ * @export
598
+ */
599
+ var SettingKeysApiFactory = function (configuration, basePath, axios) {
600
+ var localVarFp = (0, exports.SettingKeysApiFp)(configuration);
601
+ return {
602
+ /**
603
+ * Create a new setting key with an initial value **Required Permissions** \"tenant-management.settings.create\"
604
+ * @summary Create the setting key
605
+ * @param {CreateSettingKeyRequestDto} createSettingKeyRequestDto
606
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
607
+ * @param {*} [options] Override http request option.
608
+ * @throws {RequiredError}
609
+ */
610
+ createSettingKey: function (createSettingKeyRequestDto, authorization, options) {
611
+ return localVarFp.createSettingKey(createSettingKeyRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
612
+ },
613
+ /**
614
+ * undefined **Required Permissions** \"tenant-management.settings.delete\"
615
+ * @param {string} code
616
+ * @param {string} ifMatch
617
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
618
+ * @param {*} [options] Override http request option.
619
+ * @throws {RequiredError}
620
+ */
621
+ deleteSettingKey: function (code, ifMatch, authorization, options) {
622
+ return localVarFp.deleteSettingKey(code, ifMatch, authorization, options).then(function (request) { return request(axios, basePath); });
623
+ },
624
+ /**
625
+ * Retrieves the details of the setting key that was previously created. Supply the unique setting key code that was returned when you created it and Emil Api will return the corresponding setting key information. **Required Permissions** \"tenant-management.settings.view\"
626
+ * @summary Retrieve the setting key
627
+ * @param {string} code
628
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
629
+ * @param {number} [version] Specific value version. Defaults to latest.
630
+ * @param {string} [expand] Optional expand (definition only).
631
+ * @param {*} [options] Override http request option.
632
+ * @throws {RequiredError}
633
+ */
634
+ getSettingKey: function (code, authorization, version, expand, options) {
635
+ return localVarFp.getSettingKey(code, authorization, version, expand, options).then(function (request) { return request(axios, basePath); });
636
+ },
637
+ /**
638
+ * Retrieves the details of the setting key by slug that was previously created. Supply the unique setting key by slug code that was returned when you created it and Emil Api will return the corresponding setting key by slug information. **Required Permissions** \"tenant-management.settings.view\"
639
+ * @summary Retrieve the setting key by slug
640
+ * @param {string} slug
641
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
642
+ * @param {number} [version] Specific value version. Defaults to latest.
643
+ * @param {string} [expand] Optional expand (definition only).
644
+ * @param {*} [options] Override http request option.
645
+ * @throws {RequiredError}
646
+ */
647
+ getSettingKeyBySlug: function (slug, authorization, version, expand, options) {
648
+ return localVarFp.getSettingKeyBySlug(slug, authorization, version, expand, options).then(function (request) { return request(axios, basePath); });
649
+ },
650
+ /**
651
+ * Returns a list of setting keys you have previously created. The setting keys are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.settings.view\"
652
+ * @summary List setting keys
653
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
654
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
655
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
656
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
657
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
658
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
659
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
660
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
661
+ * @param {*} [options] Override http request option.
662
+ * @throws {RequiredError}
663
+ */
664
+ listSettingKeys: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
665
+ return localVarFp.listSettingKeys(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
666
+ },
667
+ /**
668
+ * Updates the specified setting key by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"tenant-management.settings.update\"
669
+ * @summary Update the setting key
670
+ * @param {string} code
671
+ * @param {string} ifMatch
672
+ * @param {UpdateSettingKeyRequestRestDto} updateSettingKeyRequestRestDto
673
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
674
+ * @param {*} [options] Override http request option.
675
+ * @throws {RequiredError}
676
+ */
677
+ updateSettingKey: function (code, ifMatch, updateSettingKeyRequestRestDto, authorization, options) {
678
+ return localVarFp.updateSettingKey(code, ifMatch, updateSettingKeyRequestRestDto, authorization, options).then(function (request) { return request(axios, basePath); });
679
+ },
680
+ };
681
+ };
682
+ exports.SettingKeysApiFactory = SettingKeysApiFactory;
683
+ /**
684
+ * SettingKeysApi - object-oriented interface
685
+ * @export
686
+ * @class SettingKeysApi
687
+ * @extends {BaseAPI}
688
+ */
689
+ var SettingKeysApi = /** @class */ (function (_super) {
690
+ __extends(SettingKeysApi, _super);
691
+ function SettingKeysApi() {
692
+ return _super !== null && _super.apply(this, arguments) || this;
693
+ }
694
+ /**
695
+ * Create a new setting key with an initial value **Required Permissions** \"tenant-management.settings.create\"
696
+ * @summary Create the setting key
697
+ * @param {SettingKeysApiCreateSettingKeyRequest} requestParameters Request parameters.
698
+ * @param {*} [options] Override http request option.
699
+ * @throws {RequiredError}
700
+ * @memberof SettingKeysApi
701
+ */
702
+ SettingKeysApi.prototype.createSettingKey = function (requestParameters, options) {
703
+ var _this = this;
704
+ return (0, exports.SettingKeysApiFp)(this.configuration).createSettingKey(requestParameters.createSettingKeyRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
705
+ };
706
+ /**
707
+ * undefined **Required Permissions** \"tenant-management.settings.delete\"
708
+ * @param {SettingKeysApiDeleteSettingKeyRequest} requestParameters Request parameters.
709
+ * @param {*} [options] Override http request option.
710
+ * @throws {RequiredError}
711
+ * @memberof SettingKeysApi
712
+ */
713
+ SettingKeysApi.prototype.deleteSettingKey = function (requestParameters, options) {
714
+ var _this = this;
715
+ return (0, exports.SettingKeysApiFp)(this.configuration).deleteSettingKey(requestParameters.code, requestParameters.ifMatch, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
716
+ };
717
+ /**
718
+ * Retrieves the details of the setting key that was previously created. Supply the unique setting key code that was returned when you created it and Emil Api will return the corresponding setting key information. **Required Permissions** \"tenant-management.settings.view\"
719
+ * @summary Retrieve the setting key
720
+ * @param {SettingKeysApiGetSettingKeyRequest} requestParameters Request parameters.
721
+ * @param {*} [options] Override http request option.
722
+ * @throws {RequiredError}
723
+ * @memberof SettingKeysApi
724
+ */
725
+ SettingKeysApi.prototype.getSettingKey = function (requestParameters, options) {
726
+ var _this = this;
727
+ return (0, exports.SettingKeysApiFp)(this.configuration).getSettingKey(requestParameters.code, requestParameters.authorization, requestParameters.version, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
728
+ };
729
+ /**
730
+ * Retrieves the details of the setting key by slug that was previously created. Supply the unique setting key by slug code that was returned when you created it and Emil Api will return the corresponding setting key by slug information. **Required Permissions** \"tenant-management.settings.view\"
731
+ * @summary Retrieve the setting key by slug
732
+ * @param {SettingKeysApiGetSettingKeyBySlugRequest} requestParameters Request parameters.
733
+ * @param {*} [options] Override http request option.
734
+ * @throws {RequiredError}
735
+ * @memberof SettingKeysApi
736
+ */
737
+ SettingKeysApi.prototype.getSettingKeyBySlug = function (requestParameters, options) {
738
+ var _this = this;
739
+ return (0, exports.SettingKeysApiFp)(this.configuration).getSettingKeyBySlug(requestParameters.slug, requestParameters.authorization, requestParameters.version, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
740
+ };
741
+ /**
742
+ * Returns a list of setting keys you have previously created. The setting keys are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.settings.view\"
743
+ * @summary List setting keys
744
+ * @param {SettingKeysApiListSettingKeysRequest} requestParameters Request parameters.
745
+ * @param {*} [options] Override http request option.
746
+ * @throws {RequiredError}
747
+ * @memberof SettingKeysApi
748
+ */
749
+ SettingKeysApi.prototype.listSettingKeys = function (requestParameters, options) {
750
+ var _this = this;
751
+ if (requestParameters === void 0) { requestParameters = {}; }
752
+ return (0, exports.SettingKeysApiFp)(this.configuration).listSettingKeys(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
753
+ };
754
+ /**
755
+ * Updates the specified setting key by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"tenant-management.settings.update\"
756
+ * @summary Update the setting key
757
+ * @param {SettingKeysApiUpdateSettingKeyRequest} requestParameters Request parameters.
758
+ * @param {*} [options] Override http request option.
759
+ * @throws {RequiredError}
760
+ * @memberof SettingKeysApi
761
+ */
762
+ SettingKeysApi.prototype.updateSettingKey = function (requestParameters, options) {
763
+ var _this = this;
764
+ return (0, exports.SettingKeysApiFp)(this.configuration).updateSettingKey(requestParameters.code, requestParameters.ifMatch, requestParameters.updateSettingKeyRequestRestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
765
+ };
766
+ return SettingKeysApi;
767
+ }(base_1.BaseAPI));
768
+ exports.SettingKeysApi = SettingKeysApi;