@hectare/platform.clients.customers 1.1.8 → 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<{
@@ -135,6 +135,7 @@ export type CreateOrganisationResponse = {
135
135
  } | null;
136
136
  }>;
137
137
  vetted?: boolean;
138
+ rejected?: boolean;
138
139
  isMerchant?: boolean;
139
140
  createdAtUTC?: string;
140
141
  advancePay?: {
@@ -213,9 +214,9 @@ export type CreateOrganisationResponse = {
213
214
  businessUnits?: Array<{
214
215
  id: string;
215
216
  name: string;
216
- type: string;
217
- business: string;
218
- region: string;
217
+ type: 'farm' | 'stores' | 'region';
218
+ business: string | null;
219
+ region: string | null;
219
220
  tags: Array<string>;
220
221
  }>;
221
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<{
@@ -134,6 +134,7 @@ export type OrganisationDetail = {
134
134
  } | null;
135
135
  }>;
136
136
  vetted?: boolean;
137
+ rejected?: boolean;
137
138
  isMerchant?: boolean;
138
139
  createdAtUTC?: string;
139
140
  advancePay?: {
@@ -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<{
@@ -137,6 +137,7 @@ export type OrganisationExists = {
137
137
  } | null;
138
138
  }>;
139
139
  vetted?: boolean;
140
+ rejected?: boolean;
140
141
  isMerchant?: boolean;
141
142
  createdAtUTC?: string;
142
143
  advancePay?: {
@@ -67,6 +67,7 @@ export type OrganisationSummary = {
67
67
  } | null;
68
68
  }>;
69
69
  vetted?: boolean;
70
+ rejected?: boolean;
70
71
  isMerchant?: boolean;
71
72
  sqc?: {
72
73
  number: string;
@@ -88,4 +88,5 @@ export type PatchOrganisation = {
88
88
  statusMessage?: string | null;
89
89
  vetted?: boolean;
90
90
  isMerchant?: boolean;
91
+ rejected?: boolean;
91
92
  };
@@ -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<{
@@ -135,6 +135,7 @@ export type UserProfile = {
135
135
  } | null;
136
136
  }>;
137
137
  vetted?: boolean;
138
+ rejected?: boolean;
138
139
  isMerchant?: boolean;
139
140
  createdAtUTC?: string;
140
141
  advancePay?: {
@@ -213,9 +214,9 @@ export type UserProfile = {
213
214
  businessUnits?: Array<{
214
215
  id: string;
215
216
  name: string;
216
- type: string;
217
- business: string;
218
- region: string;
217
+ type: 'farm' | 'stores' | 'region';
218
+ business: string | null;
219
+ region: string | null;
219
220
  tags: Array<string>;
220
221
  }>;
221
222
  notificationsEnabled?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hectare/platform.clients.customers",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "main": "index.js",
5
5
  "exported": true,
6
6
  "types": "index.d.ts",