@emilgroup/insurance-sdk 1.22.0 → 1.23.0

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.
Files changed (41) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/README.md +2 -2
  3. package/api/premium-formulas-api.ts +107 -0
  4. package/dist/api/premium-formulas-api.d.ts +57 -0
  5. package/dist/api/premium-formulas-api.js +93 -0
  6. package/dist/models/create-lead-policy-request-dto.d.ts +1 -1
  7. package/dist/models/create-lead-request-dto.d.ts +7 -7
  8. package/dist/models/create-premium-formula-request-dto.d.ts +12 -0
  9. package/dist/models/empty-response-class.d.ts +24 -0
  10. package/dist/models/empty-response-class.js +15 -0
  11. package/dist/models/grpc-patch-lead-request-dto.d.ts +1 -1
  12. package/dist/models/grpc-update-lead-request-dto.d.ts +7 -7
  13. package/dist/models/index.d.ts +2 -0
  14. package/dist/models/index.js +2 -0
  15. package/dist/models/patch-lead-request-dto.d.ts +1 -1
  16. package/dist/models/policy-object-dto.d.ts +1 -1
  17. package/dist/models/premium-formula-class.d.ts +12 -0
  18. package/dist/models/shared-create-lead-policy-request-dto.d.ts +1 -1
  19. package/dist/models/shared-lead-policy-object-dto.d.ts +1 -1
  20. package/dist/models/shared-update-premium-formula-request-dto.d.ts +12 -0
  21. package/dist/models/swap-premium-formulas-order-requestt-dto.d.ts +30 -0
  22. package/dist/models/swap-premium-formulas-order-requestt-dto.js +15 -0
  23. package/dist/models/update-lead-request-dto.d.ts +7 -7
  24. package/dist/models/update-premium-formula-request-dto.d.ts +12 -0
  25. package/models/create-lead-policy-request-dto.ts +1 -1
  26. package/models/create-lead-request-dto.ts +7 -7
  27. package/models/create-premium-formula-request-dto.ts +12 -0
  28. package/models/empty-response-class.ts +30 -0
  29. package/models/grpc-patch-lead-request-dto.ts +1 -1
  30. package/models/grpc-update-lead-request-dto.ts +7 -7
  31. package/models/index.ts +2 -0
  32. package/models/patch-lead-request-dto.ts +1 -1
  33. package/models/policy-object-dto.ts +1 -1
  34. package/models/premium-formula-class.ts +12 -0
  35. package/models/shared-create-lead-policy-request-dto.ts +1 -1
  36. package/models/shared-lead-policy-object-dto.ts +1 -1
  37. package/models/shared-update-premium-formula-request-dto.ts +12 -0
  38. package/models/swap-premium-formulas-order-requestt-dto.ts +36 -0
  39. package/models/update-lead-request-dto.ts +7 -7
  40. package/models/update-premium-formula-request-dto.ts +12 -0
  41. package/package.json +1 -1
@@ -49,6 +49,7 @@ models/create-product-response-class.ts
49
49
  models/csv-product-factor-dto.ts
50
50
  models/delete-request-dto.ts
51
51
  models/delete-response-class.ts
52
+ models/empty-response-class.ts
52
53
  models/get-insured-object-response-class.ts
53
54
  models/get-lead-response-class.ts
54
55
  models/get-lead-status-response-class.ts
@@ -126,6 +127,7 @@ models/store-product-factors-request-dto.ts
126
127
  models/store-product-factors-response-class.ts
127
128
  models/suspend-policy-request-dto.ts
128
129
  models/suspend-policy-response-class.ts
130
+ models/swap-premium-formulas-order-requestt-dto.ts
129
131
  models/terminate-policy-request-dto.ts
130
132
  models/terminate-policy-response-class.ts
131
133
  models/timeslice-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/insurance-sdk@1.22.0 --save
