@glissandoo/lib 1.104.9 → 1.104.10

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.
@@ -167,6 +167,7 @@ export declare namespace EventoFbFunctionsTypes {
167
167
  export interface SetRollCallParams {
168
168
  eventId: string;
169
169
  list: Record<string, RollcallAction>;
170
+ remarks?: Record<string, string>;
170
171
  }
171
172
  export type SetRollCallResult = void;
172
173
  export interface GetByIdParams {
@@ -31,4 +31,6 @@ export default class EventoPlayer extends PlayerBasic<EventPlayerData> {
31
31
  get isDiscarded(): boolean;
32
32
  get isPendingSelected(): boolean;
33
33
  get isActive(): boolean;
34
+ get remarks(): string | null;
35
+ get questions(): import("./types").EventPlayerAnswers[];
34
36
  }
@@ -87,5 +87,11 @@ class EventoPlayer extends basic_1.default {
87
87
  get isActive() {
88
88
  return this.exists && this.selected !== false;
89
89
  }
90
+ get remarks() {
91
+ return this.data.remarks || null;
92
+ }
93
+ get questions() {
94
+ return this.data.questions || [];
95
+ }
90
96
  }
91
97
  exports.default = EventoPlayer;
@@ -17,7 +17,7 @@ export interface EventPlayerAnswers {
17
17
  answers: string[];
18
18
  note: string | null;
19
19
  }
20
- type EventPlayerHistoricalProperties = Extract<keyof EventPlayerBasicData, 'status' | 'rollcall' | 'interested' | 'selected' | 'questions' | 'note'>;
20
+ type EventPlayerHistoricalProperties = Extract<keyof EventPlayerData, 'status' | 'rollcall' | 'interested' | 'selected' | 'questions' | 'note' | 'remarks'>;
21
21
  interface EventPlayerHistoryAction<T extends EventPlayerHistoricalProperties, V = EventPlayerData[T], M extends object = EmptyObject> {
22
22
  type: T;
23
23
  value: V;
@@ -26,10 +26,11 @@ interface EventPlayerHistoryAction<T extends EventPlayerHistoricalProperties, V
26
26
  export type EventPlayerHistoryStatusAction = EventPlayerHistoryAction<'status', EventPlayerData['status']>;
27
27
  export type EventPlayerHistoryQuestionsAction = EventPlayerHistoryAction<'questions', EventPlayerData['questions']>;
28
28
  export type EventPlayerHistoryNoteAction = EventPlayerHistoryAction<'note', EventPlayerData['note']>;
29
- export type EventPlayerHistoryRollcallAction = EventPlayerHistoryAction<'rollcall'>;
29
+ export type EventPlayerHistoryRollcallAction = EventPlayerHistoryAction<'rollcall', EventPlayerData['rollcall']>;
30
+ export type EventPlayerHistoryRollcallRemarksAction = EventPlayerHistoryAction<'remarks', EventPlayerData['remarks']>;
30
31
  export type EventPlayerHistoryInterestedAction = EventPlayerHistoryAction<'interested'>;
31
32
  export type EventPlayerHistorySelectedAction = EventPlayerHistoryAction<'selected', NonNullable<EventPlayerData['selected']>>;
32
- export type EventPlayerHistoryActions = EventPlayerHistoryStatusAction | EventPlayerHistoryRollcallAction | EventPlayerHistoryInterestedAction | EventPlayerHistorySelectedAction | EventPlayerHistoryQuestionsAction | EventPlayerHistoryNoteAction;
33
+ export type EventPlayerHistoryActions = EventPlayerHistoryStatusAction | EventPlayerHistoryRollcallAction | EventPlayerHistoryInterestedAction | EventPlayerHistorySelectedAction | EventPlayerHistoryQuestionsAction | EventPlayerHistoryNoteAction | EventPlayerHistoryRollcallRemarksAction;
33
34
  export interface EventPlayerHistory {
34
35
  action: EventPlayerHistoryActions;
35
36
  changedAt: Timestamp;
@@ -52,6 +53,7 @@ export interface EventPlayerData extends EventPlayerBasicData {
52
53
  rollCalledAt: Timestamp | null;
53
54
  questions: EventPlayerAnswers[];
54
55
  history: EventPlayerHistory[];
56
+ remarks: string | null;
55
57
  }
56
58
  export interface AEventPlayerData extends EventPlayerData {
57
59
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.104.9",
3
+ "version": "1.104.10",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",