@emilgroup/insurance-sdk-node 1.55.0 → 1.57.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.
@@ -238,6 +238,7 @@ models/update-emil-function-secret-request-dto.ts
238
238
  models/update-insured-object-request-dto.ts
239
239
  models/update-lead-request-dto.ts
240
240
  models/update-lead-response-class.ts
241
+ models/update-lead-status-request-dto.ts
241
242
  models/update-lead-status-response-class.ts
242
243
  models/update-named-range-request-dto.ts
243
244
  models/update-named-range-response-class.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/insurance-sdk-node@1.55.0 --save
20
+ npm install @emilgroup/insurance-sdk-node@1.57.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/insurance-sdk-node@1.55.0
24
+ yarn add @emilgroup/insurance-sdk-node@1.57.0
25
25
  ```
26
26
 
27
27
  And then you can import `PoliciesApi`.
@@ -31,6 +31,8 @@ import { GetLeadStatusResponseClass } from '../models';
31
31
  // @ts-ignore
32
32
  import { ListLeadStatusesResponseClass } from '../models';
33
33
  // @ts-ignore
34
+ import { UpdateLeadStatusRequestDto } from '../models';
35
+ // @ts-ignore
34
36
  import { UpdateLeadStatusResponseClass } from '../models';
35
37
  // URLSearchParams not necessarily used
36
38
  // @ts-ignore
@@ -259,13 +261,16 @@ export const LeadStatusesApiAxiosParamCreator = function (configuration?: Config
259
261
  * Updates the specified lead status by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
260
262
  * @summary Update the lead status
261
263
  * @param {string} code
264
+ * @param {UpdateLeadStatusRequestDto} updateLeadStatusRequestDto
262
265
  * @param {string} [authorization] Bearer Token
263
266
  * @param {*} [options] Override http request option.
264
267
  * @throws {RequiredError}
265
268
  */
266
- updateLeadStatus: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
269
+ updateLeadStatus: async (code: string, updateLeadStatusRequestDto: UpdateLeadStatusRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
267
270
  // verify required parameter 'code' is not null or undefined
268
271
  assertParamExists('updateLeadStatus', 'code', code)
272
+ // verify required parameter 'updateLeadStatusRequestDto' is not null or undefined
273
+ assertParamExists('updateLeadStatus', 'updateLeadStatusRequestDto', updateLeadStatusRequestDto)
269
274
  const localVarPath = `/insuranceservice/v1/lead-statuses/{code}`
270
275
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
271
276
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -291,9 +296,12 @@ export const LeadStatusesApiAxiosParamCreator = function (configuration?: Config
291
296
 
292
297
 
293
298
 
299
+ localVarHeaderParameter['Content-Type'] = 'application/json';
300
+
294
301
  setSearchParams(localVarUrlObj, localVarQueryParameter);
295
302
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
296
303
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
304
+ localVarRequestOptions.data = serializeDataIfNeeded(updateLeadStatusRequestDto, localVarRequestOptions, configuration)
297
305
 
298
306
  return {
299
307
  url: toPathString(localVarUrlObj),
@@ -368,12 +376,13 @@ export const LeadStatusesApiFp = function(configuration?: Configuration) {
368
376
  * Updates the specified lead status by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
369
377
  * @summary Update the lead status
370
378
  * @param {string} code
379
+ * @param {UpdateLeadStatusRequestDto} updateLeadStatusRequestDto
371
380
  * @param {string} [authorization] Bearer Token
372
381
  * @param {*} [options] Override http request option.
373
382
  * @throws {RequiredError}
374
383
  */
375
- async updateLeadStatus(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateLeadStatusResponseClass>> {
376
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateLeadStatus(code, authorization, options);
384
+ async updateLeadStatus(code: string, updateLeadStatusRequestDto: UpdateLeadStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateLeadStatusResponseClass>> {
385
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateLeadStatus(code, updateLeadStatusRequestDto, authorization, options);
377
386
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
378
387
  },
379
388
  }
@@ -440,12 +449,13 @@ export const LeadStatusesApiFactory = function (configuration?: Configuration, b
440
449
  * Updates the specified lead status by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
441
450
  * @summary Update the lead status
442
451
  * @param {string} code
452
+ * @param {UpdateLeadStatusRequestDto} updateLeadStatusRequestDto
443
453
  * @param {string} [authorization] Bearer Token
444
454
  * @param {*} [options] Override http request option.
445
455
  * @throws {RequiredError}
446
456
  */
447
- updateLeadStatus(code: string, authorization?: string, options?: any): AxiosPromise<UpdateLeadStatusResponseClass> {
448
- return localVarFp.updateLeadStatus(code, authorization, options).then((request) => request(axios, basePath));
457
+ updateLeadStatus(code: string, updateLeadStatusRequestDto: UpdateLeadStatusRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateLeadStatusResponseClass> {
458
+ return localVarFp.updateLeadStatus(code, updateLeadStatusRequestDto, authorization, options).then((request) => request(axios, basePath));
449
459
  },
450
460
  };
451
461
  };
@@ -589,6 +599,13 @@ export interface LeadStatusesApiUpdateLeadStatusRequest {
589
599
  */
590
600
  readonly code: string
591
601
 
602
+ /**
603
+ *
604
+ * @type {UpdateLeadStatusRequestDto}
605
+ * @memberof LeadStatusesApiUpdateLeadStatus
606
+ */
607
+ readonly updateLeadStatusRequestDto: UpdateLeadStatusRequestDto
608
+
592
609
  /**
593
610
  * Bearer Token
594
611
  * @type {string}
@@ -661,6 +678,6 @@ export class LeadStatusesApi extends BaseAPI {
661
678
  * @memberof LeadStatusesApi
662
679
  */
663
680
  public updateLeadStatus(requestParameters: LeadStatusesApiUpdateLeadStatusRequest, options?: AxiosRequestConfig) {
664
- return LeadStatusesApiFp(this.configuration).updateLeadStatus(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
681
+ return LeadStatusesApiFp(this.configuration).updateLeadStatus(requestParameters.code, requestParameters.updateLeadStatusRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
665
682
  }
666
683
  }
@@ -420,11 +420,11 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
420
420
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
421
421
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
422
422
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
423
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData&lt;/i&gt;
423
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode&lt;/i&gt;
424
424
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
425
425
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId&lt;/i&gt;
426
426
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks&lt;i&gt;
427
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData&lt;/i&gt;
427
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode&lt;/i&gt;
428
428
  * @param {*} [options] Override http request option.
429
429
  * @throws {RequiredError}
430
430
  */
@@ -1057,11 +1057,11 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
1057
1057
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1058
1058
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1059
1059
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
1060
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData&lt;/i&gt;
1060
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode&lt;/i&gt;
1061
1061
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1062
1062
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId&lt;/i&gt;
1063
1063
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks&lt;i&gt;
1064
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData&lt;/i&gt;
1064
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode&lt;/i&gt;
1065
1065
  * @param {*} [options] Override http request option.
1066
1066
  * @throws {RequiredError}
1067
1067
  */
@@ -1282,11 +1282,11 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
1282
1282
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1283
1283
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1284
1284
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
1285
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData&lt;/i&gt;
1285
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode&lt;/i&gt;
1286
1286
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1287
1287
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId&lt;/i&gt;
1288
1288
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks&lt;i&gt;
1289
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData&lt;/i&gt;
1289
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode&lt;/i&gt;
1290
1290
  * @param {*} [options] Override http request option.
1291
1291
  * @throws {RequiredError}
1292
1292
  */
@@ -1613,7 +1613,7 @@ export interface PoliciesApiListPoliciesRequest {
1613
1613
  readonly pageToken?: any
1614
1614
 
1615
1615
  /**
1616
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData&lt;/i&gt;
1616
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode&lt;/i&gt;
1617
1617
  * @type {string}
1618
1618
  * @memberof PoliciesApiListPolicies
1619
1619
  */
@@ -1641,7 +1641,7 @@ export interface PoliciesApiListPoliciesRequest {
1641
1641
  readonly expand?: string
1642
1642
 
1643
1643
  /**
1644
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData&lt;/i&gt;
1644
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode&lt;/i&gt;
1645
1645
  * @type {string}
1646
1646
  * @memberof PoliciesApiListPolicies
1647
1647
  */
@@ -21,6 +21,8 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
+ import { DeleteResponseClass } from '../models';
25
+ // @ts-ignore
24
26
  import { GetProductFactorResponseClass } from '../models';
25
27
  // @ts-ignore
26
28
  import { GetProductFactorValueResponseClass } from '../models';
@@ -42,6 +44,50 @@ const FormData = require('form-data');
42
44
  */
43
45
  export const ProductFactorsApiAxiosParamCreator = function (configuration?: Configuration) {
44
46
  return {
47
+ /**
48
+ *
49
+ * @param {number} id
50
+ * @param {string} [authorization] Bearer Token
51
+ * @param {*} [options] Override http request option.
52
+ * @throws {RequiredError}
53
+ */
54
+ deleteProductFactor: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
55
+ // verify required parameter 'id' is not null or undefined
56
+ assertParamExists('deleteProductFactor', 'id', id)
57
+ const localVarPath = `/insuranceservice/v1/product-factors/{id}`
58
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
59
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
60
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
61
+ let baseOptions;
62
+ let baseAccessToken;
63
+ if (configuration) {
64
+ baseOptions = configuration.baseOptions;
65
+ baseAccessToken = configuration.accessToken;
66
+ }
67
+
68
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
69
+ const localVarHeaderParameter = {} as any;
70
+ const localVarQueryParameter = {} as any;
71
+
72
+ // authentication bearer required
73
+ // http bearer authentication required
74
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
75
+
76
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
77
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
78
+ }
79
+
80
+
81
+
82
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
83
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
84
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
85
+
86
+ return {
87
+ url: toPathString(localVarUrlObj),
88
+ options: localVarRequestOptions,
89
+ };
90
+ },
45
91
  /**
46
92
  * Retrieves the details of the product factor that was previously created. Supply the unique product factor id that was returned when you created it and Emil Api will return the corresponding product factor information.
47
93
  * @summary Retrieve the product factor
@@ -421,6 +467,17 @@ export const ProductFactorsApiAxiosParamCreator = function (configuration?: Conf
421
467
  export const ProductFactorsApiFp = function(configuration?: Configuration) {
422
468
  const localVarAxiosParamCreator = ProductFactorsApiAxiosParamCreator(configuration)
423
469
  return {
470
+ /**
471
+ *
472
+ * @param {number} id
473
+ * @param {string} [authorization] Bearer Token
474
+ * @param {*} [options] Override http request option.
475
+ * @throws {RequiredError}
476
+ */
477
+ async deleteProductFactor(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
478
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductFactor(id, authorization, options);
479
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
480
+ },
424
481
  /**
425
482
  * Retrieves the details of the product factor that was previously created. Supply the unique product factor id that was returned when you created it and Emil Api will return the corresponding product factor information.
426
483
  * @summary Retrieve the product factor
@@ -517,6 +574,16 @@ export const ProductFactorsApiFp = function(configuration?: Configuration) {
517
574
  export const ProductFactorsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
518
575
  const localVarFp = ProductFactorsApiFp(configuration)
519
576
  return {
577
+ /**
578
+ *
579
+ * @param {number} id
580
+ * @param {string} [authorization] Bearer Token
581
+ * @param {*} [options] Override http request option.
582
+ * @throws {RequiredError}
583
+ */
584
+ deleteProductFactor(id: number, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
585
+ return localVarFp.deleteProductFactor(id, authorization, options).then((request) => request(axios, basePath));
586
+ },
520
587
  /**
521
588
  * Retrieves the details of the product factor that was previously created. Supply the unique product factor id that was returned when you created it and Emil Api will return the corresponding product factor information.
522
589
  * @summary Retrieve the product factor
@@ -600,6 +667,27 @@ export const ProductFactorsApiFactory = function (configuration?: Configuration,
600
667
  };
601
668
  };
602
669
 
670
+ /**
671
+ * Request parameters for deleteProductFactor operation in ProductFactorsApi.
672
+ * @export
673
+ * @interface ProductFactorsApiDeleteProductFactorRequest
674
+ */
675
+ export interface ProductFactorsApiDeleteProductFactorRequest {
676
+ /**
677
+ *
678
+ * @type {number}
679
+ * @memberof ProductFactorsApiDeleteProductFactor
680
+ */
681
+ readonly id: number
682
+
683
+ /**
684
+ * Bearer Token
685
+ * @type {string}
686
+ * @memberof ProductFactorsApiDeleteProductFactor
687
+ */
688
+ readonly authorization?: string
689
+ }
690
+
603
691
  /**
604
692
  * Request parameters for getProductFactor operation in ProductFactorsApi.
605
693
  * @export
@@ -831,6 +919,17 @@ export interface ProductFactorsApiValidateProductFactorsRequest {
831
919
  * @extends {BaseAPI}
832
920
  */
833
921
  export class ProductFactorsApi extends BaseAPI {
922
+ /**
923
+ *
924
+ * @param {ProductFactorsApiDeleteProductFactorRequest} requestParameters Request parameters.
925
+ * @param {*} [options] Override http request option.
926
+ * @throws {RequiredError}
927
+ * @memberof ProductFactorsApi
928
+ */
929
+ public deleteProductFactor(requestParameters: ProductFactorsApiDeleteProductFactorRequest, options?: AxiosRequestConfig) {
930
+ return ProductFactorsApiFp(this.configuration).deleteProductFactor(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
931
+ }
932
+
834
933
  /**
835
934
  * Retrieves the details of the product factor that was previously created. Supply the unique product factor id that was returned when you created it and Emil Api will return the corresponding product factor information.
836
935
  * @summary Retrieve the product factor
@@ -17,6 +17,7 @@ import { CreateLeadStatusResponseClass } from '../models';
17
17
  import { DeleteResponseClass } from '../models';
18
18
  import { GetLeadStatusResponseClass } from '../models';
19
19
  import { ListLeadStatusesResponseClass } from '../models';
20
+ import { UpdateLeadStatusRequestDto } from '../models';
20
21
  import { UpdateLeadStatusResponseClass } from '../models';
21
22
  /**
22
23
  * LeadStatusesApi - axios parameter creator
@@ -69,11 +70,12 @@ export declare const LeadStatusesApiAxiosParamCreator: (configuration?: Configur
69
70
  * Updates the specified lead status by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
70
71
  * @summary Update the lead status
71
72
  * @param {string} code
73
+ * @param {UpdateLeadStatusRequestDto} updateLeadStatusRequestDto
72
74
  * @param {string} [authorization] Bearer Token
73
75
  * @param {*} [options] Override http request option.
74
76
  * @throws {RequiredError}
75
77
  */
76
- updateLeadStatus: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
78
+ updateLeadStatus: (code: string, updateLeadStatusRequestDto: UpdateLeadStatusRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
77
79
  };
78
80
  /**
79
81
  * LeadStatusesApi - functional programming interface
@@ -126,11 +128,12 @@ export declare const LeadStatusesApiFp: (configuration?: Configuration) => {
126
128
  * Updates the specified lead status by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
127
129
  * @summary Update the lead status
128
130
  * @param {string} code
131
+ * @param {UpdateLeadStatusRequestDto} updateLeadStatusRequestDto
129
132
  * @param {string} [authorization] Bearer Token
130
133
  * @param {*} [options] Override http request option.
131
134
  * @throws {RequiredError}
132
135
  */
133
- updateLeadStatus(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateLeadStatusResponseClass>>;
136
+ updateLeadStatus(code: string, updateLeadStatusRequestDto: UpdateLeadStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateLeadStatusResponseClass>>;
134
137
  };
135
138
  /**
136
139
  * LeadStatusesApi - factory interface
@@ -183,11 +186,12 @@ export declare const LeadStatusesApiFactory: (configuration?: Configuration, bas
183
186
  * Updates the specified lead status by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
184
187
  * @summary Update the lead status
185
188
  * @param {string} code
189
+ * @param {UpdateLeadStatusRequestDto} updateLeadStatusRequestDto
186
190
  * @param {string} [authorization] Bearer Token
187
191
  * @param {*} [options] Override http request option.
188
192
  * @throws {RequiredError}
189
193
  */
190
- updateLeadStatus(code: string, authorization?: string, options?: any): AxiosPromise<UpdateLeadStatusResponseClass>;
194
+ updateLeadStatus(code: string, updateLeadStatusRequestDto: UpdateLeadStatusRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateLeadStatusResponseClass>;
191
195
  };
192
196
  /**
193
197
  * Request parameters for createLeadStatus operation in LeadStatusesApi.
@@ -313,6 +317,12 @@ export interface LeadStatusesApiUpdateLeadStatusRequest {
313
317
  * @memberof LeadStatusesApiUpdateLeadStatus
314
318
  */
315
319
  readonly code: string;
320
+ /**
321
+ *
322
+ * @type {UpdateLeadStatusRequestDto}
323
+ * @memberof LeadStatusesApiUpdateLeadStatus
324
+ */
325
+ readonly updateLeadStatusRequestDto: UpdateLeadStatusRequestDto;
316
326
  /**
317
327
  * Bearer Token
318
328
  * @type {string}
@@ -317,11 +317,12 @@ var LeadStatusesApiAxiosParamCreator = function (configuration) {
317
317
  * Updates the specified lead status by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
318
318
  * @summary Update the lead status
319
319
  * @param {string} code
320
+ * @param {UpdateLeadStatusRequestDto} updateLeadStatusRequestDto
320
321
  * @param {string} [authorization] Bearer Token
321
322
  * @param {*} [options] Override http request option.
322
323
  * @throws {RequiredError}
323
324
  */
324
- updateLeadStatus: function (code, authorization, options) {
325
+ updateLeadStatus: function (code, updateLeadStatusRequestDto, authorization, options) {
325
326
  if (options === void 0) { options = {}; }
326
327
  return __awaiter(_this, void 0, void 0, function () {
327
328
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -330,6 +331,8 @@ var LeadStatusesApiAxiosParamCreator = function (configuration) {
330
331
  case 0:
331
332
  // verify required parameter 'code' is not null or undefined
332
333
  (0, common_1.assertParamExists)('updateLeadStatus', 'code', code);
334
+ // verify required parameter 'updateLeadStatusRequestDto' is not null or undefined
335
+ (0, common_1.assertParamExists)('updateLeadStatus', 'updateLeadStatusRequestDto', updateLeadStatusRequestDto);
333
336
  localVarPath = "/insuranceservice/v1/lead-statuses/{code}"
334
337
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
335
338
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -350,9 +353,11 @@ var LeadStatusesApiAxiosParamCreator = function (configuration) {
350
353
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
351
354
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
352
355
  }
356
+ localVarHeaderParameter['Content-Type'] = 'application/json';
353
357
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
354
358
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
355
359
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
360
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateLeadStatusRequestDto, localVarRequestOptions, configuration);
356
361
  return [2 /*return*/, {
357
362
  url: (0, common_1.toPathString)(localVarUrlObj),
358
363
  options: localVarRequestOptions,
@@ -465,16 +470,17 @@ var LeadStatusesApiFp = function (configuration) {
465
470
  * Updates the specified lead status by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
466
471
  * @summary Update the lead status
467
472
  * @param {string} code
473
+ * @param {UpdateLeadStatusRequestDto} updateLeadStatusRequestDto
468
474
  * @param {string} [authorization] Bearer Token
469
475
  * @param {*} [options] Override http request option.
470
476
  * @throws {RequiredError}
471
477
  */
472
- updateLeadStatus: function (code, authorization, options) {
478
+ updateLeadStatus: function (code, updateLeadStatusRequestDto, authorization, options) {
473
479
  return __awaiter(this, void 0, void 0, function () {
474
480
  var localVarAxiosArgs;
475
481
  return __generator(this, function (_a) {
476
482
  switch (_a.label) {
477
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateLeadStatus(code, authorization, options)];
483
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateLeadStatus(code, updateLeadStatusRequestDto, authorization, options)];
478
484
  case 1:
479
485
  localVarAxiosArgs = _a.sent();
480
486
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -546,12 +552,13 @@ var LeadStatusesApiFactory = function (configuration, basePath, axios) {
546
552
  * Updates the specified lead status by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
547
553
  * @summary Update the lead status
548
554
  * @param {string} code
555
+ * @param {UpdateLeadStatusRequestDto} updateLeadStatusRequestDto
549
556
  * @param {string} [authorization] Bearer Token
550
557
  * @param {*} [options] Override http request option.
551
558
  * @throws {RequiredError}
552
559
  */
553
- updateLeadStatus: function (code, authorization, options) {
554
- return localVarFp.updateLeadStatus(code, authorization, options).then(function (request) { return request(axios, basePath); });
560
+ updateLeadStatus: function (code, updateLeadStatusRequestDto, authorization, options) {
561
+ return localVarFp.updateLeadStatus(code, updateLeadStatusRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
555
562
  },
556
563
  };
557
564
  };
@@ -626,7 +633,7 @@ var LeadStatusesApi = /** @class */ (function (_super) {
626
633
  */
627
634
  LeadStatusesApi.prototype.updateLeadStatus = function (requestParameters, options) {
628
635
  var _this = this;
629
- return (0, exports.LeadStatusesApiFp)(this.configuration).updateLeadStatus(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
636
+ return (0, exports.LeadStatusesApiFp)(this.configuration).updateLeadStatus(requestParameters.code, requestParameters.updateLeadStatusRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
630
637
  };
631
638
  return LeadStatusesApi;
632
639
  }(base_1.BaseAPI));
@@ -111,11 +111,11 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
111
111
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
112
112
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
113
113
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
114
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData&lt;/i&gt;
114
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode&lt;/i&gt;
115
115
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
116
116
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId&lt;/i&gt;
117
117
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks&lt;i&gt;
118
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData&lt;/i&gt;
118
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode&lt;/i&gt;
119
119
  * @param {*} [options] Override http request option.
120
120
  * @throws {RequiredError}
121
121
  */
@@ -291,11 +291,11 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
291
291
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
292
292
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
293
293
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
294
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData&lt;/i&gt;
294
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode&lt;/i&gt;
295
295
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
296
296
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId&lt;/i&gt;
297
297
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks&lt;i&gt;
298
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData&lt;/i&gt;
298
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode&lt;/i&gt;
299
299
  * @param {*} [options] Override http request option.
300
300
  * @throws {RequiredError}
301
301
  */
@@ -471,11 +471,11 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
471
471
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
472
472
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
473
473
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
474
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData&lt;/i&gt;
474
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode&lt;/i&gt;
475
475
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
476
476
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId&lt;/i&gt;
477
477
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks&lt;i&gt;
478
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData&lt;/i&gt;
478
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode&lt;/i&gt;
479
479
  * @param {*} [options] Override http request option.
480
480
  * @throws {RequiredError}
481
481
  */
@@ -760,7 +760,7 @@ export interface PoliciesApiListPoliciesRequest {
760
760
  */
761
761
  readonly pageToken?: any;
762
762
  /**
763
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData&lt;/i&gt;
763
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode&lt;/i&gt;
764
764
  * @type {string}
765
765
  * @memberof PoliciesApiListPolicies
766
766
  */
@@ -784,7 +784,7 @@ export interface PoliciesApiListPoliciesRequest {
784
784
  */
785
785
  readonly expand?: string;
786
786
  /**
787
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData&lt;/i&gt;
787
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode&lt;/i&gt;
788
788
  * @type {string}
789
789
  * @memberof PoliciesApiListPolicies
790
790
  */
@@ -461,11 +461,11 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
461
461
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
462
462
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
463
463
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
464
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData&lt;/i&gt;
464
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode&lt;/i&gt;
465
465
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
466
466
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId&lt;/i&gt;
467
467
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks&lt;i&gt;
468
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData&lt;/i&gt;
468
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode&lt;/i&gt;
469
469
  * @param {*} [options] Override http request option.
470
470
  * @throws {RequiredError}
471
471
  */
@@ -1161,11 +1161,11 @@ var PoliciesApiFp = function (configuration) {
1161
1161
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1162
1162
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1163
1163
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
1164
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData&lt;/i&gt;
1164
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode&lt;/i&gt;
1165
1165
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1166
1166
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId&lt;/i&gt;
1167
1167
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks&lt;i&gt;
1168
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData&lt;/i&gt;
1168
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode&lt;/i&gt;
1169
1169
  * @param {*} [options] Override http request option.
1170
1170
  * @throws {RequiredError}
1171
1171
  */
@@ -1467,11 +1467,11 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
1467
1467
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1468
1468
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1469
1469
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
1470
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData&lt;/i&gt;
1470
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode&lt;/i&gt;
1471
1471
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1472
1472
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId&lt;/i&gt;
1473
1473
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks&lt;i&gt;
1474
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData&lt;/i&gt;
1474
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode&lt;/i&gt;
1475
1475
  * @param {*} [options] Override http request option.
1476
1476
  * @throws {RequiredError}
1477
1477
  */
@@ -12,6 +12,7 @@
12
12
  import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
+ import { DeleteResponseClass } from '../models';
15
16
  import { GetProductFactorResponseClass } from '../models';
16
17
  import { GetProductFactorValueResponseClass } from '../models';
17
18
  import { GetProductFactorsForVersionResponseClass } from '../models';
@@ -23,6 +24,14 @@ import { StoreProductFactorsResponseClass } from '../models';
23
24
  * @export
24
25
  */
25
26
  export declare const ProductFactorsApiAxiosParamCreator: (configuration?: Configuration) => {
27
+ /**
28
+ *
29
+ * @param {number} id
30
+ * @param {string} [authorization] Bearer Token
31
+ * @param {*} [options] Override http request option.
32
+ * @throws {RequiredError}
33
+ */
34
+ deleteProductFactor: (id: number, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
26
35
  /**
27
36
  * Retrieves the details of the product factor that was previously created. Supply the unique product factor id that was returned when you created it and Emil Api will return the corresponding product factor information.
28
37
  * @summary Retrieve the product factor
@@ -97,6 +106,14 @@ export declare const ProductFactorsApiAxiosParamCreator: (configuration?: Config
97
106
  * @export
98
107
  */
99
108
  export declare const ProductFactorsApiFp: (configuration?: Configuration) => {
109
+ /**
110
+ *
111
+ * @param {number} id
112
+ * @param {string} [authorization] Bearer Token
113
+ * @param {*} [options] Override http request option.
114
+ * @throws {RequiredError}
115
+ */
116
+ deleteProductFactor(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>>;
100
117
  /**
101
118
  * Retrieves the details of the product factor that was previously created. Supply the unique product factor id that was returned when you created it and Emil Api will return the corresponding product factor information.
102
119
  * @summary Retrieve the product factor
@@ -171,6 +188,14 @@ export declare const ProductFactorsApiFp: (configuration?: Configuration) => {
171
188
  * @export
172
189
  */
173
190
  export declare const ProductFactorsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
191
+ /**
192
+ *
193
+ * @param {number} id
194
+ * @param {string} [authorization] Bearer Token
195
+ * @param {*} [options] Override http request option.
196
+ * @throws {RequiredError}
197
+ */
198
+ deleteProductFactor(id: number, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass>;
174
199
  /**
175
200
  * Retrieves the details of the product factor that was previously created. Supply the unique product factor id that was returned when you created it and Emil Api will return the corresponding product factor information.
176
201
  * @summary Retrieve the product factor
@@ -240,6 +265,25 @@ export declare const ProductFactorsApiFactory: (configuration?: Configuration, b
240
265
  */
241
266
  validateProductFactors(authorization?: string, factors?: any, options?: any): AxiosPromise<GroupedProductFactorsResponseClass>;
242
267
  };
268
+ /**
269
+ * Request parameters for deleteProductFactor operation in ProductFactorsApi.
270
+ * @export
271
+ * @interface ProductFactorsApiDeleteProductFactorRequest
272
+ */
273
+ export interface ProductFactorsApiDeleteProductFactorRequest {
274
+ /**
275
+ *
276
+ * @type {number}
277
+ * @memberof ProductFactorsApiDeleteProductFactor
278
+ */
279
+ readonly id: number;
280
+ /**
281
+ * Bearer Token
282
+ * @type {string}
283
+ * @memberof ProductFactorsApiDeleteProductFactor
284
+ */
285
+ readonly authorization?: string;
286
+ }
243
287
  /**
244
288
  * Request parameters for getProductFactor operation in ProductFactorsApi.
245
289
  * @export
@@ -445,6 +489,14 @@ export interface ProductFactorsApiValidateProductFactorsRequest {
445
489
  * @extends {BaseAPI}
446
490
  */
447
491
  export declare class ProductFactorsApi extends BaseAPI {
492
+ /**
493
+ *
494
+ * @param {ProductFactorsApiDeleteProductFactorRequest} requestParameters Request parameters.
495
+ * @param {*} [options] Override http request option.
496
+ * @throws {RequiredError}
497
+ * @memberof ProductFactorsApi
498
+ */
499
+ deleteProductFactor(requestParameters: ProductFactorsApiDeleteProductFactorRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any>>;
448
500
  /**
449
501
  * Retrieves the details of the product factor that was previously created. Supply the unique product factor id that was returned when you created it and Emil Api will return the corresponding product factor information.
450
502
  * @summary Retrieve the product factor
@@ -96,6 +96,53 @@ var FormData = require('form-data');
96
96
  var ProductFactorsApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
+ /**
100
+ *
101
+ * @param {number} id
102
+ * @param {string} [authorization] Bearer Token
103
+ * @param {*} [options] Override http request option.
104
+ * @throws {RequiredError}
105
+ */
106
+ deleteProductFactor: function (id, authorization, options) {
107
+ if (options === void 0) { options = {}; }
108
+ return __awaiter(_this, void 0, void 0, function () {
109
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
110
+ return __generator(this, function (_a) {
111
+ switch (_a.label) {
112
+ case 0:
113
+ // verify required parameter 'id' is not null or undefined
114
+ (0, common_1.assertParamExists)('deleteProductFactor', 'id', id);
115
+ localVarPath = "/insuranceservice/v1/product-factors/{id}"
116
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
117
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
118
+ if (configuration) {
119
+ baseOptions = configuration.baseOptions;
120
+ baseAccessToken = configuration.accessToken;
121
+ }
122
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
123
+ localVarHeaderParameter = {};
124
+ localVarQueryParameter = {};
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
128
+ case 1:
129
+ // authentication bearer required
130
+ // http bearer authentication required
131
+ _a.sent();
132
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ }
135
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
136
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
137
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
138
+ return [2 /*return*/, {
139
+ url: (0, common_1.toPathString)(localVarUrlObj),
140
+ options: localVarRequestOptions,
141
+ }];
142
+ }
143
+ });
144
+ });
145
+ },
99
146
  /**
100
147
  * Retrieves the details of the product factor that was previously created. Supply the unique product factor id that was returned when you created it and Emil Api will return the corresponding product factor information.
101
148
  * @summary Retrieve the product factor
@@ -470,6 +517,26 @@ exports.ProductFactorsApiAxiosParamCreator = ProductFactorsApiAxiosParamCreator;
470
517
  var ProductFactorsApiFp = function (configuration) {
471
518
  var localVarAxiosParamCreator = (0, exports.ProductFactorsApiAxiosParamCreator)(configuration);
472
519
  return {
520
+ /**
521
+ *
522
+ * @param {number} id
523
+ * @param {string} [authorization] Bearer Token
524
+ * @param {*} [options] Override http request option.
525
+ * @throws {RequiredError}
526
+ */
527
+ deleteProductFactor: function (id, authorization, options) {
528
+ return __awaiter(this, void 0, void 0, function () {
529
+ var localVarAxiosArgs;
530
+ return __generator(this, function (_a) {
531
+ switch (_a.label) {
532
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteProductFactor(id, authorization, options)];
533
+ case 1:
534
+ localVarAxiosArgs = _a.sent();
535
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
536
+ }
537
+ });
538
+ });
539
+ },
473
540
  /**
474
541
  * Retrieves the details of the product factor that was previously created. Supply the unique product factor id that was returned when you created it and Emil Api will return the corresponding product factor information.
475
542
  * @summary Retrieve the product factor
@@ -620,6 +687,16 @@ exports.ProductFactorsApiFp = ProductFactorsApiFp;
620
687
  var ProductFactorsApiFactory = function (configuration, basePath, axios) {
621
688
  var localVarFp = (0, exports.ProductFactorsApiFp)(configuration);
622
689
  return {
690
+ /**
691
+ *
692
+ * @param {number} id
693
+ * @param {string} [authorization] Bearer Token
694
+ * @param {*} [options] Override http request option.
695
+ * @throws {RequiredError}
696
+ */
697
+ deleteProductFactor: function (id, authorization, options) {
698
+ return localVarFp.deleteProductFactor(id, authorization, options).then(function (request) { return request(axios, basePath); });
699
+ },
623
700
  /**
624
701
  * Retrieves the details of the product factor that was previously created. Supply the unique product factor id that was returned when you created it and Emil Api will return the corresponding product factor information.
625
702
  * @summary Retrieve the product factor
@@ -714,6 +791,17 @@ var ProductFactorsApi = /** @class */ (function (_super) {
714
791
  function ProductFactorsApi() {
715
792
  return _super !== null && _super.apply(this, arguments) || this;
716
793
  }
794
+ /**
795
+ *
796
+ * @param {ProductFactorsApiDeleteProductFactorRequest} requestParameters Request parameters.
797
+ * @param {*} [options] Override http request option.
798
+ * @throws {RequiredError}
799
+ * @memberof ProductFactorsApi
800
+ */
801
+ ProductFactorsApi.prototype.deleteProductFactor = function (requestParameters, options) {
802
+ var _this = this;
803
+ return (0, exports.ProductFactorsApiFp)(this.configuration).deleteProductFactor(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
804
+ };
717
805
  /**
718
806
  * Retrieves the details of the product factor that was previously created. Supply the unique product factor id that was returned when you created it and Emil Api will return the corresponding product factor information.
719
807
  * @summary Retrieve the product factor
@@ -204,6 +204,7 @@ export * from './update-emil-function-secret-request-dto';
204
204
  export * from './update-insured-object-request-dto';
205
205
  export * from './update-lead-request-dto';
206
206
  export * from './update-lead-response-class';
207
+ export * from './update-lead-status-request-dto';
207
208
  export * from './update-lead-status-response-class';
208
209
  export * from './update-named-range-request-dto';
209
210
  export * from './update-named-range-response-class';
@@ -220,6 +220,7 @@ __exportStar(require("./update-emil-function-secret-request-dto"), exports);
220
220
  __exportStar(require("./update-insured-object-request-dto"), exports);
221
221
  __exportStar(require("./update-lead-request-dto"), exports);
222
222
  __exportStar(require("./update-lead-response-class"), exports);
223
+ __exportStar(require("./update-lead-status-request-dto"), exports);
223
224
  __exportStar(require("./update-lead-status-response-class"), exports);
224
225
  __exportStar(require("./update-named-range-request-dto"), exports);
225
226
  __exportStar(require("./update-named-range-response-class"), exports);
@@ -0,0 +1,36 @@
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 UpdateLeadStatusRequestDto
16
+ */
17
+ export interface UpdateLeadStatusRequestDto {
18
+ /**
19
+ * The name of the lead status. Default statuses include \"Created\", \"Approved\", and \"Declined\". Tenants can define custom lead statuses if these default values do not align with their specific products or workflows.
20
+ * @type {string}
21
+ * @memberof UpdateLeadStatusRequestDto
22
+ */
23
+ 'name': string;
24
+ /**
25
+ * A unique identifier (slug) for the product associated with this lead status. The slug is used to link the lead status to a particular product in a tenant’s system.
26
+ * @type {string}
27
+ * @memberof UpdateLeadStatusRequestDto
28
+ */
29
+ 'productSlug': string;
30
+ /**
31
+ * Specifies whether this lead status should be automatically assigned to new leads when no specific status is provided in the create lead request. Only one status — whether predefined or custom — can have isDefault set to true at any time, with all others set to false. If a new status is marked with isDefault: true, it will automatically update isDefault to false for all other statuses.
32
+ * @type {boolean}
33
+ * @memberof UpdateLeadStatusRequestDto
34
+ */
35
+ 'isDefault'?: boolean;
36
+ }
@@ -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 });
package/models/index.ts CHANGED
@@ -204,6 +204,7 @@ export * from './update-emil-function-secret-request-dto';
204
204
  export * from './update-insured-object-request-dto';
205
205
  export * from './update-lead-request-dto';
206
206
  export * from './update-lead-response-class';
207
+ export * from './update-lead-status-request-dto';
207
208
  export * from './update-lead-status-response-class';
208
209
  export * from './update-named-range-request-dto';
209
210
  export * from './update-named-range-response-class';
@@ -0,0 +1,42 @@
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 UpdateLeadStatusRequestDto
21
+ */
22
+ export interface UpdateLeadStatusRequestDto {
23
+ /**
24
+ * The name of the lead status. Default statuses include \"Created\", \"Approved\", and \"Declined\". Tenants can define custom lead statuses if these default values do not align with their specific products or workflows.
25
+ * @type {string}
26
+ * @memberof UpdateLeadStatusRequestDto
27
+ */
28
+ 'name': string;
29
+ /**
30
+ * A unique identifier (slug) for the product associated with this lead status. The slug is used to link the lead status to a particular product in a tenant’s system.
31
+ * @type {string}
32
+ * @memberof UpdateLeadStatusRequestDto
33
+ */
34
+ 'productSlug': string;
35
+ /**
36
+ * Specifies whether this lead status should be automatically assigned to new leads when no specific status is provided in the create lead request. Only one status — whether predefined or custom — can have isDefault set to true at any time, with all others set to false. If a new status is marked with isDefault: true, it will automatically update isDefault to false for all other statuses.
37
+ * @type {boolean}
38
+ * @memberof UpdateLeadStatusRequestDto
39
+ */
40
+ 'isDefault'?: boolean;
41
+ }
42
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/insurance-sdk-node",
3
- "version": "1.55.0",
3
+ "version": "1.57.0",
4
4
  "description": "OpenAPI client for @emilgroup/insurance-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [