@emilgroup/setting-sdk-node 0.3.1-beta.22 → 0.3.1-beta.24
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-node@0.3.1-beta.
|
|
20
|
+
npm install @emilgroup/setting-sdk-node@0.3.1-beta.24 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/setting-sdk-node@0.3.1-beta.
|
|
24
|
+
yarn add @emilgroup/setting-sdk-node@0.3.1-beta.24
|
|
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';
|
|
@@ -85,6 +87,51 @@ export const SettingDefinitionsApiAxiosParamCreator = function (configuration?:
|
|
|
85
87
|
options: localVarRequestOptions,
|
|
86
88
|
};
|
|
87
89
|
},
|
|
90
|
+
/**
|
|
91
|
+
* Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
|
|
92
|
+
* @summary Delete the setting definition
|
|
93
|
+
* @param {string} code Unique identifier for the object.
|
|
94
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
95
|
+
* @param {*} [options] Override http request option.
|
|
96
|
+
* @throws {RequiredError}
|
|
97
|
+
*/
|
|
98
|
+
deleteSettingDefinition: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
99
|
+
// verify required parameter 'code' is not null or undefined
|
|
100
|
+
assertParamExists('deleteSettingDefinition', 'code', code)
|
|
101
|
+
const localVarPath = `/settingservice/v1/settings/definitions/{code}`
|
|
102
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
103
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
104
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
105
|
+
let baseOptions;
|
|
106
|
+
let baseAccessToken;
|
|
107
|
+
if (configuration) {
|
|
108
|
+
baseOptions = configuration.baseOptions;
|
|
109
|
+
baseAccessToken = configuration.accessToken;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
113
|
+
const localVarHeaderParameter = {} as any;
|
|
114
|
+
const localVarQueryParameter = {} as any;
|
|
115
|
+
|
|
116
|
+
// authentication bearer required
|
|
117
|
+
// http bearer authentication required
|
|
118
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
119
|
+
|
|
120
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
121
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
127
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
128
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
129
|
+
|
|
130
|
+
return {
|
|
131
|
+
url: toPathString(localVarUrlObj),
|
|
132
|
+
options: localVarRequestOptions,
|
|
133
|
+
};
|
|
134
|
+
},
|
|
88
135
|
/**
|
|
89
136
|
* 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\"
|
|
90
137
|
* @summary Retrieve the setting definition
|
|
@@ -228,6 +275,18 @@ export const SettingDefinitionsApiFp = function(configuration?: Configuration) {
|
|
|
228
275
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createSettingDefinition(createSettingDefinitionRequestDto, authorization, options);
|
|
229
276
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
230
277
|
},
|
|
278
|
+
/**
|
|
279
|
+
* Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
|
|
280
|
+
* @summary Delete the setting definition
|
|
281
|
+
* @param {string} code Unique identifier for the object.
|
|
282
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
283
|
+
* @param {*} [options] Override http request option.
|
|
284
|
+
* @throws {RequiredError}
|
|
285
|
+
*/
|
|
286
|
+
async deleteSettingDefinition(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteByCodeResponseClass>> {
|
|
287
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSettingDefinition(code, authorization, options);
|
|
288
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
289
|
+
},
|
|
231
290
|
/**
|
|
232
291
|
* 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\"
|
|
233
292
|
* @summary Retrieve the setting definition
|
|
@@ -279,6 +338,17 @@ export const SettingDefinitionsApiFactory = function (configuration?: Configurat
|
|
|
279
338
|
createSettingDefinition(createSettingDefinitionRequestDto: CreateSettingDefinitionRequestDto, authorization?: string, options?: any): AxiosPromise<CreateSettingDefinitionResponseClass> {
|
|
280
339
|
return localVarFp.createSettingDefinition(createSettingDefinitionRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
281
340
|
},
|
|
341
|
+
/**
|
|
342
|
+
* Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
|
|
343
|
+
* @summary Delete the setting definition
|
|
344
|
+
* @param {string} code Unique identifier for the object.
|
|
345
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
346
|
+
* @param {*} [options] Override http request option.
|
|
347
|
+
* @throws {RequiredError}
|
|
348
|
+
*/
|
|
349
|
+
deleteSettingDefinition(code: string, authorization?: string, options?: any): AxiosPromise<DeleteByCodeResponseClass> {
|
|
350
|
+
return localVarFp.deleteSettingDefinition(code, authorization, options).then((request) => request(axios, basePath));
|
|
351
|
+
},
|
|
282
352
|
/**
|
|
283
353
|
* 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\"
|
|
284
354
|
* @summary Retrieve the setting definition
|
|
@@ -331,6 +401,27 @@ export interface SettingDefinitionsApiCreateSettingDefinitionRequest {
|
|
|
331
401
|
readonly authorization?: string
|
|
332
402
|
}
|
|
333
403
|
|
|
404
|
+
/**
|
|
405
|
+
* Request parameters for deleteSettingDefinition operation in SettingDefinitionsApi.
|
|
406
|
+
* @export
|
|
407
|
+
* @interface SettingDefinitionsApiDeleteSettingDefinitionRequest
|
|
408
|
+
*/
|
|
409
|
+
export interface SettingDefinitionsApiDeleteSettingDefinitionRequest {
|
|
410
|
+
/**
|
|
411
|
+
* Unique identifier for the object.
|
|
412
|
+
* @type {string}
|
|
413
|
+
* @memberof SettingDefinitionsApiDeleteSettingDefinition
|
|
414
|
+
*/
|
|
415
|
+
readonly code: string
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
419
|
+
* @type {string}
|
|
420
|
+
* @memberof SettingDefinitionsApiDeleteSettingDefinition
|
|
421
|
+
*/
|
|
422
|
+
readonly authorization?: string
|
|
423
|
+
}
|
|
424
|
+
|
|
334
425
|
/**
|
|
335
426
|
* Request parameters for getSettingDefinition operation in SettingDefinitionsApi.
|
|
336
427
|
* @export
|
|
@@ -434,6 +525,18 @@ export class SettingDefinitionsApi extends BaseAPI {
|
|
|
434
525
|
return SettingDefinitionsApiFp(this.configuration).createSettingDefinition(requestParameters.createSettingDefinitionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
435
526
|
}
|
|
436
527
|
|
|
528
|
+
/**
|
|
529
|
+
* Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
|
|
530
|
+
* @summary Delete the setting definition
|
|
531
|
+
* @param {SettingDefinitionsApiDeleteSettingDefinitionRequest} requestParameters Request parameters.
|
|
532
|
+
* @param {*} [options] Override http request option.
|
|
533
|
+
* @throws {RequiredError}
|
|
534
|
+
* @memberof SettingDefinitionsApi
|
|
535
|
+
*/
|
|
536
|
+
public deleteSettingDefinition(requestParameters: SettingDefinitionsApiDeleteSettingDefinitionRequest, options?: AxiosRequestConfig) {
|
|
537
|
+
return SettingDefinitionsApiFp(this.configuration).deleteSettingDefinition(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
538
|
+
}
|
|
539
|
+
|
|
437
540
|
/**
|
|
438
541
|
* 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\"
|
|
439
542
|
* @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
|
|
@@ -94,16 +94,13 @@ export const SettingKeysApiAxiosParamCreator = function (configuration?: Configu
|
|
|
94
94
|
/**
|
|
95
95
|
* undefined **Required Permissions** \"tenant-management.settings.delete\"
|
|
96
96
|
* @param {string} code
|
|
97
|
-
* @param {string} ifMatch
|
|
98
97
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
99
98
|
* @param {*} [options] Override http request option.
|
|
100
99
|
* @throws {RequiredError}
|
|
101
100
|
*/
|
|
102
|
-
deleteSettingKey: async (code: string,
|
|
101
|
+
deleteSettingKey: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
103
102
|
// verify required parameter 'code' is not null or undefined
|
|
104
103
|
assertParamExists('deleteSettingKey', 'code', code)
|
|
105
|
-
// verify required parameter 'ifMatch' is not null or undefined
|
|
106
|
-
assertParamExists('deleteSettingKey', 'ifMatch', ifMatch)
|
|
107
104
|
const localVarPath = `/settingservice/v1/setting-keys/{code}`
|
|
108
105
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
109
106
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -127,10 +124,6 @@ export const SettingKeysApiAxiosParamCreator = function (configuration?: Configu
|
|
|
127
124
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
128
125
|
}
|
|
129
126
|
|
|
130
|
-
if (ifMatch !== undefined && ifMatch !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
131
|
-
localVarHeaderParameter['if-match'] = String(ifMatch ? ifMatch : baseAccessToken);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
127
|
|
|
135
128
|
|
|
136
129
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -332,7 +325,7 @@ export const SettingKeysApiAxiosParamCreator = function (configuration?: Configu
|
|
|
332
325
|
* 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\"
|
|
333
326
|
* @summary Update the setting key
|
|
334
327
|
* @param {string} code
|
|
335
|
-
* @param {string} ifMatch
|
|
328
|
+
* @param {string} ifMatch ETag of the latest setting value. Required to prevent lost updates.
|
|
336
329
|
* @param {UpdateSettingKeyRequestRestDto} updateSettingKeyRequestRestDto
|
|
337
330
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
338
331
|
* @param {*} [options] Override http request option.
|
|
@@ -411,13 +404,12 @@ export const SettingKeysApiFp = function(configuration?: Configuration) {
|
|
|
411
404
|
/**
|
|
412
405
|
* undefined **Required Permissions** \"tenant-management.settings.delete\"
|
|
413
406
|
* @param {string} code
|
|
414
|
-
* @param {string} ifMatch
|
|
415
407
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
416
408
|
* @param {*} [options] Override http request option.
|
|
417
409
|
* @throws {RequiredError}
|
|
418
410
|
*/
|
|
419
|
-
async deleteSettingKey(code: string,
|
|
420
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSettingKey(code,
|
|
411
|
+
async deleteSettingKey(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteByCodeResponseClass>> {
|
|
412
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSettingKey(code, authorization, options);
|
|
421
413
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
422
414
|
},
|
|
423
415
|
/**
|
|
@@ -470,7 +462,7 @@ export const SettingKeysApiFp = function(configuration?: Configuration) {
|
|
|
470
462
|
* 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\"
|
|
471
463
|
* @summary Update the setting key
|
|
472
464
|
* @param {string} code
|
|
473
|
-
* @param {string} ifMatch
|
|
465
|
+
* @param {string} ifMatch ETag of the latest setting value. Required to prevent lost updates.
|
|
474
466
|
* @param {UpdateSettingKeyRequestRestDto} updateSettingKeyRequestRestDto
|
|
475
467
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
476
468
|
* @param {*} [options] Override http request option.
|
|
@@ -504,13 +496,12 @@ export const SettingKeysApiFactory = function (configuration?: Configuration, ba
|
|
|
504
496
|
/**
|
|
505
497
|
* undefined **Required Permissions** \"tenant-management.settings.delete\"
|
|
506
498
|
* @param {string} code
|
|
507
|
-
* @param {string} ifMatch
|
|
508
499
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
509
500
|
* @param {*} [options] Override http request option.
|
|
510
501
|
* @throws {RequiredError}
|
|
511
502
|
*/
|
|
512
|
-
deleteSettingKey(code: string,
|
|
513
|
-
return localVarFp.deleteSettingKey(code,
|
|
503
|
+
deleteSettingKey(code: string, authorization?: string, options?: any): AxiosPromise<DeleteByCodeResponseClass> {
|
|
504
|
+
return localVarFp.deleteSettingKey(code, authorization, options).then((request) => request(axios, basePath));
|
|
514
505
|
},
|
|
515
506
|
/**
|
|
516
507
|
* 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\"
|
|
@@ -559,7 +550,7 @@ export const SettingKeysApiFactory = function (configuration?: Configuration, ba
|
|
|
559
550
|
* 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\"
|
|
560
551
|
* @summary Update the setting key
|
|
561
552
|
* @param {string} code
|
|
562
|
-
* @param {string} ifMatch
|
|
553
|
+
* @param {string} ifMatch ETag of the latest setting value. Required to prevent lost updates.
|
|
563
554
|
* @param {UpdateSettingKeyRequestRestDto} updateSettingKeyRequestRestDto
|
|
564
555
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
565
556
|
* @param {*} [options] Override http request option.
|
|
@@ -605,13 +596,6 @@ export interface SettingKeysApiDeleteSettingKeyRequest {
|
|
|
605
596
|
*/
|
|
606
597
|
readonly code: string
|
|
607
598
|
|
|
608
|
-
/**
|
|
609
|
-
*
|
|
610
|
-
* @type {string}
|
|
611
|
-
* @memberof SettingKeysApiDeleteSettingKey
|
|
612
|
-
*/
|
|
613
|
-
readonly ifMatch: string
|
|
614
|
-
|
|
615
599
|
/**
|
|
616
600
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
617
601
|
* @type {string}
|
|
@@ -767,7 +751,7 @@ export interface SettingKeysApiUpdateSettingKeyRequest {
|
|
|
767
751
|
readonly code: string
|
|
768
752
|
|
|
769
753
|
/**
|
|
770
|
-
*
|
|
754
|
+
* ETag of the latest setting value. Required to prevent lost updates.
|
|
771
755
|
* @type {string}
|
|
772
756
|
* @memberof SettingKeysApiUpdateSettingKey
|
|
773
757
|
*/
|
|
@@ -815,7 +799,7 @@ export class SettingKeysApi extends BaseAPI {
|
|
|
815
799
|
* @memberof SettingKeysApi
|
|
816
800
|
*/
|
|
817
801
|
public deleteSettingKey(requestParameters: SettingKeysApiDeleteSettingKeyRequest, options?: AxiosRequestConfig) {
|
|
818
|
-
return SettingKeysApiFp(this.configuration).deleteSettingKey(requestParameters.code, requestParameters.
|
|
802
|
+
return SettingKeysApiFp(this.configuration).deleteSettingKey(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
819
803
|
}
|
|
820
804
|
|
|
821
805
|
/**
|
|
@@ -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
|
|
@@ -145,6 +145,54 @@ var SettingDefinitionsApiAxiosParamCreator = function (configuration) {
|
|
|
145
145
|
});
|
|
146
146
|
});
|
|
147
147
|
},
|
|
148
|
+
/**
|
|
149
|
+
* Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
|
|
150
|
+
* @summary Delete the setting definition
|
|
151
|
+
* @param {string} code Unique identifier for the object.
|
|
152
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
153
|
+
* @param {*} [options] Override http request option.
|
|
154
|
+
* @throws {RequiredError}
|
|
155
|
+
*/
|
|
156
|
+
deleteSettingDefinition: function (code, authorization, options) {
|
|
157
|
+
if (options === void 0) { options = {}; }
|
|
158
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
159
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
160
|
+
return __generator(this, function (_a) {
|
|
161
|
+
switch (_a.label) {
|
|
162
|
+
case 0:
|
|
163
|
+
// verify required parameter 'code' is not null or undefined
|
|
164
|
+
(0, common_1.assertParamExists)('deleteSettingDefinition', 'code', code);
|
|
165
|
+
localVarPath = "/settingservice/v1/settings/definitions/{code}"
|
|
166
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
167
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
168
|
+
if (configuration) {
|
|
169
|
+
baseOptions = configuration.baseOptions;
|
|
170
|
+
baseAccessToken = configuration.accessToken;
|
|
171
|
+
}
|
|
172
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
173
|
+
localVarHeaderParameter = {};
|
|
174
|
+
localVarQueryParameter = {};
|
|
175
|
+
// authentication bearer required
|
|
176
|
+
// http bearer authentication required
|
|
177
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
178
|
+
case 1:
|
|
179
|
+
// authentication bearer required
|
|
180
|
+
// http bearer authentication required
|
|
181
|
+
_a.sent();
|
|
182
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
183
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
184
|
+
}
|
|
185
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
186
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
187
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
188
|
+
return [2 /*return*/, {
|
|
189
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
190
|
+
options: localVarRequestOptions,
|
|
191
|
+
}];
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
});
|
|
195
|
+
},
|
|
148
196
|
/**
|
|
149
197
|
* 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\"
|
|
150
198
|
* @summary Retrieve the setting definition
|
|
@@ -296,6 +344,27 @@ var SettingDefinitionsApiFp = function (configuration) {
|
|
|
296
344
|
});
|
|
297
345
|
});
|
|
298
346
|
},
|
|
347
|
+
/**
|
|
348
|
+
* Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
|
|
349
|
+
* @summary Delete the setting definition
|
|
350
|
+
* @param {string} code Unique identifier for the object.
|
|
351
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
352
|
+
* @param {*} [options] Override http request option.
|
|
353
|
+
* @throws {RequiredError}
|
|
354
|
+
*/
|
|
355
|
+
deleteSettingDefinition: function (code, authorization, options) {
|
|
356
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
357
|
+
var localVarAxiosArgs;
|
|
358
|
+
return __generator(this, function (_a) {
|
|
359
|
+
switch (_a.label) {
|
|
360
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteSettingDefinition(code, authorization, options)];
|
|
361
|
+
case 1:
|
|
362
|
+
localVarAxiosArgs = _a.sent();
|
|
363
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
364
|
+
}
|
|
365
|
+
});
|
|
366
|
+
});
|
|
367
|
+
},
|
|
299
368
|
/**
|
|
300
369
|
* 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\"
|
|
301
370
|
* @summary Retrieve the setting definition
|
|
@@ -365,6 +434,17 @@ var SettingDefinitionsApiFactory = function (configuration, basePath, axios) {
|
|
|
365
434
|
createSettingDefinition: function (createSettingDefinitionRequestDto, authorization, options) {
|
|
366
435
|
return localVarFp.createSettingDefinition(createSettingDefinitionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
367
436
|
},
|
|
437
|
+
/**
|
|
438
|
+
* Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
|
|
439
|
+
* @summary Delete the setting definition
|
|
440
|
+
* @param {string} code Unique identifier for the object.
|
|
441
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
442
|
+
* @param {*} [options] Override http request option.
|
|
443
|
+
* @throws {RequiredError}
|
|
444
|
+
*/
|
|
445
|
+
deleteSettingDefinition: function (code, authorization, options) {
|
|
446
|
+
return localVarFp.deleteSettingDefinition(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
447
|
+
},
|
|
368
448
|
/**
|
|
369
449
|
* 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\"
|
|
370
450
|
* @summary Retrieve the setting definition
|
|
@@ -419,6 +499,18 @@ var SettingDefinitionsApi = /** @class */ (function (_super) {
|
|
|
419
499
|
var _this = this;
|
|
420
500
|
return (0, exports.SettingDefinitionsApiFp)(this.configuration).createSettingDefinition(requestParameters.createSettingDefinitionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
421
501
|
};
|
|
502
|
+
/**
|
|
503
|
+
* Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
|
|
504
|
+
* @summary Delete the setting definition
|
|
505
|
+
* @param {SettingDefinitionsApiDeleteSettingDefinitionRequest} requestParameters Request parameters.
|
|
506
|
+
* @param {*} [options] Override http request option.
|
|
507
|
+
* @throws {RequiredError}
|
|
508
|
+
* @memberof SettingDefinitionsApi
|
|
509
|
+
*/
|
|
510
|
+
SettingDefinitionsApi.prototype.deleteSettingDefinition = function (requestParameters, options) {
|
|
511
|
+
var _this = this;
|
|
512
|
+
return (0, exports.SettingDefinitionsApiFp)(this.configuration).deleteSettingDefinition(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
513
|
+
};
|
|
422
514
|
/**
|
|
423
515
|
* 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\"
|
|
424
516
|
* @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
|
|
@@ -148,12 +148,11 @@ var SettingKeysApiAxiosParamCreator = function (configuration) {
|
|
|
148
148
|
/**
|
|
149
149
|
* undefined **Required Permissions** \"tenant-management.settings.delete\"
|
|
150
150
|
* @param {string} code
|
|
151
|
-
* @param {string} ifMatch
|
|
152
151
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
153
152
|
* @param {*} [options] Override http request option.
|
|
154
153
|
* @throws {RequiredError}
|
|
155
154
|
*/
|
|
156
|
-
deleteSettingKey: function (code,
|
|
155
|
+
deleteSettingKey: function (code, authorization, options) {
|
|
157
156
|
if (options === void 0) { options = {}; }
|
|
158
157
|
return __awaiter(_this, void 0, void 0, function () {
|
|
159
158
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -162,8 +161,6 @@ var SettingKeysApiAxiosParamCreator = function (configuration) {
|
|
|
162
161
|
case 0:
|
|
163
162
|
// verify required parameter 'code' is not null or undefined
|
|
164
163
|
(0, common_1.assertParamExists)('deleteSettingKey', 'code', code);
|
|
165
|
-
// verify required parameter 'ifMatch' is not null or undefined
|
|
166
|
-
(0, common_1.assertParamExists)('deleteSettingKey', 'ifMatch', ifMatch);
|
|
167
164
|
localVarPath = "/settingservice/v1/setting-keys/{code}"
|
|
168
165
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
169
166
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -184,9 +181,6 @@ var SettingKeysApiAxiosParamCreator = function (configuration) {
|
|
|
184
181
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
185
182
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
186
183
|
}
|
|
187
|
-
if (ifMatch !== undefined && ifMatch !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
188
|
-
localVarHeaderParameter['if-match'] = String(ifMatch ? ifMatch : baseAccessToken);
|
|
189
|
-
}
|
|
190
184
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
191
185
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
192
186
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -386,7 +380,7 @@ var SettingKeysApiAxiosParamCreator = function (configuration) {
|
|
|
386
380
|
* 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\"
|
|
387
381
|
* @summary Update the setting key
|
|
388
382
|
* @param {string} code
|
|
389
|
-
* @param {string} ifMatch
|
|
383
|
+
* @param {string} ifMatch ETag of the latest setting value. Required to prevent lost updates.
|
|
390
384
|
* @param {UpdateSettingKeyRequestRestDto} updateSettingKeyRequestRestDto
|
|
391
385
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
392
386
|
* @param {*} [options] Override http request option.
|
|
@@ -475,17 +469,16 @@ var SettingKeysApiFp = function (configuration) {
|
|
|
475
469
|
/**
|
|
476
470
|
* undefined **Required Permissions** \"tenant-management.settings.delete\"
|
|
477
471
|
* @param {string} code
|
|
478
|
-
* @param {string} ifMatch
|
|
479
472
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
480
473
|
* @param {*} [options] Override http request option.
|
|
481
474
|
* @throws {RequiredError}
|
|
482
475
|
*/
|
|
483
|
-
deleteSettingKey: function (code,
|
|
476
|
+
deleteSettingKey: function (code, authorization, options) {
|
|
484
477
|
return __awaiter(this, void 0, void 0, function () {
|
|
485
478
|
var localVarAxiosArgs;
|
|
486
479
|
return __generator(this, function (_a) {
|
|
487
480
|
switch (_a.label) {
|
|
488
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteSettingKey(code,
|
|
481
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteSettingKey(code, authorization, options)];
|
|
489
482
|
case 1:
|
|
490
483
|
localVarAxiosArgs = _a.sent();
|
|
491
484
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -570,7 +563,7 @@ var SettingKeysApiFp = function (configuration) {
|
|
|
570
563
|
* 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\"
|
|
571
564
|
* @summary Update the setting key
|
|
572
565
|
* @param {string} code
|
|
573
|
-
* @param {string} ifMatch
|
|
566
|
+
* @param {string} ifMatch ETag of the latest setting value. Required to prevent lost updates.
|
|
574
567
|
* @param {UpdateSettingKeyRequestRestDto} updateSettingKeyRequestRestDto
|
|
575
568
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
576
569
|
* @param {*} [options] Override http request option.
|
|
@@ -613,13 +606,12 @@ var SettingKeysApiFactory = function (configuration, basePath, axios) {
|
|
|
613
606
|
/**
|
|
614
607
|
* undefined **Required Permissions** \"tenant-management.settings.delete\"
|
|
615
608
|
* @param {string} code
|
|
616
|
-
* @param {string} ifMatch
|
|
617
609
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
618
610
|
* @param {*} [options] Override http request option.
|
|
619
611
|
* @throws {RequiredError}
|
|
620
612
|
*/
|
|
621
|
-
deleteSettingKey: function (code,
|
|
622
|
-
return localVarFp.deleteSettingKey(code,
|
|
613
|
+
deleteSettingKey: function (code, authorization, options) {
|
|
614
|
+
return localVarFp.deleteSettingKey(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
623
615
|
},
|
|
624
616
|
/**
|
|
625
617
|
* 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\"
|
|
@@ -668,7 +660,7 @@ var SettingKeysApiFactory = function (configuration, basePath, axios) {
|
|
|
668
660
|
* 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\"
|
|
669
661
|
* @summary Update the setting key
|
|
670
662
|
* @param {string} code
|
|
671
|
-
* @param {string} ifMatch
|
|
663
|
+
* @param {string} ifMatch ETag of the latest setting value. Required to prevent lost updates.
|
|
672
664
|
* @param {UpdateSettingKeyRequestRestDto} updateSettingKeyRequestRestDto
|
|
673
665
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
674
666
|
* @param {*} [options] Override http request option.
|
|
@@ -712,7 +704,7 @@ var SettingKeysApi = /** @class */ (function (_super) {
|
|
|
712
704
|
*/
|
|
713
705
|
SettingKeysApi.prototype.deleteSettingKey = function (requestParameters, options) {
|
|
714
706
|
var _this = this;
|
|
715
|
-
return (0, exports.SettingKeysApiFp)(this.configuration).deleteSettingKey(requestParameters.code, requestParameters.
|
|
707
|
+
return (0, exports.SettingKeysApiFp)(this.configuration).deleteSettingKey(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
716
708
|
};
|
|
717
709
|
/**
|
|
718
710
|
* 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
|