@sendhome/common 1.0.259 → 1.0.261
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.
|
@@ -4,6 +4,29 @@ import { AccountType } from "../types/account-type";
|
|
|
4
4
|
import { AdminLevels } from "../types/admin-levels";
|
|
5
5
|
import { ProviderLevels } from "../types/provider-levels";
|
|
6
6
|
import { DeliveryLevels } from "../types/delivery_levels";
|
|
7
|
+
interface NotificationChannels {
|
|
8
|
+
email: boolean;
|
|
9
|
+
sms: boolean;
|
|
10
|
+
push: boolean;
|
|
11
|
+
}
|
|
12
|
+
interface NotificationPreferences {
|
|
13
|
+
transactions: NotificationChannels;
|
|
14
|
+
account_updates: {
|
|
15
|
+
email: boolean;
|
|
16
|
+
sms: boolean;
|
|
17
|
+
};
|
|
18
|
+
product_updates: {
|
|
19
|
+
email: boolean;
|
|
20
|
+
};
|
|
21
|
+
promotions: {
|
|
22
|
+
email: boolean;
|
|
23
|
+
sms: boolean;
|
|
24
|
+
};
|
|
25
|
+
announcements: {
|
|
26
|
+
email: boolean;
|
|
27
|
+
};
|
|
28
|
+
order_status: NotificationChannels;
|
|
29
|
+
}
|
|
7
30
|
export interface UserCreatedEvent {
|
|
8
31
|
subject: Subjects.UserCreated;
|
|
9
32
|
data: {
|
|
@@ -33,9 +56,11 @@ export interface UserCreatedEvent {
|
|
|
33
56
|
branch: string;
|
|
34
57
|
country: string;
|
|
35
58
|
subscribed_to_newsletter: boolean;
|
|
59
|
+
notification_preferences: NotificationPreferences;
|
|
36
60
|
slug: string;
|
|
37
61
|
created_at: Date;
|
|
38
62
|
updated_at: Date;
|
|
39
63
|
version: number;
|
|
40
64
|
};
|
|
41
65
|
}
|
|
66
|
+
export {};
|
|
@@ -4,6 +4,29 @@ import { AccountType } from "../types/account-type";
|
|
|
4
4
|
import { AdminLevels } from "../types/admin-levels";
|
|
5
5
|
import { ProviderLevels } from "../types/provider-levels";
|
|
6
6
|
import { DeliveryLevels } from "../types/delivery_levels";
|
|
7
|
+
interface NotificationChannels {
|
|
8
|
+
email: boolean;
|
|
9
|
+
sms: boolean;
|
|
10
|
+
push: boolean;
|
|
11
|
+
}
|
|
12
|
+
interface NotificationPreferences {
|
|
13
|
+
transactions: NotificationChannels;
|
|
14
|
+
account_updates: {
|
|
15
|
+
email: boolean;
|
|
16
|
+
sms: boolean;
|
|
17
|
+
};
|
|
18
|
+
product_updates: {
|
|
19
|
+
email: boolean;
|
|
20
|
+
};
|
|
21
|
+
promotions: {
|
|
22
|
+
email: boolean;
|
|
23
|
+
sms: boolean;
|
|
24
|
+
};
|
|
25
|
+
announcements: {
|
|
26
|
+
email: boolean;
|
|
27
|
+
};
|
|
28
|
+
order_status: NotificationChannels;
|
|
29
|
+
}
|
|
7
30
|
export interface UserUpdatedEvent {
|
|
8
31
|
subject: Subjects.UserUpdated;
|
|
9
32
|
data: {
|
|
@@ -33,9 +56,11 @@ export interface UserUpdatedEvent {
|
|
|
33
56
|
branch: string;
|
|
34
57
|
country: string;
|
|
35
58
|
subscribed_to_newsletter: boolean;
|
|
59
|
+
notification_preferences: NotificationPreferences;
|
|
36
60
|
slug: string;
|
|
37
61
|
created_at: Date;
|
|
38
62
|
updated_at: Date;
|
|
39
63
|
version: number;
|
|
40
64
|
};
|
|
41
65
|
}
|
|
66
|
+
export {};
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
export declare enum UserStatus {
|
|
2
2
|
Active = "active",
|
|
3
|
+
Pending = "pending",
|
|
3
4
|
Archived = "archived",
|
|
4
|
-
Suspended = "suspended"
|
|
5
|
+
Suspended = "suspended",
|
|
6
|
+
Cancelled = "cancelled",
|
|
7
|
+
Locked = "locked",
|
|
8
|
+
Deactivated = "deactivated",
|
|
9
|
+
Deleted = "deleted"
|
|
5
10
|
}
|
|
@@ -3,10 +3,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.UserStatus = void 0;
|
|
4
4
|
var UserStatus;
|
|
5
5
|
(function (UserStatus) {
|
|
6
|
-
// user is active
|
|
6
|
+
// user is active and verified
|
|
7
7
|
UserStatus["Active"] = "active";
|
|
8
|
-
// user
|
|
8
|
+
// user registered but not verified (email/phone verification pending)
|
|
9
|
+
UserStatus["Pending"] = "pending";
|
|
10
|
+
// user archived by admin
|
|
9
11
|
UserStatus["Archived"] = "archived";
|
|
10
|
-
// user
|
|
12
|
+
// user account suspended/banned by admin
|
|
11
13
|
UserStatus["Suspended"] = "suspended";
|
|
14
|
+
// user cancelled their account (soft delete)
|
|
15
|
+
UserStatus["Cancelled"] = "cancelled";
|
|
16
|
+
// user account is locked due to security reasons (too many failed login attempts, suspicious activity)
|
|
17
|
+
UserStatus["Locked"] = "locked";
|
|
18
|
+
// user account is temporarily deactivated by user (can be reactivated)
|
|
19
|
+
UserStatus["Deactivated"] = "deactivated";
|
|
20
|
+
// user account permanently deleted
|
|
21
|
+
UserStatus["Deleted"] = "deleted";
|
|
12
22
|
})(UserStatus = exports.UserStatus || (exports.UserStatus = {}));
|