@emilgroup/insurance-sdk-node 1.49.0 → 1.50.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 (182) hide show
  1. package/.openapi-generator/FILES +30 -8
  2. package/README.md +2 -2
  3. package/api/booking-funnel-versions-api.ts +8 -8
  4. package/api/booking-funnels-api.ts +12 -12
  5. package/api/emil-functions-api.ts +1314 -0
  6. package/api/insured-object-types-api.ts +4 -4
  7. package/api/insured-objects-api.ts +8 -8
  8. package/api/lead-statuses-api.ts +104 -20
  9. package/api/lead-versions-api.ts +8 -8
  10. package/api/leads-api.ts +8 -8
  11. package/api/named-ranges-api.ts +8 -8
  12. package/api/partner-links-api.ts +800 -0
  13. package/api/{policy-partner-roles-api.ts → partner-roles-api.ts} +180 -180
  14. package/api/policies-api.ts +116 -118
  15. package/api/premium-formulas-api.ts +8 -8
  16. package/api/product-factors-api.ts +8 -8
  17. package/api/product-fields-api.ts +119 -12
  18. package/api/product-versions-api.ts +4 -4
  19. package/api/products-api.ts +20 -20
  20. package/api/status-transition-rules-api.ts +8 -8
  21. package/api.ts +6 -2
  22. package/dist/api/booking-funnel-versions-api.d.ts +8 -8
  23. package/dist/api/booking-funnel-versions-api.js +8 -8
  24. package/dist/api/booking-funnels-api.d.ts +12 -12
  25. package/dist/api/booking-funnels-api.js +12 -12
  26. package/dist/api/emil-functions-api.d.ts +727 -0
  27. package/dist/api/emil-functions-api.js +1202 -0
  28. package/dist/api/insured-object-types-api.d.ts +4 -4
  29. package/dist/api/insured-object-types-api.js +4 -4
  30. package/dist/api/insured-objects-api.d.ts +8 -8
  31. package/dist/api/insured-objects-api.js +8 -8
  32. package/dist/api/lead-statuses-api.d.ts +71 -17
  33. package/dist/api/lead-statuses-api.js +53 -17
  34. package/dist/api/lead-versions-api.d.ts +8 -8
  35. package/dist/api/lead-versions-api.js +8 -8
  36. package/dist/api/leads-api.d.ts +8 -8
  37. package/dist/api/leads-api.js +8 -8
  38. package/dist/api/named-ranges-api.d.ts +8 -8
  39. package/dist/api/named-ranges-api.js +8 -8
  40. package/dist/api/partner-links-api.d.ts +450 -0
  41. package/dist/api/partner-links-api.js +738 -0
  42. package/dist/api/partner-roles-api.d.ts +385 -0
  43. package/dist/api/{policy-partner-roles-api.js → partner-roles-api.js} +136 -136
  44. package/dist/api/policies-api.d.ts +112 -112
  45. package/dist/api/policies-api.js +66 -67
  46. package/dist/api/premium-formulas-api.d.ts +8 -8
  47. package/dist/api/premium-formulas-api.js +8 -8
  48. package/dist/api/product-factors-api.d.ts +8 -8
  49. package/dist/api/product-factors-api.js +8 -8
  50. package/dist/api/product-fields-api.d.ts +69 -12
  51. package/dist/api/product-fields-api.js +105 -12
  52. package/dist/api/product-versions-api.d.ts +4 -4
  53. package/dist/api/product-versions-api.js +4 -4
  54. package/dist/api/products-api.d.ts +20 -20
  55. package/dist/api/products-api.js +18 -18
  56. package/dist/api/status-transition-rules-api.d.ts +8 -8
  57. package/dist/api/status-transition-rules-api.js +8 -8
  58. package/dist/api.d.ts +3 -1
  59. package/dist/api.js +3 -1
  60. package/dist/models/booking-funnel-class.d.ts +1 -1
  61. package/dist/models/create-account-request-dto.d.ts +1 -1
  62. package/dist/models/create-account-request-dto.js +1 -1
  63. package/dist/models/create-booking-funnel-request-dto.d.ts +1 -1
  64. package/dist/models/create-emil-function-request-dto.d.ts +42 -0
  65. package/dist/models/create-emil-function-secret-request-dto.d.ts +36 -0
  66. package/dist/models/create-lead-request-dto.d.ts +12 -0
  67. package/dist/models/{update-policy-partner-role-request-dto.d.ts → create-partner-role-request-dto.d.ts} +6 -6
  68. package/dist/models/{get-policy-partner-role-response-class.d.ts → create-partner-role-response-class.d.ts} +7 -7
  69. package/dist/models/create-product-field-request-dto.d.ts +7 -1
  70. package/dist/models/create-product-request-dto.d.ts +1 -1
  71. package/dist/models/emil-function-class.d.ts +60 -0
  72. package/dist/models/{create-policy-partner-role-response-class.d.ts → emil-function-secret-class.d.ts} +12 -7
  73. package/dist/models/execute-emil-function-request-dto.d.ts +24 -0
  74. package/dist/models/get-emil-function-secret-response-class.d.ts +24 -0
  75. package/dist/models/get-emil-function-secret-response-class.js +15 -0
  76. package/dist/models/{update-policy-partner-role-response-class.d.ts → get-partner-link-response-class.d.ts} +7 -7
  77. package/dist/models/get-partner-link-response-class.js +15 -0
  78. package/dist/models/get-partner-role-response-class.d.ts +25 -0
  79. package/dist/models/get-partner-role-response-class.js +15 -0
  80. package/dist/models/get-product-request-dto.d.ts +1 -1
  81. package/dist/models/index.d.ts +27 -7
  82. package/dist/models/index.js +27 -7
  83. package/dist/models/insured-object-type-class.d.ts +1 -1
  84. package/dist/models/lead-class.d.ts +8 -1
  85. package/dist/models/lead-status-class.d.ts +1 -1
  86. package/dist/models/link-partner-request-dto.d.ts +54 -0
  87. package/dist/models/link-partner-request-dto.js +15 -0
  88. package/dist/models/link-partner-response-class.d.ts +25 -0
  89. package/dist/models/link-partner-response-class.js +15 -0
  90. package/dist/models/list-emil-function-secrets-response-class.d.ts +25 -0
  91. package/dist/models/list-emil-function-secrets-response-class.js +15 -0
  92. package/dist/models/{list-policy-partner-roles-response-class.d.ts → list-emil-functions-response-class.d.ts} +8 -8
  93. package/dist/models/list-emil-functions-response-class.js +15 -0
  94. package/dist/models/list-partner-links-response-class.d.ts +31 -0
  95. package/dist/models/list-partner-links-response-class.js +15 -0
  96. package/dist/models/list-partner-roles-response-class.d.ts +31 -0
  97. package/dist/models/list-partner-roles-response-class.js +15 -0
  98. package/dist/models/partner-class.d.ts +60 -0
  99. package/dist/models/partner-class.js +15 -0
  100. package/dist/models/partner-link-class.d.ts +86 -0
  101. package/dist/models/partner-link-class.js +15 -0
  102. package/dist/models/{policy-partner-role-class.d.ts → partner-role-class.d.ts} +10 -10
  103. package/dist/models/partner-role-class.js +15 -0
  104. package/dist/models/patch-draft-policy-request-dto.d.ts +1 -1
  105. package/dist/models/policy-class.d.ts +7 -0
  106. package/dist/models/product-class.d.ts +1 -1
  107. package/dist/models/product-field-class.d.ts +6 -0
  108. package/dist/models/shared-product-field-class.d.ts +6 -0
  109. package/dist/models/status-transition-rule-class.d.ts +1 -1
  110. package/dist/models/swap-product-fields-order-request-dto.d.ts +30 -0
  111. package/dist/models/swap-product-fields-order-request-dto.js +15 -0
  112. package/dist/models/unlink-partner-response-class.d.ts +25 -0
  113. package/dist/models/unlink-partner-response-class.js +15 -0
  114. package/dist/models/update-emil-function-request-dto.d.ts +42 -0
  115. package/dist/models/update-emil-function-request-dto.js +15 -0
  116. package/dist/models/update-emil-function-secret-request-dto.d.ts +30 -0
  117. package/dist/models/update-emil-function-secret-request-dto.js +15 -0
  118. package/dist/models/update-partner-link-request-dto.d.ts +30 -0
  119. package/dist/models/update-partner-link-request-dto.js +15 -0
  120. package/dist/models/update-partner-link-response-class.d.ts +25 -0
  121. package/dist/models/update-partner-link-response-class.js +15 -0
  122. package/dist/models/{create-policy-partner-role-request-dto.d.ts → update-partner-role-request-dto.d.ts} +6 -6
  123. package/dist/models/update-partner-role-request-dto.js +15 -0
  124. package/dist/models/update-partner-role-response-class.d.ts +25 -0
  125. package/dist/models/update-partner-role-response-class.js +15 -0
  126. package/dist/models/update-product-field-request-dto.d.ts +7 -1
  127. package/dist/models/update-product-request-dto.d.ts +1 -1
  128. package/models/booking-funnel-class.ts +1 -1
  129. package/models/create-account-request-dto.ts +1 -1
  130. package/models/create-booking-funnel-request-dto.ts +1 -1
  131. package/models/create-emil-function-request-dto.ts +48 -0
  132. package/models/create-emil-function-secret-request-dto.ts +42 -0
  133. package/models/create-lead-request-dto.ts +12 -0
  134. package/models/{update-policy-partner-role-request-dto.ts → create-partner-role-request-dto.ts} +6 -6
  135. package/models/{get-policy-partner-role-response-class.ts → create-partner-role-response-class.ts} +7 -7
  136. package/models/create-product-field-request-dto.ts +7 -1
  137. package/models/create-product-request-dto.ts +1 -1
  138. package/models/emil-function-class.ts +66 -0
  139. package/models/{update-policy-partner-role-response-class.ts → emil-function-secret-class.ts} +12 -7
  140. package/models/execute-emil-function-request-dto.ts +30 -0
  141. package/models/get-emil-function-secret-response-class.ts +30 -0
  142. package/models/{create-policy-partner-role-response-class.ts → get-partner-link-response-class.ts} +7 -7
  143. package/models/get-partner-role-response-class.ts +31 -0
  144. package/models/get-product-request-dto.ts +1 -1
  145. package/models/index.ts +27 -7
  146. package/models/insured-object-type-class.ts +1 -1
  147. package/models/lead-class.ts +8 -1
  148. package/models/lead-status-class.ts +1 -1
  149. package/models/link-partner-request-dto.ts +60 -0
  150. package/models/link-partner-response-class.ts +31 -0
  151. package/models/list-emil-function-secrets-response-class.ts +31 -0
  152. package/models/{list-policy-partner-roles-response-class.ts → list-emil-functions-response-class.ts} +8 -8
  153. package/models/list-partner-links-response-class.ts +37 -0
  154. package/models/list-partner-roles-response-class.ts +37 -0
  155. package/models/partner-class.ts +66 -0
  156. package/models/partner-link-class.ts +92 -0
  157. package/models/{policy-partner-role-class.ts → partner-role-class.ts} +10 -10
  158. package/models/patch-draft-policy-request-dto.ts +1 -1
  159. package/models/policy-class.ts +7 -0
  160. package/models/product-class.ts +1 -1
  161. package/models/product-field-class.ts +6 -0
  162. package/models/shared-product-field-class.ts +6 -0
  163. package/models/status-transition-rule-class.ts +1 -1
  164. package/models/swap-product-fields-order-request-dto.ts +36 -0
  165. package/models/unlink-partner-response-class.ts +31 -0
  166. package/models/update-emil-function-request-dto.ts +48 -0
  167. package/models/update-emil-function-secret-request-dto.ts +36 -0
  168. package/models/update-partner-link-request-dto.ts +36 -0
  169. package/models/update-partner-link-response-class.ts +31 -0
  170. package/models/{create-policy-partner-role-request-dto.ts → update-partner-role-request-dto.ts} +6 -6
  171. package/models/update-partner-role-response-class.ts +31 -0
  172. package/models/update-product-field-request-dto.ts +7 -1
  173. package/models/update-product-request-dto.ts +1 -1
  174. package/package.json +1 -1
  175. package/dist/api/policy-partner-roles-api.d.ts +0 -385
  176. /package/dist/models/{create-policy-partner-role-request-dto.js → create-emil-function-request-dto.js} +0 -0
  177. /package/dist/models/{create-policy-partner-role-response-class.js → create-emil-function-secret-request-dto.js} +0 -0
  178. /package/dist/models/{get-policy-partner-role-response-class.js → create-partner-role-request-dto.js} +0 -0
  179. /package/dist/models/{list-policy-partner-roles-response-class.js → create-partner-role-response-class.js} +0 -0
  180. /package/dist/models/{policy-partner-role-class.js → emil-function-class.js} +0 -0
  181. /package/dist/models/{update-policy-partner-role-request-dto.js → emil-function-secret-class.js} +0 -0
  182. /package/dist/models/{update-policy-partner-role-response-class.js → execute-emil-function-request-dto.js} +0 -0
