@insurance-broker/api-client 5.28.0 → 5.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/schema.d.ts +217 -9
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -6120,7 +6120,7 @@ export interface paths {
6120
6120
  * Takes exactly one option on exactly one presented version. Terminal.
6121
6121
  * @description Accepts one option on the version that is presented now. Accepting is terminal: the quote request is settled and no further decision is recorded on it.
6122
6122
  *
6123
- * **An option whose premium is above the approval limit the acting member's role carries is a `409` typed `urn:brokerplatform:problem:acceptance-above-approval-limit`** (#197, #630). The limit is the broker's configuration, not the caller's permission, so retrying never helps: a member whose role carries a higher limit accepts it, or the caller accepts a smaller option. The other `409`s — a second acceptance, an option whose price has lapsed, a superseded version, a lost update — say which in their `detail`.
6123
+ * **An option whose premium is above the approval limit the acting member's role carries is a `409` typed `urn:brokerplatform:problem:acceptance-above-approval-limit`** (#197, #630). The limit is the broker's configuration, not the caller's permission, so retrying never helps: a member whose role carries a higher limit accepts it, or the caller accepts a smaller option. The same type answers an option priced in a currency the acting member's role has no limit in, at a broker that has chosen to refuse such a currency (#422). The other `409`s — a second acceptance, an option whose price has lapsed, a superseded version, a lost update — say which in their `detail`.
6124
6124
  */
6125
6125
  post: operations["AcceptCustomerQuote"];
6126
6126
  delete?: never;
@@ -6203,6 +6203,30 @@ export interface paths {
6203
6203
  patch?: never;
6204
6204
  trace?: never;
6205
6205
  };
6206
+ "/api/v1/acceptance-approval-limits/settings": {
6207
+ parameters: {
6208
+ query?: never;
6209
+ header?: never;
6210
+ path?: never;
6211
+ cookie?: never;
6212
+ };
6213
+ /**
6214
+ * What a currency with no ceiling means at this broker
6215
+ * @description Whether a member of a customer organisation whose role has a ceiling in some currency, but none in the currency a premium is quoted in, may accept it (Unlimited, the default) or is refused (Refused). A role with no ceiling in any currency is never refused by this setting, and a broker with no ceilings at all is unaffected by it. Answered whether or not it has been set; the updated members are null while the default applies.
6216
+ */
6217
+ get: operations["ReadAcceptanceApprovalSettings"];
6218
+ /**
6219
+ * Choose what a currency with no ceiling means at this broker
6220
+ * @description Sets currencyWithoutACeiling to Unlimited or Refused. Refused takes effect on the next acceptance: a member acting for an organisation whose role has a ceiling in another currency, and none in the premium's, is refused with the same 409 an acceptance above a ceiling receives. Unlimited restores the default.
6221
+ */
6222
+ put: operations["SetAcceptanceApprovalSettings"];
6223
+ post?: never;
6224
+ delete?: never;
6225
+ options?: never;
6226
+ head?: never;
6227
+ patch?: never;
6228
+ trace?: never;
6229
+ };
6206
6230
  "/api/v1/acceptance-approval-limits/{role}/{currency}": {
6207
6231
  parameters: {
6208
6232
  query?: never;
@@ -6716,6 +6740,12 @@ export interface components {
6716
6740
  updatedAtUtc: string;
6717
6741
  setBySubjectId: string;
6718
6742
  };
6743
+ AcceptanceApprovalSettingsResponse: {
6744
+ currencyWithoutACeiling: string;
6745
+ /** Format: date-time */
6746
+ updatedAtUtc: null | string;
6747
+ updatedBySubjectId: null | string;
6748
+ };
6719
6749
  AcceptQuoteRequest: {
6720
6750
  /** Format: uuid */
6721
6751
  presentationVersionId: null | string;
@@ -6764,6 +6794,19 @@ export interface components {
6764
6794
  name: null | string;
6765
6795
  description: null | string;
6766
6796
  };
6797
+ /** @description The members of errors that defining a product can answer 400 with, each keyed by the request member's own name. Any member may be absent; each present one is a list of sentences for a person. */
6798
+ AddProductValidationErrors: {
6799
+ /** @description The key is missing, or is not lower-case letters, digits and hyphens within the length limit. */
6800
+ Key?: string[];
6801
+ /** @description The name is missing or too long. */
6802
+ Name?: string[];
6803
+ /** @description The description is too long. */
6804
+ Description?: string[];
6805
+ /** @description The line of business is missing, or this broker has no line of business with that identifier. */
6806
+ CategoryId?: string[];
6807
+ } & {
6808
+ [key: string]: string[];
6809
+ };
6767
6810
  ApproachInsurerRequest: {
6768
6811
  /** Format: uuid */
6769
6812
  insurerId: null | string;
@@ -6801,6 +6844,13 @@ export interface components {
6801
6844
  /** Format: uuid */
6802
6845
  insurerId: null | string;
6803
6846
  };
6847
+ /** @description The members of errors that naming an insurer on a product's panel can answer 400 with, each keyed by the request member's own name. Any member may be absent; each present one is a list of sentences for a person. */
6848
+ AttachProductInsurerValidationErrors: {
6849
+ /** @description The insurer is missing, or this broker has no insurer with that identifier. */
6850
+ InsurerId?: string[];
6851
+ } & {
6852
+ [key: string]: string[];
6853
+ };
6804
6854
  AuditActionsResponse: {
6805
6855
  actions: string[];
6806
6856
  incomplete: boolean;
@@ -9331,6 +9381,13 @@ export interface components {
9331
9381
  /** Format: date-time */
9332
9382
  attachedAtUtc: string;
9333
9383
  };
9384
+ /** @description The members of errors that activating or withdrawing a product can answer 400 with. The routes take no body, so the If-Match header is the only key. */
9385
+ ProductLifecycleValidationErrors: {
9386
+ /** @description The If-Match header is not a concurrencyToken this API issued: send it exactly as it was read. */
9387
+ "If-Match"?: string[];
9388
+ } & {
9389
+ [key: string]: string[];
9390
+ };
9334
9391
  ProductResponse: {
9335
9392
  /** Format: uuid */
9336
9393
  id: string;
@@ -9585,6 +9642,15 @@ export interface components {
9585
9642
  /** Format: uuid */
9586
9643
  categoryId: null | string;
9587
9644
  };
9645
+ /** @description The members of errors that reclassifying a product can answer 400 with, each keyed by the request member's own name, or If-Match for the header. Any member may be absent; each present one is a list of sentences for a person. */
9646
+ ReclassifyProductValidationErrors: {
9647
+ /** @description The line of business is missing, or this broker has no line of business with that identifier. */
9648
+ CategoryId?: string[];
9649
+ /** @description The If-Match header is not a concurrencyToken this API issued: send it exactly as it was read. */
9650
+ "If-Match"?: string[];
9651
+ } & {
9652
+ [key: string]: string[];
9653
+ };
9588
9654
  RecordAnswersRequest: {
9589
9655
  answers: null | components["schemas"]["JsonElement"];
9590
9656
  source: null | string;
@@ -10013,6 +10079,9 @@ export interface components {
10013
10079
  /** Format: double */
10014
10080
  maximumAmount: null | number | string;
10015
10081
  };
10082
+ SetAcceptanceApprovalSettingsRequest: {
10083
+ currencyWithoutACeiling: null | string;
10084
+ };
10016
10085
  SetEmergencyContactRequest: {
10017
10086
  providerName: null | string;
10018
10087
  contactDetail: null | string;
@@ -10583,6 +10652,17 @@ export interface components {
10583
10652
  name: null | string;
10584
10653
  description: null | string;
10585
10654
  };
10655
+ /** @description The members of errors that correcting a product can answer 400 with, each keyed by the request member's own name, or If-Match for the header. Any member may be absent; each present one is a list of sentences for a person. */
10656
+ UpdateProductValidationErrors: {
10657
+ /** @description The name is missing or too long. */
10658
+ Name?: string[];
10659
+ /** @description The description is too long. */
10660
+ Description?: string[];
10661
+ /** @description The If-Match header is not a concurrencyToken this API issued: send it exactly as it was read. */
10662
+ "If-Match"?: string[];
10663
+ } & {
10664
+ [key: string]: string[];
10665
+ };
10586
10666
  VerifyServiceLocationRequest: {
10587
10667
  assurance: null | string;
10588
10668
  };
@@ -12829,13 +12909,21 @@ export interface operations {
12829
12909
  "application/json": components["schemas"]["ProductResponse"];
12830
12910
  };
12831
12911
  };
12832
- /** @description Bad Request */
12912
+ /** @description Bad Request. errors is keyed by the request member's own name, or by a header's name, and the keys this operation can send are the members of errors in this schema: Key, Name, Description, CategoryId. Each holds sentences for a person. A body the server could not read is answered 400 with no errors at all. */
12833
12913
  400: {
12834
12914
  headers: {
12835
12915
  [name: string]: unknown;
12836
12916
  };
12837
12917
  content: {
12838
- "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
12918
+ "application/problem+json": {
12919
+ type?: null | string;
12920
+ title?: null | string;
12921
+ /** Format: int32 */
12922
+ status?: null | number;
12923
+ detail?: null | string;
12924
+ instance?: null | string;
12925
+ errors?: components["schemas"]["AddProductValidationErrors"];
12926
+ };
12839
12927
  };
12840
12928
  };
12841
12929
  /** @description Conflict. A type of urn:brokerplatform:problem:concurrency-conflict means someone else changed the record first and nothing was written: read it again and decide again. Any other type is a conflict this operation decided itself, and retrying it unchanged will not help. */
@@ -12941,13 +13029,21 @@ export interface operations {
12941
13029
  "application/json": components["schemas"]["ProductResponse"];
12942
13030
  };
12943
13031
  };
12944
- /** @description Bad Request */
13032
+ /** @description Bad Request. errors is keyed by the request member's own name, or by a header's name, and the keys this operation can send are the members of errors in this schema: Name, Description, If-Match. Each holds sentences for a person. A body the server could not read is answered 400 with no errors at all. */
12945
13033
  400: {
12946
13034
  headers: {
12947
13035
  [name: string]: unknown;
12948
13036
  };
12949
13037
  content: {
12950
- "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
13038
+ "application/problem+json": {
13039
+ type?: null | string;
13040
+ title?: null | string;
13041
+ /** Format: int32 */
13042
+ status?: null | number;
13043
+ detail?: null | string;
13044
+ instance?: null | string;
13045
+ errors?: components["schemas"]["UpdateProductValidationErrors"];
13046
+ };
12951
13047
  };
12952
13048
  };
12953
13049
  /** @description Not Found */
@@ -13004,13 +13100,21 @@ export interface operations {
13004
13100
  "application/json": components["schemas"]["ProductResponse"];
13005
13101
  };
13006
13102
  };
13007
- /** @description Bad Request */
13103
+ /** @description Bad Request. errors is keyed by the request member's own name, or by a header's name, and the keys this operation can send are the members of errors in this schema: CategoryId, If-Match. Each holds sentences for a person. A body the server could not read is answered 400 with no errors at all. */
13008
13104
  400: {
13009
13105
  headers: {
13010
13106
  [name: string]: unknown;
13011
13107
  };
13012
13108
  content: {
13013
- "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
13109
+ "application/problem+json": {
13110
+ type?: null | string;
13111
+ title?: null | string;
13112
+ /** Format: int32 */
13113
+ status?: null | number;
13114
+ detail?: null | string;
13115
+ instance?: null | string;
13116
+ errors?: components["schemas"]["ReclassifyProductValidationErrors"];
13117
+ };
13014
13118
  };
13015
13119
  };
13016
13120
  /** @description Not Found */
@@ -13063,6 +13167,23 @@ export interface operations {
13063
13167
  "application/json": components["schemas"]["ProductResponse"];
13064
13168
  };
13065
13169
  };
13170
+ /** @description Bad Request. errors is keyed by the request member's own name, or by a header's name, and the keys this operation can send are the members of errors in this schema: If-Match. Each holds sentences for a person. A body the server could not read is answered 400 with no errors at all. */
13171
+ 400: {
13172
+ headers: {
13173
+ [name: string]: unknown;
13174
+ };
13175
+ content: {
13176
+ "application/problem+json": {
13177
+ type?: null | string;
13178
+ title?: null | string;
13179
+ /** Format: int32 */
13180
+ status?: null | number;
13181
+ detail?: null | string;
13182
+ instance?: null | string;
13183
+ errors?: components["schemas"]["ProductLifecycleValidationErrors"];
13184
+ };
13185
+ };
13186
+ };
13066
13187
  /** @description Not Found */
13067
13188
  404: {
13068
13189
  headers: {
@@ -13113,6 +13234,23 @@ export interface operations {
13113
13234
  "application/json": components["schemas"]["ProductResponse"];
13114
13235
  };
13115
13236
  };
13237
+ /** @description Bad Request. errors is keyed by the request member's own name, or by a header's name, and the keys this operation can send are the members of errors in this schema: If-Match. Each holds sentences for a person. A body the server could not read is answered 400 with no errors at all. */
13238
+ 400: {
13239
+ headers: {
13240
+ [name: string]: unknown;
13241
+ };
13242
+ content: {
13243
+ "application/problem+json": {
13244
+ type?: null | string;
13245
+ title?: null | string;
13246
+ /** Format: int32 */
13247
+ status?: null | number;
13248
+ detail?: null | string;
13249
+ instance?: null | string;
13250
+ errors?: components["schemas"]["ProductLifecycleValidationErrors"];
13251
+ };
13252
+ };
13253
+ };
13116
13254
  /** @description Not Found */
13117
13255
  404: {
13118
13256
  headers: {
@@ -13164,13 +13302,21 @@ export interface operations {
13164
13302
  "application/json": components["schemas"]["ProductResponse"];
13165
13303
  };
13166
13304
  };
13167
- /** @description Bad Request */
13305
+ /** @description Bad Request. errors is keyed by the request member's own name, or by a header's name, and the keys this operation can send are the members of errors in this schema: InsurerId. Each holds sentences for a person. A body the server could not read is answered 400 with no errors at all. */
13168
13306
  400: {
13169
13307
  headers: {
13170
13308
  [name: string]: unknown;
13171
13309
  };
13172
13310
  content: {
13173
- "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
13311
+ "application/problem+json": {
13312
+ type?: null | string;
13313
+ title?: null | string;
13314
+ /** Format: int32 */
13315
+ status?: null | number;
13316
+ detail?: null | string;
13317
+ instance?: null | string;
13318
+ errors?: components["schemas"]["AttachProductInsurerValidationErrors"];
13319
+ };
13174
13320
  };
13175
13321
  };
13176
13322
  /** @description Not Found */
@@ -25462,6 +25608,68 @@ export interface operations {
25462
25608
  };
25463
25609
  };
25464
25610
  };
25611
+ ReadAcceptanceApprovalSettings: {
25612
+ parameters: {
25613
+ query?: never;
25614
+ header?: never;
25615
+ path?: never;
25616
+ cookie?: never;
25617
+ };
25618
+ requestBody?: never;
25619
+ responses: {
25620
+ /** @description OK */
25621
+ 200: {
25622
+ headers: {
25623
+ [name: string]: unknown;
25624
+ };
25625
+ content: {
25626
+ "application/json": components["schemas"]["AcceptanceApprovalSettingsResponse"];
25627
+ };
25628
+ };
25629
+ };
25630
+ };
25631
+ SetAcceptanceApprovalSettings: {
25632
+ parameters: {
25633
+ query?: never;
25634
+ header?: never;
25635
+ path?: never;
25636
+ cookie?: never;
25637
+ };
25638
+ requestBody: {
25639
+ content: {
25640
+ "application/json": components["schemas"]["SetAcceptanceApprovalSettingsRequest"];
25641
+ };
25642
+ };
25643
+ responses: {
25644
+ /** @description OK */
25645
+ 200: {
25646
+ headers: {
25647
+ [name: string]: unknown;
25648
+ };
25649
+ content: {
25650
+ "application/json": components["schemas"]["AcceptanceApprovalSettingsResponse"];
25651
+ };
25652
+ };
25653
+ /** @description Bad Request */
25654
+ 400: {
25655
+ headers: {
25656
+ [name: string]: unknown;
25657
+ };
25658
+ content: {
25659
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
25660
+ };
25661
+ };
25662
+ /** @description Conflict. A type of urn:brokerplatform:problem:concurrency-conflict means someone else changed the record first and nothing was written: read it again and decide again. Any other type is a conflict this operation decided itself, and retrying it unchanged will not help. */
25663
+ 409: {
25664
+ headers: {
25665
+ [name: string]: unknown;
25666
+ };
25667
+ content: {
25668
+ "application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
25669
+ };
25670
+ };
25671
+ };
25672
+ };
25465
25673
  SetAcceptanceApprovalLimit: {
25466
25674
  parameters: {
25467
25675
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insurance-broker/api-client",
3
- "version": "5.28.0",
3
+ "version": "5.30.0",
4
4
  "description": "Generated TypeScript client for the Insurance Broker Platform API. Do not edit by hand: regenerate with scripts/update-api-contract.",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,