@glissandoo/lib 1.48.1 → 1.48.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.
@@ -1,6 +1,6 @@
1
1
  import { Descendant } from '../helpers/slate';
2
2
  import { EventPlayerStatus } from '../models/Evento/Player/types';
3
- import { EventBasicData, EventCreatedOn, EventRepeatPeriod, EventStage, EventType } from '../models/Evento/types';
3
+ import { EventBasicData, EventCreatedOn, EventRepeatPeriod, EventResponseDeadlineOptions, EventStage, EventType } from '../models/Evento/types';
4
4
  import { GroupBasicData } from '../models/Group/types';
5
5
  export declare namespace EventoFbFunctionsTypes {
6
6
  export enum RelationAction {
@@ -34,6 +34,10 @@ export declare namespace EventoFbFunctionsTypes {
34
34
  stageTemplateId: string | null;
35
35
  images: string[];
36
36
  createdOn: EventCreatedOn;
37
+ responseDeadline: {
38
+ option: EventResponseDeadlineOptions;
39
+ customAt: number | null;
40
+ };
37
41
  }
38
42
  export type PublishResult = string[];
39
43
  interface EditParamsBase {
@@ -46,7 +50,8 @@ export declare namespace EventoFbFunctionsTypes {
46
50
  Locality = "locality",
47
51
  Comments = "comments",
48
52
  Attendance = "attendance",
49
- Stage = "stage"
53
+ Stage = "stage",
54
+ ResponseDeadline = "responseDeadline"
50
55
  }
51
56
  export interface EditTitleData {
52
57
  scope: EditScope.Title;
@@ -94,6 +99,14 @@ export declare namespace EventoFbFunctionsTypes {
94
99
  export type EditData = EditTitleData | EditLocalityData | EditCommentsData | EditAttendanceData | EditStageData;
95
100
  export type EditParams = EditTitleParams | EditLocalityParams | EditCommentsParams | EditAttendanceParams | EditStageParams;
96
101
  export type EditResult = void;
102
+ export interface EditResponseDeadlineParams {
103
+ eventId: string;
104
+ relations: RelationAction;
105
+ notify: boolean;
106
+ option: EventResponseDeadlineOptions;
107
+ customAt: number | null;
108
+ }
109
+ export type EditResponseDeadlineResult = void;
97
110
  export interface EditDatetimeParams {
98
111
  eventId: string;
99
112
  relations: RelationAction;
@@ -16,6 +16,7 @@ var EventoFbFunctionsTypes;
16
16
  EditScope["Comments"] = "comments";
17
17
  EditScope["Attendance"] = "attendance";
18
18
  EditScope["Stage"] = "stage";
19
+ EditScope["ResponseDeadline"] = "responseDeadline";
19
20
  })(EditScope = EventoFbFunctionsTypes.EditScope || (EventoFbFunctionsTypes.EditScope = {}));
20
21
  // setRollCall
21
22
  let UndoAction;
@@ -21,6 +21,7 @@ export declare enum FbFunctionName {
21
21
  EventGetById = "event-getById",
22
22
  EventEdit = "event-edit",
23
23
  EventEditDatetime = "event-editDatetime",
24
+ EventEditResponseDeadline = "event-editResponseDeadline",
24
25
  EventNotifyPendingPlayers = "event-notifyPendingPlayers",
25
26
  EventOnCreate = "event-onCreate",
26
27
  EventOnUpdate = "event-onUpdate",
@@ -25,6 +25,7 @@ var FbFunctionName;
25
25
  FbFunctionName["EventGetById"] = "event-getById";
26
26
  FbFunctionName["EventEdit"] = "event-edit";
27
27
  FbFunctionName["EventEditDatetime"] = "event-editDatetime";
28
+ FbFunctionName["EventEditResponseDeadline"] = "event-editResponseDeadline";
28
29
  FbFunctionName["EventNotifyPendingPlayers"] = "event-notifyPendingPlayers";
29
30
  FbFunctionName["EventOnCreate"] = "event-onCreate";
30
31
  FbFunctionName["EventOnUpdate"] = "event-onUpdate";
@@ -68,6 +68,7 @@ const regionByFunctions = {
68
68
  [index_1.FbFunctionName.EventSetRollcall]: GCloudRegions.UsCentral1,
69
69
  [index_1.FbFunctionName.EventEdit]: GCloudRegions.UsCentral1,
70
70
  [index_1.FbFunctionName.EventEditDatetime]: GCloudRegions.UsCentral1,
71
+ [index_1.FbFunctionName.EventEditResponseDeadline]: GCloudRegions.EuropeWest6,
71
72
  [index_1.FbFunctionName.EventGetById]: GCloudRegions.EuropeWest6,
72
73
  [index_1.FbFunctionName.EventRemove]: GCloudRegions.UsCentral1,
73
74
  [index_1.FbFunctionName.EventOnCreate]: GCloudRegions.UsCentral1,
@@ -16,6 +16,7 @@ export declare enum NotificationEventActions {
16
16
  EditRepertory = "editRepertory",
17
17
  EditStage = "editStage",
18
18
  EditTitle = "editTitle",
19
+ EditResponseDeadline = "editResponseDeadline",
19
20
  AddPlayers = "addPlayers",
20
21
  RemovePlayers = "removePlayers",
21
22
  ConfirmAssistance = "confirmAssistance",
@@ -34,6 +34,7 @@ var NotificationEventActions;
34
34
  NotificationEventActions["EditRepertory"] = "editRepertory";
35
35
  NotificationEventActions["EditStage"] = "editStage";
36
36
  NotificationEventActions["EditTitle"] = "editTitle";
37
+ NotificationEventActions["EditResponseDeadline"] = "editResponseDeadline";
37
38
  NotificationEventActions["AddPlayers"] = "addPlayers";
38
39
  NotificationEventActions["RemovePlayers"] = "removePlayers";
39
40
  NotificationEventActions["ConfirmAssistance"] = "confirmAssistance";
@@ -49,6 +50,7 @@ exports.editScopeToAction = {
49
50
  [event_1.EventoFbFunctionsTypes.EditScope.Comments]: NotificationEventActions.EditComments,
50
51
  [event_1.EventoFbFunctionsTypes.EditScope.Attendance]: NotificationEventActions.EditAttendance,
51
52
  [event_1.EventoFbFunctionsTypes.EditScope.Stage]: NotificationEventActions.EditStage,
53
+ [event_1.EventoFbFunctionsTypes.EditScope.ResponseDeadline]: NotificationEventActions.EditResponseDeadline,
52
54
  };
53
55
  exports.notificationPerformance = {
54
56
  [NotificationEventActions.Cancel]: types_1.NotificationActions.PerformanceCancel,
@@ -60,6 +62,7 @@ exports.notificationPerformance = {
60
62
  [NotificationEventActions.EditRepertory]: types_1.NotificationActions.PerformanceEditRepertory,
61
63
  [NotificationEventActions.EditTitle]: types_1.NotificationActions.PerformanceEditTitle,
62
64
  [NotificationEventActions.EditStage]: types_1.NotificationActions.PerformanceEditStage,
65
+ [NotificationEventActions.EditResponseDeadline]: types_1.NotificationActions.PerformanceEditResponseDeadline,
63
66
  [NotificationEventActions.AddPlayers]: types_1.NotificationActions.PerformancePlayersAdd,
64
67
  [NotificationEventActions.RemovePlayers]: types_1.NotificationActions.PerformancePlayersRemove,
65
68
  [NotificationEventActions.ConfirmAssistance]: types_1.NotificationActions.PerformanceAssistanceConfirm,
@@ -79,6 +82,7 @@ exports.notificationSinglePractice = {
79
82
  [NotificationEventActions.EditRepertory]: types_1.NotificationActions.PracticeEditRepertory,
80
83
  [NotificationEventActions.EditTitle]: types_1.NotificationActions.PracticeEditTitle,
81
84
  [NotificationEventActions.EditStage]: types_1.NotificationActions.PracticeEditStage,
85
+ [NotificationEventActions.EditResponseDeadline]: types_1.NotificationActions.PracticeEditResponseDeadline,
82
86
  [NotificationEventActions.AddPlayers]: types_1.NotificationActions.PracticePlayersAdd,
83
87
  [NotificationEventActions.RemovePlayers]: types_1.NotificationActions.PracticePlayersRemove,
84
88
  [NotificationEventActions.ConfirmAssistance]: types_1.NotificationActions.PracticeAssistanceConfirm,
@@ -98,6 +102,7 @@ exports.notificationMultiplePractice = {
98
102
  [NotificationEventActions.EditRepertory]: types_1.NotificationActions.PracticesEditRepertory,
99
103
  [NotificationEventActions.EditTitle]: types_1.NotificationActions.PracticesEditTitle,
100
104
  [NotificationEventActions.EditStage]: types_1.NotificationActions.PracticesEditStage,
105
+ [NotificationEventActions.EditResponseDeadline]: types_1.NotificationActions.PracticesEditResponseDeadline,
101
106
  [NotificationEventActions.AddPlayers]: types_1.NotificationActions.PracticesPlayersAdd,
102
107
  [NotificationEventActions.RemovePlayers]: types_1.NotificationActions.PracticesPlayersRemove,
103
108
  [NotificationEventActions.ConfirmAssistance]: types_1.NotificationActions.PracticeAssistanceConfirm,
@@ -102,8 +102,6 @@ export interface EventData extends EventPromoterData {
102
102
  rollCalledBy: string | null;
103
103
  rollCallReminderAt: Timestamp | null;
104
104
  rollCallHistory: EventRollcallHistory[];
105
- /** @deprecated */
106
- viewers: Record<string, EventViewer>;
107
105
  templateId: string | null;
108
106
  repeat: EventRepeatType | null;
109
107
  stage: EventStage | null;
@@ -33,6 +33,7 @@ export declare enum NotificationActions {
33
33
  PerformanceEditRepertory = "performance.edit.repertory",
34
34
  PerformanceEditTitle = "performance.edit.title",
35
35
  PerformanceEditStage = "performance.edit.stage",
36
+ PerformanceEditResponseDeadline = "performance.edit.responseDeadline",
36
37
  PerformanceReminderDatetimeToConfirmed = "performance.reminderDatetime.confirmed",
37
38
  PerformanceReminderDeadlineToPending = "performance.reminderDeadline.pending",
38
39
  PerformancePlayersAdd = "performance.players.add",
@@ -50,6 +51,7 @@ export declare enum NotificationActions {
50
51
  PracticeEditRepertory = "practice.edit.repertory",
51
52
  PracticeEditTitle = "practice.edit.title",
52
53
  PracticeEditStage = "practice.edit.stage",
54
+ PracticeEditResponseDeadline = "practice.edit.responseDeadline",
53
55
  PracticeReminderDatetimeToConfirmed = "practice.reminderDatetime.confirmed",
54
56
  PracticeReminderDeadlineToPending = "practice.reminderDeadline.pending",
55
57
  PracticePlayersAdd = "practice.players.add",
@@ -65,6 +67,7 @@ export declare enum NotificationActions {
65
67
  PracticesEditRepertory = "practices.edit.repertory",
66
68
  PracticesEditTitle = "practices.edit.title",
67
69
  PracticesEditStage = "practices.edit.stage",
70
+ PracticesEditResponseDeadline = "practices.edit.responseDeadline",
68
71
  PracticesPlayersAdd = "practices.players.add",
69
72
  PracticesPlayersRemove = "practices.players.remove",
70
73
  ThemeClaimNew = "theme.claim.new",
@@ -30,6 +30,7 @@ var NotificationActions;
30
30
  NotificationActions["PerformanceEditRepertory"] = "performance.edit.repertory";
31
31
  NotificationActions["PerformanceEditTitle"] = "performance.edit.title";
32
32
  NotificationActions["PerformanceEditStage"] = "performance.edit.stage";
33
+ NotificationActions["PerformanceEditResponseDeadline"] = "performance.edit.responseDeadline";
33
34
  NotificationActions["PerformanceReminderDatetimeToConfirmed"] = "performance.reminderDatetime.confirmed";
34
35
  NotificationActions["PerformanceReminderDeadlineToPending"] = "performance.reminderDeadline.pending";
35
36
  NotificationActions["PerformancePlayersAdd"] = "performance.players.add";
@@ -47,6 +48,7 @@ var NotificationActions;
47
48
  NotificationActions["PracticeEditRepertory"] = "practice.edit.repertory";
48
49
  NotificationActions["PracticeEditTitle"] = "practice.edit.title";
49
50
  NotificationActions["PracticeEditStage"] = "practice.edit.stage";
51
+ NotificationActions["PracticeEditResponseDeadline"] = "practice.edit.responseDeadline";
50
52
  NotificationActions["PracticeReminderDatetimeToConfirmed"] = "practice.reminderDatetime.confirmed";
51
53
  NotificationActions["PracticeReminderDeadlineToPending"] = "practice.reminderDeadline.pending";
52
54
  NotificationActions["PracticePlayersAdd"] = "practice.players.add";
@@ -62,6 +64,7 @@ var NotificationActions;
62
64
  NotificationActions["PracticesEditRepertory"] = "practices.edit.repertory";
63
65
  NotificationActions["PracticesEditTitle"] = "practices.edit.title";
64
66
  NotificationActions["PracticesEditStage"] = "practices.edit.stage";
67
+ NotificationActions["PracticesEditResponseDeadline"] = "practices.edit.responseDeadline";
65
68
  NotificationActions["PracticesPlayersAdd"] = "practices.players.add";
66
69
  NotificationActions["PracticesPlayersRemove"] = "practices.players.remove";
67
70
  NotificationActions["ThemeClaimNew"] = "theme.claim.new";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.48.1",
3
+ "version": "1.48.2",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",