@glissandoo/lib 1.103.7 → 1.104.0

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.
@@ -1,7 +1,7 @@
1
1
  import { Descendant } from '../helpers/slate';
2
2
  import { CreatedOn } from '../helpers/types';
3
3
  import { EventPlayerStatus } from '../models/Evento/Player/types';
4
- import { EventBasicData, EventRepeatPeriod, EventResponseDeadlineOptions, EventSelectionMode, EventStage, EventType } from '../models/Evento/types';
4
+ import { EventBasicData, EventData, EventQuestions, EventRepeatPeriod, EventResponseDeadlineOptions, EventSelectionMode, EventStage, EventType } from '../models/Evento/types';
5
5
  import { GroupBasicData } from '../models/Group/types';
6
6
  export declare namespace EventoFbFunctionsTypes {
7
7
  export enum RelationAction {
@@ -41,6 +41,7 @@ export declare namespace EventoFbFunctionsTypes {
41
41
  };
42
42
  selectionMode: EventSelectionMode | null;
43
43
  sites?: boolean;
44
+ questions?: Record<EventPlayerStatus, EventQuestions[]>;
44
45
  }
45
46
  export type PublishResult = string[];
46
47
  interface EditParamsBase {
@@ -55,7 +56,8 @@ export declare namespace EventoFbFunctionsTypes {
55
56
  Attendance = "attendance",
56
57
  Stage = "stage",
57
58
  Attachments = "attachments",
58
- Images = "images"
59
+ Images = "images",
60
+ Questions = "questions"
59
61
  }
60
62
  export interface EditTitleData {
61
63
  scope: EditScope.Title;
@@ -114,8 +116,15 @@ export declare namespace EventoFbFunctionsTypes {
114
116
  };
115
117
  }
116
118
  type EditAttachmentsParams = EditAttachmentsData & EditParamsBase;
117
- export type EditData = EditTitleData | EditLocalityData | EditCommentsData | EditAttendanceData | EditStageData | EditImagesData | EditAttachmentsData;
118
- export type EditParams = EditTitleParams | EditLocalityParams | EditCommentsParams | EditAttendanceParams | EditStageParams | EditImagesParams | EditAttachmentsParams;
119
+ export interface EditQuestionsData {
120
+ scope: EditScope.Questions;
121
+ value: {
122
+ questions: EventData['questions'];
123
+ };
124
+ }
125
+ type EditQuestionsParams = EditQuestionsData & EditParamsBase;
126
+ export type EditData = EditTitleData | EditLocalityData | EditCommentsData | EditAttendanceData | EditStageData | EditImagesData | EditAttachmentsData | EditQuestionsData;
127
+ export type EditParams = EditTitleParams | EditLocalityParams | EditCommentsParams | EditAttendanceParams | EditStageParams | EditImagesParams | EditAttachmentsParams | EditQuestionsParams;
119
128
  export type EditResult = void;
120
129
  export interface EditResponseDeadlineParams {
121
130
  eventId: string;
@@ -18,6 +18,7 @@ var EventoFbFunctionsTypes;
18
18
  EditScope["Stage"] = "stage";
19
19
  EditScope["Attachments"] = "attachments";
20
20
  EditScope["Images"] = "images";
21
+ EditScope["Questions"] = "questions";
21
22
  })(EditScope = EventoFbFunctionsTypes.EditScope || (EventoFbFunctionsTypes.EditScope = {}));
22
23
  // setRollCall
23
24
  let UndoAction;
@@ -1,4 +1,4 @@
1
- import { EventPlayerReason } from '../models/Evento/Player/types';
1
+ import { EventPlayerAnswers, EventPlayerReason } from '../models/Evento/Player/types';
2
2
  import { EventoFbFunctionsTypes } from './event';
3
3
  export declare namespace EventoPlayerFbFunctionsTypes {
4
4
  enum SwitchAssistanceActions {
@@ -23,6 +23,11 @@ export declare namespace EventoPlayerFbFunctionsTypes {
23
23
  reason: EventPlayerReason | null;
24
24
  }
25
25
  type SetReasonAttendanceResult = void;
26
+ interface SetQuestionsParams {
27
+ eventId: string;
28
+ answers: EventPlayerAnswers[];
29
+ }
30
+ type SetQuestionsResult = void;
26
31
  interface EditParams {
27
32
  eventId: string;
28
33
  userIds: string[];
@@ -34,6 +34,7 @@ export declare enum FbFunctionName {
34
34
  EventPlayerEditPlayerAttendance = "eventPlayer-editPlayerAttendance",
35
35
  EventPlayerEditPlayerInterest = "eventPlayer-editPlayerInterest",
36
36
  EventPlayerSetReasonAttendance = "eventPlayer-setReasonAttendance",
37
+ EventPlayerSetQuestions = "eventPlayer-setQuestions",
37
38
  EventPlayerSwitchAssistance = "eventPlayer-switchAssistance",
38
39
  EventPlayerSwitchInterest = "eventPlayer-switchInterest",
39
40
  EventPlayerValidateRollCall = "eventPlayer-validateRollCall",
@@ -38,6 +38,7 @@ var FbFunctionName;
38
38
  FbFunctionName["EventPlayerEditPlayerAttendance"] = "eventPlayer-editPlayerAttendance";
39
39
  FbFunctionName["EventPlayerEditPlayerInterest"] = "eventPlayer-editPlayerInterest";
40
40
  FbFunctionName["EventPlayerSetReasonAttendance"] = "eventPlayer-setReasonAttendance";
41
+ FbFunctionName["EventPlayerSetQuestions"] = "eventPlayer-setQuestions";
41
42
  FbFunctionName["EventPlayerSwitchAssistance"] = "eventPlayer-switchAssistance";
42
43
  FbFunctionName["EventPlayerSwitchInterest"] = "eventPlayer-switchInterest";
43
44
  FbFunctionName["EventPlayerValidateRollCall"] = "eventPlayer-validateRollCall";
@@ -45,6 +45,7 @@ const regionByFunctions = {
45
45
  [index_1.FbFunctionName.EventPlayerEditPlayerAttendance]: GCloudRegions.EuropeWest6,
46
46
  [index_1.FbFunctionName.EventPlayerEditPlayerInterest]: GCloudRegions.EuropeWest6,
47
47
  [index_1.FbFunctionName.EventPlayerSetReasonAttendance]: GCloudRegions.EuropeWest6,
48
+ [index_1.FbFunctionName.EventPlayerSetQuestions]: GCloudRegions.EuropeWest6,
48
49
  [index_1.FbFunctionName.EventPlayerSwitchAssistance]: GCloudRegions.UsCentral1,
49
50
  [index_1.FbFunctionName.EventPlayerSwitchInterest]: GCloudRegions.EuropeWest6,
50
51
  [index_1.FbFunctionName.EventPlayerValidateRollCall]: GCloudRegions.EuropeWest6,
@@ -19,6 +19,7 @@ export declare enum NotificationEventActions {
19
19
  EditResponseDeadline = "editResponseDeadline",
20
20
  EditImages = "editImages",
21
21
  EditAttachments = "editAttachments",
22
+ EditQuestions = "editQuestions",
22
23
  AddPlayers = "addPlayers",
23
24
  RemovePlayers = "removePlayers",
24
25
  ConfirmAssistance = "confirmAssistance",
@@ -37,6 +37,7 @@ var NotificationEventActions;
37
37
  NotificationEventActions["EditResponseDeadline"] = "editResponseDeadline";
38
38
  NotificationEventActions["EditImages"] = "editImages";
39
39
  NotificationEventActions["EditAttachments"] = "editAttachments";
40
+ NotificationEventActions["EditQuestions"] = "editQuestions";
40
41
  NotificationEventActions["AddPlayers"] = "addPlayers";
41
42
  NotificationEventActions["RemovePlayers"] = "removePlayers";
42
43
  NotificationEventActions["ConfirmAssistance"] = "confirmAssistance";
@@ -64,6 +65,7 @@ exports.editScopeToAction = {
64
65
  [event_1.EventoFbFunctionsTypes.EditScope.Stage]: NotificationEventActions.EditStage,
65
66
  [event_1.EventoFbFunctionsTypes.EditScope.Images]: NotificationEventActions.EditImages,
66
67
  [event_1.EventoFbFunctionsTypes.EditScope.Attachments]: NotificationEventActions.EditAttachments,
68
+ [event_1.EventoFbFunctionsTypes.EditScope.Questions]: NotificationEventActions.EditQuestions,
67
69
  };
68
70
  exports.notificationPerformance = {
69
71
  [NotificationEventActions.Cancel]: types_1.NotificationActions.PerformanceCancel,
@@ -75,6 +77,7 @@ exports.notificationPerformance = {
75
77
  [NotificationEventActions.EditRepertory]: types_1.NotificationActions.PerformanceEditRepertory,
76
78
  [NotificationEventActions.EditTitle]: types_1.NotificationActions.PerformanceEditTitle,
77
79
  [NotificationEventActions.EditStage]: types_1.NotificationActions.PerformanceEditStage,
80
+ [NotificationEventActions.EditQuestions]: types_1.NotificationActions.PerformanceEditQuestions,
78
81
  [NotificationEventActions.EditResponseDeadline]: types_1.NotificationActions.PerformanceEditResponseDeadline,
79
82
  [NotificationEventActions.EditImages]: types_1.NotificationActions.PerformanceEditImages,
80
83
  [NotificationEventActions.EditAttachments]: types_1.NotificationActions.PerformanceEditAttachments,
@@ -110,6 +113,7 @@ exports.notificationSinglePractice = {
110
113
  [NotificationEventActions.EditResponseDeadline]: types_1.NotificationActions.PracticeEditResponseDeadline,
111
114
  [NotificationEventActions.EditImages]: types_1.NotificationActions.PracticeEditImages,
112
115
  [NotificationEventActions.EditAttachments]: types_1.NotificationActions.PracticeEditAttachments,
116
+ [NotificationEventActions.EditQuestions]: types_1.NotificationActions.PracticeEditQuestions,
113
117
  [NotificationEventActions.AddPlayers]: types_1.NotificationActions.PracticePlayersAdd,
114
118
  [NotificationEventActions.RemovePlayers]: types_1.NotificationActions.PracticePlayersRemove,
115
119
  [NotificationEventActions.ConfirmAssistance]: types_1.NotificationActions.PracticeAssistanceConfirm,
@@ -142,6 +146,7 @@ exports.notificationMultiplePractice = {
142
146
  [NotificationEventActions.EditResponseDeadline]: types_1.NotificationActions.PracticesEditResponseDeadline,
143
147
  [NotificationEventActions.EditImages]: types_1.NotificationActions.PracticesEditImages,
144
148
  [NotificationEventActions.EditAttachments]: types_1.NotificationActions.PracticesEditAttachments,
149
+ [NotificationEventActions.EditQuestions]: types_1.NotificationActions.PracticesEditQuestions,
145
150
  [NotificationEventActions.AddPlayers]: types_1.NotificationActions.PracticesPlayersAdd,
146
151
  [NotificationEventActions.RemovePlayers]: types_1.NotificationActions.PracticesPlayersRemove,
147
152
  [NotificationEventActions.ConfirmAssistance]: types_1.NotificationActions.PracticeAssistanceConfirm,