@hectare/platform.clients.customers 1.1.20 → 1.1.21
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
|
@@ -38,6 +38,7 @@ export type { PatchUser } from './models/PatchUser.js';
|
|
|
38
38
|
export type { RedTractorCertificate } from './models/RedTractorCertificate.js';
|
|
39
39
|
export type { Role } from './models/Role.js';
|
|
40
40
|
export type { RoleGroup } from './models/RoleGroup.js';
|
|
41
|
+
export type { SearchResultsUserDetailSchema } from './models/SearchResultsUserDetailSchema.js';
|
|
41
42
|
export type { SendMagicLogin } from './models/SendMagicLogin.js';
|
|
42
43
|
export type { SetBuyerPreferences } from './models/SetBuyerPreferences.js';
|
|
43
44
|
export type { SwapCognitoUserPoolRequest } from './models/SwapCognitoUserPoolRequest.js';
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
export type SearchResultsUserDetailSchema = {
|
|
2
|
+
docs?: Array<{
|
|
3
|
+
id?: string;
|
|
4
|
+
givenName?: string;
|
|
5
|
+
type?: 'internal' | 'external';
|
|
6
|
+
familyName?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
countryISO?: 'GB' | 'US' | 'ZA' | 'FR';
|
|
9
|
+
email?: string;
|
|
10
|
+
pushToken?: string;
|
|
11
|
+
external?: boolean;
|
|
12
|
+
impersonating?: boolean;
|
|
13
|
+
settings?: {
|
|
14
|
+
terms: boolean;
|
|
15
|
+
marketing?: boolean;
|
|
16
|
+
marketingPreferences: {
|
|
17
|
+
marketUpdates: boolean;
|
|
18
|
+
communications: boolean;
|
|
19
|
+
};
|
|
20
|
+
whatsApp: boolean;
|
|
21
|
+
sms: boolean;
|
|
22
|
+
onboardingProgress: Array<(number | string)> | null;
|
|
23
|
+
harvestNotificationDismissed: boolean;
|
|
24
|
+
harvestDialogDismissed: boolean;
|
|
25
|
+
listingsWelcomeRead: boolean;
|
|
26
|
+
};
|
|
27
|
+
tokens?: {
|
|
28
|
+
id?: string;
|
|
29
|
+
access?: string;
|
|
30
|
+
refresh?: string;
|
|
31
|
+
expiresIn?: number;
|
|
32
|
+
};
|
|
33
|
+
groups?: Array<string>;
|
|
34
|
+
roles?: Array<string>;
|
|
35
|
+
profiles?: Array<{
|
|
36
|
+
organisationId: string;
|
|
37
|
+
businessUnits: Array<string>;
|
|
38
|
+
roles: Array<string>;
|
|
39
|
+
}>;
|
|
40
|
+
preferences?: Array<{
|
|
41
|
+
commodity: number;
|
|
42
|
+
grades: Array<number>;
|
|
43
|
+
regions: Array<string>;
|
|
44
|
+
}>;
|
|
45
|
+
sellerPreferences?: Array<string>;
|
|
46
|
+
phone?: {
|
|
47
|
+
callingCode: string;
|
|
48
|
+
number: string;
|
|
49
|
+
};
|
|
50
|
+
phoneLandline?: {
|
|
51
|
+
callingCode: string;
|
|
52
|
+
number: string;
|
|
53
|
+
};
|
|
54
|
+
avatar?: {
|
|
55
|
+
name?: string;
|
|
56
|
+
id: string;
|
|
57
|
+
url?: string | null;
|
|
58
|
+
userId?: string | null;
|
|
59
|
+
userName?: string | null;
|
|
60
|
+
organisationId?: string | null;
|
|
61
|
+
createdAtUTC?: string | null;
|
|
62
|
+
} | null;
|
|
63
|
+
organisationId?: string;
|
|
64
|
+
organisationName?: string;
|
|
65
|
+
authPlatformId?: string;
|
|
66
|
+
status?: 'active' | 'pending' | 'inactive' | 'deleted';
|
|
67
|
+
businessUnits?: Array<{
|
|
68
|
+
id: string;
|
|
69
|
+
name: string;
|
|
70
|
+
type: 'farm' | 'stores' | 'region';
|
|
71
|
+
business: string | null;
|
|
72
|
+
region: string | null;
|
|
73
|
+
tags: Array<string>;
|
|
74
|
+
}>;
|
|
75
|
+
notificationsEnabled?: boolean;
|
|
76
|
+
}>;
|
|
77
|
+
custom?: any;
|
|
78
|
+
totalDocs?: number;
|
|
79
|
+
limit?: number;
|
|
80
|
+
offset?: number;
|
|
81
|
+
clearUrl?: string;
|
|
82
|
+
activeFilters?: Array<{
|
|
83
|
+
name?: string;
|
|
84
|
+
clearUrl?: string;
|
|
85
|
+
terms?: Array<{
|
|
86
|
+
name?: string;
|
|
87
|
+
clearUrl?: string;
|
|
88
|
+
}>;
|
|
89
|
+
}>;
|
|
90
|
+
facets?: Array<{
|
|
91
|
+
displayName?: string;
|
|
92
|
+
clearUrl?: string;
|
|
93
|
+
disabled?: boolean;
|
|
94
|
+
name?: string;
|
|
95
|
+
selected?: boolean;
|
|
96
|
+
active?: boolean;
|
|
97
|
+
terms?: Array<{
|
|
98
|
+
name?: string;
|
|
99
|
+
url?: string;
|
|
100
|
+
hits?: string;
|
|
101
|
+
selected?: string;
|
|
102
|
+
id?: string;
|
|
103
|
+
state?: 'checked disabled' | 'checked' | 'disabled' | '';
|
|
104
|
+
aggregations?: Record<string, {
|
|
105
|
+
sum?: number;
|
|
106
|
+
min?: number;
|
|
107
|
+
max?: number;
|
|
108
|
+
average?: number;
|
|
109
|
+
}>;
|
|
110
|
+
}>;
|
|
111
|
+
}>;
|
|
112
|
+
aggregations?: Array<{
|
|
113
|
+
name?: string;
|
|
114
|
+
sum?: number;
|
|
115
|
+
min?: number;
|
|
116
|
+
max?: number;
|
|
117
|
+
average?: number;
|
|
118
|
+
count?: number;
|
|
119
|
+
range?: string;
|
|
120
|
+
hits?: number;
|
|
121
|
+
unit?: string;
|
|
122
|
+
}>;
|
|
123
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|