@emilgroup/insurance-sdk-node 1.61.0 → 1.62.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-node@1.61.0 --save
20
+ npm install @emilgroup/insurance-sdk-node@1.62.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/insurance-sdk-node@1.61.0
24
+ yarn add @emilgroup/insurance-sdk-node@1.62.0
25
25
  ```
26
26
 
27
27
  And then you can import `PoliciesApi`.
@@ -370,10 +370,11 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
370
370
  * @param {string} code Unique identifier for the object.
371
371
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
372
372
  * @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.
373
+ * @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>
373
374
  * @param {*} [options] Override http request option.
374
375
  * @throws {RequiredError}
375
376
  */
376
- getPolicyDataByDate: async (code: string, authorization?: string, timesliceDate?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
377
+ getPolicyDataByDate: async (code: string, authorization?: string, timesliceDate?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
377
378
  // verify required parameter 'code' is not null or undefined
378
379
  assertParamExists('getPolicyDataByDate', 'code', code)
379
380
  const localVarPath = `/insuranceservice/v1/policies/{code}/current-version`
@@ -399,6 +400,10 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
399
400
  localVarQueryParameter['timesliceDate'] = timesliceDate;
400
401
  }
401
402
 
403
+ if (expand !== undefined) {
404
+ localVarQueryParameter['expand'] = expand;
405
+ }
406
+
402
407
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
403
408
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
404
409
  }
@@ -1044,11 +1049,12 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
1044
1049
  * @param {string} code Unique identifier for the object.
1045
1050
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1046
1051
  * @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.
1052
+ * @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;
1047
1053
  * @param {*} [options] Override http request option.
1048
1054
  * @throws {RequiredError}
1049
1055
  */
1050
- async getPolicyDataByDate(code: string, authorization?: string, timesliceDate?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyResponseClass>> {
1051
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicyDataByDate(code, authorization, timesliceDate, options);
1056
+ async getPolicyDataByDate(code: string, authorization?: string, timesliceDate?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyResponseClass>> {
1057
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicyDataByDate(code, authorization, timesliceDate, expand, options);
1052
1058
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1053
1059
  },
1054
1060
  /**
@@ -1270,11 +1276,12 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
1270
1276
  * @param {string} code Unique identifier for the object.
1271
1277
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1272
1278
  * @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.
1279
+ * @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;
1273
1280
  * @param {*} [options] Override http request option.
1274
1281
  * @throws {RequiredError}
1275
1282
  */
1276
- getPolicyDataByDate(code: string, authorization?: string, timesliceDate?: string, options?: any): AxiosPromise<GetPolicyResponseClass> {
1277
- return localVarFp.getPolicyDataByDate(code, authorization, timesliceDate, options).then((request) => request(axios, basePath));
1283
+ getPolicyDataByDate(code: string, authorization?: string, timesliceDate?: string, expand?: string, options?: any): AxiosPromise<GetPolicyResponseClass> {
1284
+ return localVarFp.getPolicyDataByDate(code, authorization, timesliceDate, expand, options).then((request) => request(axios, basePath));
1278
1285
  },
1279
1286
  /**
1280
1287
  * 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.
@@ -1583,6 +1590,13 @@ export interface PoliciesApiGetPolicyDataByDateRequest {
1583
1590
  * @memberof PoliciesApiGetPolicyDataByDate
1584
1591
  */
1585
1592
  readonly timesliceDate?: string
1593
+
1594
+ /**
1595
+ * 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;
1596
+ * @type {string}
1597
+ * @memberof PoliciesApiGetPolicyDataByDate
1598
+ */
1599
+ readonly expand?: string
1586
1600
  }
1587
1601
 
1588
1602
  /**
@@ -2037,7 +2051,7 @@ export class PoliciesApi extends BaseAPI {
2037
2051
  * @memberof PoliciesApi
2038
2052
  */
2039
2053
  public getPolicyDataByDate(requestParameters: PoliciesApiGetPolicyDataByDateRequest, options?: AxiosRequestConfig) {
2040
- return PoliciesApiFp(this.configuration).getPolicyDataByDate(requestParameters.code, requestParameters.authorization, requestParameters.timesliceDate, options).then((request) => request(this.axios, this.basePath));
2054
+ return PoliciesApiFp(this.configuration).getPolicyDataByDate(requestParameters.code, requestParameters.authorization, requestParameters.timesliceDate, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
2041
2055
  }
2042
2056
 
2043
2057
  /**
@@ -140,20 +140,16 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
140
140
  * 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.
141
141
  * @summary Retrieve the product
142
142
  * @param {string} code Unique identifier for the object.
143
- * @param {number} id Unique identifier referencing the product.
144
- * @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.
145
143
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
144
+ * @param {number} [id] Unique identifier referencing the product.
145
+ * @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.
146
146
  * @param {string} [expand] Fields to expand response by
147
147
  * @param {*} [options] Override http request option.
148
148
  * @throws {RequiredError}
149
149
  */
150
- getProductByCode: async (code: string, id: number, slug: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
150
+ getProductByCode: async (code: string, authorization?: string, id?: number, slug?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
151
151
  // verify required parameter 'code' is not null or undefined
152
152
  assertParamExists('getProductByCode', 'code', code)
153
- // verify required parameter 'id' is not null or undefined
154
- assertParamExists('getProductByCode', 'id', id)
155
- // verify required parameter 'slug' is not null or undefined
156
- assertParamExists('getProductByCode', 'slug', slug)
157
153
  const localVarPath = `/insuranceservice/v1/products/code/{code}`
158
154
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
159
155
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -203,21 +199,15 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
203
199
  /**
204
200
  * 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.
205
201
  * @summary Retrieve the product
206
- * @param {number} id Unique identifier referencing the product.
207
- * @param {string} code Unique identifier of the product that this object belongs to.
208
- * @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.
209
202
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
203
+ * @param {number} [id] Unique identifier referencing the product.
204
+ * @param {string} [code] Unique identifier of the product that this object belongs to.
205
+ * @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.
210
206
  * @param {string} [expand] Fields to expand response by
211
207
  * @param {*} [options] Override http request option.
212
208
  * @throws {RequiredError}
213
209
  */
214
- getProductByIdentifier: async (id: number, code: string, slug: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
215
- // verify required parameter 'id' is not null or undefined
216
- assertParamExists('getProductByIdentifier', 'id', id)
217
- // verify required parameter 'code' is not null or undefined
218
- assertParamExists('getProductByIdentifier', 'code', code)
219
- // verify required parameter 'slug' is not null or undefined
220
- assertParamExists('getProductByIdentifier', 'slug', slug)
210
+ getProductByIdentifier: async (authorization?: string, id?: number, code?: string, slug?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
221
211
  const localVarPath = `/insuranceservice/v1/products/get-by-identifier`;
222
212
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
223
213
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -432,30 +422,30 @@ export const ProductsApiFp = function(configuration?: Configuration) {
432
422
  * 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.
433
423
  * @summary Retrieve the product
434
424
  * @param {string} code Unique identifier for the object.
435
- * @param {number} id Unique identifier referencing the product.
436
- * @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.
437
425
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
426
+ * @param {number} [id] Unique identifier referencing the product.
427
+ * @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.
438
428
  * @param {string} [expand] Fields to expand response by
439
429
  * @param {*} [options] Override http request option.
440
430
  * @throws {RequiredError}
441
431
  */
442
- async getProductByCode(code: string, id: number, slug: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductResponseClass>> {
443
- const localVarAxiosArgs = await localVarAxiosParamCreator.getProductByCode(code, id, slug, authorization, expand, options);
432
+ async getProductByCode(code: string, authorization?: string, id?: number, slug?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductResponseClass>> {
433
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProductByCode(code, authorization, id, slug, expand, options);
444
434
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
445
435
  },
446
436
  /**
447
437
  * 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.
448
438
  * @summary Retrieve the product
449
- * @param {number} id Unique identifier referencing the product.
450
- * @param {string} code Unique identifier of the product that this object belongs to.
451
- * @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.
452
439
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
440
+ * @param {number} [id] Unique identifier referencing the product.
441
+ * @param {string} [code] Unique identifier of the product that this object belongs to.
442
+ * @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.
453
443
  * @param {string} [expand] Fields to expand response by
454
444
  * @param {*} [options] Override http request option.
455
445
  * @throws {RequiredError}
456
446
  */
457
- async getProductByIdentifier(id: number, code: string, slug: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductResponseClass>> {
458
- const localVarAxiosArgs = await localVarAxiosParamCreator.getProductByIdentifier(id, code, slug, authorization, expand, options);
447
+ async getProductByIdentifier(authorization?: string, id?: number, code?: string, slug?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductResponseClass>> {
448
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProductByIdentifier(authorization, id, code, slug, expand, options);
459
449
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
460
450
  },
461
451
  /**
@@ -525,29 +515,29 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
525
515
  * 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.
526
516
  * @summary Retrieve the product
527
517
  * @param {string} code Unique identifier for the object.
528
- * @param {number} id Unique identifier referencing the product.
529
- * @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.
530
518
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
519
+ * @param {number} [id] Unique identifier referencing the product.
520
+ * @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.
531
521
  * @param {string} [expand] Fields to expand response by
532
522
  * @param {*} [options] Override http request option.
533
523
  * @throws {RequiredError}
534
524
  */
535
- getProductByCode(code: string, id: number, slug: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetProductResponseClass> {
536
- return localVarFp.getProductByCode(code, id, slug, authorization, expand, options).then((request) => request(axios, basePath));
525
+ getProductByCode(code: string, authorization?: string, id?: number, slug?: string, expand?: string, options?: any): AxiosPromise<GetProductResponseClass> {
526
+ return localVarFp.getProductByCode(code, authorization, id, slug, expand, options).then((request) => request(axios, basePath));
537
527
  },
538
528
  /**
539
529
  * 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.
540
530
  * @summary Retrieve the product
541
- * @param {number} id Unique identifier referencing the product.
542
- * @param {string} code Unique identifier of the product that this object belongs to.
543
- * @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.
544
531
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
532
+ * @param {number} [id] Unique identifier referencing the product.
533
+ * @param {string} [code] Unique identifier of the product that this object belongs to.
534
+ * @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.
545
535
  * @param {string} [expand] Fields to expand response by
546
536
  * @param {*} [options] Override http request option.
547
537
  * @throws {RequiredError}
548
538
  */
549
- getProductByIdentifier(id: number, code: string, slug: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetProductResponseClass> {
550
- return localVarFp.getProductByIdentifier(id, code, slug, authorization, expand, options).then((request) => request(axios, basePath));
539
+ getProductByIdentifier(authorization?: string, id?: number, code?: string, slug?: string, expand?: string, options?: any): AxiosPromise<GetProductResponseClass> {
540
+ return localVarFp.getProductByIdentifier(authorization, id, code, slug, expand, options).then((request) => request(axios, basePath));
551
541
  },
552
542
  /**
553
543
  * 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.
@@ -637,25 +627,25 @@ export interface ProductsApiGetProductByCodeRequest {
637
627
  readonly code: string
638
628
 
639
629
  /**
640
- * Unique identifier referencing the product.
641
- * @type {number}
630
+ * Bearer Token: provided by the login endpoint under the name accessToken.
631
+ * @type {string}
642
632
  * @memberof ProductsApiGetProductByCode
643
633
  */
644
- readonly id: number
634
+ readonly authorization?: string
645
635
 
646
636
  /**
647
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
648
- * @type {string}
637
+ * Unique identifier referencing the product.
638
+ * @type {number}
649
639
  * @memberof ProductsApiGetProductByCode
650
640
  */
651
- readonly slug: string
641
+ readonly id?: number
652
642
 
653
643
  /**
654
- * Bearer Token: provided by the login endpoint under the name accessToken.
644
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
655
645
  * @type {string}
656
646
  * @memberof ProductsApiGetProductByCode
657
647
  */
658
- readonly authorization?: string
648
+ readonly slug?: string
659
649
 
660
650
  /**
661
651
  * Fields to expand response by
@@ -672,32 +662,32 @@ export interface ProductsApiGetProductByCodeRequest {
672
662
  */
673
663
  export interface ProductsApiGetProductByIdentifierRequest {
674
664
  /**
675
- * Unique identifier referencing the product.
676
- * @type {number}
665
+ * Bearer Token: provided by the login endpoint under the name accessToken.
666
+ * @type {string}
677
667
  * @memberof ProductsApiGetProductByIdentifier
678
668
  */
679
- readonly id: number
669
+ readonly authorization?: string
680
670
 
681
671
  /**
682
- * Unique identifier of the product that this object belongs to.
683
- * @type {string}
672
+ * Unique identifier referencing the product.
673
+ * @type {number}
684
674
  * @memberof ProductsApiGetProductByIdentifier
685
675
  */
686
- readonly code: string
676
+ readonly id?: number
687
677
 
688
678
  /**
689
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
679
+ * Unique identifier of the product that this object belongs to.
690
680
  * @type {string}
691
681
  * @memberof ProductsApiGetProductByIdentifier
692
682
  */
693
- readonly slug: string
683
+ readonly code?: string
694
684
 
695
685
  /**
696
- * Bearer Token: provided by the login endpoint under the name accessToken.
686
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
697
687
  * @type {string}
698
688
  * @memberof ProductsApiGetProductByIdentifier
699
689
  */
700
- readonly authorization?: string
690
+ readonly slug?: string
701
691
 
702
692
  /**
703
693
  * Fields to expand response by
@@ -838,7 +828,7 @@ export class ProductsApi extends BaseAPI {
838
828
  * @memberof ProductsApi
839
829
  */
840
830
  public getProductByCode(requestParameters: ProductsApiGetProductByCodeRequest, options?: AxiosRequestConfig) {
841
- return ProductsApiFp(this.configuration).getProductByCode(requestParameters.code, requestParameters.id, requestParameters.slug, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
831
+ return ProductsApiFp(this.configuration).getProductByCode(requestParameters.code, requestParameters.authorization, requestParameters.id, requestParameters.slug, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
842
832
  }
843
833
 
844
834
  /**
@@ -849,8 +839,8 @@ export class ProductsApi extends BaseAPI {
849
839
  * @throws {RequiredError}
850
840
  * @memberof ProductsApi
851
841
  */
852
- public getProductByIdentifier(requestParameters: ProductsApiGetProductByIdentifierRequest, options?: AxiosRequestConfig) {
853
- return ProductsApiFp(this.configuration).getProductByIdentifier(requestParameters.id, requestParameters.code, requestParameters.slug, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
842
+ public getProductByIdentifier(requestParameters: ProductsApiGetProductByIdentifierRequest = {}, options?: AxiosRequestConfig) {
843
+ return ProductsApiFp(this.configuration).getProductByIdentifier(requestParameters.authorization, requestParameters.id, requestParameters.code, requestParameters.slug, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
854
844
  }
855
845
 
856
846
  /**
@@ -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.
@@ -409,10 +409,11 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
409
409
  * @param {string} code Unique identifier for the object.
410
410
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
411
411
  * @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.
412
+ * @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;
412
413
  * @param {*} [options] Override http request option.
413
414
  * @throws {RequiredError}
414
415
  */
415
- getPolicyDataByDate: function (code, authorization, timesliceDate, options) {
416
+ getPolicyDataByDate: function (code, authorization, timesliceDate, expand, options) {
416
417
  if (options === void 0) { options = {}; }
417
418
  return __awaiter(_this, void 0, void 0, function () {
418
419
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -441,6 +442,9 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
441
442
  if (timesliceDate !== undefined) {
442
443
  localVarQueryParameter['timesliceDate'] = timesliceDate;
443
444
  }
445
+ if (expand !== undefined) {
446
+ localVarQueryParameter['expand'] = expand;
447
+ }
444
448
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
445
449
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
446
450
  }
@@ -1139,15 +1143,16 @@ var PoliciesApiFp = function (configuration) {
1139
1143
  * @param {string} code Unique identifier for the object.
1140
1144
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1141
1145
  * @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.
1146
+ * @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;
1142
1147
  * @param {*} [options] Override http request option.
1143
1148
  * @throws {RequiredError}
1144
1149
  */
1145
- getPolicyDataByDate: function (code, authorization, timesliceDate, options) {
1150
+ getPolicyDataByDate: function (code, authorization, timesliceDate, expand, options) {
1146
1151
  return __awaiter(this, void 0, void 0, function () {
1147
1152
  var localVarAxiosArgs;
1148
1153
  return __generator(this, function (_a) {
1149
1154
  switch (_a.label) {
1150
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPolicyDataByDate(code, authorization, timesliceDate, options)];
1155
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPolicyDataByDate(code, authorization, timesliceDate, expand, options)];
1151
1156
  case 1:
1152
1157
  localVarAxiosArgs = _a.sent();
1153
1158
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -1455,11 +1460,12 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
1455
1460
  * @param {string} code Unique identifier for the object.
1456
1461
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1457
1462
  * @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.
1463
+ * @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;
1458
1464
  * @param {*} [options] Override http request option.
1459
1465
  * @throws {RequiredError}
1460
1466
  */
1461
- getPolicyDataByDate: function (code, authorization, timesliceDate, options) {
1462
- return localVarFp.getPolicyDataByDate(code, authorization, timesliceDate, options).then(function (request) { return request(axios, basePath); });
1467
+ getPolicyDataByDate: function (code, authorization, timesliceDate, expand, options) {
1468
+ return localVarFp.getPolicyDataByDate(code, authorization, timesliceDate, expand, options).then(function (request) { return request(axios, basePath); });
1463
1469
  },
1464
1470
  /**
1465
1471
  * 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.
@@ -1681,7 +1687,7 @@ var PoliciesApi = /** @class */ (function (_super) {
1681
1687
  */
1682
1688
  PoliciesApi.prototype.getPolicyDataByDate = function (requestParameters, options) {
1683
1689
  var _this = this;
1684
- return (0, exports.PoliciesApiFp)(this.configuration).getPolicyDataByDate(requestParameters.code, requestParameters.authorization, requestParameters.timesliceDate, options).then(function (request) { return request(_this.axios, _this.basePath); });
1690
+ 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); });
1685
1691
  };
1686
1692
  /**
1687
1693
  * 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.