@hectare/platform.clients.customers 1.1.121 → 1.1.122
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 +3 -8
- package/models/BasicSearchUserDetail.d.ts +1 -9
- package/models/BusinessDetail.d.ts +1 -1
- package/models/BusinessSummary.d.ts +0 -19
- package/models/BusinessUnitsDetail.d.ts +1 -1
- package/models/BusinessUnitsDetails.d.ts +1 -6
- package/models/ContactDetail.d.ts +1 -1
- package/models/{CreateBusinessUnits.d.ts → CreateBusinessSchema.d.ts} +2 -3
- package/models/CreateBusinessUnit.d.ts +0 -1
- package/models/CreateOrganisationResponse.d.ts +37 -47
- package/models/OrganisationExists.d.ts +36 -38
- package/models/PatchBusinessSchema.d.ts +47 -0
- package/models/{SearchResultsOrganisationDetailSchema.d.ts → SearchResultsOrganisationSummarySchema.d.ts} +37 -39
- package/models/SearchResultsUserDetailSchema.d.ts +1 -9
- package/models/UserDetail.d.ts +1 -9
- package/models/UserProfile.d.ts +37 -47
- package/package.json +1 -1
- package/models/BusinessUnitSummary.d.ts +0 -8
- package/models/BusinessUnitsSummary.d.ts +0 -16
- package/models/BuyerPreferencesSchema.d.ts +0 -10
- package/models/CreateBusinessCollectionAddressSchema.d.ts +0 -29
- package/models/CreateBusinessCollectionAddressSchema.js +0 -1
- package/models/CreateBusinessUnits.js +0 -1
- package/models/OrganisationDetail.d.ts +0 -79
- package/models/OrganisationDetail.js +0 -1
- package/models/PatchBusinessCollectionAddressSchema.d.ts +0 -29
- package/models/PatchBusinessCollectionAddressSchema.js +0 -1
- package/models/SearchResultsOrganisationDetailSchema.js +0 -1
- /package/models/{BusinessUnitSummary.js → CreateBusinessSchema.js} +0 -0
- /package/models/{BusinessUnitsSummary.js → PatchBusinessSchema.js} +0 -0
- /package/models/{BuyerPreferencesSchema.js → SearchResultsOrganisationSummarySchema.js} +0 -0
package/index.d.ts
CHANGED
|
@@ -5,17 +5,13 @@ export type { BusinessLookupSchema } from './models/BusinessLookupSchema.js';
|
|
|
5
5
|
export type { BusinessSummary } from './models/BusinessSummary.js';
|
|
6
6
|
export type { BusinessUnitsDetail } from './models/BusinessUnitsDetail.js';
|
|
7
7
|
export type { BusinessUnitsDetails } from './models/BusinessUnitsDetails.js';
|
|
8
|
-
export type { BusinessUnitsSummary } from './models/BusinessUnitsSummary.js';
|
|
9
|
-
export type { BusinessUnitSummary } from './models/BusinessUnitSummary.js';
|
|
10
|
-
export type { BuyerPreferencesSchema } from './models/BuyerPreferencesSchema.js';
|
|
11
8
|
export type { ChangeOwner } from './models/ChangeOwner.js';
|
|
12
9
|
export type { ChangePassword } from './models/ChangePassword.js';
|
|
13
10
|
export type { ConfirmSignup } from './models/ConfirmSignup.js';
|
|
14
11
|
export type { ContactDetail } from './models/ContactDetail.js';
|
|
15
|
-
export type { CreateBusinessCollectionAddressSchema } from './models/CreateBusinessCollectionAddressSchema.js';
|
|
16
12
|
export type { CreateBusinessLocation } from './models/CreateBusinessLocation.js';
|
|
13
|
+
export type { CreateBusinessSchema } from './models/CreateBusinessSchema.js';
|
|
17
14
|
export type { CreateBusinessUnit } from './models/CreateBusinessUnit.js';
|
|
18
|
-
export type { CreateBusinessUnits } from './models/CreateBusinessUnits.js';
|
|
19
15
|
export type { CreateOrganisation } from './models/CreateOrganisation.js';
|
|
20
16
|
export type { CreateOrganisationResponse } from './models/CreateOrganisationResponse.js';
|
|
21
17
|
export type { CreateOrUpdatePriceAlertsSchema } from './models/CreateOrUpdatePriceAlertsSchema.js';
|
|
@@ -28,11 +24,10 @@ export type { LinkUser } from './models/LinkUser.js';
|
|
|
28
24
|
export type { LoginForm } from './models/LoginForm.js';
|
|
29
25
|
export type { LoginSuccess } from './models/LoginSuccess.js';
|
|
30
26
|
export type { LoginTokens } from './models/LoginTokens.js';
|
|
31
|
-
export type { OrganisationDetail } from './models/OrganisationDetail.js';
|
|
32
27
|
export type { OrganisationExists } from './models/OrganisationExists.js';
|
|
33
28
|
export type { OrganisationSummary } from './models/OrganisationSummary.js';
|
|
34
|
-
export type { PatchBusinessCollectionAddressSchema } from './models/PatchBusinessCollectionAddressSchema.js';
|
|
35
29
|
export type { PatchBusinessLocation } from './models/PatchBusinessLocation.js';
|
|
30
|
+
export type { PatchBusinessSchema } from './models/PatchBusinessSchema.js';
|
|
36
31
|
export type { PatchBusinessUnit } from './models/PatchBusinessUnit.js';
|
|
37
32
|
export type { PatchOrganisation } from './models/PatchOrganisation.js';
|
|
38
33
|
export type { PatchUser } from './models/PatchUser.js';
|
|
@@ -41,7 +36,7 @@ export type { PriceAlertsDetailSchema } from './models/PriceAlertsDetailSchema.j
|
|
|
41
36
|
export type { RegisterSchema } from './models/RegisterSchema.js';
|
|
42
37
|
export type { Role } from './models/Role.js';
|
|
43
38
|
export type { RoleGroup } from './models/RoleGroup.js';
|
|
44
|
-
export type {
|
|
39
|
+
export type { SearchResultsOrganisationSummarySchema } from './models/SearchResultsOrganisationSummarySchema.js';
|
|
45
40
|
export type { SearchResultsUserDetailSchema } from './models/SearchResultsUserDetailSchema.js';
|
|
46
41
|
export type { SendMagicLogin } from './models/SendMagicLogin.js';
|
|
47
42
|
export type { SwapCognitoUserPoolRequest } from './models/SwapCognitoUserPoolRequest.js';
|
|
@@ -28,7 +28,7 @@ export type BasicSearchUserDetail = {
|
|
|
28
28
|
userTypes: Array<'seller' | 'buyer' | 'advisor'>;
|
|
29
29
|
profiles: Array<{
|
|
30
30
|
organisationId: string;
|
|
31
|
-
|
|
31
|
+
businesses: Array<string>;
|
|
32
32
|
roles: Array<string>;
|
|
33
33
|
}>;
|
|
34
34
|
buyerExFarmPreferences?: Array<{
|
|
@@ -68,14 +68,6 @@ export type BasicSearchUserDetail = {
|
|
|
68
68
|
organisationName?: string;
|
|
69
69
|
authPlatformId?: string;
|
|
70
70
|
status: 'active' | 'pending' | 'inactive' | 'deleted';
|
|
71
|
-
businessUnits: Array<{
|
|
72
|
-
id: string;
|
|
73
|
-
name: string;
|
|
74
|
-
type?: string;
|
|
75
|
-
business: string;
|
|
76
|
-
region: string | null;
|
|
77
|
-
tags: Array<string>;
|
|
78
|
-
}>;
|
|
79
71
|
businesses: Array<string>;
|
|
80
72
|
}>;
|
|
81
73
|
totalDocs?: number;
|
|
@@ -1,23 +1,4 @@
|
|
|
1
1
|
export type BusinessSummary = {
|
|
2
2
|
id: string;
|
|
3
|
-
status: string;
|
|
4
|
-
type: 'trading-entity' | 'farm';
|
|
5
|
-
organisationId: string;
|
|
6
|
-
primary: boolean;
|
|
7
3
|
businessName: string;
|
|
8
|
-
businessUnitId?: string;
|
|
9
|
-
givenName: string;
|
|
10
|
-
familyName: string;
|
|
11
|
-
phone?: {
|
|
12
|
-
callingCode: string;
|
|
13
|
-
number: string;
|
|
14
|
-
};
|
|
15
|
-
email?: string;
|
|
16
|
-
assurance: {
|
|
17
|
-
id: string | null;
|
|
18
|
-
key?: string | null;
|
|
19
|
-
body: 'RT' | 'SQC';
|
|
20
|
-
name?: string | null;
|
|
21
|
-
location?: string | null;
|
|
22
|
-
} | null;
|
|
23
4
|
};
|
|
@@ -2,11 +2,6 @@ export type BusinessUnitsDetails = {
|
|
|
2
2
|
id: string;
|
|
3
3
|
organisationId: string;
|
|
4
4
|
organisationName: string;
|
|
5
|
-
organisationRegionISO?: string;
|
|
6
|
-
tagGroups?: Array<{
|
|
7
|
-
name: string;
|
|
8
|
-
tags: Array<string>;
|
|
9
|
-
}>;
|
|
10
5
|
businessUnits: Array<{
|
|
11
6
|
ordinal: number;
|
|
12
7
|
id: string;
|
|
@@ -17,7 +12,7 @@ export type BusinessUnitsDetails = {
|
|
|
17
12
|
id: string;
|
|
18
13
|
status: string;
|
|
19
14
|
type: 'trading-entity' | 'farm';
|
|
20
|
-
businessUnitId
|
|
15
|
+
businessUnitId?: string;
|
|
21
16
|
organisationId: string;
|
|
22
17
|
organisationName: string;
|
|
23
18
|
locations: Array<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type CreateBusinessSchema = {
|
|
2
2
|
organisationId: string;
|
|
3
3
|
name: string;
|
|
4
4
|
type?: 'trading-entity' | 'farm';
|
|
@@ -42,7 +42,6 @@ export type CreateBusinessUnits = Array<{
|
|
|
42
42
|
lon: number;
|
|
43
43
|
} | null;
|
|
44
44
|
} | null;
|
|
45
|
-
name?: string;
|
|
46
45
|
givenName?: string;
|
|
47
46
|
familyName?: string;
|
|
48
47
|
phoneNumber?: string | null;
|
|
@@ -64,4 +63,4 @@ export type CreateBusinessUnits = Array<{
|
|
|
64
63
|
url: string | null;
|
|
65
64
|
} | null;
|
|
66
65
|
};
|
|
67
|
-
}
|
|
66
|
+
};
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export type CreateOrganisationResponse = {
|
|
2
2
|
organisation?: {
|
|
3
3
|
id: string;
|
|
4
|
+
businessId: string;
|
|
5
|
+
businessUnitId: string;
|
|
6
|
+
createdAtUTC: string;
|
|
7
|
+
name: string;
|
|
4
8
|
location: {
|
|
5
9
|
what3words: string | null;
|
|
6
10
|
address: {
|
|
@@ -20,54 +24,39 @@ export type CreateOrganisationResponse = {
|
|
|
20
24
|
lon: number;
|
|
21
25
|
} | null;
|
|
22
26
|
} | null;
|
|
23
|
-
company: {
|
|
24
|
-
assurance?: {
|
|
25
|
-
id: string | null;
|
|
26
|
-
key?: string | null;
|
|
27
|
-
body: 'RT' | 'SQC';
|
|
28
|
-
name?: string | null;
|
|
29
|
-
location?: string | null;
|
|
30
|
-
} | null;
|
|
31
|
-
id?: string | null;
|
|
32
|
-
bio?: string | null;
|
|
33
|
-
website?: string | null;
|
|
34
|
-
holdingNumber?: string | null;
|
|
35
|
-
number?: string | null;
|
|
36
|
-
salesTaxId?: string | null;
|
|
37
|
-
logo?: {
|
|
38
|
-
id: string;
|
|
39
|
-
url: string | null;
|
|
40
|
-
} | null;
|
|
41
|
-
};
|
|
42
|
-
companyNumber?: string | null;
|
|
43
27
|
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
44
|
-
|
|
28
|
+
status: 'active' | 'pending' | 'suspended';
|
|
29
|
+
companyId: string;
|
|
30
|
+
companyHoldingNumber?: string;
|
|
31
|
+
vatNumber: string;
|
|
32
|
+
bio: string;
|
|
33
|
+
logo: {
|
|
34
|
+
name?: string;
|
|
35
|
+
id: string;
|
|
36
|
+
url?: string | null;
|
|
37
|
+
userId?: string | null;
|
|
38
|
+
userName?: string | null;
|
|
39
|
+
organisationId?: string | null;
|
|
40
|
+
createdAtUTC?: string | null;
|
|
41
|
+
} | null;
|
|
45
42
|
ownerContact: {
|
|
46
|
-
id
|
|
47
|
-
email
|
|
43
|
+
id: string;
|
|
44
|
+
email: string;
|
|
45
|
+
familyName: string;
|
|
46
|
+
givenName: string;
|
|
47
|
+
authPlatformId?: string;
|
|
48
|
+
organisationId: string;
|
|
49
|
+
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
48
50
|
phone?: {
|
|
49
51
|
callingCode: string;
|
|
50
52
|
number: string;
|
|
51
53
|
};
|
|
52
|
-
|
|
53
|
-
givenName?: string;
|
|
54
|
-
authPlatformId?: string;
|
|
55
|
-
impersonate?: string | null;
|
|
54
|
+
pushToken?: string;
|
|
56
55
|
};
|
|
57
56
|
settlementContacts?: Array<{
|
|
58
57
|
name: string;
|
|
59
58
|
email: string;
|
|
60
59
|
}>;
|
|
61
|
-
status: 'active' | 'pending' | 'suspended';
|
|
62
|
-
statusMessage?: string;
|
|
63
|
-
businessUnits: Array<{
|
|
64
|
-
id: string;
|
|
65
|
-
name: string;
|
|
66
|
-
type?: string;
|
|
67
|
-
business: string;
|
|
68
|
-
region: string | null;
|
|
69
|
-
tags: Array<string>;
|
|
70
|
-
}>;
|
|
71
60
|
modules: Array<{
|
|
72
61
|
id: string;
|
|
73
62
|
name?: string | null;
|
|
@@ -75,8 +64,17 @@ export type CreateOrganisationResponse = {
|
|
|
75
64
|
vetted: boolean;
|
|
76
65
|
rejected?: boolean;
|
|
77
66
|
isMerchant?: boolean;
|
|
78
|
-
|
|
67
|
+
assurance?: {
|
|
68
|
+
id: string | null;
|
|
69
|
+
key?: string | null;
|
|
70
|
+
body: 'RT' | 'SQC';
|
|
71
|
+
name?: string | null;
|
|
72
|
+
location?: string | null;
|
|
73
|
+
} | null;
|
|
74
|
+
assuranceId?: string;
|
|
75
|
+
assuranceScheme?: 'RT' | 'SQC';
|
|
79
76
|
salesforceId?: string;
|
|
77
|
+
salesforceUpdates?: Array<string>;
|
|
80
78
|
};
|
|
81
79
|
user?: {
|
|
82
80
|
id: string;
|
|
@@ -107,7 +105,7 @@ export type CreateOrganisationResponse = {
|
|
|
107
105
|
userTypes: Array<'seller' | 'buyer' | 'advisor'>;
|
|
108
106
|
profiles: Array<{
|
|
109
107
|
organisationId: string;
|
|
110
|
-
|
|
108
|
+
businesses: Array<string>;
|
|
111
109
|
roles: Array<string>;
|
|
112
110
|
}>;
|
|
113
111
|
buyerExFarmPreferences?: Array<{
|
|
@@ -147,14 +145,6 @@ export type CreateOrganisationResponse = {
|
|
|
147
145
|
organisationName?: string;
|
|
148
146
|
authPlatformId?: string;
|
|
149
147
|
status: 'active' | 'pending' | 'inactive' | 'deleted';
|
|
150
|
-
businessUnits: Array<{
|
|
151
|
-
id: string;
|
|
152
|
-
name: string;
|
|
153
|
-
type?: string;
|
|
154
|
-
business: string;
|
|
155
|
-
region: string | null;
|
|
156
|
-
tags: Array<string>;
|
|
157
|
-
}>;
|
|
158
148
|
businesses: Array<string>;
|
|
159
149
|
};
|
|
160
150
|
};
|
|
@@ -3,6 +3,10 @@ export type OrganisationExists = {
|
|
|
3
3
|
blockNewConnection?: boolean;
|
|
4
4
|
organisations?: Array<{
|
|
5
5
|
id: string;
|
|
6
|
+
businessId: string;
|
|
7
|
+
businessUnitId: string;
|
|
8
|
+
createdAtUTC: string;
|
|
9
|
+
name: string;
|
|
6
10
|
location: {
|
|
7
11
|
what3words: string | null;
|
|
8
12
|
address: {
|
|
@@ -22,54 +26,39 @@ export type OrganisationExists = {
|
|
|
22
26
|
lon: number;
|
|
23
27
|
} | null;
|
|
24
28
|
} | null;
|
|
25
|
-
company: {
|
|
26
|
-
assurance?: {
|
|
27
|
-
id: string | null;
|
|
28
|
-
key?: string | null;
|
|
29
|
-
body: 'RT' | 'SQC';
|
|
30
|
-
name?: string | null;
|
|
31
|
-
location?: string | null;
|
|
32
|
-
} | null;
|
|
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
29
|
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
46
|
-
|
|
30
|
+
status: 'active' | 'pending' | 'suspended';
|
|
31
|
+
companyId: string;
|
|
32
|
+
companyHoldingNumber?: string;
|
|
33
|
+
vatNumber: string;
|
|
34
|
+
bio: string;
|
|
35
|
+
logo: {
|
|
36
|
+
name?: string;
|
|
37
|
+
id: string;
|
|
38
|
+
url?: string | null;
|
|
39
|
+
userId?: string | null;
|
|
40
|
+
userName?: string | null;
|
|
41
|
+
organisationId?: string | null;
|
|
42
|
+
createdAtUTC?: string | null;
|
|
43
|
+
} | null;
|
|
47
44
|
ownerContact: {
|
|
48
|
-
id
|
|
49
|
-
email
|
|
45
|
+
id: string;
|
|
46
|
+
email: string;
|
|
47
|
+
familyName: string;
|
|
48
|
+
givenName: string;
|
|
49
|
+
authPlatformId?: string;
|
|
50
|
+
organisationId: string;
|
|
51
|
+
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
50
52
|
phone?: {
|
|
51
53
|
callingCode: string;
|
|
52
54
|
number: string;
|
|
53
55
|
};
|
|
54
|
-
|
|
55
|
-
givenName?: string;
|
|
56
|
-
authPlatformId?: string;
|
|
57
|
-
impersonate?: string | null;
|
|
56
|
+
pushToken?: string;
|
|
58
57
|
};
|
|
59
58
|
settlementContacts?: Array<{
|
|
60
59
|
name: string;
|
|
61
60
|
email: string;
|
|
62
61
|
}>;
|
|
63
|
-
status: 'active' | 'pending' | 'suspended';
|
|
64
|
-
statusMessage?: string;
|
|
65
|
-
businessUnits: Array<{
|
|
66
|
-
id: string;
|
|
67
|
-
name: string;
|
|
68
|
-
type?: string;
|
|
69
|
-
business: string;
|
|
70
|
-
region: string | null;
|
|
71
|
-
tags: Array<string>;
|
|
72
|
-
}>;
|
|
73
62
|
modules: Array<{
|
|
74
63
|
id: string;
|
|
75
64
|
name?: string | null;
|
|
@@ -77,7 +66,16 @@ export type OrganisationExists = {
|
|
|
77
66
|
vetted: boolean;
|
|
78
67
|
rejected?: boolean;
|
|
79
68
|
isMerchant?: boolean;
|
|
80
|
-
|
|
69
|
+
assurance?: {
|
|
70
|
+
id: string | null;
|
|
71
|
+
key?: string | null;
|
|
72
|
+
body: 'RT' | 'SQC';
|
|
73
|
+
name?: string | null;
|
|
74
|
+
location?: string | null;
|
|
75
|
+
} | null;
|
|
76
|
+
assuranceId?: string;
|
|
77
|
+
assuranceScheme?: 'RT' | 'SQC';
|
|
81
78
|
salesforceId?: string;
|
|
79
|
+
salesforceUpdates?: Array<string>;
|
|
82
80
|
}>;
|
|
83
81
|
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export type PatchBusinessSchema = {
|
|
2
|
+
name?: string | null;
|
|
3
|
+
type?: 'trading-entity' | 'farm';
|
|
4
|
+
business?: {
|
|
5
|
+
location?: {
|
|
6
|
+
what3words: string | null;
|
|
7
|
+
address: {
|
|
8
|
+
name?: string | null;
|
|
9
|
+
line1: string;
|
|
10
|
+
line2?: string | null;
|
|
11
|
+
line3?: string | null;
|
|
12
|
+
city?: string | null;
|
|
13
|
+
region?: string | null;
|
|
14
|
+
regionISO?: string | null;
|
|
15
|
+
postcode: string;
|
|
16
|
+
countryName?: string | null;
|
|
17
|
+
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
18
|
+
};
|
|
19
|
+
coordinates: {
|
|
20
|
+
lat: number;
|
|
21
|
+
lon: number;
|
|
22
|
+
} | null;
|
|
23
|
+
} | null;
|
|
24
|
+
locationIsCollectionAddress?: boolean;
|
|
25
|
+
givenName?: string;
|
|
26
|
+
familyName?: string;
|
|
27
|
+
phoneNumber?: string | null;
|
|
28
|
+
email?: string;
|
|
29
|
+
holdingNumber?: string | null;
|
|
30
|
+
companyNumber?: string | null;
|
|
31
|
+
vatNumber?: string | null;
|
|
32
|
+
emailDistributionList?: Array<string> | null;
|
|
33
|
+
assurance?: {
|
|
34
|
+
id: string | null;
|
|
35
|
+
key?: string | null;
|
|
36
|
+
body: 'RT' | 'SQC';
|
|
37
|
+
name?: string | null;
|
|
38
|
+
location?: string | null;
|
|
39
|
+
} | null;
|
|
40
|
+
status?: string | null;
|
|
41
|
+
bio?: string | null;
|
|
42
|
+
logo?: {
|
|
43
|
+
id: string;
|
|
44
|
+
url: string | null;
|
|
45
|
+
} | null;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type SearchResultsOrganisationSummarySchema = {
|
|
2
2
|
docs: Array<{
|
|
3
3
|
id: string;
|
|
4
|
+
businessId: string;
|
|
5
|
+
businessUnitId: string;
|
|
6
|
+
createdAtUTC: string;
|
|
7
|
+
name: string;
|
|
4
8
|
location: {
|
|
5
9
|
what3words: string | null;
|
|
6
10
|
address: {
|
|
@@ -20,54 +24,39 @@ export type SearchResultsOrganisationDetailSchema = {
|
|
|
20
24
|
lon: number;
|
|
21
25
|
} | null;
|
|
22
26
|
} | null;
|
|
23
|
-
company: {
|
|
24
|
-
assurance?: {
|
|
25
|
-
id: string | null;
|
|
26
|
-
key?: string | null;
|
|
27
|
-
body: 'RT' | 'SQC';
|
|
28
|
-
name?: string | null;
|
|
29
|
-
location?: string | null;
|
|
30
|
-
} | null;
|
|
31
|
-
id?: string | null;
|
|
32
|
-
bio?: string | null;
|
|
33
|
-
website?: string | null;
|
|
34
|
-
holdingNumber?: string | null;
|
|
35
|
-
number?: string | null;
|
|
36
|
-
salesTaxId?: string | null;
|
|
37
|
-
logo?: {
|
|
38
|
-
id: string;
|
|
39
|
-
url: string | null;
|
|
40
|
-
} | null;
|
|
41
|
-
};
|
|
42
|
-
companyNumber?: string | null;
|
|
43
27
|
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
44
|
-
|
|
28
|
+
status: 'active' | 'pending' | 'suspended';
|
|
29
|
+
companyId: string;
|
|
30
|
+
companyHoldingNumber?: string;
|
|
31
|
+
vatNumber: string;
|
|
32
|
+
bio: string;
|
|
33
|
+
logo: {
|
|
34
|
+
name?: string;
|
|
35
|
+
id: string;
|
|
36
|
+
url?: string | null;
|
|
37
|
+
userId?: string | null;
|
|
38
|
+
userName?: string | null;
|
|
39
|
+
organisationId?: string | null;
|
|
40
|
+
createdAtUTC?: string | null;
|
|
41
|
+
} | null;
|
|
45
42
|
ownerContact: {
|
|
46
|
-
id
|
|
47
|
-
email
|
|
43
|
+
id: string;
|
|
44
|
+
email: string;
|
|
45
|
+
familyName: string;
|
|
46
|
+
givenName: string;
|
|
47
|
+
authPlatformId?: string;
|
|
48
|
+
organisationId: string;
|
|
49
|
+
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
48
50
|
phone?: {
|
|
49
51
|
callingCode: string;
|
|
50
52
|
number: string;
|
|
51
53
|
};
|
|
52
|
-
|
|
53
|
-
givenName?: string;
|
|
54
|
-
authPlatformId?: string;
|
|
55
|
-
impersonate?: string | null;
|
|
54
|
+
pushToken?: string;
|
|
56
55
|
};
|
|
57
56
|
settlementContacts?: Array<{
|
|
58
57
|
name: string;
|
|
59
58
|
email: string;
|
|
60
59
|
}>;
|
|
61
|
-
status: 'active' | 'pending' | 'suspended';
|
|
62
|
-
statusMessage?: string;
|
|
63
|
-
businessUnits: Array<{
|
|
64
|
-
id: string;
|
|
65
|
-
name: string;
|
|
66
|
-
type?: string;
|
|
67
|
-
business: string;
|
|
68
|
-
region: string | null;
|
|
69
|
-
tags: Array<string>;
|
|
70
|
-
}>;
|
|
71
60
|
modules: Array<{
|
|
72
61
|
id: string;
|
|
73
62
|
name?: string | null;
|
|
@@ -75,8 +64,17 @@ export type SearchResultsOrganisationDetailSchema = {
|
|
|
75
64
|
vetted: boolean;
|
|
76
65
|
rejected?: boolean;
|
|
77
66
|
isMerchant?: boolean;
|
|
78
|
-
|
|
67
|
+
assurance?: {
|
|
68
|
+
id: string | null;
|
|
69
|
+
key?: string | null;
|
|
70
|
+
body: 'RT' | 'SQC';
|
|
71
|
+
name?: string | null;
|
|
72
|
+
location?: string | null;
|
|
73
|
+
} | null;
|
|
74
|
+
assuranceId?: string;
|
|
75
|
+
assuranceScheme?: 'RT' | 'SQC';
|
|
79
76
|
salesforceId?: string;
|
|
77
|
+
salesforceUpdates?: Array<string>;
|
|
80
78
|
}>;
|
|
81
79
|
custom?: any;
|
|
82
80
|
totalDocs: number;
|
|
@@ -28,7 +28,7 @@ export type SearchResultsUserDetailSchema = {
|
|
|
28
28
|
userTypes: Array<'seller' | 'buyer' | 'advisor'>;
|
|
29
29
|
profiles: Array<{
|
|
30
30
|
organisationId: string;
|
|
31
|
-
|
|
31
|
+
businesses: Array<string>;
|
|
32
32
|
roles: Array<string>;
|
|
33
33
|
}>;
|
|
34
34
|
buyerExFarmPreferences?: Array<{
|
|
@@ -68,14 +68,6 @@ export type SearchResultsUserDetailSchema = {
|
|
|
68
68
|
organisationName?: string;
|
|
69
69
|
authPlatformId?: string;
|
|
70
70
|
status: 'active' | 'pending' | 'inactive' | 'deleted';
|
|
71
|
-
businessUnits: Array<{
|
|
72
|
-
id: string;
|
|
73
|
-
name: string;
|
|
74
|
-
type?: string;
|
|
75
|
-
business: string;
|
|
76
|
-
region: string | null;
|
|
77
|
-
tags: Array<string>;
|
|
78
|
-
}>;
|
|
79
71
|
businesses: Array<string>;
|
|
80
72
|
}>;
|
|
81
73
|
custom?: any;
|
package/models/UserDetail.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export type UserDetail = {
|
|
|
27
27
|
userTypes: Array<'seller' | 'buyer' | 'advisor'>;
|
|
28
28
|
profiles: Array<{
|
|
29
29
|
organisationId: string;
|
|
30
|
-
|
|
30
|
+
businesses: Array<string>;
|
|
31
31
|
roles: Array<string>;
|
|
32
32
|
}>;
|
|
33
33
|
buyerExFarmPreferences?: Array<{
|
|
@@ -67,13 +67,5 @@ export type UserDetail = {
|
|
|
67
67
|
organisationName?: string;
|
|
68
68
|
authPlatformId?: string;
|
|
69
69
|
status: 'active' | 'pending' | 'inactive' | 'deleted';
|
|
70
|
-
businessUnits: Array<{
|
|
71
|
-
id: string;
|
|
72
|
-
name: string;
|
|
73
|
-
type?: string;
|
|
74
|
-
business: string;
|
|
75
|
-
region: string | null;
|
|
76
|
-
tags: Array<string>;
|
|
77
|
-
}>;
|
|
78
70
|
businesses: Array<string>;
|
|
79
71
|
};
|
package/models/UserProfile.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export type UserProfile = {
|
|
2
2
|
organisation: {
|
|
3
3
|
id: string;
|
|
4
|
+
businessId: string;
|
|
5
|
+
businessUnitId: string;
|
|
6
|
+
createdAtUTC: string;
|
|
7
|
+
name: string;
|
|
4
8
|
location: {
|
|
5
9
|
what3words: string | null;
|
|
6
10
|
address: {
|
|
@@ -20,54 +24,39 @@ export type UserProfile = {
|
|
|
20
24
|
lon: number;
|
|
21
25
|
} | null;
|
|
22
26
|
} | null;
|
|
23
|
-
company: {
|
|
24
|
-
assurance?: {
|
|
25
|
-
id: string | null;
|
|
26
|
-
key?: string | null;
|
|
27
|
-
body: 'RT' | 'SQC';
|
|
28
|
-
name?: string | null;
|
|
29
|
-
location?: string | null;
|
|
30
|
-
} | null;
|
|
31
|
-
id?: string | null;
|
|
32
|
-
bio?: string | null;
|
|
33
|
-
website?: string | null;
|
|
34
|
-
holdingNumber?: string | null;
|
|
35
|
-
number?: string | null;
|
|
36
|
-
salesTaxId?: string | null;
|
|
37
|
-
logo?: {
|
|
38
|
-
id: string;
|
|
39
|
-
url: string | null;
|
|
40
|
-
} | null;
|
|
41
|
-
};
|
|
42
|
-
companyNumber?: string | null;
|
|
43
27
|
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
44
|
-
|
|
28
|
+
status: 'active' | 'pending' | 'suspended';
|
|
29
|
+
companyId: string;
|
|
30
|
+
companyHoldingNumber?: string;
|
|
31
|
+
vatNumber: string;
|
|
32
|
+
bio: string;
|
|
33
|
+
logo: {
|
|
34
|
+
name?: string;
|
|
35
|
+
id: string;
|
|
36
|
+
url?: string | null;
|
|
37
|
+
userId?: string | null;
|
|
38
|
+
userName?: string | null;
|
|
39
|
+
organisationId?: string | null;
|
|
40
|
+
createdAtUTC?: string | null;
|
|
41
|
+
} | null;
|
|
45
42
|
ownerContact: {
|
|
46
|
-
id
|
|
47
|
-
email
|
|
43
|
+
id: string;
|
|
44
|
+
email: string;
|
|
45
|
+
familyName: string;
|
|
46
|
+
givenName: string;
|
|
47
|
+
authPlatformId?: string;
|
|
48
|
+
organisationId: string;
|
|
49
|
+
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
48
50
|
phone?: {
|
|
49
51
|
callingCode: string;
|
|
50
52
|
number: string;
|
|
51
53
|
};
|
|
52
|
-
|
|
53
|
-
givenName?: string;
|
|
54
|
-
authPlatformId?: string;
|
|
55
|
-
impersonate?: string | null;
|
|
54
|
+
pushToken?: string;
|
|
56
55
|
};
|
|
57
56
|
settlementContacts?: Array<{
|
|
58
57
|
name: string;
|
|
59
58
|
email: string;
|
|
60
59
|
}>;
|
|
61
|
-
status: 'active' | 'pending' | 'suspended';
|
|
62
|
-
statusMessage?: string;
|
|
63
|
-
businessUnits: Array<{
|
|
64
|
-
id: string;
|
|
65
|
-
name: string;
|
|
66
|
-
type?: string;
|
|
67
|
-
business: string;
|
|
68
|
-
region: string | null;
|
|
69
|
-
tags: Array<string>;
|
|
70
|
-
}>;
|
|
71
60
|
modules: Array<{
|
|
72
61
|
id: string;
|
|
73
62
|
name?: string | null;
|
|
@@ -75,8 +64,17 @@ export type UserProfile = {
|
|
|
75
64
|
vetted: boolean;
|
|
76
65
|
rejected?: boolean;
|
|
77
66
|
isMerchant?: boolean;
|
|
78
|
-
|
|
67
|
+
assurance?: {
|
|
68
|
+
id: string | null;
|
|
69
|
+
key?: string | null;
|
|
70
|
+
body: 'RT' | 'SQC';
|
|
71
|
+
name?: string | null;
|
|
72
|
+
location?: string | null;
|
|
73
|
+
} | null;
|
|
74
|
+
assuranceId?: string;
|
|
75
|
+
assuranceScheme?: 'RT' | 'SQC';
|
|
79
76
|
salesforceId?: string;
|
|
77
|
+
salesforceUpdates?: Array<string>;
|
|
80
78
|
} | null;
|
|
81
79
|
user: {
|
|
82
80
|
id: string;
|
|
@@ -107,7 +105,7 @@ export type UserProfile = {
|
|
|
107
105
|
userTypes: Array<'seller' | 'buyer' | 'advisor'>;
|
|
108
106
|
profiles: Array<{
|
|
109
107
|
organisationId: string;
|
|
110
|
-
|
|
108
|
+
businesses: Array<string>;
|
|
111
109
|
roles: Array<string>;
|
|
112
110
|
}>;
|
|
113
111
|
buyerExFarmPreferences?: Array<{
|
|
@@ -147,14 +145,6 @@ export type UserProfile = {
|
|
|
147
145
|
organisationName?: string;
|
|
148
146
|
authPlatformId?: string;
|
|
149
147
|
status: 'active' | 'pending' | 'inactive' | 'deleted';
|
|
150
|
-
businessUnits: Array<{
|
|
151
|
-
id: string;
|
|
152
|
-
name: string;
|
|
153
|
-
type?: string;
|
|
154
|
-
business: string;
|
|
155
|
-
region: string | null;
|
|
156
|
-
tags: Array<string>;
|
|
157
|
-
}>;
|
|
158
148
|
businesses: Array<string>;
|
|
159
149
|
};
|
|
160
150
|
access: {
|
package/package.json
CHANGED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export type BusinessUnitsSummary = {
|
|
2
|
-
organisationId: string;
|
|
3
|
-
organisationName: string;
|
|
4
|
-
tagGroups?: Array<{
|
|
5
|
-
name: string;
|
|
6
|
-
tags: Array<string>;
|
|
7
|
-
}>;
|
|
8
|
-
businessUnits: Array<{
|
|
9
|
-
id: string;
|
|
10
|
-
name: string;
|
|
11
|
-
type?: string;
|
|
12
|
-
business: string;
|
|
13
|
-
region: string | null;
|
|
14
|
-
tags: Array<string>;
|
|
15
|
-
}>;
|
|
16
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export type BuyerPreferencesSchema = {
|
|
2
|
-
preferences: Array<{
|
|
3
|
-
commodity: number | null;
|
|
4
|
-
grades: Array<number>;
|
|
5
|
-
regions: Array<string>;
|
|
6
|
-
superRegions?: Array<'south' | 'midlands-wales' | 'north' | 'scotland'>;
|
|
7
|
-
enabled: boolean;
|
|
8
|
-
}>;
|
|
9
|
-
notificationsEnabled: boolean;
|
|
10
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export type CreateBusinessCollectionAddressSchema = {
|
|
2
|
-
reference: 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
|
-
} | null;
|
|
21
|
-
} | null;
|
|
22
|
-
givenName: string;
|
|
23
|
-
familyName: string;
|
|
24
|
-
phone?: {
|
|
25
|
-
callingCode: string;
|
|
26
|
-
number: string;
|
|
27
|
-
};
|
|
28
|
-
phoneNumber?: string;
|
|
29
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,79 +0,0 @@
|
|
|
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
|
-
} | null;
|
|
21
|
-
} | null;
|
|
22
|
-
company: {
|
|
23
|
-
assurance?: {
|
|
24
|
-
id: string | null;
|
|
25
|
-
key?: string | null;
|
|
26
|
-
body: 'RT' | 'SQC';
|
|
27
|
-
name?: string | null;
|
|
28
|
-
location?: string | null;
|
|
29
|
-
} | null;
|
|
30
|
-
id?: string | null;
|
|
31
|
-
bio?: string | null;
|
|
32
|
-
website?: string | null;
|
|
33
|
-
holdingNumber?: string | null;
|
|
34
|
-
number?: string | null;
|
|
35
|
-
salesTaxId?: string | null;
|
|
36
|
-
logo?: {
|
|
37
|
-
id: string;
|
|
38
|
-
url: string | null;
|
|
39
|
-
} | null;
|
|
40
|
-
};
|
|
41
|
-
companyNumber?: string | null;
|
|
42
|
-
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
43
|
-
name: string;
|
|
44
|
-
ownerContact: {
|
|
45
|
-
id?: string;
|
|
46
|
-
email?: string;
|
|
47
|
-
phone?: {
|
|
48
|
-
callingCode: string;
|
|
49
|
-
number: string;
|
|
50
|
-
};
|
|
51
|
-
familyName?: string;
|
|
52
|
-
givenName?: string;
|
|
53
|
-
authPlatformId?: string;
|
|
54
|
-
impersonate?: string | null;
|
|
55
|
-
};
|
|
56
|
-
settlementContacts?: Array<{
|
|
57
|
-
name: string;
|
|
58
|
-
email: string;
|
|
59
|
-
}>;
|
|
60
|
-
status: 'active' | 'pending' | 'suspended';
|
|
61
|
-
statusMessage?: string;
|
|
62
|
-
businessUnits: Array<{
|
|
63
|
-
id: string;
|
|
64
|
-
name: string;
|
|
65
|
-
type?: string;
|
|
66
|
-
business: string;
|
|
67
|
-
region: string | null;
|
|
68
|
-
tags: Array<string>;
|
|
69
|
-
}>;
|
|
70
|
-
modules: Array<{
|
|
71
|
-
id: string;
|
|
72
|
-
name?: string | null;
|
|
73
|
-
}>;
|
|
74
|
-
vetted: boolean;
|
|
75
|
-
rejected?: boolean;
|
|
76
|
-
isMerchant?: boolean;
|
|
77
|
-
createdAtUTC: string;
|
|
78
|
-
salesforceId?: string;
|
|
79
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export type PatchBusinessCollectionAddressSchema = {
|
|
2
|
-
reference?: 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
|
-
} | null;
|
|
21
|
-
} | null;
|
|
22
|
-
givenName?: string;
|
|
23
|
-
familyName?: string;
|
|
24
|
-
phone?: {
|
|
25
|
-
callingCode: string;
|
|
26
|
-
number: string;
|
|
27
|
-
};
|
|
28
|
-
phoneNumber?: string;
|
|
29
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|