@emilgroup/insurance-sdk-node 1.104.1-beta.29 → 1.104.1-beta.30

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.
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/insurance-sdk-node@1.104.1-beta.29 --save
20
+ npm install @emilgroup/insurance-sdk-node@1.104.1-beta.30 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/insurance-sdk-node@1.104.1-beta.29
24
+ yarn add @emilgroup/insurance-sdk-node@1.104.1-beta.30
25
25
  ```
26
26
 
27
27
  And then you can import `PoliciesApi`.
@@ -126,7 +126,7 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
126
126
  };
127
127
  },
128
128
  /**
129
- * This will create a draft policy in the database. **Required Permissions** \"policy-management.policies.create\"
129
+ * Creates a draft version of the policy update, without affecting the current version. This adds a new version to the existing policy — it does not create a new policy. The draft is returned with `isDraft: true` and `isCurrent: false`; the current version is unchanged until the draft is approved via `PATCH .../draft` with `revisionStatus: APPROVED`. **Required Permissions** \"policy-management.policies.create\"
130
130
  * @summary Create the draft-policy
131
131
  * @param {string} policyCode Unique identifier for the object.
132
132
  * @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
@@ -269,11 +269,11 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
269
269
  };
270
270
  },
271
271
  /**
272
- * 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. **Required Permissions** \"policy-management.policies.view\"
272
+ * Retrieves the draft version of the policy, if one exists. The returned version has `isDraft: true` and `isCurrent: false` it is never the current/live version. Returns a 404 if no draft exists (e.g. after it has been approved or rejected). **Required Permissions** \"policy-management.policies.view\"
273
273
  * @summary Retrieve the draft-policy
274
274
  * @param {string} policyCode Unique identifier for the object.
275
275
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
276
- * @param {string} [expand] Fields to expand response by.
276
+ * @param {string} [expand] Fields to expand in the draft response. Pass the unprefixed relation name; for example, \"premiumItems\" expands the draft premium items relation.<br/> <br/> <i>Allowed values: version, timelines, premiums, premiumItems, premiumFormulas</i>
277
277
  * @param {*} [options] Override http request option.
278
278
  * @throws {RequiredError}
279
279
  */
@@ -424,7 +424,7 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
424
424
  };
425
425
  },
426
426
  /**
427
- * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"policy-management.policies.view\"
427
+ * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.<br/> <br/> <b>Notes on filtering:</b><br/> - The `partnerCode` filter matches any policy that has ever had a link to that partner — past, current, or future-dated — not only currently-assigned ones. There is currently no separate filter to match only the currently-active link.<br/> - An unrecognized filter field name is silently ignored: the request returns 200 with the unfiltered (or partially filtered, if combined with valid fields) result set rather than an error. **Required Permissions** \"policy-management.policies.view\"
428
428
  * @summary List policies
429
429
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
430
430
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -656,7 +656,7 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
656
656
  };
657
657
  },
658
658
  /**
659
- * Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.policies.update\"
659
+ * Updates the draft version, or changes its lifecycle state via `revisionStatus` (see that field\'s description for what each value does — most notably, `APPROVED` promotes the draft to the current policy version and `REJECTED` deletes it). **Required Permissions** \"policy-management.policies.update\"
660
660
  * @summary Update the draft-policy
661
661
  * @param {string} policyCode Unique identifier for the object.
662
662
  * @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
@@ -1036,7 +1036,7 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
1036
1036
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1037
1037
  },
1038
1038
  /**
1039
- * This will create a draft policy in the database. **Required Permissions** \"policy-management.policies.create\"
1039
+ * Creates a draft version of the policy update, without affecting the current version. This adds a new version to the existing policy — it does not create a new policy. The draft is returned with `isDraft: true` and `isCurrent: false`; the current version is unchanged until the draft is approved via `PATCH .../draft` with `revisionStatus: APPROVED`. **Required Permissions** \"policy-management.policies.create\"
1040
1040
  * @summary Create the draft-policy
1041
1041
  * @param {string} policyCode Unique identifier for the object.
1042
1042
  * @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
@@ -1073,11 +1073,11 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
1073
1073
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1074
1074
  },
1075
1075
  /**
1076
- * 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. **Required Permissions** \"policy-management.policies.view\"
1076
+ * Retrieves the draft version of the policy, if one exists. The returned version has `isDraft: true` and `isCurrent: false` it is never the current/live version. Returns a 404 if no draft exists (e.g. after it has been approved or rejected). **Required Permissions** \"policy-management.policies.view\"
1077
1077
  * @summary Retrieve the draft-policy
1078
1078
  * @param {string} policyCode Unique identifier for the object.
1079
1079
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1080
- * @param {string} [expand] Fields to expand response by.
1080
+ * @param {string} [expand] Fields to expand in the draft response. Pass the unprefixed relation name; for example, \&quot;premiumItems\&quot; expands the draft premium items relation.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: version, timelines, premiums, premiumItems, premiumFormulas&lt;/i&gt;
1081
1081
  * @param {*} [options] Override http request option.
1082
1082
  * @throws {RequiredError}
1083
1083
  */
@@ -1113,7 +1113,7 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
1113
1113
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1114
1114
  },
1115
1115
  /**
1116
- * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"policy-management.policies.view\"
1116
+ * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.<br/> <br/> <b>Notes on filtering:</b><br/> - The `partnerCode` filter matches any policy that has ever had a link to that partner — past, current, or future-dated — not only currently-assigned ones. There is currently no separate filter to match only the currently-active link.<br/> - An unrecognized filter field name is silently ignored: the request returns 200 with the unfiltered (or partially filtered, if combined with valid fields) result set rather than an error. **Required Permissions** \"policy-management.policies.view\"
1117
1117
  * @summary List policies
1118
1118
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1119
1119
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -1168,7 +1168,7 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
1168
1168
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1169
1169
  },
1170
1170
  /**
1171
- * Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.policies.update\"
1171
+ * Updates the draft version, or changes its lifecycle state via `revisionStatus` (see that field\'s description for what each value does — most notably, `APPROVED` promotes the draft to the current policy version and `REJECTED` deletes it). **Required Permissions** \"policy-management.policies.update\"
1172
1172
  * @summary Update the draft-policy
1173
1173
  * @param {string} policyCode Unique identifier for the object.
1174
1174
  * @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
@@ -1281,7 +1281,7 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
1281
1281
  return localVarFp.activatePolicy(policyCode, activatePolicyRequestDto, authorization, options).then((request) => request(axios, basePath));
1282
1282
  },
1283
1283
  /**
1284
- * This will create a draft policy in the database. **Required Permissions** \"policy-management.policies.create\"
1284
+ * Creates a draft version of the policy update, without affecting the current version. This adds a new version to the existing policy — it does not create a new policy. The draft is returned with `isDraft: true` and `isCurrent: false`; the current version is unchanged until the draft is approved via `PATCH .../draft` with `revisionStatus: APPROVED`. **Required Permissions** \"policy-management.policies.create\"
1285
1285
  * @summary Create the draft-policy
1286
1286
  * @param {string} policyCode Unique identifier for the object.
1287
1287
  * @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
@@ -1315,11 +1315,11 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
1315
1315
  return localVarFp.deleteDraftPolicy(policyCode, authorization, options).then((request) => request(axios, basePath));
1316
1316
  },
1317
1317
  /**
1318
- * 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. **Required Permissions** \"policy-management.policies.view\"
1318
+ * Retrieves the draft version of the policy, if one exists. The returned version has `isDraft: true` and `isCurrent: false` it is never the current/live version. Returns a 404 if no draft exists (e.g. after it has been approved or rejected). **Required Permissions** \"policy-management.policies.view\"
1319
1319
  * @summary Retrieve the draft-policy
1320
1320
  * @param {string} policyCode Unique identifier for the object.
1321
1321
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1322
- * @param {string} [expand] Fields to expand response by.
1322
+ * @param {string} [expand] Fields to expand in the draft response. Pass the unprefixed relation name; for example, \&quot;premiumItems\&quot; expands the draft premium items relation.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: version, timelines, premiums, premiumItems, premiumFormulas&lt;/i&gt;
1323
1323
  * @param {*} [options] Override http request option.
1324
1324
  * @throws {RequiredError}
1325
1325
  */
@@ -1352,7 +1352,7 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
1352
1352
  return localVarFp.getPolicyDataByDate(code, authorization, timesliceDate, expand, options).then((request) => request(axios, basePath));
1353
1353
  },
1354
1354
  /**
1355
- * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"policy-management.policies.view\"
1355
+ * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.<br/> <br/> <b>Notes on filtering:</b><br/> - The `partnerCode` filter matches any policy that has ever had a link to that partner — past, current, or future-dated — not only currently-assigned ones. There is currently no separate filter to match only the currently-active link.<br/> - An unrecognized filter field name is silently ignored: the request returns 200 with the unfiltered (or partially filtered, if combined with valid fields) result set rather than an error. **Required Permissions** \"policy-management.policies.view\"
1356
1356
  * @summary List policies
1357
1357
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1358
1358
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -1404,7 +1404,7 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
1404
1404
  return localVarFp.listPolicyVersions(policyCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
1405
1405
  },
1406
1406
  /**
1407
- * Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.policies.update\"
1407
+ * Updates the draft version, or changes its lifecycle state via `revisionStatus` (see that field\'s description for what each value does — most notably, `APPROVED` promotes the draft to the current policy version and `REJECTED` deletes it). **Required Permissions** \"policy-management.policies.update\"
1408
1408
  * @summary Update the draft-policy
1409
1409
  * @param {string} policyCode Unique identifier for the object.
1410
1410
  * @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
@@ -1609,7 +1609,7 @@ export interface PoliciesApiGetDraftPolicyRequest {
1609
1609
  readonly authorization?: string
1610
1610
 
1611
1611
  /**
1612
- * Fields to expand response by.
1612
+ * Fields to expand in the draft response. Pass the unprefixed relation name; for example, \&quot;premiumItems\&quot; expands the draft premium items relation.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: version, timelines, premiums, premiumItems, premiumFormulas&lt;/i&gt;
1613
1613
  * @type {string}
1614
1614
  * @memberof PoliciesApiGetDraftPolicy
1615
1615
  */
@@ -2091,7 +2091,7 @@ export class PoliciesApi extends BaseAPI {
2091
2091
  }
2092
2092
 
2093
2093
  /**
2094
- * This will create a draft policy in the database. **Required Permissions** \"policy-management.policies.create\"
2094
+ * Creates a draft version of the policy update, without affecting the current version. This adds a new version to the existing policy — it does not create a new policy. The draft is returned with `isDraft: true` and `isCurrent: false`; the current version is unchanged until the draft is approved via `PATCH .../draft` with `revisionStatus: APPROVED`. **Required Permissions** \"policy-management.policies.create\"
2095
2095
  * @summary Create the draft-policy
2096
2096
  * @param {PoliciesApiCreateDraftPolicyRequest} requestParameters Request parameters.
2097
2097
  * @param {*} [options] Override http request option.
@@ -2127,7 +2127,7 @@ export class PoliciesApi extends BaseAPI {
2127
2127
  }
2128
2128
 
2129
2129
  /**
2130
- * 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. **Required Permissions** \"policy-management.policies.view\"
2130
+ * Retrieves the draft version of the policy, if one exists. The returned version has `isDraft: true` and `isCurrent: false` it is never the current/live version. Returns a 404 if no draft exists (e.g. after it has been approved or rejected). **Required Permissions** \"policy-management.policies.view\"
2131
2131
  * @summary Retrieve the draft-policy
2132
2132
  * @param {PoliciesApiGetDraftPolicyRequest} requestParameters Request parameters.
2133
2133
  * @param {*} [options] Override http request option.
@@ -2163,7 +2163,7 @@ export class PoliciesApi extends BaseAPI {
2163
2163
  }
2164
2164
 
2165
2165
  /**
2166
- * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"policy-management.policies.view\"
2166
+ * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.<br/> <br/> <b>Notes on filtering:</b><br/> - The `partnerCode` filter matches any policy that has ever had a link to that partner — past, current, or future-dated — not only currently-assigned ones. There is currently no separate filter to match only the currently-active link.<br/> - An unrecognized filter field name is silently ignored: the request returns 200 with the unfiltered (or partially filtered, if combined with valid fields) result set rather than an error. **Required Permissions** \"policy-management.policies.view\"
2167
2167
  * @summary List policies
2168
2168
  * @param {PoliciesApiListPoliciesRequest} requestParameters Request parameters.
2169
2169
  * @param {*} [options] Override http request option.
@@ -2199,7 +2199,7 @@ export class PoliciesApi extends BaseAPI {
2199
2199
  }
2200
2200
 
2201
2201
  /**
2202
- * Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.policies.update\"
2202
+ * Updates the draft version, or changes its lifecycle state via `revisionStatus` (see that field\'s description for what each value does — most notably, `APPROVED` promotes the draft to the current policy version and `REJECTED` deletes it). **Required Permissions** \"policy-management.policies.update\"
2203
2203
  * @summary Update the draft-policy
2204
2204
  * @param {PoliciesApiPatchDraftPolicyRequest} requestParameters Request parameters.
2205
2205
  * @param {*} [options] Override http request option.
@@ -50,7 +50,7 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
50
50
  */
51
51
  activatePolicy: (policyCode: string, activatePolicyRequestDto: ActivatePolicyRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
52
52
  /**
53
- * This will create a draft policy in the database. **Required Permissions** \"policy-management.policies.create\"
53
+ * Creates a draft version of the policy update, without affecting the current version. This adds a new version to the existing policy — it does not create a new policy. The draft is returned with `isDraft: true` and `isCurrent: false`; the current version is unchanged until the draft is approved via `PATCH .../draft` with `revisionStatus: APPROVED`. **Required Permissions** \"policy-management.policies.create\"
54
54
  * @summary Create the draft-policy
55
55
  * @param {string} policyCode Unique identifier for the object.
56
56
  * @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
@@ -78,11 +78,11 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
78
78
  */
79
79
  deleteDraftPolicy: (policyCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
80
80
  /**
81
- * 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. **Required Permissions** \"policy-management.policies.view\"
81
+ * Retrieves the draft version of the policy, if one exists. The returned version has `isDraft: true` and `isCurrent: false` it is never the current/live version. Returns a 404 if no draft exists (e.g. after it has been approved or rejected). **Required Permissions** \"policy-management.policies.view\"
82
82
  * @summary Retrieve the draft-policy
83
83
  * @param {string} policyCode Unique identifier for the object.
84
84
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
85
- * @param {string} [expand] Fields to expand response by.
85
+ * @param {string} [expand] Fields to expand in the draft response. Pass the unprefixed relation name; for example, \&quot;premiumItems\&quot; expands the draft premium items relation.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: version, timelines, premiums, premiumItems, premiumFormulas&lt;/i&gt;
86
86
  * @param {*} [options] Override http request option.
87
87
  * @throws {RequiredError}
88
88
  */
@@ -109,7 +109,7 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
109
109
  */
110
110
  getPolicyDataByDate: (code: string, authorization?: string, timesliceDate?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
111
111
  /**
112
- * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"policy-management.policies.view\"
112
+ * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.<br/> <br/> <b>Notes on filtering:</b><br/> - The `partnerCode` filter matches any policy that has ever had a link to that partner — past, current, or future-dated — not only currently-assigned ones. There is currently no separate filter to match only the currently-active link.<br/> - An unrecognized filter field name is silently ignored: the request returns 200 with the unfiltered (or partially filtered, if combined with valid fields) result set rather than an error. **Required Permissions** \"policy-management.policies.view\"
113
113
  * @summary List policies
114
114
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
115
115
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -155,7 +155,7 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
155
155
  */
156
156
  listPolicyVersions: (policyCode: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
157
157
  /**
158
- * Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.policies.update\"
158
+ * Updates the draft version, or changes its lifecycle state via `revisionStatus` (see that field\'s description for what each value does — most notably, `APPROVED` promotes the draft to the current policy version and `REJECTED` deletes it). **Required Permissions** \"policy-management.policies.update\"
159
159
  * @summary Update the draft-policy
160
160
  * @param {string} policyCode Unique identifier for the object.
161
161
  * @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
@@ -241,7 +241,7 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
241
241
  */
242
242
  activatePolicy(policyCode: string, activatePolicyRequestDto: ActivatePolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActivatePolicyResponseClass>>;
243
243
  /**
244
- * This will create a draft policy in the database. **Required Permissions** \"policy-management.policies.create\"
244
+ * Creates a draft version of the policy update, without affecting the current version. This adds a new version to the existing policy — it does not create a new policy. The draft is returned with `isDraft: true` and `isCurrent: false`; the current version is unchanged until the draft is approved via `PATCH .../draft` with `revisionStatus: APPROVED`. **Required Permissions** \"policy-management.policies.create\"
245
245
  * @summary Create the draft-policy
246
246
  * @param {string} policyCode Unique identifier for the object.
247
247
  * @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
@@ -269,11 +269,11 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
269
269
  */
270
270
  deleteDraftPolicy(policyCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>>;
271
271
  /**
272
- * 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. **Required Permissions** \"policy-management.policies.view\"
272
+ * Retrieves the draft version of the policy, if one exists. The returned version has `isDraft: true` and `isCurrent: false` it is never the current/live version. Returns a 404 if no draft exists (e.g. after it has been approved or rejected). **Required Permissions** \"policy-management.policies.view\"
273
273
  * @summary Retrieve the draft-policy
274
274
  * @param {string} policyCode Unique identifier for the object.
275
275
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
276
- * @param {string} [expand] Fields to expand response by.
276
+ * @param {string} [expand] Fields to expand in the draft response. Pass the unprefixed relation name; for example, \&quot;premiumItems\&quot; expands the draft premium items relation.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: version, timelines, premiums, premiumItems, premiumFormulas&lt;/i&gt;
277
277
  * @param {*} [options] Override http request option.
278
278
  * @throws {RequiredError}
279
279
  */
@@ -300,7 +300,7 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
300
300
  */
301
301
  getPolicyDataByDate(code: string, authorization?: string, timesliceDate?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyResponseClass>>;
302
302
  /**
303
- * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"policy-management.policies.view\"
303
+ * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.<br/> <br/> <b>Notes on filtering:</b><br/> - The `partnerCode` filter matches any policy that has ever had a link to that partner — past, current, or future-dated — not only currently-assigned ones. There is currently no separate filter to match only the currently-active link.<br/> - An unrecognized filter field name is silently ignored: the request returns 200 with the unfiltered (or partially filtered, if combined with valid fields) result set rather than an error. **Required Permissions** \"policy-management.policies.view\"
304
304
  * @summary List policies
305
305
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
306
306
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -346,7 +346,7 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
346
346
  */
347
347
  listPolicyVersions(policyCode: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPolicyVersionResponseClass>>;
348
348
  /**
349
- * Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.policies.update\"
349
+ * Updates the draft version, or changes its lifecycle state via `revisionStatus` (see that field\'s description for what each value does — most notably, `APPROVED` promotes the draft to the current policy version and `REJECTED` deletes it). **Required Permissions** \"policy-management.policies.update\"
350
350
  * @summary Update the draft-policy
351
351
  * @param {string} policyCode Unique identifier for the object.
352
352
  * @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
@@ -432,7 +432,7 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
432
432
  */
433
433
  activatePolicy(policyCode: string, activatePolicyRequestDto: ActivatePolicyRequestDto, authorization?: string, options?: any): AxiosPromise<ActivatePolicyResponseClass>;
434
434
  /**
435
- * This will create a draft policy in the database. **Required Permissions** \"policy-management.policies.create\"
435
+ * Creates a draft version of the policy update, without affecting the current version. This adds a new version to the existing policy — it does not create a new policy. The draft is returned with `isDraft: true` and `isCurrent: false`; the current version is unchanged until the draft is approved via `PATCH .../draft` with `revisionStatus: APPROVED`. **Required Permissions** \"policy-management.policies.create\"
436
436
  * @summary Create the draft-policy
437
437
  * @param {string} policyCode Unique identifier for the object.
438
438
  * @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
@@ -460,11 +460,11 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
460
460
  */
461
461
  deleteDraftPolicy(policyCode: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass>;
462
462
  /**
463
- * 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. **Required Permissions** \"policy-management.policies.view\"
463
+ * Retrieves the draft version of the policy, if one exists. The returned version has `isDraft: true` and `isCurrent: false` it is never the current/live version. Returns a 404 if no draft exists (e.g. after it has been approved or rejected). **Required Permissions** \"policy-management.policies.view\"
464
464
  * @summary Retrieve the draft-policy
465
465
  * @param {string} policyCode Unique identifier for the object.
466
466
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
467
- * @param {string} [expand] Fields to expand response by.
467
+ * @param {string} [expand] Fields to expand in the draft response. Pass the unprefixed relation name; for example, \&quot;premiumItems\&quot; expands the draft premium items relation.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: version, timelines, premiums, premiumItems, premiumFormulas&lt;/i&gt;
468
468
  * @param {*} [options] Override http request option.
469
469
  * @throws {RequiredError}
470
470
  */
@@ -491,7 +491,7 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
491
491
  */
492
492
  getPolicyDataByDate(code: string, authorization?: string, timesliceDate?: string, expand?: string, options?: any): AxiosPromise<GetPolicyResponseClass>;
493
493
  /**
494
- * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"policy-management.policies.view\"
494
+ * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.<br/> <br/> <b>Notes on filtering:</b><br/> - The `partnerCode` filter matches any policy that has ever had a link to that partner — past, current, or future-dated — not only currently-assigned ones. There is currently no separate filter to match only the currently-active link.<br/> - An unrecognized filter field name is silently ignored: the request returns 200 with the unfiltered (or partially filtered, if combined with valid fields) result set rather than an error. **Required Permissions** \"policy-management.policies.view\"
495
495
  * @summary List policies
496
496
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
497
497
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -537,7 +537,7 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
537
537
  */
538
538
  listPolicyVersions(policyCode: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPolicyVersionResponseClass>;
539
539
  /**
540
- * Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.policies.update\"
540
+ * Updates the draft version, or changes its lifecycle state via `revisionStatus` (see that field\'s description for what each value does — most notably, `APPROVED` promotes the draft to the current policy version and `REJECTED` deletes it). **Required Permissions** \"policy-management.policies.update\"
541
541
  * @summary Update the draft-policy
542
542
  * @param {string} policyCode Unique identifier for the object.
543
543
  * @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
@@ -714,7 +714,7 @@ export interface PoliciesApiGetDraftPolicyRequest {
714
714
  */
715
715
  readonly authorization?: string;
716
716
  /**
717
- * Fields to expand response by.
717
+ * Fields to expand in the draft response. Pass the unprefixed relation name; for example, \&quot;premiumItems\&quot; expands the draft premium items relation.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: version, timelines, premiums, premiumItems, premiumFormulas&lt;/i&gt;
718
718
  * @type {string}
719
719
  * @memberof PoliciesApiGetDraftPolicy
720
720
  */
@@ -1139,7 +1139,7 @@ export declare class PoliciesApi extends BaseAPI {
1139
1139
  */
1140
1140
  activatePolicy(requestParameters: PoliciesApiActivatePolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ActivatePolicyResponseClass, any, {}>>;
1141
1141
  /**
1142
- * This will create a draft policy in the database. **Required Permissions** \"policy-management.policies.create\"
1142
+ * Creates a draft version of the policy update, without affecting the current version. This adds a new version to the existing policy — it does not create a new policy. The draft is returned with `isDraft: true` and `isCurrent: false`; the current version is unchanged until the draft is approved via `PATCH .../draft` with `revisionStatus: APPROVED`. **Required Permissions** \"policy-management.policies.create\"
1143
1143
  * @summary Create the draft-policy
1144
1144
  * @param {PoliciesApiCreateDraftPolicyRequest} requestParameters Request parameters.
1145
1145
  * @param {*} [options] Override http request option.
@@ -1166,7 +1166,7 @@ export declare class PoliciesApi extends BaseAPI {
1166
1166
  */
1167
1167
  deleteDraftPolicy(requestParameters: PoliciesApiDeleteDraftPolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any, {}>>;
1168
1168
  /**
1169
- * 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. **Required Permissions** \"policy-management.policies.view\"
1169
+ * Retrieves the draft version of the policy, if one exists. The returned version has `isDraft: true` and `isCurrent: false` it is never the current/live version. Returns a 404 if no draft exists (e.g. after it has been approved or rejected). **Required Permissions** \"policy-management.policies.view\"
1170
1170
  * @summary Retrieve the draft-policy
1171
1171
  * @param {PoliciesApiGetDraftPolicyRequest} requestParameters Request parameters.
1172
1172
  * @param {*} [options] Override http request option.
@@ -1193,7 +1193,7 @@ export declare class PoliciesApi extends BaseAPI {
1193
1193
  */
1194
1194
  getPolicyDataByDate(requestParameters: PoliciesApiGetPolicyDataByDateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPolicyResponseClass, any, {}>>;
1195
1195
  /**
1196
- * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"policy-management.policies.view\"
1196
+ * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.<br/> <br/> <b>Notes on filtering:</b><br/> - The `partnerCode` filter matches any policy that has ever had a link to that partner — past, current, or future-dated — not only currently-assigned ones. There is currently no separate filter to match only the currently-active link.<br/> - An unrecognized filter field name is silently ignored: the request returns 200 with the unfiltered (or partially filtered, if combined with valid fields) result set rather than an error. **Required Permissions** \"policy-management.policies.view\"
1197
1197
  * @summary List policies
1198
1198
  * @param {PoliciesApiListPoliciesRequest} requestParameters Request parameters.
1199
1199
  * @param {*} [options] Override http request option.
@@ -1220,7 +1220,7 @@ export declare class PoliciesApi extends BaseAPI {
1220
1220
  */
1221
1221
  listPolicyVersions(requestParameters: PoliciesApiListPolicyVersionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPolicyVersionResponseClass, any, {}>>;
1222
1222
  /**
1223
- * Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.policies.update\"
1223
+ * Updates the draft version, or changes its lifecycle state via `revisionStatus` (see that field\'s description for what each value does — most notably, `APPROVED` promotes the draft to the current policy version and `REJECTED` deletes it). **Required Permissions** \"policy-management.policies.update\"
1224
1224
  * @summary Update the draft-policy
1225
1225
  * @param {PoliciesApiPatchDraftPolicyRequest} requestParameters Request parameters.
1226
1226
  * @param {*} [options] Override http request option.
@@ -150,7 +150,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
150
150
  });
151
151
  },
152
152
  /**
153
- * This will create a draft policy in the database. **Required Permissions** \"policy-management.policies.create\"
153
+ * Creates a draft version of the policy update, without affecting the current version. This adds a new version to the existing policy — it does not create a new policy. The draft is returned with `isDraft: true` and `isCurrent: false`; the current version is unchanged until the draft is approved via `PATCH .../draft` with `revisionStatus: APPROVED`. **Required Permissions** \"policy-management.policies.create\"
154
154
  * @summary Create the draft-policy
155
155
  * @param {string} policyCode Unique identifier for the object.
156
156
  * @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
@@ -300,11 +300,11 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
300
300
  });
301
301
  },
302
302
  /**
303
- * 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. **Required Permissions** \"policy-management.policies.view\"
303
+ * Retrieves the draft version of the policy, if one exists. The returned version has `isDraft: true` and `isCurrent: false` it is never the current/live version. Returns a 404 if no draft exists (e.g. after it has been approved or rejected). **Required Permissions** \"policy-management.policies.view\"
304
304
  * @summary Retrieve the draft-policy
305
305
  * @param {string} policyCode Unique identifier for the object.
306
306
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
307
- * @param {string} [expand] Fields to expand response by.
307
+ * @param {string} [expand] Fields to expand in the draft response. Pass the unprefixed relation name; for example, \&quot;premiumItems\&quot; expands the draft premium items relation.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: version, timelines, premiums, premiumItems, premiumFormulas&lt;/i&gt;
308
308
  * @param {*} [options] Override http request option.
309
309
  * @throws {RequiredError}
310
310
  */
@@ -460,7 +460,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
460
460
  });
461
461
  },
462
462
  /**
463
- * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"policy-management.policies.view\"
463
+ * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.<br/> <br/> <b>Notes on filtering:</b><br/> - The `partnerCode` filter matches any policy that has ever had a link to that partner — past, current, or future-dated — not only currently-assigned ones. There is currently no separate filter to match only the currently-active link.<br/> - An unrecognized filter field name is silently ignored: the request returns 200 with the unfiltered (or partially filtered, if combined with valid fields) result set rather than an error. **Required Permissions** \"policy-management.policies.view\"
464
464
  * @summary List policies
465
465
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
466
466
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -680,7 +680,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
680
680
  });
681
681
  },
682
682
  /**
683
- * Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.policies.update\"
683
+ * Updates the draft version, or changes its lifecycle state via `revisionStatus` (see that field\'s description for what each value does — most notably, `APPROVED` promotes the draft to the current policy version and `REJECTED` deletes it). **Required Permissions** \"policy-management.policies.update\"
684
684
  * @summary Update the draft-policy
685
685
  * @param {string} policyCode Unique identifier for the object.
686
686
  * @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
@@ -1083,7 +1083,7 @@ var PoliciesApiFp = function (configuration) {
1083
1083
  });
1084
1084
  },
1085
1085
  /**
1086
- * This will create a draft policy in the database. **Required Permissions** \"policy-management.policies.create\"
1086
+ * Creates a draft version of the policy update, without affecting the current version. This adds a new version to the existing policy — it does not create a new policy. The draft is returned with `isDraft: true` and `isCurrent: false`; the current version is unchanged until the draft is approved via `PATCH .../draft` with `revisionStatus: APPROVED`. **Required Permissions** \"policy-management.policies.create\"
1087
1087
  * @summary Create the draft-policy
1088
1088
  * @param {string} policyCode Unique identifier for the object.
1089
1089
  * @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
@@ -1147,11 +1147,11 @@ var PoliciesApiFp = function (configuration) {
1147
1147
  });
1148
1148
  },
1149
1149
  /**
1150
- * 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. **Required Permissions** \"policy-management.policies.view\"
1150
+ * Retrieves the draft version of the policy, if one exists. The returned version has `isDraft: true` and `isCurrent: false` it is never the current/live version. Returns a 404 if no draft exists (e.g. after it has been approved or rejected). **Required Permissions** \"policy-management.policies.view\"
1151
1151
  * @summary Retrieve the draft-policy
1152
1152
  * @param {string} policyCode Unique identifier for the object.
1153
1153
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1154
- * @param {string} [expand] Fields to expand response by.
1154
+ * @param {string} [expand] Fields to expand in the draft response. Pass the unprefixed relation name; for example, \&quot;premiumItems\&quot; expands the draft premium items relation.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: version, timelines, premiums, premiumItems, premiumFormulas&lt;/i&gt;
1155
1155
  * @param {*} [options] Override http request option.
1156
1156
  * @throws {RequiredError}
1157
1157
  */
@@ -1214,7 +1214,7 @@ var PoliciesApiFp = function (configuration) {
1214
1214
  });
1215
1215
  },
1216
1216
  /**
1217
- * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"policy-management.policies.view\"
1217
+ * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.<br/> <br/> <b>Notes on filtering:</b><br/> - The `partnerCode` filter matches any policy that has ever had a link to that partner — past, current, or future-dated — not only currently-assigned ones. There is currently no separate filter to match only the currently-active link.<br/> - An unrecognized filter field name is silently ignored: the request returns 200 with the unfiltered (or partially filtered, if combined with valid fields) result set rather than an error. **Required Permissions** \"policy-management.policies.view\"
1218
1218
  * @summary List policies
1219
1219
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1220
1220
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -1296,7 +1296,7 @@ var PoliciesApiFp = function (configuration) {
1296
1296
  });
1297
1297
  },
1298
1298
  /**
1299
- * Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.policies.update\"
1299
+ * Updates the draft version, or changes its lifecycle state via `revisionStatus` (see that field\'s description for what each value does — most notably, `APPROVED` promotes the draft to the current policy version and `REJECTED` deletes it). **Required Permissions** \"policy-management.policies.update\"
1300
1300
  * @summary Update the draft-policy
1301
1301
  * @param {string} policyCode Unique identifier for the object.
1302
1302
  * @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
@@ -1472,7 +1472,7 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
1472
1472
  return localVarFp.activatePolicy(policyCode, activatePolicyRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1473
1473
  },
1474
1474
  /**
1475
- * This will create a draft policy in the database. **Required Permissions** \"policy-management.policies.create\"
1475
+ * Creates a draft version of the policy update, without affecting the current version. This adds a new version to the existing policy — it does not create a new policy. The draft is returned with `isDraft: true` and `isCurrent: false`; the current version is unchanged until the draft is approved via `PATCH .../draft` with `revisionStatus: APPROVED`. **Required Permissions** \"policy-management.policies.create\"
1476
1476
  * @summary Create the draft-policy
1477
1477
  * @param {string} policyCode Unique identifier for the object.
1478
1478
  * @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
@@ -1506,11 +1506,11 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
1506
1506
  return localVarFp.deleteDraftPolicy(policyCode, authorization, options).then(function (request) { return request(axios, basePath); });
1507
1507
  },
1508
1508
  /**
1509
- * 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. **Required Permissions** \"policy-management.policies.view\"
1509
+ * Retrieves the draft version of the policy, if one exists. The returned version has `isDraft: true` and `isCurrent: false` it is never the current/live version. Returns a 404 if no draft exists (e.g. after it has been approved or rejected). **Required Permissions** \"policy-management.policies.view\"
1510
1510
  * @summary Retrieve the draft-policy
1511
1511
  * @param {string} policyCode Unique identifier for the object.
1512
1512
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1513
- * @param {string} [expand] Fields to expand response by.
1513
+ * @param {string} [expand] Fields to expand in the draft response. Pass the unprefixed relation name; for example, \&quot;premiumItems\&quot; expands the draft premium items relation.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: version, timelines, premiums, premiumItems, premiumFormulas&lt;/i&gt;
1514
1514
  * @param {*} [options] Override http request option.
1515
1515
  * @throws {RequiredError}
1516
1516
  */
@@ -1543,7 +1543,7 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
1543
1543
  return localVarFp.getPolicyDataByDate(code, authorization, timesliceDate, expand, options).then(function (request) { return request(axios, basePath); });
1544
1544
  },
1545
1545
  /**
1546
- * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"policy-management.policies.view\"
1546
+ * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.<br/> <br/> <b>Notes on filtering:</b><br/> - The `partnerCode` filter matches any policy that has ever had a link to that partner — past, current, or future-dated — not only currently-assigned ones. There is currently no separate filter to match only the currently-active link.<br/> - An unrecognized filter field name is silently ignored: the request returns 200 with the unfiltered (or partially filtered, if combined with valid fields) result set rather than an error. **Required Permissions** \"policy-management.policies.view\"
1547
1547
  * @summary List policies
1548
1548
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1549
1549
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -1595,7 +1595,7 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
1595
1595
  return localVarFp.listPolicyVersions(policyCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1596
1596
  },
1597
1597
  /**
1598
- * Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.policies.update\"
1598
+ * Updates the draft version, or changes its lifecycle state via `revisionStatus` (see that field\'s description for what each value does — most notably, `APPROVED` promotes the draft to the current policy version and `REJECTED` deletes it). **Required Permissions** \"policy-management.policies.update\"
1599
1599
  * @summary Update the draft-policy
1600
1600
  * @param {string} policyCode Unique identifier for the object.
1601
1601
  * @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
@@ -1705,7 +1705,7 @@ var PoliciesApi = /** @class */ (function (_super) {
1705
1705
  return (0, exports.PoliciesApiFp)(this.configuration).activatePolicy(requestParameters.policyCode, requestParameters.activatePolicyRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1706
1706
  };
1707
1707
  /**
1708
- * This will create a draft policy in the database. **Required Permissions** \"policy-management.policies.create\"
1708
+ * Creates a draft version of the policy update, without affecting the current version. This adds a new version to the existing policy — it does not create a new policy. The draft is returned with `isDraft: true` and `isCurrent: false`; the current version is unchanged until the draft is approved via `PATCH .../draft` with `revisionStatus: APPROVED`. **Required Permissions** \"policy-management.policies.create\"
1709
1709
  * @summary Create the draft-policy
1710
1710
  * @param {PoliciesApiCreateDraftPolicyRequest} requestParameters Request parameters.
1711
1711
  * @param {*} [options] Override http request option.
@@ -1741,7 +1741,7 @@ var PoliciesApi = /** @class */ (function (_super) {
1741
1741
  return (0, exports.PoliciesApiFp)(this.configuration).deleteDraftPolicy(requestParameters.policyCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1742
1742
  };
1743
1743
  /**
1744
- * 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. **Required Permissions** \"policy-management.policies.view\"
1744
+ * Retrieves the draft version of the policy, if one exists. The returned version has `isDraft: true` and `isCurrent: false` it is never the current/live version. Returns a 404 if no draft exists (e.g. after it has been approved or rejected). **Required Permissions** \"policy-management.policies.view\"
1745
1745
  * @summary Retrieve the draft-policy
1746
1746
  * @param {PoliciesApiGetDraftPolicyRequest} requestParameters Request parameters.
1747
1747
  * @param {*} [options] Override http request option.
@@ -1777,7 +1777,7 @@ var PoliciesApi = /** @class */ (function (_super) {
1777
1777
  return (0, exports.PoliciesApiFp)(this.configuration).getPolicyDataByDate(requestParameters.code, requestParameters.authorization, requestParameters.timesliceDate, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
1778
1778
  };
1779
1779
  /**
1780
- * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"policy-management.policies.view\"
1780
+ * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.<br/> <br/> <b>Notes on filtering:</b><br/> - The `partnerCode` filter matches any policy that has ever had a link to that partner — past, current, or future-dated — not only currently-assigned ones. There is currently no separate filter to match only the currently-active link.<br/> - An unrecognized filter field name is silently ignored: the request returns 200 with the unfiltered (or partially filtered, if combined with valid fields) result set rather than an error. **Required Permissions** \"policy-management.policies.view\"
1781
1781
  * @summary List policies
1782
1782
  * @param {PoliciesApiListPoliciesRequest} requestParameters Request parameters.
1783
1783
  * @param {*} [options] Override http request option.
@@ -1815,7 +1815,7 @@ var PoliciesApi = /** @class */ (function (_super) {
1815
1815
  return (0, exports.PoliciesApiFp)(this.configuration).listPolicyVersions(requestParameters.policyCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
1816
1816
  };
1817
1817
  /**
1818
- * Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.policies.update\"
1818
+ * Updates the draft version, or changes its lifecycle state via `revisionStatus` (see that field\'s description for what each value does — most notably, `APPROVED` promotes the draft to the current policy version and `REJECTED` deletes it). **Required Permissions** \"policy-management.policies.update\"
1819
1819
  * @summary Update the draft-policy
1820
1820
  * @param {PoliciesApiPatchDraftPolicyRequest} requestParameters Request parameters.
1821
1821
  * @param {*} [options] Override http request option.
@@ -24,7 +24,7 @@ export interface CreateDraftPolicyRequestDto {
24
24
  */
25
25
  'policyObjects': Array<PolicyObjectDto>;
26
26
  /**
27
- * Date from which the policy should be updated. This will create a new timeline starting from this date.
27
+ * Date from which the policy should be updated. This will create a new timeline starting from this date. Required — unlike on the PATCH draft endpoint, `from` cannot be omitted when creating a draft.
28
28
  * @type {string}
29
29
  * @memberof CreateDraftPolicyRequestDto
30
30
  */
@@ -22,7 +22,7 @@ export interface GetDraftPolicyRequestDto {
22
22
  */
23
23
  'policyCode': string;
24
24
  /**
25
- * Fields to expand response by.
25
+ * Fields to expand in the draft response. Pass the unprefixed relation name; for example, \"premiumItems\" expands the draft premium items relation.<br/> <br/> <i>Allowed values: version, timelines, premiums, premiumItems, premiumFormulas</i>
26
26
  * @type {string}
27
27
  * @memberof GetDraftPolicyRequestDto
28
28
  */
@@ -24,7 +24,7 @@ export interface PatchDraftPolicyRequestDto {
24
24
  */
25
25
  'policyObjects': Array<PolicyObjectDto>;
26
26
  /**
27
- * Date from which the policy should be updated. This will create a new timeline starting from this date.
27
+ * Date from which the policy should be updated. This will create a new timeline starting from this date. Optional on PATCH — omit it to leave the current version unaffected.
28
28
  * @type {string}
29
29
  * @memberof PatchDraftPolicyRequestDto
30
30
  */
@@ -36,7 +36,7 @@ export interface PatchDraftPolicyRequestDto {
36
36
  */
37
37
  'to'?: string;
38
38
  /**
39
- * Policy revision status.
39
+ * Policy revision status. Terminal values change the draft lifecycle:<br/> <br/> - <b>APPROVED</b>: promotes the draft to the current policy version (`isCurrent: true`, `isDraft: false`), replacing the current version.<br/> - <b>REJECTED</b>: deletes the draft version; subsequent `GET .../draft` requests return 404.<br/> - <b>CREATED</b>, <b>IN_REVIEW</b>, or <b>REVIEWED</b>: updates the draft in place with the supplied payload and leaves it as a draft (`isCurrent: false`, `isDraft: true`).
40
40
  * @type {string}
41
41
  * @memberof PatchDraftPolicyRequestDto
42
42
  */
@@ -28,7 +28,7 @@ export interface PolicyObjectDto {
28
28
  */
29
29
  'insuredObjectName'?: string;
30
30
  /**
31
- * Insured object data.
31
+ * Insured object data. For the \"Coverage\" insured object, pass the tariff variant as `tariffVariant`, for example `{ \"tariffVariant\": \"...\" }`.
32
32
  * @type {object}
33
33
  * @memberof PolicyObjectDto
34
34
  */
@@ -47,7 +47,7 @@ export interface PolicyPremiumItemClass {
47
47
  */
48
48
  'premiumFormula': PremiumFormulaClass;
49
49
  /**
50
- * Is premium override?
50
+ * Whether this premium item is priced from an override rather than the formula. Read-only — it cannot be set directly. It is computed per formula (matched by `name` + `unit`) from whether the request included a matching entry in `premiumOverride.premiumOverrides`.
51
51
  * @type {boolean}
52
52
  * @memberof PolicyPremiumItemClass
53
53
  */
@@ -29,7 +29,7 @@ export interface CreateDraftPolicyRequestDto {
29
29
  */
30
30
  'policyObjects': Array<PolicyObjectDto>;
31
31
  /**
32
- * Date from which the policy should be updated. This will create a new timeline starting from this date.
32
+ * Date from which the policy should be updated. This will create a new timeline starting from this date. Required — unlike on the PATCH draft endpoint, `from` cannot be omitted when creating a draft.
33
33
  * @type {string}
34
34
  * @memberof CreateDraftPolicyRequestDto
35
35
  */
@@ -27,7 +27,7 @@ export interface GetDraftPolicyRequestDto {
27
27
  */
28
28
  'policyCode': string;
29
29
  /**
30
- * Fields to expand response by.
30
+ * Fields to expand in the draft response. Pass the unprefixed relation name; for example, \"premiumItems\" expands the draft premium items relation.<br/> <br/> <i>Allowed values: version, timelines, premiums, premiumItems, premiumFormulas</i>
31
31
  * @type {string}
32
32
  * @memberof GetDraftPolicyRequestDto
33
33
  */
@@ -29,7 +29,7 @@ export interface PatchDraftPolicyRequestDto {
29
29
  */
30
30
  'policyObjects': Array<PolicyObjectDto>;
31
31
  /**
32
- * Date from which the policy should be updated. This will create a new timeline starting from this date.
32
+ * Date from which the policy should be updated. This will create a new timeline starting from this date. Optional on PATCH — omit it to leave the current version unaffected.
33
33
  * @type {string}
34
34
  * @memberof PatchDraftPolicyRequestDto
35
35
  */
@@ -41,7 +41,7 @@ export interface PatchDraftPolicyRequestDto {
41
41
  */
42
42
  'to'?: string;
43
43
  /**
44
- * Policy revision status.
44
+ * Policy revision status. Terminal values change the draft lifecycle:<br/> <br/> - <b>APPROVED</b>: promotes the draft to the current policy version (`isCurrent: true`, `isDraft: false`), replacing the current version.<br/> - <b>REJECTED</b>: deletes the draft version; subsequent `GET .../draft` requests return 404.<br/> - <b>CREATED</b>, <b>IN_REVIEW</b>, or <b>REVIEWED</b>: updates the draft in place with the supplied payload and leaves it as a draft (`isCurrent: false`, `isDraft: true`).
45
45
  * @type {string}
46
46
  * @memberof PatchDraftPolicyRequestDto
47
47
  */
@@ -33,7 +33,7 @@ export interface PolicyObjectDto {
33
33
  */
34
34
  'insuredObjectName'?: string;
35
35
  /**
36
- * Insured object data.
36
+ * Insured object data. For the \"Coverage\" insured object, pass the tariff variant as `tariffVariant`, for example `{ \"tariffVariant\": \"...\" }`.
37
37
  * @type {object}
38
38
  * @memberof PolicyObjectDto
39
39
  */
@@ -52,7 +52,7 @@ export interface PolicyPremiumItemClass {
52
52
  */
53
53
  'premiumFormula': PremiumFormulaClass;
54
54
  /**
55
- * Is premium override?
55
+ * Whether this premium item is priced from an override rather than the formula. Read-only — it cannot be set directly. It is computed per formula (matched by `name` + `unit`) from whether the request included a matching entry in `premiumOverride.premiumOverrides`.
56
56
  * @type {boolean}
57
57
  * @memberof PolicyPremiumItemClass
58
58
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/insurance-sdk-node",
3
- "version": "1.104.1-beta.29",
3
+ "version": "1.104.1-beta.30",
4
4
  "description": "OpenAPI client for @emilgroup/insurance-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [