@hectare/platform.clients.customers 1.1.1
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/index.d.ts +49 -0
- package/index.js +1 -0
- package/models/AssuranceDetail.d.ts +14 -0
- package/models/AssuranceDetail.js +1 -0
- package/models/BusinessConnectionDetail.d.ts +46 -0
- package/models/BusinessConnectionDetail.js +1 -0
- package/models/BusinessConnectionsSummary.d.ts +49 -0
- package/models/BusinessConnectionsSummary.js +1 -0
- package/models/BusinessDetail.d.ts +49 -0
- package/models/BusinessDetail.js +1 -0
- package/models/BusinessUnitSummary.d.ts +8 -0
- package/models/BusinessUnitSummary.js +1 -0
- package/models/BusinessUnitsDetail.d.ts +58 -0
- package/models/BusinessUnitsDetail.js +1 -0
- package/models/BusinessUnitsDetails.d.ts +68 -0
- package/models/BusinessUnitsDetails.js +1 -0
- package/models/BusinessUnitsSummary.d.ts +16 -0
- package/models/BusinessUnitsSummary.js +1 -0
- package/models/BuyerPreferencesSchema.d.ts +9 -0
- package/models/BuyerPreferencesSchema.js +1 -0
- package/models/ChangeOwner.d.ts +3 -0
- package/models/ChangeOwner.js +1 -0
- package/models/ChangePassword.d.ts +6 -0
- package/models/ChangePassword.js +1 -0
- package/models/CheckBusinessConnectionRequestSchema.d.ts +3 -0
- package/models/CheckBusinessConnectionRequestSchema.js +1 -0
- package/models/CheckBusinessConnectionResponseSchema.d.ts +3 -0
- package/models/CheckBusinessConnectionResponseSchema.js +1 -0
- package/models/ConfirmSignup.d.ts +4 -0
- package/models/ConfirmSignup.js +1 -0
- package/models/ContactDetail.d.ts +11 -0
- package/models/ContactDetail.js +1 -0
- package/models/CreateBusinessConnection.d.ts +14 -0
- package/models/CreateBusinessConnection.js +1 -0
- package/models/CreateBusinessUnit.d.ts +42 -0
- package/models/CreateBusinessUnit.js +1 -0
- package/models/CreateBusinessUnits.d.ts +42 -0
- package/models/CreateBusinessUnits.js +1 -0
- package/models/CreateOrganisation.d.ts +72 -0
- package/models/CreateOrganisation.js +1 -0
- package/models/CreateOrganisationResponse.d.ts +222 -0
- package/models/CreateOrganisationResponse.js +1 -0
- package/models/CreateUnvettedOrganisationSchema.d.ts +11 -0
- package/models/CreateUnvettedOrganisationSchema.js +1 -0
- package/models/CreateUser.d.ts +11 -0
- package/models/CreateUser.js +1 -0
- package/models/CustomerConfig.d.ts +6 -0
- package/models/CustomerConfig.js +1 -0
- package/models/ForgottenPassword.d.ts +3 -0
- package/models/ForgottenPassword.js +1 -0
- package/models/ForgottenPasswordConfirm.d.ts +6 -0
- package/models/ForgottenPasswordConfirm.js +1 -0
- package/models/LoginForm.d.ts +5 -0
- package/models/LoginForm.js +1 -0
- package/models/LoginSuccess.d.ts +16 -0
- package/models/LoginSuccess.js +1 -0
- package/models/LoginTokens.d.ts +6 -0
- package/models/LoginTokens.js +1 -0
- package/models/LookupUserByTelephoneSchema.d.ts +3 -0
- package/models/LookupUserByTelephoneSchema.js +1 -0
- package/models/OrganisationDetail.d.ts +146 -0
- package/models/OrganisationDetail.js +1 -0
- package/models/OrganisationExists.d.ts +150 -0
- package/models/OrganisationExists.js +1 -0
- package/models/OrganisationSummary.d.ts +83 -0
- package/models/OrganisationSummary.js +1 -0
- package/models/PatchBusinessUnit.d.ts +44 -0
- package/models/PatchBusinessUnit.js +1 -0
- package/models/PatchOrganisation.d.ts +91 -0
- package/models/PatchOrganisation.js +1 -0
- package/models/PatchOrganisationAdvancePay.d.ts +6 -0
- package/models/PatchOrganisationAdvancePay.js +1 -0
- package/models/PatchUser.d.ts +28 -0
- package/models/PatchUser.js +1 -0
- package/models/RedTractorCertificate.d.ts +20 -0
- package/models/RedTractorCertificate.js +1 -0
- package/models/RequestFullAccountSchema.d.ts +10 -0
- package/models/RequestFullAccountSchema.js +1 -0
- package/models/SendMagicLogin.d.ts +4 -0
- package/models/SendMagicLogin.js +1 -0
- package/models/SetBuyerPreferences.d.ts +6 -0
- package/models/SetBuyerPreferences.js +1 -0
- package/models/SwapCognitoUserPoolRequest.d.ts +4 -0
- package/models/SwapCognitoUserPoolRequest.js +1 -0
- package/models/SwapCognitoUserPoolResponse.d.ts +5 -0
- package/models/SwapCognitoUserPoolResponse.js +1 -0
- package/models/UserAccess.d.ts +24 -0
- package/models/UserAccess.js +1 -0
- package/models/UserBasicInfo.d.ts +71 -0
- package/models/UserBasicInfo.js +1 -0
- package/models/UserDetail.d.ts +74 -0
- package/models/UserDetail.js +1 -0
- package/models/UserProfile.d.ts +253 -0
- package/models/UserProfile.js +1 -0
- package/models/VerifyMagicLogin.d.ts +3 -0
- package/models/VerifyMagicLogin.js +1 -0
- package/models/VerifyUpdate.d.ts +4 -0
- package/models/VerifyUpdate.js +1 -0
- package/models/VerifyUserAttribute.d.ts +3 -0
- package/models/VerifyUserAttribute.js +1 -0
- package/package.json +13 -0
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
export type CreateOrganisationResponse = {
|
|
2
|
+
organisation?: {
|
|
3
|
+
id?: string;
|
|
4
|
+
location?: {
|
|
5
|
+
what3words: string | null;
|
|
6
|
+
address: {
|
|
7
|
+
name?: string | null;
|
|
8
|
+
line1: string;
|
|
9
|
+
line2?: string | null;
|
|
10
|
+
line3?: string | null;
|
|
11
|
+
city?: string | null;
|
|
12
|
+
region?: string | null;
|
|
13
|
+
regionISO?: string | null;
|
|
14
|
+
postcode: string;
|
|
15
|
+
countryName?: string | null;
|
|
16
|
+
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
17
|
+
};
|
|
18
|
+
coordinates: {
|
|
19
|
+
lat: number;
|
|
20
|
+
lon: number;
|
|
21
|
+
};
|
|
22
|
+
} | null;
|
|
23
|
+
company?: {
|
|
24
|
+
assurances?: Array<{
|
|
25
|
+
id: string | null;
|
|
26
|
+
body: 'RT' | 'SQC';
|
|
27
|
+
assured: boolean;
|
|
28
|
+
}>;
|
|
29
|
+
assurance?: {
|
|
30
|
+
id: string | null;
|
|
31
|
+
body: 'RT' | 'SQC';
|
|
32
|
+
};
|
|
33
|
+
id?: string | null;
|
|
34
|
+
bio?: string | null;
|
|
35
|
+
website?: string | null;
|
|
36
|
+
holdingNumber?: string | null;
|
|
37
|
+
number?: string | null;
|
|
38
|
+
salesTaxId?: string | null;
|
|
39
|
+
logo?: {
|
|
40
|
+
id: string;
|
|
41
|
+
url: string | null;
|
|
42
|
+
} | null;
|
|
43
|
+
};
|
|
44
|
+
companyNumber?: string | null;
|
|
45
|
+
countryISO?: 'GB' | 'US' | 'ZA' | 'FR';
|
|
46
|
+
name?: string;
|
|
47
|
+
ownerContact?: {
|
|
48
|
+
id?: string;
|
|
49
|
+
email?: string;
|
|
50
|
+
phone?: {
|
|
51
|
+
callingCode: string;
|
|
52
|
+
number: string;
|
|
53
|
+
};
|
|
54
|
+
familyName?: string;
|
|
55
|
+
givenName?: string;
|
|
56
|
+
authPlatformId?: string;
|
|
57
|
+
};
|
|
58
|
+
sqc?: {
|
|
59
|
+
number: string;
|
|
60
|
+
isAssured: boolean;
|
|
61
|
+
} | null;
|
|
62
|
+
assuranceScheme?: 'RT' | 'SQC';
|
|
63
|
+
settlementContacts?: Array<{
|
|
64
|
+
name: string;
|
|
65
|
+
email: string;
|
|
66
|
+
}>;
|
|
67
|
+
status?: 'active' | 'pending' | 'suspended';
|
|
68
|
+
statusMessage?: string;
|
|
69
|
+
businessUnits?: Array<{
|
|
70
|
+
id: string;
|
|
71
|
+
name: string;
|
|
72
|
+
type: string;
|
|
73
|
+
business: string;
|
|
74
|
+
region: string;
|
|
75
|
+
tags: Array<string>;
|
|
76
|
+
}>;
|
|
77
|
+
businessConnections?: Array<{
|
|
78
|
+
organisationId?: string;
|
|
79
|
+
organisationName?: string;
|
|
80
|
+
relationship?: Array<string>;
|
|
81
|
+
contacts?: Array<{
|
|
82
|
+
givenName?: string;
|
|
83
|
+
familyName?: string;
|
|
84
|
+
phone?: {
|
|
85
|
+
callingCode: string;
|
|
86
|
+
number: string;
|
|
87
|
+
};
|
|
88
|
+
email?: string;
|
|
89
|
+
id?: string;
|
|
90
|
+
authPlatformId?: string;
|
|
91
|
+
}>;
|
|
92
|
+
location?: {
|
|
93
|
+
what3words: string | null;
|
|
94
|
+
address: {
|
|
95
|
+
name?: string | null;
|
|
96
|
+
line1: string;
|
|
97
|
+
line2?: string | null;
|
|
98
|
+
line3?: string | null;
|
|
99
|
+
city?: string | null;
|
|
100
|
+
region?: string | null;
|
|
101
|
+
regionISO?: string | null;
|
|
102
|
+
postcode: string;
|
|
103
|
+
countryName?: string | null;
|
|
104
|
+
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
105
|
+
};
|
|
106
|
+
coordinates: {
|
|
107
|
+
lat: number;
|
|
108
|
+
lon: number;
|
|
109
|
+
};
|
|
110
|
+
} | null;
|
|
111
|
+
countryISO?: 'GB' | 'US' | 'ZA' | 'FR';
|
|
112
|
+
ownerContact?: {
|
|
113
|
+
id?: string;
|
|
114
|
+
email?: string;
|
|
115
|
+
familyName?: string;
|
|
116
|
+
givenName?: string;
|
|
117
|
+
phone?: {
|
|
118
|
+
callingCode: string;
|
|
119
|
+
number: string;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
}>;
|
|
123
|
+
billing?: {
|
|
124
|
+
amount: number;
|
|
125
|
+
currency: string;
|
|
126
|
+
period: 'month' | 'quarter' | 'year';
|
|
127
|
+
} | null;
|
|
128
|
+
modules?: Array<{
|
|
129
|
+
id: string;
|
|
130
|
+
name?: string | null;
|
|
131
|
+
price: {
|
|
132
|
+
amount: number;
|
|
133
|
+
currency: string;
|
|
134
|
+
} | null;
|
|
135
|
+
}>;
|
|
136
|
+
vetted?: boolean;
|
|
137
|
+
isMerchant?: boolean;
|
|
138
|
+
createdAtUTC?: string;
|
|
139
|
+
advancePay?: {
|
|
140
|
+
accountName: string;
|
|
141
|
+
sortCode: string;
|
|
142
|
+
accountNumber: string;
|
|
143
|
+
enabled: boolean;
|
|
144
|
+
eligible: boolean;
|
|
145
|
+
} | null;
|
|
146
|
+
salesforceId?: string;
|
|
147
|
+
};
|
|
148
|
+
user?: {
|
|
149
|
+
id?: string;
|
|
150
|
+
givenName?: string;
|
|
151
|
+
type?: 'internal' | 'external';
|
|
152
|
+
familyName?: string;
|
|
153
|
+
name?: string;
|
|
154
|
+
countryISO?: 'GB' | 'US' | 'ZA' | 'FR';
|
|
155
|
+
email?: string;
|
|
156
|
+
pushToken?: string;
|
|
157
|
+
external?: boolean;
|
|
158
|
+
impersonating?: boolean;
|
|
159
|
+
settings?: {
|
|
160
|
+
terms: boolean;
|
|
161
|
+
marketing?: boolean;
|
|
162
|
+
marketingPreferences: {
|
|
163
|
+
marketUpdates: boolean;
|
|
164
|
+
communications: boolean;
|
|
165
|
+
};
|
|
166
|
+
whatsApp: boolean;
|
|
167
|
+
sms: boolean;
|
|
168
|
+
onboardingProgress: Array<(number | string)> | null;
|
|
169
|
+
harvestNotificationDismissed: boolean;
|
|
170
|
+
harvestDialogDismissed: boolean;
|
|
171
|
+
listingsWelcomeRead: boolean;
|
|
172
|
+
};
|
|
173
|
+
tokens?: {
|
|
174
|
+
id?: string;
|
|
175
|
+
access?: string;
|
|
176
|
+
refresh?: string;
|
|
177
|
+
expiresIn?: number;
|
|
178
|
+
};
|
|
179
|
+
groups?: Array<string>;
|
|
180
|
+
roles?: Array<string>;
|
|
181
|
+
profiles?: Array<{
|
|
182
|
+
organisationId: string;
|
|
183
|
+
businessUnits: Array<string>;
|
|
184
|
+
roles: Array<string>;
|
|
185
|
+
}>;
|
|
186
|
+
preferences?: Array<{
|
|
187
|
+
commodity: number;
|
|
188
|
+
grades: Array<number>;
|
|
189
|
+
regions: Array<string>;
|
|
190
|
+
}>;
|
|
191
|
+
phone?: {
|
|
192
|
+
callingCode: string;
|
|
193
|
+
number: string;
|
|
194
|
+
};
|
|
195
|
+
phoneLandline?: {
|
|
196
|
+
callingCode: string;
|
|
197
|
+
number: string;
|
|
198
|
+
};
|
|
199
|
+
avatar?: {
|
|
200
|
+
name?: string;
|
|
201
|
+
id: string;
|
|
202
|
+
url?: string | null;
|
|
203
|
+
userId?: string | null;
|
|
204
|
+
userName?: string | null;
|
|
205
|
+
organisationId?: string | null;
|
|
206
|
+
createdAtUTC?: string | null;
|
|
207
|
+
} | null;
|
|
208
|
+
organisationId?: string;
|
|
209
|
+
organisationName?: string;
|
|
210
|
+
authPlatformId?: string;
|
|
211
|
+
status?: 'active' | 'pending' | 'inactive' | 'deleted';
|
|
212
|
+
businessUnits?: Array<{
|
|
213
|
+
id: string;
|
|
214
|
+
name: string;
|
|
215
|
+
type: string;
|
|
216
|
+
business: string;
|
|
217
|
+
region: string;
|
|
218
|
+
tags: Array<string>;
|
|
219
|
+
}>;
|
|
220
|
+
notificationsEnabled?: boolean;
|
|
221
|
+
};
|
|
222
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type CreateUnvettedOrganisationSchema = {
|
|
2
|
+
givenName: string;
|
|
3
|
+
familyName: string;
|
|
4
|
+
email: string;
|
|
5
|
+
phone: string | null;
|
|
6
|
+
businessName: string;
|
|
7
|
+
referralCode?: string;
|
|
8
|
+
holdingOrMembershipNumber?: string | null;
|
|
9
|
+
modules: Array<string>;
|
|
10
|
+
signupPurpose?: Array<number>;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type CreateUser = {
|
|
2
|
+
givenName: string;
|
|
3
|
+
familyName: string;
|
|
4
|
+
countryISO?: 'GB' | 'US' | 'ZA' | 'FR';
|
|
5
|
+
organisationId?: string;
|
|
6
|
+
email: string;
|
|
7
|
+
phone: string | null;
|
|
8
|
+
pushToken?: string | null;
|
|
9
|
+
roles?: Array<string> | null;
|
|
10
|
+
businessUnits?: Array<string> | null;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type LoginSuccess = {
|
|
2
|
+
tokens?: {
|
|
3
|
+
id?: string;
|
|
4
|
+
access?: string;
|
|
5
|
+
refresh?: string;
|
|
6
|
+
expiresIn?: number;
|
|
7
|
+
};
|
|
8
|
+
challenge?: {
|
|
9
|
+
session: string;
|
|
10
|
+
challengeParameters: {
|
|
11
|
+
missingAttributes?: Array<string>;
|
|
12
|
+
authPlatformId: string;
|
|
13
|
+
};
|
|
14
|
+
challengeName: string;
|
|
15
|
+
} | null;
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
export type OrganisationDetail = {
|
|
2
|
+
id?: string;
|
|
3
|
+
location?: {
|
|
4
|
+
what3words: string | null;
|
|
5
|
+
address: {
|
|
6
|
+
name?: string | null;
|
|
7
|
+
line1: string;
|
|
8
|
+
line2?: string | null;
|
|
9
|
+
line3?: string | null;
|
|
10
|
+
city?: string | null;
|
|
11
|
+
region?: string | null;
|
|
12
|
+
regionISO?: string | null;
|
|
13
|
+
postcode: string;
|
|
14
|
+
countryName?: string | null;
|
|
15
|
+
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
16
|
+
};
|
|
17
|
+
coordinates: {
|
|
18
|
+
lat: number;
|
|
19
|
+
lon: number;
|
|
20
|
+
};
|
|
21
|
+
} | null;
|
|
22
|
+
company?: {
|
|
23
|
+
assurances?: Array<{
|
|
24
|
+
id: string | null;
|
|
25
|
+
body: 'RT' | 'SQC';
|
|
26
|
+
assured: boolean;
|
|
27
|
+
}>;
|
|
28
|
+
assurance?: {
|
|
29
|
+
id: string | null;
|
|
30
|
+
body: 'RT' | 'SQC';
|
|
31
|
+
};
|
|
32
|
+
id?: string | null;
|
|
33
|
+
bio?: string | null;
|
|
34
|
+
website?: string | null;
|
|
35
|
+
holdingNumber?: string | null;
|
|
36
|
+
number?: string | null;
|
|
37
|
+
salesTaxId?: string | null;
|
|
38
|
+
logo?: {
|
|
39
|
+
id: string;
|
|
40
|
+
url: string | null;
|
|
41
|
+
} | null;
|
|
42
|
+
};
|
|
43
|
+
companyNumber?: string | null;
|
|
44
|
+
countryISO?: 'GB' | 'US' | 'ZA' | 'FR';
|
|
45
|
+
name?: string;
|
|
46
|
+
ownerContact?: {
|
|
47
|
+
id?: string;
|
|
48
|
+
email?: string;
|
|
49
|
+
phone?: {
|
|
50
|
+
callingCode: string;
|
|
51
|
+
number: string;
|
|
52
|
+
};
|
|
53
|
+
familyName?: string;
|
|
54
|
+
givenName?: string;
|
|
55
|
+
authPlatformId?: string;
|
|
56
|
+
};
|
|
57
|
+
sqc?: {
|
|
58
|
+
number: string;
|
|
59
|
+
isAssured: boolean;
|
|
60
|
+
} | null;
|
|
61
|
+
assuranceScheme?: 'RT' | 'SQC';
|
|
62
|
+
settlementContacts?: Array<{
|
|
63
|
+
name: string;
|
|
64
|
+
email: string;
|
|
65
|
+
}>;
|
|
66
|
+
status?: 'active' | 'pending' | 'suspended';
|
|
67
|
+
statusMessage?: string;
|
|
68
|
+
businessUnits?: Array<{
|
|
69
|
+
id: string;
|
|
70
|
+
name: string;
|
|
71
|
+
type: string;
|
|
72
|
+
business: string;
|
|
73
|
+
region: string;
|
|
74
|
+
tags: Array<string>;
|
|
75
|
+
}>;
|
|
76
|
+
businessConnections?: Array<{
|
|
77
|
+
organisationId?: string;
|
|
78
|
+
organisationName?: string;
|
|
79
|
+
relationship?: Array<string>;
|
|
80
|
+
contacts?: Array<{
|
|
81
|
+
givenName?: string;
|
|
82
|
+
familyName?: string;
|
|
83
|
+
phone?: {
|
|
84
|
+
callingCode: string;
|
|
85
|
+
number: string;
|
|
86
|
+
};
|
|
87
|
+
email?: string;
|
|
88
|
+
id?: string;
|
|
89
|
+
authPlatformId?: string;
|
|
90
|
+
}>;
|
|
91
|
+
location?: {
|
|
92
|
+
what3words: string | null;
|
|
93
|
+
address: {
|
|
94
|
+
name?: string | null;
|
|
95
|
+
line1: string;
|
|
96
|
+
line2?: string | null;
|
|
97
|
+
line3?: string | null;
|
|
98
|
+
city?: string | null;
|
|
99
|
+
region?: string | null;
|
|
100
|
+
regionISO?: string | null;
|
|
101
|
+
postcode: string;
|
|
102
|
+
countryName?: string | null;
|
|
103
|
+
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
104
|
+
};
|
|
105
|
+
coordinates: {
|
|
106
|
+
lat: number;
|
|
107
|
+
lon: number;
|
|
108
|
+
};
|
|
109
|
+
} | null;
|
|
110
|
+
countryISO?: 'GB' | 'US' | 'ZA' | 'FR';
|
|
111
|
+
ownerContact?: {
|
|
112
|
+
id?: string;
|
|
113
|
+
email?: string;
|
|
114
|
+
familyName?: string;
|
|
115
|
+
givenName?: string;
|
|
116
|
+
phone?: {
|
|
117
|
+
callingCode: string;
|
|
118
|
+
number: string;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
}>;
|
|
122
|
+
billing?: {
|
|
123
|
+
amount: number;
|
|
124
|
+
currency: string;
|
|
125
|
+
period: 'month' | 'quarter' | 'year';
|
|
126
|
+
} | null;
|
|
127
|
+
modules?: Array<{
|
|
128
|
+
id: string;
|
|
129
|
+
name?: string | null;
|
|
130
|
+
price: {
|
|
131
|
+
amount: number;
|
|
132
|
+
currency: string;
|
|
133
|
+
} | null;
|
|
134
|
+
}>;
|
|
135
|
+
vetted?: boolean;
|
|
136
|
+
isMerchant?: boolean;
|
|
137
|
+
createdAtUTC?: string;
|
|
138
|
+
advancePay?: {
|
|
139
|
+
accountName: string;
|
|
140
|
+
sortCode: string;
|
|
141
|
+
accountNumber: string;
|
|
142
|
+
enabled: boolean;
|
|
143
|
+
eligible: boolean;
|
|
144
|
+
} | null;
|
|
145
|
+
salesforceId?: string;
|
|
146
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
export type OrganisationExists = {
|
|
2
|
+
status?: 'ok' | 'user-exists' | 'organisation-exists';
|
|
3
|
+
blockNewConnection?: boolean;
|
|
4
|
+
organisations?: Array<{
|
|
5
|
+
id?: string;
|
|
6
|
+
location?: {
|
|
7
|
+
what3words: string | null;
|
|
8
|
+
address: {
|
|
9
|
+
name?: string | null;
|
|
10
|
+
line1: string;
|
|
11
|
+
line2?: string | null;
|
|
12
|
+
line3?: string | null;
|
|
13
|
+
city?: string | null;
|
|
14
|
+
region?: string | null;
|
|
15
|
+
regionISO?: string | null;
|
|
16
|
+
postcode: string;
|
|
17
|
+
countryName?: string | null;
|
|
18
|
+
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
19
|
+
};
|
|
20
|
+
coordinates: {
|
|
21
|
+
lat: number;
|
|
22
|
+
lon: number;
|
|
23
|
+
};
|
|
24
|
+
} | null;
|
|
25
|
+
company?: {
|
|
26
|
+
assurances?: Array<{
|
|
27
|
+
id: string | null;
|
|
28
|
+
body: 'RT' | 'SQC';
|
|
29
|
+
assured: boolean;
|
|
30
|
+
}>;
|
|
31
|
+
assurance?: {
|
|
32
|
+
id: string | null;
|
|
33
|
+
body: 'RT' | 'SQC';
|
|
34
|
+
};
|
|
35
|
+
id?: string | null;
|
|
36
|
+
bio?: string | null;
|
|
37
|
+
website?: string | null;
|
|
38
|
+
holdingNumber?: string | null;
|
|
39
|
+
number?: string | null;
|
|
40
|
+
salesTaxId?: string | null;
|
|
41
|
+
logo?: {
|
|
42
|
+
id: string;
|
|
43
|
+
url: string | null;
|
|
44
|
+
} | null;
|
|
45
|
+
};
|
|
46
|
+
companyNumber?: string | null;
|
|
47
|
+
countryISO?: 'GB' | 'US' | 'ZA' | 'FR';
|
|
48
|
+
name?: string;
|
|
49
|
+
ownerContact?: {
|
|
50
|
+
id?: string;
|
|
51
|
+
email?: string;
|
|
52
|
+
phone?: {
|
|
53
|
+
callingCode: string;
|
|
54
|
+
number: string;
|
|
55
|
+
};
|
|
56
|
+
familyName?: string;
|
|
57
|
+
givenName?: string;
|
|
58
|
+
authPlatformId?: string;
|
|
59
|
+
};
|
|
60
|
+
sqc?: {
|
|
61
|
+
number: string;
|
|
62
|
+
isAssured: boolean;
|
|
63
|
+
} | null;
|
|
64
|
+
assuranceScheme?: 'RT' | 'SQC';
|
|
65
|
+
settlementContacts?: Array<{
|
|
66
|
+
name: string;
|
|
67
|
+
email: string;
|
|
68
|
+
}>;
|
|
69
|
+
status?: 'active' | 'pending' | 'suspended';
|
|
70
|
+
statusMessage?: string;
|
|
71
|
+
businessUnits?: Array<{
|
|
72
|
+
id: string;
|
|
73
|
+
name: string;
|
|
74
|
+
type: string;
|
|
75
|
+
business: string;
|
|
76
|
+
region: string;
|
|
77
|
+
tags: Array<string>;
|
|
78
|
+
}>;
|
|
79
|
+
businessConnections?: Array<{
|
|
80
|
+
organisationId?: string;
|
|
81
|
+
organisationName?: string;
|
|
82
|
+
relationship?: Array<string>;
|
|
83
|
+
contacts?: Array<{
|
|
84
|
+
givenName?: string;
|
|
85
|
+
familyName?: string;
|
|
86
|
+
phone?: {
|
|
87
|
+
callingCode: string;
|
|
88
|
+
number: string;
|
|
89
|
+
};
|
|
90
|
+
email?: string;
|
|
91
|
+
id?: string;
|
|
92
|
+
authPlatformId?: string;
|
|
93
|
+
}>;
|
|
94
|
+
location?: {
|
|
95
|
+
what3words: string | null;
|
|
96
|
+
address: {
|
|
97
|
+
name?: string | null;
|
|
98
|
+
line1: string;
|
|
99
|
+
line2?: string | null;
|
|
100
|
+
line3?: string | null;
|
|
101
|
+
city?: string | null;
|
|
102
|
+
region?: string | null;
|
|
103
|
+
regionISO?: string | null;
|
|
104
|
+
postcode: string;
|
|
105
|
+
countryName?: string | null;
|
|
106
|
+
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
107
|
+
};
|
|
108
|
+
coordinates: {
|
|
109
|
+
lat: number;
|
|
110
|
+
lon: number;
|
|
111
|
+
};
|
|
112
|
+
} | null;
|
|
113
|
+
countryISO?: 'GB' | 'US' | 'ZA' | 'FR';
|
|
114
|
+
ownerContact?: {
|
|
115
|
+
id?: string;
|
|
116
|
+
email?: string;
|
|
117
|
+
familyName?: string;
|
|
118
|
+
givenName?: string;
|
|
119
|
+
phone?: {
|
|
120
|
+
callingCode: string;
|
|
121
|
+
number: string;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
}>;
|
|
125
|
+
billing?: {
|
|
126
|
+
amount: number;
|
|
127
|
+
currency: string;
|
|
128
|
+
period: 'month' | 'quarter' | 'year';
|
|
129
|
+
} | null;
|
|
130
|
+
modules?: Array<{
|
|
131
|
+
id: string;
|
|
132
|
+
name?: string | null;
|
|
133
|
+
price: {
|
|
134
|
+
amount: number;
|
|
135
|
+
currency: string;
|
|
136
|
+
} | null;
|
|
137
|
+
}>;
|
|
138
|
+
vetted?: boolean;
|
|
139
|
+
isMerchant?: boolean;
|
|
140
|
+
createdAtUTC?: string;
|
|
141
|
+
advancePay?: {
|
|
142
|
+
accountName: string;
|
|
143
|
+
sortCode: string;
|
|
144
|
+
accountNumber: string;
|
|
145
|
+
enabled: boolean;
|
|
146
|
+
eligible: boolean;
|
|
147
|
+
} | null;
|
|
148
|
+
salesforceId?: string;
|
|
149
|
+
}>;
|
|
150
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|