@emilgroup/insurance-sdk 1.62.0 → 1.63.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/README.md +2 -2
  3. package/api/policies-api.ts +20 -6
  4. package/api/products-api.ts +46 -56
  5. package/dist/api/policies-api.d.ts +12 -3
  6. package/dist/api/policies-api.js +12 -6
  7. package/dist/api/products-api.d.ts +39 -39
  8. package/dist/api/products-api.js +28 -37
  9. package/dist/models/booking-funnel-class.d.ts +6 -0
  10. package/dist/models/create-booking-funnel-request-dto.d.ts +7 -1
  11. package/dist/models/create-lead-status-request-dto.d.ts +6 -0
  12. package/dist/models/create-partner-role-request-dto.d.ts +6 -0
  13. package/dist/models/get-policy-data-by-date-request-dto.d.ts +6 -0
  14. package/dist/models/get-product-request-dto.d.ts +3 -3
  15. package/dist/models/index.d.ts +1 -0
  16. package/dist/models/index.js +1 -0
  17. package/dist/models/lead-class.d.ts +3 -3
  18. package/dist/models/lead-status-class.d.ts +6 -0
  19. package/dist/models/link-lead-partner-request-dto.d.ts +14 -2
  20. package/dist/models/link-partner-request-dto.d.ts +16 -4
  21. package/dist/models/omit-type-class.d.ts +84 -0
  22. package/dist/models/omit-type-class.js +15 -0
  23. package/dist/models/partner-role-class.d.ts +6 -0
  24. package/dist/models/update-lead-status-request-dto.d.ts +6 -0
  25. package/dist/models/update-partner-role-request-dto.d.ts +6 -0
  26. package/models/booking-funnel-class.ts +6 -0
  27. package/models/create-booking-funnel-request-dto.ts +7 -1
  28. package/models/create-lead-status-request-dto.ts +6 -0
  29. package/models/create-partner-role-request-dto.ts +6 -0
  30. package/models/get-policy-data-by-date-request-dto.ts +6 -0
  31. package/models/get-product-request-dto.ts +3 -3
  32. package/models/index.ts +1 -0
  33. package/models/lead-class.ts +3 -3
  34. package/models/lead-status-class.ts +6 -0
  35. package/models/link-lead-partner-request-dto.ts +14 -2
  36. package/models/link-partner-request-dto.ts +16 -4
  37. package/models/omit-type-class.ts +90 -0
  38. package/models/partner-role-class.ts +6 -0
  39. package/models/update-lead-status-request-dto.ts +6 -0
  40. package/models/update-partner-role-request-dto.ts +6 -0
  41. package/package.json +1 -1
@@ -180,6 +180,7 @@ models/list-products-response-class.ts
180
180
  models/list-request-dto.ts
181
181
  models/list-status-transition-rules-response-class.ts
182
182
  models/named-range-class.ts
183
+ models/omit-type-class.ts
183
184
  models/partner-class.ts
184
185
  models/partner-link-class.ts
185
186
  models/partner-role-class.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/insurance-sdk@1.62.0 --save
