@emilgroup/insurance-sdk-node 1.48.0 → 1.48.1-beta.2

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 (141) hide show
  1. package/.openapi-generator/FILES +21 -8
  2. package/README.md +2 -2
  3. package/api/booking-funnels-api.ts +4 -4
  4. package/api/default-api.ts +8 -4
  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 +9 -6
  8. package/api/lead-statuses-api.ts +96 -12
  9. package/api/named-ranges-api.ts +4 -4
  10. package/api/partner-roles-api.ts +683 -0
  11. package/api/policies-api.ts +167 -180
  12. package/api/premium-formulas-api.ts +4 -4
  13. package/api/product-factors-api.ts +4 -4
  14. package/api/product-fields-api.ts +8 -8
  15. package/api/products-api.ts +12 -12
  16. package/api.ts +4 -2
  17. package/dist/api/booking-funnels-api.d.ts +4 -4
  18. package/dist/api/booking-funnels-api.js +4 -4
  19. package/dist/api/default-api.d.ts +8 -4
  20. package/dist/api/default-api.js +8 -4
  21. package/dist/api/emil-functions-api.d.ts +727 -0
  22. package/dist/api/emil-functions-api.js +1202 -0
  23. package/dist/api/insured-object-types-api.d.ts +4 -4
  24. package/dist/api/insured-object-types-api.js +3 -3
  25. package/dist/api/insured-objects-api.d.ts +4 -4
  26. package/dist/api/insured-objects-api.js +7 -5
  27. package/dist/api/lead-statuses-api.d.ts +63 -9
  28. package/dist/api/lead-statuses-api.js +45 -9
  29. package/dist/api/named-ranges-api.d.ts +4 -4
  30. package/dist/api/named-ranges-api.js +3 -3
  31. package/dist/api/partner-roles-api.d.ts +385 -0
  32. package/dist/api/{policy-partner-roles-api.js → partner-roles-api.js} +139 -139
  33. package/dist/api/policies-api.d.ts +131 -140
  34. package/dist/api/policies-api.js +114 -120
  35. package/dist/api/premium-formulas-api.d.ts +4 -4
  36. package/dist/api/premium-formulas-api.js +3 -3
  37. package/dist/api/product-factors-api.d.ts +4 -4
  38. package/dist/api/product-factors-api.js +3 -3
  39. package/dist/api/product-fields-api.d.ts +8 -8
  40. package/dist/api/product-fields-api.js +6 -6
  41. package/dist/api/products-api.d.ts +12 -12
  42. package/dist/api/products-api.js +9 -9
  43. package/dist/api.d.ts +2 -1
  44. package/dist/api.js +2 -1
  45. package/dist/models/booking-funnel-class.d.ts +1 -1
  46. package/dist/models/create-booking-funnel-request-dto.d.ts +1 -1
  47. package/dist/models/create-emil-function-request-dto.d.ts +42 -0
  48. package/dist/models/create-emil-function-secret-request-dto.d.ts +36 -0
  49. package/dist/models/{update-policy-partner-role-request-dto.d.ts → create-partner-role-request-dto.d.ts} +6 -6
  50. package/dist/models/{get-policy-partner-role-response-class.d.ts → create-partner-role-response-class.d.ts} +7 -7
  51. package/dist/models/create-product-request-dto.d.ts +1 -1
  52. package/dist/models/emil-function-class.d.ts +60 -0
  53. package/dist/models/{create-policy-partner-role-response-class.d.ts → emil-function-secret-class.d.ts} +12 -7
  54. package/dist/models/execute-emil-function-request-dto.d.ts +24 -0
  55. package/dist/models/get-emil-function-secret-response-class.d.ts +24 -0
  56. package/dist/models/get-emil-function-secret-response-class.js +15 -0
  57. package/dist/models/{update-policy-partner-role-response-class.d.ts → get-partner-role-response-class.d.ts} +7 -7
  58. package/dist/models/get-partner-role-response-class.js +15 -0
  59. package/dist/models/get-product-request-dto.d.ts +1 -1
  60. package/dist/models/index.d.ts +19 -7
  61. package/dist/models/index.js +19 -7
  62. package/dist/models/insured-object-type-class.d.ts +1 -1
  63. package/dist/models/invoice-item-class.d.ts +12 -0
  64. package/dist/models/lead-class.d.ts +8 -1
  65. package/dist/models/lead-status-class.d.ts +1 -1
  66. package/dist/models/list-emil-function-secrets-response-class.d.ts +25 -0
  67. package/dist/models/list-emil-function-secrets-response-class.js +15 -0
  68. package/dist/models/{list-policy-partner-roles-response-class.d.ts → list-emil-functions-response-class.d.ts} +8 -8
  69. package/dist/models/list-emil-functions-response-class.js +15 -0
  70. package/dist/models/list-partner-roles-response-class.d.ts +31 -0
  71. package/dist/models/list-partner-roles-response-class.js +15 -0
  72. package/dist/models/list-policy-versions-request-dto.d.ts +1 -1
  73. package/dist/models/list-request-dto.d.ts +1 -1
  74. package/dist/models/partner-class.d.ts +60 -0
  75. package/dist/models/partner-class.js +15 -0
  76. package/dist/models/partner-link-class.d.ts +86 -0
  77. package/dist/models/partner-link-class.js +15 -0
  78. package/dist/models/{policy-partner-role-class.d.ts → partner-role-class.d.ts} +10 -10
  79. package/dist/models/partner-role-class.js +15 -0
  80. package/dist/models/patch-draft-policy-request-dto.d.ts +1 -1
  81. package/dist/models/policy-class.d.ts +7 -0
  82. package/dist/models/product-class.d.ts +1 -1
  83. package/dist/models/shared-update-named-range-request-dto.d.ts +1 -1
  84. package/dist/models/status-transition-rule-class.d.ts +1 -1
  85. package/dist/models/update-emil-function-request-dto.d.ts +42 -0
  86. package/dist/models/update-emil-function-request-dto.js +15 -0
  87. package/dist/models/update-emil-function-secret-request-dto.d.ts +30 -0
  88. package/dist/models/update-emil-function-secret-request-dto.js +15 -0
  89. package/dist/models/update-named-range-request-dto.d.ts +1 -1
  90. package/dist/models/{create-policy-partner-role-request-dto.d.ts → update-partner-role-request-dto.d.ts} +6 -6
  91. package/dist/models/update-partner-role-request-dto.js +15 -0
  92. package/dist/models/update-partner-role-response-class.d.ts +25 -0
  93. package/dist/models/update-partner-role-response-class.js +15 -0
  94. package/dist/models/update-product-request-dto.d.ts +1 -1
  95. package/models/booking-funnel-class.ts +1 -1
  96. package/models/create-booking-funnel-request-dto.ts +1 -1
  97. package/models/create-emil-function-request-dto.ts +48 -0
  98. package/models/create-emil-function-secret-request-dto.ts +42 -0
  99. package/models/{update-policy-partner-role-request-dto.ts → create-partner-role-request-dto.ts} +6 -6
  100. package/models/{get-policy-partner-role-response-class.ts → create-partner-role-response-class.ts} +7 -7
  101. package/models/create-product-request-dto.ts +1 -1
  102. package/models/emil-function-class.ts +66 -0
  103. package/models/{update-policy-partner-role-response-class.ts → emil-function-secret-class.ts} +12 -7
  104. package/models/execute-emil-function-request-dto.ts +30 -0
  105. package/models/get-emil-function-secret-response-class.ts +30 -0
  106. package/models/{create-policy-partner-role-response-class.ts → get-partner-role-response-class.ts} +7 -7
  107. package/models/get-product-request-dto.ts +1 -1
  108. package/models/index.ts +19 -7
  109. package/models/insured-object-type-class.ts +1 -1
  110. package/models/invoice-item-class.ts +12 -0
  111. package/models/lead-class.ts +8 -1
  112. package/models/lead-status-class.ts +1 -1
  113. package/models/list-emil-function-secrets-response-class.ts +31 -0
  114. package/models/{list-policy-partner-roles-response-class.ts → list-emil-functions-response-class.ts} +8 -8
  115. package/models/list-partner-roles-response-class.ts +37 -0
  116. package/models/list-policy-versions-request-dto.ts +1 -1
  117. package/models/list-request-dto.ts +1 -1
  118. package/models/partner-class.ts +66 -0
  119. package/models/partner-link-class.ts +92 -0
  120. package/models/{policy-partner-role-class.ts → partner-role-class.ts} +10 -10
  121. package/models/patch-draft-policy-request-dto.ts +1 -1
  122. package/models/policy-class.ts +7 -0
  123. package/models/product-class.ts +1 -1
  124. package/models/shared-update-named-range-request-dto.ts +1 -1
  125. package/models/status-transition-rule-class.ts +1 -1
  126. package/models/update-emil-function-request-dto.ts +48 -0
  127. package/models/update-emil-function-secret-request-dto.ts +36 -0
  128. package/models/update-named-range-request-dto.ts +1 -1
  129. package/models/{create-policy-partner-role-request-dto.ts → update-partner-role-request-dto.ts} +6 -6
  130. package/models/update-partner-role-response-class.ts +31 -0
  131. package/models/update-product-request-dto.ts +1 -1
  132. package/package.json +1 -1
  133. package/api/policy-partner-roles-api.ts +0 -683
  134. package/dist/api/policy-partner-roles-api.d.ts +0 -385
  135. /package/dist/models/{create-policy-partner-role-request-dto.js → create-emil-function-request-dto.js} +0 -0
  136. /package/dist/models/{create-policy-partner-role-response-class.js → create-emil-function-secret-request-dto.js} +0 -0
  137. /package/dist/models/{get-policy-partner-role-response-class.js → create-partner-role-request-dto.js} +0 -0
  138. /package/dist/models/{list-policy-partner-roles-response-class.js → create-partner-role-response-class.js} +0 -0
  139. /package/dist/models/{policy-partner-role-class.js → emil-function-class.js} +0 -0
  140. /package/dist/models/{update-policy-partner-role-request-dto.js → emil-function-secret-class.js} +0 -0
  141. /package/dist/models/{update-policy-partner-role-response-class.js → execute-emil-function-request-dto.js} +0 -0
