@emilgroup/setting-sdk 0.3.1-beta.18 → 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 (53) hide show
  1. package/.openapi-generator/FILES +13 -0
  2. package/README.md +2 -2
  3. package/api/setting-definitions-api.ts +14 -14
  4. package/api/setting-keys-api.ts +864 -0
  5. package/api/setting-values-api.ts +246 -0
  6. package/api.ts +4 -0
  7. package/dist/api/setting-definitions-api.d.ts +7 -7
  8. package/dist/api/setting-definitions-api.js +13 -13
  9. package/dist/api/setting-keys-api.d.ts +490 -0
  10. package/dist/api/setting-keys-api.js +764 -0
  11. package/dist/api/setting-values-api.d.ts +150 -0
  12. package/dist/api/setting-values-api.js +260 -0
  13. package/dist/api.d.ts +2 -0
  14. package/dist/api.js +2 -0
  15. package/dist/models/create-setting-key-request-dto.d.ts +36 -0
  16. package/dist/models/create-setting-key-request-dto.js +15 -0
  17. package/dist/models/create-setting-key-response-class.d.ts +25 -0
  18. package/dist/models/create-setting-key-response-class.js +15 -0
  19. package/dist/models/delete-setting-key-response-class.d.ts +24 -0
  20. package/dist/models/delete-setting-key-response-class.js +15 -0
  21. package/dist/models/get-setting-key-response-class.d.ts +25 -0
  22. package/dist/models/get-setting-key-response-class.js +15 -0
  23. package/dist/models/index.d.ts +11 -0
  24. package/dist/models/index.js +11 -0
  25. package/dist/models/list-setting-keys-response-class.d.ts +43 -0
  26. package/dist/models/list-setting-keys-response-class.js +15 -0
  27. package/dist/models/list-setting-values-response-class.d.ts +43 -0
  28. package/dist/models/list-setting-values-response-class.js +15 -0
  29. package/dist/models/setting-definition-class.d.ts +7 -18
  30. package/dist/models/setting-definition-version-class.d.ts +72 -0
  31. package/dist/models/setting-definition-version-class.js +15 -0
  32. package/dist/models/setting-key-class.d.ts +85 -0
  33. package/dist/models/setting-key-class.js +15 -0
  34. package/dist/models/setting-value-class.d.ts +72 -0
  35. package/dist/models/setting-value-class.js +15 -0
  36. package/dist/models/update-setting-key-request-rest-dto.d.ts +30 -0
  37. package/dist/models/update-setting-key-request-rest-dto.js +15 -0
  38. package/dist/models/update-setting-key-response-class.d.ts +25 -0
  39. package/dist/models/update-setting-key-response-class.js +15 -0
  40. package/models/create-setting-key-request-dto.ts +42 -0
  41. package/models/create-setting-key-response-class.ts +31 -0
  42. package/models/delete-setting-key-response-class.ts +30 -0
  43. package/models/get-setting-key-response-class.ts +31 -0
  44. package/models/index.ts +11 -0
  45. package/models/list-setting-keys-response-class.ts +49 -0
  46. package/models/list-setting-values-response-class.ts +49 -0
  47. package/models/setting-definition-class.ts +7 -18
  48. package/models/setting-definition-version-class.ts +78 -0
  49. package/models/setting-key-class.ts +91 -0
  50. package/models/setting-value-class.ts +78 -0
  51. package/models/update-setting-key-request-rest-dto.ts +36 -0
  52. package/models/update-setting-key-response-class.ts +31 -0
  53. package/package.json +1 -1