20
+ npm install @emilgroup/insurance-sdk@1.63.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/insurance-sdk@1.62.0
24
+ yarn add @emilgroup/insurance-sdk@1.63.0
25
25
  ```
26
26
 
27
27
  And then you can import `PoliciesApi`.
@@ -366,10 +366,11 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
366
366
  * @param {string} code Unique identifier for the object.
367
367
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
368
368
  * @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices available.
369
+ * @param {string} [expand] Expand to fetch additional information for current version or specified timeslice of the policy.<br/> <br/> <i>Expand by: \"premiums\", \"premiumItems\", \"premiumFormulas\", \"timelines,product\", or \"timelines,partnerLinks\"<i>
369
370
  * @param {*} [options] Override http request option.
370
371
  * @throws {RequiredError}
371
372
  */
372
- getPolicyDataByDate: async (code: string, authorization?: string, timesliceDate?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
373
+ getPolicyDataByDate: async (code: string, authorization?: string, timesliceDate?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
373
374
  // verify required parameter 'code' is not null or undefined
374
375
  assertParamExists('getPolicyDataByDate', 'code', code)
375
376
  const localVarPath = `/insuranceservice/v1/policies/{code}/current-version`
@@ -395,6 +396,10 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
395
396
  localVarQueryParameter['timesliceDate'] = timesliceDate;
396
397
  }
397
398
 
399
+ if (expand !== undefined) {
400
+ localVarQueryParameter['expand'] = expand;
401
+ }
402
+
398
403
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
399
404
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
400
405
  }
@@ -1040,11 +1045,12 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
1040
1045
  * @param {string} code Unique identifier for the object.
1041
1046
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1042
1047
  * @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices available.
1048
+ * @param {string} [expand] Expand to fetch additional information for current version or specified timeslice of the policy.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Expand by: \&quot;premiums\&quot;, \&quot;premiumItems\&quot;, \&quot;premiumFormulas\&quot;, \&quot;timelines,product\&quot;, or \&quot;timelines,partnerLinks\&quot;&lt;i&gt;
1043
1049
  * @param {*} [options] Override http request option.
1044
1050
  * @throws {RequiredError}
1045
1051
  */
1046
- async getPolicyDataByDate(code: string, authorization?: string, timesliceDate?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyResponseClass>> {
1047
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicyDataByDate(code, authorization, timesliceDate, options);
1052
+ async getPolicyDataByDate(code: string, authorization?: string, timesliceDate?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyResponseClass>> {
1053
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicyDataByDate(code, authorization, timesliceDate, expand, options);
1048
1054
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1049
1055
  },
1050
1056
  /**
@@ -1266,11 +1272,12 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
1266
1272
  * @param {string} code Unique identifier for the object.
1267
1273
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1268
1274
  * @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices available.
1275
+ * @param {string} [expand] Expand to fetch additional information for current version or specified timeslice of the policy.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Expand by: \&quot;premiums\&quot;, \&quot;premiumItems\&quot;, \&quot;premiumFormulas\&quot;, \&quot;timelines,product\&quot;, or \&quot;timelines,partnerLinks\&quot;&lt;i&gt;
1269
1276
  * @param {*} [options] Override http request option.
1270
1277
  * @throws {RequiredError}
1271
1278
  */
1272
- getPolicyDataByDate(code: string, authorization?: string, timesliceDate?: string, options?: any): AxiosPromise<GetPolicyResponseClass> {
1273
- return localVarFp.getPolicyDataByDate(code, authorization, timesliceDate, options).then((request) => request(axios, basePath));
1279
+ getPolicyDataByDate(code: string, authorization?: string, timesliceDate?: string, expand?: string, options?: any): AxiosPromise<GetPolicyResponseClass> {
1280
+ return localVarFp.getPolicyDataByDate(code, authorization, timesliceDate, expand, options).then((request) => request(axios, basePath));
1274
1281
  },
1275
1282
  /**
1276
1283
  * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
@@ -1579,6 +1586,13 @@ export interface PoliciesApiGetPolicyDataByDateRequest {
1579
1586
  * @memberof PoliciesApiGetPolicyDataByDate
1580
1587
  */
1581
1588
  readonly timesliceDate?: string
1589
+
1590
+ /**
1591
+ * Expand to fetch additional information for current version or specified timeslice of the policy.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Expand by: \&quot;premiums\&quot;, \&quot;premiumItems\&quot;, \&quot;premiumFormulas\&quot;, \&quot;timelines,product\&quot;, or \&quot;timelines,partnerLinks\&quot;&lt;i&gt;
1592
+ * @type {string}
1593
+ * @memberof PoliciesApiGetPolicyDataByDate
1594
+ */
1595
+ readonly expand?: string
1582
1596
  }
1583
1597
 
1584
1598
  /**
@@ -2033,7 +2047,7 @@ export class PoliciesApi extends BaseAPI {
2033
2047
  * @memberof PoliciesApi
2034
2048
  */
2035
2049
  public getPolicyDataByDate(requestParameters: PoliciesApiGetPolicyDataByDateRequest, options?: AxiosRequestConfig) {
2036
- return PoliciesApiFp(this.configuration).getPolicyDataByDate(requestParameters.code, requestParameters.authorization, requestParameters.timesliceDate, options).then((request) => request(this.axios, this.basePath));
2050
+ return PoliciesApiFp(this.configuration).getPolicyDataByDate(requestParameters.code, requestParameters.authorization, requestParameters.timesliceDate, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
2037
2051
  }
2038
2052
 
2039
2053
  /**
@@ -136,20 +136,16 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
136
136
  * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
137
137
  * @summary Retrieve the product
138
138
  * @param {string} code Unique identifier for the object.
139
- * @param {number} id Unique identifier referencing the product.
140
- * @param {string} slug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
141
139
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
140
+ * @param {number} [id] Unique identifier referencing the product.
141
+ * @param {string} [slug] A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
142
142
  * @param {string} [expand] Fields to expand response by
143
143
  * @param {*} [options] Override http request option.
144
144
  * @throws {RequiredError}
145
145
  */
146
- getProductByCode: async (code: string, id: number, slug: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
146
+ getProductByCode: async (code: string, authorization?: string, id?: number, slug?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
147
147
  // verify required parameter 'code' is not null or undefined
148
148
  assertParamExists('getProductByCode', 'code', code)
149
- // verify required parameter 'id' is not null or undefined
150
- assertParamExists('getProductByCode', 'id', id)
151
- // verify required parameter 'slug' is not null or undefined
152
- assertParamExists('getProductByCode', 'slug', slug)
153
149
  const localVarPath = `/insuranceservice/v1/products/code/{code}`
154
150
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
155
151
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -199,21 +195,15 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
199
195
  /**
200
196
  * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
201
197
  * @summary Retrieve the product
202
- * @param {number} id Unique identifier referencing the product.
203
- * @param {string} code Unique identifier of the product that this object belongs to.
204
- * @param {string} slug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
205
198
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
199
+ * @param {number} [id] Unique identifier referencing the product.
200
+ * @param {string} [code] Unique identifier of the product that this object belongs to.
201
+ * @param {string} [slug] A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
206
202
  * @param {string} [expand] Fields to expand response by
207
203
  * @param {*} [options] Override http request option.
208
204
  * @throws {RequiredError}
209
205
  */
210
- getProductByIdentifier: async (id: number, code: string, slug: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
211
- // verify required parameter 'id' is not null or undefined
212
- assertParamExists('getProductByIdentifier', 'id', id)
213
- // verify required parameter 'code' is not null or undefined
214
- assertParamExists('getProductByIdentifier', 'code', code)
215
- // verify required parameter 'slug' is not null or undefined
216
- assertParamExists('getProductByIdentifier', 'slug', slug)
206
+ getProductByIdentifier: async (authorization?: string, id?: number, code?: string, slug?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
217
207
  const localVarPath = `/insuranceservice/v1/products/get-by-identifier`;
218
208
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
219
209
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -428,30 +418,30 @@ export const ProductsApiFp = function(configuration?: Configuration) {
428
418
  * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
429
419
  * @summary Retrieve the product
430
420
  * @param {string} code Unique identifier for the object.
431
- * @param {number} id Unique identifier referencing the product.
432
- * @param {string} slug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
433
421
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
422
+ * @param {number} [id] Unique identifier referencing the product.
423
+ * @param {string} [slug] A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
434
424
  * @param {string} [expand] Fields to expand response by
435
425
  * @param {*} [options] Override http request option.
436
426
  * @throws {RequiredError}
437
427
  */
438
- async getProductByCode(code: string, id: number, slug: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductResponseClass>> {
439
- const localVarAxiosArgs = await localVarAxiosParamCreator.getProductByCode(code, id, slug, authorization, expand, options);
428
+ async getProductByCode(code: string, authorization?: string, id?: number, slug?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductResponseClass>> {
429
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProductByCode(code, authorization, id, slug, expand, options);
440
430
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
441
431
  },
442
432
  /**
443
433
  * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
444
434
  * @summary Retrieve the product
445
- * @param {number} id Unique identifier referencing the product.
446
- * @param {string} code Unique identifier of the product that this object belongs to.
447
- * @param {string} slug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
448
435
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
436
+ * @param {number} [id] Unique identifier referencing the product.
437
+ * @param {string} [code] Unique identifier of the product that this object belongs to.
438
+ * @param {string} [slug] A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
449
439
  * @param {string} [expand] Fields to expand response by
450
440
  * @param {*} [options] Override http request option.
451
441
  * @throws {RequiredError}
452
442
  */
453
- async getProductByIdentifier(id: number, code: string, slug: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductResponseClass>> {
454
- const localVarAxiosArgs = await localVarAxiosParamCreator.getProductByIdentifier(id, code, slug, authorization, expand, options);
443
+ async getProductByIdentifier(authorization?: string, id?: number, code?: string, slug?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductResponseClass>> {
444
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProductByIdentifier(authorization, id, code, slug, expand, options);
455
445
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
456
446
  },
457
447
  /**
@@ -521,29 +511,29 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
521
511
  * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
522
512
  * @summary Retrieve the product
523
513
  * @param {string} code Unique identifier for the object.
524
- * @param {number} id Unique identifier referencing the product.
525
- * @param {string} slug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
526
514
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
515
+ * @param {number} [id] Unique identifier referencing the product.
516
+ * @param {string} [slug] A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
527
517
  * @param {string} [expand] Fields to expand response by
528
518
  * @param {*} [options] Override http request option.
529
519
  * @throws {RequiredError}
530
520
  */
531
- getProductByCode(code: string, id: number, slug: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetProductResponseClass> {
532
- return localVarFp.getProductByCode(code, id, slug, authorization, expand, options).then((request) => request(axios, basePath));
521
+ getProductByCode(code: string, authorization?: string, id?: number, slug?: string, expand?: string, options?: any): AxiosPromise<GetProductResponseClass> {
522
+ return localVarFp.getProductByCode(code, authorization, id, slug, expand, options).then((request) => request(axios, basePath));
533
523
  },
534
524
  /**
535
525
  * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
536
526
  * @summary Retrieve the product
537
- * @param {number} id Unique identifier referencing the product.
538
- * @param {string} code Unique identifier of the product that this object belongs to.
539
- * @param {string} slug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
540
527
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
528
+ * @param {number} [id] Unique identifier referencing the product.
529
+ * @param {string} [code] Unique identifier of the product that this object belongs to.
530
+ * @param {string} [slug] A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
541
531
  * @param {string} [expand] Fields to expand response by
542
532
  * @param {*} [options] Override http request option.
543
533
  * @throws {RequiredError}
544
534
  */
545
- getProductByIdentifier(id: number, code: string, slug: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetProductResponseClass> {
546
- return localVarFp.getProductByIdentifier(id, code, slug, authorization, expand, options).then((request) => request(axios, basePath));
535
+ getProductByIdentifier(authorization?: string, id?: number, code?: string, slug?: string, expand?: string, options?: any): AxiosPromise<GetProductResponseClass> {
536
+ return localVarFp.getProductByIdentifier(authorization, id, code, slug, expand, options).then((request) => request(axios, basePath));
547
537
  },
548
538
  /**
549
539
  * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
@@ -633,25 +623,25 @@ export interface ProductsApiGetProductByCodeRequest {
633
623
  readonly code: string
634
624
 
635
625
  /**
636
- * Unique identifier referencing the product.
637
- * @type {number}
626
+ * Bearer Token: provided by the login endpoint under the name accessToken.
627
+ * @type {string}
638
628
  * @memberof ProductsApiGetProductByCode
639
629
  */
640
- readonly id: number
630
+ readonly authorization?: string
641
631
 
642
632
  /**
643
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
644
- * @type {string}
633
+ * Unique identifier referencing the product.
634
+ * @type {number}
645
635
  * @memberof ProductsApiGetProductByCode
646
636
  */
647
- readonly slug: string
637
+ readonly id?: number
648
638
 
649
639
  /**
650
- * Bearer Token: provided by the login endpoint under the name accessToken.
640
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
651
641
  * @type {string}
652
642
  * @memberof ProductsApiGetProductByCode
653
643
  */
654
- readonly authorization?: string
644
+ readonly slug?: string
655
645
 
656
646
  /**
657
647
  * Fields to expand response by
@@ -668,32 +658,32 @@ export interface ProductsApiGetProductByCodeRequest {
668
658
  */
669
659
  export interface ProductsApiGetProductByIdentifierRequest {
670
660
  /**
671
- * Unique identifier referencing the product.
672
- * @type {number}
661
+ * Bearer Token: provided by the login endpoint under the name accessToken.
662
+ * @type {string}
673
663
  * @memberof ProductsApiGetProductByIdentifier
674
664
  */
675
- readonly id: number
665
+ readonly authorization?: string
676
666
 
677
667
  /**
678
- * Unique identifier of the product that this object belongs to.
679
- * @type {string}
668
+ * Unique identifier referencing the product.
669
+ * @type {number}
680
670
  * @memberof ProductsApiGetProductByIdentifier
681
671
  */
682
- readonly code: string
672
+ readonly id?: number
683
673
 
684
674
  /**
685
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
675
+ * Unique identifier of the product that this object belongs to.
686
676
  * @type {string}
687
677
  * @memberof ProductsApiGetProductByIdentifier
688
678
  */
689
- readonly slug: string
679
+ readonly code?: string
690
680
 
691
681
  /**
692
- * Bearer Token: provided by the login endpoint under the name accessToken.
682
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
693
683
  * @type {string}
694
684
  * @memberof ProductsApiGetProductByIdentifier
695
685
  */
696
- readonly authorization?: string
686
+ readonly slug?: string
697
687
 
698
688
  /**
699
689
  * Fields to expand response by
@@ -834,7 +824,7 @@ export class ProductsApi extends BaseAPI {
834
824
  * @memberof ProductsApi
835
825
  */
836
826
  public getProductByCode(requestParameters: ProductsApiGetProductByCodeRequest, options?: AxiosRequestConfig) {
837
- return ProductsApiFp(this.configuration).getProductByCode(requestParameters.code, requestParameters.id, requestParameters.slug, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
827
+ return ProductsApiFp(this.configuration).getProductByCode(requestParameters.code, requestParameters.authorization, requestParameters.id, requestParameters.slug, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
838
828
  }
839
829
 
840
830
  /**
@@ -845,8 +835,8 @@ export class ProductsApi extends BaseAPI {
845
835
  * @throws {RequiredError}
846
836
  * @memberof ProductsApi
847
837
  */
848
- public getProductByIdentifier(requestParameters: ProductsApiGetProductByIdentifierRequest, options?: AxiosRequestConfig) {
849
- return ProductsApiFp(this.configuration).getProductByIdentifier(requestParameters.id, requestParameters.code, requestParameters.slug, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
838
+ public getProductByIdentifier(requestParameters: ProductsApiGetProductByIdentifierRequest = {}, options?: AxiosRequestConfig) {
839
+ return ProductsApiFp(this.configuration).getProductByIdentifier(requestParameters.authorization, requestParameters.id, requestParameters.code, requestParameters.slug, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
850
840
  }
851
841
 
852
842
  /**
@@ -101,10 +101,11 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
101
101
  * @param {string} code Unique identifier for the object.
102
102
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
103
103
  * @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices available.
104
+ * @param {string} [expand] Expand to fetch additional information for current version or specified timeslice of the policy.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Expand by: \&quot;premiums\&quot;, \&quot;premiumItems\&quot;, \&quot;premiumFormulas\&quot;, \&quot;timelines,product\&quot;, or \&quot;timelines,partnerLinks\&quot;&lt;i&gt;
104
105
  * @param {*} [options] Override http request option.
105
106
  * @throws {RequiredError}
106
107
  */
107
- getPolicyDataByDate: (code: string, authorization?: string, timesliceDate?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
108
+ getPolicyDataByDate: (code: string, authorization?: string, timesliceDate?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
108
109
  /**
109
110
  * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
110
111
  * @summary List policies
@@ -281,10 +282,11 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
281
282
  * @param {string} code Unique identifier for the object.
282
283
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
283
284
  * @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices available.
285
+ * @param {string} [expand] Expand to fetch additional information for current version or specified timeslice of the policy.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Expand by: \&quot;premiums\&quot;, \&quot;premiumItems\&quot;, \&quot;premiumFormulas\&quot;, \&quot;timelines,product\&quot;, or \&quot;timelines,partnerLinks\&quot;&lt;i&gt;
284
286
  * @param {*} [options] Override http request option.
285
287
  * @throws {RequiredError}
286
288
  */
287
- getPolicyDataByDate(code: string, authorization?: string, timesliceDate?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyResponseClass>>;
289
+ getPolicyDataByDate(code: string, authorization?: string, timesliceDate?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyResponseClass>>;
288
290
  /**
289
291
  * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
290
292
  * @summary List policies
@@ -461,10 +463,11 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
461
463
  * @param {string} code Unique identifier for the object.
462
464
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
463
465
  * @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices available.
466
+ * @param {string} [expand] Expand to fetch additional information for current version or specified timeslice of the policy.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Expand by: \&quot;premiums\&quot;, \&quot;premiumItems\&quot;, \&quot;premiumFormulas\&quot;, \&quot;timelines,product\&quot;, or \&quot;timelines,partnerLinks\&quot;&lt;i&gt;
464
467
  * @param {*} [options] Override http request option.
465
468
  * @throws {RequiredError}
466
469
  */
467
- getPolicyDataByDate(code: string, authorization?: string, timesliceDate?: string, options?: any): AxiosPromise<GetPolicyResponseClass>;
470
+ getPolicyDataByDate(code: string, authorization?: string, timesliceDate?: string, expand?: string, options?: any): AxiosPromise<GetPolicyResponseClass>;
468
471
  /**
469
472
  * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
470
473
  * @summary List policies
@@ -734,6 +737,12 @@ export interface PoliciesApiGetPolicyDataByDateRequest {
734
737
  * @memberof PoliciesApiGetPolicyDataByDate
735
738
  */
736
739
  readonly timesliceDate?: string;
740
+ /**
741
+ * Expand to fetch additional information for current version or specified timeslice of the policy.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Expand by: \&quot;premiums\&quot;, \&quot;premiumItems\&quot;, \&quot;premiumFormulas\&quot;, \&quot;timelines,product\&quot;, or \&quot;timelines,partnerLinks\&quot;&lt;i&gt;
742
+ * @type {string}
743
+ * @memberof PoliciesApiGetPolicyDataByDate
744
+ */
745
+ readonly expand?: string;
737
746
  }
738
747
  /**
739
748
  * Request parameters for listPolicies operation in PoliciesApi.
@@ -405,10 +405,11 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
405
405
  * @param {string} code Unique identifier for the object.
406
406
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
407
407
  * @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices available.
408
+ * @param {string} [expand] Expand to fetch additional information for current version or specified timeslice of the policy.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Expand by: \&quot;premiums\&quot;, \&quot;premiumItems\&quot;, \&quot;premiumFormulas\&quot;, \&quot;timelines,product\&quot;, or \&quot;timelines,partnerLinks\&quot;&lt;i&gt;
408
409
  * @param {*} [options] Override http request option.
409
410
  * @throws {RequiredError}
410
411
  */
411
- getPolicyDataByDate: function (code, authorization, timesliceDate, options) {
412
+ getPolicyDataByDate: function (code, authorization, timesliceDate, expand, options) {
412
413
  if (options === void 0) { options = {}; }
413
414
  return __awaiter(_this, void 0, void 0, function () {
414
415
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -437,6 +438,9 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
437
438
  if (timesliceDate !== undefined) {
438
439
  localVarQueryParameter['timesliceDate'] = timesliceDate;
439
440
  }
441
+ if (expand !== undefined) {
442
+ localVarQueryParameter['expand'] = expand;
443
+ }
440
444
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
441
445
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
442
446
  }
@@ -1135,15 +1139,16 @@ var PoliciesApiFp = function (configuration) {
1135
1139
  * @param {string} code Unique identifier for the object.
1136
1140
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1137
1141
  * @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices available.
1142
+ * @param {string} [expand] Expand to fetch additional information for current version or specified timeslice of the policy.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Expand by: \&quot;premiums\&quot;, \&quot;premiumItems\&quot;, \&quot;premiumFormulas\&quot;, \&quot;timelines,product\&quot;, or \&quot;timelines,partnerLinks\&quot;&lt;i&gt;
1138
1143
  * @param {*} [options] Override http request option.
1139
1144
  * @throws {RequiredError}
1140
1145
  */
1141
- getPolicyDataByDate: function (code, authorization, timesliceDate, options) {
1146
+ getPolicyDataByDate: function (code, authorization, timesliceDate, expand, options) {
1142
1147
  return __awaiter(this, void 0, void 0, function () {
1143
1148
  var localVarAxiosArgs;
1144
1149
  return __generator(this, function (_a) {
1145
1150
  switch (_a.label) {
1146
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPolicyDataByDate(code, authorization, timesliceDate, options)];
1151
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPolicyDataByDate(code, authorization, timesliceDate, expand, options)];
1147
1152
  case 1:
1148
1153
  localVarAxiosArgs = _a.sent();
1149
1154
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -1451,11 +1456,12 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
1451
1456
  * @param {string} code Unique identifier for the object.
1452
1457
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1453
1458
  * @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices available.
1459
+ * @param {string} [expand] Expand to fetch additional information for current version or specified timeslice of the policy.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Expand by: \&quot;premiums\&quot;, \&quot;premiumItems\&quot;, \&quot;premiumFormulas\&quot;, \&quot;timelines,product\&quot;, or \&quot;timelines,partnerLinks\&quot;&lt;i&gt;
1454
1460
  * @param {*} [options] Override http request option.
1455
1461
  * @throws {RequiredError}
1456
1462
  */
1457
- getPolicyDataByDate: function (code, authorization, timesliceDate, options) {
1458
- return localVarFp.getPolicyDataByDate(code, authorization, timesliceDate, options).then(function (request) { return request(axios, basePath); });
1463
+ getPolicyDataByDate: function (code, authorization, timesliceDate, expand, options) {
1464
+ return localVarFp.getPolicyDataByDate(code, authorization, timesliceDate, expand, options).then(function (request) { return request(axios, basePath); });
1459
1465
  },
1460
1466
  /**
1461
1467
  * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
@@ -1677,7 +1683,7 @@ var PoliciesApi = /** @class */ (function (_super) {
1677
1683
  */
1678
1684
  PoliciesApi.prototype.getPolicyDataByDate = function (requestParameters, options) {
1679
1685
  var _this = this;
1680
- return (0, exports.PoliciesApiFp)(this.configuration).getPolicyDataByDate(requestParameters.code, requestParameters.authorization, requestParameters.timesliceDate, options).then(function (request) { return request(_this.axios, _this.basePath); });
1686
+ return (0, exports.PoliciesApiFp)(this.configuration).getPolicyDataByDate(requestParameters.code, requestParameters.authorization, requestParameters.timesliceDate, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
1681
1687
  };
1682
1688
  /**
1683
1689
  * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.