@@ -48,24 +48,24 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
48
48
  */
49
49
  activatePolicy: (policyCode: string, activatePolicyRequestDto: ActivatePolicyRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
50
50
  /**
51
- * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
52
- * @summary Create the policy
53
- * @param {CreatePolicyRequestDto} createPolicyRequestDto
51
+ * This will create a draft policy in the database.
52
+ * @summary Create the draft-policy
53
+ * @param {string} policyCode
54
+ * @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
54
55
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
55
56
  * @param {*} [options] Override http request option.
56
57
  * @throws {RequiredError}
57
58
  */
58
- createPolicy: (createPolicyRequestDto: CreatePolicyRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
59
+ createDraftPolicy: (policyCode: string, createDraftPolicyRequestDto: CreateDraftPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
59
60
  /**
60
- * This will create a draft policy in the database.
61
- * @summary Create the draft-policy
62
- * @param {string} policyCode
63
- * @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
61
+ * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
62
+ * @summary Create the policy
63
+ * @param {CreatePolicyRequestDto} createPolicyRequestDto
64
64
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
65
65
  * @param {*} [options] Override http request option.
66
66
  * @throws {RequiredError}
67
67
  */
68
- createPolicy_1: (policyCode: string, createDraftPolicyRequestDto: CreateDraftPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
68
+ createPolicy: (createPolicyRequestDto: CreatePolicyRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
69
69
  /**
70
70
  * Permanently deletes the draft-policy. Supply the unique code that was returned when you created the draft-policy and this will delete it.
71
71
  * @summary Delete the draft-policy
@@ -92,11 +92,11 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
92
92
  * @summary Retrieve the policy
93
93
  * @param {string} code Unique identifier for the object.
94
94
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
95
- * @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.
95
+ * @param {string} [expand] You can expand policy in this endpoint. \&#39; + \&#39;By default, versions will be an empty array. Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas.
96
96
  * @param {*} [options] Override http request option.
97
97
  * @throws {RequiredError}
98
98
  */
99
- getPolicy: (code: string, authorization?: string, expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options?: AxiosRequestConfig) => Promise<RequestArgs>;
99
+ getPolicy: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
100
100
  /**
101
101
  * This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
102
102
  * @summary Retrieve current policy version
@@ -116,12 +116,12 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
116
116
  * @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;
117
117
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
118
118
  * @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;
119
- * @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.
119
+ * @param {any} [expand] You can expand policy versions list in this endpoint. \&#39; + \&#39;By default, versions will be an empty array. Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas.
120
120
  * @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.
121
121
  * @param {*} [options] Override http request option.
122
122
  * @throws {RequiredError}
123
123
  */
124
- 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<RequestArgs>;
124
+ listPolicies: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
125
125
  /**
126
126
  * 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).
127
127
  * @summary List policy objects
@@ -154,26 +154,25 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
154
154
  */
155
155
  listPolicyVersions: (policyCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
156
156
  /**
157
- * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
158
- * @summary Update the policy
159
- * @param {string} code Unique identifier for the object.
160
- * @param {PatchPolicyRequestDto} patchPolicyRequestDto
157
+ * Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
158
+ * @summary Update the draft-policy
159
+ * @param {string} policyCode The policy code of the draft policy to
160
+ * @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
161
161
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
162
162
  * @param {*} [options] Override http request option.
163
163
  * @throws {RequiredError}
164
164
  */
165
- patchPolicy: (code: string, patchPolicyRequestDto: PatchPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
165
+ patchDraftPolicy: (policyCode: string, patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
166
166
  /**
167
- * Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
168
- * @summary Update the draft-policy
169
- * @param {string} policyCode
170
- * @param {any} code Unique identifier for the object.
171
- * @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
167
+ * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
168
+ * @summary Update the policy
169
+ * @param {string} code Unique identifier for the object.
170
+ * @param {PatchPolicyRequestDto} patchPolicyRequestDto
172
171
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
173
172
  * @param {*} [options] Override http request option.
174
173
  * @throws {RequiredError}
175
174
  */
176
- patchPolicy_2: (policyCode: string, code: any, patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
175
+ patchPolicy: (code: string, patchPolicyRequestDto: PatchPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
177
176
  /**
178
177
  * Request to suspend an existing policy by tenant.
179
178
  * @summary Suspend a policy by tenant
@@ -231,24 +230,24 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
231
230
  */
232
231
  activatePolicy(policyCode: string, activatePolicyRequestDto: ActivatePolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActivatePolicyResponseClass>>;
233
232
  /**
234
- * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
235
- * @summary Create the policy
236
- * @param {CreatePolicyRequestDto} createPolicyRequestDto
233
+ * This will create a draft policy in the database.
234
+ * @summary Create the draft-policy
235
+ * @param {string} policyCode
236
+ * @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
237
237
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
238
238
  * @param {*} [options] Override http request option.
239
239
  * @throws {RequiredError}
240
240
  */
241
- createPolicy(createPolicyRequestDto: CreatePolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePolicyResponseClass>>;
241
+ createDraftPolicy(policyCode: string, createDraftPolicyRequestDto: CreateDraftPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePolicyResponseClass>>;
242
242
  /**
243
- * This will create a draft policy in the database.
244
- * @summary Create the draft-policy
245
- * @param {string} policyCode
246
- * @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
243
+ * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
244
+ * @summary Create the policy
245
+ * @param {CreatePolicyRequestDto} createPolicyRequestDto
247
246
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
248
247
  * @param {*} [options] Override http request option.
249
248
  * @throws {RequiredError}
250
249
  */
251
- createPolicy_1(policyCode: string, createDraftPolicyRequestDto: CreateDraftPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePolicyResponseClass>>;
250
+ createPolicy(createPolicyRequestDto: CreatePolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePolicyResponseClass>>;
252
251
  /**
253
252
  * Permanently deletes the draft-policy. Supply the unique code that was returned when you created the draft-policy and this will delete it.
254
253
  * @summary Delete the draft-policy
@@ -275,11 +274,11 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
275
274
  * @summary Retrieve the policy
276
275
  * @param {string} code Unique identifier for the object.
277
276
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
278
- * @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.
277
+ * @param {string} [expand] You can expand policy in this endpoint. \&#39; + \&#39;By default, versions will be an empty array. Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas.
279
278
  * @param {*} [options] Override http request option.
280
279
  * @throws {RequiredError}
281
280
  */
282
- 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>>;
281
+ getPolicy(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyResponseClass>>;
283
282
  /**
284
283
  * This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
285
284
  * @summary Retrieve current policy version
@@ -299,12 +298,12 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
299
298
  * @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;
300
299
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
301
300
  * @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;
302
- * @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.
301
+ * @param {any} [expand] You can expand policy versions list in this endpoint. \&#39; + \&#39;By default, versions will be an empty array. Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas.
303
302
  * @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.
304
303
  * @param {*} [options] Override http request option.
305
304
  * @throws {RequiredError}
306
305
  */
307
- 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>>;
306
+ listPolicies(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesResponseClass>>;
308
307
  /**
309
308
  * 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).
310
309
  * @summary List policy objects
@@ -337,26 +336,25 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
337
336
  */
338
337
  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>>;
339
338
  /**
340
- * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
341
- * @summary Update the policy
342
- * @param {string} code Unique identifier for the object.
343
- * @param {PatchPolicyRequestDto} patchPolicyRequestDto
339
+ * Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
340
+ * @summary Update the draft-policy
341
+ * @param {string} policyCode The policy code of the draft policy to
342
+ * @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
344
343
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
345
344
  * @param {*} [options] Override http request option.
346
345
  * @throws {RequiredError}
347
346
  */
348
- patchPolicy(code: string, patchPolicyRequestDto: PatchPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchPolicyResponseClass>>;
347
+ patchDraftPolicy(policyCode: string, patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchPolicyResponseClass>>;
349
348
  /**
350
- * Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
351
- * @summary Update the draft-policy
352
- * @param {string} policyCode
353
- * @param {any} code Unique identifier for the object.
354
- * @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
349
+ * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
350
+ * @summary Update the policy
351
+ * @param {string} code Unique identifier for the object.
352
+ * @param {PatchPolicyRequestDto} patchPolicyRequestDto
355
353
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
356
354
  * @param {*} [options] Override http request option.
357
355
  * @throws {RequiredError}
358
356
  */
359
- patchPolicy_2(policyCode: string, code: any, patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchPolicyResponseClass>>;
357
+ patchPolicy(code: string, patchPolicyRequestDto: PatchPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchPolicyResponseClass>>;
360
358
  /**
361
359
  * Request to suspend an existing policy by tenant.
362
360
  * @summary Suspend a policy by tenant
@@ -414,24 +412,24 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
414
412
  */
415
413
  activatePolicy(policyCode: string, activatePolicyRequestDto: ActivatePolicyRequestDto, authorization?: string, options?: any): AxiosPromise<ActivatePolicyResponseClass>;
416
414
  /**
417
- * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
418
- * @summary Create the policy
419
- * @param {CreatePolicyRequestDto} createPolicyRequestDto
415
+ * This will create a draft policy in the database.
416
+ * @summary Create the draft-policy
417
+ * @param {string} policyCode
418
+ * @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
420
419
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
421
420
  * @param {*} [options] Override http request option.
422
421
  * @throws {RequiredError}
423
422
  */
424
- createPolicy(createPolicyRequestDto: CreatePolicyRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePolicyResponseClass>;
423
+ createDraftPolicy(policyCode: string, createDraftPolicyRequestDto: CreateDraftPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePolicyResponseClass>;
425
424
  /**
426
- * This will create a draft policy in the database.
427
- * @summary Create the draft-policy
428
- * @param {string} policyCode
429
- * @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
425
+ * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
426
+ * @summary Create the policy
427
+ * @param {CreatePolicyRequestDto} createPolicyRequestDto
430
428
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
431
429
  * @param {*} [options] Override http request option.
432
430
  * @throws {RequiredError}
433
431
  */
434
- createPolicy_1(policyCode: string, createDraftPolicyRequestDto: CreateDraftPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePolicyResponseClass>;
432
+ createPolicy(createPolicyRequestDto: CreatePolicyRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePolicyResponseClass>;
435
433
  /**
436
434
  * Permanently deletes the draft-policy. Supply the unique code that was returned when you created the draft-policy and this will delete it.
437
435
  * @summary Delete the draft-policy
@@ -458,11 +456,11 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
458
456
  * @summary Retrieve the policy
459
457
  * @param {string} code Unique identifier for the object.
460
458
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
461
- * @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.
459
+ * @param {string} [expand] You can expand policy in this endpoint. \&#39; + \&#39;By default, versions will be an empty array. Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas.
462
460
  * @param {*} [options] Override http request option.
463
461
  * @throws {RequiredError}
464
462
  */
465
- getPolicy(code: string, authorization?: string, expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options?: any): AxiosPromise<GetPolicyResponseClass>;
463
+ getPolicy(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetPolicyResponseClass>;
466
464
  /**
467
465
  * This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
468
466
  * @summary Retrieve current policy version
@@ -482,12 +480,12 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
482
480
  * @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;
483
481
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
484
482
  * @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;
485
- * @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.
483
+ * @param {any} [expand] You can expand policy versions list in this endpoint. \&#39; + \&#39;By default, versions will be an empty array. Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas.
486
484
  * @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.
487
485
  * @param {*} [options] Override http request option.
488
486
  * @throws {RequiredError}
489
487
  */
490
- 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>;
488
+ listPolicies(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListPoliciesResponseClass>;
491
489
  /**
492
490
  * 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).
493
491
  * @summary List policy objects
@@ -520,26 +518,25 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
520
518
  */
521
519
  listPolicyVersions(policyCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListPolicyVersionResponseClass>;
522
520
  /**
523
- * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
524
- * @summary Update the policy
525
- * @param {string} code Unique identifier for the object.
526
- * @param {PatchPolicyRequestDto} patchPolicyRequestDto
521
+ * Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
522
+ * @summary Update the draft-policy
523
+ * @param {string} policyCode The policy code of the draft policy to
524
+ * @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
527
525
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
528
526
  * @param {*} [options] Override http request option.
529
527
  * @throws {RequiredError}
530
528
  */
531
- patchPolicy(code: string, patchPolicyRequestDto: PatchPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<PatchPolicyResponseClass>;
529
+ patchDraftPolicy(policyCode: string, patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<PatchPolicyResponseClass>;
532
530
  /**
533
- * Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
534
- * @summary Update the draft-policy
535
- * @param {string} policyCode
536
- * @param {any} code Unique identifier for the object.
537
- * @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
531
+ * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
532
+ * @summary Update the policy
533
+ * @param {string} code Unique identifier for the object.
534
+ * @param {PatchPolicyRequestDto} patchPolicyRequestDto
538
535
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
539
536
  * @param {*} [options] Override http request option.
540
537
  * @throws {RequiredError}
541
538
  */
542
- patchPolicy_2(policyCode: string, code: any, patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<PatchPolicyResponseClass>;
539
+ patchPolicy(code: string, patchPolicyRequestDto: PatchPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<PatchPolicyResponseClass>;
543
540
  /**
544
541
  * Request to suspend an existing policy by tenant.
545
542
  * @summary Suspend a policy by tenant
@@ -607,46 +604,46 @@ export interface PoliciesApiActivatePolicyRequest {
607
604
  readonly authorization?: string;
608
605
  }
609
606
  /**
610
- * Request parameters for createPolicy operation in PoliciesApi.
607
+ * Request parameters for createDraftPolicy operation in PoliciesApi.
611
608
  * @export
612
- * @interface PoliciesApiCreatePolicyRequest
609
+ * @interface PoliciesApiCreateDraftPolicyRequest
613
610
  */
614
- export interface PoliciesApiCreatePolicyRequest {
611
+ export interface PoliciesApiCreateDraftPolicyRequest {
615
612
  /**
616
613
  *
617
- * @type {CreatePolicyRequestDto}
618
- * @memberof PoliciesApiCreatePolicy
614
+ * @type {string}
615
+ * @memberof PoliciesApiCreateDraftPolicy
619
616
  */
620
- readonly createPolicyRequestDto: CreatePolicyRequestDto;
617
+ readonly policyCode: string;
618
+ /**
619
+ *
620
+ * @type {CreateDraftPolicyRequestDto}
621
+ * @memberof PoliciesApiCreateDraftPolicy
622
+ */
623
+ readonly createDraftPolicyRequestDto: CreateDraftPolicyRequestDto;
621
624
  /**
622
625
  * Bearer Token: provided by the login endpoint under the name accessToken.
623
626
  * @type {string}
624
- * @memberof PoliciesApiCreatePolicy
627
+ * @memberof PoliciesApiCreateDraftPolicy
625
628
  */
626
629
  readonly authorization?: string;
627
630
  }
628
631
  /**
629
- * Request parameters for createPolicy_1 operation in PoliciesApi.
632
+ * Request parameters for createPolicy operation in PoliciesApi.
630
633
  * @export
631
- * @interface PoliciesApiCreatePolicy0Request
634
+ * @interface PoliciesApiCreatePolicyRequest
632
635
  */
633
- export interface PoliciesApiCreatePolicy0Request {
634
- /**
635
- *
636
- * @type {string}
637
- * @memberof PoliciesApiCreatePolicy0
638
- */
639
- readonly policyCode: string;
636
+ export interface PoliciesApiCreatePolicyRequest {
640
637
  /**
641
638
  *
642
- * @type {CreateDraftPolicyRequestDto}
643
- * @memberof PoliciesApiCreatePolicy0
639
+ * @type {CreatePolicyRequestDto}
640
+ * @memberof PoliciesApiCreatePolicy
644
641
  */
645
- readonly createDraftPolicyRequestDto: CreateDraftPolicyRequestDto;
642
+ readonly createPolicyRequestDto: CreatePolicyRequestDto;
646
643
  /**
647
644
  * Bearer Token: provided by the login endpoint under the name accessToken.
648
645
  * @type {string}
649
- * @memberof PoliciesApiCreatePolicy0
646
+ * @memberof PoliciesApiCreatePolicy
650
647
  */
651
648
  readonly authorization?: string;
652
649
  }
@@ -725,11 +722,11 @@ export interface PoliciesApiGetPolicyRequest {
725
722
  */
726
723
  readonly authorization?: string;
727
724
  /**
728
- * You can expand policy in this endpoint. By default, versions will be an empty array.
729
- * @type {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'}
725
+ * You can expand policy in this endpoint. \&#39; + \&#39;By default, versions will be an empty array. Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas.
726
+ * @type {string}
730
727
  * @memberof PoliciesApiGetPolicy
731
728
  */
732
- readonly expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas';
729
+ readonly expand?: string;
733
730
  }
734
731
  /**
735
732
  * Request parameters for getPolicyDataByDate operation in PoliciesApi.
@@ -799,11 +796,11 @@ export interface PoliciesApiListPoliciesRequest {
799
796
  */
800
797
  readonly order?: any;
801
798
  /**
802
- * You can expand policy versions list in this endpoint. By default, versions will be an empty array.
803
- * @type {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'}
799
+ * You can expand policy versions list in this endpoint. \&#39; + \&#39;By default, versions will be an empty array. Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas.
800
+ * @type {any}
804
801
  * @memberof PoliciesApiListPolicies
805
802
  */
806
- readonly expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas';
803
+ readonly expand?: any;
807
804
  /**
808
805
  * 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.
809
806
  * @type {any}
@@ -928,58 +925,52 @@ export interface PoliciesApiListPolicyVersionsRequest {
928
925
  readonly filters?: any;
929
926
  }
930
927
  /**
931
- * Request parameters for patchPolicy operation in PoliciesApi.
928
+ * Request parameters for patchDraftPolicy operation in PoliciesApi.
932
929
  * @export
933
- * @interface PoliciesApiPatchPolicyRequest
930
+ * @interface PoliciesApiPatchDraftPolicyRequest
934
931
  */
935
- export interface PoliciesApiPatchPolicyRequest {
932
+ export interface PoliciesApiPatchDraftPolicyRequest {
936
933
  /**
937
- * Unique identifier for the object.
934
+ * The policy code of the draft policy to
938
935
  * @type {string}
939
- * @memberof PoliciesApiPatchPolicy
936
+ * @memberof PoliciesApiPatchDraftPolicy
940
937
  */
941
- readonly code: string;
938
+ readonly policyCode: string;
942
939
  /**
943
940
  *
944
- * @type {PatchPolicyRequestDto}
945
- * @memberof PoliciesApiPatchPolicy
941
+ * @type {PatchDraftPolicyRequestDto}
942
+ * @memberof PoliciesApiPatchDraftPolicy
946
943
  */
947
- readonly patchPolicyRequestDto: PatchPolicyRequestDto;
944
+ readonly patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto;
948
945
  /**
949
946
  * Bearer Token: provided by the login endpoint under the name accessToken.
950
947
  * @type {string}
951
- * @memberof PoliciesApiPatchPolicy
948
+ * @memberof PoliciesApiPatchDraftPolicy
952
949
  */
953
950
  readonly authorization?: string;
954
951
  }
955
952
  /**
956
- * Request parameters for patchPolicy_2 operation in PoliciesApi.
953
+ * Request parameters for patchPolicy operation in PoliciesApi.
957
954
  * @export
958
- * @interface PoliciesApiPatchPolicy0Request
955
+ * @interface PoliciesApiPatchPolicyRequest
959
956
  */
960
- export interface PoliciesApiPatchPolicy0Request {
961
- /**
962
- *
963
- * @type {string}
964
- * @memberof PoliciesApiPatchPolicy0
965
- */
966
- readonly policyCode: string;
957
+ export interface PoliciesApiPatchPolicyRequest {
967
958
  /**
968
959
  * Unique identifier for the object.
969
- * @type {any}
970
- * @memberof PoliciesApiPatchPolicy0
960
+ * @type {string}
961
+ * @memberof PoliciesApiPatchPolicy
971
962
  */
972
- readonly code: any;
963
+ readonly code: string;
973
964
  /**
974
965
  *
975
- * @type {PatchDraftPolicyRequestDto}
976
- * @memberof PoliciesApiPatchPolicy0
966
+ * @type {PatchPolicyRequestDto}
967
+ * @memberof PoliciesApiPatchPolicy
977
968
  */
978
- readonly patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto;
969
+ readonly patchPolicyRequestDto: PatchPolicyRequestDto;
979
970
  /**
980
971
  * Bearer Token: provided by the login endpoint under the name accessToken.
981
972
  * @type {string}
982
- * @memberof PoliciesApiPatchPolicy0
973
+ * @memberof PoliciesApiPatchPolicy
983
974
  */
984
975
  readonly authorization?: string;
985
976
  }
@@ -1100,23 +1091,23 @@ export declare class PoliciesApi extends BaseAPI {
1100
1091
  */
1101
1092
  activatePolicy(requestParameters: PoliciesApiActivatePolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ActivatePolicyResponseClass, any>>;
1102
1093
  /**
1103
- * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
1104
- * @summary Create the policy
1105
- * @param {PoliciesApiCreatePolicyRequest} requestParameters Request parameters.
1094
+ * This will create a draft policy in the database.
1095
+ * @summary Create the draft-policy
1096
+ * @param {PoliciesApiCreateDraftPolicyRequest} requestParameters Request parameters.
1106
1097
  * @param {*} [options] Override http request option.
1107
1098
  * @throws {RequiredError}
1108
1099
  * @memberof PoliciesApi
1109
1100
  */
1110
- createPolicy(requestParameters: PoliciesApiCreatePolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePolicyResponseClass, any>>;
1101
+ createDraftPolicy(requestParameters: PoliciesApiCreateDraftPolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePolicyResponseClass, any>>;
1111
1102
  /**
1112
- * This will create a draft policy in the database.
1113
- * @summary Create the draft-policy
1114
- * @param {PoliciesApiCreatePolicy0Request} requestParameters Request parameters.
1103
+ * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
1104
+ * @summary Create the policy
1105
+ * @param {PoliciesApiCreatePolicyRequest} requestParameters Request parameters.
1115
1106
  * @param {*} [options] Override http request option.
1116
1107
  * @throws {RequiredError}
1117
1108
  * @memberof PoliciesApi
1118
1109
  */
1119
- createPolicy_1(requestParameters: PoliciesApiCreatePolicy0Request, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePolicyResponseClass, any>>;
1110
+ createPolicy(requestParameters: PoliciesApiCreatePolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePolicyResponseClass, any>>;
1120
1111
  /**
1121
1112
  * Permanently deletes the draft-policy. Supply the unique code that was returned when you created the draft-policy and this will delete it.
1122
1113
  * @summary Delete the draft-policy
@@ -1181,23 +1172,23 @@ export declare class PoliciesApi extends BaseAPI {
1181
1172
  */
1182
1173
  listPolicyVersions(requestParameters: PoliciesApiListPolicyVersionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPolicyVersionResponseClass, any>>;
1183
1174
  /**
1184
- * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1185
- * @summary Update the policy
1186
- * @param {PoliciesApiPatchPolicyRequest} requestParameters Request parameters.
1175
+ * Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1176
+ * @summary Update the draft-policy
1177
+ * @param {PoliciesApiPatchDraftPolicyRequest} requestParameters Request parameters.
1187
1178
  * @param {*} [options] Override http request option.
1188
1179
  * @throws {RequiredError}
1189
1180
  * @memberof PoliciesApi
1190
1181
  */
1191
- patchPolicy(requestParameters: PoliciesApiPatchPolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PatchPolicyResponseClass, any>>;
1182
+ patchDraftPolicy(requestParameters: PoliciesApiPatchDraftPolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PatchPolicyResponseClass, any>>;
1192
1183
  /**
1193
- * Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1194
- * @summary Update the draft-policy
1195
- * @param {PoliciesApiPatchPolicy0Request} requestParameters Request parameters.
1184
+ * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1185
+ * @summary Update the policy
1186
+ * @param {PoliciesApiPatchPolicyRequest} requestParameters Request parameters.
1196
1187
  * @param {*} [options] Override http request option.
1197
1188
  * @throws {RequiredError}
1198
1189
  * @memberof PoliciesApi
1199
1190
  */
1200
- patchPolicy_2(requestParameters: PoliciesApiPatchPolicy0Request, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PatchPolicyResponseClass, any>>;
1191
+ patchPolicy(requestParameters: PoliciesApiPatchPolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PatchPolicyResponseClass, any>>;
1201
1192
  /**
1202
1193
  * Request to suspend an existing policy by tenant.
1203
1194
  * @summary Suspend a policy by tenant