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

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 +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 +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 +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-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,250 @@
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
+ // URLSearchParams not necessarily used
26
+ // @ts-ignore
27
+ import { URL, URLSearchParams } from 'url';
28
+ const FormData = require('form-data');
29
+ /**
30
+ * SettingValuesApi - axios parameter creator
31
+ * @export
32
+ */
33
+ export const SettingValuesApiAxiosParamCreator = function (configuration?: Configuration) {
34
+ return {
35
+ /**
36
+ * 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\"
37
+ * @summary List setting values
38
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
39
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
40
+ * @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.
41
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
42
+ * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
43
+ * @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.
44
+ * @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/>
45
+ * @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.
46
+ * @param {*} [options] Override http request option.
47
+ * @throws {RequiredError}
48
+ */
49
+ listSettingValues: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
50
+ const localVarPath = `/settingservice/v2/setting-values`;
51
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
52
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
53
+ let baseOptions;
54
+ let baseAccessToken;
55
+ if (configuration) {
56
+ baseOptions = configuration.baseOptions;
57
+ baseAccessToken = configuration.accessToken;
58
+ }
59
+
60
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
61
+ const localVarHeaderParameter = {} as any;
62
+ const localVarQueryParameter = {} as any;
63
+
64
+ // authentication bearer required
65
+ // http bearer authentication required
66
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
67
+
68
+ if (pageSize !== undefined) {
69
+ localVarQueryParameter['pageSize'] = pageSize;
70
+ }
71
+
72
+ if (pageToken !== undefined) {
73
+ localVarQueryParameter['pageToken'] = pageToken;
74
+ }
75
+
76
+ if (filter !== undefined) {
77
+ localVarQueryParameter['filter'] = filter;
78
+ }
79
+
80
+ if (search !== undefined) {
81
+ localVarQueryParameter['search'] = search;
82
+ }
83
+
84
+ if (order !== undefined) {
85
+ localVarQueryParameter['order'] = order;
86
+ }
87
+
88
+ if (expand !== undefined) {
89
+ localVarQueryParameter['expand'] = expand;
90
+ }
91
+
92
+ if (filters !== undefined) {
93
+ localVarQueryParameter['filters'] = filters;
94
+ }
95
+
96
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
97
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
98
+ }
99
+
100
+
101
+
102
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
103
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
104
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
105
+
106
+ return {
107
+ url: toPathString(localVarUrlObj),
108
+ options: localVarRequestOptions,
109
+ };
110
+ },
111
+ }
112
+ };
113
+
114
+ /**
115
+ * SettingValuesApi - functional programming interface
116
+ * @export
117
+ */
118
+ export const SettingValuesApiFp = function(configuration?: Configuration) {
119
+ const localVarAxiosParamCreator = SettingValuesApiAxiosParamCreator(configuration)
120
+ return {
121
+ /**
122
+ * 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\"
123
+ * @summary List setting values
124
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
125
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
126
+ * @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.
127
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
128
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
129
+ * @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.
130
+ * @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;
131
+ * @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.
132
+ * @param {*} [options] Override http request option.
133
+ * @throws {RequiredError}
134
+ */
135
+ 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>> {
136
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSettingValues(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
137
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
138
+ },
139
+ }
140
+ };
141
+
142
+ /**
143
+ * SettingValuesApi - factory interface
144
+ * @export
145
+ */
146
+ export const SettingValuesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
147
+ const localVarFp = SettingValuesApiFp(configuration)
148
+ return {
149
+ /**
150
+ * 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\"
151
+ * @summary List setting values
152
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
153
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
154
+ * @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.
155
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
156
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
157
+ * @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.
158
+ * @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;
159
+ * @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.
160
+ * @param {*} [options] Override http request option.
161
+ * @throws {RequiredError}
162
+ */
163
+ listSettingValues(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListSettingValuesResponseClass> {
164
+ return localVarFp.listSettingValues(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
165
+ },
166
+ };
167
+ };
168
+
169
+ /**
170
+ * Request parameters for listSettingValues operation in SettingValuesApi.
171
+ * @export
172
+ * @interface SettingValuesApiListSettingValuesRequest
173
+ */
174
+ export interface SettingValuesApiListSettingValuesRequest {
175
+ /**
176
+ * Bearer Token: provided by the login endpoint under the name accessToken.
177
+ * @type {string}
178
+ * @memberof SettingValuesApiListSettingValues
179
+ */
180
+ readonly authorization?: string
181
+
182
+ /**
183
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
184
+ * @type {number}
185
+ * @memberof SettingValuesApiListSettingValues
186
+ */
187
+ readonly pageSize?: number
188
+
189
+ /**
190
+ * 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.
191
+ * @type {string}
192
+ * @memberof SettingValuesApiListSettingValues
193
+ */
194
+ readonly pageToken?: string
195
+
196
+ /**
197
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
198
+ * @type {string}
199
+ * @memberof SettingValuesApiListSettingValues
200
+ */
201
+ readonly filter?: string
202
+
203
+ /**
204
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
205
+ * @type {string}
206
+ * @memberof SettingValuesApiListSettingValues
207
+ */
208
+ readonly search?: string
209
+
210
+ /**
211
+ * 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.
212
+ * @type {string}
213
+ * @memberof SettingValuesApiListSettingValues
214
+ */
215
+ readonly order?: string
216
+
217
+ /**
218
+ * 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;
219
+ * @type {string}
220
+ * @memberof SettingValuesApiListSettingValues
221
+ */
222
+ readonly expand?: string
223
+
224
+ /**
225
+ * 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.
226
+ * @type {string}
227
+ * @memberof SettingValuesApiListSettingValues
228
+ */
229
+ readonly filters?: string
230
+ }
231
+
232
+ /**
233
+ * SettingValuesApi - object-oriented interface
234
+ * @export
235
+ * @class SettingValuesApi
236
+ * @extends {BaseAPI}
237
+ */
238
+ export class SettingValuesApi extends BaseAPI {
239
+ /**
240
+ * 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\"
241
+ * @summary List setting values
242
+ * @param {SettingValuesApiListSettingValuesRequest} requestParameters Request parameters.
243
+ * @param {*} [options] Override http request option.
244
+ * @throws {RequiredError}
245
+ * @memberof SettingValuesApi
246
+ */
247
+ public listSettingValues(requestParameters: SettingValuesApiListSettingValuesRequest = {}, options?: AxiosRequestConfig) {
248
+ 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));
249
+ }
250
+ }
package/api.ts CHANGED
@@ -27,9 +27,13 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
27
27
  import { HealthApi } from './api';
