@glissandoo/lib 1.53.0 → 1.53.2
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.
|
@@ -9,12 +9,12 @@ export default class EventoPlayerBasic {
|
|
|
9
9
|
constructor(eventId: string, data: AEventPlayerBasicData | null, lang?: LanguagesTypes);
|
|
10
10
|
get id(): string;
|
|
11
11
|
get username(): string;
|
|
12
|
-
get displayName(): string
|
|
13
|
-
get photoURL(): string
|
|
12
|
+
get displayName(): string;
|
|
13
|
+
get photoURL(): string;
|
|
14
14
|
get mainInstrument(): import("../../../helpers/instruments").InstrumentId;
|
|
15
|
+
get status(): EventPlayerStatus | null;
|
|
15
16
|
get reason(): import("./types").EventPlayerReason | null;
|
|
16
17
|
get note(): string | null;
|
|
17
|
-
get status(): EventPlayerStatus | null;
|
|
18
18
|
get rollcall(): EventPlayerStatus | null;
|
|
19
19
|
get interested(): true | null;
|
|
20
20
|
get selected(): boolean | null;
|
|
@@ -17,23 +17,23 @@ class EventoPlayerBasic {
|
|
|
17
17
|
return this.data.username;
|
|
18
18
|
}
|
|
19
19
|
get displayName() {
|
|
20
|
-
return this.data.displayName
|
|
20
|
+
return this.data.displayName;
|
|
21
21
|
}
|
|
22
22
|
get photoURL() {
|
|
23
|
-
return this.data.photoURL
|
|
23
|
+
return this.data.photoURL;
|
|
24
24
|
}
|
|
25
25
|
get mainInstrument() {
|
|
26
26
|
return this.data.mainInstrument;
|
|
27
27
|
}
|
|
28
|
+
get status() {
|
|
29
|
+
return this.data.status;
|
|
30
|
+
}
|
|
28
31
|
get reason() {
|
|
29
32
|
return this.data.reason || null;
|
|
30
33
|
}
|
|
31
34
|
get note() {
|
|
32
35
|
return this.data.note || null;
|
|
33
36
|
}
|
|
34
|
-
get status() {
|
|
35
|
-
return this.data.status;
|
|
36
|
-
}
|
|
37
37
|
get rollcall() {
|
|
38
38
|
return this.data.rollcall || null;
|
|
39
39
|
}
|
package/models/Evento/index.d.ts
CHANGED
|
@@ -63,7 +63,7 @@ export default class Evento extends EventoPromoter<EventData> {
|
|
|
63
63
|
get templateId(): string | null;
|
|
64
64
|
get repeat(): import("./types").EventRepeatType | null;
|
|
65
65
|
isPlayer: (userId: string) => boolean;
|
|
66
|
-
getPlayer: (userId: string) => EventoPlayerBasic
|
|
66
|
+
getPlayer: (userId: string) => EventoPlayerBasic;
|
|
67
67
|
get responseDeadline(): {
|
|
68
68
|
option: EventResponseDeadlineOptions;
|
|
69
69
|
customAt: import("../../types/firestore").Timestamp | null;
|
package/models/Evento/index.js
CHANGED
|
@@ -18,7 +18,9 @@ class Evento extends promoter_1.default {
|
|
|
18
18
|
return this.playerIds.includes(userId);
|
|
19
19
|
};
|
|
20
20
|
this.getPlayer = (userId) => {
|
|
21
|
-
return userId in this.players
|
|
21
|
+
return userId in this.players
|
|
22
|
+
? this.players[userId]
|
|
23
|
+
: new Basic_1.default(this.id, null, this.lang);
|
|
22
24
|
};
|
|
23
25
|
}
|
|
24
26
|
get maxAttendance() {
|