@insurance-broker/api-client 1.1.0 → 1.3.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 +564 -0
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -562,6 +562,108 @@ export interface paths {
562
562
  patch?: never;
563
563
  trace?: never;
564
564
  };
565
+ "/api/v1/form-submissions/{id}/attachments/{evidenceKey}": {
566
+ parameters: {
567
+ query?: never;
568
+ header?: never;
569
+ path?: never;
570
+ cookie?: never;
571
+ };
572
+ get?: never;
573
+ put?: never;
574
+ /** Attaches a file to one of the evidence requirements the form asks for. */
575
+ post: operations["UploadSubmissionAttachment"];
576
+ delete?: never;
577
+ options?: never;
578
+ head?: never;
579
+ patch?: never;
580
+ trace?: never;
581
+ };
582
+ "/api/v1/form-submissions/{id}/attachments": {
583
+ parameters: {
584
+ query?: never;
585
+ header?: never;
586
+ path?: never;
587
+ cookie?: never;
588
+ };
589
+ /** The files attached to this submission, oldest first. */
590
+ get: operations["ListSubmissionAttachments"];
591
+ put?: never;
592
+ post?: never;
593
+ delete?: never;
594
+ options?: never;
595
+ head?: never;
596
+ patch?: never;
597
+ trace?: never;
598
+ };
599
+ "/api/v1/form-submissions/{id}/attachments/{attachmentId}": {
600
+ parameters: {
601
+ query?: never;
602
+ header?: never;
603
+ path?: never;
604
+ cookie?: never;
605
+ };
606
+ get?: never;
607
+ put?: never;
608
+ post?: never;
609
+ /** Takes a file off a submission that has not been made yet. */
610
+ delete: operations["RemoveSubmissionAttachment"];
611
+ options?: never;
612
+ head?: never;
613
+ patch?: never;
614
+ trace?: never;
615
+ };
616
+ "/api/v1/customer/form-submissions/{id}/attachments/{evidenceKey}": {
617
+ parameters: {
618
+ query?: never;
619
+ header?: never;
620
+ path?: never;
621
+ cookie?: never;
622
+ };
623
+ get?: never;
624
+ put?: never;
625
+ /** Attaches a file to one of the evidence requirements the form asks for. */
626
+ post: operations["UploadCustomerSubmissionAttachment"];
627
+ delete?: never;
628
+ options?: never;
629
+ head?: never;
630
+ patch?: never;
631
+ trace?: never;
632
+ };
633
+ "/api/v1/customer/form-submissions/{id}/attachments": {
634
+ parameters: {
635
+ query?: never;
636
+ header?: never;
637
+ path?: never;
638
+ cookie?: never;
639
+ };
640
+ /** The files attached to this submission, oldest first. */
641
+ get: operations["ListCustomerSubmissionAttachments"];
642
+ put?: never;
643
+ post?: never;
644
+ delete?: never;
645
+ options?: never;
646
+ head?: never;
647
+ patch?: never;
648
+ trace?: never;
649
+ };
650
+ "/api/v1/customer/form-submissions/{id}/attachments/{attachmentId}": {
651
+ parameters: {
652
+ query?: never;
653
+ header?: never;
654
+ path?: never;
655
+ cookie?: never;
656
+ };
657
+ get?: never;
658
+ put?: never;
659
+ post?: never;
660
+ /** Takes a file off a submission that has not been made yet. */
661
+ delete: operations["RemoveCustomerSubmissionAttachment"];
662
+ options?: never;
663
+ head?: never;
664
+ patch?: never;
665
+ trace?: never;
666
+ };
565
667
  "/api/v1/customer/products": {
566
668
  parameters: {
567
669
  query?: never;
@@ -1233,6 +1335,41 @@ export interface paths {
1233
1335
  patch?: never;
1234
1336
  trace?: never;
1235
1337
  };
1338
+ "/api/v1/insurer-requests/{id}/outstanding-items": {
1339
+ parameters: {
1340
+ query?: never;
1341
+ header?: never;
1342
+ path?: never;
1343
+ cookie?: never;
1344
+ };
1345
+ /** What one insurer request is or was waiting on, newest first, one page at a time. */
1346
+ get: operations["ListInsurerRequestOutstandingItems"];
1347
+ put?: never;
1348
+ /** Records that an insurer request is waiting on something. */
1349
+ post: operations["RaiseInsurerRequestOutstandingItem"];
1350
+ delete?: never;
1351
+ options?: never;
1352
+ head?: never;
1353
+ patch?: never;
1354
+ trace?: never;
1355
+ };
1356
+ "/api/v1/insurer-requests/{id}/outstanding-items/{itemId}/resolution": {
1357
+ parameters: {
1358
+ query?: never;
1359
+ header?: never;
1360
+ path?: never;
1361
+ cookie?: never;
1362
+ };
1363
+ get?: never;
1364
+ put?: never;
1365
+ /** Records that what an insurer request was waiting on has arrived. */
1366
+ post: operations["ResolveInsurerRequestOutstandingItem"];
1367
+ delete?: never;
1368
+ options?: never;
1369
+ head?: never;
1370
+ patch?: never;
1371
+ trace?: never;
1372
+ };
1236
1373
  "/api/v1/comparison-schemas": {
1237
1374
  parameters: {
1238
1375
  query?: never;
@@ -1974,6 +2111,8 @@ export interface components {
1974
2111
  [key: string]: string[];
1975
2112
  };
1976
2113
  };
2114
+ /** Format: binary */
2115
+ IFormFile: string;
1977
2116
  ImportedQuoteOptionRow: {
1978
2117
  /** Format: double */
1979
2118
  premiumAmount: null | number | string;
@@ -2035,6 +2174,20 @@ export interface components {
2035
2174
  /** Format: date-time */
2036
2175
  recordedAtUtc: string;
2037
2176
  };
2177
+ InsurerRequestOutstandingItemResponse: {
2178
+ /** Format: uuid */
2179
+ id: string;
2180
+ /** Format: uuid */
2181
+ insurerRequestId: string;
2182
+ awaitedFrom: string;
2183
+ description: string;
2184
+ raisedBySubjectId: string;
2185
+ /** Format: date-time */
2186
+ raisedAtUtc: string;
2187
+ resolvedBySubjectId: null | string;
2188
+ /** Format: date-time */
2189
+ resolvedAtUtc: null | string;
2190
+ };
2038
2191
  InsurerResponse: {
2039
2192
  /** Format: uuid */
2040
2193
  id: string;
@@ -2278,6 +2431,10 @@ export interface components {
2278
2431
  items: components["schemas"]["InsurerRequestFollowUpResponse"][];
2279
2432
  nextCursor: null | string;
2280
2433
  };
2434
+ QuotationPageOfInsurerRequestOutstandingItemResponse: {
2435
+ items: components["schemas"]["InsurerRequestOutstandingItemResponse"][];
2436
+ nextCursor: null | string;
2437
+ };
2281
2438
  QuotationPageOfPresentationDecisionResponse: {
2282
2439
  items: components["schemas"]["PresentationDecisionResponse"][];
2283
2440
  nextCursor: null | string;
@@ -2385,6 +2542,10 @@ export interface components {
2385
2542
  /** Format: date-time */
2386
2543
  declinedAtUtc: null | string;
2387
2544
  };
2545
+ RaiseOutstandingItemRequest: {
2546
+ awaitedFrom: null | string;
2547
+ description: null | string;
2548
+ };
2388
2549
  RaiseQuoteRequestRequest: {
2389
2550
  /** Format: uuid */
2390
2551
  formSubmissionId: null | string;
@@ -2479,6 +2640,22 @@ export interface components {
2479
2640
  quoteRequestId: null | string;
2480
2641
  options: null | components["schemas"]["PresentedOptionRequest"][];
2481
2642
  };
2643
+ SubmissionAttachmentResponse: {
2644
+ /** Format: uuid */
2645
+ id: string;
2646
+ evidenceKey: string;
2647
+ fileName: string;
2648
+ contentType: string;
2649
+ /** Format: int64 */
2650
+ sizeBytes: number | string;
2651
+ contentSha256: string;
2652
+ /** Format: date-time */
2653
+ uploadedAtUtc: string;
2654
+ uploadedBySubjectId: string;
2655
+ };
2656
+ SubmissionAttachmentUpload: {
2657
+ file: components["schemas"]["IFormFile"];
2658
+ };
2482
2659
  SubmitFormSubmissionRequest: {
2483
2660
  idempotencyKey: null | string;
2484
2661
  };
@@ -4319,6 +4496,260 @@ export interface operations {
4319
4496
  };
4320
4497
  };
4321
4498
  };
4499
+ UploadSubmissionAttachment: {
4500
+ parameters: {
4501
+ query?: never;
4502
+ header?: never;
4503
+ path: {
4504
+ id: string;
4505
+ evidenceKey: string;
4506
+ };
4507
+ cookie?: never;
4508
+ };
4509
+ requestBody: {
4510
+ content: {
4511
+ "multipart/form-data": components["schemas"]["SubmissionAttachmentUpload"];
4512
+ };
4513
+ };
4514
+ responses: {
4515
+ /** @description Created */
4516
+ 201: {
4517
+ headers: {
4518
+ [name: string]: unknown;
4519
+ };
4520
+ content: {
4521
+ "application/json": components["schemas"]["SubmissionAttachmentResponse"];
4522
+ };
4523
+ };
4524
+ /** @description Bad Request */
4525
+ 400: {
4526
+ headers: {
4527
+ [name: string]: unknown;
4528
+ };
4529
+ content: {
4530
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
4531
+ };
4532
+ };
4533
+ /** @description Not Found */
4534
+ 404: {
4535
+ headers: {
4536
+ [name: string]: unknown;
4537
+ };
4538
+ content?: never;
4539
+ };
4540
+ /** @description Conflict */
4541
+ 409: {
4542
+ headers: {
4543
+ [name: string]: unknown;
4544
+ };
4545
+ content: {
4546
+ "application/problem+json": components["schemas"]["ProblemDetails"];
4547
+ };
4548
+ };
4549
+ /** @description Payload Too Large */
4550
+ 413: {
4551
+ headers: {
4552
+ [name: string]: unknown;
4553
+ };
4554
+ content: {
4555
+ "application/problem+json": components["schemas"]["ProblemDetails"];
4556
+ };
4557
+ };
4558
+ };
4559
+ };
4560
+ ListSubmissionAttachments: {
4561
+ parameters: {
4562
+ query?: never;
4563
+ header?: never;
4564
+ path: {
4565
+ id: string;
4566
+ };
4567
+ cookie?: never;
4568
+ };
4569
+ requestBody?: never;
4570
+ responses: {
4571
+ /** @description OK */
4572
+ 200: {
4573
+ headers: {
4574
+ [name: string]: unknown;
4575
+ };
4576
+ content: {
4577
+ "application/json": components["schemas"]["SubmissionAttachmentResponse"][];
4578
+ };
4579
+ };
4580
+ /** @description Not Found */
4581
+ 404: {
4582
+ headers: {
4583
+ [name: string]: unknown;
4584
+ };
4585
+ content?: never;
4586
+ };
4587
+ };
4588
+ };
4589
+ RemoveSubmissionAttachment: {
4590
+ parameters: {
4591
+ query?: never;
4592
+ header?: never;
4593
+ path: {
4594
+ id: string;
4595
+ attachmentId: string;
4596
+ };
4597
+ cookie?: never;
4598
+ };
4599
+ requestBody?: never;
4600
+ responses: {
4601
+ /** @description No Content */
4602
+ 204: {
4603
+ headers: {
4604
+ [name: string]: unknown;
4605
+ };
4606
+ content?: never;
4607
+ };
4608
+ /** @description Not Found */
4609
+ 404: {
4610
+ headers: {
4611
+ [name: string]: unknown;
4612
+ };
4613
+ content?: never;
4614
+ };
4615
+ /** @description Conflict */
4616
+ 409: {
4617
+ headers: {
4618
+ [name: string]: unknown;
4619
+ };
4620
+ content: {
4621
+ "application/problem+json": components["schemas"]["ProblemDetails"];
4622
+ };
4623
+ };
4624
+ };
4625
+ };
4626
+ UploadCustomerSubmissionAttachment: {
4627
+ parameters: {
4628
+ query?: never;
4629
+ header?: never;
4630
+ path: {
4631
+ id: string;
4632
+ evidenceKey: string;
4633
+ };
4634
+ cookie?: never;
4635
+ };
4636
+ requestBody: {
4637
+ content: {
4638
+ "multipart/form-data": components["schemas"]["SubmissionAttachmentUpload"];
4639
+ };
4640
+ };
4641
+ responses: {
4642
+ /** @description Created */
4643
+ 201: {
4644
+ headers: {
4645
+ [name: string]: unknown;
4646
+ };
4647
+ content: {
4648
+ "application/json": components["schemas"]["SubmissionAttachmentResponse"];
4649
+ };
4650
+ };
4651
+ /** @description Bad Request */
4652
+ 400: {
4653
+ headers: {
4654
+ [name: string]: unknown;
4655
+ };
4656
+ content: {
4657
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
4658
+ };
4659
+ };
4660
+ /** @description Not Found */
4661
+ 404: {
4662
+ headers: {
4663
+ [name: string]: unknown;
4664
+ };
4665
+ content?: never;
4666
+ };
4667
+ /** @description Conflict */
4668
+ 409: {
4669
+ headers: {
4670
+ [name: string]: unknown;
4671
+ };
4672
+ content: {
4673
+ "application/problem+json": components["schemas"]["ProblemDetails"];
4674
+ };
4675
+ };
4676
+ /** @description Payload Too Large */
4677
+ 413: {
4678
+ headers: {
4679
+ [name: string]: unknown;
4680
+ };
4681
+ content: {
4682
+ "application/problem+json": components["schemas"]["ProblemDetails"];
4683
+ };
4684
+ };
4685
+ };
4686
+ };
4687
+ ListCustomerSubmissionAttachments: {
4688
+ parameters: {
4689
+ query?: never;
4690
+ header?: never;
4691
+ path: {
4692
+ id: string;
4693
+ };
4694
+ cookie?: never;
4695
+ };
4696
+ requestBody?: never;
4697
+ responses: {
4698
+ /** @description OK */
4699
+ 200: {
4700
+ headers: {
4701
+ [name: string]: unknown;
4702
+ };
4703
+ content: {
4704
+ "application/json": components["schemas"]["SubmissionAttachmentResponse"][];
4705
+ };
4706
+ };
4707
+ /** @description Not Found */
4708
+ 404: {
4709
+ headers: {
4710
+ [name: string]: unknown;
4711
+ };
4712
+ content?: never;
4713
+ };
4714
+ };
4715
+ };
4716
+ RemoveCustomerSubmissionAttachment: {
4717
+ parameters: {
4718
+ query?: never;
4719
+ header?: never;
4720
+ path: {
4721
+ id: string;
4722
+ attachmentId: string;
4723
+ };
4724
+ cookie?: never;
4725
+ };
4726
+ requestBody?: never;
4727
+ responses: {
4728
+ /** @description No Content */
4729
+ 204: {
4730
+ headers: {
4731
+ [name: string]: unknown;
4732
+ };
4733
+ content?: never;
4734
+ };
4735
+ /** @description Not Found */
4736
+ 404: {
4737
+ headers: {
4738
+ [name: string]: unknown;
4739
+ };
4740
+ content?: never;
4741
+ };
4742
+ /** @description Conflict */
4743
+ 409: {
4744
+ headers: {
4745
+ [name: string]: unknown;
4746
+ };
4747
+ content: {
4748
+ "application/problem+json": components["schemas"]["ProblemDetails"];
4749
+ };
4750
+ };
4751
+ };
4752
+ };
4322
4753
  SearchOfferedProducts: {
4323
4754
  parameters: {
4324
4755
  query?: {
@@ -5786,6 +6217,7 @@ export interface operations {
5786
6217
  ListInsurerRequests: {
5787
6218
  parameters: {
5788
6219
  query?: {
6220
+ outstandingFrom?: string;
5789
6221
  cursor?: string;
5790
6222
  limit?: number | string;
5791
6223
  };
@@ -6110,6 +6542,138 @@ export interface operations {
6110
6542
  };
6111
6543
  };
6112
6544
  };
6545
+ ListInsurerRequestOutstandingItems: {
6546
+ parameters: {
6547
+ query?: {
6548
+ outstanding?: boolean;
6549
+ cursor?: string;
6550
+ limit?: number | string;
6551
+ };
6552
+ header?: never;
6553
+ path: {
6554
+ id: string;
6555
+ };
6556
+ cookie?: never;
6557
+ };
6558
+ requestBody?: never;
6559
+ responses: {
6560
+ /** @description OK */
6561
+ 200: {
6562
+ headers: {
6563
+ [name: string]: unknown;
6564
+ };
6565
+ content: {
6566
+ "application/json": components["schemas"]["QuotationPageOfInsurerRequestOutstandingItemResponse"];
6567
+ };
6568
+ };
6569
+ /** @description Bad Request */
6570
+ 400: {
6571
+ headers: {
6572
+ [name: string]: unknown;
6573
+ };
6574
+ content: {
6575
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
6576
+ };
6577
+ };
6578
+ /** @description Not Found */
6579
+ 404: {
6580
+ headers: {
6581
+ [name: string]: unknown;
6582
+ };
6583
+ content?: never;
6584
+ };
6585
+ };
6586
+ };
6587
+ RaiseInsurerRequestOutstandingItem: {
6588
+ parameters: {
6589
+ query?: never;
6590
+ header?: never;
6591
+ path: {
6592
+ id: string;
6593
+ };
6594
+ cookie?: never;
6595
+ };
6596
+ requestBody: {
6597
+ content: {
6598
+ "application/json": components["schemas"]["RaiseOutstandingItemRequest"];
6599
+ };
6600
+ };
6601
+ responses: {
6602
+ /** @description Created */
6603
+ 201: {
6604
+ headers: {
6605
+ [name: string]: unknown;
6606
+ };
6607
+ content: {
6608
+ "application/json": components["schemas"]["InsurerRequestOutstandingItemResponse"];
6609
+ };
6610
+ };
6611
+ /** @description Bad Request */
6612
+ 400: {
6613
+ headers: {
6614
+ [name: string]: unknown;
6615
+ };
6616
+ content: {
6617
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
6618
+ };
6619
+ };
6620
+ /** @description Not Found */
6621
+ 404: {
6622
+ headers: {
6623
+ [name: string]: unknown;
6624
+ };
6625
+ content?: never;
6626
+ };
6627
+ /** @description Conflict */
6628
+ 409: {
6629
+ headers: {
6630
+ [name: string]: unknown;
6631
+ };
6632
+ content: {
6633
+ "application/problem+json": components["schemas"]["ProblemDetails"];
6634
+ };
6635
+ };
6636
+ };
6637
+ };
6638
+ ResolveInsurerRequestOutstandingItem: {
6639
+ parameters: {
6640
+ query?: never;
6641
+ header?: never;
6642
+ path: {
6643
+ id: string;
6644
+ itemId: string;
6645
+ };
6646
+ cookie?: never;
6647
+ };
6648
+ requestBody?: never;
6649
+ responses: {
6650
+ /** @description OK */
6651
+ 200: {
6652
+ headers: {
6653
+ [name: string]: unknown;
6654
+ };
6655
+ content: {
6656
+ "application/json": components["schemas"]["InsurerRequestOutstandingItemResponse"];
6657
+ };
6658
+ };
6659
+ /** @description Not Found */
6660
+ 404: {
6661
+ headers: {
6662
+ [name: string]: unknown;
6663
+ };
6664
+ content?: never;
6665
+ };
6666
+ /** @description Conflict */
6667
+ 409: {
6668
+ headers: {
6669
+ [name: string]: unknown;
6670
+ };
6671
+ content: {
6672
+ "application/problem+json": components["schemas"]["ProblemDetails"];
6673
+ };
6674
+ };
6675
+ };
6676
+ };
6113
6677
  ListComparisonSchemaVersions: {
6114
6678
  parameters: {
6115
6679
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insurance-broker/api-client",
3
- "version": "1.1.0",
3
+ "version": "1.3.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,