@emilgroup/setting-sdk-node 0.3.1-beta.23 → 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/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.23 --save
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.23
24
+ yarn add @emilgroup/setting-sdk-node@0.3.1-beta.24
25
25
  ```
26
26
 
27
27
  And then you can import ``.
@@ -90,20 +90,16 @@ export const SettingDefinitionsApiAxiosParamCreator = function (configuration?:
90
90
  /**
91
91
  * Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
92
92
  * @summary Delete the setting definition
93
- * @param {string} code
94
- * @param {any} settingDefinition Unique identifier for the object.
93
+ * @param {string} code Unique identifier for the object.
95
94
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
96
95
  * @param {*} [options] Override http request option.
97
96
  * @throws {RequiredError}
98
97
  */
99
- deleteSettingDefinition: async (code: string, settingDefinition: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
98
+ deleteSettingDefinition: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
100
99
  // verify required parameter 'code' is not null or undefined
101
100
  assertParamExists('deleteSettingDefinition', 'code', code)
102
- // verify required parameter 'settingDefinition' is not null or undefined
103
- assertParamExists('deleteSettingDefinition', 'settingDefinition', settingDefinition)
104
101
  const localVarPath = `/settingservice/v1/settings/definitions/{code}`
105
- .replace(`{${"code"}}`, encodeURIComponent(String(code)))
106
- .replace(`{${"setting definition"}}`, encodeURIComponent(String(settingDefinition)));
102
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
107
103
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
108
104
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
109
105
  let baseOptions;
@@ -282,14 +278,13 @@ export const SettingDefinitionsApiFp = function(configuration?: Configuration) {
282
278
  /**
283
279
  * Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
284
280
  * @summary Delete the setting definition
285
- * @param {string} code
286
- * @param {any} settingDefinition Unique identifier for the object.
281
+ * @param {string} code Unique identifier for the object.
287
282
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
288
283
  * @param {*} [options] Override http request option.
289
284
  * @throws {RequiredError}
290
285
  */
291
- async deleteSettingDefinition(code: string, settingDefinition: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteByCodeResponseClass>> {
292
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSettingDefinition(code, settingDefinition, authorization, options);
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);
293
288
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
294
289
  },
295
290
  /**
@@ -346,14 +341,13 @@ export const SettingDefinitionsApiFactory = function (configuration?: Configurat
346
341
  /**
347
342
  * Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
348
343
  * @summary Delete the setting definition
349
- * @param {string} code
350
- * @param {any} settingDefinition Unique identifier for the object.
344
+ * @param {string} code Unique identifier for the object.
351
345
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
352
346
  * @param {*} [options] Override http request option.
353
347
  * @throws {RequiredError}
354
348
  */
355
- deleteSettingDefinition(code: string, settingDefinition: any, authorization?: string, options?: any): AxiosPromise<DeleteByCodeResponseClass> {
356
- return localVarFp.deleteSettingDefinition(code, settingDefinition, authorization, options).then((request) => request(axios, basePath));
349
+ deleteSettingDefinition(code: string, authorization?: string, options?: any): AxiosPromise<DeleteByCodeResponseClass> {
350
+ return localVarFp.deleteSettingDefinition(code, authorization, options).then((request) => request(axios, basePath));
357
351
  },
358
352
  /**
359
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\"
@@ -414,19 +408,12 @@ export interface SettingDefinitionsApiCreateSettingDefinitionRequest {
414
408
  */
415
409
  export interface SettingDefinitionsApiDeleteSettingDefinitionRequest {
416
410
  /**
417
- *
411
+ * Unique identifier for the object.
418
412
  * @type {string}
419
413
  * @memberof SettingDefinitionsApiDeleteSettingDefinition
420
414
  */
421
415
  readonly code: string
422
416
 
423
- /**
424
- * Unique identifier for the object.
425
- * @type {any}
426
- * @memberof SettingDefinitionsApiDeleteSettingDefinition
427
- */
428
- readonly settingDefinition: any
429
-
430
417
  /**
431
418
  * Bearer Token: provided by the login endpoint under the name accessToken.
432
419
  * @type {string}
@@ -547,7 +534,7 @@ export class SettingDefinitionsApi extends BaseAPI {
547
534
  * @memberof SettingDefinitionsApi
548
535
  */
549
536
  public deleteSettingDefinition(requestParameters: SettingDefinitionsApiDeleteSettingDefinitionRequest, options?: AxiosRequestConfig) {
550
- return SettingDefinitionsApiFp(this.configuration).deleteSettingDefinition(requestParameters.code, requestParameters.settingDefinition, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
537
+ return SettingDefinitionsApiFp(this.configuration).deleteSettingDefinition(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
551
538
  }
552
539
 
553
540
  /**
@@ -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, ifMatch: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
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, ifMatch: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteByCodeResponseClass>> {
420
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSettingKey(code, ifMatch, authorization, options);
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, ifMatch: string, authorization?: string, options?: any): AxiosPromise<DeleteByCodeResponseClass> {
513
- return localVarFp.deleteSettingKey(code, ifMatch, authorization, options).then((request) => request(axios, basePath));
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.ifMatch, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
802
+ return SettingKeysApiFp(this.configuration).deleteSettingKey(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
819
803
  }
820
804
 
821
805
  /**
@@ -34,13 +34,12 @@ export declare const SettingDefinitionsApiAxiosParamCreator: (configuration?: Co
34
34
  /**
35
35
  * Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
36
36
  * @summary Delete the setting definition
37
- * @param {string} code
38
- * @param {any} settingDefinition Unique identifier for the object.
37
+ * @param {string} code Unique identifier for the object.
39
38
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
40
39
  * @param {*} [options] Override http request option.
41
40
  * @throws {RequiredError}
42
41
  */
43
- deleteSettingDefinition: (code: string, settingDefinition: any, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
42
+ deleteSettingDefinition: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
44
43
  /**
45
44
  * Retrieves the details of the setting definition that was previously created. Supply the unique setting definition code that was returned when you created it and Emil Api will return the corresponding setting definition information. **Required Permissions** \"tenant-management.settings.view\"
46
45
  * @summary Retrieve the setting definition
@@ -83,13 +82,12 @@ export declare const SettingDefinitionsApiFp: (configuration?: Configuration) =>
83
82
  /**
84
83
  * Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
85
84
  * @summary Delete the setting definition
86
- * @param {string} code
87
- * @param {any} settingDefinition Unique identifier for the object.
85
+ * @param {string} code Unique identifier for the object.
88
86
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
89
87
  * @param {*} [options] Override http request option.
90
88
  * @throws {RequiredError}
91
89
  */
92
- deleteSettingDefinition(code: string, settingDefinition: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteByCodeResponseClass>>;
90
+ deleteSettingDefinition(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteByCodeResponseClass>>;
93
91
  /**
94
92
  * Retrieves the details of the setting definition that was previously created. Supply the unique setting definition code that was returned when you created it and Emil Api will return the corresponding setting definition information. **Required Permissions** \"tenant-management.settings.view\"
95
93
  * @summary Retrieve the setting definition
@@ -132,13 +130,12 @@ export declare const SettingDefinitionsApiFactory: (configuration?: Configuratio
132
130
  /**
133
131
  * Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
134
132
  * @summary Delete the setting definition
135
- * @param {string} code
136
- * @param {any} settingDefinition Unique identifier for the object.
133
+ * @param {string} code Unique identifier for the object.
137
134
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
138
135
  * @param {*} [options] Override http request option.
139
136
  * @throws {RequiredError}
140
137
  */
141
- deleteSettingDefinition(code: string, settingDefinition: any, authorization?: string, options?: any): AxiosPromise<DeleteByCodeResponseClass>;
138
+ deleteSettingDefinition(code: string, authorization?: string, options?: any): AxiosPromise<DeleteByCodeResponseClass>;
142
139
  /**
143
140
  * Retrieves the details of the setting definition that was previously created. Supply the unique setting definition code that was returned when you created it and Emil Api will return the corresponding setting definition information. **Required Permissions** \"tenant-management.settings.view\"
144
141
  * @summary Retrieve the setting definition
@@ -190,17 +187,11 @@ export interface SettingDefinitionsApiCreateSettingDefinitionRequest {
190
187
  */
191
188
  export interface SettingDefinitionsApiDeleteSettingDefinitionRequest {
192
189
  /**
193
- *
190
+ * Unique identifier for the object.
194
191
  * @type {string}
195
192
  * @memberof SettingDefinitionsApiDeleteSettingDefinition
196
193
  */
197
194
  readonly code: string;
198
- /**
199
- * Unique identifier for the object.
200
- * @type {any}
201
- * @memberof SettingDefinitionsApiDeleteSettingDefinition
202
- */
203
- readonly settingDefinition: any;
204
195
  /**
205
196
  * Bearer Token: provided by the login endpoint under the name accessToken.
206
197
  * @type {string}
@@ -148,13 +148,12 @@ var SettingDefinitionsApiAxiosParamCreator = function (configuration) {
148
148
  /**
149
149
  * Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
150
150
  * @summary Delete the setting definition
151
- * @param {string} code
152
- * @param {any} settingDefinition Unique identifier for the object.
151
+ * @param {string} code Unique identifier for the object.
153
152
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
154
153
  * @param {*} [options] Override http request option.
155
154
  * @throws {RequiredError}
156
155
  */
157
- deleteSettingDefinition: function (code, settingDefinition, authorization, options) {
156
+ deleteSettingDefinition: function (code, authorization, options) {
158
157
  if (options === void 0) { options = {}; }
159
158
  return __awaiter(_this, void 0, void 0, function () {
160
159
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -163,11 +162,8 @@ var SettingDefinitionsApiAxiosParamCreator = function (configuration) {
163
162
  case 0:
164
163
  // verify required parameter 'code' is not null or undefined
165
164
  (0, common_1.assertParamExists)('deleteSettingDefinition', 'code', code);
166
- // verify required parameter 'settingDefinition' is not null or undefined
167
- (0, common_1.assertParamExists)('deleteSettingDefinition', 'settingDefinition', settingDefinition);
168
165
  localVarPath = "/settingservice/v1/settings/definitions/{code}"
169
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)))
170
- .replace("{".concat("setting definition", "}"), encodeURIComponent(String(settingDefinition)));
166
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
171
167
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
172
168
  if (configuration) {
173
169
  baseOptions = configuration.baseOptions;
@@ -351,18 +347,17 @@ var SettingDefinitionsApiFp = function (configuration) {
351
347
  /**
352
348
  * Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
353
349
  * @summary Delete the setting definition
354
- * @param {string} code
355
- * @param {any} settingDefinition Unique identifier for the object.
350
+ * @param {string} code Unique identifier for the object.
356
351
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
357
352
  * @param {*} [options] Override http request option.
358
353
  * @throws {RequiredError}
359
354
  */
360
- deleteSettingDefinition: function (code, settingDefinition, authorization, options) {
355
+ deleteSettingDefinition: function (code, authorization, options) {
361
356
  return __awaiter(this, void 0, void 0, function () {
362
357
  var localVarAxiosArgs;
363
358
  return __generator(this, function (_a) {
364
359
  switch (_a.label) {
365
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteSettingDefinition(code, settingDefinition, authorization, options)];
360
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteSettingDefinition(code, authorization, options)];
366
361
  case 1:
367
362
  localVarAxiosArgs = _a.sent();
368
363
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -442,14 +437,13 @@ var SettingDefinitionsApiFactory = function (configuration, basePath, axios) {
442
437
  /**
443
438
  * Delete a tenant setting definition and cascade soft-delete its versions, keys, and values. **Required Permissions** \"tenant-management.settings.delete\"
444
439
  * @summary Delete the setting definition
445
- * @param {string} code
446
- * @param {any} settingDefinition Unique identifier for the object.
440
+ * @param {string} code Unique identifier for the object.
447
441
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
448
442
  * @param {*} [options] Override http request option.
449
443
  * @throws {RequiredError}
450
444
  */
451
- deleteSettingDefinition: function (code, settingDefinition, authorization, options) {
452
- return localVarFp.deleteSettingDefinition(code, settingDefinition, authorization, options).then(function (request) { return request(axios, basePath); });
445
+ deleteSettingDefinition: function (code, authorization, options) {
446
+ return localVarFp.deleteSettingDefinition(code, authorization, options).then(function (request) { return request(axios, basePath); });
453
447
  },
454
448
  /**
455
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\"
@@ -515,7 +509,7 @@ var SettingDefinitionsApi = /** @class */ (function (_super) {
515
509
  */
516
510
  SettingDefinitionsApi.prototype.deleteSettingDefinition = function (requestParameters, options) {
517
511
  var _this = this;
518
- return (0, exports.SettingDefinitionsApiFp)(this.configuration).deleteSettingDefinition(requestParameters.code, requestParameters.settingDefinition, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
512
+ return (0, exports.SettingDefinitionsApiFp)(this.configuration).deleteSettingDefinition(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
519
513
  };
520
514
  /**
521
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\"
@@ -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, ifMatch: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
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, ifMatch: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteByCodeResponseClass>>;
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, ifMatch: string, authorization?: string, options?: any): AxiosPromise<DeleteByCodeResponseClass>;
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
  */
@@ -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, ifMatch, authorization, options) {
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, ifMatch, authorization, options) {
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, ifMatch, authorization, options)];
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, ifMatch, authorization, options) {
622
- return localVarFp.deleteSettingKey(code, ifMatch, authorization, options).then(function (request) { return request(axios, basePath); });
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.ifMatch, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/setting-sdk-node",
3
- "version": "0.3.1-beta.23",
3
+ "version": "0.3.1-beta.24",
4
4
  "description": "OpenAPI client for @emilgroup/setting-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [