@emilgroup/setting-sdk-node 0.3.1-beta.16 → 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 (60) hide show
  1. package/.openapi-generator/FILES +17 -0
  2. package/README.md +2 -2
  3. package/api/setting-definitions-api.ts +353 -0
  4. package/api/setting-keys-api.ts +868 -0
  5. package/api/setting-values-api.ts +250 -0
  6. package/api.ts +6 -0
  7. package/dist/api/setting-definitions-api.d.ts +206 -0
  8. package/dist/api/setting-definitions-api.js +356 -0
  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 +3 -0
  14. package/dist/api.js +3 -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-definition-response-class.d.ts +25 -0
  22. package/dist/models/get-setting-definition-response-class.js +15 -0
  23. package/dist/models/get-setting-key-response-class.d.ts +25 -0
  24. package/dist/models/get-setting-key-response-class.js +15 -0
  25. package/dist/models/index.d.ts +14 -0
  26. package/dist/models/index.js +14 -0
  27. package/dist/models/list-setting-definitions-response-class.d.ts +43 -0
  28. package/dist/models/list-setting-definitions-response-class.js +15 -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 +124 -0
  34. package/dist/models/setting-definition-class.js +53 -0
  35. package/dist/models/setting-definition-version-class.d.ts +72 -0
  36. package/dist/models/setting-definition-version-class.js +15 -0
  37. package/dist/models/setting-key-class.d.ts +85 -0
  38. package/dist/models/setting-key-class.js +15 -0
  39. package/dist/models/setting-value-class.d.ts +72 -0
  40. package/dist/models/setting-value-class.js +15 -0
  41. package/dist/models/update-setting-key-request-rest-dto.d.ts +30 -0
  42. package/dist/models/update-setting-key-request-rest-dto.js +15 -0
  43. package/dist/models/update-setting-key-response-class.d.ts +25 -0
  44. package/dist/models/update-setting-key-response-class.js +15 -0
  45. package/models/create-setting-key-request-dto.ts +42 -0
  46. package/models/create-setting-key-response-class.ts +31 -0
  47. package/models/delete-setting-key-response-class.ts +30 -0
  48. package/models/get-setting-definition-response-class.ts +31 -0
  49. package/models/get-setting-key-response-class.ts +31 -0
  50. package/models/index.ts +14 -0
  51. package/models/list-setting-definitions-response-class.ts +49 -0
  52. package/models/list-setting-keys-response-class.ts +49 -0
  53. package/models/list-setting-values-response-class.ts +49 -0
  54. package/models/setting-definition-class.ts +134 -0
  55. package/models/setting-definition-version-class.ts +78 -0
  56. package/models/setting-key-class.ts +91 -0
  57. package/models/setting-value-class.ts +78 -0
  58. package/models/update-setting-key-request-rest-dto.ts +36 -0
  59. package/models/update-setting-key-response-class.ts +31 -0
  60. package/package.json +1 -1
@@ -5,6 +5,9 @@ README.md
5
5
  api.ts
6
6
  api/health-api.ts
7
7
  api/public-keys-api.ts
8
+ api/setting-definitions-api.ts
9
+ api/setting-keys-api.ts
10
+ api/setting-values-api.ts
8
11
  base.ts
9
12
  common.ts
10
13
  configuration.ts
@@ -12,15 +15,29 @@ git_push.sh
12
15
  index.ts
13
16
  models/create-public-key-request-dto.ts
14
17
  models/create-public-key-response-class.ts
18
+ models/create-setting-key-request-dto.ts
19
+ models/create-setting-key-response-class.ts
15
20
  models/delete-public-key-request-dto.ts
21
+ models/delete-setting-key-response-class.ts
16
22
  models/get-public-key-response-class.ts
23
+ models/get-setting-definition-response-class.ts
24
+ models/get-setting-key-response-class.ts
17
25
  models/index.ts
18
26
  models/inline-response200.ts
19
27
  models/inline-response503.ts
