@pulsecharterconnect/types 0.2.100 → 0.2.101
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/dist/types/User.d.ts +1 -1
- package/dist/types/User.js +30 -30
- package/package.json +1 -1
package/dist/types/User.d.ts
CHANGED
|
@@ -91,7 +91,7 @@ export declare class User implements IUser {
|
|
|
91
91
|
sidebarItems?: SidebarItem[] | undefined;
|
|
92
92
|
createdAt?: number;
|
|
93
93
|
updatedAt?: number;
|
|
94
|
-
constructor(
|
|
94
|
+
constructor(user: IUser);
|
|
95
95
|
isAvailableForNotifications(): boolean;
|
|
96
96
|
}
|
|
97
97
|
export declare class ResetPassword {
|
package/dist/types/User.js
CHANGED
|
@@ -36,38 +36,38 @@ var UserStatus;
|
|
|
36
36
|
UserStatus["DELETED"] = "deleted";
|
|
37
37
|
})(UserStatus = exports.UserStatus || (exports.UserStatus = {}));
|
|
38
38
|
class User {
|
|
39
|
-
constructor(
|
|
40
|
-
this.id = id;
|
|
41
|
-
this.workOsId = workOsId;
|
|
42
|
-
this.primaryEmail = primaryEmail;
|
|
43
|
-
this.secondaryEmail = secondaryEmail || undefined;
|
|
44
|
-
this.firstName = firstName;
|
|
45
|
-
this.lastName = lastName;
|
|
46
|
-
this.title = title;
|
|
47
|
-
this.primaryPhoneNumber = primaryPhoneNumber;
|
|
48
|
-
this.secondaryPhoneNumber = secondaryPhoneNumber || undefined;
|
|
49
|
-
this.privacyAgreedOnDate = privacyAgreedOnDate;
|
|
50
|
-
this.termsAgreedOnDate = termsAgreedOnDate;
|
|
51
|
-
this.organizationId = organizationId;
|
|
52
|
-
this.role = role;
|
|
53
|
-
this.addedByUserId = addedByUserId;
|
|
54
|
-
this.addedOnDate = addedOnDate;
|
|
55
|
-
this.lastLoginDate = lastLoginDate;
|
|
39
|
+
constructor(user) {
|
|
40
|
+
this.id = user.id;
|
|
41
|
+
this.workOsId = user.workOsId;
|
|
42
|
+
this.primaryEmail = user.primaryEmail;
|
|
43
|
+
this.secondaryEmail = user.secondaryEmail || undefined;
|
|
44
|
+
this.firstName = user.firstName;
|
|
45
|
+
this.lastName = user.lastName;
|
|
46
|
+
this.title = user.title;
|
|
47
|
+
this.primaryPhoneNumber = user.primaryPhoneNumber;
|
|
48
|
+
this.secondaryPhoneNumber = user.secondaryPhoneNumber || undefined;
|
|
49
|
+
this.privacyAgreedOnDate = user.privacyAgreedOnDate;
|
|
50
|
+
this.termsAgreedOnDate = user.termsAgreedOnDate;
|
|
51
|
+
this.organizationId = user.organizationId;
|
|
52
|
+
this.role = user.role;
|
|
53
|
+
this.addedByUserId = user.addedByUserId;
|
|
54
|
+
this.addedOnDate = user.addedOnDate;
|
|
55
|
+
this.lastLoginDate = user.lastLoginDate;
|
|
56
56
|
this.notificationSettings = {
|
|
57
|
-
email: notificationSettings.email || false,
|
|
58
|
-
text: notificationSettings.text || false,
|
|
59
|
-
voice: notificationSettings.voice || false,
|
|
60
|
-
inApp: notificationSettings.inApp || true,
|
|
61
|
-
snoozeUntil: notificationSettings.snoozeUntil || 0,
|
|
62
|
-
snoozeUntilTimezone: notificationSettings.snoozeUntilTimezone || "UTC",
|
|
57
|
+
email: user.notificationSettings.email || false,
|
|
58
|
+
text: user.notificationSettings.text || false,
|
|
59
|
+
voice: user.notificationSettings.voice || false,
|
|
60
|
+
inApp: user.notificationSettings.inApp || true,
|
|
61
|
+
snoozeUntil: user.notificationSettings.snoozeUntil || 0,
|
|
62
|
+
snoozeUntilTimezone: user.notificationSettings.snoozeUntilTimezone || "UTC",
|
|
63
63
|
};
|
|
64
|
-
this.verifiedEmail = verifiedEmail || false;
|
|
65
|
-
this.status = status || UserStatus.CREATED;
|
|
66
|
-
this.chatToken = chatToken || undefined;
|
|
67
|
-
this.chatUserId = chatUserId || undefined;
|
|
68
|
-
this.sidebarItems = sidebarItems || undefined;
|
|
69
|
-
this.createdAt = createdAt;
|
|
70
|
-
this.updatedAt = updatedAt;
|
|
64
|
+
this.verifiedEmail = user.verifiedEmail || false;
|
|
65
|
+
this.status = user.status || UserStatus.CREATED;
|
|
66
|
+
this.chatToken = user.chatToken || undefined;
|
|
67
|
+
this.chatUserId = user.chatUserId || undefined;
|
|
68
|
+
this.sidebarItems = user.sidebarItems || undefined;
|
|
69
|
+
this.createdAt = user.createdAt;
|
|
70
|
+
this.updatedAt = user.updatedAt;
|
|
71
71
|
}
|
|
72
72
|
isAvailableForNotifications() {
|
|
73
73
|
const now = luxon_1.DateTime.now().toMillis();
|