@insurance-broker/api-client 5.49.0 → 5.50.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.
- package/dist/schema.d.ts +413 -0
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -2990,6 +2990,96 @@ export interface paths {
|
|
|
2990
2990
|
patch?: never;
|
|
2991
2991
|
trace?: never;
|
|
2992
2992
|
};
|
|
2993
|
+
"/api/v1/customers/{id}/notes": {
|
|
2994
|
+
parameters: {
|
|
2995
|
+
query?: never;
|
|
2996
|
+
header?: never;
|
|
2997
|
+
path?: never;
|
|
2998
|
+
cookie?: never;
|
|
2999
|
+
};
|
|
3000
|
+
/**
|
|
3001
|
+
* Read a customer's internal notes, logged calls and emails
|
|
3002
|
+
* @description CRM-009. Newest first, each saying who wrote it and whether it has been shared with the customer. Paged by cursor (ADR-0031): pass `nextCursor` back as `cursor` until it is null. A cursor this list did not issue is a `400`.
|
|
3003
|
+
*/
|
|
3004
|
+
get: operations["ListCustomerNotes"];
|
|
3005
|
+
put?: never;
|
|
3006
|
+
/**
|
|
3007
|
+
* Write an internal note about a customer, or log a call or an email
|
|
3008
|
+
* @description CRM-009. `kind` is `Consultation`, `Call` or `Email`. The note is internal: **the customer never sees it** unless a member of staff shares it. Writing one counts as contact with the customer, so it moves their last activity forward.
|
|
3009
|
+
*
|
|
3010
|
+
* A closed customer takes no further notes, because its retention clock has already started (409).
|
|
3011
|
+
*/
|
|
3012
|
+
post: operations["WriteCustomerNote"];
|
|
3013
|
+
delete?: never;
|
|
3014
|
+
options?: never;
|
|
3015
|
+
head?: never;
|
|
3016
|
+
patch?: never;
|
|
3017
|
+
trace?: never;
|
|
3018
|
+
};
|
|
3019
|
+
"/api/v1/customers/{id}/notes/{noteId}/sharing": {
|
|
3020
|
+
parameters: {
|
|
3021
|
+
query?: never;
|
|
3022
|
+
header?: never;
|
|
3023
|
+
path?: never;
|
|
3024
|
+
cookie?: never;
|
|
3025
|
+
};
|
|
3026
|
+
get?: never;
|
|
3027
|
+
put?: never;
|
|
3028
|
+
/**
|
|
3029
|
+
* Share an internal note's words with the customer
|
|
3030
|
+
* @description CRM-009. Copies the note's words into what the customer may be shown, recording who decided to and when. **A copy, not a flag**: the note is unchanged, a share cannot be undone, and sharing the same note twice is a `409`. A closed customer's notes cannot be shared (409).
|
|
3031
|
+
*/
|
|
3032
|
+
post: operations["ShareCustomerNote"];
|
|
3033
|
+
delete?: never;
|
|
3034
|
+
options?: never;
|
|
3035
|
+
head?: never;
|
|
3036
|
+
patch?: never;
|
|
3037
|
+
trace?: never;
|
|
3038
|
+
};
|
|
3039
|
+
"/api/v1/customers/{id}/next-actions": {
|
|
3040
|
+
parameters: {
|
|
3041
|
+
query?: never;
|
|
3042
|
+
header?: never;
|
|
3043
|
+
path?: never;
|
|
3044
|
+
cookie?: never;
|
|
3045
|
+
};
|
|
3046
|
+
/**
|
|
3047
|
+
* Read a customer's next actions, open and done
|
|
3048
|
+
* @description CRM-008, CRM-009. Newest first, each with its owner, due date and whether it is done. Paged by cursor (ADR-0031): pass `nextCursor` back as `cursor` until it is null.
|
|
3049
|
+
*/
|
|
3050
|
+
get: operations["ListCustomerNextActions"];
|
|
3051
|
+
put?: never;
|
|
3052
|
+
/**
|
|
3053
|
+
* Record what a member of staff has to do next for a customer
|
|
3054
|
+
* @description CRM-009. An owner, a due date and a description. The owner must be an active member of this broker holding `crm.customer-actions.manage`. A closed customer takes no further actions (409).
|
|
3055
|
+
*/
|
|
3056
|
+
post: operations["RecordCustomerNextAction"];
|
|
3057
|
+
delete?: never;
|
|
3058
|
+
options?: never;
|
|
3059
|
+
head?: never;
|
|
3060
|
+
patch?: never;
|
|
3061
|
+
trace?: never;
|
|
3062
|
+
};
|
|
3063
|
+
"/api/v1/customers/{id}/next-actions/{actionId}/completion": {
|
|
3064
|
+
parameters: {
|
|
3065
|
+
query?: never;
|
|
3066
|
+
header?: never;
|
|
3067
|
+
path?: never;
|
|
3068
|
+
cookie?: never;
|
|
3069
|
+
};
|
|
3070
|
+
get?: never;
|
|
3071
|
+
put?: never;
|
|
3072
|
+
/**
|
|
3073
|
+
* Mark a customer's next action done
|
|
3074
|
+
* @description CRM-009. Records who did it and when. An action already done is a `409`, and so is the second of two completions racing each other.
|
|
3075
|
+
*/
|
|
3076
|
+
post: operations["CompleteCustomerNextAction"];
|
|
3077
|
+
delete?: never;
|
|
3078
|
+
options?: never;
|
|
3079
|
+
head?: never;
|
|
3080
|
+
patch?: never;
|
|
3081
|
+
trace?: never;
|
|
3082
|
+
};
|
|
2993
3083
|
"/api/v1/customer-account": {
|
|
2994
3084
|
parameters: {
|
|
2995
3085
|
query?: never;
|
|
@@ -7600,6 +7690,44 @@ export interface components {
|
|
|
7600
7690
|
/** Format: date-time */
|
|
7601
7691
|
revokedAtUtc: null | string;
|
|
7602
7692
|
};
|
|
7693
|
+
CustomerNextActionPage: {
|
|
7694
|
+
items: components["schemas"]["CustomerNextActionResponse"][];
|
|
7695
|
+
nextCursor: null | string;
|
|
7696
|
+
};
|
|
7697
|
+
CustomerNextActionResponse: {
|
|
7698
|
+
/** Format: uuid */
|
|
7699
|
+
id: string;
|
|
7700
|
+
/** Format: uuid */
|
|
7701
|
+
customerId: string;
|
|
7702
|
+
description: string;
|
|
7703
|
+
ownerSubjectId: string;
|
|
7704
|
+
/** Format: date */
|
|
7705
|
+
dueOn: string;
|
|
7706
|
+
done: boolean;
|
|
7707
|
+
/** Format: date-time */
|
|
7708
|
+
createdAtUtc: string;
|
|
7709
|
+
createdBySubjectId: string;
|
|
7710
|
+
/** Format: date-time */
|
|
7711
|
+
completedAtUtc: null | string;
|
|
7712
|
+
completedBySubjectId: null | string;
|
|
7713
|
+
};
|
|
7714
|
+
CustomerNotePage: {
|
|
7715
|
+
items: components["schemas"]["CustomerNoteResponse"][];
|
|
7716
|
+
nextCursor: null | string;
|
|
7717
|
+
};
|
|
7718
|
+
CustomerNoteResponse: {
|
|
7719
|
+
/** Format: uuid */
|
|
7720
|
+
id: string;
|
|
7721
|
+
/** Format: uuid */
|
|
7722
|
+
customerId: string;
|
|
7723
|
+
kind: string;
|
|
7724
|
+
body: string;
|
|
7725
|
+
/** Format: date-time */
|
|
7726
|
+
writtenAtUtc: string;
|
|
7727
|
+
writtenBySubjectId: string;
|
|
7728
|
+
/** Format: date-time */
|
|
7729
|
+
sharedAtUtc: null | string;
|
|
7730
|
+
};
|
|
7603
7731
|
CustomerNotificationPage: {
|
|
7604
7732
|
items: components["schemas"]["CustomerNotificationResponse"][];
|
|
7605
7733
|
nextCursor: null | string;
|
|
@@ -7887,6 +8015,19 @@ export interface components {
|
|
|
7887
8015
|
/** Format: date-time */
|
|
7888
8016
|
revokedAtUtc: string;
|
|
7889
8017
|
};
|
|
8018
|
+
CustomerSharedNoteResponse: {
|
|
8019
|
+
/** Format: uuid */
|
|
8020
|
+
id: string;
|
|
8021
|
+
/** Format: uuid */
|
|
8022
|
+
noteId: string;
|
|
8023
|
+
/** Format: uuid */
|
|
8024
|
+
customerId: string;
|
|
8025
|
+
kind: string;
|
|
8026
|
+
body: string;
|
|
8027
|
+
/** Format: date-time */
|
|
8028
|
+
sharedAtUtc: string;
|
|
8029
|
+
sharedBySubjectId: string;
|
|
8030
|
+
};
|
|
7890
8031
|
CustomerSubmissionAttachmentResponse: {
|
|
7891
8032
|
/** Format: uuid */
|
|
7892
8033
|
id: string;
|
|
@@ -9886,6 +10027,12 @@ export interface components {
|
|
|
9886
10027
|
/** Format: uuid */
|
|
9887
10028
|
submissionId: string;
|
|
9888
10029
|
};
|
|
10030
|
+
RecordCustomerNextActionRequest: {
|
|
10031
|
+
description: null | string;
|
|
10032
|
+
ownerSubjectId: null | string;
|
|
10033
|
+
/** Format: date */
|
|
10034
|
+
dueOn: null | string;
|
|
10035
|
+
};
|
|
9889
10036
|
RecordFollowUpRequest: {
|
|
9890
10037
|
/** Format: date */
|
|
9891
10038
|
dueOn: null | string;
|
|
@@ -10946,6 +11093,10 @@ export interface components {
|
|
|
10946
11093
|
WriteClaimNoteRequest: {
|
|
10947
11094
|
body: string;
|
|
10948
11095
|
};
|
|
11096
|
+
WriteCustomerNoteRequest: {
|
|
11097
|
+
kind: null | string;
|
|
11098
|
+
body: null | string;
|
|
11099
|
+
};
|
|
10949
11100
|
WriteOffObligationRequest: {
|
|
10950
11101
|
reason: string;
|
|
10951
11102
|
};
|
|
@@ -17544,6 +17695,268 @@ export interface operations {
|
|
|
17544
17695
|
};
|
|
17545
17696
|
};
|
|
17546
17697
|
};
|
|
17698
|
+
ListCustomerNotes: {
|
|
17699
|
+
parameters: {
|
|
17700
|
+
query?: {
|
|
17701
|
+
cursor?: string;
|
|
17702
|
+
limit?: number | string;
|
|
17703
|
+
};
|
|
17704
|
+
header?: never;
|
|
17705
|
+
path: {
|
|
17706
|
+
id: string;
|
|
17707
|
+
};
|
|
17708
|
+
cookie?: never;
|
|
17709
|
+
};
|
|
17710
|
+
requestBody?: never;
|
|
17711
|
+
responses: {
|
|
17712
|
+
/** @description OK */
|
|
17713
|
+
200: {
|
|
17714
|
+
headers: {
|
|
17715
|
+
[name: string]: unknown;
|
|
17716
|
+
};
|
|
17717
|
+
content: {
|
|
17718
|
+
"application/json": components["schemas"]["CustomerNotePage"];
|
|
17719
|
+
};
|
|
17720
|
+
};
|
|
17721
|
+
/** @description Bad Request */
|
|
17722
|
+
400: {
|
|
17723
|
+
headers: {
|
|
17724
|
+
[name: string]: unknown;
|
|
17725
|
+
};
|
|
17726
|
+
content: {
|
|
17727
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
17728
|
+
};
|
|
17729
|
+
};
|
|
17730
|
+
/** @description Not Found */
|
|
17731
|
+
404: {
|
|
17732
|
+
headers: {
|
|
17733
|
+
[name: string]: unknown;
|
|
17734
|
+
};
|
|
17735
|
+
content?: never;
|
|
17736
|
+
};
|
|
17737
|
+
};
|
|
17738
|
+
};
|
|
17739
|
+
WriteCustomerNote: {
|
|
17740
|
+
parameters: {
|
|
17741
|
+
query?: never;
|
|
17742
|
+
header?: never;
|
|
17743
|
+
path: {
|
|
17744
|
+
id: string;
|
|
17745
|
+
};
|
|
17746
|
+
cookie?: never;
|
|
17747
|
+
};
|
|
17748
|
+
requestBody: {
|
|
17749
|
+
content: {
|
|
17750
|
+
"application/json": components["schemas"]["WriteCustomerNoteRequest"];
|
|
17751
|
+
};
|
|
17752
|
+
};
|
|
17753
|
+
responses: {
|
|
17754
|
+
/** @description Created */
|
|
17755
|
+
201: {
|
|
17756
|
+
headers: {
|
|
17757
|
+
[name: string]: unknown;
|
|
17758
|
+
};
|
|
17759
|
+
content: {
|
|
17760
|
+
"application/json": components["schemas"]["CustomerNoteResponse"];
|
|
17761
|
+
};
|
|
17762
|
+
};
|
|
17763
|
+
/** @description Bad Request */
|
|
17764
|
+
400: {
|
|
17765
|
+
headers: {
|
|
17766
|
+
[name: string]: unknown;
|
|
17767
|
+
};
|
|
17768
|
+
content: {
|
|
17769
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
17770
|
+
};
|
|
17771
|
+
};
|
|
17772
|
+
/** @description Not Found */
|
|
17773
|
+
404: {
|
|
17774
|
+
headers: {
|
|
17775
|
+
[name: string]: unknown;
|
|
17776
|
+
};
|
|
17777
|
+
content?: never;
|
|
17778
|
+
};
|
|
17779
|
+
/** @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. */
|
|
17780
|
+
409: {
|
|
17781
|
+
headers: {
|
|
17782
|
+
[name: string]: unknown;
|
|
17783
|
+
};
|
|
17784
|
+
content: {
|
|
17785
|
+
"application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
|
|
17786
|
+
};
|
|
17787
|
+
};
|
|
17788
|
+
};
|
|
17789
|
+
};
|
|
17790
|
+
ShareCustomerNote: {
|
|
17791
|
+
parameters: {
|
|
17792
|
+
query?: never;
|
|
17793
|
+
header?: never;
|
|
17794
|
+
path: {
|
|
17795
|
+
id: string;
|
|
17796
|
+
noteId: string;
|
|
17797
|
+
};
|
|
17798
|
+
cookie?: never;
|
|
17799
|
+
};
|
|
17800
|
+
requestBody?: never;
|
|
17801
|
+
responses: {
|
|
17802
|
+
/** @description Created */
|
|
17803
|
+
201: {
|
|
17804
|
+
headers: {
|
|
17805
|
+
[name: string]: unknown;
|
|
17806
|
+
};
|
|
17807
|
+
content: {
|
|
17808
|
+
"application/json": components["schemas"]["CustomerSharedNoteResponse"];
|
|
17809
|
+
};
|
|
17810
|
+
};
|
|
17811
|
+
/** @description Not Found */
|
|
17812
|
+
404: {
|
|
17813
|
+
headers: {
|
|
17814
|
+
[name: string]: unknown;
|
|
17815
|
+
};
|
|
17816
|
+
content?: never;
|
|
17817
|
+
};
|
|
17818
|
+
/** @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. */
|
|
17819
|
+
409: {
|
|
17820
|
+
headers: {
|
|
17821
|
+
[name: string]: unknown;
|
|
17822
|
+
};
|
|
17823
|
+
content: {
|
|
17824
|
+
"application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
|
|
17825
|
+
};
|
|
17826
|
+
};
|
|
17827
|
+
};
|
|
17828
|
+
};
|
|
17829
|
+
ListCustomerNextActions: {
|
|
17830
|
+
parameters: {
|
|
17831
|
+
query?: {
|
|
17832
|
+
cursor?: string;
|
|
17833
|
+
limit?: number | string;
|
|
17834
|
+
};
|
|
17835
|
+
header?: never;
|
|
17836
|
+
path: {
|
|
17837
|
+
id: string;
|
|
17838
|
+
};
|
|
17839
|
+
cookie?: never;
|
|
17840
|
+
};
|
|
17841
|
+
requestBody?: never;
|
|
17842
|
+
responses: {
|
|
17843
|
+
/** @description OK */
|
|
17844
|
+
200: {
|
|
17845
|
+
headers: {
|
|
17846
|
+
[name: string]: unknown;
|
|
17847
|
+
};
|
|
17848
|
+
content: {
|
|
17849
|
+
"application/json": components["schemas"]["CustomerNextActionPage"];
|
|
17850
|
+
};
|
|
17851
|
+
};
|
|
17852
|
+
/** @description Bad Request */
|
|
17853
|
+
400: {
|
|
17854
|
+
headers: {
|
|
17855
|
+
[name: string]: unknown;
|
|
17856
|
+
};
|
|
17857
|
+
content: {
|
|
17858
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
17859
|
+
};
|
|
17860
|
+
};
|
|
17861
|
+
/** @description Not Found */
|
|
17862
|
+
404: {
|
|
17863
|
+
headers: {
|
|
17864
|
+
[name: string]: unknown;
|
|
17865
|
+
};
|
|
17866
|
+
content?: never;
|
|
17867
|
+
};
|
|
17868
|
+
};
|
|
17869
|
+
};
|
|
17870
|
+
RecordCustomerNextAction: {
|
|
17871
|
+
parameters: {
|
|
17872
|
+
query?: never;
|
|
17873
|
+
header?: never;
|
|
17874
|
+
path: {
|
|
17875
|
+
id: string;
|
|
17876
|
+
};
|
|
17877
|
+
cookie?: never;
|
|
17878
|
+
};
|
|
17879
|
+
requestBody: {
|
|
17880
|
+
content: {
|
|
17881
|
+
"application/json": components["schemas"]["RecordCustomerNextActionRequest"];
|
|
17882
|
+
};
|
|
17883
|
+
};
|
|
17884
|
+
responses: {
|
|
17885
|
+
/** @description Created */
|
|
17886
|
+
201: {
|
|
17887
|
+
headers: {
|
|
17888
|
+
[name: string]: unknown;
|
|
17889
|
+
};
|
|
17890
|
+
content: {
|
|
17891
|
+
"application/json": components["schemas"]["CustomerNextActionResponse"];
|
|
17892
|
+
};
|
|
17893
|
+
};
|
|
17894
|
+
/** @description Bad Request */
|
|
17895
|
+
400: {
|
|
17896
|
+
headers: {
|
|
17897
|
+
[name: string]: unknown;
|
|
17898
|
+
};
|
|
17899
|
+
content: {
|
|
17900
|
+
"application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
|
|
17901
|
+
};
|
|
17902
|
+
};
|
|
17903
|
+
/** @description Not Found */
|
|
17904
|
+
404: {
|
|
17905
|
+
headers: {
|
|
17906
|
+
[name: string]: unknown;
|
|
17907
|
+
};
|
|
17908
|
+
content?: never;
|
|
17909
|
+
};
|
|
17910
|
+
/** @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. */
|
|
17911
|
+
409: {
|
|
17912
|
+
headers: {
|
|
17913
|
+
[name: string]: unknown;
|
|
17914
|
+
};
|
|
17915
|
+
content: {
|
|
17916
|
+
"application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
|
|
17917
|
+
};
|
|
17918
|
+
};
|
|
17919
|
+
};
|
|
17920
|
+
};
|
|
17921
|
+
CompleteCustomerNextAction: {
|
|
17922
|
+
parameters: {
|
|
17923
|
+
query?: never;
|
|
17924
|
+
header?: never;
|
|
17925
|
+
path: {
|
|
17926
|
+
id: string;
|
|
17927
|
+
actionId: string;
|
|
17928
|
+
};
|
|
17929
|
+
cookie?: never;
|
|
17930
|
+
};
|
|
17931
|
+
requestBody?: never;
|
|
17932
|
+
responses: {
|
|
17933
|
+
/** @description OK */
|
|
17934
|
+
200: {
|
|
17935
|
+
headers: {
|
|
17936
|
+
[name: string]: unknown;
|
|
17937
|
+
};
|
|
17938
|
+
content: {
|
|
17939
|
+
"application/json": components["schemas"]["CustomerNextActionResponse"];
|
|
17940
|
+
};
|
|
17941
|
+
};
|
|
17942
|
+
/** @description Not Found */
|
|
17943
|
+
404: {
|
|
17944
|
+
headers: {
|
|
17945
|
+
[name: string]: unknown;
|
|
17946
|
+
};
|
|
17947
|
+
content?: never;
|
|
17948
|
+
};
|
|
17949
|
+
/** @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. */
|
|
17950
|
+
409: {
|
|
17951
|
+
headers: {
|
|
17952
|
+
[name: string]: unknown;
|
|
17953
|
+
};
|
|
17954
|
+
content: {
|
|
17955
|
+
"application/problem+json": components["schemas"]["ConcurrencyConflictProblem"] | components["schemas"]["ProblemDetails"];
|
|
17956
|
+
};
|
|
17957
|
+
};
|
|
17958
|
+
};
|
|
17959
|
+
};
|
|
17547
17960
|
GetOwnCustomerAccount: {
|
|
17548
17961
|
parameters: {
|
|
17549
17962
|
query?: never;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@insurance-broker/api-client",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.50.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,
|