28
28
  import { PublicKeysApi } from './api';
29
29
  import { SettingDefinitionsApi } from './api';
30
+ import { SettingKeysApi } from './api';
31
+ import { SettingValuesApi } from './api';
30
32
 
31
33
 
32
34
  export * from './api/health-api';
33
35
  export * from './api/public-keys-api';
34
36
  export * from './api/setting-definitions-api';
37
+ export * from './api/setting-keys-api';
38
+ export * from './api/setting-values-api';
35
39
 
@@ -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}
@@ -99,22 +99,22 @@ var SettingDefinitionsApiAxiosParamCreator = function (configuration) {
99
99
  /**
100
100
  * 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\"
101
101
  * @summary Retrieve the setting definition
102
- * @param {string} key
102
+ * @param {string} code
103
103
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
104
104
  * @param {*} [options] Override http request option.
105
105
  * @throws {RequiredError}
106
106
  */
107
- getSettingDefinition: function (key, authorization, options) {
107
+ getSettingDefinition: function (code, authorization, options) {
108
108
  if (options === void 0) { options = {}; }
109
109
  return __awaiter(_this, void 0, void 0, function () {
110
110
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
111
  return __generator(this, function (_a) {
112
112
  switch (_a.label) {
113
113
  case 0:
114
- // verify required parameter 'key' is not null or undefined
115
- (0, common_1.assertParamExists)('getSettingDefinition', 'key', key);
116
- localVarPath = "/settingservice/v1/settings/definitions/{key}"
117
- .replace("{".concat("key", "}"), encodeURIComponent(String(key)));
114
+ // verify required parameter 'code' is not null or undefined
115
+ (0, common_1.assertParamExists)('getSettingDefinition', 'code', code);
116
+ localVarPath = "/settingservice/v1/settings/definitions/{code}"
117
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
118
118
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
119
119
  if (configuration) {
120
120
  baseOptions = configuration.baseOptions;
@@ -229,17 +229,17 @@ var SettingDefinitionsApiFp = function (configuration) {
229
229
  /**
230
230
  * 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\"
231
231
  * @summary Retrieve the setting definition
232
- * @param {string} key
232
+ * @param {string} code
233
233
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
234
234
  * @param {*} [options] Override http request option.
235
235
  * @throws {RequiredError}
236
236
  */
237
- getSettingDefinition: function (key, authorization, options) {
237
+ getSettingDefinition: function (code, authorization, options) {
238
238
  return __awaiter(this, void 0, void 0, function () {
239
239
  var localVarAxiosArgs;
240
240
  return __generator(this, function (_a) {
241
241
  switch (_a.label) {
242
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSettingDefinition(key, authorization, options)];
242
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSettingDefinition(code, authorization, options)];
243
243
  case 1:
244
244
  localVarAxiosArgs = _a.sent();
245
245
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -287,13 +287,13 @@ var SettingDefinitionsApiFactory = function (configuration, basePath, axios) {
287
287
  /**
288
288
  * 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\"
289
289
  * @summary Retrieve the setting definition
290
- * @param {string} key
290
+ * @param {string} code
291
291
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
292
292
  * @param {*} [options] Override http request option.
293
293
  * @throws {RequiredError}
294
294
  */
295
- getSettingDefinition: function (key, authorization, options) {
296
- return localVarFp.getSettingDefinition(key, authorization, options).then(function (request) { return request(axios, basePath); });
295
+ getSettingDefinition: function (code, authorization, options) {
296
+ return localVarFp.getSettingDefinition(code, authorization, options).then(function (request) { return request(axios, basePath); });
297
297
  },
298
298
  /**
299
299
  * 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\"
@@ -336,7 +336,7 @@ var SettingDefinitionsApi = /** @class */ (function (_super) {
336
336
  */
337
337
  SettingDefinitionsApi.prototype.getSettingDefinition = function (requestParameters, options) {
338
338
  var _this = this;
339
- return (0, exports.SettingDefinitionsApiFp)(this.configuration).getSettingDefinition(requestParameters.key, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
339
+ return (0, exports.SettingDefinitionsApiFp)(this.configuration).getSettingDefinition(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
340
340
  };
341
341
  /**
342
342
  * 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\"