@emilgroup/insurance-sdk-node 1.104.1-beta.11 → 1.104.1-beta.110

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 (103) hide show
  1. package/.openapi-generator/FILES +5 -2
  2. package/README.md +2 -2
  3. package/api/booking-funnel-versions-api.ts +8 -4
  4. package/api/booking-funnels-api.ts +24 -12
  5. package/api/commission-agreement-items-api.ts +20 -10
  6. package/api/commission-agreement-products-api.ts +20 -10
  7. package/api/commission-agreement-versions-api.ts +16 -8
  8. package/api/commission-agreements-api.ts +20 -10
  9. package/api/commission-recipients-api.ts +20 -10
  10. package/api/emil-functions-api.ts +44 -22
  11. package/api/health-check-api.ts +6 -10
  12. package/api/insured-object-types-api.ts +4 -2
  13. package/api/insured-objects-api.ts +16 -8
  14. package/api/lead-statuses-api.ts +20 -10
  15. package/api/lead-versions-api.ts +8 -4
  16. package/api/leads-api.ts +44 -24
  17. package/api/named-ranges-api.ts +24 -12
  18. package/api/partner-links-api.ts +24 -12
  19. package/api/partner-roles-api.ts +20 -10
  20. package/api/policies-api.ts +100 -66
  21. package/api/premium-calculation-api.ts +171 -0
  22. package/api/premium-formulas-api.ts +24 -12
  23. package/api/product-configs-api.ts +24 -12
  24. package/api/product-factors-api.ts +28 -14
  25. package/api/product-fields-api.ts +28 -14
  26. package/api/product-versions-api.ts +8 -4
  27. package/api/products-api.ts +24 -12
  28. package/api/status-transition-rules-api.ts +24 -12
  29. package/api.ts +2 -0
  30. package/dist/api/booking-funnel-versions-api.js +11 -7
  31. package/dist/api/booking-funnels-api.js +39 -23
  32. package/dist/api/commission-agreement-items-api.js +29 -18
  33. package/dist/api/commission-agreement-products-api.js +29 -18
  34. package/dist/api/commission-agreement-versions-api.js +22 -14
  35. package/dist/api/commission-agreements-api.js +29 -18
  36. package/dist/api/commission-recipients-api.js +32 -19
  37. package/dist/api/emil-functions-api.js +74 -43
  38. package/dist/api/health-check-api.d.ts +7 -8
  39. package/dist/api/health-check-api.js +4 -4
  40. package/dist/api/insured-object-types-api.js +4 -3
  41. package/dist/api/insured-objects-api.js +22 -14
  42. package/dist/api/lead-statuses-api.js +32 -19
  43. package/dist/api/lead-versions-api.js +11 -7
  44. package/dist/api/leads-api.d.ts +4 -4
  45. package/dist/api/leads-api.js +67 -41
  46. package/dist/api/named-ranges-api.js +36 -22
  47. package/dist/api/partner-links-api.js +36 -22
  48. package/dist/api/partner-roles-api.js +32 -19
  49. package/dist/api/policies-api.d.ts +32 -32
  50. package/dist/api/policies-api.js +129 -90
  51. package/dist/api/premium-calculation-api.d.ts +97 -0
  52. package/dist/api/premium-calculation-api.js +231 -0
  53. package/dist/api/premium-formulas-api.js +39 -23
  54. package/dist/api/product-configs-api.js +39 -23
  55. package/dist/api/product-factors-api.js +37 -24
  56. package/dist/api/product-fields-api.js +43 -26
  57. package/dist/api/product-versions-api.js +11 -7
  58. package/dist/api/products-api.js +33 -21
  59. package/dist/api/status-transition-rules-api.js +36 -22
  60. package/dist/api.d.ts +1 -0
  61. package/dist/api.js +1 -0
  62. package/dist/models/calculate-premium-response-class.d.ts +39 -0
  63. package/dist/models/calculated-policy-objects-class.d.ts +25 -0
  64. package/dist/models/claim-config-class.d.ts +7 -0
  65. package/dist/models/create-draft-policy-request-dto.d.ts +1 -1
  66. package/dist/models/create-premium-formula-request-dto.d.ts +6 -0
  67. package/dist/models/create-product-request-dto.d.ts +12 -0
  68. package/dist/models/create-product-version-request-dto.d.ts +6 -0
  69. package/dist/models/get-draft-policy-request-dto.d.ts +1 -1
  70. package/dist/models/index.d.ts +4 -2
  71. package/dist/models/index.js +4 -2
  72. package/dist/models/partner-class.d.ts +6 -0
  73. package/dist/models/patch-draft-policy-request-dto.d.ts +2 -2
  74. package/dist/models/policy-object-dto.d.ts +1 -1
  75. package/dist/models/policy-premium-item-class.d.ts +1 -1
  76. package/dist/models/premium-formula-class.d.ts +6 -0
  77. package/dist/models/regulation-subtype-class.d.ts +30 -0
  78. package/dist/models/regulation-subtype-class.js +15 -0
  79. package/dist/models/regulation-subtypes-class.d.ts +37 -0
  80. package/dist/models/regulation-subtypes-class.js +15 -0
  81. package/models/calculate-premium-response-class.ts +45 -0
  82. package/models/calculated-policy-objects-class.ts +31 -0
  83. package/models/claim-config-class.ts +7 -0
  84. package/models/create-draft-policy-request-dto.ts +1 -1
  85. package/models/create-premium-formula-request-dto.ts +6 -0
  86. package/models/create-product-request-dto.ts +12 -0
  87. package/models/create-product-version-request-dto.ts +6 -0
  88. package/models/get-draft-policy-request-dto.ts +1 -1
  89. package/models/index.ts +4 -2
  90. package/models/partner-class.ts +6 -0
  91. package/models/patch-draft-policy-request-dto.ts +2 -2
  92. package/models/policy-object-dto.ts +1 -1
  93. package/models/policy-premium-item-class.ts +1 -1
  94. package/models/premium-formula-class.ts +6 -0
  95. package/models/regulation-subtype-class.ts +36 -0
  96. package/models/regulation-subtypes-class.ts +43 -0
  97. package/package.json +1 -1
  98. package/dist/models/inline-response200.d.ts +0 -54
  99. package/dist/models/inline-response503.d.ts +0 -54
  100. package/models/inline-response200.ts +0 -48
  101. package/models/inline-response503.ts +0 -48
  102. /package/dist/models/{inline-response200.js → calculate-premium-response-class.js} +0 -0
  103. /package/dist/models/{inline-response503.js → calculated-policy-objects-class.js} +0 -0