20
+ npm install @emilgroup/insurance-sdk@1.23.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/insurance-sdk@1.22.0
24
+ yarn add @emilgroup/insurance-sdk@1.23.0
25
25
  ```
26
26
 
27
27
  And then you can import `PoliciesApi`.
@@ -27,10 +27,14 @@ import { CreatePremiumFormulaResponseClass } from '../models';
27
27
  // @ts-ignore
28
28
  import { DeleteResponseClass } from '../models';
29
29
  // @ts-ignore
30
+ import { EmptyResponseClass } from '../models';
31
+ // @ts-ignore
30
32
  import { GetPremiumFormulaResponseClass } from '../models';
31
33
  // @ts-ignore
32
34
  import { ListPremiumFormulasResponseClass } from '../models';
33
35
  // @ts-ignore
36
+ import { SwapPremiumFormulasOrderRequesttDto } from '../models';
37
+ // @ts-ignore
34
38
  import { UpdatePremiumFormulaRequestDto } from '../models';
35
39
  // @ts-ignore
36
40
  import { UpdatePremiumFormulaResponseClass } from '../models';
@@ -248,6 +252,53 @@ export const PremiumFormulasApiAxiosParamCreator = function (configuration?: Con
248
252
  options: localVarRequestOptions,
249
253
  };
250
254
  },
255
+ /**
256
+ * Swaps premium formulas order.
257
+ * @summary Swaps premium formulas order
258
+ * @param {SwapPremiumFormulasOrderRequesttDto} swapPremiumFormulasOrderRequesttDto
259
+ * @param {string} [authorization] Bearer Token
260
+ * @param {*} [options] Override http request option.
261
+ * @throws {RequiredError}
262
+ */
263
+ swapPremiumFormulasOrder: async (swapPremiumFormulasOrderRequesttDto: SwapPremiumFormulasOrderRequesttDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
264
+ // verify required parameter 'swapPremiumFormulasOrderRequesttDto' is not null or undefined
265
+ assertParamExists('swapPremiumFormulasOrder', 'swapPremiumFormulasOrderRequesttDto', swapPremiumFormulasOrderRequesttDto)
266
+ const localVarPath = `/insuranceservice/v1/premium-formulas/reorder`;
267
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
268
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
269
+ let baseOptions;
270
+ let baseAccessToken;
271
+ if (configuration) {
272
+ baseOptions = configuration.baseOptions;
273
+ baseAccessToken = configuration.accessToken;
274
+ }
275
+
276
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
277
+ const localVarHeaderParameter = {} as any;
278
+ const localVarQueryParameter = {} as any;
279
+
280
+ // authentication bearer required
281
+ // http bearer authentication required
282
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
283
+
284
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
285
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
286
+ }
287
+
288
+
289
+
290
+ localVarHeaderParameter['Content-Type'] = 'application/json';
291
+
292
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
293
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
294
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
295
+ localVarRequestOptions.data = serializeDataIfNeeded(swapPremiumFormulasOrderRequesttDto, localVarRequestOptions, configuration)
296
+
297
+ return {
298
+ url: toPathString(localVarUrlObj),
299
+ options: localVarRequestOptions,
300
+ };
301
+ },
251
302
  /**
252
303
  * Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
253
304
  * @summary Update the premium formula
@@ -362,6 +413,18 @@ export const PremiumFormulasApiFp = function(configuration?: Configuration) {
362
413
  const localVarAxiosArgs = await localVarAxiosParamCreator.listPremiumFormulas(authorization, pageSize, pageToken, filter, search, order, expand, options);
363
414
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
364
415
  },
416
+ /**
417
+ * Swaps premium formulas order.
418
+ * @summary Swaps premium formulas order
419
+ * @param {SwapPremiumFormulasOrderRequesttDto} swapPremiumFormulasOrderRequesttDto
420
+ * @param {string} [authorization] Bearer Token
421
+ * @param {*} [options] Override http request option.
422
+ * @throws {RequiredError}
423
+ */
424
+ async swapPremiumFormulasOrder(swapPremiumFormulasOrderRequesttDto: SwapPremiumFormulasOrderRequesttDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmptyResponseClass>> {
425
+ const localVarAxiosArgs = await localVarAxiosParamCreator.swapPremiumFormulasOrder(swapPremiumFormulasOrderRequesttDto, authorization, options);
426
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
427
+ },
365
428
  /**
366
429
  * Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
367
430
  * @summary Update the premium formula
@@ -434,6 +497,17 @@ export const PremiumFormulasApiFactory = function (configuration?: Configuration
434
497
  listPremiumFormulas(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListPremiumFormulasResponseClass> {
435
498
  return localVarFp.listPremiumFormulas(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
436
499
  },
500
+ /**
501
+ * Swaps premium formulas order.
502
+ * @summary Swaps premium formulas order
503
+ * @param {SwapPremiumFormulasOrderRequesttDto} swapPremiumFormulasOrderRequesttDto
504
+ * @param {string} [authorization] Bearer Token
505
+ * @param {*} [options] Override http request option.
506
+ * @throws {RequiredError}
507
+ */
508
+ swapPremiumFormulasOrder(swapPremiumFormulasOrderRequesttDto: SwapPremiumFormulasOrderRequesttDto, authorization?: string, options?: any): AxiosPromise<EmptyResponseClass> {
509
+ return localVarFp.swapPremiumFormulasOrder(swapPremiumFormulasOrderRequesttDto, authorization, options).then((request) => request(axios, basePath));
510
+ },
437
511
  /**
438
512
  * Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
439
513
  * @summary Update the premium formula
@@ -568,6 +642,27 @@ export interface PremiumFormulasApiListPremiumFormulasRequest {
568
642
  readonly expand?: string
569
643
  }
570
644
 
645
+ /**
646
+ * Request parameters for swapPremiumFormulasOrder operation in PremiumFormulasApi.
647
+ * @export
648
+ * @interface PremiumFormulasApiSwapPremiumFormulasOrderRequest
649
+ */
650
+ export interface PremiumFormulasApiSwapPremiumFormulasOrderRequest {
651
+ /**
652
+ *
653
+ * @type {SwapPremiumFormulasOrderRequesttDto}
654
+ * @memberof PremiumFormulasApiSwapPremiumFormulasOrder
655
+ */
656
+ readonly swapPremiumFormulasOrderRequesttDto: SwapPremiumFormulasOrderRequesttDto
657
+
658
+ /**
659
+ * Bearer Token
660
+ * @type {string}
661
+ * @memberof PremiumFormulasApiSwapPremiumFormulasOrder
662
+ */
663
+ readonly authorization?: string
664
+ }
665
+
571
666
  /**
572
667
  * Request parameters for updatePremiumFormula operation in PremiumFormulasApi.
573
668
  * @export
@@ -651,6 +746,18 @@ export class PremiumFormulasApi extends BaseAPI {
651
746
  return PremiumFormulasApiFp(this.configuration).listPremiumFormulas(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
652
747
  }
653
748
 
749
+ /**
750
+ * Swaps premium formulas order.
751
+ * @summary Swaps premium formulas order
752
+ * @param {PremiumFormulasApiSwapPremiumFormulasOrderRequest} requestParameters Request parameters.
753
+ * @param {*} [options] Override http request option.
754
+ * @throws {RequiredError}
755
+ * @memberof PremiumFormulasApi
756
+ */
757
+ public swapPremiumFormulasOrder(requestParameters: PremiumFormulasApiSwapPremiumFormulasOrderRequest, options?: AxiosRequestConfig) {
758
+ return PremiumFormulasApiFp(this.configuration).swapPremiumFormulasOrder(requestParameters.swapPremiumFormulasOrderRequesttDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
759
+ }
760
+
654
761
  /**
655
762
  * Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
656
763
  * @summary Update the premium formula
@@ -15,8 +15,10 @@ import { RequestArgs, BaseAPI } from '../base';
15
15
  import { CreatePremiumFormulaRequestDto } from '../models';
16
16
  import { CreatePremiumFormulaResponseClass } from '../models';
17
17
  import { DeleteResponseClass } from '../models';
18
+ import { EmptyResponseClass } from '../models';
18
19
  import { GetPremiumFormulaResponseClass } from '../models';
19
20
  import { ListPremiumFormulasResponseClass } from '../models';
21
+ import { SwapPremiumFormulasOrderRequesttDto } from '../models';
20
22
  import { UpdatePremiumFormulaRequestDto } from '../models';
21
23
  import { UpdatePremiumFormulaResponseClass } from '../models';
22
24
  /**
@@ -65,6 +67,15 @@ export declare const PremiumFormulasApiAxiosParamCreator: (configuration?: Confi
65
67
  * @throws {RequiredError}
66
68
  */
67
69
  listPremiumFormulas: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
70
+ /**
71
+ * Swaps premium formulas order.
72
+ * @summary Swaps premium formulas order
73
+ * @param {SwapPremiumFormulasOrderRequesttDto} swapPremiumFormulasOrderRequesttDto
74
+ * @param {string} [authorization] Bearer Token
75
+ * @param {*} [options] Override http request option.
76
+ * @throws {RequiredError}
77
+ */
78
+ swapPremiumFormulasOrder: (swapPremiumFormulasOrderRequesttDto: SwapPremiumFormulasOrderRequesttDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
68
79
  /**
69
80
  * Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
70
81
  * @summary Update the premium formula
@@ -122,6 +133,15 @@ export declare const PremiumFormulasApiFp: (configuration?: Configuration) => {
122
133
  * @throws {RequiredError}
123
134
  */
124
135
  listPremiumFormulas(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPremiumFormulasResponseClass>>;
136
+ /**
137
+ * Swaps premium formulas order.
138
+ * @summary Swaps premium formulas order
139
+ * @param {SwapPremiumFormulasOrderRequesttDto} swapPremiumFormulasOrderRequesttDto
140
+ * @param {string} [authorization] Bearer Token
141
+ * @param {*} [options] Override http request option.
142
+ * @throws {RequiredError}
143
+ */
144
+ swapPremiumFormulasOrder(swapPremiumFormulasOrderRequesttDto: SwapPremiumFormulasOrderRequesttDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmptyResponseClass>>;
125
145
  /**
126
146
  * Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
127
147
  * @summary Update the premium formula
@@ -179,6 +199,15 @@ export declare const PremiumFormulasApiFactory: (configuration?: Configuration,
179
199
  * @throws {RequiredError}
180
200
  */
181
201
  listPremiumFormulas(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListPremiumFormulasResponseClass>;
202
+ /**
203
+ * Swaps premium formulas order.
204
+ * @summary Swaps premium formulas order
205
+ * @param {SwapPremiumFormulasOrderRequesttDto} swapPremiumFormulasOrderRequesttDto
206
+ * @param {string} [authorization] Bearer Token
207
+ * @param {*} [options] Override http request option.
208
+ * @throws {RequiredError}
209
+ */
210
+ swapPremiumFormulasOrder(swapPremiumFormulasOrderRequesttDto: SwapPremiumFormulasOrderRequesttDto, authorization?: string, options?: any): AxiosPromise<EmptyResponseClass>;
182
211
  /**
183
212
  * Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
184
213
  * @summary Update the premium formula
@@ -296,6 +325,25 @@ export interface PremiumFormulasApiListPremiumFormulasRequest {
296
325
  */
297
326
  readonly expand?: string;
298
327
  }
328
+ /**
329
+ * Request parameters for swapPremiumFormulasOrder operation in PremiumFormulasApi.
330
+ * @export
331
+ * @interface PremiumFormulasApiSwapPremiumFormulasOrderRequest
332
+ */
333
+ export interface PremiumFormulasApiSwapPremiumFormulasOrderRequest {
334
+ /**
335
+ *
336
+ * @type {SwapPremiumFormulasOrderRequesttDto}
337
+ * @memberof PremiumFormulasApiSwapPremiumFormulasOrder
338
+ */
339
+ readonly swapPremiumFormulasOrderRequesttDto: SwapPremiumFormulasOrderRequesttDto;
340
+ /**
341
+ * Bearer Token
342
+ * @type {string}
343
+ * @memberof PremiumFormulasApiSwapPremiumFormulasOrder
344
+ */
345
+ readonly authorization?: string;
346
+ }
299
347
  /**
300
348
  * Request parameters for updatePremiumFormula operation in PremiumFormulasApi.
301
349
  * @export
@@ -364,6 +412,15 @@ export declare class PremiumFormulasApi extends BaseAPI {
364
412
  * @memberof PremiumFormulasApi
365
413
  */
366
414
  listPremiumFormulas(requestParameters?: PremiumFormulasApiListPremiumFormulasRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPremiumFormulasResponseClass, any>>;
415
+ /**
416
+ * Swaps premium formulas order.
417
+ * @summary Swaps premium formulas order
418
+ * @param {PremiumFormulasApiSwapPremiumFormulasOrderRequest} requestParameters Request parameters.
419
+ * @param {*} [options] Override http request option.
420
+ * @throws {RequiredError}
421
+ * @memberof PremiumFormulasApi
422
+ */
423
+ swapPremiumFormulasOrder(requestParameters: PremiumFormulasApiSwapPremiumFormulasOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<EmptyResponseClass, any>>;
367
424
  /**
368
425
  * Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
369
426
  * @summary Update the premium formula
@@ -305,6 +305,55 @@ var PremiumFormulasApiAxiosParamCreator = function (configuration) {
305
305
  });
306
306
  });
307
307
  },
308
+ /**
309
+ * Swaps premium formulas order.
310
+ * @summary Swaps premium formulas order
311
+ * @param {SwapPremiumFormulasOrderRequesttDto} swapPremiumFormulasOrderRequesttDto
312
+ * @param {string} [authorization] Bearer Token
313
+ * @param {*} [options] Override http request option.
314
+ * @throws {RequiredError}
315
+ */
316
+ swapPremiumFormulasOrder: function (swapPremiumFormulasOrderRequesttDto, authorization, options) {
317
+ if (options === void 0) { options = {}; }
318
+ return __awaiter(_this, void 0, void 0, function () {
319
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
320
+ return __generator(this, function (_a) {
321
+ switch (_a.label) {
322
+ case 0:
323
+ // verify required parameter 'swapPremiumFormulasOrderRequesttDto' is not null or undefined
324
+ (0, common_1.assertParamExists)('swapPremiumFormulasOrder', 'swapPremiumFormulasOrderRequesttDto', swapPremiumFormulasOrderRequesttDto);
325
+ localVarPath = "/insuranceservice/v1/premium-formulas/reorder";
326
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
327
+ if (configuration) {
328
+ baseOptions = configuration.baseOptions;
329
+ baseAccessToken = configuration.accessToken;
330
+ }
331
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
332
+ localVarHeaderParameter = {};
333
+ localVarQueryParameter = {};
334
+ // authentication bearer required
335
+ // http bearer authentication required
336
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
337
+ case 1:
338
+ // authentication bearer required
339
+ // http bearer authentication required
340
+ _a.sent();
341
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
342
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
343
+ }
344
+ localVarHeaderParameter['Content-Type'] = 'application/json';
345
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
346
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
347
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
348
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(swapPremiumFormulasOrderRequesttDto, localVarRequestOptions, configuration);
349
+ return [2 /*return*/, {
350
+ url: (0, common_1.toPathString)(localVarUrlObj),
351
+ options: localVarRequestOptions,
352
+ }];
353
+ }
354
+ });
355
+ });
356
+ },
308
357
  /**
309
358
  * Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
310
359
  * @summary Update the premium formula
@@ -457,6 +506,27 @@ var PremiumFormulasApiFp = function (configuration) {
457
506
  });
458
507
  });
459
508
  },
509
+ /**
510
+ * Swaps premium formulas order.
511
+ * @summary Swaps premium formulas order
512
+ * @param {SwapPremiumFormulasOrderRequesttDto} swapPremiumFormulasOrderRequesttDto
513
+ * @param {string} [authorization] Bearer Token
514
+ * @param {*} [options] Override http request option.
515
+ * @throws {RequiredError}
516
+ */
517
+ swapPremiumFormulasOrder: function (swapPremiumFormulasOrderRequesttDto, authorization, options) {
518
+ return __awaiter(this, void 0, void 0, function () {
519
+ var localVarAxiosArgs;
520
+ return __generator(this, function (_a) {
521
+ switch (_a.label) {
522
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.swapPremiumFormulasOrder(swapPremiumFormulasOrderRequesttDto, authorization, options)];
523
+ case 1:
524
+ localVarAxiosArgs = _a.sent();
525
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
526
+ }
527
+ });
528
+ });
529
+ },
460
530
  /**
461
531
  * Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
462
532
  * @summary Update the premium formula
@@ -538,6 +608,17 @@ var PremiumFormulasApiFactory = function (configuration, basePath, axios) {
538
608
  listPremiumFormulas: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
539
609
  return localVarFp.listPremiumFormulas(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
540
610
  },
611
+ /**
612
+ * Swaps premium formulas order.
613
+ * @summary Swaps premium formulas order
614
+ * @param {SwapPremiumFormulasOrderRequesttDto} swapPremiumFormulasOrderRequesttDto
615
+ * @param {string} [authorization] Bearer Token
616
+ * @param {*} [options] Override http request option.
617
+ * @throws {RequiredError}
618
+ */
619
+ swapPremiumFormulasOrder: function (swapPremiumFormulasOrderRequesttDto, authorization, options) {
620
+ return localVarFp.swapPremiumFormulasOrder(swapPremiumFormulasOrderRequesttDto, authorization, options).then(function (request) { return request(axios, basePath); });
621
+ },
541
622
  /**
542
623
  * Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
543
624
  * @summary Update the premium formula
@@ -613,6 +694,18 @@ var PremiumFormulasApi = /** @class */ (function (_super) {
613
694
  if (requestParameters === void 0) { requestParameters = {}; }
614
695
  return (0, exports.PremiumFormulasApiFp)(this.configuration).listPremiumFormulas(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
615
696
  };
697
+ /**
698
+ * Swaps premium formulas order.
699
+ * @summary Swaps premium formulas order
700
+ * @param {PremiumFormulasApiSwapPremiumFormulasOrderRequest} requestParameters Request parameters.
701
+ * @param {*} [options] Override http request option.
702
+ * @throws {RequiredError}
703
+ * @memberof PremiumFormulasApi
704
+ */
705
+ PremiumFormulasApi.prototype.swapPremiumFormulasOrder = function (requestParameters, options) {
706
+ var _this = this;
707
+ return (0, exports.PremiumFormulasApiFp)(this.configuration).swapPremiumFormulasOrder(requestParameters.swapPremiumFormulasOrderRequesttDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
708
+ };
616
709
  /**
617
710
  * Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
618
711
  * @summary Update the premium formula
@@ -42,7 +42,7 @@ export interface CreateLeadPolicyRequestDto {
42
42
  */
43
43
  'policyObjects'?: Array<SharedLeadPolicyObjectDto>;
44
44
  /**
45
- * Premium Override is utilized to override the premium calculation. The premium formulas will be disregarded when this object is present. The premium override content will be validated if the \'validate\' flag is set to true.
45
+ * Premium Override is utilized to override the premium calculation. The premium formulas will be disregarded when this object is present. The premium override content will be validated if the \'validate\' flag is set to true.
46
46
  * @type {PremiumOverrideRequestDto}
47
47
  * @memberof CreateLeadPolicyRequestDto
48
48
  */
@@ -34,7 +34,7 @@ export interface CreateLeadRequestDto {
34
34
  */
35
35
  'productVersionId'?: number;
36
36
  /**
37
- * The account code is used in cases where the account has been created before the lead. The create lead request should include either the \'accountCode\' or \'account\'. The account code will be validated if the \'validate\' flag is set to true.
37
+ * The account code is used in cases where the account has been created before the lead. The create lead request should include either the \'accountCode\' or \'account\'. The account code will be validated if the \'validate\' flag is set to true.
38
38
  * @type {string}
39
39
  * @memberof CreateLeadRequestDto
40
40
  */
@@ -52,31 +52,31 @@ export interface CreateLeadRequestDto {
52
52
  */
53
53
  'policy': SharedCreateLeadPolicyRequestDto;
54
54
  /**
55
- * Bank account details, to be used for direct debit payments, the created bank account will be attached to the lead for later use, such as paying claims. The bank account content will be validated if the \'validate\' flag is set to true.
55
+ * Bank account details, to be used for direct debit payments, the created bank account will be attached to the lead for later use, such as paying claims. The bank account content will be validated if the \'validate\' flag is set to true.
56
56
  * @type {CreateBankAccountRequestDto}
57
57
  * @memberof CreateLeadRequestDto
58
58
  */
59
59
  'bankAccount'?: CreateBankAccountRequestDto;
60
60
  /**
61
- * Optional custom data for the lead. This field is useful for edge cases where the lead requires additional data for the risk carrier, such as creating an application in the risk carrier platform or performing a premium calculation. The custom data should include three main entities: \'data\', \'provider\', and \'productCode\'. The \'data\' entity contains information used in the risk carrier platform, the \'provider\' field contains the name of the provider (usually the risk carrier\'s name), the provider must be supported in EMIL, The \'productCode\' field contains the product code in EMIL
61
+ * Optional custom data for the lead. This field is useful for edge cases where the lead requires additional data for the risk carrier, such as creating an application in the risk carrier platform or performing a premium calculation. The custom data should include three main entities: \'data\', \'provider\', and \'productCode\'. The \'data\' entity contains information used in the risk carrier platform, the \'provider\' field contains the name of the provider (usually the risk carrier\'s name), the provider must be supported in EMIL, The \'productCode\' field contains the product code in EMIL
62
62
  * @type {object}
63
63
  * @memberof CreateLeadRequestDto
64
64
  */
65
65
  'customData'?: object;
66
66
  /**
67
- * Used to pass pre-uploaded documents to the lead. By providing the codes of the uploaded documents, they will be attached to the lead. The uploaded document content will be validated if the \'validate\' flag is set to true.
67
+ * Used to pass pre-uploaded documents to the lead. By providing the codes of the uploaded documents, they will be attached to the lead. The uploaded document content will be validated if the \'validate\' flag is set to true.
68
68
  * @type {UploadedDocumentDto}
69
69
  * @memberof CreateLeadRequestDto
70
70
  */
71
71
  'uploadedDocument'?: UploadedDocumentDto;
72
72
  /**
73
- * Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
73
+ * Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
74
74
  * @type {string}
75
75
  * @memberof CreateLeadRequestDto
76
76
  */
77
77
  'status'?: string;
78
78
  /**
79
- * Premium Override is utilized to override the premium calculation. The premium formulas will be disregarded when this object is present. The premium override content will be validated if the \'validate\' flag is set to true.
79
+ * Premium Override is utilized to override the premium calculation. The premium formulas will be disregarded when this object is present. The premium override content will be validated if the \'validate\' flag is set to true.
80
80
  * @type {Array<PremiumOverrideRequestDto>}
81
81
  * @memberof CreateLeadRequestDto
82
82
  */
@@ -88,7 +88,7 @@ export interface CreateLeadRequestDto {
88
88
  */
89
89
  'paymentMethod'?: CreatePaymentMethodRequestDto;
90
90
  /**
91
- * The validation indicator, with a default value of true, serves as a toggle. When set to false, it allows the bypassing of validation—a useful option for saving leads for later processing. This feature provides flexibility by enabling users to choose whether to enforce validation checks during the current stage or defer them for a subsequent time.
91
+ * The validation indicator, with a default value of true, serves as a toggle. When set to false, it allows the bypassing of validation—a useful option for saving leads for later processing. This feature provides flexibility by enabling users to choose whether to enforce validation checks during the current stage or defer them for a subsequent time.
92
92
  * @type {boolean}
93
93
  * @memberof CreateLeadRequestDto
94
94
  */
@@ -63,6 +63,18 @@ export interface CreatePremiumFormulaRequestDto {
63
63
  * @memberof CreatePremiumFormulaRequestDto
64
64
  */
65
65
  'visibility'?: CreatePremiumFormulaRequestDtoVisibilityEnum;
66
+ /**
67
+ * Name of the variable this Premium item value is referenced by in the other items formulas.
68
+ * @type {string}
69
+ * @memberof CreatePremiumFormulaRequestDto
70
+ */
71
+ 'variableName'?: string;
72
+ /**
73
+ * order index for the Premium item, used to define the order the items are calculated in.
74
+ * @type {number}
75
+ * @memberof CreatePremiumFormulaRequestDto
76
+ */
77
+ 'order': number;
66
78
  }
67
79
  export declare const CreatePremiumFormulaRequestDtoTypeEnum: {
68
80
  readonly Time: "time";
@@ -0,0 +1,24 @@
1
+ /**
2
+ * EMIL InsuranceService
3
+ * The EMIL InsuranceService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface EmptyResponseClass
16
+ */
17
+ export interface EmptyResponseClass {
18
+ /**
19
+ *
20
+ * @type {object}
21
+ * @memberof EmptyResponseClass
22
+ */
23
+ 'response': object;
24
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL InsuranceService
6
+ * The EMIL InsuranceService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -40,7 +40,7 @@ export interface GrpcPatchLeadRequestDto {
40
40
  */
41
41
  'policy'?: CreateLeadPolicyRequestDto;
42
42
  /**
43
- * Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
43
+ * Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
44
44
  * @type {string}
45
45
  * @memberof GrpcPatchLeadRequestDto
46
46
  */
@@ -40,37 +40,37 @@ export interface GrpcUpdateLeadRequestDto {
40
40
  */
41
41
  'policy': CreateLeadPolicyRequestDto;
42
42
  /**
43
- * Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
43
+ * Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
44
44
  * @type {string}
45
45
  * @memberof GrpcUpdateLeadRequestDto
46
46
  */
47
47
  'status': string;
48
48
  /**
49
- * Bank account details, to be used for direct debit payments, the created bank account will be attached to the lead for later use, such as paying claims. The bank account content will be validated if the \'validate\' flag is set to true.
49
+ * Bank account details, to be used for direct debit payments, the created bank account will be attached to the lead for later use, such as paying claims. The bank account content will be validated if the \'validate\' flag is set to true.
50
50
  * @type {CreateBankAccountRequestDto}
51
51
  * @memberof GrpcUpdateLeadRequestDto
52
52
  */
53
53
  'bankAccount'?: CreateBankAccountRequestDto;
54
54
  /**
55
- * Optional custom data for the lead. This field is useful for edge cases where the lead requires additional data for the risk carrier, such as creating an application in the risk carrier platform or performing a premium calculation. The custom data should include three main entities: \'data\', \'provider\', and \'productCode\'. The \'data\' entity contains information used in the risk carrier platform, the \'provider\' field contains the name of the provider (usually the risk carrier\'s name), the provider must be supported in EMIL, The \'productCode\' field contains the product code in EMIL
55
+ * Optional custom data for the lead. This field is useful for edge cases where the lead requires additional data for the risk carrier, such as creating an application in the risk carrier platform or performing a premium calculation. The custom data should include three main entities: \'data\', \'provider\', and \'productCode\'. The \'data\' entity contains information used in the risk carrier platform, the \'provider\' field contains the name of the provider (usually the risk carrier\'s name), the provider must be supported in EMIL, The \'productCode\' field contains the product code in EMIL
56
56
  * @type {object}
57
57
  * @memberof GrpcUpdateLeadRequestDto
58
58
  */
59
59
  'customData'?: object;
60
60
  /**
61
- * Used to pass pre-uploaded documents to the lead. By providing the codes of the uploaded documents, they will be attached to the lead. The uploaded document content will be validated if the \'validate\' flag is set to true.
61
+ * Used to pass pre-uploaded documents to the lead. By providing the codes of the uploaded documents, they will be attached to the lead. The uploaded document content will be validated if the \'validate\' flag is set to true.
62
62
  * @type {UploadedDocumentDto}
63
63
  * @memberof GrpcUpdateLeadRequestDto
64
64
  */
65
65
  'uploadedDocument'?: UploadedDocumentDto;
66
66
  /**
67
- * Premium Override is utilized to override the premium calculation. The premium formulas will be disregarded when this object is present. The premium override content will be validated if the \'validate\' flag is set to true.
67
+ * Premium Override is utilized to override the premium calculation. The premium formulas will be disregarded when this object is present. The premium override content will be validated if the \'validate\' flag is set to true.
68
68
  * @type {Array<PremiumOverrideRequestDto>}
69
69
  * @memberof GrpcUpdateLeadRequestDto
70
70
  */
71
71
  'premiumOverride'?: Array<PremiumOverrideRequestDto>;
72
72
  /**
73
- * The account code is used in cases where the account has been created before the lead. The create lead request should include either the \'accountCode\' or \'account\'. The account code will be validated if the \'validate\' flag is set to true.
73
+ * The account code is used in cases where the account has been created before the lead. The create lead request should include either the \'accountCode\' or \'account\'. The account code will be validated if the \'validate\' flag is set to true.
74
74
  * @type {string}
75
75
  * @memberof GrpcUpdateLeadRequestDto
76
76
  */
@@ -82,7 +82,7 @@ export interface GrpcUpdateLeadRequestDto {
82
82
  */
83
83
  'paymentMethod'?: CreatePaymentMethodRequestDto;
84
84
  /**
85
- * The validation indicator, with a default value of true, serves as a toggle. When set to false, it allows the bypassing of validation—a useful option for saving leads for later processing. This feature provides flexibility by enabling users to choose whether to enforce validation checks during the current stage or defer them for a subsequent time.
85
+ * The validation indicator, with a default value of true, serves as a toggle. When set to false, it allows the bypassing of validation—a useful option for saving leads for later processing. This feature provides flexibility by enabling users to choose whether to enforce validation checks during the current stage or defer them for a subsequent time.
86
86
  * @type {boolean}
87
87
  * @memberof GrpcUpdateLeadRequestDto
88
88
  */
@@ -27,6 +27,7 @@ export * from './create-product-response-class';
27
27
  export * from './csv-product-factor-dto';
28
28
  export * from './delete-request-dto';
29
29
  export * from './delete-response-class';
30
+ export * from './empty-response-class';
30
31
  export * from './get-insured-object-response-class';
31
32
  export * from './get-lead-response-class';
32
33
  export * from './get-lead-status-response-class';
@@ -103,6 +104,7 @@ export * from './store-product-factors-request-dto';
103
104
  export * from './store-product-factors-response-class';
104
105
  export * from './suspend-policy-request-dto';
105
106
  export * from './suspend-policy-response-class';
107
+ export * from './swap-premium-formulas-order-requestt-dto';
106
108
  export * from './terminate-policy-request-dto';
107
109
  export * from './terminate-policy-response-class';
108
110
  export * from './timeslice-class';
@@ -43,6 +43,7 @@ __exportStar(require("./create-product-response-class"), exports);
43
43
  __exportStar(require("./csv-product-factor-dto"), exports);
44
44
  __exportStar(require("./delete-request-dto"), exports);
45
45
  __exportStar(require("./delete-response-class"), exports);
46
+ __exportStar(require("./empty-response-class"), exports);
46
47
  __exportStar(require("./get-insured-object-response-class"), exports);
47
48
  __exportStar(require("./get-lead-response-class"), exports);
48
49
  __exportStar(require("./get-lead-status-response-class"), exports);
@@ -119,6 +120,7 @@ __exportStar(require("./store-product-factors-request-dto"), exports);
119
120
  __exportStar(require("./store-product-factors-response-class"), exports);
120
121
  __exportStar(require("./suspend-policy-request-dto"), exports);
121
122
  __exportStar(require("./suspend-policy-response-class"), exports);
123
+ __exportStar(require("./swap-premium-formulas-order-requestt-dto"), exports);
122
124
  __exportStar(require("./terminate-policy-request-dto"), exports);
123
125
  __exportStar(require("./terminate-policy-response-class"), exports);
124
126
  __exportStar(require("./timeslice-class"), exports);
@@ -40,7 +40,7 @@ export interface PatchLeadRequestDto {
40
40
  */
41
41
  'policy'?: CreateLeadPolicyRequestDto;
42
42
  /**
43
- * Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
43
+ * Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
44
44
  * @type {string}
45
45
  * @memberof PatchLeadRequestDto
46
46
  */