@emilgroup/insurance-sdk-node 1.52.0 → 1.53.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 (114) hide show
  1. package/.openapi-generator/FILES +33 -1
  2. package/README.md +2 -2
  3. package/api/commission-agreement-products-api.ts +710 -0
  4. package/api/commission-agreement-versions-api.ts +592 -0
  5. package/api/commission-agreements-api.ts +697 -0
  6. package/api/commission-recipients-api.ts +696 -0
  7. package/api/{default-api.ts → health-check-api.ts} +21 -17
  8. package/api/insured-objects-api.ts +5 -2
  9. package/api/policies-api.ts +176 -221
  10. package/api.ts +10 -2
  11. package/dist/api/commission-agreement-products-api.d.ts +403 -0
  12. package/dist/api/commission-agreement-products-api.js +652 -0
  13. package/dist/api/commission-agreement-versions-api.d.ts +337 -0
  14. package/dist/api/commission-agreement-versions-api.js +555 -0
  15. package/dist/api/commission-agreements-api.d.ts +394 -0
  16. package/dist/api/commission-agreements-api.js +646 -0
  17. package/dist/api/commission-recipients-api.d.ts +394 -0
  18. package/dist/api/commission-recipients-api.js +646 -0
  19. package/dist/api/health-check-api.d.ts +70 -0
  20. package/dist/api/{default-api.js → health-check-api.js} +30 -26
  21. package/dist/api/insured-objects-api.js +4 -2
  22. package/dist/api/policies-api.d.ts +134 -161
  23. package/dist/api/policies-api.js +129 -151
  24. package/dist/api.d.ts +5 -1
  25. package/dist/api.js +5 -1
  26. package/dist/models/commission-agreement-class.d.ts +89 -0
  27. package/dist/models/commission-agreement-class.js +23 -0
  28. package/dist/models/commission-agreement-item-class.d.ts +66 -0
  29. package/dist/models/commission-agreement-item-class.js +15 -0
  30. package/dist/models/commission-agreement-product-class.d.ts +72 -0
  31. package/dist/models/commission-agreement-product-class.js +15 -0
  32. package/dist/models/commission-agreement-version-class.d.ts +79 -0
  33. package/dist/models/commission-agreement-version-class.js +15 -0
  34. package/dist/models/commission-recipient-class.d.ts +78 -0
  35. package/dist/models/commission-recipient-class.js +15 -0
  36. package/dist/models/create-commission-agreement-item-dto.d.ts +36 -0
  37. package/dist/models/create-commission-agreement-item-dto.js +15 -0
  38. package/dist/models/create-commission-agreement-product-request-dto.d.ts +42 -0
  39. package/dist/models/create-commission-agreement-product-request-dto.js +15 -0
  40. package/dist/models/create-commission-agreement-product-response-class.d.ts +25 -0
  41. package/dist/models/create-commission-agreement-product-response-class.js +15 -0
  42. package/dist/models/create-commission-agreement-request-dto.d.ts +75 -0
  43. package/dist/models/create-commission-agreement-request-dto.js +23 -0
  44. package/dist/models/create-commission-agreement-response-class.d.ts +25 -0
  45. package/dist/models/create-commission-agreement-response-class.js +15 -0
  46. package/dist/models/create-commission-agreement-version-request-dto.d.ts +49 -0
  47. package/dist/models/create-commission-agreement-version-request-dto.js +15 -0
  48. package/dist/models/create-commission-agreement-version-response-class.d.ts +25 -0
  49. package/dist/models/create-commission-agreement-version-response-class.js +15 -0
  50. package/dist/models/create-commission-recipient-request-dto.d.ts +48 -0
  51. package/dist/models/create-commission-recipient-request-dto.js +15 -0
  52. package/dist/models/create-commission-recipient-response-class.d.ts +25 -0
  53. package/dist/models/create-commission-recipient-response-class.js +15 -0
  54. package/dist/models/get-commission-agreement-product-response-class.d.ts +25 -0
  55. package/dist/models/get-commission-agreement-product-response-class.js +15 -0
  56. package/dist/models/get-commission-agreement-response-class.d.ts +25 -0
  57. package/dist/models/get-commission-agreement-response-class.js +15 -0
  58. package/dist/models/get-commission-agreement-version-response-class.d.ts +25 -0
  59. package/dist/models/get-commission-agreement-version-response-class.js +15 -0
  60. package/dist/models/get-commission-recipient-response-class.d.ts +25 -0
  61. package/dist/models/get-commission-recipient-response-class.js +15 -0
  62. package/dist/models/index.d.ts +28 -0
  63. package/dist/models/index.js +28 -0
  64. package/dist/models/list-commission-agreement-products-response-class.d.ts +31 -0
  65. package/dist/models/list-commission-agreement-products-response-class.js +15 -0
  66. package/dist/models/list-commission-agreement-versions-response-class.d.ts +31 -0
  67. package/dist/models/list-commission-agreement-versions-response-class.js +15 -0
  68. package/dist/models/list-commission-agreements-response-class.d.ts +31 -0
  69. package/dist/models/list-commission-agreements-response-class.js +15 -0
  70. package/dist/models/list-commission-recipients-response-class.d.ts +31 -0
  71. package/dist/models/list-commission-recipients-response-class.js +15 -0
  72. package/dist/models/update-commission-agreement-product-request-dto.d.ts +42 -0
  73. package/dist/models/update-commission-agreement-product-request-dto.js +15 -0
  74. package/dist/models/update-commission-agreement-product-response-class.d.ts +25 -0
  75. package/dist/models/update-commission-agreement-product-response-class.js +15 -0
  76. package/dist/models/update-commission-agreement-request-dto.d.ts +44 -0
  77. package/dist/models/update-commission-agreement-request-dto.js +23 -0
  78. package/dist/models/update-commission-agreement-response-class.d.ts +25 -0
  79. package/dist/models/update-commission-agreement-response-class.js +15 -0
  80. package/dist/models/update-commission-recipient-request-dto.d.ts +48 -0
  81. package/dist/models/update-commission-recipient-request-dto.js +15 -0
  82. package/dist/models/update-commission-recipient-response-class.d.ts +25 -0
  83. package/dist/models/update-commission-recipient-response-class.js +15 -0
  84. package/models/commission-agreement-class.ts +98 -0
  85. package/models/commission-agreement-item-class.ts +72 -0
  86. package/models/commission-agreement-product-class.ts +78 -0
  87. package/models/commission-agreement-version-class.ts +85 -0
  88. package/models/commission-recipient-class.ts +84 -0
  89. package/models/create-commission-agreement-item-dto.ts +42 -0
  90. package/models/create-commission-agreement-product-request-dto.ts +48 -0
  91. package/models/create-commission-agreement-product-response-class.ts +31 -0
  92. package/models/create-commission-agreement-request-dto.ts +84 -0
  93. package/models/create-commission-agreement-response-class.ts +31 -0
  94. package/models/create-commission-agreement-version-request-dto.ts +55 -0
  95. package/models/create-commission-agreement-version-response-class.ts +31 -0
  96. package/models/create-commission-recipient-request-dto.ts +54 -0
  97. package/models/create-commission-recipient-response-class.ts +31 -0
  98. package/models/get-commission-agreement-product-response-class.ts +31 -0
  99. package/models/get-commission-agreement-response-class.ts +31 -0
  100. package/models/get-commission-agreement-version-response-class.ts +31 -0
  101. package/models/get-commission-recipient-response-class.ts +31 -0
  102. package/models/index.ts +28 -0
  103. package/models/list-commission-agreement-products-response-class.ts +37 -0
  104. package/models/list-commission-agreement-versions-response-class.ts +37 -0
  105. package/models/list-commission-agreements-response-class.ts +37 -0
  106. package/models/list-commission-recipients-response-class.ts +37 -0
  107. package/models/update-commission-agreement-product-request-dto.ts +48 -0
  108. package/models/update-commission-agreement-product-response-class.ts +31 -0
  109. package/models/update-commission-agreement-request-dto.ts +53 -0
  110. package/models/update-commission-agreement-response-class.ts +31 -0
  111. package/models/update-commission-recipient-request-dto.ts +54 -0
  112. package/models/update-commission-recipient-response-class.ts +31 -0
  113. package/package.json +1 -1
  114. package/dist/api/default-api.d.ts +0 -66
