@hectare/platform.clients.customers 1.1.89 → 1.1.91

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.
@@ -4,6 +4,37 @@ export type BusinessDetail = {
4
4
  businessUnitId: string;
5
5
  organisationId: string;
6
6
  primary: boolean;
7
+ locations: Array<{
8
+ id: number | null;
9
+ reference: string | null;
10
+ location: {
11
+ what3words: string | null;
12
+ address: {
13
+ name?: string | null;
14
+ line1: string;
15
+ line2?: string | null;
16
+ line3?: string | null;
17
+ city?: string | null;
18
+ region?: string | null;
19
+ regionISO?: string | null;
20
+ postcode: string;
21
+ countryName?: string | null;
22
+ countryISO: 'GB' | 'US' | 'ZA' | 'FR';
23
+ };
24
+ coordinates: {
25
+ lat: number;
26
+ lon: number;
27
+ } | null;
28
+ } | null;
29
+ email?: string | null;
30
+ givenName: string | null;
31
+ familyName: string | null;
32
+ phone: {
33
+ callingCode: string;
34
+ number: string;
35
+ };
36
+ type: 'collection' | 'business' | 'delivery' | 'business-collection';
37
+ }>;
7
38
  location: {
8
39
  what3words: string | null;
9
40
  address: {
@@ -43,27 +74,6 @@ export type BusinessDetail = {
43
74
  lon: number;
44
75
  } | null;
45
76
  } | null;
46
- businessName: string;
47
- name?: string;
48
- givenName: string;
49
- familyName: string;
50
- phone?: {
51
- callingCode: string;
52
- number: string;
53
- };
54
- email?: string;
55
- tags: Array<string>;
56
- emailDistributionList: Array<string>;
57
- holdingNumber: string | null;
58
- companyNumber: string | null;
59
- vatNumber: string | null;
60
- assurance: {
61
- id: string | null;
62
- key?: string | null;
63
- body: 'RT' | 'SQC';
64
- name?: string | null;
65
- location?: string | null;
66
- } | null;
67
77
  collectionAddresses: Array<{
68
78
  id: number | null;
69
79
  reference: string | null;
@@ -86,6 +96,7 @@ export type BusinessDetail = {
86
96
  lon: number;
87
97
  } | null;
88
98
  } | null;
99
+ email?: string | null;
89
100
  givenName: string | null;
90
101
  familyName: string | null;
91
102
  phone: {
@@ -94,4 +105,25 @@ export type BusinessDetail = {
94
105
  };
95
106
  type: 'collection' | 'business' | 'delivery' | 'business-collection';
96
107
  }>;
108
+ name?: string;
109
+ businessName: string;
110
+ givenName: string;
111
+ familyName: string;
112
+ phone?: {
113
+ callingCode: string;
114
+ number: string;
115
+ };
116
+ email?: string;
117
+ tags: Array<string>;
118
+ emailDistributionList: Array<string>;
119
+ holdingNumber: string | null;
120
+ companyNumber: string | null;
121
+ vatNumber: string | null;
122
+ assurance: {
123
+ id: string | null;
124
+ key?: string | null;
125
+ body: 'RT' | 'SQC';
126
+ name?: string | null;
127
+ location?: string | null;
128
+ } | null;
97
129
  };
@@ -10,6 +10,37 @@ export type BusinessUnitsDetail = {
10
10
  businessUnitId: string;
11
11
  organisationId: string;
12
12
  primary: boolean;
13
+ locations: Array<{
14
+ id: number | null;
15
+ reference: string | null;
16
+ location: {
17
+ what3words: string | null;
18
+ address: {
19
+ name?: string | null;
20
+ line1: string;
21
+ line2?: string | null;
22
+ line3?: string | null;
23
+ city?: string | null;
24
+ region?: string | null;
25
+ regionISO?: string | null;
26
+ postcode: string;
27
+ countryName?: string | null;
28
+ countryISO: 'GB' | 'US' | 'ZA' | 'FR';
29
+ };
30
+ coordinates: {
31
+ lat: number;
32
+ lon: number;
33
+ } | null;
34
+ } | null;
35
+ email?: string | null;
36
+ givenName: string | null;
37
+ familyName: string | null;
38
+ phone: {
39
+ callingCode: string;
40
+ number: string;
41
+ };
42
+ type: 'collection' | 'business' | 'delivery' | 'business-collection';
43
+ }>;
13
44
  location: {
14
45
  what3words: string | null;
15
46
  address: {
@@ -49,27 +80,6 @@ export type BusinessUnitsDetail = {
49
80
  lon: number;
50
81
  } | null;
51
82
  } | null;
52
- businessName: string;
53
- name?: string;
54
- givenName: string;
55
- familyName: string;
56
- phone?: {
57
- callingCode: string;
58
- number: string;
59
- };
60
- email?: string;
61
- tags: Array<string>;
62
- emailDistributionList: Array<string>;
63
- holdingNumber: string | null;
64
- companyNumber: string | null;
65
- vatNumber: string | null;
66
- assurance: {
67
- id: string | null;
68
- key?: string | null;
69
- body: 'RT' | 'SQC';
70
- name?: string | null;
71
- location?: string | null;
72
- } | null;
73
83
  collectionAddresses: Array<{
74
84
  id: number | null;
75
85
  reference: string | null;
@@ -92,6 +102,7 @@ export type BusinessUnitsDetail = {
92
102
  lon: number;
93
103
  } | null;
94
104
  } | null;
105
+ email?: string | null;
95
106
  givenName: string | null;
96
107
  familyName: string | null;
97
108
  phone: {
@@ -100,5 +111,26 @@ export type BusinessUnitsDetail = {
100
111
  };
101
112
  type: 'collection' | 'business' | 'delivery' | 'business-collection';
102
113
  }>;
114
+ name?: string;
115
+ businessName: string;
116
+ givenName: string;
117
+ familyName: string;
118
+ phone?: {
119
+ callingCode: string;
120
+ number: string;
121
+ };
122
+ email?: string;
123
+ tags: Array<string>;
124
+ emailDistributionList: Array<string>;
125
+ holdingNumber: string | null;
126
+ companyNumber: string | null;
127
+ vatNumber: string | null;
128
+ assurance: {
129
+ id: string | null;
130
+ key?: string | null;
131
+ body: 'RT' | 'SQC';
132
+ name?: string | null;
133
+ location?: string | null;
134
+ } | null;
103
135
  };
104
136
  };
@@ -19,6 +19,37 @@ export type BusinessUnitsDetails = {
19
19
  businessUnitId: string;
20
20
  organisationId: string;
21
21
  primary: boolean;
22
+ locations: Array<{
23
+ id: number | null;
24
+ reference: string | null;
25
+ location: {
26
+ what3words: string | null;
27
+ address: {
28
+ name?: string | null;
29
+ line1: string;
30
+ line2?: string | null;
31
+ line3?: string | null;
32
+ city?: string | null;
33
+ region?: string | null;
34
+ regionISO?: string | null;
35
+ postcode: string;
36
+ countryName?: string | null;
37
+ countryISO: 'GB' | 'US' | 'ZA' | 'FR';
38
+ };
39
+ coordinates: {
40
+ lat: number;
41
+ lon: number;
42
+ } | null;
43
+ } | null;
44
+ email?: string | null;
45
+ givenName: string | null;
46
+ familyName: string | null;
47
+ phone: {
48
+ callingCode: string;
49
+ number: string;
50
+ };
51
+ type: 'collection' | 'business' | 'delivery' | 'business-collection';
52
+ }>;
22
53
  location: {
23
54
  what3words: string | null;
24
55
  address: {
@@ -58,27 +89,6 @@ export type BusinessUnitsDetails = {
58
89
  lon: number;
59
90
  } | null;
60
91
  } | null;
61
- businessName: string;
62
- name?: string;
63
- givenName: string;
64
- familyName: string;
65
- phone?: {
66
- callingCode: string;
67
- number: string;
68
- };
69
- email?: string;
70
- tags: Array<string>;
71
- emailDistributionList: Array<string>;
72
- holdingNumber: string | null;
73
- companyNumber: string | null;
74
- vatNumber: string | null;
75
- assurance: {
76
- id: string | null;
77
- key?: string | null;
78
- body: 'RT' | 'SQC';
79
- name?: string | null;
80
- location?: string | null;
81
- } | null;
82
92
  collectionAddresses: Array<{
83
93
  id: number | null;
84
94
  reference: string | null;
@@ -101,6 +111,7 @@ export type BusinessUnitsDetails = {
101
111
  lon: number;
102
112
  } | null;
103
113
  } | null;
114
+ email?: string | null;
104
115
  givenName: string | null;
105
116
  familyName: string | null;
106
117
  phone: {
@@ -109,6 +120,27 @@ export type BusinessUnitsDetails = {
109
120
  };
110
121
  type: 'collection' | 'business' | 'delivery' | 'business-collection';
111
122
  }>;
123
+ name?: string;
124
+ businessName: string;
125
+ givenName: string;
126
+ familyName: string;
127
+ phone?: {
128
+ callingCode: string;
129
+ number: string;
130
+ };
131
+ email?: string;
132
+ tags: Array<string>;
133
+ emailDistributionList: Array<string>;
134
+ holdingNumber: string | null;
135
+ companyNumber: string | null;
136
+ vatNumber: string | null;
137
+ assurance: {
138
+ id: string | null;
139
+ key?: string | null;
140
+ body: 'RT' | 'SQC';
141
+ name?: string | null;
142
+ location?: string | null;
143
+ } | null;
112
144
  };
113
145
  }>;
114
146
  };
@@ -58,5 +58,6 @@ export type PatchBusinessUnit = {
58
58
  name?: string | null;
59
59
  location?: string | null;
60
60
  } | null;
61
+ status?: string | null;
61
62
  };
62
63
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hectare/platform.clients.customers",
3
- "version": "1.1.89",
3
+ "version": "1.1.91",
4
4
  "main": "index.js",
5
5
  "exported": true,
6
6
  "types": "index.d.ts",