@emilgroup/setting-sdk-node 0.3.1-beta.2 → 0.3.1-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +19 -0
- package/README.md +2 -2
- package/api/setting-definitions-api.ts +460 -0
- package/api/setting-keys-api.ts +868 -0
- package/api/setting-values-api.ts +250 -0
- package/api.ts +6 -0
- package/base.ts +1 -0
- package/dist/api/setting-definitions-api.d.ts +263 -0
- package/dist/api/setting-definitions-api.js +449 -0
- package/dist/api/setting-keys-api.d.ts +490 -0
- package/dist/api/setting-keys-api.js +768 -0
- package/dist/api/setting-values-api.d.ts +150 -0
- package/dist/api/setting-values-api.js +264 -0
- package/dist/api.d.ts +3 -0
- package/dist/api.js +3 -0
- package/dist/base.d.ts +2 -1
- package/dist/base.js +1 -0
- package/dist/models/create-setting-definition-request-dto.d.ts +93 -0
- package/dist/models/create-setting-definition-request-dto.js +53 -0
- package/dist/models/create-setting-definition-response-class.d.ts +25 -0
- package/dist/models/create-setting-definition-response-class.js +15 -0
- package/dist/models/create-setting-key-request-dto.d.ts +36 -0
- package/dist/models/create-setting-key-request-dto.js +15 -0
- package/dist/models/create-setting-key-response-class.d.ts +25 -0
- package/dist/models/create-setting-key-response-class.js +15 -0
- package/dist/models/delete-setting-key-response-class.d.ts +24 -0
- package/dist/models/delete-setting-key-response-class.js +15 -0
- package/dist/models/get-setting-definition-response-class.d.ts +25 -0
- package/dist/models/get-setting-definition-response-class.js +15 -0
- package/dist/models/get-setting-key-response-class.d.ts +25 -0
- package/dist/models/get-setting-key-response-class.js +15 -0
- package/dist/models/index.d.ts +16 -0
- package/dist/models/index.js +16 -0
- package/dist/models/list-public-keys-response-class.d.ts +10 -10
- package/dist/models/list-setting-definitions-response-class.d.ts +43 -0
- package/dist/models/list-setting-definitions-response-class.js +15 -0
- package/dist/models/list-setting-keys-response-class.d.ts +43 -0
- package/dist/models/list-setting-keys-response-class.js +15 -0
- package/dist/models/list-setting-values-response-class.d.ts +43 -0
- package/dist/models/list-setting-values-response-class.js +15 -0
- package/dist/models/setting-definition-class.d.ts +124 -0
- package/dist/models/setting-definition-class.js +53 -0
- package/dist/models/setting-definition-version-class.d.ts +72 -0
- package/dist/models/setting-definition-version-class.js +15 -0
- package/dist/models/setting-key-class.d.ts +85 -0
- package/dist/models/setting-key-class.js +15 -0
- package/dist/models/setting-value-class.d.ts +72 -0
- package/dist/models/setting-value-class.js +15 -0
- package/dist/models/update-setting-key-request-rest-dto.d.ts +30 -0
- package/dist/models/update-setting-key-request-rest-dto.js +15 -0
- package/dist/models/update-setting-key-response-class.d.ts +25 -0
- package/dist/models/update-setting-key-response-class.js +15 -0
- package/models/create-setting-definition-request-dto.ts +103 -0
- package/models/create-setting-definition-response-class.ts +31 -0
- package/models/create-setting-key-request-dto.ts +42 -0
- package/models/create-setting-key-response-class.ts +31 -0
- package/models/delete-setting-key-response-class.ts +30 -0
- package/models/get-setting-definition-response-class.ts +31 -0
- package/models/get-setting-key-response-class.ts +31 -0
- package/models/index.ts +16 -0
- package/models/list-public-keys-response-class.ts +10 -10
- package/models/list-setting-definitions-response-class.ts +49 -0
- package/models/list-setting-keys-response-class.ts +49 -0
- package/models/list-setting-values-response-class.ts +49 -0
- package/models/setting-definition-class.ts +134 -0
- package/models/setting-definition-version-class.ts +78 -0
- package/models/setting-key-class.ts +91 -0
- package/models/setting-value-class.ts +78 -0
- package/models/update-setting-key-request-rest-dto.ts +36 -0
- package/models/update-setting-key-response-class.ts +31 -0
- package/package.json +2 -2
|
@@ -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=1, your subsequent call can include pageToken=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=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.<br/> <br/>
|
|
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=1, your subsequent call can include pageToken=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=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.<br/> <br/>
|
|
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=1, your subsequent call can include pageToken=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=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.<br/> <br/>
|
|
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
|
@@ -26,8 +26,14 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
26
26
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
27
27
|
import { HealthApi } from './api';
|
|
28
28
|
import { PublicKeysApi } from './api';
|
|
29
|
+
import { SettingDefinitionsApi } from './api';
|
|
30
|
+
import { SettingKeysApi } from './api';
|
|
31
|
+
import { SettingValuesApi } from './api';
|
|
29
32
|
|
|
30
33
|
|
|
31
34
|
export * from './api/health-api';
|
|
32
35
|
export * from './api/public-keys-api';
|
|
36
|
+
export * from './api/setting-definitions-api';
|
|
37
|
+
export * from './api/setting-keys-api';
|
|
38
|
+
export * from './api/setting-values-api';
|
|
33
39
|
|
package/base.ts
CHANGED
|
@@ -51,6 +51,7 @@ export enum Environment {
|
|
|
51
51
|
Staging = 'https://apiv2-staging.emil.de',
|
|
52
52
|
Development = 'https://apiv2-dev.emil.de',
|
|
53
53
|
ProductionZurich = 'https://eu-central-2.apiv2.emil.de',
|
|
54
|
+
StagingZurich = 'https://eu-central-2.apiv2-staging.emil.de',
|
|
54
55
|
}
|
|
55
56
|
|
|
56
57
|
let _retry_count = 0
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL SettingService
|
|
3
|
+
* The EMIL SettingService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
+
import { Configuration } from '../configuration';
|
|
14
|
+
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { CreateSettingDefinitionRequestDto } from '../models';
|
|
16
|
+
import { CreateSettingDefinitionResponseClass } from '../models';
|
|
17
|
+
import { GetSettingDefinitionResponseClass } from '../models';
|
|
18
|
+
import { ListSettingDefinitionsResponseClass } from '../models';
|
|
19
|
+
/**
|
|
20
|
+
* SettingDefinitionsApi - axios parameter creator
|
|
21
|
+
* @export
|
|
22
|
+
*/
|
|
23
|
+
export declare const SettingDefinitionsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
24
|
+
/**
|
|
25
|
+
* Create a tenant setting definition **Required Permissions** \"tenant-management.settings.create\"
|
|
26
|
+
* @summary Create the setting definition
|
|
27
|
+
* @param {CreateSettingDefinitionRequestDto} createSettingDefinitionRequestDto
|
|
28
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
29
|
+
* @param {*} [options] Override http request option.
|
|
30
|
+
* @throws {RequiredError}
|
|
31
|
+
*/
|
|
32
|
+
createSettingDefinition: (createSettingDefinitionRequestDto: CreateSettingDefinitionRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33
|
+
/**
|
|
34
|
+
* 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\"
|
|
35
|
+
* @summary Retrieve the setting definition
|
|
36
|
+
* @param {string} code
|
|
37
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
*/
|
|
41
|
+
getSettingDefinition: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
42
|
+
/**
|
|
43
|
+
* 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\"
|
|
44
|
+
* @summary List setting definitions
|
|
45
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
46
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
47
|
+
* @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.
|
|
48
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
49
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
50
|
+
* @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.
|
|
51
|
+
* @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/>
|
|
52
|
+
* @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.
|
|
53
|
+
* @param {*} [options] Override http request option.
|
|
54
|
+
* @throws {RequiredError}
|
|
55
|
+
*/
|
|
56
|
+
listSettingDefinitions: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* SettingDefinitionsApi - functional programming interface
|
|
60
|
+
* @export
|
|
61
|
+
*/
|
|
62
|
+
export declare const SettingDefinitionsApiFp: (configuration?: Configuration) => {
|
|
63
|
+
/**
|
|
64
|
+
* Create a tenant setting definition **Required Permissions** \"tenant-management.settings.create\"
|
|
65
|
+
* @summary Create the setting definition
|
|
66
|
+
* @param {CreateSettingDefinitionRequestDto} createSettingDefinitionRequestDto
|
|
67
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
68
|
+
* @param {*} [options] Override http request option.
|
|
69
|
+
* @throws {RequiredError}
|
|
70
|
+
*/
|
|
71
|
+
createSettingDefinition(createSettingDefinitionRequestDto: CreateSettingDefinitionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateSettingDefinitionResponseClass>>;
|
|
72
|
+
/**
|
|
73
|
+
* 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\"
|
|
74
|
+
* @summary Retrieve the setting definition
|
|
75
|
+
* @param {string} code
|
|
76
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
77
|
+
* @param {*} [options] Override http request option.
|
|
78
|
+
* @throws {RequiredError}
|
|
79
|
+
*/
|
|
80
|
+
getSettingDefinition(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSettingDefinitionResponseClass>>;
|
|
81
|
+
/**
|
|
82
|
+
* 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\"
|
|
83
|
+
* @summary List setting definitions
|
|
84
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
85
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
86
|
+
* @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.
|
|
87
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
88
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
89
|
+
* @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.
|
|
90
|
+
* @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/>
|
|
91
|
+
* @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.
|
|
92
|
+
* @param {*} [options] Override http request option.
|
|
93
|
+
* @throws {RequiredError}
|
|
94
|
+
*/
|
|
95
|
+
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>>;
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* SettingDefinitionsApi - factory interface
|
|
99
|
+
* @export
|
|
100
|
+
*/
|
|
101
|
+
export declare const SettingDefinitionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
102
|
+
/**
|
|
103
|
+
* Create a tenant setting definition **Required Permissions** \"tenant-management.settings.create\"
|
|
104
|
+
* @summary Create the setting definition
|
|
105
|
+
* @param {CreateSettingDefinitionRequestDto} createSettingDefinitionRequestDto
|
|
106
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
107
|
+
* @param {*} [options] Override http request option.
|
|
108
|
+
* @throws {RequiredError}
|
|
109
|
+
*/
|
|
110
|
+
createSettingDefinition(createSettingDefinitionRequestDto: CreateSettingDefinitionRequestDto, authorization?: string, options?: any): AxiosPromise<CreateSettingDefinitionResponseClass>;
|
|
111
|
+
/**
|
|
112
|
+
* 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\"
|
|
113
|
+
* @summary Retrieve the setting definition
|
|
114
|
+
* @param {string} code
|
|
115
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
116
|
+
* @param {*} [options] Override http request option.
|
|
117
|
+
* @throws {RequiredError}
|
|
118
|
+
*/
|
|
119
|
+
getSettingDefinition(code: string, authorization?: string, options?: any): AxiosPromise<GetSettingDefinitionResponseClass>;
|
|
120
|
+
/**
|
|
121
|
+
* 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\"
|
|
122
|
+
* @summary List setting definitions
|
|
123
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
124
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
125
|
+
* @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.
|
|
126
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
127
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
128
|
+
* @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.
|
|
129
|
+
* @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/>
|
|
130
|
+
* @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.
|
|
131
|
+
* @param {*} [options] Override http request option.
|
|
132
|
+
* @throws {RequiredError}
|
|
133
|
+
*/
|
|
134
|
+
listSettingDefinitions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListSettingDefinitionsResponseClass>;
|
|
135
|
+
};
|
|
136
|
+
/**
|
|
137
|
+
* Request parameters for createSettingDefinition operation in SettingDefinitionsApi.
|
|
138
|
+
* @export
|
|
139
|
+
* @interface SettingDefinitionsApiCreateSettingDefinitionRequest
|
|
140
|
+
*/
|
|
141
|
+
export interface SettingDefinitionsApiCreateSettingDefinitionRequest {
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @type {CreateSettingDefinitionRequestDto}
|
|
145
|
+
* @memberof SettingDefinitionsApiCreateSettingDefinition
|
|
146
|
+
*/
|
|
147
|
+
readonly createSettingDefinitionRequestDto: CreateSettingDefinitionRequestDto;
|
|
148
|
+
/**
|
|
149
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
150
|
+
* @type {string}
|
|
151
|
+
* @memberof SettingDefinitionsApiCreateSettingDefinition
|
|
152
|
+
*/
|
|
153
|
+
readonly authorization?: string;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Request parameters for getSettingDefinition operation in SettingDefinitionsApi.
|
|
157
|
+
* @export
|
|
158
|
+
* @interface SettingDefinitionsApiGetSettingDefinitionRequest
|
|
159
|
+
*/
|
|
160
|
+
export interface SettingDefinitionsApiGetSettingDefinitionRequest {
|
|
161
|
+
/**
|
|
162
|
+
*
|
|
163
|
+
* @type {string}
|
|
164
|
+
* @memberof SettingDefinitionsApiGetSettingDefinition
|
|
165
|
+
*/
|
|
166
|
+
readonly code: string;
|
|
167
|
+
/**
|
|
168
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
169
|
+
* @type {string}
|
|
170
|
+
* @memberof SettingDefinitionsApiGetSettingDefinition
|
|
171
|
+
*/
|
|
172
|
+
readonly authorization?: string;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Request parameters for listSettingDefinitions operation in SettingDefinitionsApi.
|
|
176
|
+
* @export
|
|
177
|
+
* @interface SettingDefinitionsApiListSettingDefinitionsRequest
|
|
178
|
+
*/
|
|
179
|
+
export interface SettingDefinitionsApiListSettingDefinitionsRequest {
|
|
180
|
+
/**
|
|
181
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
182
|
+
* @type {string}
|
|
183
|
+
* @memberof SettingDefinitionsApiListSettingDefinitions
|
|
184
|
+
*/
|
|
185
|
+
readonly authorization?: string;
|
|
186
|
+
/**
|
|
187
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
188
|
+
* @type {number}
|
|
189
|
+
* @memberof SettingDefinitionsApiListSettingDefinitions
|
|
190
|
+
*/
|
|
191
|
+
readonly pageSize?: number;
|
|
192
|
+
/**
|
|
193
|
+
* 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.
|
|
194
|
+
* @type {string}
|
|
195
|
+
* @memberof SettingDefinitionsApiListSettingDefinitions
|
|
196
|
+
*/
|
|
197
|
+
readonly pageToken?: string;
|
|
198
|
+
/**
|
|
199
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
200
|
+
* @type {string}
|
|
201
|
+
* @memberof SettingDefinitionsApiListSettingDefinitions
|
|
202
|
+
*/
|
|
203
|
+
readonly filter?: string;
|
|
204
|
+
/**
|
|
205
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
206
|
+
* @type {string}
|
|
207
|
+
* @memberof SettingDefinitionsApiListSettingDefinitions
|
|
208
|
+
*/
|
|
209
|
+
readonly search?: string;
|
|
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 SettingDefinitionsApiListSettingDefinitions
|
|
214
|
+
*/
|
|
215
|
+
readonly order?: string;
|
|
216
|
+
/**
|
|
217
|
+
* 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/>
|
|
218
|
+
* @type {string}
|
|
219
|
+
* @memberof SettingDefinitionsApiListSettingDefinitions
|
|
220
|
+
*/
|
|
221
|
+
readonly expand?: string;
|
|
222
|
+
/**
|
|
223
|
+
* 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.
|
|
224
|
+
* @type {string}
|
|
225
|
+
* @memberof SettingDefinitionsApiListSettingDefinitions
|
|
226
|
+
*/
|
|
227
|
+
readonly filters?: string;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* SettingDefinitionsApi - object-oriented interface
|
|
231
|
+
* @export
|
|
232
|
+
* @class SettingDefinitionsApi
|
|
233
|
+
* @extends {BaseAPI}
|
|
234
|
+
*/
|
|
235
|
+
export declare class SettingDefinitionsApi extends BaseAPI {
|
|
236
|
+
/**
|
|
237
|
+
* Create a tenant setting definition **Required Permissions** \"tenant-management.settings.create\"
|
|
238
|
+
* @summary Create the setting definition
|
|
239
|
+
* @param {SettingDefinitionsApiCreateSettingDefinitionRequest} requestParameters Request parameters.
|
|
240
|
+
* @param {*} [options] Override http request option.
|
|
241
|
+
* @throws {RequiredError}
|
|
242
|
+
* @memberof SettingDefinitionsApi
|
|
243
|
+
*/
|
|
244
|
+
createSettingDefinition(requestParameters: SettingDefinitionsApiCreateSettingDefinitionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateSettingDefinitionResponseClass, any, {}>>;
|
|
245
|
+
/**
|
|
246
|
+
* 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\"
|
|
247
|
+
* @summary Retrieve the setting definition
|
|
248
|
+
* @param {SettingDefinitionsApiGetSettingDefinitionRequest} requestParameters Request parameters.
|
|
249
|
+
* @param {*} [options] Override http request option.
|
|
250
|
+
* @throws {RequiredError}
|
|
251
|
+
* @memberof SettingDefinitionsApi
|
|
252
|
+
*/
|
|
253
|
+
getSettingDefinition(requestParameters: SettingDefinitionsApiGetSettingDefinitionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSettingDefinitionResponseClass, any, {}>>;
|
|
254
|
+
/**
|
|
255
|
+
* 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\"
|
|
256
|
+
* @summary List setting definitions
|
|
257
|
+
* @param {SettingDefinitionsApiListSettingDefinitionsRequest} requestParameters Request parameters.
|
|
258
|
+
* @param {*} [options] Override http request option.
|
|
259
|
+
* @throws {RequiredError}
|
|
260
|
+
* @memberof SettingDefinitionsApi
|
|
261
|
+
*/
|
|
262
|
+
listSettingDefinitions(requestParameters?: SettingDefinitionsApiListSettingDefinitionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSettingDefinitionsResponseClass, any, {}>>;
|
|
263
|
+
}
|