@hectare/platform.clients.customers 1.1.97 → 1.1.99

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.
@@ -1,6 +1,7 @@
1
1
  export type BusinessDetail = {
2
2
  id: string;
3
3
  status: string;
4
+ type: 'trading-entity' | 'farm';
4
5
  businessUnitId: string;
5
6
  organisationId: string;
6
7
  primary: boolean;
@@ -7,6 +7,7 @@ export type BusinessUnitsDetail = {
7
7
  business?: {
8
8
  id: string;
9
9
  status: string;
10
+ type: 'trading-entity' | 'farm';
10
11
  businessUnitId: string;
11
12
  organisationId: string;
12
13
  primary: boolean;
@@ -16,6 +16,7 @@ export type BusinessUnitsDetails = {
16
16
  business?: {
17
17
  id: string;
18
18
  status: string;
19
+ type: 'trading-entity' | 'farm';
19
20
  businessUnitId: string;
20
21
  organisationId: string;
21
22
  primary: boolean;
@@ -1,7 +1,7 @@
1
1
  export type CreateBusinessUnit = {
2
2
  organisationId: string;
3
3
  name: string;
4
- type?: string;
4
+ type?: 'trading-entity' | 'farm';
5
5
  business: {
6
6
  location: {
7
7
  what3words: string | null;
@@ -1,7 +1,7 @@
1
1
  export type CreateBusinessUnits = Array<{
2
2
  organisationId: string;
3
3
  name: string;
4
- type?: string;
4
+ type?: 'trading-entity' | 'farm';
5
5
  business: {
6
6
  location: {
7
7
  what3words: string | null;
@@ -1,5 +1,6 @@
1
1
  export type PatchBusinessUnit = {
2
2
  name?: string | null;
3
+ type?: 'trading-entity' | 'farm';
3
4
  business?: {
4
5
  location?: {
5
6
  what3words: string | null;
@@ -13,8 +13,4 @@ export type UserAccess = {
13
13
  read?: boolean;
14
14
  write?: boolean;
15
15
  }>;
16
- logistics: Record<string, {
17
- read?: boolean;
18
- write?: boolean;
19
- }>;
20
16
  };
@@ -176,10 +176,6 @@ export type UserProfile = {
176
176
  read?: boolean;
177
177
  write?: boolean;
178
178
  }>;
179
- logistics: Record<string, {
180
- read?: boolean;
181
- write?: boolean;
182
- }>;
183
179
  };
184
180
  tokens?: {
185
181
  id?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hectare/platform.clients.customers",
3
- "version": "1.1.97",
3
+ "version": "1.1.99",
4
4
  "main": "index.js",
5
5
  "exported": true,
6
6
  "types": "index.d.ts",