@hectare/platform.clients.customers 1.1.26 → 1.1.28

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
@@ -41,7 +41,6 @@ export type { Role } from './models/Role.js';
41
41
  export type { RoleGroup } from './models/RoleGroup.js';
42
42
  export type { SearchResultsUserDetailSchema } from './models/SearchResultsUserDetailSchema.js';
43
43
  export type { SendMagicLogin } from './models/SendMagicLogin.js';
44
- export type { SetBuyerPreferences } from './models/SetBuyerPreferences.js';
45
44
  export type { SwapCognitoUserPoolRequest } from './models/SwapCognitoUserPoolRequest.js';
46
45
  export type { SwapCognitoUserPoolResponse } from './models/SwapCognitoUserPoolResponse.js';
47
46
  export type { UserAccess } from './models/UserAccess.js';
@@ -3,7 +3,7 @@ export type BuyerPreferencesSchema = {
3
3
  commodity: number | null;
4
4
  grades: Array<number>;
5
5
  regions: Array<string>;
6
- enabled?: boolean;
6
+ enabled: boolean;
7
7
  }>;
8
8
  notificationsEnabled: boolean;
9
9
  };
@@ -155,7 +155,7 @@ export type CreateOrganisationResponse = {
155
155
  impersonating?: boolean;
156
156
  settings?: {
157
157
  terms: boolean;
158
- marketing?: boolean;
158
+ termsOnce?: boolean;
159
159
  marketingPreferences: {
160
160
  marketUpdates: boolean;
161
161
  communications: boolean;
@@ -163,9 +163,6 @@ export type CreateOrganisationResponse = {
163
163
  whatsApp: boolean;
164
164
  sms: boolean;
165
165
  onboardingProgress: Array<string> | null;
166
- harvestNotificationDismissed: boolean;
167
- harvestDialogDismissed: boolean;
168
- listingsWelcomeRead: boolean;
169
166
  };
170
167
  tokens?: {
171
168
  id?: string;
@@ -183,6 +180,7 @@ export type CreateOrganisationResponse = {
183
180
  }>;
184
181
  preferences?: Array<{
185
182
  commodity: number;
183
+ enabled: boolean;
186
184
  grades: Array<number>;
187
185
  regions: Array<string>;
188
186
  }>;
@@ -23,7 +23,4 @@ export type PatchUser = {
23
23
  smsNotifications?: boolean | null;
24
24
  preferences?: Array<string> | null;
25
25
  onboardingProgress?: Array<string> | null;
26
- harvestNotificationDismissed?: boolean | null;
27
- harvestDialogDismissed?: boolean | null;
28
- listingsWelcomeRead?: boolean | null;
29
26
  };
@@ -12,7 +12,7 @@ export type SearchResultsUserDetailSchema = {
12
12
  impersonating?: boolean;
13
13
  settings?: {
14
14
  terms: boolean;
15
- marketing?: boolean;
15
+ termsOnce?: boolean;
16
16
  marketingPreferences: {
17
17
  marketUpdates: boolean;
18
18
  communications: boolean;
@@ -20,9 +20,6 @@ export type SearchResultsUserDetailSchema = {
20
20
  whatsApp: boolean;
21
21
  sms: boolean;
22
22
  onboardingProgress: Array<string> | null;
23
- harvestNotificationDismissed: boolean;
24
- harvestDialogDismissed: boolean;
25
- listingsWelcomeRead: boolean;
26
23
  };
27
24
  tokens?: {
28
25
  id?: string;
@@ -40,6 +37,7 @@ export type SearchResultsUserDetailSchema = {
40
37
  }>;
41
38
  preferences?: Array<{
42
39
  commodity: number;
40
+ enabled: boolean;
43
41
  grades: Array<number>;
44
42
  regions: Array<string>;
45
43
  }>;
@@ -51,11 +51,11 @@ export type UserBasicInfo = {
51
51
  commodity: number | null;
52
52
  grades: Array<number>;
53
53
  regions: Array<string>;
54
- enabled?: boolean;
54
+ enabled: boolean;
55
55
  }>;
56
56
  settings?: {
57
57
  terms: boolean;
58
- marketing?: boolean;
58
+ termsOnce?: boolean;
59
59
  marketingPreferences: {
60
60
  marketUpdates: boolean;
61
61
  communications: boolean;
@@ -63,9 +63,6 @@ export type UserBasicInfo = {
63
63
  whatsApp: boolean;
64
64
  sms: boolean;
65
65
  onboardingProgress: Array<string> | null;
66
- harvestNotificationDismissed: boolean;
67
- harvestDialogDismissed: boolean;
68
- listingsWelcomeRead: boolean;
69
66
  };
70
67
  authPlatformId?: string;
71
68
  userTypes?: Array<string>;
@@ -11,7 +11,7 @@ export type UserDetail = {
11
11
  impersonating?: boolean;
12
12
  settings?: {
13
13
  terms: boolean;
14
- marketing?: boolean;
14
+ termsOnce?: boolean;
15
15
  marketingPreferences: {
16
16
  marketUpdates: boolean;
17
17
  communications: boolean;
@@ -19,9 +19,6 @@ export type UserDetail = {
19
19
  whatsApp: boolean;
20
20
  sms: boolean;
21
21
  onboardingProgress: Array<string> | null;
22
- harvestNotificationDismissed: boolean;
23
- harvestDialogDismissed: boolean;
24
- listingsWelcomeRead: boolean;
25
22
  };
26
23
  tokens?: {
27
24
  id?: string;
@@ -39,6 +36,7 @@ export type UserDetail = {
39
36
  }>;
40
37
  preferences?: Array<{
41
38
  commodity: number;
39
+ enabled: boolean;
42
40
  grades: Array<number>;
43
41
  regions: Array<string>;
44
42
  }>;
@@ -155,7 +155,7 @@ export type UserProfile = {
155
155
  impersonating?: boolean;
156
156
  settings?: {
157
157
  terms: boolean;
158
- marketing?: boolean;
158
+ termsOnce?: boolean;
159
159
  marketingPreferences: {
160
160
  marketUpdates: boolean;
161
161
  communications: boolean;
@@ -163,9 +163,6 @@ export type UserProfile = {
163
163
  whatsApp: boolean;
164
164
  sms: boolean;
165
165
  onboardingProgress: Array<string> | null;
166
- harvestNotificationDismissed: boolean;
167
- harvestDialogDismissed: boolean;
168
- listingsWelcomeRead: boolean;
169
166
  };
170
167
  tokens?: {
171
168
  id?: string;
@@ -183,6 +180,7 @@ export type UserProfile = {
183
180
  }>;
184
181
  preferences?: Array<{
185
182
  commodity: number;
183
+ enabled: boolean;
186
184
  grades: Array<number>;
187
185
  regions: Array<string>;
188
186
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hectare/platform.clients.customers",
3
- "version": "1.1.26",
3
+ "version": "1.1.28",
4
4
  "main": "index.js",
5
5
  "exported": true,
6
6
  "types": "index.d.ts",
@@ -1,6 +0,0 @@
1
- export type SetBuyerPreferences = Array<{
2
- commodity: number | null;
3
- grades: Array<number>;
4
- regions: Array<string>;
5
- enabled?: boolean;
6
- }>;
@@ -1 +0,0 @@
1
- export {};