@emilgroup/setting-sdk 0.3.1-beta.23 → 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/.openapi-generator/FILES +1 -1
- package/README.md +2 -2
- package/api/setting-definitions-api.ts +103 -0
- package/api/setting-keys-api.ts +11 -27
- package/dist/api/setting-definitions-api.d.ts +56 -0
- package/dist/api/setting-definitions-api.js +92 -0
- package/dist/api/setting-keys-api.d.ts +9 -18
- package/dist/api/setting-keys-api.js +9 -17
- package/dist/models/{delete-setting-key-response-class.d.ts → delete-by-code-response-class.d.ts} +4 -4
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/models/{delete-setting-key-response-class.ts → delete-by-code-response-class.ts} +4 -4
- package/models/index.ts +1 -1
- package/package.json +1 -1
- /package/dist/models/{delete-setting-key-response-class.js → delete-by-code-response-class.js} +0 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -19,8 +19,8 @@ models/create-setting-definition-request-dto.ts
|
|
|
19
19
|
models/create-setting-definition-response-class.ts
|
|
20
20
|
models/create-setting-key-request-dto.ts
|
|
21
21
|
models/create-setting-key-response-class.ts
|
|
22
|
+
models/delete-by-code-response-class.ts
|
|
22
23
|
models/delete-public-key-request-dto.ts
|
|
23
|
-
models/delete-setting-key-response-class.ts
|
|
24
24
|
models/get-public-key-response-class.ts
|
|
25
25
|
models/get-setting-definition-response-class.ts
|
|
26
26
|
models/get-setting-key-response-class.ts
|
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 ``.
|
|
@@ -25,6 +25,8 @@ import { CreateSettingDefinitionRequestDto } from '../models';
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { CreateSettingDefinitionResponseClass } from '../models';
|
|
27
27
|
// @ts-ignore
|
|
28
|
+
import { DeleteByCodeResponseClass } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
28
30
|
import { GetSettingDefinitionResponseClass } from '../models';
|
|
29
31
|
// @ts-ignore
|
|
30
32
|
import { ListSettingDefinitionsResponseClass } from '../models';
|
|
@@ -81,6 +83,51 @@ export const SettingDefinitionsApiAxiosParamCreator = function (configuration?:
|
|
|
81
83
|
options: localVarRequestOptions,
|
|
82
84
|
};
|
|
83
85
|
},
|
|
86
|
+
/**
|
|
87
|
+
* Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
|
|
88
|
+
* @summary Delete the setting definition
|
|
89
|
+
* @param {string} code Unique identifier for the object.
|
|
90
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
91
|
+
* @param {*} [options] Override http request option.
|
|
92
|
+
* @throws {RequiredError}
|
|
93
|
+
*/
|
|
94
|
+
deleteSettingDefinition: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
95
|
+
// verify required parameter 'code' is not null or undefined
|
|
96
|
+
assertParamExists('deleteSettingDefinition', 'code', code)
|
|
97
|
+
const localVarPath = `/settingservice/v1/settings/definitions/{code}`
|
|
98
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
99
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
100
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
101
|
+
let baseOptions;
|
|
102
|
+
let baseAccessToken;
|
|
103
|
+
if (configuration) {
|
|
104
|
+
baseOptions = configuration.baseOptions;
|
|
105
|
+
baseAccessToken = configuration.accessToken;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
109
|
+
const localVarHeaderParameter = {} as any;
|
|
110
|
+
const localVarQueryParameter = {} as any;
|
|
111
|
+
|
|
112
|
+
// authentication bearer required
|
|
113
|
+
// http bearer authentication required
|
|
114
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
115
|
+
|
|
116
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
117
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
123
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
124
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
125
|
+
|
|
126
|
+
return {
|
|
127
|
+
url: toPathString(localVarUrlObj),
|
|
128
|
+
options: localVarRequestOptions,
|
|
129
|
+
};
|
|
130
|
+
},
|
|
84
131
|
/**
|
|
85
132
|
* 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
133
|
* @summary Retrieve the setting definition
|
|
@@ -224,6 +271,18 @@ export const SettingDefinitionsApiFp = function(configuration?: Configuration) {
|
|
|
224
271
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createSettingDefinition(createSettingDefinitionRequestDto, authorization, options);
|
|
225
272
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
226
273
|
},
|
|
274
|
+
/**
|
|
275
|
+
* Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
|
|
276
|
+
* @summary Delete the setting definition
|
|
277
|
+
* @param {string} code Unique identifier for the object.
|
|
278
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
279
|
+
* @param {*} [options] Override http request option.
|
|
280
|
+
* @throws {RequiredError}
|
|
281
|
+
*/
|
|
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);
|
|
284
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
285
|
+
},
|
|
227
286
|
/**
|
|
228
287
|
* 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
288
|
* @summary Retrieve the setting definition
|
|
@@ -275,6 +334,17 @@ export const SettingDefinitionsApiFactory = function (configuration?: Configurat
|
|
|
275
334
|
createSettingDefinition(createSettingDefinitionRequestDto: CreateSettingDefinitionRequestDto, authorization?: string, options?: any): AxiosPromise<CreateSettingDefinitionResponseClass> {
|
|
276
335
|
return localVarFp.createSettingDefinition(createSettingDefinitionRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
277
336
|
},
|
|
337
|
+
/**
|
|
338
|
+
* Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
|
|
339
|
+
* @summary Delete the setting definition
|
|
340
|
+
* @param {string} code Unique identifier for the object.
|
|
341
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
342
|
+
* @param {*} [options] Override http request option.
|
|
343
|
+
* @throws {RequiredError}
|
|
344
|
+
*/
|
|
345
|
+
deleteSettingDefinition(code: string, authorization?: string, options?: any): AxiosPromise<DeleteByCodeResponseClass> {
|
|
346
|
+
return localVarFp.deleteSettingDefinition(code, authorization, options).then((request) => request(axios, basePath));
|
|
347
|
+
},
|
|
278
348
|
/**
|
|
279
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\"
|
|
280
350
|
* @summary Retrieve the setting definition
|
|
@@ -327,6 +397,27 @@ export interface SettingDefinitionsApiCreateSettingDefinitionRequest {
|
|
|
327
397
|
readonly authorization?: string
|
|
328
398
|
}
|
|
329
399
|
|
|
400
|
+
/**
|
|
401
|
+
* Request parameters for deleteSettingDefinition operation in SettingDefinitionsApi.
|
|
402
|
+
* @export
|
|
403
|
+
* @interface SettingDefinitionsApiDeleteSettingDefinitionRequest
|
|
404
|
+
*/
|
|
405
|
+
export interface SettingDefinitionsApiDeleteSettingDefinitionRequest {
|
|
406
|
+
/**
|
|
407
|
+
* Unique identifier for the object.
|
|
408
|
+
* @type {string}
|
|
409
|
+
* @memberof SettingDefinitionsApiDeleteSettingDefinition
|
|
410
|
+
*/
|
|
411
|
+
readonly code: string
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
415
|
+
* @type {string}
|
|
416
|
+
* @memberof SettingDefinitionsApiDeleteSettingDefinition
|
|
417
|
+
*/
|
|
418
|
+
readonly authorization?: string
|
|
419
|
+
}
|
|
420
|
+
|
|
330
421
|
/**
|
|
331
422
|
* Request parameters for getSettingDefinition operation in SettingDefinitionsApi.
|
|
332
423
|
* @export
|
|
@@ -430,6 +521,18 @@ export class SettingDefinitionsApi extends BaseAPI {
|
|
|
430
521
|
return SettingDefinitionsApiFp(this.configuration).createSettingDefinition(requestParameters.createSettingDefinitionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
431
522
|
}
|
|
432
523
|
|
|
524
|
+
/**
|
|
525
|
+
* Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
|
|
526
|
+
* @summary Delete the setting definition
|
|
527
|
+
* @param {SettingDefinitionsApiDeleteSettingDefinitionRequest} requestParameters Request parameters.
|
|
528
|
+
* @param {*} [options] Override http request option.
|
|
529
|
+
* @throws {RequiredError}
|
|
530
|
+
* @memberof SettingDefinitionsApi
|
|
531
|
+
*/
|
|
532
|
+
public deleteSettingDefinition(requestParameters: SettingDefinitionsApiDeleteSettingDefinitionRequest, options?: AxiosRequestConfig) {
|
|
533
|
+
return SettingDefinitionsApiFp(this.configuration).deleteSettingDefinition(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
534
|
+
}
|
|
535
|
+
|
|
433
536
|
/**
|
|
434
537
|
* 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
538
|
* @summary Retrieve the setting definition
|
package/api/setting-keys-api.ts
CHANGED
|
@@ -25,7 +25,7 @@ import { CreateSettingKeyRequestDto } from '../models';
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { CreateSettingKeyResponseClass } from '../models';
|
|
27
27
|
// @ts-ignore
|
|
28
|
-
import {
|
|
28
|
+
import { DeleteByCodeResponseClass } from '../models';
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import { GetSettingKeyResponseClass } from '../models';
|
|
31
31
|
// @ts-ignore
|
|
@@ -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
|
/**
|
|
@@ -14,6 +14,7 @@ import { Configuration } from '../configuration';
|
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { CreateSettingDefinitionRequestDto } from '../models';
|
|
16
16
|
import { CreateSettingDefinitionResponseClass } from '../models';
|
|
17
|
+
import { DeleteByCodeResponseClass } from '../models';
|
|
17
18
|
import { GetSettingDefinitionResponseClass } from '../models';
|
|
18
19
|
import { ListSettingDefinitionsResponseClass } from '../models';
|
|
19
20
|
/**
|
|
@@ -30,6 +31,15 @@ export declare const SettingDefinitionsApiAxiosParamCreator: (configuration?: Co
|
|
|
30
31
|
* @throws {RequiredError}
|
|
31
32
|
*/
|
|
32
33
|
createSettingDefinition: (createSettingDefinitionRequestDto: CreateSettingDefinitionRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
34
|
+
/**
|
|
35
|
+
* Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
|
|
36
|
+
* @summary Delete the setting definition
|
|
37
|
+
* @param {string} code Unique identifier for the object.
|
|
38
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
39
|
+
* @param {*} [options] Override http request option.
|
|
40
|
+
* @throws {RequiredError}
|
|
41
|
+
*/
|
|
42
|
+
deleteSettingDefinition: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33
43
|
/**
|
|
34
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\"
|
|
35
45
|
* @summary Retrieve the setting definition
|
|
@@ -69,6 +79,15 @@ export declare const SettingDefinitionsApiFp: (configuration?: Configuration) =>
|
|
|
69
79
|
* @throws {RequiredError}
|
|
70
80
|
*/
|
|
71
81
|
createSettingDefinition(createSettingDefinitionRequestDto: CreateSettingDefinitionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateSettingDefinitionResponseClass>>;
|
|
82
|
+
/**
|
|
83
|
+
* Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
|
|
84
|
+
* @summary Delete the setting definition
|
|
85
|
+
* @param {string} code Unique identifier for the object.
|
|
86
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
87
|
+
* @param {*} [options] Override http request option.
|
|
88
|
+
* @throws {RequiredError}
|
|
89
|
+
*/
|
|
90
|
+
deleteSettingDefinition(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteByCodeResponseClass>>;
|
|
72
91
|
/**
|
|
73
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\"
|
|
74
93
|
* @summary Retrieve the setting definition
|
|
@@ -108,6 +127,15 @@ export declare const SettingDefinitionsApiFactory: (configuration?: Configuratio
|
|
|
108
127
|
* @throws {RequiredError}
|
|
109
128
|
*/
|
|
110
129
|
createSettingDefinition(createSettingDefinitionRequestDto: CreateSettingDefinitionRequestDto, authorization?: string, options?: any): AxiosPromise<CreateSettingDefinitionResponseClass>;
|
|
130
|
+
/**
|
|
131
|
+
* Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
|
|
132
|
+
* @summary Delete the setting definition
|
|
133
|
+
* @param {string} code Unique identifier for the object.
|
|
134
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
135
|
+
* @param {*} [options] Override http request option.
|
|
136
|
+
* @throws {RequiredError}
|
|
137
|
+
*/
|
|
138
|
+
deleteSettingDefinition(code: string, authorization?: string, options?: any): AxiosPromise<DeleteByCodeResponseClass>;
|
|
111
139
|
/**
|
|
112
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\"
|
|
113
141
|
* @summary Retrieve the setting definition
|
|
@@ -152,6 +180,25 @@ export interface SettingDefinitionsApiCreateSettingDefinitionRequest {
|
|
|
152
180
|
*/
|
|
153
181
|
readonly authorization?: string;
|
|
154
182
|
}
|
|
183
|
+
/**
|
|
184
|
+
* Request parameters for deleteSettingDefinition operation in SettingDefinitionsApi.
|
|
185
|
+
* @export
|
|
186
|
+
* @interface SettingDefinitionsApiDeleteSettingDefinitionRequest
|
|
187
|
+
*/
|
|
188
|
+
export interface SettingDefinitionsApiDeleteSettingDefinitionRequest {
|
|
189
|
+
/**
|
|
190
|
+
* Unique identifier for the object.
|
|
191
|
+
* @type {string}
|
|
192
|
+
* @memberof SettingDefinitionsApiDeleteSettingDefinition
|
|
193
|
+
*/
|
|
194
|
+
readonly code: string;
|
|
195
|
+
/**
|
|
196
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
197
|
+
* @type {string}
|
|
198
|
+
* @memberof SettingDefinitionsApiDeleteSettingDefinition
|
|
199
|
+
*/
|
|
200
|
+
readonly authorization?: string;
|
|
201
|
+
}
|
|
155
202
|
/**
|
|
156
203
|
* Request parameters for getSettingDefinition operation in SettingDefinitionsApi.
|
|
157
204
|
* @export
|
|
@@ -242,6 +289,15 @@ export declare class SettingDefinitionsApi extends BaseAPI {
|
|
|
242
289
|
* @memberof SettingDefinitionsApi
|
|
243
290
|
*/
|
|
244
291
|
createSettingDefinition(requestParameters: SettingDefinitionsApiCreateSettingDefinitionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateSettingDefinitionResponseClass, any, {}>>;
|
|
292
|
+
/**
|
|
293
|
+
* Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
|
|
294
|
+
* @summary Delete the setting definition
|
|
295
|
+
* @param {SettingDefinitionsApiDeleteSettingDefinitionRequest} requestParameters Request parameters.
|
|
296
|
+
* @param {*} [options] Override http request option.
|
|
297
|
+
* @throws {RequiredError}
|
|
298
|
+
* @memberof SettingDefinitionsApi
|
|
299
|
+
*/
|
|
300
|
+
deleteSettingDefinition(requestParameters: SettingDefinitionsApiDeleteSettingDefinitionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteByCodeResponseClass, any, {}>>;
|
|
245
301
|
/**
|
|
246
302
|
* 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
303
|
* @summary Retrieve the setting definition
|
|
@@ -141,6 +141,54 @@ var SettingDefinitionsApiAxiosParamCreator = function (configuration) {
|
|
|
141
141
|
});
|
|
142
142
|
});
|
|
143
143
|
},
|
|
144
|
+
/**
|
|
145
|
+
* Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
|
|
146
|
+
* @summary Delete the setting definition
|
|
147
|
+
* @param {string} code Unique identifier for the object.
|
|
148
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
149
|
+
* @param {*} [options] Override http request option.
|
|
150
|
+
* @throws {RequiredError}
|
|
151
|
+
*/
|
|
152
|
+
deleteSettingDefinition: function (code, authorization, options) {
|
|
153
|
+
if (options === void 0) { options = {}; }
|
|
154
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
155
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
156
|
+
return __generator(this, function (_a) {
|
|
157
|
+
switch (_a.label) {
|
|
158
|
+
case 0:
|
|
159
|
+
// verify required parameter 'code' is not null or undefined
|
|
160
|
+
(0, common_1.assertParamExists)('deleteSettingDefinition', 'code', code);
|
|
161
|
+
localVarPath = "/settingservice/v1/settings/definitions/{code}"
|
|
162
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
163
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
164
|
+
if (configuration) {
|
|
165
|
+
baseOptions = configuration.baseOptions;
|
|
166
|
+
baseAccessToken = configuration.accessToken;
|
|
167
|
+
}
|
|
168
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
169
|
+
localVarHeaderParameter = {};
|
|
170
|
+
localVarQueryParameter = {};
|
|
171
|
+
// authentication bearer required
|
|
172
|
+
// http bearer authentication required
|
|
173
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
174
|
+
case 1:
|
|
175
|
+
// authentication bearer required
|
|
176
|
+
// http bearer authentication required
|
|
177
|
+
_a.sent();
|
|
178
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
179
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
180
|
+
}
|
|
181
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
182
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
183
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
184
|
+
return [2 /*return*/, {
|
|
185
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
186
|
+
options: localVarRequestOptions,
|
|
187
|
+
}];
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
});
|
|
191
|
+
},
|
|
144
192
|
/**
|
|
145
193
|
* 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\"
|
|
146
194
|
* @summary Retrieve the setting definition
|
|
@@ -292,6 +340,27 @@ var SettingDefinitionsApiFp = function (configuration) {
|
|
|
292
340
|
});
|
|
293
341
|
});
|
|
294
342
|
},
|
|
343
|
+
/**
|
|
344
|
+
* Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
|
|
345
|
+
* @summary Delete the setting definition
|
|
346
|
+
* @param {string} code Unique identifier for the object.
|
|
347
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
348
|
+
* @param {*} [options] Override http request option.
|
|
349
|
+
* @throws {RequiredError}
|
|
350
|
+
*/
|
|
351
|
+
deleteSettingDefinition: function (code, authorization, options) {
|
|
352
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
353
|
+
var localVarAxiosArgs;
|
|
354
|
+
return __generator(this, function (_a) {
|
|
355
|
+
switch (_a.label) {
|
|
356
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteSettingDefinition(code, authorization, options)];
|
|
357
|
+
case 1:
|
|
358
|
+
localVarAxiosArgs = _a.sent();
|
|
359
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
360
|
+
}
|
|
361
|
+
});
|
|
362
|
+
});
|
|
363
|
+
},
|
|
295
364
|
/**
|
|
296
365
|
* 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\"
|
|
297
366
|
* @summary Retrieve the setting definition
|
|
@@ -361,6 +430,17 @@ var SettingDefinitionsApiFactory = function (configuration, basePath, axios) {
|
|
|
361
430
|
createSettingDefinition: function (createSettingDefinitionRequestDto, authorization, options) {
|
|
362
431
|
return localVarFp.createSettingDefinition(createSettingDefinitionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
363
432
|
},
|
|
433
|
+
/**
|
|
434
|
+
* Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
|
|
435
|
+
* @summary Delete the setting definition
|
|
436
|
+
* @param {string} code Unique identifier for the object.
|
|
437
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
438
|
+
* @param {*} [options] Override http request option.
|
|
439
|
+
* @throws {RequiredError}
|
|
440
|
+
*/
|
|
441
|
+
deleteSettingDefinition: function (code, authorization, options) {
|
|
442
|
+
return localVarFp.deleteSettingDefinition(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
443
|
+
},
|
|
364
444
|
/**
|
|
365
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\"
|
|
366
446
|
* @summary Retrieve the setting definition
|
|
@@ -415,6 +495,18 @@ var SettingDefinitionsApi = /** @class */ (function (_super) {
|
|
|
415
495
|
var _this = this;
|
|
416
496
|
return (0, exports.SettingDefinitionsApiFp)(this.configuration).createSettingDefinition(requestParameters.createSettingDefinitionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
417
497
|
};
|
|
498
|
+
/**
|
|
499
|
+
* Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
|
|
500
|
+
* @summary Delete the setting definition
|
|
501
|
+
* @param {SettingDefinitionsApiDeleteSettingDefinitionRequest} requestParameters Request parameters.
|
|
502
|
+
* @param {*} [options] Override http request option.
|
|
503
|
+
* @throws {RequiredError}
|
|
504
|
+
* @memberof SettingDefinitionsApi
|
|
505
|
+
*/
|
|
506
|
+
SettingDefinitionsApi.prototype.deleteSettingDefinition = function (requestParameters, options) {
|
|
507
|
+
var _this = this;
|
|
508
|
+
return (0, exports.SettingDefinitionsApiFp)(this.configuration).deleteSettingDefinition(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
509
|
+
};
|
|
418
510
|
/**
|
|
419
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\"
|
|
420
512
|
* @summary Retrieve the setting definition
|
|
@@ -14,7 +14,7 @@ import { Configuration } from '../configuration';
|
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { CreateSettingKeyRequestDto } from '../models';
|
|
16
16
|
import { CreateSettingKeyResponseClass } from '../models';
|
|
17
|
-
import {
|
|
17
|
+
import { DeleteByCodeResponseClass } from '../models';
|
|
18
18
|
import { GetSettingKeyResponseClass } from '../models';
|
|
19
19
|
import { ListSettingKeysResponseClass } from '../models';
|
|
20
20
|
import { UpdateSettingKeyRequestRestDto } from '../models';
|
|
@@ -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
|
*/
|
|
@@ -450,7 +441,7 @@ export declare class SettingKeysApi extends BaseAPI {
|
|
|
450
441
|
* @throws {RequiredError}
|
|
451
442
|
* @memberof SettingKeysApi
|
|
452
443
|
*/
|
|
453
|
-
deleteSettingKey(requestParameters: SettingKeysApiDeleteSettingKeyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
444
|
+
deleteSettingKey(requestParameters: SettingKeysApiDeleteSettingKeyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteByCodeResponseClass, any, {}>>;
|
|
454
445
|
/**
|
|
455
446
|
* 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\"
|
|
456
447
|
* @summary Retrieve the setting key
|
|
@@ -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\"
|
package/dist/models/{delete-setting-key-response-class.d.ts → delete-by-code-response-class.d.ts}
RENAMED
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
/**
|
|
13
13
|
*
|
|
14
14
|
* @export
|
|
15
|
-
* @interface
|
|
15
|
+
* @interface DeleteByCodeResponseClass
|
|
16
16
|
*/
|
|
17
|
-
export interface
|
|
17
|
+
export interface DeleteByCodeResponseClass {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* success
|
|
20
20
|
* @type {boolean}
|
|
21
|
-
* @memberof
|
|
21
|
+
* @memberof DeleteByCodeResponseClass
|
|
22
22
|
*/
|
|
23
23
|
'success': boolean;
|
|
24
24
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ export * from './create-setting-definition-request-dto';
|
|
|
4
4
|
export * from './create-setting-definition-response-class';
|
|
5
5
|
export * from './create-setting-key-request-dto';
|
|
6
6
|
export * from './create-setting-key-response-class';
|
|
7
|
+
export * from './delete-by-code-response-class';
|
|
7
8
|
export * from './delete-public-key-request-dto';
|
|
8
|
-
export * from './delete-setting-key-response-class';
|
|
9
9
|
export * from './get-public-key-response-class';
|
|
10
10
|
export * from './get-setting-definition-response-class';
|
|
11
11
|
export * from './get-setting-key-response-class';
|
package/dist/models/index.js
CHANGED
|
@@ -20,8 +20,8 @@ __exportStar(require("./create-setting-definition-request-dto"), exports);
|
|
|
20
20
|
__exportStar(require("./create-setting-definition-response-class"), exports);
|
|
21
21
|
__exportStar(require("./create-setting-key-request-dto"), exports);
|
|
22
22
|
__exportStar(require("./create-setting-key-response-class"), exports);
|
|
23
|
+
__exportStar(require("./delete-by-code-response-class"), exports);
|
|
23
24
|
__exportStar(require("./delete-public-key-request-dto"), exports);
|
|
24
|
-
__exportStar(require("./delete-setting-key-response-class"), exports);
|
|
25
25
|
__exportStar(require("./get-public-key-response-class"), exports);
|
|
26
26
|
__exportStar(require("./get-setting-definition-response-class"), exports);
|
|
27
27
|
__exportStar(require("./get-setting-key-response-class"), exports);
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
/**
|
|
18
18
|
*
|
|
19
19
|
* @export
|
|
20
|
-
* @interface
|
|
20
|
+
* @interface DeleteByCodeResponseClass
|
|
21
21
|
*/
|
|
22
|
-
export interface
|
|
22
|
+
export interface DeleteByCodeResponseClass {
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* success
|
|
25
25
|
* @type {boolean}
|
|
26
|
-
* @memberof
|
|
26
|
+
* @memberof DeleteByCodeResponseClass
|
|
27
27
|
*/
|
|
28
28
|
'success': boolean;
|
|
29
29
|
}
|
package/models/index.ts
CHANGED
|
@@ -4,8 +4,8 @@ export * from './create-setting-definition-request-dto';
|
|
|
4
4
|
export * from './create-setting-definition-response-class';
|
|
5
5
|
export * from './create-setting-key-request-dto';
|
|
6
6
|
export * from './create-setting-key-response-class';
|
|
7
|
+
export * from './delete-by-code-response-class';
|
|
7
8
|
export * from './delete-public-key-request-dto';
|
|
8
|
-
export * from './delete-setting-key-response-class';
|
|
9
9
|
export * from './get-public-key-response-class';
|
|
10
10
|
export * from './get-setting-definition-response-class';
|
|
11
11
|
export * from './get-setting-key-response-class';
|
package/package.json
CHANGED
/package/dist/models/{delete-setting-key-response-class.js → delete-by-code-response-class.js}
RENAMED
|
File without changes
|