@glissandoo/lib 1.102.2 → 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/Partnership/Partner/index.d.ts +1 -2
- package/models/Partnership/Partner/index.js +4 -7
- 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
|
}
|
|
@@ -24,9 +24,8 @@ export default class PartnershipPartner extends ModelWithLang<PartnershipPartner
|
|
|
24
24
|
get createdBy(): import("../../../types/firestore").DocumentReference<import("../../../types/firestore").DocumentData>;
|
|
25
25
|
get editedAt(): FirebaseFirestore.Timestamp | null;
|
|
26
26
|
get editedBy(): string | null;
|
|
27
|
-
get deletedAt(): FirebaseFirestore.Timestamp | null;
|
|
28
|
-
get deletedBy(): string | null;
|
|
29
27
|
get isDeleted(): boolean;
|
|
30
28
|
get isActive(): boolean;
|
|
31
29
|
get userId(): string | null;
|
|
30
|
+
get groupIds(): string[];
|
|
32
31
|
}
|
|
@@ -60,14 +60,8 @@ class PartnershipPartner extends lang_1.default {
|
|
|
60
60
|
get editedBy() {
|
|
61
61
|
return this.data.editedBy || null;
|
|
62
62
|
}
|
|
63
|
-
get deletedAt() {
|
|
64
|
-
return this.data.deletedAt || null;
|
|
65
|
-
}
|
|
66
|
-
get deletedBy() {
|
|
67
|
-
return this.data.deletedBy || null;
|
|
68
|
-
}
|
|
69
63
|
get isDeleted() {
|
|
70
|
-
return this.deletedAt !== null;
|
|
64
|
+
return this.data.deletedAt !== null;
|
|
71
65
|
}
|
|
72
66
|
get isActive() {
|
|
73
67
|
return this.exists && !this.isDeleted;
|
|
@@ -75,5 +69,8 @@ class PartnershipPartner extends lang_1.default {
|
|
|
75
69
|
get userId() {
|
|
76
70
|
return this.data.userId || null;
|
|
77
71
|
}
|
|
72
|
+
get groupIds() {
|
|
73
|
+
return this.data.groupIds || [];
|
|
74
|
+
}
|
|
78
75
|
}
|
|
79
76
|
exports.default = PartnershipPartner;
|
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) {
|