@@ -107,8 +107,10 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
107
107
  // http bearer authentication required
108
108
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
109
109
 
110
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
111
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
110
+ // Only Authorization falls back to the configured token; an empty value is never sent.
111
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
112
+ if (authorizationValue) {
113
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
112
114
  }
113
115
 
114
116
 
@@ -126,7 +128,7 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
126
128
  };
127
129
  },
128
130
  /**
129
- * This will create a draft policy in the database. **Required Permissions** \"policy-management.policies.create\"
131
+ * 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
132
  * @summary Create the draft-policy
131
133
  * @param {string} policyCode Unique identifier for the object.
132
134
  * @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
@@ -158,8 +160,10 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
158
160
  // http bearer authentication required
159
161
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
160
162
 
161
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
162
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
163
+ // Only Authorization falls back to the configured token; an empty value is never sent.
164
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
165
+ if (authorizationValue) {
166
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
163
167
  }
164
168
 
165
169
 
@@ -205,8 +209,10 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
205
209
  // http bearer authentication required
206
210
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
207
211
 
208
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
209
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
212
+ // Only Authorization falls back to the configured token; an empty value is never sent.
213
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
214
+ if (authorizationValue) {
215
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
210
216
  }
211
217
 
212
218
 
@@ -253,8 +259,10 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
253
259
  // http bearer authentication required
254
260
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
255
261
 
256
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
257
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
262
+ // Only Authorization falls back to the configured token; an empty value is never sent.
263
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
264
+ if (authorizationValue) {
265
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
258
266
  }
259
267
 
260
268
 
@@ -269,11 +277,11 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
269
277
  };
270
278
  },
271
279
  /**
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\"
280
+ * 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
281
  * @summary Retrieve the draft-policy
274
282
  * @param {string} policyCode Unique identifier for the object.
275
283
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
276
- * @param {string} [expand] Fields to expand response by.
284
+ * @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
285
  * @param {*} [options] Override http request option.
278
286
  * @throws {RequiredError}
279
287
  */
@@ -303,8 +311,10 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
303
311
  localVarQueryParameter['expand'] = expand;
304
312
  }
305
313
 
306
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
307
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
314
+ // Only Authorization falls back to the configured token; an empty value is never sent.
315
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
316
+ if (authorizationValue) {
317
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
308
318
  }
309
319
 
310
320
 
@@ -353,8 +363,10 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
353
363
  localVarQueryParameter['expand'] = expand;
354
364
  }
355
365
 
356
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
357
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
366
+ // Only Authorization falls back to the configured token; an empty value is never sent.
367
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
368
+ if (authorizationValue) {
369
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
358
370
  }