@@ -272,7 +272,7 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
272
272
  };
273
273
  },
274
274
  /**
275
- * Retrieves the details of the draft-policy that was previously created. Supply the unique draft-policy code that was returned when you created it and Emil Api will return the corresponding draft-policy information.
275
+ * Retrieves the details of the draft-policy that was previously created. Supply the unique draft-policy code that was returned when you created it and Emil Api will return the corresponding draft-policy information.
276
276
  * @summary Retrieve the draft-policy
277
277
  * @param {string} policyCode
278
278
  * @param {string} policyCode2 Unique identifier of the Draft Policy that this object belongs to.
@@ -329,15 +329,15 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
329
329
  };
330
330
  },
331
331
  /**
332
- * Retrieves the details of the policy that was previously created. Supply the unique policy code that was returned when you created it and Emil Api will return the corresponding policy information.
332
+ * Retrieves the details of the policy that was previously created. Supply the unique policy code that was returned when you created it and Emil Api will return the corresponding policy information.
333
333
  * @summary Retrieve the policy
334
334
  * @param {string} code Unique identifier for the object.
335
335
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
336
- * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy in this endpoint. By default, versions will be an empty array.
336
+ * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas' | 'partnerLinks'} [expand] You can expand policy in this endpoint. \' + \'By default, versions and partnerLinks will be an empty array. Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks.
337
337
  * @param {*} [options] Override http request option.
338
338
  * @throws {RequiredError}
339
339
  */
