@emilgroup/insurance-sdk-node 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-node@1.28.0 --save
20
+ npm install @emilgroup/insurance-sdk-node@1.30.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/insurance-sdk-node@1.28.0
24
+ yarn add @emilgroup/insurance-sdk-node@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
@@ -191,6 +191,51 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
191
191
  options: localVarRequestOptions,
192
192
  };
193
193
  },
194
+ /**
195
+ * Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it.
196
+ * @summary Delete the lead
197
+ * @param {string} code
198
+ * @param {string} [authorization] Bearer Token
199
+ * @param {*} [options] Override http request option.
200
+ * @throws {RequiredError}
201
+ */
202
+ deleteLead: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
203
+ // verify required parameter 'code' is not null or undefined
204
+ assertParamExists('deleteLead', 'code', code)
205
+ const localVarPath = `/insuranceservice/v1/leads/{code}`
206
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
207
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
208
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
209
+ let baseOptions;
210
+ let baseAccessToken;
211
+ if (configuration) {
212
+ baseOptions = configuration.baseOptions;
213
+ baseAccessToken = configuration.accessToken;
214
+ }
215
+
216
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
217
+ const localVarHeaderParameter = {} as any;
218
+ const localVarQueryParameter = {} as any;
219
+
220
+ // authentication bearer required
221
+ // http bearer authentication required
222
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
223
+
224
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
225
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
226
+ }
227
+
228
+
229
+
230
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
231
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
232
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
233
+
234
+ return {
235
+ url: toPathString(localVarUrlObj),
236
+ options: localVarRequestOptions,
237
+ };
238
+ },
194
239
  /**
195
240
  * 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.
196
241
  * @summary Retrieve the lead
@@ -507,10 +552,22 @@ export const LeadsApiFp = function(configuration?: Configuration) {
507
552
  * @param {*} [options] Override http request option.
508
553
  * @throws {RequiredError}
509
554
  */