@@ -48,55 +48,53 @@ 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 Unique identifier for the object.
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
72
- * @param {string} policyCode
73
- * @param {string} policyCode2 Unique identifier of the Draft Policy that this object belongs to.
72
+ * @param {string} policyCode Unique identifier for the object.
74
73
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
75
74
  * @param {*} [options] Override http request option.
76
75
  * @throws {RequiredError}
77
76
  */
78
- deleteDraftPolicy: (policyCode: string, policyCode2: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
77
+ deleteDraftPolicy: (policyCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
79
78
  /**
80
79
  * 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.
81
80
  * @summary Retrieve the draft-policy
82
- * @param {string} policyCode
83
- * @param {string} policyCode2 Unique identifier of the Draft Policy that this object belongs to.
81
+ * @param {string} policyCode Unique identifier for the object.
84
82
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
85
83
  * @param {string} [expand] Fields to expand response by.
86
84
  * @param {*} [options] Override http request option.
87
85
  * @throws {RequiredError}
88
86
  */
89
- getDraftPolicy: (policyCode: string, policyCode2: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
87
+ getDraftPolicy: (policyCode: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
90
88
  /**
91
89
  * 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.
92
90
  * @summary Retrieve the policy
93
91
  * @param {string} code Unique identifier for the object.
94
92
  * @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' | '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.
93
+ * @param {string} [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.
96
94
  * @param {*} [options] Override http request option.
97
95
  * @throws {RequiredError}
98
96
  */
99
- getPolicy: (code: string, authorization?: string, expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas' | 'partnerLinks', options?: AxiosRequestConfig) => Promise<RequestArgs>;
97
+ getPolicy: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
100
98
  /**
101
99
  * 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
100
  * @summary Retrieve current policy version
@@ -154,26 +152,25 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
154
152
  */
155
153
  listPolicyVersions: (policyCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
156
154
  /**
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
155
+ * Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
156
+ * @summary Update the draft-policy
157
+ * @param {string} policyCode Unique identifier for the object.
158
+ * @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
161
159
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
162
160
  * @param {*} [options] Override http request option.
163
161
  * @throws {RequiredError}
164
162
  */
165
- patchPolicy: (code: string, patchPolicyRequestDto: PatchPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
163
+ patchDraftPolicy: (policyCode: string, patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
166
164
  /**
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
165
+ * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
166
+ * @summary Update the policy
167
+ * @param {string} code Unique identifier for the object.
168
+ * @param {PatchPolicyRequestDto} patchPolicyRequestDto
172
169
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
173
170
  * @param {*} [options] Override http request option.
174
171
  * @throws {RequiredError}
175
172
  */
176
- patchPolicy_2: (policyCode: string, code: any, patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
173
+ patchPolicy: (code: string, patchPolicyRequestDto: PatchPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
177
174
  /**
178
175
  * Request to suspend an existing policy by tenant.
179
176
  * @summary Suspend a policy by tenant
@@ -231,55 +228,53 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
231
228
  */
232
229
  activatePolicy(policyCode: string, activatePolicyRequestDto: ActivatePolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActivatePolicyResponseClass>>;
233
230
  /**
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
231
+ * This will create a draft policy in the database.
232
+ * @summary Create the draft-policy
233
+ * @param {string} policyCode Unique identifier for the object.
234
+ * @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
237
235
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
238
236
  * @param {*} [options] Override http request option.
239
237
  * @throws {RequiredError}
240
238
  */
241
- createPolicy(createPolicyRequestDto: CreatePolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePolicyResponseClass>>;
239
+ createDraftPolicy(policyCode: string, createDraftPolicyRequestDto: CreateDraftPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePolicyResponseClass>>;
242
240
  /**
243
- * This will create a draft policy in the database.
244
- * @summary Create the draft-policy
245
- * @param {string} policyCode
246
- * @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
241
+ * 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.
242
+ * @summary Create the policy
243
+ * @param {CreatePolicyRequestDto} createPolicyRequestDto
247
244
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
248
245
  * @param {*} [options] Override http request option.
249
246
  * @throws {RequiredError}
250
247
  */
251
- createPolicy_1(policyCode: string, createDraftPolicyRequestDto: CreateDraftPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePolicyResponseClass>>;
248
+ createPolicy(createPolicyRequestDto: CreatePolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePolicyResponseClass>>;
252
249
  /**
253
250
  * Permanently deletes the draft-policy. Supply the unique code that was returned when you created the draft-policy and this will delete it.
254
251
  * @summary Delete the draft-policy
255
- * @param {string} policyCode
256
- * @param {string} policyCode2 Unique identifier of the Draft Policy that this object belongs to.
252
+ * @param {string} policyCode Unique identifier for the object.
257
253
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
258
254
  * @param {*} [options] Override http request option.
259
255
  * @throws {RequiredError}
260
256
  */
261
- deleteDraftPolicy(policyCode: string, policyCode2: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>>;
257
+ deleteDraftPolicy(policyCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>>;
262
258
  /**
263
259
  * 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.
264
260
  * @summary Retrieve the draft-policy
265
- * @param {string} policyCode
266
- * @param {string} policyCode2 Unique identifier of the Draft Policy that this object belongs to.
261
+ * @param {string} policyCode Unique identifier for the object.
267
262
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
268
263
  * @param {string} [expand] Fields to expand response by.
269
264
  * @param {*} [options] Override http request option.
270
265
  * @throws {RequiredError}
271
266
  */
272
- getDraftPolicy(policyCode: string, policyCode2: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyResponseClass>>;
267
+ getDraftPolicy(policyCode: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyResponseClass>>;
273
268
  /**
274
269
  * 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.
275
270
  * @summary Retrieve the policy
276
271
  * @param {string} code Unique identifier for the object.
277
272
  * @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' | '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.
273
+ * @param {string} [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.
279
274
  * @param {*} [options] Override http request option.
280
275
  * @throws {RequiredError}
281
276
  */
282
- 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>>;
277
+ getPolicy(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyResponseClass>>;
283
278
  /**
284
279
  * 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
280
  * @summary Retrieve current policy version
@@ -337,26 +332,25 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
337
332
  */
338
333
  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>>;
339
334
  /**
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
335
+ * Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
336
+ * @summary Update the draft-policy
337
+ * @param {string} policyCode Unique identifier for the object.
338
+ * @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
344
339
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
345
340
  * @param {*} [options] Override http request option.
346
341
  * @throws {RequiredError}
347
342
  */
348
- patchPolicy(code: string, patchPolicyRequestDto: PatchPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchPolicyResponseClass>>;
343
+ patchDraftPolicy(policyCode: string, patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchPolicyResponseClass>>;
349
344
  /**
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
345
+ * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
346
+ * @summary Update the policy
347
+ * @param {string} code Unique identifier for the object.
348
+ * @param {PatchPolicyRequestDto} patchPolicyRequestDto
355
349
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
356
350
  * @param {*} [options] Override http request option.
357
351
  * @throws {RequiredError}
358
352
  */
359
- patchPolicy_2(policyCode: string, code: any, patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchPolicyResponseClass>>;
353
+ patchPolicy(code: string, patchPolicyRequestDto: PatchPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchPolicyResponseClass>>;
360
354
  /**
361
355
  * Request to suspend an existing policy by tenant.
362
356
  * @summary Suspend a policy by tenant
@@ -414,55 +408,53 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
414
408
  */
415
409
  activatePolicy(policyCode: string, activatePolicyRequestDto: ActivatePolicyRequestDto, authorization?: string, options?: any): AxiosPromise<ActivatePolicyResponseClass>;
416
410
  /**
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
411
+ * This will create a draft policy in the database.
412
+ * @summary Create the draft-policy
413
+ * @param {string} policyCode Unique identifier for the object.
414
+ * @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
420
415
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
421
416
  * @param {*} [options] Override http request option.
422
417
  * @throws {RequiredError}
423
418
  */
424
- createPolicy(createPolicyRequestDto: CreatePolicyRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePolicyResponseClass>;
419
+ createDraftPolicy(policyCode: string, createDraftPolicyRequestDto: CreateDraftPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePolicyResponseClass>;
425
420
  /**
426
- * This will create a draft policy in the database.
427
- * @summary Create the draft-policy
428
- * @param {string} policyCode
429
- * @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
421
+ * 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.
422
+ * @summary Create the policy
423
+ * @param {CreatePolicyRequestDto} createPolicyRequestDto
430
424
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
431
425
  * @param {*} [options] Override http request option.
432
426
  * @throws {RequiredError}
433
427
  */
434
- createPolicy_1(policyCode: string, createDraftPolicyRequestDto: CreateDraftPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePolicyResponseClass>;
428
+ createPolicy(createPolicyRequestDto: CreatePolicyRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePolicyResponseClass>;
435
429
  /**
436
430
  * Permanently deletes the draft-policy. Supply the unique code that was returned when you created the draft-policy and this will delete it.
437
431
  * @summary Delete the draft-policy
438
- * @param {string} policyCode
439
- * @param {string} policyCode2 Unique identifier of the Draft Policy that this object belongs to.
432
+ * @param {string} policyCode Unique identifier for the object.
440
433
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
441
434
  * @param {*} [options] Override http request option.
442
435
  * @throws {RequiredError}
443
436
  */
444
- deleteDraftPolicy(policyCode: string, policyCode2: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass>;
437
+ deleteDraftPolicy(policyCode: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass>;
445
438
  /**
446
439
  * 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.
447
440
  * @summary Retrieve the draft-policy
448
- * @param {string} policyCode
449
- * @param {string} policyCode2 Unique identifier of the Draft Policy that this object belongs to.
441
+ * @param {string} policyCode Unique identifier for the object.
450
442
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
451
443
  * @param {string} [expand] Fields to expand response by.
452
444
  * @param {*} [options] Override http request option.
453
445
  * @throws {RequiredError}
454
446
  */
455
- getDraftPolicy(policyCode: string, policyCode2: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetPolicyResponseClass>;
447
+ getDraftPolicy(policyCode: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetPolicyResponseClass>;
456
448
  /**
457
449
  * 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.
458
450
  * @summary Retrieve the policy
459
451
  * @param {string} code Unique identifier for the object.
460
452
  * @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' | '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.
453
+ * @param {string} [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.
462
454
  * @param {*} [options] Override http request option.
463
455
  * @throws {RequiredError}
464
456
  */
465
- getPolicy(code: string, authorization?: string, expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas' | 'partnerLinks', options?: any): AxiosPromise<GetPolicyResponseClass>;
457
+ getPolicy(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetPolicyResponseClass>;
466
458
  /**
467
459
  * 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
460
  * @summary Retrieve current policy version
@@ -520,26 +512,25 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
520
512
  */
521
513
  listPolicyVersions(policyCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPolicyVersionResponseClass>;
522
514
  /**
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
515
+ * Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
516
+ * @summary Update the draft-policy
517
+ * @param {string} policyCode Unique identifier for the object.
518
+ * @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
527
519
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
528
520
  * @param {*} [options] Override http request option.
529
521
  * @throws {RequiredError}
530
522
  */
531
- patchPolicy(code: string, patchPolicyRequestDto: PatchPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<PatchPolicyResponseClass>;
523
+ patchDraftPolicy(policyCode: string, patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<PatchPolicyResponseClass>;
532
524
  /**
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
525
+ * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
526
+ * @summary Update the policy
527
+ * @param {string} code Unique identifier for the object.
528
+ * @param {PatchPolicyRequestDto} patchPolicyRequestDto
538
529
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
539
530
  * @param {*} [options] Override http request option.
540
531
  * @throws {RequiredError}
541
532
  */
542
- patchPolicy_2(policyCode: string, code: any, patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<PatchPolicyResponseClass>;
533
+ patchPolicy(code: string, patchPolicyRequestDto: PatchPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<PatchPolicyResponseClass>;
543
534
  /**
544
535
  * Request to suspend an existing policy by tenant.
545
536
  * @summary Suspend a policy by tenant
@@ -607,46 +598,46 @@ export interface PoliciesApiActivatePolicyRequest {
607
598
  readonly authorization?: string;
608
599
  }
609
600
  /**
610
- * Request parameters for createPolicy operation in PoliciesApi.
601
+ * Request parameters for createDraftPolicy operation in PoliciesApi.
611
602
  * @export
612
- * @interface PoliciesApiCreatePolicyRequest
603
+ * @interface PoliciesApiCreateDraftPolicyRequest
613
604
  */
614
- export interface PoliciesApiCreatePolicyRequest {
605
+ export interface PoliciesApiCreateDraftPolicyRequest {
606
+ /**
607
+ * Unique identifier for the object.
608
+ * @type {string}
609
+ * @memberof PoliciesApiCreateDraftPolicy
610
+ */
611
+ readonly policyCode: string;
615
612
  /**
616
613
  *
617
- * @type {CreatePolicyRequestDto}
618
- * @memberof PoliciesApiCreatePolicy
614
+ * @type {CreateDraftPolicyRequestDto}
615
+ * @memberof PoliciesApiCreateDraftPolicy
619
616
  */
620
- readonly createPolicyRequestDto: CreatePolicyRequestDto;
617
+ readonly createDraftPolicyRequestDto: CreateDraftPolicyRequestDto;
621
618
  /**
622
619
  * Bearer Token: provided by the login endpoint under the name accessToken.
623
620
  * @type {string}
624
- * @memberof PoliciesApiCreatePolicy
621
+ * @memberof PoliciesApiCreateDraftPolicy
625
622
  */
626
623
  readonly authorization?: string;
627
624
  }
628
625
  /**
629
- * Request parameters for createPolicy_1 operation in PoliciesApi.
626
+ * Request parameters for createPolicy operation in PoliciesApi.
630
627
  * @export
631
- * @interface PoliciesApiCreatePolicy0Request
628
+ * @interface PoliciesApiCreatePolicyRequest
632
629
  */
633
- export interface PoliciesApiCreatePolicy0Request {
634
- /**
635
- *
636
- * @type {string}
637
- * @memberof PoliciesApiCreatePolicy0
638
- */
639
- readonly policyCode: string;
630
+ export interface PoliciesApiCreatePolicyRequest {
640
631
  /**
641
632
  *
642
- * @type {CreateDraftPolicyRequestDto}
643
- * @memberof PoliciesApiCreatePolicy0
633
+ * @type {CreatePolicyRequestDto}
634
+ * @memberof PoliciesApiCreatePolicy
644
635
  */
645
- readonly createDraftPolicyRequestDto: CreateDraftPolicyRequestDto;
636
+ readonly createPolicyRequestDto: CreatePolicyRequestDto;
646
637
  /**
647
638
  * Bearer Token: provided by the login endpoint under the name accessToken.
648
639
  * @type {string}
649
- * @memberof PoliciesApiCreatePolicy0
640
+ * @memberof PoliciesApiCreatePolicy
650
641
  */
651
642
  readonly authorization?: string;
652
643
  }
@@ -657,17 +648,11 @@ export interface PoliciesApiCreatePolicy0Request {
657
648
  */
658
649
  export interface PoliciesApiDeleteDraftPolicyRequest {
659
650
  /**
660
- *
651
+ * Unique identifier for the object.
661
652
  * @type {string}
662
653
  * @memberof PoliciesApiDeleteDraftPolicy
663
654
  */
664
655
  readonly policyCode: string;
665
- /**
666
- * Unique identifier of the Draft Policy that this object belongs to.
667
- * @type {string}
668
- * @memberof PoliciesApiDeleteDraftPolicy
669
- */
670
- readonly policyCode2: string;
671
656
  /**
672
657
  * Bearer Token: provided by the login endpoint under the name accessToken.
673
658
  * @type {string}
@@ -682,17 +667,11 @@ export interface PoliciesApiDeleteDraftPolicyRequest {
682
667
  */
683
668
  export interface PoliciesApiGetDraftPolicyRequest {
684
669
  /**
685
- *
670
+ * Unique identifier for the object.
686
671
  * @type {string}
687
672
  * @memberof PoliciesApiGetDraftPolicy
688
673
  */
689
674
  readonly policyCode: string;
690
- /**
691
- * Unique identifier of the Draft Policy that this object belongs to.
692
- * @type {string}
693
- * @memberof PoliciesApiGetDraftPolicy
694
- */
695
- readonly policyCode2: string;
696
675
  /**
697
676
  * Bearer Token: provided by the login endpoint under the name accessToken.
698
677
  * @type {string}
@@ -726,10 +705,10 @@ export interface PoliciesApiGetPolicyRequest {
726
705
  readonly authorization?: string;
727
706
  /**
728
707
  * 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.
729
- * @type {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas' | 'partnerLinks'}
708
+ * @type {string}
730
709
  * @memberof PoliciesApiGetPolicy
731
710
  */
732
- readonly expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas' | 'partnerLinks';
711
+ readonly expand?: string;
733
712
  }
734
713
  /**
735
714
  * Request parameters for getPolicyDataByDate operation in PoliciesApi.
@@ -928,58 +907,52 @@ export interface PoliciesApiListPolicyVersionsRequest {
928
907
  readonly filters?: string;
929
908
  }
930
909
  /**
931
- * Request parameters for patchPolicy operation in PoliciesApi.
910
+ * Request parameters for patchDraftPolicy operation in PoliciesApi.
932
911
  * @export
933
- * @interface PoliciesApiPatchPolicyRequest
912
+ * @interface PoliciesApiPatchDraftPolicyRequest
934
913
  */
935
- export interface PoliciesApiPatchPolicyRequest {
914
+ export interface PoliciesApiPatchDraftPolicyRequest {
936
915
  /**
937
916
  * Unique identifier for the object.
938
917
  * @type {string}
939
- * @memberof PoliciesApiPatchPolicy
918
+ * @memberof PoliciesApiPatchDraftPolicy
940
919
  */
941
- readonly code: string;
920
+ readonly policyCode: string;
942
921
  /**
943
922
  *
944
- * @type {PatchPolicyRequestDto}
945
- * @memberof PoliciesApiPatchPolicy
923
+ * @type {PatchDraftPolicyRequestDto}
924
+ * @memberof PoliciesApiPatchDraftPolicy
946
925
  */
947
- readonly patchPolicyRequestDto: PatchPolicyRequestDto;
926
+ readonly patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto;
948
927
  /**
949
928
  * Bearer Token: provided by the login endpoint under the name accessToken.
950
929
  * @type {string}
951
- * @memberof PoliciesApiPatchPolicy
930
+ * @memberof PoliciesApiPatchDraftPolicy
952
931
  */
953
932
  readonly authorization?: string;
954
933
  }
955
934
  /**
956
- * Request parameters for patchPolicy_2 operation in PoliciesApi.
935
+ * Request parameters for patchPolicy operation in PoliciesApi.
957
936
  * @export
958
- * @interface PoliciesApiPatchPolicy0Request
937
+ * @interface PoliciesApiPatchPolicyRequest
959
938
  */
960
- export interface PoliciesApiPatchPolicy0Request {
961
- /**
962
- *
963
- * @type {string}
964
- * @memberof PoliciesApiPatchPolicy0
965
- */
966
- readonly policyCode: string;
939
+ export interface PoliciesApiPatchPolicyRequest {
967
940
  /**
968
941
  * Unique identifier for the object.
969
- * @type {any}
970
- * @memberof PoliciesApiPatchPolicy0
942
+ * @type {string}
943
+ * @memberof PoliciesApiPatchPolicy
971
944
  */
972
- readonly code: any;
945
+ readonly code: string;
973
946
  /**
974
947
  *
975
- * @type {PatchDraftPolicyRequestDto}
976
- * @memberof PoliciesApiPatchPolicy0
948
+ * @type {PatchPolicyRequestDto}
949
+ * @memberof PoliciesApiPatchPolicy
977
950
  */
978
- readonly patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto;
951
+ readonly patchPolicyRequestDto: PatchPolicyRequestDto;
979
952
  /**
980
953
  * Bearer Token: provided by the login endpoint under the name accessToken.
981
954
  * @type {string}
982
- * @memberof PoliciesApiPatchPolicy0
955
+ * @memberof PoliciesApiPatchPolicy
983
956
  */
984
957
  readonly authorization?: string;
985
958
  }
@@ -1100,23 +1073,23 @@ export declare class PoliciesApi extends BaseAPI {
1100
1073
  */
1101
1074
  activatePolicy(requestParameters: PoliciesApiActivatePolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ActivatePolicyResponseClass, any>>;
1102
1075
  /**
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.
1076
+ * This will create a draft policy in the database.
1077
+ * @summary Create the draft-policy
1078
+ * @param {PoliciesApiCreateDraftPolicyRequest} requestParameters Request parameters.
1106
1079
  * @param {*} [options] Override http request option.
1107
1080
  * @throws {RequiredError}
1108
1081
  * @memberof PoliciesApi
1109
1082
  */
1110
- createPolicy(requestParameters: PoliciesApiCreatePolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePolicyResponseClass, any>>;
1083
+ createDraftPolicy(requestParameters: PoliciesApiCreateDraftPolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePolicyResponseClass, any>>;
1111
1084
  /**
1112
- * This will create a draft policy in the database.
1113
- * @summary Create the draft-policy
1114
- * @param {PoliciesApiCreatePolicy0Request} requestParameters Request parameters.
1085
+ * 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.
1086
+ * @summary Create the policy
1087
+ * @param {PoliciesApiCreatePolicyRequest} requestParameters Request parameters.
1115
1088
  * @param {*} [options] Override http request option.
1116
1089
  * @throws {RequiredError}
1117
1090
  * @memberof PoliciesApi
1118
1091
  */
1119
- createPolicy_1(requestParameters: PoliciesApiCreatePolicy0Request, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePolicyResponseClass, any>>;
1092
+ createPolicy(requestParameters: PoliciesApiCreatePolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePolicyResponseClass, any>>;
1120
1093
  /**
1121
1094
  * Permanently deletes the draft-policy. Supply the unique code that was returned when you created the draft-policy and this will delete it.
1122
1095
  * @summary Delete the draft-policy
@@ -1181,23 +1154,23 @@ export declare class PoliciesApi extends BaseAPI {
1181
1154
  */
1182
1155
  listPolicyVersions(requestParameters: PoliciesApiListPolicyVersionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPolicyVersionResponseClass, any>>;
1183
1156
  /**
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.
1157
+ * Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1158
+ * @summary Update the draft-policy
1159
+ * @param {PoliciesApiPatchDraftPolicyRequest} requestParameters Request parameters.
1187
1160
  * @param {*} [options] Override http request option.
1188
1161
  * @throws {RequiredError}
1189
1162
  * @memberof PoliciesApi
1190
1163
  */
1191
- patchPolicy(requestParameters: PoliciesApiPatchPolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PatchPolicyResponseClass, any>>;
1164
+ patchDraftPolicy(requestParameters: PoliciesApiPatchDraftPolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PatchPolicyResponseClass, any>>;
1192
1165
  /**
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.
1166
+ * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1167
+ * @summary Update the policy
1168
+ * @param {PoliciesApiPatchPolicyRequest} requestParameters Request parameters.
1196
1169
  * @param {*} [options] Override http request option.
1197
1170
  * @throws {RequiredError}
1198
1171
  * @memberof PoliciesApi
1199
1172
  */
1200
- patchPolicy_2(requestParameters: PoliciesApiPatchPolicy0Request, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PatchPolicyResponseClass, any>>;
1173
+ patchPolicy(requestParameters: PoliciesApiPatchPolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PatchPolicyResponseClass, any>>;
1201
1174
  /**
1202
1175
  * Request to suspend an existing policy by tenant.
1203
1176
  * @summary Suspend a policy by tenant