20
28
  models/list-public-keys-response-class.ts
29
+ models/list-setting-definitions-response-class.ts
30
+ models/list-setting-keys-response-class.ts
31
+ models/list-setting-values-response-class.ts
21
32
  models/public-key-class.ts
22
33
  models/rotate-public-key-response-class.ts
34
+ models/setting-definition-class.ts
35
+ models/setting-definition-version-class.ts
36
+ models/setting-key-class.ts
37
+ models/setting-value-class.ts
23
38
  models/update-public-key-request-dto.ts
24
39
  models/update-public-key-response-class.ts
40
+ models/update-setting-key-request-rest-dto.ts
41
+ models/update-setting-key-response-class.ts
25
42
  package.json
26
43
  tsconfig.json
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/setting-sdk-node@0.3.1-beta.16 --save
20
+ npm install @emilgroup/setting-sdk-node@0.3.1-beta.18 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/setting-sdk-node@0.3.1-beta.16
24
+ yarn add @emilgroup/setting-sdk-node@0.3.1-beta.18
25
25
  ```
26
26
 
27
27
  And then you can import ``.
@@ -0,0 +1,353 @@
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 { GetSettingDefinitionResponseClass } from '../models';
25
+ // @ts-ignore
26
+ import { ListSettingDefinitionsResponseClass } from '../models';
27
+ // URLSearchParams not necessarily used
28
+ // @ts-ignore
29
+ import { URL, URLSearchParams } from 'url';
30
+ const FormData = require('form-data');
31
+ /**
32
+ * SettingDefinitionsApi - axios parameter creator
33
+ * @export
34
+ */
35
+ export const SettingDefinitionsApiAxiosParamCreator = function (configuration?: Configuration) {
36
+ return {
37
+ /**
38
+ * 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\"
39
+ * @summary Retrieve the setting definition
40
+ * @param {string} code
41
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
42
+ * @param {*} [options] Override http request option.
43
+ * @throws {RequiredError}
44
+ */
45
+ getSettingDefinition: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46
+ // verify required parameter 'code' is not null or undefined
47
+ assertParamExists('getSettingDefinition', 'code', code)
48
+ const localVarPath = `/settingservice/v1/settings/definitions/{code}`
49
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
50
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
51
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
52
+ let baseOptions;
53
+ let baseAccessToken;
54
+ if (configuration) {
55
+ baseOptions = configuration.baseOptions;
56
+ baseAccessToken = configuration.accessToken;
57
+ }
58
+
59
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
60
+ const localVarHeaderParameter = {} as any;
61
+ const localVarQueryParameter = {} as any;
62
+
63
+ // authentication bearer required
64
+ // http bearer authentication required
65
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
66
+
67
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
68
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
69
+ }
70
+
71
+
72
+
73
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
74
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
75
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
76
+
77
+ return {
78
+ url: toPathString(localVarUrlObj),
79
+ options: localVarRequestOptions,
80
+ };
81
+ },
82
+ /**
83
+ * 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\"
84
+ * @summary List setting definitions
85
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
86
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
87
+ * @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.
88
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
89
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
90
+ * @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.
91
+ * @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;
92
+ * @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.
93
+ * @param {*} [options] Override http request option.
94
+ * @throws {RequiredError}
95
+ */
96
+ listSettingDefinitions: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
97
+ const localVarPath = `/settingservice/v1/settings/definitions`;
98
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
99
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
100
+ let baseOptions;
101
+ let baseAccessToken;
102
+ if (configuration) {
103
+ baseOptions = configuration.baseOptions;
104
+ baseAccessToken = configuration.accessToken;
105
+ }
106
+
107
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
108
+ const localVarHeaderParameter = {} as any;
109
+ const localVarQueryParameter = {} as any;
110
+
111
+ // authentication bearer required
112
+ // http bearer authentication required
113
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
114
+
115
+ if (pageSize !== undefined) {
116
+ localVarQueryParameter['pageSize'] = pageSize;
117
+ }
118
+
119
+ if (pageToken !== undefined) {
120
+ localVarQueryParameter['pageToken'] = pageToken;
121
+ }
122
+
123
+ if (filter !== undefined) {
124
+ localVarQueryParameter['filter'] = filter;
125
+ }
126
+
127
+ if (search !== undefined) {
128
+ localVarQueryParameter['search'] = search;
129
+ }
130
+
131
+ if (order !== undefined) {
132
+ localVarQueryParameter['order'] = order;
133
+ }
134
+
135
+ if (expand !== undefined) {
136
+ localVarQueryParameter['expand'] = expand;
137
+ }
138
+
139
+ if (filters !== undefined) {
140
+ localVarQueryParameter['filters'] = filters;
141
+ }
142
+
143
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
144
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
145
+ }
146
+
147
+
148
+
149
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
150
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
151
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
152
+
153
+ return {
154
+ url: toPathString(localVarUrlObj),
155
+ options: localVarRequestOptions,
156
+ };
157
+ },
158
+ }
159
+ };
160
+
161
+ /**
162
+ * SettingDefinitionsApi - functional programming interface
163
+ * @export
164
+ */
165
+ export const SettingDefinitionsApiFp = function(configuration?: Configuration) {
166
+ const localVarAxiosParamCreator = SettingDefinitionsApiAxiosParamCreator(configuration)
167
+ return {
168
+ /**
169
+ * 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\"
170
+ * @summary Retrieve the setting definition
171
+ * @param {string} code
172
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
173
+ * @param {*} [options] Override http request option.
174
+ * @throws {RequiredError}
175
+ */
176
+ async getSettingDefinition(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSettingDefinitionResponseClass>> {
177
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSettingDefinition(code, authorization, options);
178
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
179
+ },
180
+ /**
181
+ * 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\"
182
+ * @summary List setting definitions
183
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
184
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
185
+ * @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.
186
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
187
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
188
+ * @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.
189
+ * @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;
190
+ * @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.
191
+ * @param {*} [options] Override http request option.
192
+ * @throws {RequiredError}
193
+ */
194
+ async listSettingDefinitions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSettingDefinitionsResponseClass>> {
195
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSettingDefinitions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
196
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
197
+ },
198
+ }
199
+ };
200
+
201
+ /**
202
+ * SettingDefinitionsApi - factory interface
203
+ * @export
204
+ */
205
+ export const SettingDefinitionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
206
+ const localVarFp = SettingDefinitionsApiFp(configuration)
207
+ return {
208
+ /**
209
+ * 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\"
210
+ * @summary Retrieve the setting definition
211
+ * @param {string} code
212
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
213
+ * @param {*} [options] Override http request option.
214
+ * @throws {RequiredError}
215
+ */
216
+ getSettingDefinition(code: string, authorization?: string, options?: any): AxiosPromise<GetSettingDefinitionResponseClass> {
217
+ return localVarFp.getSettingDefinition(code, authorization, options).then((request) => request(axios, basePath));
218
+ },
219
+ /**
220
+ * 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\"
221
+ * @summary List setting definitions
222
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
223
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
224
+ * @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.
225
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
226
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
227
+ * @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.
228
+ * @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;
229
+ * @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.
230
+ * @param {*} [options] Override http request option.
231
+ * @throws {RequiredError}
232
+ */
233
+ listSettingDefinitions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListSettingDefinitionsResponseClass> {
234
+ return localVarFp.listSettingDefinitions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
235
+ },
236
+ };
237
+ };
238
+
239
+ /**
240
+ * Request parameters for getSettingDefinition operation in SettingDefinitionsApi.
241
+ * @export
242
+ * @interface SettingDefinitionsApiGetSettingDefinitionRequest
243
+ */
244
+ export interface SettingDefinitionsApiGetSettingDefinitionRequest {
245
+ /**
246
+ *
247
+ * @type {string}
248
+ * @memberof SettingDefinitionsApiGetSettingDefinition
249
+ */
250
+ readonly code: string
251
+
252
+ /**
253
+ * Bearer Token: provided by the login endpoint under the name accessToken.
254
+ * @type {string}
255
+ * @memberof SettingDefinitionsApiGetSettingDefinition
256
+ */
257
+ readonly authorization?: string
258
+ }
259
+
260
+ /**
261
+ * Request parameters for listSettingDefinitions operation in SettingDefinitionsApi.
262
+ * @export
263
+ * @interface SettingDefinitionsApiListSettingDefinitionsRequest
264
+ */
265
+ export interface SettingDefinitionsApiListSettingDefinitionsRequest {
266
+ /**
267
+ * Bearer Token: provided by the login endpoint under the name accessToken.
268
+ * @type {string}
269
+ * @memberof SettingDefinitionsApiListSettingDefinitions
270
+ */
271
+ readonly authorization?: string
272
+
273
+ /**
274
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
275
+ * @type {number}
276
+ * @memberof SettingDefinitionsApiListSettingDefinitions
277
+ */
278
+ readonly pageSize?: number
279
+
280
+ /**
281
+ * 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.
282
+ * @type {string}
283
+ * @memberof SettingDefinitionsApiListSettingDefinitions
284
+ */
285
+ readonly pageToken?: string
286
+
287
+ /**
288
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
289
+ * @type {string}
290
+ * @memberof SettingDefinitionsApiListSettingDefinitions
291
+ */
292
+ readonly filter?: string
293
+
294
+ /**
295
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
296
+ * @type {string}
297
+ * @memberof SettingDefinitionsApiListSettingDefinitions
298
+ */
299
+ readonly search?: string
300
+
301
+ /**
302
+ * 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.
303
+ * @type {string}
304
+ * @memberof SettingDefinitionsApiListSettingDefinitions
305
+ */
306
+ readonly order?: string
307
+
308
+ /**
309
+ * 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;
310
+ * @type {string}
311
+ * @memberof SettingDefinitionsApiListSettingDefinitions
312
+ */
313
+ readonly expand?: string
314
+
315
+ /**
316
+ * 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.
317
+ * @type {string}
318
+ * @memberof SettingDefinitionsApiListSettingDefinitions
319
+ */
320
+ readonly filters?: string
321
+ }
322
+
323
+ /**
324
+ * SettingDefinitionsApi - object-oriented interface
325
+ * @export
326
+ * @class SettingDefinitionsApi
327
+ * @extends {BaseAPI}
328
+ */
329
+ export class SettingDefinitionsApi extends BaseAPI {
330
+ /**
331
+ * 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\"
332
+ * @summary Retrieve the setting definition
333
+ * @param {SettingDefinitionsApiGetSettingDefinitionRequest} requestParameters Request parameters.
334
+ * @param {*} [options] Override http request option.
335
+ * @throws {RequiredError}
336
+ * @memberof SettingDefinitionsApi
337
+ */
338
+ public getSettingDefinition(requestParameters: SettingDefinitionsApiGetSettingDefinitionRequest, options?: AxiosRequestConfig) {
339
+ return SettingDefinitionsApiFp(this.configuration).getSettingDefinition(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
340
+ }
341
+
342
+ /**
343
+ * 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\"
344
+ * @summary List setting definitions
345
+ * @param {SettingDefinitionsApiListSettingDefinitionsRequest} requestParameters Request parameters.
346
+ * @param {*} [options] Override http request option.
347
+ * @throws {RequiredError}
348
+ * @memberof SettingDefinitionsApi
349
+ */
350
+ public listSettingDefinitions(requestParameters: SettingDefinitionsApiListSettingDefinitionsRequest = {}, options?: AxiosRequestConfig) {
351
+ return SettingDefinitionsApiFp(this.configuration).listSettingDefinitions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
352
+ }
353
+ }