@glissandoo/lib 1.108.4 → 1.108.5
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/functions/eventPlayer.d.ts +9 -0
- package/functions/index.d.ts +1 -0
- package/functions/index.js +1 -0
- package/functions/regions.js +1 -0
- package/models/Evento/Player/index.d.ts +1 -0
- package/models/Evento/Player/index.js +3 -0
- package/models/Evento/Player/types.d.ts +23 -4
- package/models/Evento/Player/types.js +7 -1
- package/models/Evento/types.d.ts +2 -1
- package/models/Evento/types.js +1 -0
- package/models/Group/index.d.ts +1 -0
- package/models/Group/index.js +3 -0
- package/models/Group/types.d.ts +3 -1
- package/models/Group/types.js +1 -0
- package/package.json +1 -1
|
@@ -55,4 +55,13 @@ export declare namespace EventoPlayerFbFunctionsTypes {
|
|
|
55
55
|
interested: true | null;
|
|
56
56
|
}
|
|
57
57
|
type EditPlayerInterestResult = void;
|
|
58
|
+
interface VerifyGeoLocParams {
|
|
59
|
+
latitude: number;
|
|
60
|
+
longitude: number;
|
|
61
|
+
playerId: string;
|
|
62
|
+
eventId: string;
|
|
63
|
+
}
|
|
64
|
+
interface VerifyGeoLocResult {
|
|
65
|
+
status: 'success' | 'outOfRange' | 'outOfTime' | 'noLocation';
|
|
66
|
+
}
|
|
58
67
|
}
|
package/functions/index.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export declare enum FbFunctionName {
|
|
|
41
41
|
EventPlayerSwitchAssistance = "eventPlayer-switchAssistance",
|
|
42
42
|
EventPlayerSwitchInterest = "eventPlayer-switchInterest",
|
|
43
43
|
EventPlayerValidateRollCall = "eventPlayer-validateRollCall",
|
|
44
|
+
EventPlayerVerifyGeoLoc = "eventPlayer-verifyGeoLoc",
|
|
44
45
|
EventPublish = "event-publish",
|
|
45
46
|
EventRemove = "event-remove",
|
|
46
47
|
EventRepertoryDownload = "eventRepertory-download",
|
package/functions/index.js
CHANGED
|
@@ -45,6 +45,7 @@ var FbFunctionName;
|
|
|
45
45
|
FbFunctionName["EventPlayerSwitchAssistance"] = "eventPlayer-switchAssistance";
|
|
46
46
|
FbFunctionName["EventPlayerSwitchInterest"] = "eventPlayer-switchInterest";
|
|
47
47
|
FbFunctionName["EventPlayerValidateRollCall"] = "eventPlayer-validateRollCall";
|
|
48
|
+
FbFunctionName["EventPlayerVerifyGeoLoc"] = "eventPlayer-verifyGeoLoc";
|
|
48
49
|
FbFunctionName["EventPublish"] = "event-publish";
|
|
49
50
|
FbFunctionName["EventRemove"] = "event-remove";
|
|
50
51
|
FbFunctionName["EventRepertoryDownload"] = "eventRepertory-download";
|
package/functions/regions.js
CHANGED
|
@@ -52,6 +52,7 @@ const regionByFunctions = {
|
|
|
52
52
|
[index_1.FbFunctionName.EventPlayerSwitchAssistance]: GCloudRegions.UsCentral1,
|
|
53
53
|
[index_1.FbFunctionName.EventPlayerSwitchInterest]: GCloudRegions.EuropeWest6,
|
|
54
54
|
[index_1.FbFunctionName.EventPlayerValidateRollCall]: GCloudRegions.EuropeWest6,
|
|
55
|
+
[index_1.FbFunctionName.EventPlayerVerifyGeoLoc]: GCloudRegions.EuropeWest6,
|
|
55
56
|
[index_1.FbFunctionName.EventPublish]: GCloudRegions.UsCentral1,
|
|
56
57
|
[index_1.FbFunctionName.EventRemove]: GCloudRegions.UsCentral1,
|
|
57
58
|
[index_1.FbFunctionName.EventRepertoryDownload]: GCloudRegions.EuropeWest6,
|
|
@@ -33,4 +33,5 @@ export default class EventoPlayer extends PlayerBasic<EventPlayerData> {
|
|
|
33
33
|
get isActive(): boolean;
|
|
34
34
|
get remarks(): string | null;
|
|
35
35
|
get questions(): import("./types").EventPlayerAnswers[];
|
|
36
|
+
get rollCalledVia(): import("./types").EventPlayerRollCallVia | null;
|
|
36
37
|
}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { Timestamp } from '@google-cloud/firestore';
|
|
2
2
|
import { EmptyObject } from 'type-fest';
|
|
3
3
|
import { EventPlayerBasicData, EventRollcallHistory } from '../../Evento/types';
|
|
4
|
+
export declare enum EventPlayerRollCallVia {
|
|
5
|
+
QR = "QR",
|
|
6
|
+
GeoLoc = "GeoLoc",
|
|
7
|
+
Admin = "Admin"
|
|
8
|
+
}
|
|
4
9
|
export declare enum EventPlayerStatus {
|
|
5
10
|
Confirmed = "confirmed",
|
|
6
11
|
Declined = "declined"
|
|
@@ -17,8 +22,19 @@ export interface EventPlayerAnswers {
|
|
|
17
22
|
answers: string[];
|
|
18
23
|
note: string | null;
|
|
19
24
|
}
|
|
20
|
-
type EventPlayerHistoricalProperties = Extract<keyof EventPlayerData, 'status' | 'rollcall' | 'interested' | 'selected' | 'questions' | 'note' | 'remarks'
|
|
21
|
-
interface
|
|
25
|
+
type EventPlayerHistoricalProperties = Extract<keyof EventPlayerData, 'status' | 'rollcall' | 'interested' | 'selected' | 'questions' | 'note' | 'remarks'> | 'rollcallQR' | 'rollcallGeoLoc';
|
|
26
|
+
interface EventPlayerHistoricValues {
|
|
27
|
+
status: EventPlayerData['status'];
|
|
28
|
+
rollcall: EventPlayerData['rollcall'];
|
|
29
|
+
rollcallQR: EventPlayerData['rollcall'];
|
|
30
|
+
rollcallGeoLoc: EventPlayerData['rollcall'];
|
|
31
|
+
interested: EventPlayerData['interested'];
|
|
32
|
+
selected: EventPlayerData['selected'];
|
|
33
|
+
questions: EventPlayerData['questions'];
|
|
34
|
+
note: EventPlayerData['note'];
|
|
35
|
+
remarks: EventPlayerData['remarks'];
|
|
36
|
+
}
|
|
37
|
+
interface EventPlayerHistoryAction<T extends EventPlayerHistoricalProperties, V extends EventPlayerHistoricValues[T], M extends object = EmptyObject> {
|
|
22
38
|
type: T;
|
|
23
39
|
value: V;
|
|
24
40
|
meta: M;
|
|
@@ -27,10 +43,12 @@ export type EventPlayerHistoryStatusAction = EventPlayerHistoryAction<'status',
|
|
|
27
43
|
export type EventPlayerHistoryQuestionsAction = EventPlayerHistoryAction<'questions', EventPlayerData['questions']>;
|
|
28
44
|
export type EventPlayerHistoryNoteAction = EventPlayerHistoryAction<'note', EventPlayerData['note']>;
|
|
29
45
|
export type EventPlayerHistoryRollcallAction = EventPlayerHistoryAction<'rollcall', EventPlayerData['rollcall']>;
|
|
46
|
+
export type EventPlayerHistoryRollcallQRAction = EventPlayerHistoryAction<'rollcallQR', EventPlayerData['rollcall']>;
|
|
47
|
+
export type EventPlayerHistoryRollcallGeoLocAction = EventPlayerHistoryAction<'rollcallGeoLoc', EventPlayerData['rollcall']>;
|
|
30
48
|
export type EventPlayerHistoryRollcallRemarksAction = EventPlayerHistoryAction<'remarks', EventPlayerData['remarks']>;
|
|
31
|
-
export type EventPlayerHistoryInterestedAction = EventPlayerHistoryAction<'interested'>;
|
|
49
|
+
export type EventPlayerHistoryInterestedAction = EventPlayerHistoryAction<'interested', EventPlayerData['interested']>;
|
|
32
50
|
export type EventPlayerHistorySelectedAction = EventPlayerHistoryAction<'selected', NonNullable<EventPlayerData['selected']>>;
|
|
33
|
-
export type EventPlayerHistoryActions = EventPlayerHistoryStatusAction | EventPlayerHistoryRollcallAction | EventPlayerHistoryInterestedAction | EventPlayerHistorySelectedAction | EventPlayerHistoryQuestionsAction | EventPlayerHistoryNoteAction | EventPlayerHistoryRollcallRemarksAction;
|
|
51
|
+
export type EventPlayerHistoryActions = EventPlayerHistoryStatusAction | EventPlayerHistoryRollcallAction | EventPlayerHistoryRollcallQRAction | EventPlayerHistoryRollcallGeoLocAction | EventPlayerHistoryInterestedAction | EventPlayerHistorySelectedAction | EventPlayerHistoryQuestionsAction | EventPlayerHistoryNoteAction | EventPlayerHistoryRollcallRemarksAction;
|
|
34
52
|
export interface EventPlayerHistory {
|
|
35
53
|
action: EventPlayerHistoryActions;
|
|
36
54
|
changedAt: Timestamp;
|
|
@@ -51,6 +69,7 @@ export interface EventPlayerData extends EventPlayerBasicData {
|
|
|
51
69
|
joinedAt: Timestamp;
|
|
52
70
|
joinedBy: string;
|
|
53
71
|
rollCalledAt: Timestamp | null;
|
|
72
|
+
rollCalledVia: EventPlayerRollCallVia | null;
|
|
54
73
|
questions: EventPlayerAnswers[];
|
|
55
74
|
history: EventPlayerHistory[];
|
|
56
75
|
remarks: string | null;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EventPlayerReason = exports.EventPlayerStatus = void 0;
|
|
3
|
+
exports.EventPlayerReason = exports.EventPlayerStatus = exports.EventPlayerRollCallVia = void 0;
|
|
4
|
+
var EventPlayerRollCallVia;
|
|
5
|
+
(function (EventPlayerRollCallVia) {
|
|
6
|
+
EventPlayerRollCallVia["QR"] = "QR";
|
|
7
|
+
EventPlayerRollCallVia["GeoLoc"] = "GeoLoc";
|
|
8
|
+
EventPlayerRollCallVia["Admin"] = "Admin";
|
|
9
|
+
})(EventPlayerRollCallVia = exports.EventPlayerRollCallVia || (exports.EventPlayerRollCallVia = {}));
|
|
4
10
|
var EventPlayerStatus;
|
|
5
11
|
(function (EventPlayerStatus) {
|
|
6
12
|
EventPlayerStatus["Confirmed"] = "confirmed";
|
package/models/Evento/types.d.ts
CHANGED
|
@@ -33,7 +33,8 @@ export declare enum EventHistoryAction {
|
|
|
33
33
|
PlayerAttendanceByAdmin = "player_attendance_by_admin",
|
|
34
34
|
PlayerSetNote = "player_set_note",
|
|
35
35
|
PlayerSetQuestions = "player_set_questions",
|
|
36
|
-
PlayerRollCallQR = "player_roll_call_qr"
|
|
36
|
+
PlayerRollCallQR = "player_roll_call_qr",
|
|
37
|
+
PlayerRollCallGeoLoc = "player_roll_call_geo_loc"
|
|
37
38
|
}
|
|
38
39
|
export declare enum EventReminderOptions {
|
|
39
40
|
OneHours = "1-hours",
|
package/models/Evento/types.js
CHANGED
|
@@ -30,6 +30,7 @@ var EventHistoryAction;
|
|
|
30
30
|
EventHistoryAction["PlayerSetNote"] = "player_set_note";
|
|
31
31
|
EventHistoryAction["PlayerSetQuestions"] = "player_set_questions";
|
|
32
32
|
EventHistoryAction["PlayerRollCallQR"] = "player_roll_call_qr";
|
|
33
|
+
EventHistoryAction["PlayerRollCallGeoLoc"] = "player_roll_call_geo_loc";
|
|
33
34
|
})(EventHistoryAction = exports.EventHistoryAction || (exports.EventHistoryAction = {}));
|
|
34
35
|
var EventReminderOptions;
|
|
35
36
|
(function (EventReminderOptions) {
|
package/models/Group/index.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ export default class Group extends GroupBasic<GroupData> {
|
|
|
53
53
|
includesMembersToEventsWhenJoined: boolean;
|
|
54
54
|
allowEditInstruments: boolean;
|
|
55
55
|
showAttendanceToMembers: GroupConfigShowAttendanceToMembers;
|
|
56
|
+
allowVerifyGeoLoc: boolean;
|
|
56
57
|
};
|
|
57
58
|
get configSites(): {
|
|
58
59
|
active: boolean;
|
package/models/Group/index.js
CHANGED
|
@@ -162,6 +162,9 @@ class Group extends basic_1.default {
|
|
|
162
162
|
[types_1.GroupConfigKey.ShowAttendanceToMembers]: types_1.GroupConfigKey.ShowAttendanceToMembers in this.data.config
|
|
163
163
|
? this.data.config[types_1.GroupConfigKey.ShowAttendanceToMembers]
|
|
164
164
|
: types_1.GroupConfigShowAttendanceToMembers.None,
|
|
165
|
+
[types_1.GroupConfigKey.AllowVerifyGeoLoc]: types_1.GroupConfigKey.AllowVerifyGeoLoc in this.data.config
|
|
166
|
+
? this.data.config[types_1.GroupConfigKey.AllowVerifyGeoLoc]
|
|
167
|
+
: false,
|
|
165
168
|
};
|
|
166
169
|
}
|
|
167
170
|
get configSites() {
|
package/models/Group/types.d.ts
CHANGED
|
@@ -77,7 +77,8 @@ export declare enum AdminPermissions {
|
|
|
77
77
|
export declare enum GroupConfigKey {
|
|
78
78
|
IncludesMembersToEventsWhenJoined = "includesMembersToEventsWhenJoined",
|
|
79
79
|
AllowEditInstruments = "allowEditInstruments",
|
|
80
|
-
ShowAttendanceToMembers = "showAttendanceToMembers"
|
|
80
|
+
ShowAttendanceToMembers = "showAttendanceToMembers",
|
|
81
|
+
AllowVerifyGeoLoc = "allowVerifyGeoLoc"
|
|
81
82
|
}
|
|
82
83
|
export declare enum GroupConfigSitesKey {
|
|
83
84
|
Active = "active",
|
|
@@ -165,6 +166,7 @@ export interface GroupConfig {
|
|
|
165
166
|
[GroupConfigKey.IncludesMembersToEventsWhenJoined]: boolean;
|
|
166
167
|
[GroupConfigKey.AllowEditInstruments]: boolean;
|
|
167
168
|
[GroupConfigKey.ShowAttendanceToMembers]: GroupConfigShowAttendanceToMembers;
|
|
169
|
+
[GroupConfigKey.AllowVerifyGeoLoc]: boolean;
|
|
168
170
|
}
|
|
169
171
|
export interface GroupConfigSites {
|
|
170
172
|
[GroupConfigSitesKey.Active]: boolean;
|
package/models/Group/types.js
CHANGED
|
@@ -52,6 +52,7 @@ var GroupConfigKey;
|
|
|
52
52
|
GroupConfigKey["IncludesMembersToEventsWhenJoined"] = "includesMembersToEventsWhenJoined";
|
|
53
53
|
GroupConfigKey["AllowEditInstruments"] = "allowEditInstruments";
|
|
54
54
|
GroupConfigKey["ShowAttendanceToMembers"] = "showAttendanceToMembers";
|
|
55
|
+
GroupConfigKey["AllowVerifyGeoLoc"] = "allowVerifyGeoLoc";
|
|
55
56
|
})(GroupConfigKey = exports.GroupConfigKey || (exports.GroupConfigKey = {}));
|
|
56
57
|
var GroupConfigSitesKey;
|
|
57
58
|
(function (GroupConfigSitesKey) {
|