@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.
@@ -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
  }
@@ -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;
@@ -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.2",
3
+ "version": "1.102.4",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",