340
- getPolicy: async (code: string, authorization?: string, expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
340
+ getPolicy: async (code: string, authorization?: string, expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas' | 'partnerLinks', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
341
341
  // verify required parameter 'code' is not null or undefined
342
342
  assertParamExists('getPolicy', 'code', code)
343
343
  const localVarPath = `/insuranceservice/v1/policies/{code}`
@@ -429,20 +429,20 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
429
429
  };
430
430
  },
431
431
  /**
432
- * 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.
432
+ * 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.
433
433
  * @summary List policies
434
434
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
435
435
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
436
436
  * @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.
437
- * @param {any} [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;
437
+ * @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;
438
438
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
439
- * @param {any} [order] Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId&lt;/i&gt;
440
- * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
441
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
439
+ * @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;
440
+ * @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;
441
+ * @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;
442
442
  * @param {*} [options] Override http request option.
443
443
  * @throws {RequiredError}
444
444
  */
445
- listPolicies: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
445
+ listPolicies: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
446
446
  const localVarPath = `/insuranceservice/v1/policies`;
447
447
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
448
448
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -505,22 +505,20 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
505
505
  };
506
506
  },
507
507
  /**
508
- * This will return a policy objects for the given policy. You may filter the objects to return by the insured object, or return only the objects that exists for a particular date (providing the object code or ID).
508
+ * Returns a list of policy objects you have previously created. The policy objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
509
509
  * @summary List policy objects
510
- * @param {any} 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, insuredObjectId, insuredObjectName, policyCode, date&lt;/i&gt; &lt;br/&gt; &lt;i&gt;policyCode&lt;/i&gt; is required, other filters are optional.
511
510
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
512
511
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
513
512
  * @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.
513
+ * @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, insuredObjectId, insuredObjectName, policyCode, date&lt;/i&gt;
514
514
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
515
- * @param {any} [order] Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, timesliceId, insuredObjectId, createdAt, updatedAt&lt;/i&gt;
516
- * @param {any} [expand] No expanding supported
517
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
515
+ * @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, code, timesliceId, insuredObjectId, createdAt, updatedAt&lt;/i&gt;
516
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
517
+ * @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, insuredObjectId, insuredObjectName, policyCode, date&lt;/i&gt;
518
518
  * @param {*} [options] Override http request option.
519
519
  * @throws {RequiredError}
520
520
  */