@@ -0,0 +1,246 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL SettingService
5
+ * The EMIL SettingService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { ListSettingValuesResponseClass } from '../models';
25
+ /**
26
+ * SettingValuesApi - axios parameter creator
27
+ * @export
28
+ */
29
+ export const SettingValuesApiAxiosParamCreator = function (configuration?: Configuration) {
30
+ return {
31
+ /**
32
+ * Returns a list of setting values you have previously created. The setting values 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\"
33
+ * @summary List setting values
34
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
35
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
36
+ * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
37
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
38
+ * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
39
+ * @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.
40
+ * @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.<br/> <br/>
41
+ * @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.
42
+ * @param {*} [options] Override http request option.
43
+ * @throws {RequiredError}
44
+ */
45
+ listSettingValues: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46
+ const localVarPath = `/settingservice/v2/setting-values`;
47
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
48
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
49
+ let baseOptions;
50
+ let baseAccessToken;
51
+ if (configuration) {
52
+ baseOptions = configuration.baseOptions;
53
+ baseAccessToken = configuration.accessToken;
54
+ }
55
+
56
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
57
+ const localVarHeaderParameter = {} as any;
58
+ const localVarQueryParameter = {} as any;
59
+
60
+ // authentication bearer required
61
+ // http bearer authentication required
62
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
63
+
64
+ if (pageSize !== undefined) {
65
+ localVarQueryParameter['pageSize'] = pageSize;
66
+ }
67
+
68
+ if (pageToken !== undefined) {
69
+ localVarQueryParameter['pageToken'] = pageToken;
70
+ }
71
+
72
+ if (filter !== undefined) {
73
+ localVarQueryParameter['filter'] = filter;
74
+ }
75
+
76
+ if (search !== undefined) {
77
+ localVarQueryParameter['search'] = search;
78
+ }
79
+
80
+ if (order !== undefined) {
81
+ localVarQueryParameter['order'] = order;
82
+ }
83
+
84
+ if (expand !== undefined) {
85
+ localVarQueryParameter['expand'] = expand;
86
+ }
87
+
88
+ if (filters !== undefined) {
89
+ localVarQueryParameter['filters'] = filters;
90
+ }
91
+
92
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
93
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
94
+ }
95
+
96
+
97
+
98
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
99
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
100
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
101
+
102
+ return {
103
+ url: toPathString(localVarUrlObj),
104
+ options: localVarRequestOptions,
105
+ };
106
+ },
107
+ }
108
+ };
109
+
110
+ /**
111
+ * SettingValuesApi - functional programming interface
112
+ * @export
113
+ */
114
+ export const SettingValuesApiFp = function(configuration?: Configuration) {
115
+ const localVarAxiosParamCreator = SettingValuesApiAxiosParamCreator(configuration)
116
+ return {
117
+ /**
118
+ * Returns a list of setting values you have previously created. The setting values 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\"
119
+ * @summary List setting values
120
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
121
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
122
+ * @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.
123
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
124
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
125
+ * @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.
126
+ * @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;
127
+ * @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.
128
+ * @param {*} [options] Override http request option.
129
+ * @throws {RequiredError}
130
+ */
131
+ async listSettingValues(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSettingValuesResponseClass>> {
132
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSettingValues(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
133
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
134
+ },
135
+ }
136
+ };
137
+
138
+ /**
139
+ * SettingValuesApi - factory interface
140
+ * @export
141
+ */
142
+ export const SettingValuesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
143
+ const localVarFp = SettingValuesApiFp(configuration)
144
+ return {
145
+ /**
146
+ * Returns a list of setting values you have previously created. The setting values 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\"
147
+ * @summary List setting values
148
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
149
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
150
+ * @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.
151
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
152
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
153
+ * @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.
154
+ * @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;
155
+ * @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.
156
+ * @param {*} [options] Override http request option.
157
+ * @throws {RequiredError}
158
+ */
159
+ listSettingValues(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListSettingValuesResponseClass> {
160
+ return localVarFp.listSettingValues(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
161
+ },
162
+ };
163
+ };
164
+
165
+ /**
166
+ * Request parameters for listSettingValues operation in SettingValuesApi.
167
+ * @export
168
+ * @interface SettingValuesApiListSettingValuesRequest
169
+ */
170
+ export interface SettingValuesApiListSettingValuesRequest {
171
+ /**
172
+ * Bearer Token: provided by the login endpoint under the name accessToken.
173
+ * @type {string}
174
+ * @memberof SettingValuesApiListSettingValues
175
+ */
176
+ readonly authorization?: string
177
+
178
+ /**
179
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
180
+ * @type {number}
181
+ * @memberof SettingValuesApiListSettingValues
182
+ */
183
+ readonly pageSize?: number
184
+
185
+ /**
186
+ * 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.
187
+ * @type {string}
188
+ * @memberof SettingValuesApiListSettingValues
189
+ */
190
+ readonly pageToken?: string
191
+
192
+ /**
193
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
194
+ * @type {string}
195
+ * @memberof SettingValuesApiListSettingValues
196
+ */
197
+ readonly filter?: string
198
+
199
+ /**
200
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
201
+ * @type {string}
202
+ * @memberof SettingValuesApiListSettingValues
203
+ */
204
+ readonly search?: string
205
+
206
+ /**
207
+ * 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.
208
+ * @type {string}
209
+ * @memberof SettingValuesApiListSettingValues
210
+ */
211
+ readonly order?: string
212
+
213
+ /**
214
+ * 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;
215
+ * @type {string}
216
+ * @memberof SettingValuesApiListSettingValues
217
+ */
218
+ readonly expand?: string
219
+
220
+ /**
221
+ * 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.
222
+ * @type {string}
223
+ * @memberof SettingValuesApiListSettingValues
224
+ */
225
+ readonly filters?: string
226
+ }
227
+
228
+ /**
229
+ * SettingValuesApi - object-oriented interface
230
+ * @export
231
+ * @class SettingValuesApi
232
+ * @extends {BaseAPI}
233
+ */
234
+ export class SettingValuesApi extends BaseAPI {
235
+ /**
236
+ * Returns a list of setting values you have previously created. The setting values 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\"
237
+ * @summary List setting values
238
+ * @param {SettingValuesApiListSettingValuesRequest} requestParameters Request parameters.
239
+ * @param {*} [options] Override http request option.
240
+ * @throws {RequiredError}
241
+ * @memberof SettingValuesApi
242
+ */
243
+ public listSettingValues(requestParameters: SettingValuesApiListSettingValuesRequest = {}, options?: AxiosRequestConfig) {
244
+ return SettingValuesApiFp(this.configuration).listSettingValues(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
245
+ }
246
+ }
package/api.ts CHANGED
@@ -23,9 +23,13 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
23
23
  import { HealthApi } from './api';
24
24
  import { PublicKeysApi } from './api';
25
25
  import { SettingDefinitionsApi } from './api';
26
+ import { SettingKeysApi } from './api';
27
+ import { SettingValuesApi } from './api';
26
28
 
27
29
 
28
30
  export * from './api/health-api';
29
31
  export * from './api/public-keys-api';
30
32
  export * from './api/setting-definitions-api';
33
+ export * from './api/setting-keys-api';
34
+ export * from './api/setting-values-api';
31
35
 
@@ -22,12 +22,12 @@ export declare const SettingDefinitionsApiAxiosParamCreator: (configuration?: Co
22
22
  /**
23
23
  * Retrieves the details of the setting definition that was previously created. Supply the unique setting definition code that was returned when you created it and Emil Api will return the corresponding setting definition information. **Required Permissions** \"tenant-management.settings.view\"
24
24
  * @summary Retrieve the setting definition
25
- * @param {string} key
25
+ * @param {string} code
26
26
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
27
27
  * @param {*} [options] Override http request option.
28
28
  * @throws {RequiredError}
29
29
  */
30
- getSettingDefinition: (key: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
30
+ getSettingDefinition: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
31
31
  /**
32
32
  * Returns a list of setting definitions you have previously created. The setting definitions 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\"
33
33
  * @summary List setting definitions
@@ -52,12 +52,12 @@ export declare const SettingDefinitionsApiFp: (configuration?: Configuration) =>
52
52
  /**
53
53
  * Retrieves the details of the setting definition that was previously created. Supply the unique setting definition code that was returned when you created it and Emil Api will return the corresponding setting definition information. **Required Permissions** \"tenant-management.settings.view\"
54
54
  * @summary Retrieve the setting definition
55
- * @param {string} key
55
+ * @param {string} code
56
56
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
57
57
  * @param {*} [options] Override http request option.
58
58
  * @throws {RequiredError}
59
59
  */
60
- getSettingDefinition(key: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSettingDefinitionResponseClass>>;
60
+ getSettingDefinition(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSettingDefinitionResponseClass>>;
61
61
  /**
62
62
  * Returns a list of setting definitions you have previously created. The setting definitions 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\"
63
63
  * @summary List setting definitions
@@ -82,12 +82,12 @@ export declare const SettingDefinitionsApiFactory: (configuration?: Configuratio
82
82
  /**
83
83
  * Retrieves the details of the setting definition that was previously created. Supply the unique setting definition code that was returned when you created it and Emil Api will return the corresponding setting definition information. **Required Permissions** \"tenant-management.settings.view\"
84
84
  * @summary Retrieve the setting definition
85
- * @param {string} key
85
+ * @param {string} code
86
86
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
87
87
  * @param {*} [options] Override http request option.
88
88
  * @throws {RequiredError}
89
89
  */
90
- getSettingDefinition(key: string, authorization?: string, options?: any): AxiosPromise<GetSettingDefinitionResponseClass>;
90
+ getSettingDefinition(code: string, authorization?: string, options?: any): AxiosPromise<GetSettingDefinitionResponseClass>;
91
91
  /**
92
92
  * Returns a list of setting definitions you have previously created. The setting definitions 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\"
93
93
  * @summary List setting definitions
@@ -115,7 +115,7 @@ export interface SettingDefinitionsApiGetSettingDefinitionRequest {
115
115
  * @type {string}
116
116
  * @memberof SettingDefinitionsApiGetSettingDefinition
117
117
  */
118
- readonly key: string;
118
+ readonly code: string;
119
119
  /**
120
120
  * Bearer Token: provided by the login endpoint under the name accessToken.
121
121
  * @type {string}
@@ -95,22 +95,22 @@ var SettingDefinitionsApiAxiosParamCreator = function (configuration) {
95
95
  /**
96
96
  * Retrieves the details of the setting definition that was previously created. Supply the unique setting definition code that was returned when you created it and Emil Api will return the corresponding setting definition information. **Required Permissions** \"tenant-management.settings.view\"
97
97
  * @summary Retrieve the setting definition
98
- * @param {string} key
98
+ * @param {string} code
99
99
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
100
100
  * @param {*} [options] Override http request option.
101
101
  * @throws {RequiredError}
102
102
  */
103
- getSettingDefinition: function (key, authorization, options) {
103
+ getSettingDefinition: function (code, authorization, options) {
104
104
  if (options === void 0) { options = {}; }
105
105
  return __awaiter(_this, void 0, void 0, function () {
106
106
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
107
  return __generator(this, function (_a) {
108
108
  switch (_a.label) {
109
109
  case 0:
110
- // verify required parameter 'key' is not null or undefined
111
- (0, common_1.assertParamExists)('getSettingDefinition', 'key', key);
112
- localVarPath = "/settingservice/v1/settings/definitions/{key}"
113
- .replace("{".concat("key", "}"), encodeURIComponent(String(key)));
110
+ // verify required parameter 'code' is not null or undefined
111
+ (0, common_1.assertParamExists)('getSettingDefinition', 'code', code);
112
+ localVarPath = "/settingservice/v1/settings/definitions/{code}"
113
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
114
114
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
115
115
  if (configuration) {
116
116
  baseOptions = configuration.baseOptions;
@@ -225,17 +225,17 @@ var SettingDefinitionsApiFp = function (configuration) {
225
225
  /**
226
226
  * Retrieves the details of the setting definition that was previously created. Supply the unique setting definition code that was returned when you created it and Emil Api will return the corresponding setting definition information. **Required Permissions** \"tenant-management.settings.view\"
227
227
  * @summary Retrieve the setting definition
228
- * @param {string} key
228
+ * @param {string} code
229
229
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
230
230
  * @param {*} [options] Override http request option.
231
231
  * @throws {RequiredError}
232
232
  */
233
- getSettingDefinition: function (key, authorization, options) {
233
+ getSettingDefinition: function (code, authorization, options) {
234
234
  return __awaiter(this, void 0, void 0, function () {
235
235
  var localVarAxiosArgs;
236
236
  return __generator(this, function (_a) {
237
237
  switch (_a.label) {
238
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSettingDefinition(key, authorization, options)];
238
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSettingDefinition(code, authorization, options)];
239
239
  case 1:
240
240
  localVarAxiosArgs = _a.sent();
241
241
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -283,13 +283,13 @@ var SettingDefinitionsApiFactory = function (configuration, basePath, axios) {
283
283
  /**
284
284
  * Retrieves the details of the setting definition that was previously created. Supply the unique setting definition code that was returned when you created it and Emil Api will return the corresponding setting definition information. **Required Permissions** \"tenant-management.settings.view\"
285
285
  * @summary Retrieve the setting definition
286
- * @param {string} key
286
+ * @param {string} code
287
287
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
288
288
  * @param {*} [options] Override http request option.
289
289
  * @throws {RequiredError}
290
290
  */
291
- getSettingDefinition: function (key, authorization, options) {
292
- return localVarFp.getSettingDefinition(key, authorization, options).then(function (request) { return request(axios, basePath); });
291
+ getSettingDefinition: function (code, authorization, options) {
292
+ return localVarFp.getSettingDefinition(code, authorization, options).then(function (request) { return request(axios, basePath); });
293
293
  },
294
294
  /**
295
295
  * Returns a list of setting definitions you have previously created. The setting definitions 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\"
@@ -332,7 +332,7 @@ var SettingDefinitionsApi = /** @class */ (function (_super) {
332
332
  */
333
333
  SettingDefinitionsApi.prototype.getSettingDefinition = function (requestParameters, options) {
334
334
  var _this = this;
335
- return (0, exports.SettingDefinitionsApiFp)(this.configuration).getSettingDefinition(requestParameters.key, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
335
+ return (0, exports.SettingDefinitionsApiFp)(this.configuration).getSettingDefinition(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
336
336
  };
337
337
  /**
338
338
  * Returns a list of setting definitions you have previously created. The setting definitions 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\"