@hectare/platform.clients.customers 1.1.35 → 1.1.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -31,7 +31,6 @@ export type { PatchBusinessUnit } from './models/PatchBusinessUnit.js';
31
31
  export type { PatchOrganisation } from './models/PatchOrganisation.js';
32
32
  export type { PatchOrganisationAdvancePay } from './models/PatchOrganisationAdvancePay.js';
33
33
  export type { PatchUser } from './models/PatchUser.js';
34
- export type { RedTractorCertificate } from './models/RedTractorCertificate.js';
35
34
  export type { Role } from './models/Role.js';
36
35
  export type { RoleGroup } from './models/RoleGroup.js';
37
36
  export type { SearchResultsOrganisationDetailSchema } from './models/SearchResultsOrganisationDetailSchema.js';
@@ -49,12 +49,11 @@ export type BusinessDetail = {
49
49
  };
50
50
  email?: string;
51
51
  tags?: Array<string>;
52
- locationTag?: string;
53
- managementTag?: string;
54
52
  holdingNumber?: string;
55
53
  assurance?: {
56
54
  id: string | null;
57
55
  key?: string | null;
58
56
  body: 'RT' | 'SQC';
57
+ location?: string | null;
59
58
  } | null;
60
59
  };
@@ -55,13 +55,12 @@ export type BusinessUnitsDetail = {
55
55
  };
56
56
  email?: string;
57
57
  tags?: Array<string>;
58
- locationTag?: string;
59
- managementTag?: string;
60
58
  holdingNumber?: string;
61
59
  assurance?: {
62
60
  id: string | null;
63
61
  key?: string | null;
64
62
  body: 'RT' | 'SQC';
63
+ location?: string | null;
65
64
  } | null;
66
65
  };
67
66
  };
@@ -64,13 +64,12 @@ export type BusinessUnitsDetails = {
64
64
  };
65
65
  email?: string;
66
66
  tags?: Array<string>;
67
- locationTag?: string;
68
- managementTag?: string;
69
67
  holdingNumber?: string;
70
68
  assurance?: {
71
69
  id: string | null;
72
70
  key?: string | null;
73
71
  body: 'RT' | 'SQC';
72
+ location?: string | null;
74
73
  } | null;
75
74
  };
76
75
  }>;
@@ -44,13 +44,12 @@ export type CreateBusinessUnit = {
44
44
  name: string;
45
45
  phoneNumber: string | null;
46
46
  email: string;
47
- locationTag?: string;
48
- managementTag?: string;
49
47
  holdingNumber: string;
50
48
  assurance?: {
51
49
  id: string | null;
52
50
  key?: string | null;
53
51
  body: 'RT' | 'SQC';
52
+ location?: string | null;
54
53
  } | null;
55
54
  };
56
55
  };
@@ -44,13 +44,12 @@ export type CreateBusinessUnits = Array<{
44
44
  name: string;
45
45
  phoneNumber: string | null;
46
46
  email: string;
47
- locationTag?: string;
48
- managementTag?: string;
49
47
  holdingNumber: string;
50
48
  assurance?: {
51
49
  id: string | null;
52
50
  key?: string | null;
53
51
  body: 'RT' | 'SQC';
52
+ location?: string | null;
54
53
  } | null;
55
54
  };
56
55
  }>;
@@ -23,6 +23,7 @@ export type CreateOrganisation = {
23
23
  id: string | null;
24
24
  key?: string | null;
25
25
  body: 'RT' | 'SQC';
26
+ location?: string | null;
26
27
  } | null;
27
28
  id?: string | null;
28
29
  bio?: string | null;
@@ -25,6 +25,7 @@ export type CreateOrganisationResponse = {
25
25
  id: string | null;
26
26
  key?: string | null;
27
27
  body: 'RT' | 'SQC';
28
+ location?: string | null;
28
29
  } | null;
29
30
  id?: string | null;
30
31
  bio?: string | null;
@@ -66,57 +67,6 @@ export type CreateOrganisationResponse = {
66
67
  region: string | null;
67
68
  tags: Array<string>;
68
69
  }>;
