@emilgroup/insurance-sdk 1.28.0 → 1.30.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 (32) hide show
  1. package/.openapi-generator/FILES +1 -1
  2. package/README.md +2 -2
  3. package/api/leads-api.ts +104 -3
  4. package/dist/api/leads-api.d.ts +59 -4
  5. package/dist/api/leads-api.js +92 -0
  6. package/dist/models/calculate-product-fields-request-dto.d.ts +31 -0
  7. package/dist/models/create-named-range-request-dto.d.ts +6 -0
  8. package/dist/models/create-product-field-request-dto.d.ts +6 -0
  9. package/dist/models/index.d.ts +1 -1
  10. package/dist/models/index.js +1 -1
  11. package/dist/models/named-range-class.d.ts +6 -0
  12. package/dist/models/product-field-class.d.ts +6 -0
  13. package/dist/models/shared-product-field-class.d.ts +6 -0
  14. package/dist/models/shared-update-named-range-request-dto.d.ts +6 -0
  15. package/dist/models/update-named-range-request-dto.d.ts +6 -0
  16. package/dist/models/update-policy-request-dto.d.ts +6 -0
  17. package/dist/models/update-product-field-request-dto.d.ts +6 -0
  18. package/models/calculate-product-fields-request-dto.ts +37 -0
  19. package/models/create-named-range-request-dto.ts +6 -0
  20. package/models/create-product-field-request-dto.ts +6 -0
  21. package/models/index.ts +1 -1
  22. package/models/named-range-class.ts +6 -0
  23. package/models/product-field-class.ts +6 -0
  24. package/models/shared-product-field-class.ts +6 -0
  25. package/models/shared-update-named-range-request-dto.ts +6 -0
  26. package/models/update-named-range-request-dto.ts +6 -0
  27. package/models/update-policy-request-dto.ts +6 -0
  28. package/models/update-product-field-request-dto.ts +6 -0
  29. package/package.json +1 -1
  30. package/dist/models/create-lead-sync-response-class.d.ts +0 -24
  31. package/models/create-lead-sync-response-class.ts +0 -30
  32. /package/dist/models/{create-lead-sync-response-class.js → calculate-product-fields-request-dto.js} +0 -0
@@ -24,6 +24,7 @@ models/activate-policy-request-dto.ts
24
24
  models/activate-policy-response-class.ts
25
25
  models/calculate-custom-premium-request-dto.ts
26
26
  models/calculate-premium-request-dto.ts
27
+ models/calculate-product-fields-request-dto.ts
27
28
  models/clone-product-version-request-dto.ts
28
29
  models/create-account-request-dto.ts
29
30
  models/create-bank-account-request-dto.ts
@@ -37,7 +38,6 @@ models/create-lead-request-dto.ts
37
38
  models/create-lead-response-class.ts
38
39
  models/create-lead-status-request-dto.ts
39
40
  models/create-lead-status-response-class.ts
40
- models/create-lead-sync-response-class.ts
41
41
  models/create-named-range-request-dto.ts
42
42
  models/create-named-range-response-class.ts
43
43
  models/create-named-request-s3-data-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.28.0 --save
