@glissandoo/lib 1.102.3 → 1.102.4
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/helpers/notifications/index.js +8 -8
- package/models/Customer/index.d.ts +1 -0
- package/models/Customer/index.js +3 -0
- package/models/Customer/types.d.ts +2 -2
- package/models/User/index.d.ts +1 -0
- package/models/User/index.js +3 -0
- package/models/User/types.d.ts +2 -3
- package/models/User/types.js +2 -2
- package/package.json +1 -1
|
@@ -160,12 +160,12 @@ exports.userNotificationSettings = {
|
|
|
160
160
|
types_1.NotificationActions.PerformanceAssistanceDecline,
|
|
161
161
|
types_1.NotificationActions.PracticeAssistanceDecline,
|
|
162
162
|
],
|
|
163
|
-
[
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
],
|
|
167
|
-
[
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
],
|
|
163
|
+
// [UserNotificationSettings.InterestConfirmed]: [
|
|
164
|
+
// NotificationActions.PerformanceInterestConfirm,
|
|
165
|
+
// NotificationActions.PracticeInterestConfirm,
|
|
166
|
+
// ],
|
|
167
|
+
// [UserNotificationSettings.InterestLost]: [
|
|
168
|
+
// NotificationActions.PerformanceInterestLose,
|
|
169
|
+
// NotificationActions.PracticeInterestLose,
|
|
170
|
+
// ],
|
|
171
171
|
};
|
package/models/Customer/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DocumentReference, Timestamp } from '@google-cloud/firestore';
|
|
2
|
-
import { AdminItem } from '../../helpers/types';
|
|
3
|
-
import { BasicAddressData } from '../../helpers/types';
|
|
2
|
+
import { AdminItem, BasicAddressData } from '../../helpers/types';
|
|
4
3
|
export declare enum CustomerRoles {
|
|
5
4
|
Admin = "admin"
|
|
6
5
|
}
|
|
@@ -26,6 +25,7 @@ export interface CustomerData extends CustomerBasicData {
|
|
|
26
25
|
howDidYouHearAboutUs: string | null;
|
|
27
26
|
mrr: number;
|
|
28
27
|
manual: boolean;
|
|
28
|
+
notes: string | null;
|
|
29
29
|
readonly createdAt: Timestamp;
|
|
30
30
|
readonly createdBy: DocumentReference;
|
|
31
31
|
}
|
package/models/User/index.d.ts
CHANGED
package/models/User/index.js
CHANGED
|
@@ -173,5 +173,8 @@ class User extends basic_1.default {
|
|
|
173
173
|
get analyticsEnabled() {
|
|
174
174
|
return (0, lodash_1.isBoolean)(this.data.analyticsEnabled) ? this.data.analyticsEnabled : true;
|
|
175
175
|
}
|
|
176
|
+
get lastBiweeklyEmailAt() {
|
|
177
|
+
return this.data.lastBiweeklyEmailAt || null;
|
|
178
|
+
}
|
|
176
179
|
}
|
|
177
180
|
exports.default = User;
|
package/models/User/types.d.ts
CHANGED
|
@@ -23,9 +23,7 @@ export declare enum UserDashboardConfig {
|
|
|
23
23
|
}
|
|
24
24
|
export declare enum UserNotificationSettings {
|
|
25
25
|
AttendanceConfirmed = "enabled_attendance_confirmed",
|
|
26
|
-
AttendanceDeclined = "enabled_attendance_declined"
|
|
27
|
-
InterestConfirmed = "enabled_interest_confirmed",
|
|
28
|
-
InterestLost = "enabled_interest_lost"
|
|
26
|
+
AttendanceDeclined = "enabled_attendance_declined"
|
|
29
27
|
}
|
|
30
28
|
export declare enum UserEmailSettings {
|
|
31
29
|
ReminderBiweeklyEvents = "enabled_reminder_biweekly_events",
|
|
@@ -80,6 +78,7 @@ export interface UserData extends UserBasicData {
|
|
|
80
78
|
devices: Record<string, UserDeviceInfo>;
|
|
81
79
|
notificationSettings: Record<UserNotificationSettings, boolean>;
|
|
82
80
|
emailSettings: Record<UserEmailSettings, boolean>;
|
|
81
|
+
lastBiweeklyEmailAt: Timestamp | null;
|
|
83
82
|
dashboardConfig: {
|
|
84
83
|
[UserDashboardConfig.DefaultGroupId]: string | null;
|
|
85
84
|
[UserDashboardConfig.DefaultPartnershipId]: string | null;
|
package/models/User/types.js
CHANGED
|
@@ -28,8 +28,8 @@ var UserNotificationSettings;
|
|
|
28
28
|
(function (UserNotificationSettings) {
|
|
29
29
|
UserNotificationSettings["AttendanceConfirmed"] = "enabled_attendance_confirmed";
|
|
30
30
|
UserNotificationSettings["AttendanceDeclined"] = "enabled_attendance_declined";
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
// InterestConfirmed = 'enabled_interest_confirmed',
|
|
32
|
+
// InterestLost = 'enabled_interest_lost',
|
|
33
33
|
})(UserNotificationSettings = exports.UserNotificationSettings || (exports.UserNotificationSettings = {}));
|
|
34
34
|
var UserEmailSettings;
|
|
35
35
|
(function (UserEmailSettings) {
|