69
- businessConnections?: Array<{
70
- organisationId?: string;
71
- organisationName?: string;
72
- relationship?: Array<string>;
73
- contacts?: Array<{
74
- givenName?: string;
75
- familyName?: string;
76
- phone?: {
77
- callingCode: string;
78
- number: string;
79
- };
80
- email?: string;
81
- id?: string;
82
- authPlatformId?: string;
83
- profile?: {
84
- organisationId: string;
85
- businessUnits: Array<string>;
86
- roles: Array<string>;
87
- } | null;
88
- }>;
89
- location?: {
90
- what3words: string | null;
91
- address: {
92
- name?: string | null;
93
- line1: string;
94
- line2?: string | null;
95
- line3?: string | null;
96
- city?: string | null;
97
- region?: string | null;
98
- regionISO?: string | null;
99
- postcode: string;
100
- countryName?: string | null;
101
- countryISO: 'GB' | 'US' | 'ZA' | 'FR';
102
- };
103
- coordinates: {
104
- lat: number;
105
- lon: number;
106
- } | null;
107
- } | null;
108
- countryISO?: 'GB' | 'US' | 'ZA' | 'FR';
109
- ownerContact?: {
110
- id?: string;
111
- email?: string;
112
- familyName?: string;
113
- givenName?: string;
114
- phone?: {
115
- callingCode: string;
116
- number: string;
117
- };
118
- };
119
- }>;
120
70
  billing?: {
121
71
  amount: number;
122
72
  currency: string;
@@ -24,6 +24,7 @@ export type OrganisationDetail = {
24
24
  id: string | null;
25
25
  key?: string | null;
26
26
  body: 'RT' | 'SQC';
27
+ location?: string | null;
27
28
  } | null;
28
29
  id?: string | null;
29
30
  bio?: string | null;
@@ -65,57 +66,6 @@ export type OrganisationDetail = {
65
66
  region: string | null;
66
67
  tags: Array<string>;
67
68
  }>;
68
- businessConnections?: Array<{
69
- organisationId?: string;
70
- organisationName?: string;
71
- relationship?: Array<string>;
72
- contacts?: Array<{
73
- givenName?: string;
74
- familyName?: string;
75
- phone?: {
76
- callingCode: string;
77
- number: string;
78
- };
79
- email?: string;
80
- id?: string;
81
- authPlatformId?: string;
82
- profile?: {
83
- organisationId: string;
84
- businessUnits: Array<string>;
85
- roles: Array<string>;
86
- } | null;
87
- }>;
88
- location?: {
89
- what3words: string | null;
90
- address: {
91
- name?: string | null;
92
- line1: string;
93
- line2?: string | null;
94
- line3?: string | null;
95
- city?: string | null;
96
- region?: string | null;
97
- regionISO?: string | null;
98
- postcode: string;
99
- countryName?: string | null;
100
- countryISO: 'GB' | 'US' | 'ZA' | 'FR';
101
- };
102
- coordinates: {
103
- lat: number;
104
- lon: number;
105
- } | null;
106
- } | null;
107
- countryISO?: 'GB' | 'US' | 'ZA' | 'FR';
108
- ownerContact?: {
109
- id?: string;
110
- email?: string;
111
- familyName?: string;
112
- givenName?: string;
113
- phone?: {
114
- callingCode: string;
115
- number: string;
116
- };
117
- };
118
- }>;
119
69
  billing?: {
120
70
  amount: number;
121
71
  currency: string;
@@ -27,6 +27,7 @@ export type OrganisationExists = {
27
27
  id: string | null;
28
28
  key?: string | null;
29
29
  body: 'RT' | 'SQC';
30
+ location?: string | null;
30
31
  } | null;
31
32
  id?: string | null;
32
33
  bio?: string | null;
@@ -68,57 +69,6 @@ export type OrganisationExists = {
68
69
  region: string | null;
69
70
  tags: Array<string>;
70
71
  }>;
71
- businessConnections?: Array<{
72
- organisationId?: string;
73
- organisationName?: string;
74
- relationship?: Array<string>;
75
- contacts?: Array<{
76
- givenName?: string;
77
- familyName?: string;
78
- phone?: {
79
- callingCode: string;
80
- number: string;
81
- };
82
- email?: string;
83
- id?: string;
84
- authPlatformId?: string;
85
- profile?: {
86
- organisationId: string;
87
- businessUnits: Array<string>;
88
- roles: Array<string>;
89
- } | null;
90
- }>;
91
- location?: {
92
- what3words: string | null;
93
- address: {
94
- name?: string | null;
95
- line1: string;
96
- line2?: string | null;
97
- line3?: string | null;
98
- city?: string | null;
99
- region?: string | null;
100
- regionISO?: string | null;
101
- postcode: string;
102
- countryName?: string | null;
103
- countryISO: 'GB' | 'US' | 'ZA' | 'FR';
104
- };
105
- coordinates: {
106
- lat: number;
107
- lon: number;
108
- } | null;
109
- } | null;
110
- countryISO?: 'GB' | 'US' | 'ZA' | 'FR';
111
- ownerContact?: {
112
- id?: string;
113
- email?: string;
114
- familyName?: string;
115
- givenName?: string;
116
- phone?: {
117
- callingCode: string;
118
- number: string;
119
- };
120
- };
121
- }>;
122
72
  billing?: {
123
73
  amount: number;
124
74
  currency: string;
@@ -1,5 +1,7 @@
1
1
  export type OrganisationSummary = {
2
2
  id?: string;
3
+ businessId?: string;
4
+ businessUnitId?: string;
3
5
  createdAtUTC?: string;
4
6
  name?: string;
5
7
  location?: {
@@ -69,6 +71,12 @@ export type OrganisationSummary = {
69
71
  vetted?: boolean;
70
72
  rejected?: boolean;
71
73
  isMerchant?: boolean;
74
+ assurance?: {
75
+ id: string | null;
76
+ key?: string | null;
77
+ body: 'RT' | 'SQC';
78
+ location?: string | null;
79
+ } | null;
72
80
  assuranceId?: string;
73
81
  assuranceScheme?: 'RT' | 'SQC';
74
82
  advancePay?: {
@@ -43,13 +43,12 @@ export type PatchBusinessUnit = {
43
43
  phoneNumber?: string | null;
44
44
  email?: string;
45
45
  primary?: boolean;
46
- locationTag?: string;
47
- managementTag?: string;
48
46
  holdingNumber?: string | null;
49
47
  assurance?: {
50
48
  id: string | null;
51
49
  key?: string | null;
52
50
  body: 'RT' | 'SQC';
51
+ location?: string | null;
53
52
  } | null;
54
53
  };
55
54
  };
@@ -23,6 +23,7 @@ export type PatchOrganisation = {
23
23
  id: string | null;
24
24
  key?: string | null;
25
25
  body: 'RT' | 'SQC';
26
+ location?: string | null;
26
27
  } | null;
27
28
  id?: string | null;
28
29
  bio?: string | null;
@@ -25,6 +25,7 @@ export type SearchResultsOrganisationDetailSchema = {
25
25
  id: string | null;
26
26
  key?: string | null;
27
27
  body: 'RT' | 'SQC';
28
+ location?: string | null;
28
29
  } | null;
29
30
  id?: string | null;
30
31
  bio?: string | null;
@@ -66,57 +67,6 @@ export type SearchResultsOrganisationDetailSchema = {
66
67
  region: string | null;
67
68
  tags: Array<string>;
68
69
  }>;
69
- businessConnections?: Array<{
70
- organisationId?: string;
71
- organisationName?: string;
72
- relationship?: Array<string>;
73
- contacts?: Array<{
74
- givenName?: string;
75
- familyName?: string;
76
- phone?: {
77
- callingCode: string;
78
- number: string;
79
- };
80
- email?: string;
81
- id?: string;
82
- authPlatformId?: string;
83
- profile?: {
84
- organisationId: string;
85
- businessUnits: Array<string>;
86
- roles: Array<string>;
87
- } | null;
88
- }>;
89
- location?: {
90
- what3words: string | null;
91
- address: {
92
- name?: string | null;
93
- line1: string;
94
- line2?: string | null;
95
- line3?: string | null;
96
- city?: string | null;
97
- region?: string | null;
98
- regionISO?: string | null;
99
- postcode: string;
100
- countryName?: string | null;
101
- countryISO: 'GB' | 'US' | 'ZA' | 'FR';
102
- };
103
- coordinates: {
104
- lat: number;
105
- lon: number;
106
- } | null;
107
- } | null;
108
- countryISO?: 'GB' | 'US' | 'ZA' | 'FR';
109
- ownerContact?: {
110
- id?: string;
111
- email?: string;
112
- familyName?: string;
113
- givenName?: string;
114
- phone?: {
115
- callingCode: string;
116
- number: string;
117
- };
118
- };
119
- }>;
120
70
  billing?: {
121
71
  amount: number;
122
72
  currency: string;
@@ -25,6 +25,7 @@ export type UserProfile = {
25
25
  id: string | null;
26
26
  key?: string | null;
27
27
  body: 'RT' | 'SQC';
28
+ location?: string | null;
28
29
  } | null;
29
30
  id?: string | null;
30
31
  bio?: string | null;
@@ -66,57 +67,6 @@ export type UserProfile = {
66
67
  region: string | null;
67
68
  tags: Array<string>;
68
69
  }>;
69
- businessConnections?: Array<{
70
- organisationId?: string;
71
- organisationName?: string;
72
- relationship?: Array<string>;
73
- contacts?: Array<{
74
- givenName?: string;
75
- familyName?: string;
76
- phone?: {
77
- callingCode: string;
78
- number: string;
79
- };
80
- email?: string;
81
- id?: string;
82
- authPlatformId?: string;
83
- profile?: {
84
- organisationId: string;
85
- businessUnits: Array<string>;
86
- roles: Array<string>;
87
- } | null;
88
- }>;
89
- location?: {
90
- what3words: string | null;
91
- address: {
92
- name?: string | null;
93
- line1: string;
94
- line2?: string | null;
95
- line3?: string | null;
96
- city?: string | null;
97
- region?: string | null;
98
- regionISO?: string | null;
99
- postcode: string;
100
- countryName?: string | null;
101
- countryISO: 'GB' | 'US' | 'ZA' | 'FR';
102
- };
103
- coordinates: {
104
- lat: number;
105
- lon: number;
106
- } | null;
107
- } | null;
108
- countryISO?: 'GB' | 'US' | 'ZA' | 'FR';
109
- ownerContact?: {
110
- id?: string;
111
- email?: string;
112
- familyName?: string;
113
- givenName?: string;
114
- phone?: {
115
- callingCode: string;
116
- number: string;
117
- };
118
- };
119
- }>;
120
70
  billing?: {
121
71
  amount: number;
122
72
  currency: string;
@@ -237,7 +187,6 @@ export type UserProfile = {
237
187
  write?: boolean;
238
188
  }>;
239
189
  };
240
- features?: Record<string, boolean>;
241
190
  tokens?: {
242
191
  id?: string;
243
192
  access?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hectare/platform.clients.customers",
3
- "version": "1.1.35",
3
+ "version": "1.1.37",
4
4
  "main": "index.js",
5
5
  "exported": true,
6
6
  "types": "index.d.ts",
@@ -1,20 +0,0 @@
1
- export type RedTractorCertificate = {
2
- certificateStatus?: 'Valid' | 'Grace';
3
- certificateIdentifier?: string;
4
- certificateEnterprises?: Array<{
5
- enterpriseIdentifier?: string;
6
- enterprise?: string;
7
- }>;
8
- certificateExpiryDate?: string;
9
- certifiedSites?: Array<{
10
- siteIdentifiers?: {
11
- identifierType?: string;
12
- identifier?: string;
13
- };
14
- isPrimary?: boolean;
15
- siteCountry?: string;
16
- sitePostcode?: string;
17
- siteAddress?: string;
18
- siteName?: string;
19
- }>;
20
- };
@@ -1 +0,0 @@
1
- export {};