@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.
@@ -160,12 +160,12 @@ exports.userNotificationSettings = {
160
160
  types_1.NotificationActions.PerformanceAssistanceDecline,
161
161
  types_1.NotificationActions.PracticeAssistanceDecline,
162
162
  ],
163
- [types_2.UserNotificationSettings.InterestConfirmed]: [
164
- types_1.NotificationActions.PerformanceInterestConfirm,
165
- types_1.NotificationActions.PracticeInterestConfirm,
166
- ],
167
- [types_2.UserNotificationSettings.InterestLost]: [
168
- types_1.NotificationActions.PerformanceInterestLose,
169
- types_1.NotificationActions.PracticeInterestLose,
170
- ],
163
+ // [UserNotificationSettings.InterestConfirmed]: [
164
+ // NotificationActions.PerformanceInterestConfirm,
165
+ // NotificationActions.PracticeInterestConfirm,
166
+ // ],
167
+ // [UserNotificationSettings.InterestLost]: [
168
+ // NotificationActions.PerformanceInterestLose,
169
+ // NotificationActions.PracticeInterestLose,
170
+ // ],
171
171
  };
@@ -24,4 +24,5 @@ export default class Customer extends CustomerBasic<CustomerData> {
24
24
  get glissandooAdminUrl(): string;
25
25
  get mrr(): number;
26
26
  get manual(): boolean;
27
+ get notes(): string | null;
27
28
  }
@@ -61,5 +61,8 @@ class Customer extends basic_1.default {
61
61
  get manual() {
62
62
  return this.data.manual || false;
63
63
  }
64
+ get notes() {
65
+ return this.data.notes || null;
66
+ }
64
67
  }
65
68
  exports.default = Customer;
@@ -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
  }
@@ -66,4 +66,5 @@ export default class User extends UserBasic<UserData> {
66
66
  id: string;
67
67
  })[];
68
68
  get analyticsEnabled(): boolean;
69
+ get lastBiweeklyEmailAt(): FirebaseFirestore.Timestamp | null;
69
70
  }
@@ -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;
@@ -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;
@@ -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
- UserNotificationSettings["InterestConfirmed"] = "enabled_interest_confirmed";
32
- UserNotificationSettings["InterestLost"] = "enabled_interest_lost";
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.102.3",
3
+ "version": "1.102.4",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",