@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.
package/models/Group/index.d.ts
CHANGED
|
@@ -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
|
}
|
package/models/Group/index.js
CHANGED
|
@@ -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;
|
package/models/Group/types.d.ts
CHANGED
|
@@ -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;
|
package/models/User/index.d.ts
CHANGED
|
@@ -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
|
}
|
package/models/User/index.js
CHANGED
|
@@ -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
|
}
|
package/models/User/types.d.ts
CHANGED