359
371
 
360
372
 
@@ -408,8 +420,10 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
408
420
  localVarQueryParameter['expand'] = expand;
409
421
  }
410
422
 
411
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
412
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
423
+ // Only Authorization falls back to the configured token; an empty value is never sent.
424
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
425
+ if (authorizationValue) {
426
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
413
427
  }
414
428
 
415
429
 
@@ -424,16 +438,16 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
424
438
  };
425
439
  },
426
440
  /**
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\"
441
+ * 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
442
  * @summary List policies
429
443
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
430
444
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
431
445
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
432
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode&lt;/i&gt;
433
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
446
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode, partnerLinks.partnerCode&lt;/i&gt;
447
+ * @param {string} [search] Free-text search across the policy\&#39;s key fields: policy codes and numbers, holder, status, product, account and lead codes, start date, and insured-object data (policyObjects.data). Matching is case- and accent-insensitive (mueller finds Müller), tolerates typos, and ranks results by relevance. To search a single field, pass search&#x3D;path:value — e.g. search&#x3D;holder:Müller or search&#x3D;policyObjects.data.postalCode:10115. The value matches exactly or as a prefix; paths are dot-separated and case-sensitive.
434
448
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId&lt;/i&gt;
435
449
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks&lt;i&gt;
436
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode&lt;/i&gt;
450
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode, partnerLinks.partnerCode&lt;/i&gt;
437
451
  * @param {*} [options] Override http request option.
438
452
  * @throws {RequiredError}
439
453
  */
@@ -484,8 +498,10 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
484
498
  localVarQueryParameter['filters'] = filters;
485
499
  }
486
500
 
487
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
488
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
501
+ // Only Authorization falls back to the configured token; an empty value is never sent.
502
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
503
+ if (authorizationValue) {
504
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
489
505
  }
490
506
 
491
507
 
@@ -560,8 +576,10 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
560
576
  localVarQueryParameter['filters'] = filters;
561
577
  }
562
578
 
563
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
564
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
579
+ // Only Authorization falls back to the configured token; an empty value is never sent.
580
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
581
+ if (authorizationValue) {
582
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
565
583
  }
566
584
 
567
585
 
@@ -640,8 +658,10 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
640
658
  localVarQueryParameter['filters'] = filters;
641
659
  }
642
660
 
643
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
644
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
661
+ // Only Authorization falls back to the configured token; an empty value is never sent.
662
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
663
+ if (authorizationValue) {
664
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
645
665
  }
646
666
 
647
667
 
@@ -656,7 +676,7 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
656
676
  };
657
677
  },
658
678
  /**
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\"
679
+ * 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
680
  * @summary Update the draft-policy
661
681
  * @param {string} policyCode Unique identifier for the object.
662
682
  * @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
@@ -688,8 +708,10 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
688
708
  // http bearer authentication required
689
709
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
690
710
 
691
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
692
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
711
+ // Only Authorization falls back to the configured token; an empty value is never sent.
712
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
713
+ if (authorizationValue) {
714
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
693
715
  }
694
716
 
695
717
 
@@ -739,8 +761,10 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
739
761
  // http bearer authentication required
740
762
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
741
763
 
742
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
743
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
764
+ // Only Authorization falls back to the configured token; an empty value is never sent.
765
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
766
+ if (authorizationValue) {
767
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
744
768
  }
745
769
 
746
770
 
@@ -790,8 +814,10 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
790
814
  // http bearer authentication required
791
815
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
792
816
 
793
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
794
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
817
+ // Only Authorization falls back to the configured token; an empty value is never sent.
818
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
819
+ if (authorizationValue) {
820
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
795
821
  }
796
822
 
797
823
 
@@ -841,8 +867,10 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
841
867
  // http bearer authentication required
842
868
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
843
869
 
844
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
845
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
870
+ // Only Authorization falls back to the configured token; an empty value is never sent.
871
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
872
+ if (authorizationValue) {
873
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
846
874
  }
847
875
 
848
876
 
@@ -892,8 +920,10 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
892
920
  // http bearer authentication required
893
921
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
894
922
 
895
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
896
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
923
+ // Only Authorization falls back to the configured token; an empty value is never sent.
924
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
925
+ if (authorizationValue) {
926
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
897
927
  }
898
928
 
899
929
 
@@ -943,8 +973,10 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
943
973
  // http bearer authentication required
944
974
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
945
975
 
946
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
947
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
976
+ // Only Authorization falls back to the configured token; an empty value is never sent.
977
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
978
+ if (authorizationValue) {
979
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
948
980
  }
949
981
 
950
982
 
@@ -994,8 +1026,10 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
994
1026
  // http bearer authentication required
995
1027
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
996
1028
 
997
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
998
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
1029
+ // Only Authorization falls back to the configured token; an empty value is never sent.
1030
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
1031
+ if (authorizationValue) {
1032
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
999
1033
  }
1000
1034
 
1001
1035
 
@@ -1036,7 +1070,7 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
1036
1070
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1037
1071
  },
1038
1072
  /**
1039
- * This will create a draft policy in the database. **Required Permissions** \"policy-management.policies.create\"
1073
+ * 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
1074
  * @summary Create the draft-policy
1041
1075
  * @param {string} policyCode Unique identifier for the object.
1042
1076
  * @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
@@ -1073,11 +1107,11 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
1073
1107
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1074
1108
  },
1075
1109
  /**
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\"
1110
+ * 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
1111
  * @summary Retrieve the draft-policy
1078
1112
  * @param {string} policyCode Unique identifier for the object.
1079
1113
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1080
- * @param {string} [expand] Fields to expand response by.
1114
+ * @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
1115
  * @param {*} [options] Override http request option.
1082
1116
  * @throws {RequiredError}
1083
1117
  */