521
- listPolicyObjects: async (filter: any, authorization?: string, pageSize?: any, pageToken?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
522
- // verify required parameter 'filter' is not null or undefined
523
- assertParamExists('listPolicyObjects', 'filter', filter)
521
+ listPolicyObjects: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: any, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
524
522
  const localVarPath = `/insuranceservice/v1/policies/policy-objects`;
525
523
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
526
524
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -583,21 +581,21 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
583
581
  };
584
582
  },
585
583
  /**
586
- * Returns a list of policy versions you have previously created. The policy versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
584
+ * Returns a list of policy versions you have previously created. The policy versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
587
585
  * @summary List policy versions
588
586
  * @param {string} policyCode
589
587
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
590
588
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
591
589
  * @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.
592
- * @param {any} [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, policyId&lt;/i&gt;
590
+ * @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, policyId&lt;/i&gt;
593
591
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
594
- * @param {any} [order] Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, policyId, createdAt, updatedAt&lt;/i&gt;
595
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
596
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
592
+ * @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, policyId, createdAt, updatedAt&lt;/i&gt;
593
+ * @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: timelines, premiums, premiumItems, premiumFormulas.&lt;i&gt;
594
+ * @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, policyId&lt;/i&gt;
597
595
  * @param {*} [options] Override http request option.
598
596
  * @throws {RequiredError}
599
597
  */
