@hectare/platform.clients.customers 1.1.106 → 1.1.107

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
@@ -1,6 +1,7 @@
1
1
  export type { AssuranceDetail } from './models/AssuranceDetail.js';
2
2
  export type { BasicSearchUserDetail } from './models/BasicSearchUserDetail.js';
3
3
  export type { BusinessDetail } from './models/BusinessDetail.js';
4
+ export type { BusinessSummary } from './models/BusinessSummary.js';
4
5
  export type { BusinessUnitsDetail } from './models/BusinessUnitsDetail.js';
5
6
  export type { BusinessUnitsDetails } from './models/BusinessUnitsDetails.js';
6
7
  export type { BusinessUnitsSummary } from './models/BusinessUnitsSummary.js';
@@ -78,7 +78,7 @@ export type BasicSearchUserDetail = {
78
78
  id: string;
79
79
  name: string;
80
80
  type?: string;
81
- business: string | null;
81
+ business: string;
82
82
  region: string | null;
83
83
  tags: Array<string>;
84
84
  }>;
@@ -0,0 +1,23 @@
1
+ export type BusinessSummary = {
2
+ id: string;
3
+ status: string;
4
+ type: 'trading-entity' | 'farm';
5
+ organisationId: string;
6
+ primary: boolean;
7
+ 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
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -2,7 +2,7 @@ export type BusinessUnitSummary = {
2
2
  id: string;
3
3
  name: string;
4
4
  type?: string;
5
- business: string | null;
5
+ business: string;
6
6
  region: string | null;
7
7
  tags: Array<string>;
8
8
  };
@@ -9,7 +9,7 @@ export type BusinessUnitsSummary = {
9
9
  id: string;
10
10
  name: string;
11
11
  type?: string;
12
- business: string | null;
12
+ business: string;
13
13
  region: string | null;
14
14
  tags: Array<string>;
15
15
  }>;
@@ -64,7 +64,7 @@ export type CreateOrganisationResponse = {
64
64
  id: string;
65
65
  name: string;
66
66
  type?: string;
67
- business: string | null;
67
+ business: string;
68
68
  region: string | null;
69
69
  tags: Array<string>;
70
70
  }>;
@@ -157,7 +157,7 @@ export type CreateOrganisationResponse = {
157
157
  id: string;
158
158
  name: string;
159
159
  type?: string;
160
- business: string | null;
160
+ business: string;
161
161
  region: string | null;
162
162
  tags: Array<string>;
163
163
  }>;
@@ -63,7 +63,7 @@ export type OrganisationDetail = {
63
63
  id: string;
64
64
  name: string;
65
65
  type?: string;
66
- business: string | null;
66
+ business: string;
67
67
  region: string | null;
68
68
  tags: Array<string>;
69
69
  }>;
@@ -66,7 +66,7 @@ export type OrganisationExists = {
66
66
  id: string;
67
67
  name: string;
68
68
  type?: string;
69
- business: string | null;
69
+ business: string;
70
70
  region: string | null;
71
71
  tags: Array<string>;
72
72
  }>;
@@ -64,7 +64,7 @@ export type SearchResultsOrganisationDetailSchema = {
64
64
  id: string;
65
65
  name: string;
66
66
  type?: string;
67
- business: string | null;
67
+ business: string;
68
68
  region: string | null;
69
69
  tags: Array<string>;
70
70
  }>;
@@ -78,7 +78,7 @@ export type SearchResultsUserDetailSchema = {
78
78
  id: string;
79
79
  name: string;
80
80
  type?: string;
81
- business: string | null;
81
+ business: string;
82
82
  region: string | null;
83
83
  tags: Array<string>;
84
84
  }>;
@@ -77,7 +77,7 @@ export type UserDetail = {
77
77
  id: string;
78
78
  name: string;
79
79
  type?: string;
80
- business: string | null;
80
+ business: string;
81
81
  region: string | null;
82
82
  tags: Array<string>;
83
83
  }>;
@@ -64,7 +64,7 @@ export type UserProfile = {
64
64
  id: string;
65
65
  name: string;
66
66
  type?: string;
67
- business: string | null;
67
+ business: string;
68
68
  region: string | null;
69
69
  tags: Array<string>;
70
70
  }>;
@@ -157,7 +157,7 @@ export type UserProfile = {
157
157
  id: string;
158
158
  name: string;
159
159
  type?: string;
160
- business: string | null;
160
+ business: string;
161
161
  region: string | null;
162
162
  tags: Array<string>;
163
163
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hectare/platform.clients.customers",
3
- "version": "1.1.106",
3
+ "version": "1.1.107",
4
4
  "main": "index.js",
5
5
  "exported": true,
6
6
  "types": "index.d.ts",