@@ -1113,16 +1147,16 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
1113
1147
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1114
1148
  },
1115
1149
  /**
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\"
1150
+ * 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
1151
  * @summary List policies
1118
1152
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1119
1153
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1120
1154
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
1121
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode&lt;/i&gt;
1122
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1155
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode, partnerLinks.partnerCode&lt;/i&gt;
1156
+ * @param {string} [search] Free-text search across the policy\&#39;s key fields: policy codes and numbers, holder, status, product, account and lead codes, start date, and insured-object data (policyObjects.data). Matching is case- and accent-insensitive (mueller finds Müller), tolerates typos, and ranks results by relevance. To search a single field, pass search&#x3D;path:value — e.g. search&#x3D;holder:Müller or search&#x3D;policyObjects.data.postalCode:10115. The value matches exactly or as a prefix; paths are dot-separated and case-sensitive.
1123
1157
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId&lt;/i&gt;
1124
1158
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks&lt;i&gt;
1125
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode&lt;/i&gt;
1159
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode, partnerLinks.partnerCode&lt;/i&gt;
1126
1160
  * @param {*} [options] Override http request option.
1127
1161
  * @throws {RequiredError}
1128
1162
  */
@@ -1168,7 +1202,7 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
1168
1202
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1169
1203
  },
1170
1204
  /**
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\"
1205
+ * 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
1206
  * @summary Update the draft-policy
1173
1207
  * @param {string} policyCode Unique identifier for the object.
1174
1208
  * @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
@@ -1281,7 +1315,7 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
1281
1315
  return localVarFp.activatePolicy(policyCode, activatePolicyRequestDto, authorization, options).then((request) => request(axios, basePath));
1282
1316
  },
1283
1317
  /**
1284
- * This will create a draft policy in the database. **Required Permissions** \"policy-management.policies.create\"
1318
+ * 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
1319
  * @summary Create the draft-policy
1286
1320
  * @param {string} policyCode Unique identifier for the object.
1287
1321
  * @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
@@ -1315,11 +1349,11 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
1315
1349
  return localVarFp.deleteDraftPolicy(policyCode, authorization, options).then((request) => request(axios, basePath));
1316
1350
  },
1317
1351
  /**
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\"
1352
+ * 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
1353
  * @summary Retrieve the draft-policy
1320
1354
  * @param {string} policyCode Unique identifier for the object.
1321
1355
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1322
- * @param {string} [expand] Fields to expand response by.
1356
+ * @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
1357
  * @param {*} [options] Override http request option.
1324
1358
  * @throws {RequiredError}
1325
1359
  */
@@ -1352,16 +1386,16 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
1352
1386
  return localVarFp.getPolicyDataByDate(code, authorization, timesliceDate, expand, options).then((request) => request(axios, basePath));
1353
1387
  },
1354
1388
  /**
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\"
1389
+ * 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
1390
  * @summary List policies
1357
1391
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1358
1392
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1359
1393
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
1360
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode&lt;/i&gt;
1361
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1394
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode, partnerLinks.partnerCode&lt;/i&gt;
1395
+ * @param {string} [search] Free-text search across the policy\&#39;s key fields: policy codes and numbers, holder, status, product, account and lead codes, start date, and insured-object data (policyObjects.data). Matching is case- and accent-insensitive (mueller finds Müller), tolerates typos, and ranks results by relevance. To search a single field, pass search&#x3D;path:value — e.g. search&#x3D;holder:Müller or search&#x3D;policyObjects.data.postalCode:10115. The value matches exactly or as a prefix; paths are dot-separated and case-sensitive.
1362
1396
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId&lt;/i&gt;
1363
1397
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas, partnerLinks&lt;i&gt;
1364
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode&lt;/i&gt;
1398
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode, partnerLinks.partnerCode&lt;/i&gt;
1365
1399
  * @param {*} [options] Override http request option.
1366
1400
  * @throws {RequiredError}
1367
1401
  */
