@hectare/platform.clients.customers 1.1.121 → 1.1.123
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 +4 -12
- 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/CreateDriverUser.d.ts +3 -0
- package/models/OrganisationExists.d.ts +33 -45
- package/models/OrganisationSummary.d.ts +5 -15
- package/models/PatchBusinessSchema.d.ts +47 -0
- package/models/PatchOrganisation.d.ts +0 -49
- package/models/RegisterSchema.d.ts +1 -1
- package/models/{SearchResultsOrganisationDetailSchema.d.ts → SearchResultsOrganisationSummarySchema.d.ts} +34 -46
- package/models/SearchResultsUserDetailSchema.d.ts +1 -9
- package/models/UserBasicInfo.d.ts +0 -33
- package/models/UserBasicInfoWithStatsSchema.d.ts +0 -33
- package/models/UserDetail.d.ts +1 -9
- package/models/UserProfile.d.ts +34 -54
- 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/CreateBusinessUnits.js +0 -1
- package/models/CreateOrganisation.d.ts +0 -61
- package/models/CreateOrganisation.js +0 -1
- package/models/CreateOrganisationResponse.d.ts +0 -160
- package/models/CreateOrganisationResponse.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/SwapCognitoUserPoolRequest.d.ts +0 -4
- package/models/SwapCognitoUserPoolRequest.js +0 -1
- package/models/SwapCognitoUserPoolResponse.d.ts +0 -5
- package/models/SwapCognitoUserPoolResponse.js +0 -1
- /package/models/{BusinessUnitSummary.js → CreateBusinessSchema.js} +0 -0
- /package/models/{BusinessUnitsSummary.js → CreateDriverUser.js} +0 -0
- /package/models/{BuyerPreferencesSchema.js → PatchBusinessSchema.js} +0 -0
- /package/models/{CreateBusinessCollectionAddressSchema.js → SearchResultsOrganisationSummarySchema.js} +0 -0
package/index.d.ts
CHANGED
|
@@ -5,19 +5,14 @@ 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 {
|
|
19
|
-
export type { CreateOrganisation } from './models/CreateOrganisation.js';
|
|
20
|
-
export type { CreateOrganisationResponse } from './models/CreateOrganisationResponse.js';
|
|
15
|
+
export type { CreateDriverUser } from './models/CreateDriverUser.js';
|
|
21
16
|
export type { CreateOrUpdatePriceAlertsSchema } from './models/CreateOrUpdatePriceAlertsSchema.js';
|
|
22
17
|
export type { CreateUser } from './models/CreateUser.js';
|
|
23
18
|
export type { CustomerConfig } from './models/CustomerConfig.js';
|
|
@@ -28,11 +23,10 @@ export type { LinkUser } from './models/LinkUser.js';
|
|
|
28
23
|
export type { LoginForm } from './models/LoginForm.js';
|
|
29
24
|
export type { LoginSuccess } from './models/LoginSuccess.js';
|
|
30
25
|
export type { LoginTokens } from './models/LoginTokens.js';
|
|
31
|
-
export type { OrganisationDetail } from './models/OrganisationDetail.js';
|
|
32
26
|
export type { OrganisationExists } from './models/OrganisationExists.js';
|
|
33
27
|
export type { OrganisationSummary } from './models/OrganisationSummary.js';
|
|
34
|
-
export type { PatchBusinessCollectionAddressSchema } from './models/PatchBusinessCollectionAddressSchema.js';
|
|
35
28
|
export type { PatchBusinessLocation } from './models/PatchBusinessLocation.js';
|
|
29
|
+
export type { PatchBusinessSchema } from './models/PatchBusinessSchema.js';
|
|
36
30
|
export type { PatchBusinessUnit } from './models/PatchBusinessUnit.js';
|
|
37
31
|
export type { PatchOrganisation } from './models/PatchOrganisation.js';
|
|
38
32
|
export type { PatchUser } from './models/PatchUser.js';
|
|
@@ -41,11 +35,9 @@ export type { PriceAlertsDetailSchema } from './models/PriceAlertsDetailSchema.j
|
|
|
41
35
|
export type { RegisterSchema } from './models/RegisterSchema.js';
|
|
42
36
|
export type { Role } from './models/Role.js';
|
|
43
37
|
export type { RoleGroup } from './models/RoleGroup.js';
|
|
44
|
-
export type {
|
|
38
|
+
export type { SearchResultsOrganisationSummarySchema } from './models/SearchResultsOrganisationSummarySchema.js';
|
|
45
39
|
export type { SearchResultsUserDetailSchema } from './models/SearchResultsUserDetailSchema.js';
|
|
46
40
|
export type { SendMagicLogin } from './models/SendMagicLogin.js';
|
|
47
|
-
export type { SwapCognitoUserPoolRequest } from './models/SwapCognitoUserPoolRequest.js';
|
|
48
|
-
export type { SwapCognitoUserPoolResponse } from './models/SwapCognitoUserPoolResponse.js';
|
|
49
41
|
export type { UserAccess } from './models/UserAccess.js';
|
|
50
42
|
export type { UserBasicInfo } from './models/UserBasicInfo.js';
|
|
51
43
|
export type { UserBasicInfoWithStatsSchema } from './models/UserBasicInfoWithStatsSchema.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
|
+
};
|
|
@@ -3,6 +3,9 @@ export type OrganisationExists = {
|
|
|
3
3
|
blockNewConnection?: boolean;
|
|
4
4
|
organisations?: Array<{
|
|
5
5
|
id: string;
|
|
6
|
+
businessId: string;
|
|
7
|
+
createdAtUTC: string;
|
|
8
|
+
name: string;
|
|
6
9
|
location: {
|
|
7
10
|
what3words: string | null;
|
|
8
11
|
address: {
|
|
@@ -22,62 +25,47 @@ export type OrganisationExists = {
|
|
|
22
25
|
lon: number;
|
|
23
26
|
} | null;
|
|
24
27
|
} | 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
28
|
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
46
|
-
|
|
29
|
+
status: 'active' | 'pending' | 'suspended';
|
|
30
|
+
bio: string;
|
|
31
|
+
companyId: string;
|
|
32
|
+
logo: {
|
|
33
|
+
name?: string;
|
|
34
|
+
id: string;
|
|
35
|
+
url?: string | null;
|
|
36
|
+
userId?: string | null;
|
|
37
|
+
userName?: string | null;
|
|
38
|
+
organisationId?: string | null;
|
|
39
|
+
createdAtUTC?: string | null;
|
|
40
|
+
} | null;
|
|
47
41
|
ownerContact: {
|
|
48
|
-
id
|
|
49
|
-
email
|
|
42
|
+
id: string;
|
|
43
|
+
email: string;
|
|
44
|
+
familyName: string;
|
|
45
|
+
givenName: string;
|
|
46
|
+
authPlatformId?: string;
|
|
47
|
+
organisationId: string;
|
|
48
|
+
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
50
49
|
phone?: {
|
|
51
50
|
callingCode: string;
|
|
52
51
|
number: string;
|
|
53
52
|
};
|
|
54
|
-
|
|
55
|
-
givenName?: string;
|
|
56
|
-
authPlatformId?: string;
|
|
57
|
-
impersonate?: string | null;
|
|
53
|
+
pushToken?: string;
|
|
58
54
|
};
|
|
59
|
-
settlementContacts?: Array<{
|
|
60
|
-
name: string;
|
|
61
|
-
email: string;
|
|
62
|
-
}>;
|
|
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
55
|
modules: Array<{
|
|
74
56
|
id: string;
|
|
75
57
|
name?: string | null;
|
|
76
58
|
}>;
|
|
77
59
|
vetted: boolean;
|
|
78
|
-
rejected
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
60
|
+
rejected: boolean;
|
|
61
|
+
assurance: {
|
|
62
|
+
id: string | null;
|
|
63
|
+
key?: string | null;
|
|
64
|
+
body: 'RT' | 'SQC';
|
|
65
|
+
name?: string | null;
|
|
66
|
+
location?: string | null;
|
|
67
|
+
} | null;
|
|
68
|
+
salesforceId: string;
|
|
69
|
+
salesforceUpdates: Array<string>;
|
|
82
70
|
}>;
|
|
83
71
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export type OrganisationSummary = {
|
|
2
2
|
id: string;
|
|
3
3
|
businessId: string;
|
|
4
|
-
businessUnitId: string;
|
|
5
4
|
createdAtUTC: string;
|
|
6
5
|
name: string;
|
|
7
6
|
location: {
|
|
@@ -25,10 +24,8 @@ export type OrganisationSummary = {
|
|
|
25
24
|
} | null;
|
|
26
25
|
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
27
26
|
status: 'active' | 'pending' | 'suspended';
|
|
28
|
-
companyId: string;
|
|
29
|
-
companyHoldingNumber?: string;
|
|
30
|
-
vatNumber: string;
|
|
31
27
|
bio: string;
|
|
28
|
+
companyId: string;
|
|
32
29
|
logo: {
|
|
33
30
|
name?: string;
|
|
34
31
|
id: string;
|
|
@@ -52,26 +49,19 @@ export type OrganisationSummary = {
|
|
|
52
49
|
};
|
|
53
50
|
pushToken?: string;
|
|
54
51
|
};
|
|
55
|
-
settlementContacts?: Array<{
|
|
56
|
-
name: string;
|
|
57
|
-
email: string;
|
|
58
|
-
}>;
|
|
59
52
|
modules: Array<{
|
|
60
53
|
id: string;
|
|
61
54
|
name?: string | null;
|
|
62
55
|
}>;
|
|
63
56
|
vetted: boolean;
|
|
64
|
-
rejected
|
|
65
|
-
|
|
66
|
-
assurance?: {
|
|
57
|
+
rejected: boolean;
|
|
58
|
+
assurance: {
|
|
67
59
|
id: string | null;
|
|
68
60
|
key?: string | null;
|
|
69
61
|
body: 'RT' | 'SQC';
|
|
70
62
|
name?: string | null;
|
|
71
63
|
location?: string | null;
|
|
72
64
|
} | null;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
salesforceId?: string;
|
|
76
|
-
salesforceUpdates?: Array<string>;
|
|
65
|
+
salesforceId: string;
|
|
66
|
+
salesforceUpdates: Array<string>;
|
|
77
67
|
};
|
|
@@ -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,77 +1,28 @@
|
|
|
1
1
|
export type PatchOrganisation = {
|
|
2
|
-
location?: {
|
|
3
|
-
what3words: string | null;
|
|
4
|
-
address: {
|
|
5
|
-
name?: string | null;
|
|
6
|
-
line1: string;
|
|
7
|
-
line2?: string | null;
|
|
8
|
-
line3?: string | null;
|
|
9
|
-
city?: string | null;
|
|
10
|
-
region?: string | null;
|
|
11
|
-
regionISO?: string | null;
|
|
12
|
-
postcode: string;
|
|
13
|
-
countryName?: string | null;
|
|
14
|
-
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
15
|
-
};
|
|
16
|
-
coordinates: {
|
|
17
|
-
lat: number;
|
|
18
|
-
lon: number;
|
|
19
|
-
} | null;
|
|
20
|
-
} | null;
|
|
21
2
|
company?: {
|
|
22
|
-
assurance?: {
|
|
23
|
-
id: string | null;
|
|
24
|
-
key?: string | null;
|
|
25
|
-
body: 'RT' | 'SQC';
|
|
26
|
-
name?: string | null;
|
|
27
|
-
location?: string | null;
|
|
28
|
-
} | null;
|
|
29
3
|
id?: string | null;
|
|
30
4
|
bio?: string | null;
|
|
31
5
|
website?: string | null;
|
|
32
|
-
holdingNumber?: string | null;
|
|
33
|
-
number?: string | null;
|
|
34
|
-
salesTaxId?: string | null;
|
|
35
6
|
logo?: {
|
|
36
7
|
id: string;
|
|
37
8
|
url: string | null;
|
|
38
9
|
} | null;
|
|
39
10
|
} | null;
|
|
40
11
|
name?: string | null;
|
|
41
|
-
countryISO?: 'GB' | 'US' | 'ZA' | 'FR';
|
|
42
12
|
ownerContact?: {
|
|
43
13
|
phone: string | null;
|
|
44
14
|
email: string;
|
|
45
15
|
familyName: string;
|
|
46
16
|
givenName: string;
|
|
47
17
|
} | null;
|
|
48
|
-
contacts?: Array<{
|
|
49
|
-
phone: string | null;
|
|
50
|
-
email: string;
|
|
51
|
-
familyName: string;
|
|
52
|
-
givenName: string;
|
|
53
|
-
} | null>;
|
|
54
|
-
organisers?: Array<string>;
|
|
55
18
|
salesforceId?: string | null;
|
|
56
19
|
modules?: Array<{
|
|
57
20
|
id: string;
|
|
58
21
|
name?: string | null;
|
|
59
22
|
}>;
|
|
60
23
|
signupPurpose?: Array<number>;
|
|
61
|
-
companyNumber?: string | null;
|
|
62
|
-
companySalesTaxId?: string | null;
|
|
63
|
-
settlementContacts?: Array<{
|
|
64
|
-
name: string;
|
|
65
|
-
email: string;
|
|
66
|
-
}> | null;
|
|
67
|
-
logo?: {
|
|
68
|
-
id: string;
|
|
69
|
-
url: string | null;
|
|
70
|
-
} | null;
|
|
71
24
|
status?: string | null;
|
|
72
|
-
statusMessage?: string | null;
|
|
73
25
|
salesforceUpdates?: Array<string> | null;
|
|
74
26
|
vetted?: boolean;
|
|
75
|
-
isMerchant?: boolean;
|
|
76
27
|
rejected?: boolean;
|
|
77
28
|
};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type SearchResultsOrganisationSummarySchema = {
|
|
2
2
|
docs: Array<{
|
|
3
3
|
id: string;
|
|
4
|
+
businessId: string;
|
|
5
|
+
createdAtUTC: string;
|
|
6
|
+
name: string;
|
|
4
7
|
location: {
|
|
5
8
|
what3words: string | null;
|
|
6
9
|
address: {
|
|
@@ -20,63 +23,48 @@ export type SearchResultsOrganisationDetailSchema = {
|
|
|
20
23
|
lon: number;
|
|
21
24
|
} | null;
|
|
22
25
|
} | 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
26
|
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
44
|
-
|
|
27
|
+
status: 'active' | 'pending' | 'suspended';
|
|
28
|
+
bio: string;
|
|
29
|
+
companyId: string;
|
|
30
|
+
logo: {
|
|
31
|
+
name?: string;
|
|
32
|
+
id: string;
|
|
33
|
+
url?: string | null;
|
|
34
|
+
userId?: string | null;
|
|
35
|
+
userName?: string | null;
|
|
36
|
+
organisationId?: string | null;
|
|
37
|
+
createdAtUTC?: string | null;
|
|
38
|
+
} | null;
|
|
45
39
|
ownerContact: {
|
|
46
|
-
id
|
|
47
|
-
email
|
|
40
|
+
id: string;
|
|
41
|
+
email: string;
|
|
42
|
+
familyName: string;
|
|
43
|
+
givenName: string;
|
|
44
|
+
authPlatformId?: string;
|
|
45
|
+
organisationId: string;
|
|
46
|
+
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
48
47
|
phone?: {
|
|
49
48
|
callingCode: string;
|
|
50
49
|
number: string;
|
|
51
50
|
};
|
|
52
|
-
|
|
53
|
-
givenName?: string;
|
|
54
|
-
authPlatformId?: string;
|
|
55
|
-
impersonate?: string | null;
|
|
51
|
+
pushToken?: string;
|
|
56
52
|
};
|
|
57
|
-
settlementContacts?: Array<{
|
|
58
|
-
name: string;
|
|
59
|
-
email: string;
|
|
60
|
-
}>;
|
|
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
53
|
modules: Array<{
|
|
72
54
|
id: string;
|
|
73
55
|
name?: string | null;
|
|
74
56
|
}>;
|
|
75
57
|
vetted: boolean;
|
|
76
|
-
rejected
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
58
|
+
rejected: boolean;
|
|
59
|
+
assurance: {
|
|
60
|
+
id: string | null;
|
|
61
|
+
key?: string | null;
|
|
62
|
+
body: 'RT' | 'SQC';
|
|
63
|
+
name?: string | null;
|
|
64
|
+
location?: string | null;
|
|
65
|
+
} | null;
|
|
66
|
+
salesforceId: string;
|
|
67
|
+
salesforceUpdates: Array<string>;
|
|
80
68
|
}>;
|
|
81
69
|
custom?: any;
|
|
82
70
|
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;
|
|
@@ -3,7 +3,6 @@ export type UserBasicInfo = {
|
|
|
3
3
|
givenName: string;
|
|
4
4
|
familyName: string;
|
|
5
5
|
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
6
|
-
organisationName?: string;
|
|
7
6
|
organisationId?: string;
|
|
8
7
|
email: string;
|
|
9
8
|
phone: {
|
|
@@ -11,38 +10,6 @@ export type UserBasicInfo = {
|
|
|
11
10
|
number: string;
|
|
12
11
|
};
|
|
13
12
|
pushToken?: string;
|
|
14
|
-
organisation: {
|
|
15
|
-
id: string;
|
|
16
|
-
name: string;
|
|
17
|
-
bio: string;
|
|
18
|
-
logo: {
|
|
19
|
-
id?: string;
|
|
20
|
-
url?: string;
|
|
21
|
-
};
|
|
22
|
-
location: {
|
|
23
|
-
what3words: string | null;
|
|
24
|
-
address: {
|
|
25
|
-
name?: string | null;
|
|
26
|
-
line1: string;
|
|
27
|
-
line2?: string | null;
|
|
28
|
-
line3?: string | null;
|
|
29
|
-
city?: string | null;
|
|
30
|
-
region?: string | null;
|
|
31
|
-
regionISO?: string | null;
|
|
32
|
-
postcode: string;
|
|
33
|
-
countryName?: string | null;
|
|
34
|
-
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
35
|
-
};
|
|
36
|
-
coordinates: {
|
|
37
|
-
lat: number;
|
|
38
|
-
lon: number;
|
|
39
|
-
} | null;
|
|
40
|
-
} | null;
|
|
41
|
-
modules?: Array<{
|
|
42
|
-
id: string;
|
|
43
|
-
name?: string | null;
|
|
44
|
-
}>;
|
|
45
|
-
};
|
|
46
13
|
buyerExFarmPreferences?: Array<{
|
|
47
14
|
id: number;
|
|
48
15
|
commodityId: number;
|