@hectare/platform.clients.customers 1.1.116 → 1.1.118
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/models/BasicSearchUserDetail.d.ts +4 -18
- package/models/BusinessDetail.d.ts +1 -73
- package/models/BusinessUnitsDetail.d.ts +1 -73
- package/models/BusinessUnitsDetails.d.ts +1 -73
- package/models/BuyerPreferencesSchema.d.ts +1 -0
- package/models/CreateOrganisationResponse.d.ts +4 -18
- package/models/PatchBusinessUnit.d.ts +0 -24
- package/models/PatchUser.d.ts +4 -2
- package/models/PreferencesSchema.d.ts +1 -0
- package/models/SearchResultsUserDetailSchema.d.ts +4 -18
- package/models/UserBasicInfo.d.ts +3 -7
- package/models/UserBasicInfoWithStatsSchema.d.ts +3 -7
- package/models/UserDetail.d.ts +4 -18
- package/models/UserProfile.d.ts +4 -18
- package/package.json +1 -1
|
@@ -2,20 +2,18 @@ export type BasicSearchUserDetail = {
|
|
|
2
2
|
docs?: Array<{
|
|
3
3
|
id: string;
|
|
4
4
|
givenName: string;
|
|
5
|
-
type?: 'internal' | 'external';
|
|
6
5
|
familyName: string;
|
|
7
6
|
name: string;
|
|
8
7
|
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
9
8
|
email: string;
|
|
10
|
-
emailVerified
|
|
9
|
+
emailVerified: boolean;
|
|
11
10
|
pushToken?: string;
|
|
12
|
-
external?: boolean;
|
|
13
11
|
impersonating?: boolean;
|
|
14
12
|
settings: {
|
|
15
13
|
terms: boolean;
|
|
16
14
|
termsOnce?: boolean;
|
|
17
15
|
marketingPreferences: {
|
|
18
|
-
|
|
16
|
+
marketingPlans: boolean;
|
|
19
17
|
communications: boolean;
|
|
20
18
|
};
|
|
21
19
|
whatsApp: boolean;
|
|
@@ -25,12 +23,6 @@ export type BasicSearchUserDetail = {
|
|
|
25
23
|
onboardingProgress: Array<string> | null;
|
|
26
24
|
};
|
|
27
25
|
purchases: Array<'insights'>;
|
|
28
|
-
tokens?: {
|
|
29
|
-
id?: string;
|
|
30
|
-
access?: string;
|
|
31
|
-
refresh?: string;
|
|
32
|
-
expiresIn?: number;
|
|
33
|
-
};
|
|
34
26
|
groups: Array<string>;
|
|
35
27
|
roles: Array<string>;
|
|
36
28
|
userTypes: Array<'seller' | 'buyer' | 'advisor'>;
|
|
@@ -39,21 +31,16 @@ export type BasicSearchUserDetail = {
|
|
|
39
31
|
businessUnits: Array<string>;
|
|
40
32
|
roles: Array<string>;
|
|
41
33
|
}>;
|
|
42
|
-
preferences?: Array<{
|
|
43
|
-
commodity: number;
|
|
44
|
-
enabled: boolean;
|
|
45
|
-
grades: Array<number>;
|
|
46
|
-
regions: Array<string>;
|
|
47
|
-
}>;
|
|
48
34
|
buyerExFarmPreferences?: Array<{
|
|
49
35
|
id: number;
|
|
50
36
|
regionISOs: Array<string>;
|
|
37
|
+
ukRegions?: Array<string>;
|
|
51
38
|
}>;
|
|
52
39
|
sellerExFarmPreferences?: Array<{
|
|
53
40
|
id: number;
|
|
54
41
|
regionISOs: Array<string>;
|
|
42
|
+
ukRegions?: Array<string>;
|
|
55
43
|
}>;
|
|
56
|
-
sellerPreferences?: Array<string>;
|
|
57
44
|
phone: {
|
|
58
45
|
callingCode: string;
|
|
59
46
|
number: string;
|
|
@@ -84,7 +71,6 @@ export type BasicSearchUserDetail = {
|
|
|
84
71
|
tags: Array<string>;
|
|
85
72
|
}>;
|
|
86
73
|
businesses: Array<string>;
|
|
87
|
-
notificationsEnabled?: boolean;
|
|
88
74
|
}>;
|
|
89
75
|
totalDocs?: number;
|
|
90
76
|
limit?: number;
|
|
@@ -4,7 +4,6 @@ export type BusinessDetail = {
|
|
|
4
4
|
type: 'trading-entity' | 'farm';
|
|
5
5
|
businessUnitId: string;
|
|
6
6
|
organisationId: string;
|
|
7
|
-
primary: boolean;
|
|
8
7
|
locations: Array<{
|
|
9
8
|
id: number | null;
|
|
10
9
|
reference: string | null;
|
|
@@ -34,79 +33,8 @@ export type BusinessDetail = {
|
|
|
34
33
|
callingCode: string;
|
|
35
34
|
number: string;
|
|
36
35
|
};
|
|
37
|
-
type: 'collection' | 'business' | 'delivery'
|
|
36
|
+
type: 'collection' | 'business' | 'delivery';
|
|
38
37
|
}>;
|
|
39
|
-
location: {
|
|
40
|
-
what3words: string | null;
|
|
41
|
-
address: {
|
|
42
|
-
name?: string | null;
|
|
43
|
-
line1: string;
|
|
44
|
-
line2?: string | null;
|
|
45
|
-
line3?: string | null;
|
|
46
|
-
city?: string | null;
|
|
47
|
-
region?: string | null;
|
|
48
|
-
regionISO?: string | null;
|
|
49
|
-
postcode: string;
|
|
50
|
-
countryName?: string | null;
|
|
51
|
-
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
52
|
-
};
|
|
53
|
-
coordinates: {
|
|
54
|
-
lat: number;
|
|
55
|
-
lon: number;
|
|
56
|
-
} | null;
|
|
57
|
-
} | null;
|
|
58
|
-
locationIsCollectionAddress?: boolean;
|
|
59
|
-
collectionLocation?: {
|
|
60
|
-
what3words: string | null;
|
|
61
|
-
address: {
|
|
62
|
-
name?: string | null;
|
|
63
|
-
line1: string;
|
|
64
|
-
line2?: string | null;
|
|
65
|
-
line3?: string | null;
|
|
66
|
-
city?: string | null;
|
|
67
|
-
region?: string | null;
|
|
68
|
-
regionISO?: string | null;
|
|
69
|
-
postcode: string;
|
|
70
|
-
countryName?: string | null;
|
|
71
|
-
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
72
|
-
};
|
|
73
|
-
coordinates: {
|
|
74
|
-
lat: number;
|
|
75
|
-
lon: number;
|
|
76
|
-
} | null;
|
|
77
|
-
} | null;
|
|
78
|
-
collectionAddresses: Array<{
|
|
79
|
-
id: number | null;
|
|
80
|
-
reference: string | null;
|
|
81
|
-
location: {
|
|
82
|
-
what3words: string | null;
|
|
83
|
-
address: {
|
|
84
|
-
name?: string | null;
|
|
85
|
-
line1: string;
|
|
86
|
-
line2?: string | null;
|
|
87
|
-
line3?: string | null;
|
|
88
|
-
city?: string | null;
|
|
89
|
-
region?: string | null;
|
|
90
|
-
regionISO?: string | null;
|
|
91
|
-
postcode: string;
|
|
92
|
-
countryName?: string | null;
|
|
93
|
-
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
94
|
-
};
|
|
95
|
-
coordinates: {
|
|
96
|
-
lat: number;
|
|
97
|
-
lon: number;
|
|
98
|
-
} | null;
|
|
99
|
-
} | null;
|
|
100
|
-
email?: string | null;
|
|
101
|
-
givenName: string | null;
|
|
102
|
-
familyName: string | null;
|
|
103
|
-
phone: {
|
|
104
|
-
callingCode: string;
|
|
105
|
-
number: string;
|
|
106
|
-
};
|
|
107
|
-
type: 'collection' | 'business' | 'delivery' | 'business-collection';
|
|
108
|
-
}>;
|
|
109
|
-
name?: string;
|
|
110
38
|
businessName: string;
|
|
111
39
|
givenName: string;
|
|
112
40
|
familyName: string;
|
|
@@ -10,7 +10,6 @@ export type BusinessUnitsDetail = {
|
|
|
10
10
|
type: 'trading-entity' | 'farm';
|
|
11
11
|
businessUnitId: string;
|
|
12
12
|
organisationId: string;
|
|
13
|
-
primary: boolean;
|
|
14
13
|
locations: Array<{
|
|
15
14
|
id: number | null;
|
|
16
15
|
reference: string | null;
|
|
@@ -40,79 +39,8 @@ export type BusinessUnitsDetail = {
|
|
|
40
39
|
callingCode: string;
|
|
41
40
|
number: string;
|
|
42
41
|
};
|
|
43
|
-
type: 'collection' | 'business' | 'delivery'
|
|
42
|
+
type: 'collection' | 'business' | 'delivery';
|
|
44
43
|
}>;
|
|
45
|
-
location: {
|
|
46
|
-
what3words: string | null;
|
|
47
|
-
address: {
|
|
48
|
-
name?: string | null;
|
|
49
|
-
line1: string;
|
|
50
|
-
line2?: string | null;
|
|
51
|
-
line3?: string | null;
|
|
52
|
-
city?: string | null;
|
|
53
|
-
region?: string | null;
|
|
54
|
-
regionISO?: string | null;
|
|
55
|
-
postcode: string;
|
|
56
|
-
countryName?: string | null;
|
|
57
|
-
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
58
|
-
};
|
|
59
|
-
coordinates: {
|
|
60
|
-
lat: number;
|
|
61
|
-
lon: number;
|
|
62
|
-
} | null;
|
|
63
|
-
} | null;
|
|
64
|
-
locationIsCollectionAddress?: boolean;
|
|
65
|
-
collectionLocation?: {
|
|
66
|
-
what3words: string | null;
|
|
67
|
-
address: {
|
|
68
|
-
name?: string | null;
|
|
69
|
-
line1: string;
|
|
70
|
-
line2?: string | null;
|
|
71
|
-
line3?: string | null;
|
|
72
|
-
city?: string | null;
|
|
73
|
-
region?: string | null;
|
|
74
|
-
regionISO?: string | null;
|
|
75
|
-
postcode: string;
|
|
76
|
-
countryName?: string | null;
|
|
77
|
-
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
78
|
-
};
|
|
79
|
-
coordinates: {
|
|
80
|
-
lat: number;
|
|
81
|
-
lon: number;
|
|
82
|
-
} | null;
|
|
83
|
-
} | null;
|
|
84
|
-
collectionAddresses: Array<{
|
|
85
|
-
id: number | null;
|
|
86
|
-
reference: string | null;
|
|
87
|
-
location: {
|
|
88
|
-
what3words: string | null;
|
|
89
|
-
address: {
|
|
90
|
-
name?: string | null;
|
|
91
|
-
line1: string;
|
|
92
|
-
line2?: string | null;
|
|
93
|
-
line3?: string | null;
|
|
94
|
-
city?: string | null;
|
|
95
|
-
region?: string | null;
|
|
96
|
-
regionISO?: string | null;
|
|
97
|
-
postcode: string;
|
|
98
|
-
countryName?: string | null;
|
|
99
|
-
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
100
|
-
};
|
|
101
|
-
coordinates: {
|
|
102
|
-
lat: number;
|
|
103
|
-
lon: number;
|
|
104
|
-
} | null;
|
|
105
|
-
} | null;
|
|
106
|
-
email?: string | null;
|
|
107
|
-
givenName: string | null;
|
|
108
|
-
familyName: string | null;
|
|
109
|
-
phone: {
|
|
110
|
-
callingCode: string;
|
|
111
|
-
number: string;
|
|
112
|
-
};
|
|
113
|
-
type: 'collection' | 'business' | 'delivery' | 'business-collection';
|
|
114
|
-
}>;
|
|
115
|
-
name?: string;
|
|
116
44
|
businessName: string;
|
|
117
45
|
givenName: string;
|
|
118
46
|
familyName: string;
|
|
@@ -19,7 +19,6 @@ export type BusinessUnitsDetails = {
|
|
|
19
19
|
type: 'trading-entity' | 'farm';
|
|
20
20
|
businessUnitId: string;
|
|
21
21
|
organisationId: string;
|
|
22
|
-
primary: boolean;
|
|
23
22
|
locations: Array<{
|
|
24
23
|
id: number | null;
|
|
25
24
|
reference: string | null;
|
|
@@ -49,79 +48,8 @@ export type BusinessUnitsDetails = {
|
|
|
49
48
|
callingCode: string;
|
|
50
49
|
number: string;
|
|
51
50
|
};
|
|
52
|
-
type: 'collection' | 'business' | 'delivery'
|
|
51
|
+
type: 'collection' | 'business' | 'delivery';
|
|
53
52
|
}>;
|
|
54
|
-
location: {
|
|
55
|
-
what3words: string | null;
|
|
56
|
-
address: {
|
|
57
|
-
name?: string | null;
|
|
58
|
-
line1: string;
|
|
59
|
-
line2?: string | null;
|
|
60
|
-
line3?: string | null;
|
|
61
|
-
city?: string | null;
|
|
62
|
-
region?: string | null;
|
|
63
|
-
regionISO?: string | null;
|
|
64
|
-
postcode: string;
|
|
65
|
-
countryName?: string | null;
|
|
66
|
-
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
67
|
-
};
|
|
68
|
-
coordinates: {
|
|
69
|
-
lat: number;
|
|
70
|
-
lon: number;
|
|
71
|
-
} | null;
|
|
72
|
-
} | null;
|
|
73
|
-
locationIsCollectionAddress?: boolean;
|
|
74
|
-
collectionLocation?: {
|
|
75
|
-
what3words: string | null;
|
|
76
|
-
address: {
|
|
77
|
-
name?: string | null;
|
|
78
|
-
line1: string;
|
|
79
|
-
line2?: string | null;
|
|
80
|
-
line3?: string | null;
|
|
81
|
-
city?: string | null;
|
|
82
|
-
region?: string | null;
|
|
83
|
-
regionISO?: string | null;
|
|
84
|
-
postcode: string;
|
|
85
|
-
countryName?: string | null;
|
|
86
|
-
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
87
|
-
};
|
|
88
|
-
coordinates: {
|
|
89
|
-
lat: number;
|
|
90
|
-
lon: number;
|
|
91
|
-
} | null;
|
|
92
|
-
} | null;
|
|
93
|
-
collectionAddresses: Array<{
|
|
94
|
-
id: number | null;
|
|
95
|
-
reference: string | null;
|
|
96
|
-
location: {
|
|
97
|
-
what3words: string | null;
|
|
98
|
-
address: {
|
|
99
|
-
name?: string | null;
|
|
100
|
-
line1: string;
|
|
101
|
-
line2?: string | null;
|
|
102
|
-
line3?: string | null;
|
|
103
|
-
city?: string | null;
|
|
104
|
-
region?: string | null;
|
|
105
|
-
regionISO?: string | null;
|
|
106
|
-
postcode: string;
|
|
107
|
-
countryName?: string | null;
|
|
108
|
-
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
109
|
-
};
|
|
110
|
-
coordinates: {
|
|
111
|
-
lat: number;
|
|
112
|
-
lon: number;
|
|
113
|
-
} | null;
|
|
114
|
-
} | null;
|
|
115
|
-
email?: string | null;
|
|
116
|
-
givenName: string | null;
|
|
117
|
-
familyName: string | null;
|
|
118
|
-
phone: {
|
|
119
|
-
callingCode: string;
|
|
120
|
-
number: string;
|
|
121
|
-
};
|
|
122
|
-
type: 'collection' | 'business' | 'delivery' | 'business-collection';
|
|
123
|
-
}>;
|
|
124
|
-
name?: string;
|
|
125
53
|
businessName: string;
|
|
126
54
|
givenName: string;
|
|
127
55
|
familyName: string;
|
|
@@ -81,20 +81,18 @@ export type CreateOrganisationResponse = {
|
|
|
81
81
|
user?: {
|
|
82
82
|
id: string;
|
|
83
83
|
givenName: string;
|
|
84
|
-
type?: 'internal' | 'external';
|
|
85
84
|
familyName: string;
|
|
86
85
|
name: string;
|
|
87
86
|
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
88
87
|
email: string;
|
|
89
|
-
emailVerified
|
|
88
|
+
emailVerified: boolean;
|
|
90
89
|
pushToken?: string;
|
|
91
|
-
external?: boolean;
|
|
92
90
|
impersonating?: boolean;
|
|
93
91
|
settings: {
|
|
94
92
|
terms: boolean;
|
|
95
93
|
termsOnce?: boolean;
|
|
96
94
|
marketingPreferences: {
|
|
97
|
-
|
|
95
|
+
marketingPlans: boolean;
|
|
98
96
|
communications: boolean;
|
|
99
97
|
};
|
|
100
98
|
whatsApp: boolean;
|
|
@@ -104,12 +102,6 @@ export type CreateOrganisationResponse = {
|
|
|
104
102
|
onboardingProgress: Array<string> | null;
|
|
105
103
|
};
|
|
106
104
|
purchases: Array<'insights'>;
|
|
107
|
-
tokens?: {
|
|
108
|
-
id?: string;
|
|
109
|
-
access?: string;
|
|
110
|
-
refresh?: string;
|
|
111
|
-
expiresIn?: number;
|
|
112
|
-
};
|
|
113
105
|
groups: Array<string>;
|
|
114
106
|
roles: Array<string>;
|
|
115
107
|
userTypes: Array<'seller' | 'buyer' | 'advisor'>;
|
|
@@ -118,21 +110,16 @@ export type CreateOrganisationResponse = {
|
|
|
118
110
|
businessUnits: Array<string>;
|
|
119
111
|
roles: Array<string>;
|
|
120
112
|
}>;
|
|
121
|
-
preferences?: Array<{
|
|
122
|
-
commodity: number;
|
|
123
|
-
enabled: boolean;
|
|
124
|
-
grades: Array<number>;
|
|
125
|
-
regions: Array<string>;
|
|
126
|
-
}>;
|
|
127
113
|
buyerExFarmPreferences?: Array<{
|
|
128
114
|
id: number;
|
|
129
115
|
regionISOs: Array<string>;
|
|
116
|
+
ukRegions?: Array<string>;
|
|
130
117
|
}>;
|
|
131
118
|
sellerExFarmPreferences?: Array<{
|
|
132
119
|
id: number;
|
|
133
120
|
regionISOs: Array<string>;
|
|
121
|
+
ukRegions?: Array<string>;
|
|
134
122
|
}>;
|
|
135
|
-
sellerPreferences?: Array<string>;
|
|
136
123
|
phone: {
|
|
137
124
|
callingCode: string;
|
|
138
125
|
number: string;
|
|
@@ -163,6 +150,5 @@ export type CreateOrganisationResponse = {
|
|
|
163
150
|
tags: Array<string>;
|
|
164
151
|
}>;
|
|
165
152
|
businesses: Array<string>;
|
|
166
|
-
notificationsEnabled?: boolean;
|
|
167
153
|
};
|
|
168
154
|
};
|
|
@@ -22,30 +22,10 @@ export type PatchBusinessUnit = {
|
|
|
22
22
|
} | null;
|
|
23
23
|
} | null;
|
|
24
24
|
locationIsCollectionAddress?: boolean;
|
|
25
|
-
collectionLocation?: {
|
|
26
|
-
what3words: string | null;
|
|
27
|
-
address: {
|
|
28
|
-
name?: string | null;
|
|
29
|
-
line1: string;
|
|
30
|
-
line2?: string | null;
|
|
31
|
-
line3?: string | null;
|
|
32
|
-
city?: string | null;
|
|
33
|
-
region?: string | null;
|
|
34
|
-
regionISO?: string | null;
|
|
35
|
-
postcode: string;
|
|
36
|
-
countryName?: string | null;
|
|
37
|
-
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
38
|
-
};
|
|
39
|
-
coordinates: {
|
|
40
|
-
lat: number;
|
|
41
|
-
lon: number;
|
|
42
|
-
} | null;
|
|
43
|
-
} | null;
|
|
44
25
|
givenName?: string;
|
|
45
26
|
familyName?: string;
|
|
46
27
|
phoneNumber?: string | null;
|
|
47
28
|
email?: string;
|
|
48
|
-
primary?: boolean;
|
|
49
29
|
holdingNumber?: string | null;
|
|
50
30
|
companyNumber?: string | null;
|
|
51
31
|
vatNumber?: string | null;
|
|
@@ -58,10 +38,6 @@ export type PatchBusinessUnit = {
|
|
|
58
38
|
location?: string | null;
|
|
59
39
|
} | null;
|
|
60
40
|
status?: string | null;
|
|
61
|
-
locations?: Array<any>;
|
|
62
|
-
collectionAddresses?: Array<any>;
|
|
63
|
-
name?: string;
|
|
64
|
-
type?: string;
|
|
65
41
|
bio?: string | null;
|
|
66
42
|
logo?: {
|
|
67
43
|
id: string;
|
package/models/PatchUser.d.ts
CHANGED
|
@@ -31,11 +31,13 @@ export type PatchUser = {
|
|
|
31
31
|
preferencesRegionISOs?: Array<string> | null;
|
|
32
32
|
buyerExFarmPreferences?: Array<{
|
|
33
33
|
id: number;
|
|
34
|
-
regionISOs
|
|
34
|
+
regionISOs?: Array<string>;
|
|
35
|
+
ukRegions?: Array<string> | null;
|
|
35
36
|
}>;
|
|
36
37
|
sellerExFarmPreferences?: Array<{
|
|
37
38
|
id: number;
|
|
38
|
-
regionISOs
|
|
39
|
+
regionISOs?: Array<string>;
|
|
40
|
+
ukRegions?: Array<string> | null;
|
|
39
41
|
}>;
|
|
40
42
|
onboardingProgress?: Array<string> | null;
|
|
41
43
|
};
|
|
@@ -2,20 +2,18 @@ export type SearchResultsUserDetailSchema = {
|
|
|
2
2
|
docs: Array<{
|
|
3
3
|
id: string;
|
|
4
4
|
givenName: string;
|
|
5
|
-
type?: 'internal' | 'external';
|
|
6
5
|
familyName: string;
|
|
7
6
|
name: string;
|
|
8
7
|
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
9
8
|
email: string;
|
|
10
|
-
emailVerified
|
|
9
|
+
emailVerified: boolean;
|
|
11
10
|
pushToken?: string;
|
|
12
|
-
external?: boolean;
|
|
13
11
|
impersonating?: boolean;
|
|
14
12
|
settings: {
|
|
15
13
|
terms: boolean;
|
|
16
14
|
termsOnce?: boolean;
|
|
17
15
|
marketingPreferences: {
|
|
18
|
-
|
|
16
|
+
marketingPlans: boolean;
|
|
19
17
|
communications: boolean;
|
|
20
18
|
};
|
|
21
19
|
whatsApp: boolean;
|
|
@@ -25,12 +23,6 @@ export type SearchResultsUserDetailSchema = {
|
|
|
25
23
|
onboardingProgress: Array<string> | null;
|
|
26
24
|
};
|
|
27
25
|
purchases: Array<'insights'>;
|
|
28
|
-
tokens?: {
|
|
29
|
-
id?: string;
|
|
30
|
-
access?: string;
|
|
31
|
-
refresh?: string;
|
|
32
|
-
expiresIn?: number;
|
|
33
|
-
};
|
|
34
26
|
groups: Array<string>;
|
|
35
27
|
roles: Array<string>;
|
|
36
28
|
userTypes: Array<'seller' | 'buyer' | 'advisor'>;
|
|
@@ -39,21 +31,16 @@ export type SearchResultsUserDetailSchema = {
|
|
|
39
31
|
businessUnits: Array<string>;
|
|
40
32
|
roles: Array<string>;
|
|
41
33
|
}>;
|
|
42
|
-
preferences?: Array<{
|
|
43
|
-
commodity: number;
|
|
44
|
-
enabled: boolean;
|
|
45
|
-
grades: Array<number>;
|
|
46
|
-
regions: Array<string>;
|
|
47
|
-
}>;
|
|
48
34
|
buyerExFarmPreferences?: Array<{
|
|
49
35
|
id: number;
|
|
50
36
|
regionISOs: Array<string>;
|
|
37
|
+
ukRegions?: Array<string>;
|
|
51
38
|
}>;
|
|
52
39
|
sellerExFarmPreferences?: Array<{
|
|
53
40
|
id: number;
|
|
54
41
|
regionISOs: Array<string>;
|
|
42
|
+
ukRegions?: Array<string>;
|
|
55
43
|
}>;
|
|
56
|
-
sellerPreferences?: Array<string>;
|
|
57
44
|
phone: {
|
|
58
45
|
callingCode: string;
|
|
59
46
|
number: string;
|
|
@@ -84,7 +71,6 @@ export type SearchResultsUserDetailSchema = {
|
|
|
84
71
|
tags: Array<string>;
|
|
85
72
|
}>;
|
|
86
73
|
businesses: Array<string>;
|
|
87
|
-
notificationsEnabled?: boolean;
|
|
88
74
|
}>;
|
|
89
75
|
custom?: any;
|
|
90
76
|
totalDocs: number;
|
|
@@ -43,25 +43,21 @@ export type UserBasicInfo = {
|
|
|
43
43
|
name?: string | null;
|
|
44
44
|
}>;
|
|
45
45
|
};
|
|
46
|
-
preferences?: Array<{
|
|
47
|
-
commodity: number | null;
|
|
48
|
-
grades: Array<number>;
|
|
49
|
-
regions: Array<string>;
|
|
50
|
-
enabled: boolean;
|
|
51
|
-
}>;
|
|
52
46
|
buyerExFarmPreferences?: Array<{
|
|
53
47
|
id: number;
|
|
54
48
|
regionISOs: Array<string>;
|
|
49
|
+
ukRegions?: Array<string>;
|
|
55
50
|
}>;
|
|
56
51
|
sellerExFarmPreferences?: Array<{
|
|
57
52
|
id: number;
|
|
58
53
|
regionISOs: Array<string>;
|
|
54
|
+
ukRegions?: Array<string>;
|
|
59
55
|
}>;
|
|
60
56
|
settings: {
|
|
61
57
|
terms: boolean;
|
|
62
58
|
termsOnce?: boolean;
|
|
63
59
|
marketingPreferences: {
|
|
64
|
-
|
|
60
|
+
marketingPlans: boolean;
|
|
65
61
|
communications: boolean;
|
|
66
62
|
};
|
|
67
63
|
whatsApp: boolean;
|
|
@@ -43,25 +43,21 @@ export type UserBasicInfoWithStatsSchema = {
|
|
|
43
43
|
name?: string | null;
|
|
44
44
|
}>;
|
|
45
45
|
};
|
|
46
|
-
preferences?: Array<{
|
|
47
|
-
commodity: number | null;
|
|
48
|
-
grades: Array<number>;
|
|
49
|
-
regions: Array<string>;
|
|
50
|
-
enabled: boolean;
|
|
51
|
-
}>;
|
|
52
46
|
buyerExFarmPreferences?: Array<{
|
|
53
47
|
id: number;
|
|
54
48
|
regionISOs: Array<string>;
|
|
49
|
+
ukRegions?: Array<string>;
|
|
55
50
|
}>;
|
|
56
51
|
sellerExFarmPreferences?: Array<{
|
|
57
52
|
id: number;
|
|
58
53
|
regionISOs: Array<string>;
|
|
54
|
+
ukRegions?: Array<string>;
|
|
59
55
|
}>;
|
|
60
56
|
settings?: {
|
|
61
57
|
terms: boolean;
|
|
62
58
|
termsOnce?: boolean;
|
|
63
59
|
marketingPreferences: {
|
|
64
|
-
|
|
60
|
+
marketingPlans: boolean;
|
|
65
61
|
communications: boolean;
|
|
66
62
|
};
|
|
67
63
|
whatsApp: boolean;
|
package/models/UserDetail.d.ts
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
export type UserDetail = {
|
|
2
2
|
id: string;
|
|
3
3
|
givenName: string;
|
|
4
|
-
type?: 'internal' | 'external';
|
|
5
4
|
familyName: string;
|
|
6
5
|
name: string;
|
|
7
6
|
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
8
7
|
email: string;
|
|
9
|
-
emailVerified
|
|
8
|
+
emailVerified: boolean;
|
|
10
9
|
pushToken?: string;
|
|
11
|
-
external?: boolean;
|
|
12
10
|
impersonating?: boolean;
|
|
13
11
|
settings: {
|
|
14
12
|
terms: boolean;
|
|
15
13
|
termsOnce?: boolean;
|
|
16
14
|
marketingPreferences: {
|
|
17
|
-
|
|
15
|
+
marketingPlans: boolean;
|
|
18
16
|
communications: boolean;
|
|
19
17
|
};
|
|
20
18
|
whatsApp: boolean;
|
|
@@ -24,12 +22,6 @@ export type UserDetail = {
|
|
|
24
22
|
onboardingProgress: Array<string> | null;
|
|
25
23
|
};
|
|
26
24
|
purchases: Array<'insights'>;
|
|
27
|
-
tokens?: {
|
|
28
|
-
id?: string;
|
|
29
|
-
access?: string;
|
|
30
|
-
refresh?: string;
|
|
31
|
-
expiresIn?: number;
|
|
32
|
-
};
|
|
33
25
|
groups: Array<string>;
|
|
34
26
|
roles: Array<string>;
|
|
35
27
|
userTypes: Array<'seller' | 'buyer' | 'advisor'>;
|
|
@@ -38,21 +30,16 @@ export type UserDetail = {
|
|
|
38
30
|
businessUnits: Array<string>;
|
|
39
31
|
roles: Array<string>;
|
|
40
32
|
}>;
|
|
41
|
-
preferences?: Array<{
|
|
42
|
-
commodity: number;
|
|
43
|
-
enabled: boolean;
|
|
44
|
-
grades: Array<number>;
|
|
45
|
-
regions: Array<string>;
|
|
46
|
-
}>;
|
|
47
33
|
buyerExFarmPreferences?: Array<{
|
|
48
34
|
id: number;
|
|
49
35
|
regionISOs: Array<string>;
|
|
36
|
+
ukRegions?: Array<string>;
|
|
50
37
|
}>;
|
|
51
38
|
sellerExFarmPreferences?: Array<{
|
|
52
39
|
id: number;
|
|
53
40
|
regionISOs: Array<string>;
|
|
41
|
+
ukRegions?: Array<string>;
|
|
54
42
|
}>;
|
|
55
|
-
sellerPreferences?: Array<string>;
|
|
56
43
|
phone: {
|
|
57
44
|
callingCode: string;
|
|
58
45
|
number: string;
|
|
@@ -83,5 +70,4 @@ export type UserDetail = {
|
|
|
83
70
|
tags: Array<string>;
|
|
84
71
|
}>;
|
|
85
72
|
businesses: Array<string>;
|
|
86
|
-
notificationsEnabled?: boolean;
|
|
87
73
|
};
|
package/models/UserProfile.d.ts
CHANGED
|
@@ -81,20 +81,18 @@ export type UserProfile = {
|
|
|
81
81
|
user: {
|
|
82
82
|
id: string;
|
|
83
83
|
givenName: string;
|
|
84
|
-
type?: 'internal' | 'external';
|
|
85
84
|
familyName: string;
|
|
86
85
|
name: string;
|
|
87
86
|
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
88
87
|
email: string;
|
|
89
|
-
emailVerified
|
|
88
|
+
emailVerified: boolean;
|
|
90
89
|
pushToken?: string;
|
|
91
|
-
external?: boolean;
|
|
92
90
|
impersonating?: boolean;
|
|
93
91
|
settings: {
|
|
94
92
|
terms: boolean;
|
|
95
93
|
termsOnce?: boolean;
|
|
96
94
|
marketingPreferences: {
|
|
97
|
-
|
|
95
|
+
marketingPlans: boolean;
|
|
98
96
|
communications: boolean;
|
|
99
97
|
};
|
|
100
98
|
whatsApp: boolean;
|
|
@@ -104,12 +102,6 @@ export type UserProfile = {
|
|
|
104
102
|
onboardingProgress: Array<string> | null;
|
|
105
103
|
};
|
|
106
104
|
purchases: Array<'insights'>;
|
|
107
|
-
tokens?: {
|
|
108
|
-
id?: string;
|
|
109
|
-
access?: string;
|
|
110
|
-
refresh?: string;
|
|
111
|
-
expiresIn?: number;
|
|
112
|
-
};
|
|
113
105
|
groups: Array<string>;
|
|
114
106
|
roles: Array<string>;
|
|
115
107
|
userTypes: Array<'seller' | 'buyer' | 'advisor'>;
|
|
@@ -118,21 +110,16 @@ export type UserProfile = {
|
|
|
118
110
|
businessUnits: Array<string>;
|
|
119
111
|
roles: Array<string>;
|
|
120
112
|
}>;
|
|
121
|
-
preferences?: Array<{
|
|
122
|
-
commodity: number;
|
|
123
|
-
enabled: boolean;
|
|
124
|
-
grades: Array<number>;
|
|
125
|
-
regions: Array<string>;
|
|
126
|
-
}>;
|
|
127
113
|
buyerExFarmPreferences?: Array<{
|
|
128
114
|
id: number;
|
|
129
115
|
regionISOs: Array<string>;
|
|
116
|
+
ukRegions?: Array<string>;
|
|
130
117
|
}>;
|
|
131
118
|
sellerExFarmPreferences?: Array<{
|
|
132
119
|
id: number;
|
|
133
120
|
regionISOs: Array<string>;
|
|
121
|
+
ukRegions?: Array<string>;
|
|
134
122
|
}>;
|
|
135
|
-
sellerPreferences?: Array<string>;
|
|
136
123
|
phone: {
|
|
137
124
|
callingCode: string;
|
|
138
125
|
number: string;
|
|
@@ -163,7 +150,6 @@ export type UserProfile = {
|
|
|
163
150
|
tags: Array<string>;
|
|
164
151
|
}>;
|
|
165
152
|
businesses: Array<string>;
|
|
166
|
-
notificationsEnabled?: boolean;
|
|
167
153
|
};
|
|
168
154
|
access: {
|
|
169
155
|
administrator: boolean;
|