20
+ npm install @emilgroup/insurance-sdk@1.30.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/insurance-sdk@1.28.0
24
+ yarn add @emilgroup/insurance-sdk@1.30.0
25
25
  ```
26
26
 
27
27
  And then you can import `PoliciesApi`.
package/api/leads-api.ts CHANGED
@@ -27,7 +27,7 @@ import { CreateLeadRequestDto } from '../models';
27
27
  // @ts-ignore
28
28
  import { CreateLeadResponseClass } from '../models';
29
29
  // @ts-ignore
30
- import { CreateLeadSyncResponseClass } from '../models';
30
+ import { DeleteResponseClass } from '../models';
31
31
  // @ts-ignore
32
32
  import { GetLeadResponseClass } from '../models';
33
33
  // @ts-ignore
@@ -187,6 +187,51 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
187
187
  options: localVarRequestOptions,
188
188
  };
189
189
  },
190
+ /**
191
+ * Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it.
192
+ * @summary Delete the lead
193
+ * @param {string} code
194
+ * @param {string} [authorization] Bearer Token
195
+ * @param {*} [options] Override http request option.
196
+ * @throws {RequiredError}
197
+ */
198
+ deleteLead: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
199
+ // verify required parameter 'code' is not null or undefined
200
+ assertParamExists('deleteLead', 'code', code)
201
+ const localVarPath = `/insuranceservice/v1/leads/{code}`
202
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
203
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
204
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
205
+ let baseOptions;
206
+ let baseAccessToken;
207
+ if (configuration) {
208
+ baseOptions = configuration.baseOptions;
209
+ baseAccessToken = configuration.accessToken;
210
+ }
211
+
212
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
213
+ const localVarHeaderParameter = {} as any;
214
+ const localVarQueryParameter = {} as any;
215
+
216
+ // authentication bearer required
217
+ // http bearer authentication required
218
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
219
+
220
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
221
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
222
+ }
223
+
224
+
225
+
226
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
227
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
228
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
229
+
230
+ return {
231
+ url: toPathString(localVarUrlObj),
232
+ options: localVarRequestOptions,
233
+ };
234
+ },
190
235
  /**
191
236
  * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
192
237
  * @summary Retrieve the lead
@@ -503,10 +548,22 @@ export const LeadsApiFp = function(configuration?: Configuration) {
503
548
  * @param {*} [options] Override http request option.
504
549
  * @throws {RequiredError}
505
550
  */
506
- async createLeadSync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateLeadSyncResponseClass>> {
551
+ async createLeadSync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateLeadResponseClass>> {
507
552
  const localVarAxiosArgs = await localVarAxiosParamCreator.createLeadSync(createLeadRequestDto, authorization, options);
508
553
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
509
554
  },
555
+ /**
556
+ * Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it.
557
+ * @summary Delete the lead
558
+ * @param {string} code
559
+ * @param {string} [authorization] Bearer Token
560
+ * @param {*} [options] Override http request option.
561
+ * @throws {RequiredError}
562
+ */
563
+ async deleteLead(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
564
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteLead(code, authorization, options);
565
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
566
+ },
510
567
  /**
511
568
  * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
512
569
  * @summary Retrieve the lead
@@ -616,9 +673,20 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
616
673
  * @param {*} [options] Override http request option.
617
674
  * @throws {RequiredError}
618
675
  */
619
- createLeadSync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<CreateLeadSyncResponseClass> {
676
+ createLeadSync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<CreateLeadResponseClass> {
620
677
  return localVarFp.createLeadSync(createLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
621
678
  },
679
+ /**
680
+ * Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it.
681
+ * @summary Delete the lead
682
+ * @param {string} code
683
+ * @param {string} [authorization] Bearer Token
684
+ * @param {*} [options] Override http request option.
685
+ * @throws {RequiredError}
686
+ */
687
+ deleteLead(code: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
688
+ return localVarFp.deleteLead(code, authorization, options).then((request) => request(axios, basePath));
689
+ },
622
690
  /**
623
691
  * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
624
692
  * @summary Retrieve the lead
@@ -749,6 +817,27 @@ export interface LeadsApiCreateLeadSyncRequest {
749
817
  readonly authorization?: string
750
818
  }
751
819
 
820
+ /**
821
+ * Request parameters for deleteLead operation in LeadsApi.
822
+ * @export
823
+ * @interface LeadsApiDeleteLeadRequest
824
+ */
825
+ export interface LeadsApiDeleteLeadRequest {
826
+ /**
827
+ *
828
+ * @type {string}
829
+ * @memberof LeadsApiDeleteLead
830
+ */
831
+ readonly code: string
832
+
833
+ /**
834
+ * Bearer Token
835
+ * @type {string}
836
+ * @memberof LeadsApiDeleteLead
837
+ */
838
+ readonly authorization?: string
839
+ }
840
+
752
841
  /**
753
842
  * Request parameters for getLead operation in LeadsApi.
754
843
  * @export
@@ -960,6 +1049,18 @@ export class LeadsApi extends BaseAPI {
960
1049
  return LeadsApiFp(this.configuration).createLeadSync(requestParameters.createLeadRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
961
1050
  }
962
1051
 
1052
+ /**
1053
+ * Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it.
1054
+ * @summary Delete the lead
1055
+ * @param {LeadsApiDeleteLeadRequest} requestParameters Request parameters.
1056
+ * @param {*} [options] Override http request option.
1057
+ * @throws {RequiredError}
1058
+ * @memberof LeadsApi
1059
+ */
1060
+ public deleteLead(requestParameters: LeadsApiDeleteLeadRequest, options?: AxiosRequestConfig) {
1061
+ return LeadsApiFp(this.configuration).deleteLead(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1062
+ }
1063
+
963
1064
  /**
964
1065
  * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
965
1066
  * @summary Retrieve the lead
@@ -15,7 +15,7 @@ import { RequestArgs, BaseAPI } from '../base';
15
15
  import { CreateLeadAsyncResponseClass } from '../models';
16
16
  import { CreateLeadRequestDto } from '../models';
17
17
  import { CreateLeadResponseClass } from '../models';
18
- import { CreateLeadSyncResponseClass } from '../models';
18
+ import { DeleteResponseClass } from '../models';
19
19
  import { GetLeadResponseClass } from '../models';
20
20
  import { ListLeadsResponseClass } from '../models';
21
21
  import { PatchLeadRequestDto } from '../models';
@@ -54,6 +54,15 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
54
54
  * @throws {RequiredError}
55
55
  */
56
56
  createLeadSync: (createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
57
+ /**
58
+ * Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it.
59
+ * @summary Delete the lead
60
+ * @param {string} code
61
+ * @param {string} [authorization] Bearer Token
62
+ * @param {*} [options] Override http request option.
63
+ * @throws {RequiredError}
64
+ */
65
+ deleteLead: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
57
66
  /**
58
67
  * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
59
68
  * @summary Retrieve the lead
@@ -140,7 +149,16 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
140
149
  * @param {*} [options] Override http request option.
141
150
  * @throws {RequiredError}
142
151
  */
143
- createLeadSync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateLeadSyncResponseClass>>;
152
+ createLeadSync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateLeadResponseClass>>;
153
+ /**
154
+ * Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it.
155
+ * @summary Delete the lead
156
+ * @param {string} code
157
+ * @param {string} [authorization] Bearer Token
158
+ * @param {*} [options] Override http request option.
159
+ * @throws {RequiredError}
160
+ */
161
+ deleteLead(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>>;
144
162
  /**
145
163
  * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
146
164
  * @summary Retrieve the lead
@@ -227,7 +245,16 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
227
245
  * @param {*} [options] Override http request option.
228
246
  * @throws {RequiredError}
229
247
  */
230
- createLeadSync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<CreateLeadSyncResponseClass>;
248
+ createLeadSync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<CreateLeadResponseClass>;
249
+ /**
250
+ * Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it.
251
+ * @summary Delete the lead
252
+ * @param {string} code
253
+ * @param {string} [authorization] Bearer Token
254
+ * @param {*} [options] Override http request option.
255
+ * @throws {RequiredError}
256
+ */
257
+ deleteLead(code: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass>;
231
258
  /**
232
259
  * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
233
260
  * @summary Retrieve the lead
@@ -340,6 +367,25 @@ export interface LeadsApiCreateLeadSyncRequest {
340
367
  */
341
368
  readonly authorization?: string;
342
369
  }
370
+ /**
371
+ * Request parameters for deleteLead operation in LeadsApi.
372
+ * @export
373
+ * @interface LeadsApiDeleteLeadRequest
374
+ */
375
+ export interface LeadsApiDeleteLeadRequest {
376
+ /**
377
+ *
378
+ * @type {string}
379
+ * @memberof LeadsApiDeleteLead
380
+ */
381
+ readonly code: string;
382
+ /**
383
+ * Bearer Token
384
+ * @type {string}
385
+ * @memberof LeadsApiDeleteLead
386
+ */
387
+ readonly authorization?: string;
388
+ }
343
389
  /**
344
390
  * Request parameters for getLead operation in LeadsApi.
345
391
  * @export
@@ -522,7 +568,16 @@ export declare class LeadsApi extends BaseAPI {
522
568
  * @throws {RequiredError}
523
569
  * @memberof LeadsApi
524
570
  */
525
- createLeadSync(requestParameters: LeadsApiCreateLeadSyncRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadSyncResponseClass, any>>;
571
+ createLeadSync(requestParameters: LeadsApiCreateLeadSyncRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadResponseClass, any>>;
572
+ /**
573
+ * Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it.
574
+ * @summary Delete the lead
575
+ * @param {LeadsApiDeleteLeadRequest} requestParameters Request parameters.
576
+ * @param {*} [options] Override http request option.
577
+ * @throws {RequiredError}
578
+ * @memberof LeadsApi
579
+ */
580
+ deleteLead(requestParameters: LeadsApiDeleteLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any>>;
526
581
  /**
527
582
  * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
528
583
  * @summary Retrieve the lead
@@ -239,6 +239,54 @@ var LeadsApiAxiosParamCreator = function (configuration) {
239
239
  });
240
240
  });
241
241
  },
242
+ /**
243
+ * Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it.
244
+ * @summary Delete the lead
245
+ * @param {string} code
246
+ * @param {string} [authorization] Bearer Token
247
+ * @param {*} [options] Override http request option.
248
+ * @throws {RequiredError}
249
+ */
250
+ deleteLead: function (code, authorization, options) {
251
+ if (options === void 0) { options = {}; }
252
+ return __awaiter(_this, void 0, void 0, function () {
253
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
254
+ return __generator(this, function (_a) {
255
+ switch (_a.label) {
256
+ case 0:
257
+ // verify required parameter 'code' is not null or undefined
258
+ (0, common_1.assertParamExists)('deleteLead', 'code', code);
259
+ localVarPath = "/insuranceservice/v1/leads/{code}"
260
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
261
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
262
+ if (configuration) {
263
+ baseOptions = configuration.baseOptions;
264
+ baseAccessToken = configuration.accessToken;
265
+ }
266
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
267
+ localVarHeaderParameter = {};
268
+ localVarQueryParameter = {};
269
+ // authentication bearer required
270
+ // http bearer authentication required
271
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
272
+ case 1:
273
+ // authentication bearer required
274
+ // http bearer authentication required
275
+ _a.sent();
276
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
277
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
278
+ }
279
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
280
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
281
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
282
+ return [2 /*return*/, {
283
+ url: (0, common_1.toPathString)(localVarUrlObj),
284
+ options: localVarRequestOptions,
285
+ }];
286
+ }
287
+ });
288
+ });
289
+ },
242
290
  /**
243
291
  * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
244
292
  * @summary Retrieve the lead
@@ -591,6 +639,27 @@ var LeadsApiFp = function (configuration) {
591
639
  });
592
640
  });
593
641
  },
642
+ /**
643
+ * Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it.
644
+ * @summary Delete the lead
645
+ * @param {string} code
646
+ * @param {string} [authorization] Bearer Token
647
+ * @param {*} [options] Override http request option.
648
+ * @throws {RequiredError}
649
+ */
650
+ deleteLead: function (code, authorization, options) {
651
+ return __awaiter(this, void 0, void 0, function () {
652
+ var localVarAxiosArgs;
653
+ return __generator(this, function (_a) {
654
+ switch (_a.label) {
655
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteLead(code, authorization, options)];
656
+ case 1:
657
+ localVarAxiosArgs = _a.sent();
658
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
659
+ }
660
+ });
661
+ });
662
+ },
594
663
  /**
595
664
  * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
596
665
  * @summary Retrieve the lead
@@ -748,6 +817,17 @@ var LeadsApiFactory = function (configuration, basePath, axios) {
748
817
  createLeadSync: function (createLeadRequestDto, authorization, options) {
749
818
  return localVarFp.createLeadSync(createLeadRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
750
819
  },
820
+ /**
821
+ * Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it.
822
+ * @summary Delete the lead
823
+ * @param {string} code
824
+ * @param {string} [authorization] Bearer Token
825
+ * @param {*} [options] Override http request option.
826
+ * @throws {RequiredError}
827
+ */
828
+ deleteLead: function (code, authorization, options) {
829
+ return localVarFp.deleteLead(code, authorization, options).then(function (request) { return request(axios, basePath); });
830
+ },
751
831
  /**
752
832
  * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
753
833
  * @summary Retrieve the lead
@@ -862,6 +942,18 @@ var LeadsApi = /** @class */ (function (_super) {
862
942
  var _this = this;
863
943
  return (0, exports.LeadsApiFp)(this.configuration).createLeadSync(requestParameters.createLeadRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
864
944
  };
945
+ /**
946
+ * Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it.
947
+ * @summary Delete the lead
948
+ * @param {LeadsApiDeleteLeadRequest} requestParameters Request parameters.
949
+ * @param {*} [options] Override http request option.
950
+ * @throws {RequiredError}
951
+ * @memberof LeadsApi
952
+ */
953
+ LeadsApi.prototype.deleteLead = function (requestParameters, options) {
954
+ var _this = this;
955
+ return (0, exports.LeadsApiFp)(this.configuration).deleteLead(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
956
+ };
865
957
  /**
866
958
  * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
867
959
  * @summary Retrieve the lead
@@ -0,0 +1,31 @@
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
+ import { PolicyObjectDto } from './policy-object-dto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CalculateProductFieldsRequestDto
17
+ */
18
+ export interface CalculateProductFieldsRequestDto {
19
+ /**
20
+ * Unique identifier referencing the product version.
21
+ * @type {number}
22
+ * @memberof CalculateProductFieldsRequestDto
23
+ */
24
+ 'productVersionId': number;
25
+ /**
26
+ * Policy Objects.
27
+ * @type {Array<PolicyObjectDto>}
28
+ * @memberof CalculateProductFieldsRequestDto
29
+ */
30
+ 'policyObjects': Array<PolicyObjectDto>;
31
+ }
@@ -34,6 +34,12 @@ export interface CreateNamedRangeRequestDto {
34
34
  * @memberof CreateNamedRangeRequestDto
35
35
  */
36
36
  'hasHeader': boolean;
37
+ /**
38
+ * number of header rows (rows to skip) in the named range table
39
+ * @type {number}
40
+ * @memberof CreateNamedRangeRequestDto
41
+ */
42
+ 'headerRows'?: number;
37
43
  /**
38
44
  * File contents encoded as Base64 string.
39
45
  * @type {string}
@@ -111,6 +111,12 @@ export interface CreateProductFieldRequestDto {
111
111
  * @memberof CreateProductFieldRequestDto
112
112
  */
113
113
  'bfLabel'?: string;
114
+ /**
115
+ * Expression to calculate the field.
116
+ * @type {string}
117
+ * @memberof CreateProductFieldRequestDto
118
+ */
119
+ 'expression'?: string;
114
120
  /**
115
121
  * Default value of the field. For the field type date-time, it should be { \"templated\" : \"{{today}}\" }
116
122
  * @type {object}
@@ -2,6 +2,7 @@ export * from './activate-policy-request-dto';
2
2
  export * from './activate-policy-response-class';
3
3
  export * from './calculate-custom-premium-request-dto';
4
4
  export * from './calculate-premium-request-dto';
5
+ export * from './calculate-product-fields-request-dto';
5
6
  export * from './clone-product-version-request-dto';
6
7
  export * from './create-account-request-dto';
7
8
  export * from './create-bank-account-request-dto';
@@ -15,7 +16,6 @@ export * from './create-lead-request-dto';
15
16
  export * from './create-lead-response-class';
16
17
  export * from './create-lead-status-request-dto';
17
18
  export * from './create-lead-status-response-class';
18
- export * from './create-lead-sync-response-class';
19
19
  export * from './create-named-range-request-dto';
20
20
  export * from './create-named-range-response-class';
21
21
  export * from './create-named-request-s3-data-class';
@@ -18,6 +18,7 @@ __exportStar(require("./activate-policy-request-dto"), exports);
18
18
  __exportStar(require("./activate-policy-response-class"), exports);
19
19
  __exportStar(require("./calculate-custom-premium-request-dto"), exports);
20
20
  __exportStar(require("./calculate-premium-request-dto"), exports);
21
+ __exportStar(require("./calculate-product-fields-request-dto"), exports);
21
22
  __exportStar(require("./clone-product-version-request-dto"), exports);
22
23
  __exportStar(require("./create-account-request-dto"), exports);
23
24
  __exportStar(require("./create-bank-account-request-dto"), exports);
@@ -31,7 +32,6 @@ __exportStar(require("./create-lead-request-dto"), exports);
31
32
  __exportStar(require("./create-lead-response-class"), exports);
32
33
  __exportStar(require("./create-lead-status-request-dto"), exports);
33
34
  __exportStar(require("./create-lead-status-response-class"), exports);
34
- __exportStar(require("./create-lead-sync-response-class"), exports);
35
35
  __exportStar(require("./create-named-range-request-dto"), exports);
36
36
  __exportStar(require("./create-named-range-response-class"), exports);
37
37
  __exportStar(require("./create-named-request-s3-data-class"), exports);
@@ -39,6 +39,12 @@ export interface NamedRangeClass {
39
39
  * @memberof NamedRangeClass
40
40
  */
41
41
  'hasHeader': boolean;
42
+ /**
43
+ * number of header rows (rows to skip) in the named range table
44
+ * @type {number}
45
+ * @memberof NamedRangeClass
46
+ */
47
+ 'headerRows': number;
42
48
  /**
43
49
  * Type of the file with the named range (CSV, XLS or XLSX).
44
50
  * @type {string}
@@ -99,6 +99,12 @@ export interface ProductFieldClass {
99
99
  * @memberof ProductFieldClass
100
100
  */
101
101
  'defaultValue': object | null;
102
+ /**
103
+ * Expression to calculate the field.
104
+ * @type {string}
105
+ * @memberof ProductFieldClass
106
+ */
107
+ 'expression': string;
102
108
  /**
103
109
  * Minimum value of the field. For the field type date-time, it should be { \"templated\" : \"{{today}}\" }
104
110
  * @type {object}
@@ -99,6 +99,12 @@ export interface SharedProductFieldClass {
99
99
  * @memberof SharedProductFieldClass
100
100
  */
101
101
  'defaultValue': object | null;
102
+ /**
103
+ * Expression to calculate the field.
104
+ * @type {string}
105
+ * @memberof SharedProductFieldClass
106
+ */
107
+ 'expression': string;
102
108
  /**
103
109
  * Minimum value of the field. For the field type date-time, it should be { \"templated\" : \"{{today}}\" }
104
110
  * @type {object}
@@ -33,4 +33,10 @@ export interface SharedUpdateNamedRangeRequestDto {
33
33
  * @memberof SharedUpdateNamedRangeRequestDto
34
34
  */
35
35
  'hasHeader': boolean;
36
+ /**
37
+ * number of header rows (rows to skip) in the named range table
38
+ * @type {number}
39
+ * @memberof SharedUpdateNamedRangeRequestDto
40
+ */
41
+ 'headerRows'?: number;
36
42
  }
@@ -27,4 +27,10 @@ export interface UpdateNamedRangeRequestDto {
27
27
  * @memberof UpdateNamedRangeRequestDto
28
28
  */
29
29
  'hasHeader': boolean;
30
+ /**
31
+ * number of header rows (rows to skip) in the named range table
32
+ * @type {number}
33
+ * @memberof UpdateNamedRangeRequestDto
34
+ */
35
+ 'headerRows'?: number;
30
36
  }
@@ -53,6 +53,12 @@ export interface UpdatePolicyRequestDto {
53
53
  * @memberof UpdatePolicyRequestDto
54
54
  */
55
55
  'leadCode'?: string;
56
+ /**
57
+ * Unique identifier of the policy that this object belongs to.
58
+ * @type {string}
59
+ * @memberof UpdatePolicyRequestDto
60
+ */
61
+ 'policyNumber'?: string;
56
62
  }
57
63
  export declare const UpdatePolicyRequestDtoStatusEnum: {
58
64
  readonly Active: "ACTIVE";
@@ -105,6 +105,12 @@ export interface UpdateProductFieldRequestDto {
105
105
  * @memberof UpdateProductFieldRequestDto
106
106
  */
107
107
  'bfLabel'?: string;
108
+ /**
109
+ * Expression to calculate the field.
110
+ * @type {string}
111
+ * @memberof UpdateProductFieldRequestDto
112
+ */
113
+ 'expression'?: string;
108
114
  /**
109
115
  * Default value of the field. For the field type date-time, it should be { \"templated\" : \"{{today}}\" }
110
116
  * @type {object}
@@ -0,0 +1,37 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL InsuranceService
5
+ * The EMIL InsuranceService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { PolicyObjectDto } from './policy-object-dto';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CalculateProductFieldsRequestDto
22
+ */
23
+ export interface CalculateProductFieldsRequestDto {
24
+ /**
25
+ * Unique identifier referencing the product version.
26
+ * @type {number}
27
+ * @memberof CalculateProductFieldsRequestDto
28
+ */
29
+ 'productVersionId': number;
30
+ /**
31
+ * Policy Objects.
32
+ * @type {Array<PolicyObjectDto>}
33
+ * @memberof CalculateProductFieldsRequestDto
34
+ */
35
+ 'policyObjects': Array<PolicyObjectDto>;
36
+ }
37
+
@@ -39,6 +39,12 @@ export interface CreateNamedRangeRequestDto {
39
39
  * @memberof CreateNamedRangeRequestDto
40
40
  */
41
41
  'hasHeader': boolean;
42
+ /**
43
+ * number of header rows (rows to skip) in the named range table
44
+ * @type {number}
45
+ * @memberof CreateNamedRangeRequestDto
46
+ */
47
+ 'headerRows'?: number;
42
48
  /**
43
49
  * File contents encoded as Base64 string.
44
50
  * @type {string}
@@ -116,6 +116,12 @@ export interface CreateProductFieldRequestDto {
116
116
  * @memberof CreateProductFieldRequestDto
117
117
  */
118
118
  'bfLabel'?: string;
119
+ /**
120
+ * Expression to calculate the field.
121
+ * @type {string}
122
+ * @memberof CreateProductFieldRequestDto
123
+ */
124
+ 'expression'?: string;
119
125
  /**
120
126
  * Default value of the field. For the field type date-time, it should be { \"templated\" : \"{{today}}\" }
121
127
  * @type {object}
package/models/index.ts CHANGED
@@ -2,6 +2,7 @@ export * from './activate-policy-request-dto';
2
2
  export * from './activate-policy-response-class';
3
3
  export * from './calculate-custom-premium-request-dto';
4
4
  export * from './calculate-premium-request-dto';
5
+ export * from './calculate-product-fields-request-dto';
5
6
  export * from './clone-product-version-request-dto';
6
7
  export * from './create-account-request-dto';
7
8
  export * from './create-bank-account-request-dto';
@@ -15,7 +16,6 @@ export * from './create-lead-request-dto';
15
16
  export * from './create-lead-response-class';
16
17
  export * from './create-lead-status-request-dto';
17
18
  export * from './create-lead-status-response-class';
18
- export * from './create-lead-sync-response-class';
19
19
  export * from './create-named-range-request-dto';
20
20
  export * from './create-named-range-response-class';
21
21
  export * from './create-named-request-s3-data-class';
@@ -44,6 +44,12 @@ export interface NamedRangeClass {
44
44
  * @memberof NamedRangeClass
45
45
  */
46
46
  'hasHeader': boolean;
47
+ /**
48
+ * number of header rows (rows to skip) in the named range table
49
+ * @type {number}
50
+ * @memberof NamedRangeClass
51
+ */
52
+ 'headerRows': number;
47
53
  /**
48
54
  * Type of the file with the named range (CSV, XLS or XLSX).
49
55
  * @type {string}
@@ -104,6 +104,12 @@ export interface ProductFieldClass {
104
104
  * @memberof ProductFieldClass
105
105
  */
106
106
  'defaultValue': object | null;
107
+ /**
108
+ * Expression to calculate the field.
109
+ * @type {string}
110
+ * @memberof ProductFieldClass
111
+ */
112
+ 'expression': string;
107
113
  /**
108
114
  * Minimum value of the field. For the field type date-time, it should be { \"templated\" : \"{{today}}\" }
109
115
  * @type {object}
@@ -104,6 +104,12 @@ export interface SharedProductFieldClass {
104
104
  * @memberof SharedProductFieldClass
105
105
  */
106
106
  'defaultValue': object | null;
107
+ /**
108
+ * Expression to calculate the field.
109
+ * @type {string}
110
+ * @memberof SharedProductFieldClass
111
+ */
112
+ 'expression': string;
107
113
  /**
108
114
  * Minimum value of the field. For the field type date-time, it should be { \"templated\" : \"{{today}}\" }
109
115
  * @type {object}
@@ -38,5 +38,11 @@ export interface SharedUpdateNamedRangeRequestDto {
38
38
  * @memberof SharedUpdateNamedRangeRequestDto
39
39
  */
40
40
  'hasHeader': boolean;
41
+ /**
42
+ * number of header rows (rows to skip) in the named range table
43
+ * @type {number}
44
+ * @memberof SharedUpdateNamedRangeRequestDto
45
+ */
46
+ 'headerRows'?: number;
41
47
  }
42
48
 
@@ -32,5 +32,11 @@ export interface UpdateNamedRangeRequestDto {
32
32
  * @memberof UpdateNamedRangeRequestDto
33
33
  */
34
34
  'hasHeader': boolean;
35
+ /**
36
+ * number of header rows (rows to skip) in the named range table
37
+ * @type {number}
38
+ * @memberof UpdateNamedRangeRequestDto
39
+ */
40
+ 'headerRows'?: number;
35
41
  }
36
42
 
@@ -58,6 +58,12 @@ export interface UpdatePolicyRequestDto {
58
58
  * @memberof UpdatePolicyRequestDto
59
59
  */
60
60
  'leadCode'?: string;
61
+ /**
62
+ * Unique identifier of the policy that this object belongs to.
63
+ * @type {string}
64
+ * @memberof UpdatePolicyRequestDto
65
+ */
66
+ 'policyNumber'?: string;
61
67
  }
62
68
 
63
69
  export const UpdatePolicyRequestDtoStatusEnum = {
@@ -110,6 +110,12 @@ export interface UpdateProductFieldRequestDto {
110
110
  * @memberof UpdateProductFieldRequestDto
111
111
  */
112
112
  'bfLabel'?: string;
113
+ /**
114
+ * Expression to calculate the field.
115
+ * @type {string}
116
+ * @memberof UpdateProductFieldRequestDto
117
+ */
118
+ 'expression'?: string;
113
119
  /**
114
120
  * Default value of the field. For the field type date-time, it should be { \"templated\" : \"{{today}}\" }
115
121
  * @type {object}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/insurance-sdk",
3
- "version": "1.28.0",
3
+ "version": "1.30.0",
4
4
  "description": "OpenAPI client for @emilgroup/insurance-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -1,24 +0,0 @@
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 CreateLeadSyncResponseClass
16
- */
17
- export interface CreateLeadSyncResponseClass {
18
- /**
19
- *
20
- * @type {object}
21
- * @memberof CreateLeadSyncResponseClass
22
- */
23
- 'variables': object;
24
- }
@@ -1,30 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * EMIL InsuranceService
5
- * The EMIL InsuranceService API description
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: kontakt@emil.de
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
-
16
-
17
- /**
18
- *
19
- * @export
20
- * @interface CreateLeadSyncResponseClass
21
- */
22
- export interface CreateLeadSyncResponseClass {
23
- /**
24
- *
25
- * @type {object}
26
- * @memberof CreateLeadSyncResponseClass
27
- */
28
- 'variables': object;
29
- }
30
-