600
- listPolicyVersions: async (policyCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
598
+ listPolicyVersions: async (policyCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
601
599
  // verify required parameter 'policyCode' is not null or undefined
602
600
  assertParamExists('listPolicyVersions', 'policyCode', policyCode)
603
601
  const localVarPath = `/insuranceservice/v1/policies/{policyCode}/versions`
@@ -1034,7 +1032,7 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
1034
1032
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1035
1033
  },
1036
1034
  /**
1037
- * Retrieves the details of the draft-policy that was previously created. Supply the unique draft-policy code that was returned when you created it and Emil Api will return the corresponding draft-policy information.
1035
+ * Retrieves the details of the draft-policy that was previously created. Supply the unique draft-policy code that was returned when you created it and Emil Api will return the corresponding draft-policy information.
1038
1036
  * @summary Retrieve the draft-policy
1039
1037
  * @param {string} policyCode
1040
1038
  * @param {string} policyCode2 Unique identifier of the Draft Policy that this object belongs to.
@@ -1048,15 +1046,15 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
1048
1046
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1049
1047
  },
1050
1048
  /**
1051
- * Retrieves the details of the policy that was previously created. Supply the unique policy code that was returned when you created it and Emil Api will return the corresponding policy information.
1049
+ * Retrieves the details of the policy that was previously created. Supply the unique policy code that was returned when you created it and Emil Api will return the corresponding policy information.
1052
1050
  * @summary Retrieve the policy
1053
1051
  * @param {string} code Unique identifier for the object.
1054
1052
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1055
- * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy in this endpoint. By default, versions will be an empty array.
1053
+ * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas' | 'partnerLinks'} [expand] You can expand policy in this endpoint. \&#39; + \&#39;By default, versions and partnerLinks will be an empty array. Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks.
1056
1054
  * @param {*} [options] Override http request option.
1057
1055
  * @throws {RequiredError}
1058
1056
  */
1059
- async getPolicy(code: string, authorization?: string, expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyResponseClass>> {
1057
+ async getPolicy(code: string, authorization?: string, expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas' | 'partnerLinks', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyResponseClass>> {
1060
1058
  const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicy(code, authorization, expand, options);
1061
1059
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1062
1060
  },
@@ -1074,57 +1072,57 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
1074
1072
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1075
1073
  },
1076
1074
  /**
1077
- * 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.
1075
+ * 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.
1078
1076
  * @summary List policies
1079
1077
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1080
1078
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1081
1079
  * @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.
1082
- * @param {any} [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;
1080
+ * @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;
1083
1081
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1084
- * @param {any} [order] Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId&lt;/i&gt;
1085
- * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
1086
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
1082
+ * @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;
1083
+ * @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;
1084
+ * @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;
1087
1085
  * @param {*} [options] Override http request option.
1088
1086
  * @throws {RequiredError}
1089
1087
  */
1090
- async listPolicies(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesResponseClass>> {
1088
+ async listPolicies(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesResponseClass>> {
1091
1089
  const localVarAxiosArgs = await localVarAxiosParamCreator.listPolicies(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
1092
1090
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1093
1091
  },
1094
1092
  /**
1095
- * This will return a policy objects for the given policy. You may filter the objects to return by the insured object, or return only the objects that exists for a particular date (providing the object code or ID).
1093
+ * Returns a list of policy objects you have previously created. The policy objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
1096
1094
  * @summary List policy objects
1097
- * @param {any} 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, insuredObjectId, insuredObjectName, policyCode, date&lt;/i&gt; &lt;br/&gt; &lt;i&gt;policyCode&lt;/i&gt; is required, other filters are optional.
1098
1095
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1099
1096
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1100
1097
  * @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.
1098
+ * @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, insuredObjectId, insuredObjectName, policyCode, date&lt;/i&gt;
1101
1099
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1102
- * @param {any} [order] Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, timesliceId, insuredObjectId, createdAt, updatedAt&lt;/i&gt;
1103
- * @param {any} [expand] No expanding supported
1104
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
1100
+ * @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, code, timesliceId, insuredObjectId, createdAt, updatedAt&lt;/i&gt;
1101
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
1102
+ * @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, insuredObjectId, insuredObjectName, policyCode, date&lt;/i&gt;
1105
1103
  * @param {*} [options] Override http request option.
1106
1104
  * @throws {RequiredError}
1107
1105
  */
1108
- async listPolicyObjects(filter: any, authorization?: string, pageSize?: any, pageToken?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPolicyObjectsResponseClass>> {
1109
- const localVarAxiosArgs = await localVarAxiosParamCreator.listPolicyObjects(filter, authorization, pageSize, pageToken, search, order, expand, filters, options);
1106
+ async listPolicyObjects(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: any, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPolicyObjectsResponseClass>> {
1107
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPolicyObjects(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
1110
1108
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1111
1109
  },
1112
1110
  /**
1113
- * Returns a list of policy versions you have previously created. The policy versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
1111
+ * Returns a list of policy versions you have previously created. The policy versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
1114
1112
  * @summary List policy versions
1115
1113
  * @param {string} policyCode
1116
1114
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1117
1115
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1118
1116
  * @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.
1119
- * @param {any} [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, policyId&lt;/i&gt;
1117
+ * @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, policyId&lt;/i&gt;
1120
1118
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1121
- * @param {any} [order] Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, policyId, createdAt, updatedAt&lt;/i&gt;
1122
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
1123
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
1119
+ * @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, policyId, createdAt, updatedAt&lt;/i&gt;
1120
+ * @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: timelines, premiums, premiumItems, premiumFormulas.&lt;i&gt;
1121
+ * @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, policyId&lt;/i&gt;
1124
1122
  * @param {*} [options] Override http request option.
1125
1123
  * @throws {RequiredError}
1126
1124
  */
1127
- async listPolicyVersions(policyCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPolicyVersionResponseClass>> {
1125
+ async listPolicyVersions(policyCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPolicyVersionResponseClass>> {
1128
1126
  const localVarAxiosArgs = await localVarAxiosParamCreator.listPolicyVersions(policyCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
1129
1127
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1130
1128
  },
@@ -1265,7 +1263,7 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
1265
1263
  return localVarFp.deleteDraftPolicy(policyCode, policyCode2, authorization, options).then((request) => request(axios, basePath));
1266
1264
  },
1267
1265
  /**
1268
- * Retrieves the details of the draft-policy that was previously created. Supply the unique draft-policy code that was returned when you created it and Emil Api will return the corresponding draft-policy information.
1266
+ * Retrieves the details of the draft-policy that was previously created. Supply the unique draft-policy code that was returned when you created it and Emil Api will return the corresponding draft-policy information.
1269
1267
  * @summary Retrieve the draft-policy
1270
1268
  * @param {string} policyCode
1271
1269
  * @param {string} policyCode2 Unique identifier of the Draft Policy that this object belongs to.
@@ -1278,15 +1276,15 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
1278
1276
  return localVarFp.getDraftPolicy(policyCode, policyCode2, authorization, expand, options).then((request) => request(axios, basePath));
1279
1277
  },
1280
1278
  /**
1281
- * Retrieves the details of the policy that was previously created. Supply the unique policy code that was returned when you created it and Emil Api will return the corresponding policy information.
1279
+ * Retrieves the details of the policy that was previously created. Supply the unique policy code that was returned when you created it and Emil Api will return the corresponding policy information.
1282
1280
  * @summary Retrieve the policy
1283
1281
  * @param {string} code Unique identifier for the object.
1284
1282
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1285
- * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy in this endpoint. By default, versions will be an empty array.
1283
+ * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas' | 'partnerLinks'} [expand] You can expand policy in this endpoint. \&#39; + \&#39;By default, versions and partnerLinks will be an empty array. Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks.
1286
1284
  * @param {*} [options] Override http request option.
1287
1285
  * @throws {RequiredError}
1288
1286
  */
1289
- getPolicy(code: string, authorization?: string, expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options?: any): AxiosPromise<GetPolicyResponseClass> {
1287
+ getPolicy(code: string, authorization?: string, expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas' | 'partnerLinks', options?: any): AxiosPromise<GetPolicyResponseClass> {
1290
1288
  return localVarFp.getPolicy(code, authorization, expand, options).then((request) => request(axios, basePath));
1291
1289
  },
1292
1290
  /**
@@ -1302,55 +1300,55 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
1302
1300
  return localVarFp.getPolicyDataByDate(code, authorization, timesliceDate, options).then((request) => request(axios, basePath));
1303
1301
  },
1304
1302
  /**
1305
- * 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.
1303
+ * 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.
1306
1304
  * @summary List policies
1307
1305
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1308
1306
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1309
1307
  * @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.
1310
- * @param {any} [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;
1308
+ * @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;
1311
1309
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1312
- * @param {any} [order] Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId&lt;/i&gt;
1313
- * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
1314
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
1310
+ * @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;
1311
+ * @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;
1312
+ * @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;
1315
1313
  * @param {*} [options] Override http request option.
1316
1314
  * @throws {RequiredError}
1317
1315
  */
1318
- listPolicies(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', filters?: any, options?: any): AxiosPromise<ListPoliciesResponseClass> {
1316
+ listPolicies(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPoliciesResponseClass> {
1319
1317
  return localVarFp.listPolicies(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
1320
1318
  },
1321
1319
  /**
1322
- * This will return a policy objects for the given policy. You may filter the objects to return by the insured object, or return only the objects that exists for a particular date (providing the object code or ID).
1320
+ * Returns a list of policy objects you have previously created. The policy objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
1323
1321
  * @summary List policy objects
1324
- * @param {any} 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, insuredObjectId, insuredObjectName, policyCode, date&lt;/i&gt; &lt;br/&gt; &lt;i&gt;policyCode&lt;/i&gt; is required, other filters are optional.
1325
1322
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1326
1323
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1327
1324
  * @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.
1325
+ * @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, insuredObjectId, insuredObjectName, policyCode, date&lt;/i&gt;
1328
1326
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1329
- * @param {any} [order] Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, timesliceId, insuredObjectId, createdAt, updatedAt&lt;/i&gt;
1330
- * @param {any} [expand] No expanding supported
1331
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
1327
+ * @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, code, timesliceId, insuredObjectId, createdAt, updatedAt&lt;/i&gt;
1328
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
1329
+ * @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, insuredObjectId, insuredObjectName, policyCode, date&lt;/i&gt;
1332
1330
  * @param {*} [options] Override http request option.
1333
1331
  * @throws {RequiredError}
1334
1332
  */
1335
- listPolicyObjects(filter: any, authorization?: string, pageSize?: any, pageToken?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListPolicyObjectsResponseClass> {
1336
- return localVarFp.listPolicyObjects(filter, authorization, pageSize, pageToken, search, order, expand, filters, options).then((request) => request(axios, basePath));
1333
+ listPolicyObjects(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: any, filters?: string, options?: any): AxiosPromise<ListPolicyObjectsResponseClass> {
1334
+ return localVarFp.listPolicyObjects(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
1337
1335
  },
1338
1336
  /**
1339
- * Returns a list of policy versions you have previously created. The policy versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
1337
+ * Returns a list of policy versions you have previously created. The policy versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
1340
1338
  * @summary List policy versions
1341
1339
  * @param {string} policyCode
1342
1340
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1343
1341
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1344
1342
  * @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.
1345
- * @param {any} [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, policyId&lt;/i&gt;
1343
+ * @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, policyId&lt;/i&gt;
1346
1344
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1347
- * @param {any} [order] Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, policyId, createdAt, updatedAt&lt;/i&gt;
1348
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
1349
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
1345
+ * @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, policyId, createdAt, updatedAt&lt;/i&gt;
1346
+ * @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: timelines, premiums, premiumItems, premiumFormulas.&lt;i&gt;
1347
+ * @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, policyId&lt;/i&gt;
1350
1348
  * @param {*} [options] Override http request option.
1351
1349
  * @throws {RequiredError}
1352
1350
  */
1353
- listPolicyVersions(policyCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListPolicyVersionResponseClass> {
1351
+ listPolicyVersions(policyCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPolicyVersionResponseClass> {
1354
1352
  return localVarFp.listPolicyVersions(policyCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
1355
1353
  },
1356
1354
  /**
@@ -1590,11 +1588,11 @@ export interface PoliciesApiGetPolicyRequest {
1590
1588
  readonly authorization?: string
1591
1589
 
1592
1590
  /**
1593
- * You can expand policy in this endpoint. By default, versions will be an empty array.
1594
- * @type {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'}
1591
+ * You can expand policy in this endpoint. \&#39; + \&#39;By default, versions and partnerLinks will be an empty array. Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks.
1592
+ * @type {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas' | 'partnerLinks'}
1595
1593
  * @memberof PoliciesApiGetPolicy
1596
1594
  */
1597
- readonly expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'
1595
+ readonly expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas' | 'partnerLinks'
1598
1596
  }
1599
1597
 
1600
1598
  /**
@@ -1653,11 +1651,11 @@ export interface PoliciesApiListPoliciesRequest {
1653
1651
  readonly pageToken?: any
1654
1652
 
1655
1653
  /**
1656
- * 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;
1657
- * @type {any}
1654
+ * 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;
1655
+ * @type {string}
1658
1656
  * @memberof PoliciesApiListPolicies
1659
1657
  */
1660
- readonly filter?: any
1658
+ readonly filter?: string
1661
1659
 
1662
1660
  /**
1663
1661
  * To search the list by any field, pass search&#x3D;xxx to fetch the result.
@@ -1667,25 +1665,25 @@ export interface PoliciesApiListPoliciesRequest {
1667
1665
  readonly search?: any
1668
1666
 
1669
1667
  /**
1670
- * Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId&lt;/i&gt;
1671
- * @type {any}
1668
+ * 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;
1669
+ * @type {string}
1672
1670
  * @memberof PoliciesApiListPolicies
1673
1671
  */
1674
- readonly order?: any
1672
+ readonly order?: string
1675
1673
 
1676
1674
  /**
1677
- * You can expand policy versions list in this endpoint. By default, versions will be an empty array.
1678
- * @type {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'}
1675
+ * 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;
1676
+ * @type {string}
1679
1677
  * @memberof PoliciesApiListPolicies
1680
1678
  */
1681
- readonly expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'
1679
+ readonly expand?: string
1682
1680
 
1683
1681
  /**
1684
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
1685
- * @type {any}
1682
+ * 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;
1683
+ * @type {string}
1686
1684
  * @memberof PoliciesApiListPolicies
1687
1685
  */
1688
- readonly filters?: any
1686
+ readonly filters?: string
1689
1687
  }
1690
1688
 
1691
1689
  /**
@@ -1694,13 +1692,6 @@ export interface PoliciesApiListPoliciesRequest {
1694
1692
  * @interface PoliciesApiListPolicyObjectsRequest
1695
1693
  */
1696
1694
  export interface PoliciesApiListPolicyObjectsRequest {
1697
- /**
1698
- * 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, insuredObjectId, insuredObjectName, policyCode, date&lt;/i&gt; &lt;br/&gt; &lt;i&gt;policyCode&lt;/i&gt; is required, other filters are optional.
1699
- * @type {any}
1700
- * @memberof PoliciesApiListPolicyObjects
1701
- */
1702
- readonly filter: any
1703
-
1704
1695
  /**
1705
1696
  * Bearer Token: provided by the login endpoint under the name accessToken.
1706
1697
  * @type {string}
@@ -1722,6 +1713,13 @@ export interface PoliciesApiListPolicyObjectsRequest {
1722
1713
  */
1723
1714
  readonly pageToken?: any
1724
1715
 
1716
+ /**
1717
+ * 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, insuredObjectId, insuredObjectName, policyCode, date&lt;/i&gt;
1718
+ * @type {string}
1719
+ * @memberof PoliciesApiListPolicyObjects
1720
+ */
1721
+ readonly filter?: string
1722
+
1725
1723
  /**
1726
1724
  * To search the list by any field, pass search&#x3D;xxx to fetch the result.
1727
1725
  * @type {any}
@@ -1730,25 +1728,25 @@ export interface PoliciesApiListPolicyObjectsRequest {
1730
1728
  readonly search?: any
1731
1729
 
1732
1730
  /**
1733
- * Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, timesliceId, insuredObjectId, createdAt, updatedAt&lt;/i&gt;
1734
- * @type {any}
1731
+ * 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, code, timesliceId, insuredObjectId, createdAt, updatedAt&lt;/i&gt;
1732
+ * @type {string}
1735
1733
  * @memberof PoliciesApiListPolicyObjects
1736
1734
  */
1737
- readonly order?: any
1735
+ readonly order?: string
1738
1736
 
1739
1737
  /**
1740
- * No expanding supported
1738
+ * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
1741
1739
  * @type {any}
1742
1740
  * @memberof PoliciesApiListPolicyObjects
1743
1741
  */
1744
1742
  readonly expand?: any
1745
1743
 
1746
1744
  /**
1747
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
1748
- * @type {any}
1745
+ * 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, insuredObjectId, insuredObjectName, policyCode, date&lt;/i&gt;
1746
+ * @type {string}
1749
1747
  * @memberof PoliciesApiListPolicyObjects
1750
1748
  */
1751
- readonly filters?: any
1749
+ readonly filters?: string
1752
1750
  }
1753
1751
 
1754
1752
  /**
@@ -1786,11 +1784,11 @@ export interface PoliciesApiListPolicyVersionsRequest {
1786
1784
  readonly pageToken?: any
1787
1785
 
1788
1786
  /**
1789
- * 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, policyId&lt;/i&gt;
1790
- * @type {any}
1787
+ * 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, policyId&lt;/i&gt;
1788
+ * @type {string}
1791
1789
  * @memberof PoliciesApiListPolicyVersions
1792
1790
  */
1793
- readonly filter?: any
1791
+ readonly filter?: string
1794
1792
 
1795
1793
  /**
1796
1794
  * To search the list by any field, pass search&#x3D;xxx to fetch the result.
@@ -1800,25 +1798,25 @@ export interface PoliciesApiListPolicyVersionsRequest {
1800
1798
  readonly search?: any
1801
1799
 
1802
1800
  /**
1803
- * Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, policyId, createdAt, updatedAt&lt;/i&gt;
1804
- * @type {any}
1801
+ * 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, policyId, createdAt, updatedAt&lt;/i&gt;
1802
+ * @type {string}
1805
1803
  * @memberof PoliciesApiListPolicyVersions
1806
1804
  */
1807
- readonly order?: any
1805
+ readonly order?: string
1808
1806
 
1809
1807
  /**
1810
- * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
1811
- * @type {any}
1808
+ * 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: timelines, premiums, premiumItems, premiumFormulas.&lt;i&gt;
1809
+ * @type {string}
1812
1810
  * @memberof PoliciesApiListPolicyVersions
1813
1811
  */
1814
- readonly expand?: any
1812
+ readonly expand?: string
1815
1813
 
1816
1814
  /**
1817
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
1818
- * @type {any}
1815
+ * 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, policyId&lt;/i&gt;
1816
+ * @type {string}
1819
1817
  * @memberof PoliciesApiListPolicyVersions
1820
1818
  */
1821
- readonly filters?: any
1819
+ readonly filters?: string
1822
1820
  }
1823
1821
 
1824
1822
  /**
@@ -2052,7 +2050,7 @@ export class PoliciesApi extends BaseAPI {
2052
2050
  }
2053
2051
 
2054
2052
  /**
2055
- * Retrieves the details of the draft-policy that was previously created. Supply the unique draft-policy code that was returned when you created it and Emil Api will return the corresponding draft-policy information.
2053
+ * Retrieves the details of the draft-policy that was previously created. Supply the unique draft-policy code that was returned when you created it and Emil Api will return the corresponding draft-policy information.
2056
2054
  * @summary Retrieve the draft-policy
2057
2055
  * @param {PoliciesApiGetDraftPolicyRequest} requestParameters Request parameters.
2058
2056
  * @param {*} [options] Override http request option.
@@ -2064,7 +2062,7 @@ export class PoliciesApi extends BaseAPI {
2064
2062
  }
2065
2063
 
2066
2064
  /**
2067
- * Retrieves the details of the policy that was previously created. Supply the unique policy code that was returned when you created it and Emil Api will return the corresponding policy information.
2065
+ * Retrieves the details of the policy that was previously created. Supply the unique policy code that was returned when you created it and Emil Api will return the corresponding policy information.
2068
2066
  * @summary Retrieve the policy
2069
2067
  * @param {PoliciesApiGetPolicyRequest} requestParameters Request parameters.
2070
2068
  * @param {*} [options] Override http request option.
@@ -2088,7 +2086,7 @@ export class PoliciesApi extends BaseAPI {
2088
2086
  }
2089
2087
 
2090
2088
  /**
2091
- * 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.
2089
+ * 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.
2092
2090
  * @summary List policies
2093
2091
  * @param {PoliciesApiListPoliciesRequest} requestParameters Request parameters.
2094
2092
  * @param {*} [options] Override http request option.
@@ -2100,19 +2098,19 @@ export class PoliciesApi extends BaseAPI {
2100
2098
  }
2101
2099
 
2102
2100
  /**
2103
- * This will return a policy objects for the given policy. You may filter the objects to return by the insured object, or return only the objects that exists for a particular date (providing the object code or ID).
2101
+ * Returns a list of policy objects you have previously created. The policy objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
2104
2102
  * @summary List policy objects
2105
2103
  * @param {PoliciesApiListPolicyObjectsRequest} requestParameters Request parameters.
2106
2104
  * @param {*} [options] Override http request option.
2107
2105
  * @throws {RequiredError}
2108
2106
  * @memberof PoliciesApi
2109
2107
  */
2110
- public listPolicyObjects(requestParameters: PoliciesApiListPolicyObjectsRequest, options?: AxiosRequestConfig) {
2111
- return PoliciesApiFp(this.configuration).listPolicyObjects(requestParameters.filter, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
2108
+ public listPolicyObjects(requestParameters: PoliciesApiListPolicyObjectsRequest = {}, options?: AxiosRequestConfig) {
2109
+ return PoliciesApiFp(this.configuration).listPolicyObjects(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
2112
2110
  }
2113
2111
 
2114
2112
  /**
2115
- * Returns a list of policy versions you have previously created. The policy versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
2113
+ * Returns a list of policy versions you have previously created. The policy versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
2116
2114
  * @summary List policy versions
2117
2115
  * @param {PoliciesApiListPolicyVersionsRequest} requestParameters Request parameters.
2118
2116
  * @param {*} [options] Override http request option.