@emilgroup/setting-sdk 0.3.1-beta.24 → 0.3.1-beta.25
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/README.md +2 -2
- package/api/setting-definitions-api.ts +11 -24
- package/api/setting-keys-api.ts +10 -26
- package/dist/api/setting-definitions-api.d.ts +7 -16
- package/dist/api/setting-definitions-api.js +10 -16
- package/dist/api/setting-keys-api.d.ts +7 -16
- package/dist/api/setting-keys-api.js +9 -17
- package/package.json +1 -1
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.25 --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.25
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import ``.
|
|
@@ -86,20 +86,16 @@ export const SettingDefinitionsApiAxiosParamCreator = function (configuration?:
|
|
|
86
86
|
/**
|
|
87
87
|
* Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
|
|
88
88
|
* @summary Delete the setting definition
|
|
89
|
-
* @param {string} code
|
|
90
|
-
* @param {any} settingDefinition Unique identifier for the object.
|
|
89
|
+
* @param {string} code Unique identifier for the object.
|
|
91
90
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
92
91
|
* @param {*} [options] Override http request option.
|
|
93
92
|
* @throws {RequiredError}
|
|
94
93
|
*/
|
|
95
|
-
deleteSettingDefinition: async (code: string,
|
|
94
|
+
deleteSettingDefinition: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
96
95
|
// verify required parameter 'code' is not null or undefined
|
|
97
96
|
assertParamExists('deleteSettingDefinition', 'code', code)
|
|
98
|
-
// verify required parameter 'settingDefinition' is not null or undefined
|
|
99
|
-
assertParamExists('deleteSettingDefinition', 'settingDefinition', settingDefinition)
|
|
100
97
|
const localVarPath = `/settingservice/v1/settings/definitions/{code}`
|
|
101
|
-
.replace(`{${"code"}}`, encodeURIComponent(String(code)))
|
|
102
|
-
.replace(`{${"setting definition"}}`, encodeURIComponent(String(settingDefinition)));
|
|
98
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
103
99
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
104
100
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
105
101
|
let baseOptions;
|
|
@@ -278,14 +274,13 @@ export const SettingDefinitionsApiFp = function(configuration?: Configuration) {
|
|
|
278
274
|
/**
|
|
279
275
|
* Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
|
|
280
276
|
* @summary Delete the setting definition
|
|
281
|
-
* @param {string} code
|
|
282
|
-
* @param {any} settingDefinition Unique identifier for the object.
|
|
277
|
+
* @param {string} code Unique identifier for the object.
|
|
283
278
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
284
279
|
* @param {*} [options] Override http request option.
|
|
285
280
|
* @throws {RequiredError}
|
|
286
281
|
*/
|
|
287
|
-
async deleteSettingDefinition(code: string,
|
|
288
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSettingDefinition(code,
|
|
282
|
+
async deleteSettingDefinition(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteByCodeResponseClass>> {
|
|
283
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSettingDefinition(code, authorization, options);
|
|
289
284
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
290
285
|
},
|
|
291
286
|
/**
|
|
@@ -342,14 +337,13 @@ export const SettingDefinitionsApiFactory = function (configuration?: Configurat
|
|
|
342
337
|
/**
|
|
343
338
|
* Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
|
|
344
339
|
* @summary Delete the setting definition
|
|
345
|
-
* @param {string} code
|
|
346
|
-
* @param {any} settingDefinition Unique identifier for the object.
|
|
340
|
+
* @param {string} code Unique identifier for the object.
|
|
347
341
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
348
342
|
* @param {*} [options] Override http request option.
|
|
349
343
|
* @throws {RequiredError}
|
|
350
344
|
*/
|
|
351
|
-
deleteSettingDefinition(code: string,
|
|
352
|
-
return localVarFp.deleteSettingDefinition(code,
|
|
345
|
+
deleteSettingDefinition(code: string, authorization?: string, options?: any): AxiosPromise<DeleteByCodeResponseClass> {
|
|
346
|
+
return localVarFp.deleteSettingDefinition(code, authorization, options).then((request) => request(axios, basePath));
|
|
353
347
|
},
|
|
354
348
|
/**
|
|
355
349
|
* 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\"
|
|
@@ -410,19 +404,12 @@ export interface SettingDefinitionsApiCreateSettingDefinitionRequest {
|
|
|
410
404
|
*/
|
|
411
405
|
export interface SettingDefinitionsApiDeleteSettingDefinitionRequest {
|
|
412
406
|
/**
|
|
413
|
-
*
|
|
407
|
+
* Unique identifier for the object.
|
|
414
408
|
* @type {string}
|
|
415
409
|
* @memberof SettingDefinitionsApiDeleteSettingDefinition
|
|
416
410
|
*/
|
|
417
411
|
readonly code: string
|
|
418
412
|
|
|
419
|
-
/**
|
|
420
|
-
* Unique identifier for the object.
|
|
421
|
-
* @type {any}
|
|
422
|
-
* @memberof SettingDefinitionsApiDeleteSettingDefinition
|
|
423
|
-
*/
|
|
424
|
-
readonly settingDefinition: any
|
|
425
|
-
|
|
426
413
|
/**
|
|
427
414
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
428
415
|
* @type {string}
|
|
@@ -543,7 +530,7 @@ export class SettingDefinitionsApi extends BaseAPI {
|
|
|
543
530
|
* @memberof SettingDefinitionsApi
|
|
544
531
|
*/
|
|
545
532
|
public deleteSettingDefinition(requestParameters: SettingDefinitionsApiDeleteSettingDefinitionRequest, options?: AxiosRequestConfig) {
|
|
546
|
-
return SettingDefinitionsApiFp(this.configuration).deleteSettingDefinition(requestParameters.code, requestParameters.
|
|
533
|
+
return SettingDefinitionsApiFp(this.configuration).deleteSettingDefinition(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
547
534
|
}
|
|
548
535
|
|
|
549
536
|
/**
|
package/api/setting-keys-api.ts
CHANGED
|
@@ -90,16 +90,13 @@ export const SettingKeysApiAxiosParamCreator = function (configuration?: Configu
|
|
|
90
90
|
/**
|
|
91
91
|
* undefined **Required Permissions** \"tenant-management.settings.delete\"
|
|
92
92
|
* @param {string} code
|
|
93
|
-
* @param {string} ifMatch
|
|
94
93
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
95
94
|
* @param {*} [options] Override http request option.
|
|
96
95
|
* @throws {RequiredError}
|
|
97
96
|
*/
|
|
98
|
-
deleteSettingKey: async (code: string,
|
|
97
|
+
deleteSettingKey: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
99
98
|
// verify required parameter 'code' is not null or undefined
|
|
100
99
|
assertParamExists('deleteSettingKey', 'code', code)
|
|
101
|
-
// verify required parameter 'ifMatch' is not null or undefined
|
|
102
|
-
assertParamExists('deleteSettingKey', 'ifMatch', ifMatch)
|
|
103
100
|
const localVarPath = `/settingservice/v1/setting-keys/{code}`
|
|
104
101
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
105
102
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -123,10 +120,6 @@ export const SettingKeysApiAxiosParamCreator = function (configuration?: Configu
|
|
|
123
120
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
124
121
|
}
|
|
125
122
|
|
|
126
|
-
if (ifMatch !== undefined && ifMatch !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
127
|
-
localVarHeaderParameter['if-match'] = String(ifMatch ? ifMatch : baseAccessToken);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
123
|
|
|
131
124
|
|
|
132
125
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -328,7 +321,7 @@ export const SettingKeysApiAxiosParamCreator = function (configuration?: Configu
|
|
|
328
321
|
* Updates the specified setting key by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"tenant-management.settings.update\"
|
|
329
322
|
* @summary Update the setting key
|
|
330
323
|
* @param {string} code
|
|
331
|
-
* @param {string} ifMatch
|
|
324
|
+
* @param {string} ifMatch ETag of the latest setting value. Required to prevent lost updates.
|
|
332
325
|
* @param {UpdateSettingKeyRequestRestDto} updateSettingKeyRequestRestDto
|
|
333
326
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
334
327
|
* @param {*} [options] Override http request option.
|
|
@@ -407,13 +400,12 @@ export const SettingKeysApiFp = function(configuration?: Configuration) {
|
|
|
407
400
|
/**
|
|
408
401
|
* undefined **Required Permissions** \"tenant-management.settings.delete\"
|
|
409
402
|
* @param {string} code
|
|
410
|
-
* @param {string} ifMatch
|
|
411
403
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
412
404
|
* @param {*} [options] Override http request option.
|
|
413
405
|
* @throws {RequiredError}
|
|
414
406
|
*/
|
|
415
|
-
async deleteSettingKey(code: string,
|
|
416
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSettingKey(code,
|
|
407
|
+
async deleteSettingKey(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteByCodeResponseClass>> {
|
|
408
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSettingKey(code, authorization, options);
|
|
417
409
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
418
410
|
},
|
|
419
411
|
/**
|
|
@@ -466,7 +458,7 @@ export const SettingKeysApiFp = function(configuration?: Configuration) {
|
|
|
466
458
|
* Updates the specified setting key by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"tenant-management.settings.update\"
|
|
467
459
|
* @summary Update the setting key
|
|
468
460
|
* @param {string} code
|
|
469
|
-
* @param {string} ifMatch
|
|
461
|
+
* @param {string} ifMatch ETag of the latest setting value. Required to prevent lost updates.
|
|
470
462
|
* @param {UpdateSettingKeyRequestRestDto} updateSettingKeyRequestRestDto
|
|
471
463
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
472
464
|
* @param {*} [options] Override http request option.
|
|
@@ -500,13 +492,12 @@ export const SettingKeysApiFactory = function (configuration?: Configuration, ba
|
|
|
500
492
|
/**
|
|
501
493
|
* undefined **Required Permissions** \"tenant-management.settings.delete\"
|
|
502
494
|
* @param {string} code
|
|
503
|
-
* @param {string} ifMatch
|
|
504
495
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
505
496
|
* @param {*} [options] Override http request option.
|
|
506
497
|
* @throws {RequiredError}
|
|
507
498
|
*/
|
|
508
|
-
deleteSettingKey(code: string,
|
|
509
|
-
return localVarFp.deleteSettingKey(code,
|
|
499
|
+
deleteSettingKey(code: string, authorization?: string, options?: any): AxiosPromise<DeleteByCodeResponseClass> {
|
|
500
|
+
return localVarFp.deleteSettingKey(code, authorization, options).then((request) => request(axios, basePath));
|
|
510
501
|
},
|
|
511
502
|
/**
|
|
512
503
|
* Retrieves the details of the setting key that was previously created. Supply the unique setting key code that was returned when you created it and Emil Api will return the corresponding setting key information. **Required Permissions** \"tenant-management.settings.view\"
|
|
@@ -555,7 +546,7 @@ export const SettingKeysApiFactory = function (configuration?: Configuration, ba
|
|
|
555
546
|
* Updates the specified setting key by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"tenant-management.settings.update\"
|
|
556
547
|
* @summary Update the setting key
|
|
557
548
|
* @param {string} code
|
|
558
|
-
* @param {string} ifMatch
|
|
549
|
+
* @param {string} ifMatch ETag of the latest setting value. Required to prevent lost updates.
|
|
559
550
|
* @param {UpdateSettingKeyRequestRestDto} updateSettingKeyRequestRestDto
|
|
560
551
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
561
552
|
* @param {*} [options] Override http request option.
|
|
@@ -601,13 +592,6 @@ export interface SettingKeysApiDeleteSettingKeyRequest {
|
|
|
601
592
|
*/
|
|
602
593
|
readonly code: string
|
|
603
594
|
|
|
604
|
-
/**
|
|
605
|
-
*
|
|
606
|
-
* @type {string}
|
|
607
|
-
* @memberof SettingKeysApiDeleteSettingKey
|
|
608
|
-
*/
|
|
609
|
-
readonly ifMatch: string
|
|
610
|
-
|
|
611
595
|
/**
|
|
612
596
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
613
597
|
* @type {string}
|
|
@@ -763,7 +747,7 @@ export interface SettingKeysApiUpdateSettingKeyRequest {
|
|
|
763
747
|
readonly code: string
|
|
764
748
|
|
|
765
749
|
/**
|
|
766
|
-
*
|
|
750
|
+
* ETag of the latest setting value. Required to prevent lost updates.
|
|
767
751
|
* @type {string}
|
|
768
752
|
* @memberof SettingKeysApiUpdateSettingKey
|
|
769
753
|
*/
|
|
@@ -811,7 +795,7 @@ export class SettingKeysApi extends BaseAPI {
|
|
|
811
795
|
* @memberof SettingKeysApi
|
|
812
796
|
*/
|
|
813
797
|
public deleteSettingKey(requestParameters: SettingKeysApiDeleteSettingKeyRequest, options?: AxiosRequestConfig) {
|
|
814
|
-
return SettingKeysApiFp(this.configuration).deleteSettingKey(requestParameters.code, requestParameters.
|
|
798
|
+
return SettingKeysApiFp(this.configuration).deleteSettingKey(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
815
799
|
}
|
|
816
800
|
|
|
817
801
|
/**
|
|
@@ -34,13 +34,12 @@ export declare const SettingDefinitionsApiAxiosParamCreator: (configuration?: Co
|
|
|
34
34
|
/**
|
|
35
35
|
* Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
|
|
36
36
|
* @summary Delete the setting definition
|
|
37
|
-
* @param {string} code
|
|
38
|
-
* @param {any} settingDefinition Unique identifier for the object.
|
|
37
|
+
* @param {string} code Unique identifier for the object.
|
|
39
38
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
40
39
|
* @param {*} [options] Override http request option.
|
|
41
40
|
* @throws {RequiredError}
|
|
42
41
|
*/
|
|
43
|
-
deleteSettingDefinition: (code: string,
|
|
42
|
+
deleteSettingDefinition: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
44
43
|
/**
|
|
45
44
|
* 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\"
|
|
46
45
|
* @summary Retrieve the setting definition
|
|
@@ -83,13 +82,12 @@ export declare const SettingDefinitionsApiFp: (configuration?: Configuration) =>
|
|
|
83
82
|
/**
|
|
84
83
|
* Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
|
|
85
84
|
* @summary Delete the setting definition
|
|
86
|
-
* @param {string} code
|
|
87
|
-
* @param {any} settingDefinition Unique identifier for the object.
|
|
85
|
+
* @param {string} code Unique identifier for the object.
|
|
88
86
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
89
87
|
* @param {*} [options] Override http request option.
|
|
90
88
|
* @throws {RequiredError}
|
|
91
89
|
*/
|
|
92
|
-
deleteSettingDefinition(code: string,
|
|
90
|
+
deleteSettingDefinition(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteByCodeResponseClass>>;
|
|
93
91
|
/**
|
|
94
92
|
* 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\"
|
|
95
93
|
* @summary Retrieve the setting definition
|
|
@@ -132,13 +130,12 @@ export declare const SettingDefinitionsApiFactory: (configuration?: Configuratio
|
|
|
132
130
|
/**
|
|
133
131
|
* Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
|
|
134
132
|
* @summary Delete the setting definition
|
|
135
|
-
* @param {string} code
|
|
136
|
-
* @param {any} settingDefinition Unique identifier for the object.
|
|
133
|
+
* @param {string} code Unique identifier for the object.
|
|
137
134
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
138
135
|
* @param {*} [options] Override http request option.
|
|
139
136
|
* @throws {RequiredError}
|
|
140
137
|
*/
|
|
141
|
-
deleteSettingDefinition(code: string,
|
|
138
|
+
deleteSettingDefinition(code: string, authorization?: string, options?: any): AxiosPromise<DeleteByCodeResponseClass>;
|
|
142
139
|
/**
|
|
143
140
|
* 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\"
|
|
144
141
|
* @summary Retrieve the setting definition
|
|
@@ -190,17 +187,11 @@ export interface SettingDefinitionsApiCreateSettingDefinitionRequest {
|
|
|
190
187
|
*/
|
|
191
188
|
export interface SettingDefinitionsApiDeleteSettingDefinitionRequest {
|
|
192
189
|
/**
|
|
193
|
-
*
|
|
190
|
+
* Unique identifier for the object.
|
|
194
191
|
* @type {string}
|
|
195
192
|
* @memberof SettingDefinitionsApiDeleteSettingDefinition
|
|
196
193
|
*/
|
|
197
194
|
readonly code: string;
|
|
198
|
-
/**
|
|
199
|
-
* Unique identifier for the object.
|
|
200
|
-
* @type {any}
|
|
201
|
-
* @memberof SettingDefinitionsApiDeleteSettingDefinition
|
|
202
|
-
*/
|
|
203
|
-
readonly settingDefinition: any;
|
|
204
195
|
/**
|
|
205
196
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
206
197
|
* @type {string}
|
|
@@ -144,13 +144,12 @@ var SettingDefinitionsApiAxiosParamCreator = function (configuration) {
|
|
|
144
144
|
/**
|
|
145
145
|
* Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
|
|
146
146
|
* @summary Delete the setting definition
|
|
147
|
-
* @param {string} code
|
|
148
|
-
* @param {any} settingDefinition Unique identifier for the object.
|
|
147
|
+
* @param {string} code Unique identifier for the object.
|
|
149
148
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
150
149
|
* @param {*} [options] Override http request option.
|
|
151
150
|
* @throws {RequiredError}
|
|
152
151
|
*/
|
|
153
|
-
deleteSettingDefinition: function (code,
|
|
152
|
+
deleteSettingDefinition: function (code, authorization, options) {
|
|
154
153
|
if (options === void 0) { options = {}; }
|
|
155
154
|
return __awaiter(_this, void 0, void 0, function () {
|
|
156
155
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -159,11 +158,8 @@ var SettingDefinitionsApiAxiosParamCreator = function (configuration) {
|
|
|
159
158
|
case 0:
|
|
160
159
|
// verify required parameter 'code' is not null or undefined
|
|
161
160
|
(0, common_1.assertParamExists)('deleteSettingDefinition', 'code', code);
|
|
162
|
-
// verify required parameter 'settingDefinition' is not null or undefined
|
|
163
|
-
(0, common_1.assertParamExists)('deleteSettingDefinition', 'settingDefinition', settingDefinition);
|
|
164
161
|
localVarPath = "/settingservice/v1/settings/definitions/{code}"
|
|
165
|
-
.replace("{".concat("code", "}"), encodeURIComponent(String(code)))
|
|
166
|
-
.replace("{".concat("setting definition", "}"), encodeURIComponent(String(settingDefinition)));
|
|
162
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
167
163
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
168
164
|
if (configuration) {
|
|
169
165
|
baseOptions = configuration.baseOptions;
|
|
@@ -347,18 +343,17 @@ var SettingDefinitionsApiFp = function (configuration) {
|
|
|
347
343
|
/**
|
|
348
344
|
* Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
|
|
349
345
|
* @summary Delete the setting definition
|
|
350
|
-
* @param {string} code
|
|
351
|
-
* @param {any} settingDefinition Unique identifier for the object.
|
|
346
|
+
* @param {string} code Unique identifier for the object.
|
|
352
347
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
353
348
|
* @param {*} [options] Override http request option.
|
|
354
349
|
* @throws {RequiredError}
|
|
355
350
|
*/
|
|
356
|
-
deleteSettingDefinition: function (code,
|
|
351
|
+
deleteSettingDefinition: function (code, authorization, options) {
|
|
357
352
|
return __awaiter(this, void 0, void 0, function () {
|
|
358
353
|
var localVarAxiosArgs;
|
|
359
354
|
return __generator(this, function (_a) {
|
|
360
355
|
switch (_a.label) {
|
|
361
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteSettingDefinition(code,
|
|
356
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteSettingDefinition(code, authorization, options)];
|
|
362
357
|
case 1:
|
|
363
358
|
localVarAxiosArgs = _a.sent();
|
|
364
359
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -438,14 +433,13 @@ var SettingDefinitionsApiFactory = function (configuration, basePath, axios) {
|
|
|
438
433
|
/**
|
|
439
434
|
* Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
|
|
440
435
|
* @summary Delete the setting definition
|
|
441
|
-
* @param {string} code
|
|
442
|
-
* @param {any} settingDefinition Unique identifier for the object.
|
|
436
|
+
* @param {string} code Unique identifier for the object.
|
|
443
437
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
444
438
|
* @param {*} [options] Override http request option.
|
|
445
439
|
* @throws {RequiredError}
|
|
446
440
|
*/
|
|
447
|
-
deleteSettingDefinition: function (code,
|
|
448
|
-
return localVarFp.deleteSettingDefinition(code,
|
|
441
|
+
deleteSettingDefinition: function (code, authorization, options) {
|
|
442
|
+
return localVarFp.deleteSettingDefinition(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
449
443
|
},
|
|
450
444
|
/**
|
|
451
445
|
* 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\"
|
|
@@ -511,7 +505,7 @@ var SettingDefinitionsApi = /** @class */ (function (_super) {
|
|
|
511
505
|
*/
|
|
512
506
|
SettingDefinitionsApi.prototype.deleteSettingDefinition = function (requestParameters, options) {
|
|
513
507
|
var _this = this;
|
|
514
|
-
return (0, exports.SettingDefinitionsApiFp)(this.configuration).deleteSettingDefinition(requestParameters.code, requestParameters.
|
|
508
|
+
return (0, exports.SettingDefinitionsApiFp)(this.configuration).deleteSettingDefinition(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
515
509
|
};
|
|
516
510
|
/**
|
|
517
511
|
* 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\"
|
|
@@ -36,12 +36,11 @@ export declare const SettingKeysApiAxiosParamCreator: (configuration?: Configura
|
|
|
36
36
|
/**
|
|
37
37
|
* undefined **Required Permissions** \"tenant-management.settings.delete\"
|
|
38
38
|
* @param {string} code
|
|
39
|
-
* @param {string} ifMatch
|
|
40
39
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
41
40
|
* @param {*} [options] Override http request option.
|
|
42
41
|
* @throws {RequiredError}
|
|
43
42
|
*/
|
|
44
|
-
deleteSettingKey: (code: string,
|
|
43
|
+
deleteSettingKey: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
45
44
|
/**
|
|
46
45
|
* Retrieves the details of the setting key that was previously created. Supply the unique setting key code that was returned when you created it and Emil Api will return the corresponding setting key information. **Required Permissions** \"tenant-management.settings.view\"
|
|
47
46
|
* @summary Retrieve the setting key
|
|
@@ -83,7 +82,7 @@ export declare const SettingKeysApiAxiosParamCreator: (configuration?: Configura
|
|
|
83
82
|
* Updates the specified setting key by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"tenant-management.settings.update\"
|
|
84
83
|
* @summary Update the setting key
|
|
85
84
|
* @param {string} code
|
|
86
|
-
* @param {string} ifMatch
|
|
85
|
+
* @param {string} ifMatch ETag of the latest setting value. Required to prevent lost updates.
|
|
87
86
|
* @param {UpdateSettingKeyRequestRestDto} updateSettingKeyRequestRestDto
|
|
88
87
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
89
88
|
* @param {*} [options] Override http request option.
|
|
@@ -108,12 +107,11 @@ export declare const SettingKeysApiFp: (configuration?: Configuration) => {
|
|
|
108
107
|
/**
|
|
109
108
|
* undefined **Required Permissions** \"tenant-management.settings.delete\"
|
|
110
109
|
* @param {string} code
|
|
111
|
-
* @param {string} ifMatch
|
|
112
110
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
113
111
|
* @param {*} [options] Override http request option.
|
|
114
112
|
* @throws {RequiredError}
|
|
115
113
|
*/
|
|
116
|
-
deleteSettingKey(code: string,
|
|
114
|
+
deleteSettingKey(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteByCodeResponseClass>>;
|
|
117
115
|
/**
|
|
118
116
|
* Retrieves the details of the setting key that was previously created. Supply the unique setting key code that was returned when you created it and Emil Api will return the corresponding setting key information. **Required Permissions** \"tenant-management.settings.view\"
|
|
119
117
|
* @summary Retrieve the setting key
|
|
@@ -155,7 +153,7 @@ export declare const SettingKeysApiFp: (configuration?: Configuration) => {
|
|
|
155
153
|
* Updates the specified setting key by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"tenant-management.settings.update\"
|
|
156
154
|
* @summary Update the setting key
|
|
157
155
|
* @param {string} code
|
|
158
|
-
* @param {string} ifMatch
|
|
156
|
+
* @param {string} ifMatch ETag of the latest setting value. Required to prevent lost updates.
|
|
159
157
|
* @param {UpdateSettingKeyRequestRestDto} updateSettingKeyRequestRestDto
|
|
160
158
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
161
159
|
* @param {*} [options] Override http request option.
|
|
@@ -180,12 +178,11 @@ export declare const SettingKeysApiFactory: (configuration?: Configuration, base
|
|
|
180
178
|
/**
|
|
181
179
|
* undefined **Required Permissions** \"tenant-management.settings.delete\"
|
|
182
180
|
* @param {string} code
|
|
183
|
-
* @param {string} ifMatch
|
|
184
181
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
185
182
|
* @param {*} [options] Override http request option.
|
|
186
183
|
* @throws {RequiredError}
|
|
187
184
|
*/
|
|
188
|
-
deleteSettingKey(code: string,
|
|
185
|
+
deleteSettingKey(code: string, authorization?: string, options?: any): AxiosPromise<DeleteByCodeResponseClass>;
|
|
189
186
|
/**
|
|
190
187
|
* Retrieves the details of the setting key that was previously created. Supply the unique setting key code that was returned when you created it and Emil Api will return the corresponding setting key information. **Required Permissions** \"tenant-management.settings.view\"
|
|
191
188
|
* @summary Retrieve the setting key
|
|
@@ -227,7 +224,7 @@ export declare const SettingKeysApiFactory: (configuration?: Configuration, base
|
|
|
227
224
|
* Updates the specified setting key by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"tenant-management.settings.update\"
|
|
228
225
|
* @summary Update the setting key
|
|
229
226
|
* @param {string} code
|
|
230
|
-
* @param {string} ifMatch
|
|
227
|
+
* @param {string} ifMatch ETag of the latest setting value. Required to prevent lost updates.
|
|
231
228
|
* @param {UpdateSettingKeyRequestRestDto} updateSettingKeyRequestRestDto
|
|
232
229
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
233
230
|
* @param {*} [options] Override http request option.
|
|
@@ -266,12 +263,6 @@ export interface SettingKeysApiDeleteSettingKeyRequest {
|
|
|
266
263
|
* @memberof SettingKeysApiDeleteSettingKey
|
|
267
264
|
*/
|
|
268
265
|
readonly code: string;
|
|
269
|
-
/**
|
|
270
|
-
*
|
|
271
|
-
* @type {string}
|
|
272
|
-
* @memberof SettingKeysApiDeleteSettingKey
|
|
273
|
-
*/
|
|
274
|
-
readonly ifMatch: string;
|
|
275
266
|
/**
|
|
276
267
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
277
268
|
* @type {string}
|
|
@@ -409,7 +400,7 @@ export interface SettingKeysApiUpdateSettingKeyRequest {
|
|
|
409
400
|
*/
|
|
410
401
|
readonly code: string;
|
|
411
402
|
/**
|
|
412
|
-
*
|
|
403
|
+
* ETag of the latest setting value. Required to prevent lost updates.
|
|
413
404
|
* @type {string}
|
|
414
405
|
* @memberof SettingKeysApiUpdateSettingKey
|
|
415
406
|
*/
|
|
@@ -144,12 +144,11 @@ var SettingKeysApiAxiosParamCreator = function (configuration) {
|
|
|
144
144
|
/**
|
|
145
145
|
* undefined **Required Permissions** \"tenant-management.settings.delete\"
|
|
146
146
|
* @param {string} code
|
|
147
|
-
* @param {string} ifMatch
|
|
148
147
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
149
148
|
* @param {*} [options] Override http request option.
|
|
150
149
|
* @throws {RequiredError}
|
|
151
150
|
*/
|
|
152
|
-
deleteSettingKey: function (code,
|
|
151
|
+
deleteSettingKey: function (code, authorization, options) {
|
|
153
152
|
if (options === void 0) { options = {}; }
|
|
154
153
|
return __awaiter(_this, void 0, void 0, function () {
|
|
155
154
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -158,8 +157,6 @@ var SettingKeysApiAxiosParamCreator = function (configuration) {
|
|
|
158
157
|
case 0:
|
|
159
158
|
// verify required parameter 'code' is not null or undefined
|
|
160
159
|
(0, common_1.assertParamExists)('deleteSettingKey', 'code', code);
|
|
161
|
-
// verify required parameter 'ifMatch' is not null or undefined
|
|
162
|
-
(0, common_1.assertParamExists)('deleteSettingKey', 'ifMatch', ifMatch);
|
|
163
160
|
localVarPath = "/settingservice/v1/setting-keys/{code}"
|
|
164
161
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
165
162
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -180,9 +177,6 @@ var SettingKeysApiAxiosParamCreator = function (configuration) {
|
|
|
180
177
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
181
178
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
182
179
|
}
|
|
183
|
-
if (ifMatch !== undefined && ifMatch !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
184
|
-
localVarHeaderParameter['if-match'] = String(ifMatch ? ifMatch : baseAccessToken);
|
|
185
|
-
}
|
|
186
180
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
187
181
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
188
182
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -382,7 +376,7 @@ var SettingKeysApiAxiosParamCreator = function (configuration) {
|
|
|
382
376
|
* Updates the specified setting key by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"tenant-management.settings.update\"
|
|
383
377
|
* @summary Update the setting key
|
|
384
378
|
* @param {string} code
|
|
385
|
-
* @param {string} ifMatch
|
|
379
|
+
* @param {string} ifMatch ETag of the latest setting value. Required to prevent lost updates.
|
|
386
380
|
* @param {UpdateSettingKeyRequestRestDto} updateSettingKeyRequestRestDto
|
|
387
381
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
388
382
|
* @param {*} [options] Override http request option.
|
|
@@ -471,17 +465,16 @@ var SettingKeysApiFp = function (configuration) {
|
|
|
471
465
|
/**
|
|
472
466
|
* undefined **Required Permissions** \"tenant-management.settings.delete\"
|
|
473
467
|
* @param {string} code
|
|
474
|
-
* @param {string} ifMatch
|
|
475
468
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
476
469
|
* @param {*} [options] Override http request option.
|
|
477
470
|
* @throws {RequiredError}
|
|
478
471
|
*/
|
|
479
|
-
deleteSettingKey: function (code,
|
|
472
|
+
deleteSettingKey: function (code, authorization, options) {
|
|
480
473
|
return __awaiter(this, void 0, void 0, function () {
|
|
481
474
|
var localVarAxiosArgs;
|
|
482
475
|
return __generator(this, function (_a) {
|
|
483
476
|
switch (_a.label) {
|
|
484
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteSettingKey(code,
|
|
477
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteSettingKey(code, authorization, options)];
|
|
485
478
|
case 1:
|
|
486
479
|
localVarAxiosArgs = _a.sent();
|
|
487
480
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -566,7 +559,7 @@ var SettingKeysApiFp = function (configuration) {
|
|
|
566
559
|
* Updates the specified setting key by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"tenant-management.settings.update\"
|
|
567
560
|
* @summary Update the setting key
|
|
568
561
|
* @param {string} code
|
|
569
|
-
* @param {string} ifMatch
|
|
562
|
+
* @param {string} ifMatch ETag of the latest setting value. Required to prevent lost updates.
|
|
570
563
|
* @param {UpdateSettingKeyRequestRestDto} updateSettingKeyRequestRestDto
|
|
571
564
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
572
565
|
* @param {*} [options] Override http request option.
|
|
@@ -609,13 +602,12 @@ var SettingKeysApiFactory = function (configuration, basePath, axios) {
|
|
|
609
602
|
/**
|
|
610
603
|
* undefined **Required Permissions** \"tenant-management.settings.delete\"
|
|
611
604
|
* @param {string} code
|
|
612
|
-
* @param {string} ifMatch
|
|
613
605
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
614
606
|
* @param {*} [options] Override http request option.
|
|
615
607
|
* @throws {RequiredError}
|
|
616
608
|
*/
|
|
617
|
-
deleteSettingKey: function (code,
|
|
618
|
-
return localVarFp.deleteSettingKey(code,
|
|
609
|
+
deleteSettingKey: function (code, authorization, options) {
|
|
610
|
+
return localVarFp.deleteSettingKey(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
619
611
|
},
|
|
620
612
|
/**
|
|
621
613
|
* Retrieves the details of the setting key that was previously created. Supply the unique setting key code that was returned when you created it and Emil Api will return the corresponding setting key information. **Required Permissions** \"tenant-management.settings.view\"
|
|
@@ -664,7 +656,7 @@ var SettingKeysApiFactory = function (configuration, basePath, axios) {
|
|
|
664
656
|
* Updates the specified setting key by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"tenant-management.settings.update\"
|
|
665
657
|
* @summary Update the setting key
|
|
666
658
|
* @param {string} code
|
|
667
|
-
* @param {string} ifMatch
|
|
659
|
+
* @param {string} ifMatch ETag of the latest setting value. Required to prevent lost updates.
|
|
668
660
|
* @param {UpdateSettingKeyRequestRestDto} updateSettingKeyRequestRestDto
|
|
669
661
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
670
662
|
* @param {*} [options] Override http request option.
|
|
@@ -708,7 +700,7 @@ var SettingKeysApi = /** @class */ (function (_super) {
|
|
|
708
700
|
*/
|
|
709
701
|
SettingKeysApi.prototype.deleteSettingKey = function (requestParameters, options) {
|
|
710
702
|
var _this = this;
|
|
711
|
-
return (0, exports.SettingKeysApiFp)(this.configuration).deleteSettingKey(requestParameters.code, requestParameters.
|
|
703
|
+
return (0, exports.SettingKeysApiFp)(this.configuration).deleteSettingKey(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
712
704
|
};
|
|
713
705
|
/**
|
|
714
706
|
* Retrieves the details of the setting key that was previously created. Supply the unique setting key code that was returned when you created it and Emil Api will return the corresponding setting key information. **Required Permissions** \"tenant-management.settings.view\"
|