@hectare/platform.clients.customers 1.1.30 → 1.1.31
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
CHANGED
|
@@ -39,6 +39,7 @@ export type { PatchUser } from './models/PatchUser.js';
|
|
|
39
39
|
export type { RedTractorCertificate } from './models/RedTractorCertificate.js';
|
|
40
40
|
export type { Role } from './models/Role.js';
|
|
41
41
|
export type { RoleGroup } from './models/RoleGroup.js';
|
|
42
|
+
export type { SearchResultsOrganisationDetailSchema } from './models/SearchResultsOrganisationDetailSchema.js';
|
|
42
43
|
export type { SearchResultsUserDetailSchema } from './models/SearchResultsUserDetailSchema.js';
|
|
43
44
|
export type { SendMagicLogin } from './models/SendMagicLogin.js';
|
|
44
45
|
export type { SwapCognitoUserPoolRequest } from './models/SwapCognitoUserPoolRequest.js';
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
export type SearchResultsOrganisationDetailSchema = {
|
|
2
|
+
docs?: Array<{
|
|
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
|
+
} | null;
|
|
22
|
+
} | null;
|
|
23
|
+
company?: {
|
|
24
|
+
assurance?: {
|
|
25
|
+
id: string | null;
|
|
26
|
+
key?: string | null;
|
|
27
|
+
body: 'RT' | 'SQC';
|
|
28
|
+
} | null;
|
|
29
|
+
id?: string | null;
|
|
30
|
+
bio?: string | null;
|
|
31
|
+
website?: string | null;
|
|
32
|
+
holdingNumber?: string | null;
|
|
33
|
+
number?: string | null;
|
|
34
|
+
salesTaxId?: string | null;
|
|
35
|
+
logo?: {
|
|
36
|
+
id: string;
|
|
37
|
+
url: string | null;
|
|
38
|
+
} | null;
|
|
39
|
+
};
|
|
40
|
+
companyNumber?: string | null;
|
|
41
|
+
countryISO?: 'GB' | 'US' | 'ZA' | 'FR';
|
|
42
|
+
name?: string;
|
|
43
|
+
ownerContact?: {
|
|
44
|
+
id?: string;
|
|
45
|
+
email?: string;
|
|
46
|
+
phone?: {
|
|
47
|
+
callingCode: string;
|
|
48
|
+
number: string;
|
|
49
|
+
};
|
|
50
|
+
familyName?: string;
|
|
51
|
+
givenName?: string;
|
|
52
|
+
authPlatformId?: string;
|
|
53
|
+
impersonate?: string | null;
|
|
54
|
+
};
|
|
55
|
+
settlementContacts?: Array<{
|
|
56
|
+
name: string;
|
|
57
|
+
email: string;
|
|
58
|
+
}>;
|
|
59
|
+
status?: 'active' | 'pending' | 'suspended';
|
|
60
|
+
statusMessage?: string;
|
|
61
|
+
businessUnits?: Array<{
|
|
62
|
+
id: string;
|
|
63
|
+
name: string;
|
|
64
|
+
type: 'farm' | 'stores' | 'region';
|
|
65
|
+
business: string | null;
|
|
66
|
+
region: string | null;
|
|
67
|
+
tags: Array<string>;
|
|
68
|
+
}>;
|
|
69
|
+
businessConnections?: Array<{
|
|
70
|
+
organisationId?: string;
|
|
71
|
+
organisationName?: string;
|
|
72
|
+
relationship?: Array<string>;
|
|
73
|
+
contacts?: Array<{
|
|
74
|
+
givenName?: string;
|
|
75
|
+
familyName?: string;
|
|
76
|
+
phone?: {
|
|
77
|
+
callingCode: string;
|
|
78
|
+
number: string;
|
|
79
|
+
};
|
|
80
|
+
email?: string;
|
|
81
|
+
id?: string;
|
|
82
|
+
authPlatformId?: string;
|
|
83
|
+
profile?: {
|
|
84
|
+
organisationId: string;
|
|
85
|
+
businessUnits: Array<string>;
|
|
86
|
+
roles: Array<string>;
|
|
87
|
+
} | null;
|
|
88
|
+
}>;
|
|
89
|
+
location?: {
|
|
90
|
+
what3words: string | null;
|
|
91
|
+
address: {
|
|
92
|
+
name?: string | null;
|
|
93
|
+
line1: string;
|
|
94
|
+
line2?: string | null;
|
|
95
|
+
line3?: string | null;
|
|
96
|
+
city?: string | null;
|
|
97
|
+
region?: string | null;
|
|
98
|
+
regionISO?: string | null;
|
|
99
|
+
postcode: string;
|
|
100
|
+
countryName?: string | null;
|
|
101
|
+
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
102
|
+
};
|
|
103
|
+
coordinates: {
|
|
104
|
+
lat: number;
|
|
105
|
+
lon: number;
|
|
106
|
+
} | null;
|
|
107
|
+
} | null;
|
|
108
|
+
countryISO?: 'GB' | 'US' | 'ZA' | 'FR';
|
|
109
|
+
ownerContact?: {
|
|
110
|
+
id?: string;
|
|
111
|
+
email?: string;
|
|
112
|
+
familyName?: string;
|
|
113
|
+
givenName?: string;
|
|
114
|
+
phone?: {
|
|
115
|
+
callingCode: string;
|
|
116
|
+
number: string;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
}>;
|
|
120
|
+
billing?: {
|
|
121
|
+
amount: number;
|
|
122
|
+
currency: string;
|
|
123
|
+
period: 'month' | 'quarter' | 'year';
|
|
124
|
+
} | null;
|
|
125
|
+
modules?: Array<{
|
|
126
|
+
id: string;
|
|
127
|
+
name?: string | null;
|
|
128
|
+
price: {
|
|
129
|
+
amount: number;
|
|
130
|
+
currency: string;
|
|
131
|
+
} | null;
|
|
132
|
+
}>;
|
|
133
|
+
vetted?: boolean;
|
|
134
|
+
rejected?: boolean;
|
|
135
|
+
isMerchant?: boolean;
|
|
136
|
+
createdAtUTC?: string;
|
|
137
|
+
advancePay?: {
|
|
138
|
+
accountName: string;
|
|
139
|
+
sortCode: string;
|
|
140
|
+
accountNumber: string;
|
|
141
|
+
enabled: boolean;
|
|
142
|
+
eligible: boolean;
|
|
143
|
+
} | null;
|
|
144
|
+
salesforceId?: string;
|
|
145
|
+
}>;
|
|
146
|
+
custom?: any;
|
|
147
|
+
totalDocs?: number;
|
|
148
|
+
limit?: number;
|
|
149
|
+
offset?: number;
|
|
150
|
+
clearUrl?: string;
|
|
151
|
+
activeFilters?: Array<{
|
|
152
|
+
name?: string;
|
|
153
|
+
clearUrl?: string;
|
|
154
|
+
terms?: Array<{
|
|
155
|
+
name?: string;
|
|
156
|
+
clearUrl?: string;
|
|
157
|
+
}>;
|
|
158
|
+
}>;
|
|
159
|
+
facets?: Array<{
|
|
160
|
+
displayName?: string;
|
|
161
|
+
clearUrl?: string;
|
|
162
|
+
disabled?: boolean;
|
|
163
|
+
name?: string;
|
|
164
|
+
selected?: boolean;
|
|
165
|
+
active?: boolean;
|
|
166
|
+
terms?: Array<{
|
|
167
|
+
name?: string;
|
|
168
|
+
url?: string;
|
|
169
|
+
hits?: string;
|
|
170
|
+
selected?: string;
|
|
171
|
+
id?: string;
|
|
172
|
+
state?: 'checked disabled' | 'checked' | 'disabled' | '';
|
|
173
|
+
aggregations?: Record<string, {
|
|
174
|
+
sum?: number;
|
|
175
|
+
min?: number;
|
|
176
|
+
max?: number;
|
|
177
|
+
average?: number;
|
|
178
|
+
}>;
|
|
179
|
+
}>;
|
|
180
|
+
}>;
|
|
181
|
+
aggregations?: Array<{
|
|
182
|
+
name?: string;
|
|
183
|
+
sum?: number;
|
|
184
|
+
min?: number;
|
|
185
|
+
max?: number;
|
|
186
|
+
average?: number;
|
|
187
|
+
count?: number;
|
|
188
|
+
range?: string;
|
|
189
|
+
hits?: number;
|
|
190
|
+
unit?: string;
|
|
191
|
+
}>;
|
|
192
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|