@hectare/platform.clients.customers 1.1.120 → 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.
Files changed (33) hide show
  1. package/index.d.ts +3 -9
  2. package/models/BasicSearchUserDetail.d.ts +1 -9
  3. package/models/BusinessDetail.d.ts +1 -1
  4. package/models/BusinessSummary.d.ts +0 -19
  5. package/models/BusinessUnitsDetail.d.ts +1 -1
  6. package/models/BusinessUnitsDetails.d.ts +1 -6
  7. package/models/ContactDetail.d.ts +1 -1
  8. package/models/{CreateBusinessUnits.d.ts → CreateBusinessSchema.d.ts} +2 -3
  9. package/models/CreateBusinessUnit.d.ts +0 -1
  10. package/models/CreateOrganisationResponse.d.ts +37 -47
  11. package/models/OrganisationExists.d.ts +36 -38
  12. package/models/PatchBusinessSchema.d.ts +47 -0
  13. package/models/{SearchResultsOrganisationDetailSchema.d.ts → SearchResultsOrganisationSummarySchema.d.ts} +37 -39
  14. package/models/SearchResultsUserDetailSchema.d.ts +1 -9
  15. package/models/UserDetail.d.ts +1 -9
  16. package/models/UserProfile.d.ts +37 -47
  17. package/package.json +1 -1
  18. package/models/BusinessUnitSummary.d.ts +0 -8
  19. package/models/BusinessUnitsSummary.d.ts +0 -16
  20. package/models/BuyerPreferencesSchema.d.ts +0 -10
  21. package/models/CreateBusinessCollectionAddressSchema.d.ts +0 -29
  22. package/models/CreateBusinessCollectionAddressSchema.js +0 -1
  23. package/models/CreateBusinessUnits.js +0 -1
  24. package/models/CreateUnvettedOrganisationSchema.d.ts +0 -20
  25. package/models/CreateUnvettedOrganisationSchema.js +0 -1
  26. package/models/OrganisationDetail.d.ts +0 -79
  27. package/models/OrganisationDetail.js +0 -1
  28. package/models/PatchBusinessCollectionAddressSchema.d.ts +0 -29
  29. package/models/PatchBusinessCollectionAddressSchema.js +0 -1
  30. package/models/SearchResultsOrganisationDetailSchema.js +0 -1
  31. /package/models/{BusinessUnitSummary.js → CreateBusinessSchema.js} +0 -0
  32. /package/models/{BusinessUnitsSummary.js → PatchBusinessSchema.js} +0 -0
  33. /package/models/{BuyerPreferencesSchema.js → SearchResultsOrganisationSummarySchema.js} +0 -0
package/index.d.ts CHANGED
@@ -5,21 +5,16 @@ 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';
22
- export type { CreateUnvettedOrganisationSchema } from './models/CreateUnvettedOrganisationSchema.js';
23
18
  export type { CreateUser } from './models/CreateUser.js';
24
19
  export type { CustomerConfig } from './models/CustomerConfig.js';
25
20
  export type { ForgottenPassword } from './models/ForgottenPassword.js';
@@ -29,11 +24,10 @@ export type { LinkUser } from './models/LinkUser.js';
29
24
  export type { LoginForm } from './models/LoginForm.js';
30
25
  export type { LoginSuccess } from './models/LoginSuccess.js';
31
26
  export type { LoginTokens } from './models/LoginTokens.js';
32
- export type { OrganisationDetail } from './models/OrganisationDetail.js';
33
27
  export type { OrganisationExists } from './models/OrganisationExists.js';
34
28
  export type { OrganisationSummary } from './models/OrganisationSummary.js';
35
- export type { PatchBusinessCollectionAddressSchema } from './models/PatchBusinessCollectionAddressSchema.js';
36
29
  export type { PatchBusinessLocation } from './models/PatchBusinessLocation.js';
30
+ export type { PatchBusinessSchema } from './models/PatchBusinessSchema.js';
37
31
  export type { PatchBusinessUnit } from './models/PatchBusinessUnit.js';
38
32
  export type { PatchOrganisation } from './models/PatchOrganisation.js';
39
33
  export type { PatchUser } from './models/PatchUser.js';