@@ -1404,7 +1438,7 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
1404
1438
  return localVarFp.listPolicyVersions(policyCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
1405
1439
  },
1406
1440
  /**
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\"
1441
+ * 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
1442
  * @summary Update the draft-policy
1409
1443
  * @param {string} policyCode Unique identifier for the object.
1410
1444
  * @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
@@ -1609,7 +1643,7 @@ export interface PoliciesApiGetDraftPolicyRequest {
1609
1643
  readonly authorization?: string
1610
1644
 
1611
1645
  /**
1612
- * Fields to expand response by.
1646
+ * 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
1647
  * @type {string}
1614
1648
  * @memberof PoliciesApiGetDraftPolicy
1615
1649
  */
@@ -1707,14 +1741,14 @@ export interface PoliciesApiListPoliciesRequest {
1707
1741
  readonly pageToken?: string
1708
1742
 
1709
1743
  /**
1710
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode&lt;/i&gt;
1744
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode, partnerLinks.partnerCode&lt;/i&gt;
1711
1745
  * @type {string}
1712
1746
  * @memberof PoliciesApiListPolicies
1713
1747
  */
1714
1748
  readonly filter?: string
1715
1749
 
1716
1750
  /**
1717
- * To search the list by any field, pass search&#x3D;xxx to fetch the result.
1751
+ * Free-text search across the policy\&#39;s key fields: policy codes and numbers, holder, status, product, account and lead codes, start date, and insured-object data (policyObjects.data). Matching is case- and accent-insensitive (mueller finds Müller), tolerates typos, and ranks results by relevance. To search a single field, pass search&#x3D;path:value — e.g. search&#x3D;holder:Müller or search&#x3D;policyObjects.data.postalCode:10115. The value matches exactly or as a prefix; paths are dot-separated and case-sensitive.
1718
1752
  * @type {string}
1719
1753
  * @memberof PoliciesApiListPolicies
1720
1754
  */
@@ -1735,7 +1769,7 @@ export interface PoliciesApiListPoliciesRequest {
1735
1769
  readonly expand?: string
1736
1770
 
1737
1771
  /**
1738
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode&lt;/i&gt;
1772
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData, partnerCode, partnerLinks.partnerCode&lt;/i&gt;
1739
1773
  * @type {string}
1740
1774
  * @memberof PoliciesApiListPolicies
1741
1775
  */
@@ -2091,7 +2125,7 @@ export class PoliciesApi extends BaseAPI {
2091
2125
  }
2092
2126
 
2093
2127
  /**
2094
- * This will create a draft policy in the database. **Required Permissions** \"policy-management.policies.create\"
2128
+ * 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
2129
  * @summary Create the draft-policy
2096
2130
  * @param {PoliciesApiCreateDraftPolicyRequest} requestParameters Request parameters.
2097
2131
  * @param {*} [options] Override http request option.
@@ -2127,7 +2161,7 @@ export class PoliciesApi extends BaseAPI {
2127
2161
  }
2128
2162
 
2129
2163
  /**
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\"
2164
+ * 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
2165
  * @summary Retrieve the draft-policy
2132
2166
  * @param {PoliciesApiGetDraftPolicyRequest} requestParameters Request parameters.
2133
2167
  * @param {*} [options] Override http request option.
@@ -2163,7 +2197,7 @@ export class PoliciesApi extends BaseAPI {
2163
2197
  }
2164
2198
 
2165
2199
  /**
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\"
2200
+ * 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
2201
  * @summary List policies
2168
2202
  * @param {PoliciesApiListPoliciesRequest} requestParameters Request parameters.
2169
2203
  * @param {*} [options] Override http request option.
@@ -2199,7 +2233,7 @@ export class PoliciesApi extends BaseAPI {
2199
2233
  }
2200
2234
 
2201
2235
  /**
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\"
2236
+ * 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
2237
  * @summary Update the draft-policy
2204
2238
  * @param {PoliciesApiPatchDraftPolicyRequest} requestParameters Request parameters.
2205
2239
  * @param {*} [options] Override http request option.