@glissandoo/lib 1.43.0 → 1.44.1

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.
@@ -74,4 +74,5 @@ export default class Group extends GroupBasic<GroupData> {
74
74
  get instrumentsList(): (import("./types").GroupInstrument & {
75
75
  id: import("../../helpers/instruments").InstrumentId;
76
76
  })[];
77
+ get visitedDashboardAt(): Record<string, import("../../types/firestore").Timestamp>;
77
78
  }
@@ -197,5 +197,8 @@ class Group extends basic_1.default {
197
197
  get instrumentsList() {
198
198
  return (0, objects_1.mapToArray)(this.instruments).sort((a, b) => a.order - b.order);
199
199
  }
200
+ get visitedDashboardAt() {
201
+ return this.data.visitedDashboardAt || {};
202
+ }
200
203
  }
201
204
  exports.default = Group;
@@ -125,6 +125,7 @@ export interface GroupData extends GroupBasicData {
125
125
  firstAnswerAt: Timestamp | null;
126
126
  repertoireTags: Record<string, GroupRepertoireTag>;
127
127
  trialEndAt: Timestamp | null;
128
+ visitedDashboardAt: Record<string, Timestamp>;
128
129
  readonly createdOn: GroupCreatedOn;
129
130
  readonly owner: DocumentReference;
130
131
  readonly createdAt: Timestamp;
@@ -40,6 +40,7 @@ export default class User extends UserBasic<UserData> {
40
40
  getNotificationSetting(key: UserNotificationSettings): boolean;
41
41
  get registerVia(): import("./types").UserRegisterVia;
42
42
  get lastAppLoginAt(): import("../../types/firestore").Timestamp | null;
43
+ get lastWebLoginAt(): import("../../types/firestore").Timestamp | null;
43
44
  get glissandooAdminUrl(): string;
44
45
  get customerIds(): string[];
45
46
  }
@@ -113,6 +113,9 @@ class User extends basic_1.default {
113
113
  get lastAppLoginAt() {
114
114
  return this.data.lastAppLoginAt || null;
115
115
  }
116
+ get lastWebLoginAt() {
117
+ return this.data.lastWebLoginAt || null;
118
+ }
116
119
  get glissandooAdminUrl() {
117
120
  return (0, glissandooAdmin_1.getGlissandooAdminEntityURL)(collections_1.CollectionNames.User, this.id);
118
121
  }
@@ -64,6 +64,7 @@ export interface UserData extends UserBasicData {
64
64
  };
65
65
  registerVia: UserRegisterVia;
66
66
  lastAppLoginAt: Timestamp | null;
67
+ lastWebLoginAt: Timestamp | null;
67
68
  }
68
69
  export interface AUserBasicData extends UserBasicData {
69
70
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.43.0",
3
+ "version": "1.44.1",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",