@@ -42,7 +36,7 @@ export type { PriceAlertsDetailSchema } from './models/PriceAlertsDetailSchema.j
42
36
  export type { RegisterSchema } from './models/RegisterSchema.js';
43
37
  export type { Role } from './models/Role.js';
44
38
  export type { RoleGroup } from './models/RoleGroup.js';
45
- export type { SearchResultsOrganisationDetailSchema } from './models/SearchResultsOrganisationDetailSchema.js';
39
+ export type { SearchResultsOrganisationSummarySchema } from './models/SearchResultsOrganisationSummarySchema.js';
46
40
  export type { SearchResultsUserDetailSchema } from './models/SearchResultsUserDetailSchema.js';
47
41
  export type { SendMagicLogin } from './models/SendMagicLogin.js';
48
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
- businessUnits: Array<string>;
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;
@@ -2,7 +2,7 @@ export type BusinessDetail = {
2
2
  id: string;
3
3
  status: string;
4
4
  type: 'trading-entity' | 'farm';
5
- businessUnitId: string;
5
+ businessUnitId?: string;
6
6
  organisationId: string;
7
7
  organisationName: string;
8
8
  locations: Array<{
@@ -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
  };
@@ -8,7 +8,7 @@ export type BusinessUnitsDetail = {
8
8
  id: string;
9
9
  status: string;
10
10
  type: 'trading-entity' | 'farm';
11
- businessUnitId: string;
11
+ businessUnitId?: string;
12
12
  organisationId: string;
13
13
  organisationName: string;
14
14
  locations: Array<{
@@ -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: string;
15
+ businessUnitId?: string;
21
16
  organisationId: string;
22
17
  organisationName: string;
23
18
  locations: Array<{
@@ -10,7 +10,7 @@ export type ContactDetail = {
10
10
  authPlatformId?: string;
11
11
  profile?: {
12
12
  organisationId: string;
13
- businessUnits: Array<string>;
13
+ businesses: Array<string>;
14
14
  roles: Array<string>;
15
15
  } | null;
16
16
  };
@@ -1,4 +1,4 @@
1
- export type CreateBusinessUnits = Array<{
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
+ };
@@ -42,7 +42,6 @@ export type CreateBusinessUnit = {
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;
@@ -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
- name: string;
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?: string;
47
- email?: string;
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
- familyName?: string;
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
- createdAtUTC: string;
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
- businessUnits: Array<string>;
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
- name: string;
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?: string;
49
- email?: string;
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
- familyName?: string;
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
- createdAtUTC: string;
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 SearchResultsOrganisationDetailSchema = {
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
- name: string;
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?: string;
47
- email?: string;
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
- familyName?: string;
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
- createdAtUTC: string;
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
- businessUnits: Array<string>;
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;
@@ -27,7 +27,7 @@ export type UserDetail = {
27
27
  userTypes: Array<'seller' | 'buyer' | 'advisor'>;
28
28
  profiles: Array<{
29
29
  organisationId: string;
30
- businessUnits: Array<string>;
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
  };
@@ -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
- name: string;
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?: string;
47
- email?: string;
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
- familyName?: string;
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
- createdAtUTC: string;
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
- businessUnits: Array<string>;
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@hectare/platform.clients.customers",
3
- "version": "1.1.120",
3
+ "version": "1.1.122",
4
4
  "main": "index.js",
5
5
  "exported": true,
6
6
  "types": "index.d.ts",
@@ -1,8 +0,0 @@
1
- export type BusinessUnitSummary = {
2
- id: string;
3
- name: string;
4
- type?: string;
5
- business: string;
6
- region: string | null;
7
- tags: Array<string>;
8
- };
@@ -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,20 +0,0 @@
1
- export type CreateUnvettedOrganisationSchema = {
2
- givenName: string;
3
- familyName: string;
4
- email: string;
5
- phone: string | null;
6
- businessName: string;
7
- referralCode?: string;
8
- modules: Array<string>;
9
- signupPurpose: Array<number>;
10
- holdingOrMembershipNumber?: string | null;
11
- assuranceBody?: 'RT' | 'SQC' | null;
12
- assuranceKey?: string | null;
13
- assurance?: {
14
- id: string | null;
15
- key?: string | null;
16
- body: 'RT' | 'SQC';
17
- name?: string | null;
18
- location?: string | null;
19
- } | null;
20
- };
@@ -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 {};