@emilgroup/setting-sdk 0.3.1-beta.2 → 0.3.1-beta.21
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 +456 -0
- package/api/setting-keys-api.ts +864 -0
- package/api/setting-values-api.ts +246 -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 +445 -0
- package/dist/api/setting-keys-api.d.ts +490 -0
- package/dist/api/setting-keys-api.js +764 -0
- package/dist/api/setting-values-api.d.ts +150 -0
- package/dist/api/setting-values-api.js +260 -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
package/.openapi-generator/FILES
CHANGED
|
@@ -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,31 @@ 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-definition-request-dto.ts
|
|
19
|
+
models/create-setting-definition-response-class.ts
|
|
20
|
+
models/create-setting-key-request-dto.ts
|
|
21
|
+
models/create-setting-key-response-class.ts
|
|
15
22
|
models/delete-public-key-request-dto.ts
|
|
23
|
+
models/delete-setting-key-response-class.ts
|
|
16
24
|
models/get-public-key-response-class.ts
|
|
25
|
+
models/get-setting-definition-response-class.ts
|
|
26
|
+
models/get-setting-key-response-class.ts
|
|
17
27
|
models/index.ts
|
|
18
28
|
models/inline-response200.ts
|
|
19
29
|
models/inline-response503.ts
|
|
20
30
|
models/list-public-keys-response-class.ts
|
|
31
|
+
models/list-setting-definitions-response-class.ts
|
|
32
|
+
models/list-setting-keys-response-class.ts
|
|
33
|
+
models/list-setting-values-response-class.ts
|
|
21
34
|
models/public-key-class.ts
|
|
22
35
|
models/rotate-public-key-response-class.ts
|
|
36
|
+
models/setting-definition-class.ts
|
|
37
|
+
models/setting-definition-version-class.ts
|
|
38
|
+
models/setting-key-class.ts
|
|
39
|
+
models/setting-value-class.ts
|
|
23
40
|
models/update-public-key-request-dto.ts
|
|
24
41
|
models/update-public-key-response-class.ts
|
|
42
|
+
models/update-setting-key-request-rest-dto.ts
|
|
43
|
+
models/update-setting-key-response-class.ts
|
|
25
44
|
package.json
|
|
26
45
|
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@0.3.1-beta.
|
|
20
|
+
npm install @emilgroup/setting-sdk@0.3.1-beta.21 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/setting-sdk@0.3.1-beta.
|
|
24
|
+
yarn add @emilgroup/setting-sdk@0.3.1-beta.21
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import ``.
|
|
@@ -0,0 +1,456 @@
|
|
|
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 { CreateSettingDefinitionRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CreateSettingDefinitionResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { GetSettingDefinitionResponseClass } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { ListSettingDefinitionsResponseClass } from '../models';
|
|
31
|
+
/**
|
|
32
|
+
* SettingDefinitionsApi - axios parameter creator
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export const SettingDefinitionsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
|
+
return {
|
|
37
|
+
/**
|
|
38
|
+
* Create a tenant setting definition **Required Permissions** \"tenant-management.settings.create\"
|
|
39
|
+
* @summary Create the setting definition
|
|
40
|
+
* @param {CreateSettingDefinitionRequestDto} createSettingDefinitionRequestDto
|
|
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
|
+
createSettingDefinition: async (createSettingDefinitionRequestDto: CreateSettingDefinitionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
46
|
+
// verify required parameter 'createSettingDefinitionRequestDto' is not null or undefined
|
|
47
|
+
assertParamExists('createSettingDefinition', 'createSettingDefinitionRequestDto', createSettingDefinitionRequestDto)
|
|
48
|
+
const localVarPath = `/settingservice/v1/settings/definitions`;
|
|
49
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
51
|
+
let baseOptions;
|
|
52
|
+
let baseAccessToken;
|
|
53
|
+
if (configuration) {
|
|
54
|
+
baseOptions = configuration.baseOptions;
|
|
55
|
+
baseAccessToken = configuration.accessToken;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
59
|
+
const localVarHeaderParameter = {} as any;
|
|
60
|
+
const localVarQueryParameter = {} as any;
|
|
61
|
+
|
|
62
|
+
// authentication bearer required
|
|
63
|
+
// http bearer authentication required
|
|
64
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
65
|
+
|
|
66
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
67
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
73
|
+
|
|
74
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
75
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
76
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
77
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createSettingDefinitionRequestDto, localVarRequestOptions, configuration)
|
|
78
|
+
|
|
79
|
+
return {
|
|
80
|
+
url: toPathString(localVarUrlObj),
|
|
81
|
+
options: localVarRequestOptions,
|
|
82
|
+
};
|
|
83
|
+
},
|
|
84
|
+
/**
|
|
85
|
+
* 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\"
|
|
86
|
+
* @summary Retrieve the setting definition
|
|
87
|
+
* @param {string} code
|
|
88
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
89
|
+
* @param {*} [options] Override http request option.
|
|
90
|
+
* @throws {RequiredError}
|
|
91
|
+
*/
|
|
92
|
+
getSettingDefinition: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
93
|
+
// verify required parameter 'code' is not null or undefined
|
|
94
|
+
assertParamExists('getSettingDefinition', 'code', code)
|
|
95
|
+
const localVarPath = `/settingservice/v1/settings/definitions/{code}`
|
|
96
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
97
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
98
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
99
|
+
let baseOptions;
|
|
100
|
+
let baseAccessToken;
|
|
101
|
+
if (configuration) {
|
|
102
|
+
baseOptions = configuration.baseOptions;
|
|
103
|
+
baseAccessToken = configuration.accessToken;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
107
|
+
const localVarHeaderParameter = {} as any;
|
|
108
|
+
const localVarQueryParameter = {} as any;
|
|
109
|
+
|
|
110
|
+
// authentication bearer required
|
|
111
|
+
// http bearer authentication required
|
|
112
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
113
|
+
|
|
114
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
115
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
121
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
122
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
123
|
+
|
|
124
|
+
return {
|
|
125
|
+
url: toPathString(localVarUrlObj),
|
|
126
|
+
options: localVarRequestOptions,
|
|
127
|
+
};
|
|
128
|
+
},
|
|
129
|
+
/**
|
|
130
|
+
* 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\"
|
|
131
|
+
* @summary List setting definitions
|
|
132
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
133
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
134
|
+
* @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.
|
|
135
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
136
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
137
|
+
* @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.
|
|
138
|
+
* @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/>
|
|
139
|
+
* @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.
|
|
140
|
+
* @param {*} [options] Override http request option.
|
|
141
|
+
* @throws {RequiredError}
|
|
142
|
+
*/
|
|
143
|
+
listSettingDefinitions: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
144
|
+
const localVarPath = `/settingservice/v1/settings/definitions`;
|
|
145
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
146
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
147
|
+
let baseOptions;
|
|
148
|
+
let baseAccessToken;
|
|
149
|
+
if (configuration) {
|
|
150
|
+
baseOptions = configuration.baseOptions;
|
|
151
|
+
baseAccessToken = configuration.accessToken;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
155
|
+
const localVarHeaderParameter = {} as any;
|
|
156
|
+
const localVarQueryParameter = {} as any;
|
|
157
|
+
|
|
158
|
+
// authentication bearer required
|
|
159
|
+
// http bearer authentication required
|
|
160
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
161
|
+
|
|
162
|
+
if (pageSize !== undefined) {
|
|
163
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
if (pageToken !== undefined) {
|
|
167
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
if (filter !== undefined) {
|
|
171
|
+
localVarQueryParameter['filter'] = filter;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
if (search !== undefined) {
|
|
175
|
+
localVarQueryParameter['search'] = search;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
if (order !== undefined) {
|
|
179
|
+
localVarQueryParameter['order'] = order;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
if (expand !== undefined) {
|
|
183
|
+
localVarQueryParameter['expand'] = expand;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
if (filters !== undefined) {
|
|
187
|
+
localVarQueryParameter['filters'] = filters;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
191
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
197
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
198
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
199
|
+
|
|
200
|
+
return {
|
|
201
|
+
url: toPathString(localVarUrlObj),
|
|
202
|
+
options: localVarRequestOptions,
|
|
203
|
+
};
|
|
204
|
+
},
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* SettingDefinitionsApi - functional programming interface
|
|
210
|
+
* @export
|
|
211
|
+
*/
|
|
212
|
+
export const SettingDefinitionsApiFp = function(configuration?: Configuration) {
|
|
213
|
+
const localVarAxiosParamCreator = SettingDefinitionsApiAxiosParamCreator(configuration)
|
|
214
|
+
return {
|
|
215
|
+
/**
|
|
216
|
+
* Create a tenant setting definition **Required Permissions** \"tenant-management.settings.create\"
|
|
217
|
+
* @summary Create the setting definition
|
|
218
|
+
* @param {CreateSettingDefinitionRequestDto} createSettingDefinitionRequestDto
|
|
219
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
220
|
+
* @param {*} [options] Override http request option.
|
|
221
|
+
* @throws {RequiredError}
|
|
222
|
+
*/
|
|
223
|
+
async createSettingDefinition(createSettingDefinitionRequestDto: CreateSettingDefinitionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateSettingDefinitionResponseClass>> {
|
|
224
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createSettingDefinition(createSettingDefinitionRequestDto, authorization, options);
|
|
225
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
226
|
+
},
|
|
227
|
+
/**
|
|
228
|
+
* 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\"
|
|
229
|
+
* @summary Retrieve the setting definition
|
|
230
|
+
* @param {string} code
|
|
231
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
232
|
+
* @param {*} [options] Override http request option.
|
|
233
|
+
* @throws {RequiredError}
|
|
234
|
+
*/
|
|
235
|
+
async getSettingDefinition(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSettingDefinitionResponseClass>> {
|
|
236
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSettingDefinition(code, authorization, options);
|
|
237
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
238
|
+
},
|
|
239
|
+
/**
|
|
240
|
+
* 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\"
|
|
241
|
+
* @summary List setting definitions
|
|
242
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
243
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
244
|
+
* @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.
|
|
245
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
246
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
247
|
+
* @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.
|
|
248
|
+
* @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/>
|
|
249
|
+
* @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.
|
|
250
|
+
* @param {*} [options] Override http request option.
|
|
251
|
+
* @throws {RequiredError}
|
|
252
|
+
*/
|
|
253
|
+
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>> {
|
|
254
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSettingDefinitions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
255
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
256
|
+
},
|
|
257
|
+
}
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* SettingDefinitionsApi - factory interface
|
|
262
|
+
* @export
|
|
263
|
+
*/
|
|
264
|
+
export const SettingDefinitionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
265
|
+
const localVarFp = SettingDefinitionsApiFp(configuration)
|
|
266
|
+
return {
|
|
267
|
+
/**
|
|
268
|
+
* Create a tenant setting definition **Required Permissions** \"tenant-management.settings.create\"
|
|
269
|
+
* @summary Create the setting definition
|
|
270
|
+
* @param {CreateSettingDefinitionRequestDto} createSettingDefinitionRequestDto
|
|
271
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
272
|
+
* @param {*} [options] Override http request option.
|
|
273
|
+
* @throws {RequiredError}
|
|
274
|
+
*/
|
|
275
|
+
createSettingDefinition(createSettingDefinitionRequestDto: CreateSettingDefinitionRequestDto, authorization?: string, options?: any): AxiosPromise<CreateSettingDefinitionResponseClass> {
|
|
276
|
+
return localVarFp.createSettingDefinition(createSettingDefinitionRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
277
|
+
},
|
|
278
|
+
/**
|
|
279
|
+
* 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\"
|
|
280
|
+
* @summary Retrieve the setting definition
|
|
281
|
+
* @param {string} code
|
|
282
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
283
|
+
* @param {*} [options] Override http request option.
|
|
284
|
+
* @throws {RequiredError}
|
|
285
|
+
*/
|
|
286
|
+
getSettingDefinition(code: string, authorization?: string, options?: any): AxiosPromise<GetSettingDefinitionResponseClass> {
|
|
287
|
+
return localVarFp.getSettingDefinition(code, authorization, options).then((request) => request(axios, basePath));
|
|
288
|
+
},
|
|
289
|
+
/**
|
|
290
|
+
* 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\"
|
|
291
|
+
* @summary List setting definitions
|
|
292
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
293
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
294
|
+
* @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.
|
|
295
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
296
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
297
|
+
* @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.
|
|
298
|
+
* @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/>
|
|
299
|
+
* @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.
|
|
300
|
+
* @param {*} [options] Override http request option.
|
|
301
|
+
* @throws {RequiredError}
|
|
302
|
+
*/
|
|
303
|
+
listSettingDefinitions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListSettingDefinitionsResponseClass> {
|
|
304
|
+
return localVarFp.listSettingDefinitions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
305
|
+
},
|
|
306
|
+
};
|
|
307
|
+
};
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Request parameters for createSettingDefinition operation in SettingDefinitionsApi.
|
|
311
|
+
* @export
|
|
312
|
+
* @interface SettingDefinitionsApiCreateSettingDefinitionRequest
|
|
313
|
+
*/
|
|
314
|
+
export interface SettingDefinitionsApiCreateSettingDefinitionRequest {
|
|
315
|
+
/**
|
|
316
|
+
*
|
|
317
|
+
* @type {CreateSettingDefinitionRequestDto}
|
|
318
|
+
* @memberof SettingDefinitionsApiCreateSettingDefinition
|
|
319
|
+
*/
|
|
320
|
+
readonly createSettingDefinitionRequestDto: CreateSettingDefinitionRequestDto
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
324
|
+
* @type {string}
|
|
325
|
+
* @memberof SettingDefinitionsApiCreateSettingDefinition
|
|
326
|
+
*/
|
|
327
|
+
readonly authorization?: string
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* Request parameters for getSettingDefinition operation in SettingDefinitionsApi.
|
|
332
|
+
* @export
|
|
333
|
+
* @interface SettingDefinitionsApiGetSettingDefinitionRequest
|
|
334
|
+
*/
|
|
335
|
+
export interface SettingDefinitionsApiGetSettingDefinitionRequest {
|
|
336
|
+
/**
|
|
337
|
+
*
|
|
338
|
+
* @type {string}
|
|
339
|
+
* @memberof SettingDefinitionsApiGetSettingDefinition
|
|
340
|
+
*/
|
|
341
|
+
readonly code: string
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
345
|
+
* @type {string}
|
|
346
|
+
* @memberof SettingDefinitionsApiGetSettingDefinition
|
|
347
|
+
*/
|
|
348
|
+
readonly authorization?: string
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Request parameters for listSettingDefinitions operation in SettingDefinitionsApi.
|
|
353
|
+
* @export
|
|
354
|
+
* @interface SettingDefinitionsApiListSettingDefinitionsRequest
|
|
355
|
+
*/
|
|
356
|
+
export interface SettingDefinitionsApiListSettingDefinitionsRequest {
|
|
357
|
+
/**
|
|
358
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
359
|
+
* @type {string}
|
|
360
|
+
* @memberof SettingDefinitionsApiListSettingDefinitions
|
|
361
|
+
*/
|
|
362
|
+
readonly authorization?: string
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
366
|
+
* @type {number}
|
|
367
|
+
* @memberof SettingDefinitionsApiListSettingDefinitions
|
|
368
|
+
*/
|
|
369
|
+
readonly pageSize?: number
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* 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.
|
|
373
|
+
* @type {string}
|
|
374
|
+
* @memberof SettingDefinitionsApiListSettingDefinitions
|
|
375
|
+
*/
|
|
376
|
+
readonly pageToken?: string
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
380
|
+
* @type {string}
|
|
381
|
+
* @memberof SettingDefinitionsApiListSettingDefinitions
|
|
382
|
+
*/
|
|
383
|
+
readonly filter?: string
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
387
|
+
* @type {string}
|
|
388
|
+
* @memberof SettingDefinitionsApiListSettingDefinitions
|
|
389
|
+
*/
|
|
390
|
+
readonly search?: string
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* 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.
|
|
394
|
+
* @type {string}
|
|
395
|
+
* @memberof SettingDefinitionsApiListSettingDefinitions
|
|
396
|
+
*/
|
|
397
|
+
readonly order?: string
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* 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/>
|
|
401
|
+
* @type {string}
|
|
402
|
+
* @memberof SettingDefinitionsApiListSettingDefinitions
|
|
403
|
+
*/
|
|
404
|
+
readonly expand?: string
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* 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.
|
|
408
|
+
* @type {string}
|
|
409
|
+
* @memberof SettingDefinitionsApiListSettingDefinitions
|
|
410
|
+
*/
|
|
411
|
+
readonly filters?: string
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* SettingDefinitionsApi - object-oriented interface
|
|
416
|
+
* @export
|
|
417
|
+
* @class SettingDefinitionsApi
|
|
418
|
+
* @extends {BaseAPI}
|
|
419
|
+
*/
|
|
420
|
+
export class SettingDefinitionsApi extends BaseAPI {
|
|
421
|
+
/**
|
|
422
|
+
* Create a tenant setting definition **Required Permissions** \"tenant-management.settings.create\"
|
|
423
|
+
* @summary Create the setting definition
|
|
424
|
+
* @param {SettingDefinitionsApiCreateSettingDefinitionRequest} requestParameters Request parameters.
|
|
425
|
+
* @param {*} [options] Override http request option.
|
|
426
|
+
* @throws {RequiredError}
|
|
427
|
+
* @memberof SettingDefinitionsApi
|
|
428
|
+
*/
|
|
429
|
+
public createSettingDefinition(requestParameters: SettingDefinitionsApiCreateSettingDefinitionRequest, options?: AxiosRequestConfig) {
|
|
430
|
+
return SettingDefinitionsApiFp(this.configuration).createSettingDefinition(requestParameters.createSettingDefinitionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* 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\"
|
|
435
|
+
* @summary Retrieve the setting definition
|
|
436
|
+
* @param {SettingDefinitionsApiGetSettingDefinitionRequest} requestParameters Request parameters.
|
|
437
|
+
* @param {*} [options] Override http request option.
|
|
438
|
+
* @throws {RequiredError}
|
|
439
|
+
* @memberof SettingDefinitionsApi
|
|
440
|
+
*/
|
|
441
|
+
public getSettingDefinition(requestParameters: SettingDefinitionsApiGetSettingDefinitionRequest, options?: AxiosRequestConfig) {
|
|
442
|
+
return SettingDefinitionsApiFp(this.configuration).getSettingDefinition(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* 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\"
|
|
447
|
+
* @summary List setting definitions
|
|
448
|
+
* @param {SettingDefinitionsApiListSettingDefinitionsRequest} requestParameters Request parameters.
|
|
449
|
+
* @param {*} [options] Override http request option.
|
|
450
|
+
* @throws {RequiredError}
|
|
451
|
+
* @memberof SettingDefinitionsApi
|
|
452
|
+
*/
|
|
453
|
+
public listSettingDefinitions(requestParameters: SettingDefinitionsApiListSettingDefinitionsRequest = {}, options?: AxiosRequestConfig) {
|
|
454
|
+
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));
|
|
455
|
+
}
|
|
456
|
+
}
|