@hectare/platform.clients.customers 1.1.9 → 1.1.10

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
@@ -36,6 +36,8 @@ export type { PatchOrganisationAdvancePay } from './models/PatchOrganisationAdva
36
36
  export type { PatchUser } from './models/PatchUser.js';
37
37
  export type { RedTractorCertificate } from './models/RedTractorCertificate.js';
38
38
  export type { RequestFullAccountSchema } from './models/RequestFullAccountSchema.js';
39
+ export type { Role } from './models/Role.js';
40
+ export type { RoleGroup } from './models/RoleGroup.js';
39
41
  export type { SendMagicLogin } from './models/SendMagicLogin.js';
40
42
  export type { SetBuyerPreferences } from './models/SetBuyerPreferences.js';
41
43
  export type { SwapCognitoUserPoolRequest } from './models/SwapCognitoUserPoolRequest.js';
@@ -1,8 +1,8 @@
1
1
  export type BusinessUnitSummary = {
2
2
  id: string;
3
3
  name: string;
4
- type: string;
5
- business: string;
6
- region: string;
4
+ type: 'farm' | 'stores' | 'region';
5
+ business: string | null;
6
+ region: string | null;
7
7
  tags: Array<string>;
8
8
  };
@@ -8,9 +8,9 @@ export type BusinessUnitsSummary = {
8
8
  businessUnits: Array<{
9
9
  id: string;
10
10
  name: string;
11
- type: string;
12
- business: string;
13
- region: string;
11
+ type: 'farm' | 'stores' | 'region';
12
+ business: string | null;
13
+ region: string | null;
14
14
  tags: Array<string>;
15
15
  }>;
16
16
  };
@@ -70,9 +70,9 @@ export type CreateOrganisationResponse = {
70
70
  businessUnits?: Array<{
71
71
  id: string;
72
72
  name: string;
73
- type: string;
74
- business: string;
75
- region: string;
73
+ type: 'farm' | 'stores' | 'region';
74
+ business: string | null;
75
+ region: string | null;
76
76
  tags: Array<string>;
77
77
  }>;
78
78
  businessConnections?: Array<{
@@ -214,9 +214,9 @@ export type CreateOrganisationResponse = {
214
214
  businessUnits?: Array<{
215
215
  id: string;
216
216
  name: string;
217
- type: string;
218
- business: string;
219
- region: string;
217
+ type: 'farm' | 'stores' | 'region';
218
+ business: string | null;
219
+ region: string | null;
220
220
  tags: Array<string>;
221
221
  }>;
222
222
  notificationsEnabled?: boolean;
@@ -69,9 +69,9 @@ export type OrganisationDetail = {
69
69
  businessUnits?: Array<{
70
70
  id: string;
71
71
  name: string;
72
- type: string;
73
- business: string;
74
- region: string;
72
+ type: 'farm' | 'stores' | 'region';
73
+ business: string | null;
74
+ region: string | null;
75
75
  tags: Array<string>;
76
76
  }>;
77
77
  businessConnections?: Array<{
@@ -72,9 +72,9 @@ export type OrganisationExists = {
72
72
  businessUnits?: Array<{
73
73
  id: string;
74
74
  name: string;
75
- type: string;
76
- business: string;
77
- region: string;
75
+ type: 'farm' | 'stores' | 'region';
76
+ business: string | null;
77
+ region: string | null;
78
78
  tags: Array<string>;
79
79
  }>;
80
80
  businessConnections?: Array<{
@@ -0,0 +1,6 @@
1
+ export type Role = {
2
+ id: string | null;
3
+ name: string;
4
+ permissions: string;
5
+ access?: Array<string>;
6
+ };
package/models/Role.js ADDED
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ export type RoleGroup = {
2
+ id: string;
3
+ name: string;
4
+ roles: Array<{
5
+ id: string | null;
6
+ name: string;
7
+ permissions: string;
8
+ access?: Array<string>;
9
+ }>;
10
+ hidden: boolean;
11
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -65,9 +65,9 @@ export type UserDetail = {
65
65
  businessUnits?: Array<{
66
66
  id: string;
67
67
  name: string;
68
- type: string;
69
- business: string;
70
- region: string;
68
+ type: 'farm' | 'stores' | 'region';
69
+ business: string | null;
70
+ region: string | null;
71
71
  tags: Array<string>;
72
72
  }>;
73
73
  notificationsEnabled?: boolean;
@@ -70,9 +70,9 @@ export type UserProfile = {
70
70
  businessUnits?: Array<{
71
71
  id: string;
72
72
  name: string;
73
- type: string;
74
- business: string;
75
- region: string;
73
+ type: 'farm' | 'stores' | 'region';
74
+ business: string | null;
75
+ region: string | null;
76
76
  tags: Array<string>;
77
77
  }>;
78
78
  businessConnections?: Array<{
@@ -214,9 +214,9 @@ export type UserProfile = {
214
214
  businessUnits?: Array<{
215
215
  id: string;
216
216
  name: string;
217
- type: string;
218
- business: string;
219
- region: string;
217
+ type: 'farm' | 'stores' | 'region';
218
+ business: string | null;
219
+ region: string | null;
220
220
  tags: Array<string>;
221
221
  }>;
222
222
  notificationsEnabled?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hectare/platform.clients.customers",
3
- "version": "1.1.9",
3
+ "version": "1.1.10",
4
4
  "main": "index.js",
5
5
  "exported": true,
6
6
  "types": "index.d.ts",