510
- async createLeadSync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateLeadSyncResponseClass>> {
555
+ async createLeadSync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateLeadResponseClass>> {
511
556
  const localVarAxiosArgs = await localVarAxiosParamCreator.createLeadSync(createLeadRequestDto, authorization, options);
512
557
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
513
558
  },
559
+ /**
560
+ * Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it.
561
+ * @summary Delete the lead
562
+ * @param {string} code
563
+ * @param {string} [authorization] Bearer Token
564
+ * @param {*} [options] Override http request option.
565
+ * @throws {RequiredError}
566
+ */
567
+ async deleteLead(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
568
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteLead(code, authorization, options);
569
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
570
+ },
514
571
  /**
515
572
  * 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.
516
573
  * @summary Retrieve the lead
@@ -620,9 +677,20 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
620
677
  * @param {*} [options] Override http request option.
621
678
  * @throws {RequiredError}
622
679
  */
623
- createLeadSync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<CreateLeadSyncResponseClass> {
680
+ createLeadSync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<CreateLeadResponseClass> {
624
681
  return localVarFp.createLeadSync(createLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
625
682
  },
683
+ /**
684
+ * Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it.
685
+ * @summary Delete the lead
686
+ * @param {string} code
687
+ * @param {string} [authorization] Bearer Token
688
+ * @param {*} [options] Override http request option.
689
+ * @throws {RequiredError}
690
+ */
691
+ deleteLead(code: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
692
+ return localVarFp.deleteLead(code, authorization, options).then((request) => request(axios, basePath));
693
+ },
626
694
  /**
627
695
  * 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.
628
696
  * @summary Retrieve the lead
@@ -753,6 +821,27 @@ export interface LeadsApiCreateLeadSyncRequest {
753
821
  readonly authorization?: string
754
822
  }
755
823
 
824
+ /**
825
+ * Request parameters for deleteLead operation in LeadsApi.
826
+ * @export
827
+ * @interface LeadsApiDeleteLeadRequest
828
+ */
829
+ export interface LeadsApiDeleteLeadRequest {
830
+ /**
831
+ *
832
+ * @type {string}
833
+ * @memberof LeadsApiDeleteLead
834
+ */
835
+ readonly code: string
836
+
837
+ /**
838
+ * Bearer Token
839
+ * @type {string}
840
+ * @memberof LeadsApiDeleteLead
841
+ */
842
+ readonly authorization?: string
843
+ }
844
+
756
845
  /**
757
846
  * Request parameters for getLead operation in LeadsApi.
758
847
  * @export
@@ -964,6 +1053,18 @@ export class LeadsApi extends BaseAPI {
964
1053
  return LeadsApiFp(this.configuration).createLeadSync(requestParameters.createLeadRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
965
1054
  }
966
1055
 
1056
+ /**
1057
+ * Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it.
1058
+ * @summary Delete the lead
1059
+ * @param {LeadsApiDeleteLeadRequest} requestParameters Request parameters.
1060
+ * @param {*} [options] Override http request option.
1061
+ * @throws {RequiredError}
1062
+ * @memberof LeadsApi
1063
+ */
1064
+ public deleteLead(requestParameters: LeadsApiDeleteLeadRequest, options?: AxiosRequestConfig) {
1065
+ return LeadsApiFp(this.configuration).deleteLead(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1066
+ }
1067
+
967
1068
  /**
968
1069
  * 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.
969
1070
  * @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
@@ -243,6 +243,54 @@ var LeadsApiAxiosParamCreator = function (configuration) {
243
243
  });
244
244
  });
245
245
  },
246
+ /**
247
+ * Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it.
248
+ * @summary Delete the lead
249
+ * @param {string} code
250
+ * @param {string} [authorization] Bearer Token
251
+ * @param {*} [options] Override http request option.
252
+ * @throws {RequiredError}
253
+ */
254
+ deleteLead: function (code, authorization, options) {
255
+ if (options === void 0) { options = {}; }
256
+ return __awaiter(_this, void 0, void 0, function () {
257
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
258
+ return __generator(this, function (_a) {
259
+ switch (_a.label) {
260
+ case 0:
261
+ // verify required parameter 'code' is not null or undefined
262
+ (0, common_1.assertParamExists)('deleteLead', 'code', code);
263
+ localVarPath = "/insuranceservice/v1/leads/{code}"
264
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
265
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
266
+ if (configuration) {
267
+ baseOptions = configuration.baseOptions;
268
+ baseAccessToken = configuration.accessToken;
269
+ }
270
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
271
+ localVarHeaderParameter = {};
272
+ localVarQueryParameter = {};
273
+ // authentication bearer required
274
+ // http bearer authentication required
275
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
276
+ case 1:
277
+ // authentication bearer required
278
+ // http bearer authentication required
279
+ _a.sent();
280
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
281
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
282
+ }
283
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
284
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
285
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
286
+ return [2 /*return*/, {
287
+ url: (0, common_1.toPathString)(localVarUrlObj),
288
+ options: localVarRequestOptions,
289
+ }];
290
+ }
291
+ });
292
+ });
293
+ },
246
294
  /**
247
295
  * 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.
248
296
  * @summary Retrieve the lead
@@ -595,6 +643,27 @@ var LeadsApiFp = function (configuration) {
595
643
  });
596
644
  });
597
645
  },
646
+ /**
647
+ * Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it.
648
+ * @summary Delete the lead
649
+ * @param {string} code
650
+ * @param {string} [authorization] Bearer Token
651
+ * @param {*} [options] Override http request option.
652
+ * @throws {RequiredError}
653
+ */
654
+ deleteLead: function (code, authorization, options) {
655
+ return __awaiter(this, void 0, void 0, function () {
656
+ var localVarAxiosArgs;
657
+ return __generator(this, function (_a) {
658
+ switch (_a.label) {
659
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteLead(code, authorization, options)];
660
+ case 1:
661
+ localVarAxiosArgs = _a.sent();
662
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
663
+ }
664
+ });
665
+ });
666
+ },
598
667
  /**
599
668
  * 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.
600
669
  * @summary Retrieve the lead
@@ -752,6 +821,17 @@ var LeadsApiFactory = function (configuration, basePath, axios) {
752
821
  createLeadSync: function (createLeadRequestDto, authorization, options) {
753
822
  return localVarFp.createLeadSync(createLeadRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
754
823
  },
824
+ /**
825
+ * Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it.
826
+ * @summary Delete the lead
827
+ * @param {string} code
828
+ * @param {string} [authorization] Bearer Token
829
+ * @param {*} [options] Override http request option.
830
+ * @throws {RequiredError}
831
+ */
832
+ deleteLead: function (code, authorization, options) {
833
+ return localVarFp.deleteLead(code, authorization, options).then(function (request) { return request(axios, basePath); });
834
+ },
755
835
  /**
756
836
  * 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.
757
837
  * @summary Retrieve the lead
@@ -866,6 +946,18 @@ var LeadsApi = /** @class */ (function (_super) {
866
946
  var _this = this;
867
947
  return (0, exports.LeadsApiFp)(this.configuration).createLeadSync(requestParameters.createLeadRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
868
948
  };
949
+ /**
950
+ * Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it.
951
+ * @summary Delete the lead
952
+ * @param {LeadsApiDeleteLeadRequest} requestParameters Request parameters.
953
+ * @param {*} [options] Override http request option.
954
+ * @throws {RequiredError}
955
+ * @memberof LeadsApi
956
+ */
957
+ LeadsApi.prototype.deleteLead = function (requestParameters, options) {
958
+ var _this = this;
959
+ return (0, exports.LeadsApiFp)(this.configuration).deleteLead(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
960
+ };
869
961
  /**
870
962
  * 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.
871
963
  * @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-node",
3
- "version": "1.28.0",
3
+ "version": "1.30.0",
4
4
  "description": "OpenAPI client for @emilgroup/insurance-sdk-node",
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
-