@glissandoo/lib 1.0.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.
- package/functions/communication.d.ts +31 -0
- package/functions/communication.js +2 -0
- package/functions/event.d.ts +113 -0
- package/functions/event.js +18 -0
- package/functions/eventPlayer.d.ts +20 -0
- package/functions/eventPlayer.js +13 -0
- package/functions/eventRepertory.d.ts +9 -0
- package/functions/eventRepertory.js +2 -0
- package/functions/federation.d.ts +23 -0
- package/functions/federation.js +2 -0
- package/functions/federationPartnership.d.ts +34 -0
- package/functions/federationPartnership.js +2 -0
- package/functions/group.d.ts +32 -0
- package/functions/group.js +2 -0
- package/functions/groupPlayer.d.ts +37 -0
- package/functions/groupPlayer.js +2 -0
- package/functions/groupRepertory.d.ts +54 -0
- package/functions/groupRepertory.js +2 -0
- package/functions/index.d.ts +73 -0
- package/functions/index.js +77 -0
- package/functions/misc.d.ts +9 -0
- package/functions/misc.js +2 -0
- package/functions/notification.d.ts +4 -0
- package/functions/notification.js +2 -0
- package/functions/partner.d.ts +63 -0
- package/functions/partner.js +2 -0
- package/functions/partnership.d.ts +23 -0
- package/functions/partnership.js +2 -0
- package/functions/partnershipGroup.d.ts +12 -0
- package/functions/partnershipGroup.js +2 -0
- package/functions/partnershipPlan.d.ts +23 -0
- package/functions/partnershipPlan.js +2 -0
- package/functions/regions.d.ts +6 -0
- package/functions/regions.js +85 -0
- package/functions/subscription.d.ts +20 -0
- package/functions/subscription.js +2 -0
- package/functions/user.d.ts +19 -0
- package/functions/user.js +2 -0
- package/helpers/appScenes.d.ts +45 -0
- package/helpers/appScenes.js +49 -0
- package/helpers/badges.d.ts +21 -0
- package/helpers/badges.js +162 -0
- package/helpers/collections.d.ts +28 -0
- package/helpers/collections.js +32 -0
- package/helpers/instruments/index.d.ts +67 -0
- package/helpers/instruments/index.js +145 -0
- package/helpers/musicStyles/index.d.ts +9 -0
- package/helpers/musicStyles/index.js +16 -0
- package/helpers/musicStyles/orders.d.ts +4 -0
- package/helpers/musicStyles/orders.js +128 -0
- package/helpers/notifications.d.ts +40 -0
- package/helpers/notifications.js +120 -0
- package/helpers/payments.d.ts +2 -0
- package/helpers/payments.js +9 -0
- package/helpers/utils.d.ts +6 -0
- package/helpers/utils.js +99 -0
- package/index.d.ts +0 -0
- package/index.js +1 -0
- package/lang/ca.json +194 -0
- package/lang/de.json +194 -0
- package/lang/en.json +194 -0
- package/lang/es.json +194 -0
- package/lang/gl.json +194 -0
- package/lang/index.d.ts +1078 -0
- package/lang/index.js +101 -0
- package/models/Communication/index.d.ts +47 -0
- package/models/Communication/index.js +138 -0
- package/models/Communication/types.d.ts +53 -0
- package/models/Communication/types.js +13 -0
- package/models/Counters/index.d.ts +7 -0
- package/models/Counters/index.js +15 -0
- package/models/Counters/types.d.ts +3 -0
- package/models/Counters/types.js +2 -0
- package/models/Evento/Player/index.d.ts +17 -0
- package/models/Evento/Player/index.js +45 -0
- package/models/Evento/Player/types.d.ts +15 -0
- package/models/Evento/Player/types.js +8 -0
- package/models/Evento/Repertory/index.d.ts +9 -0
- package/models/Evento/Repertory/index.js +22 -0
- package/models/Evento/Repertory/types.d.ts +5 -0
- package/models/Evento/Repertory/types.js +2 -0
- package/models/Evento/basic.d.ts +22 -0
- package/models/Evento/basic.js +72 -0
- package/models/Evento/index.d.ts +66 -0
- package/models/Evento/index.js +178 -0
- package/models/Evento/promoter.d.ts +11 -0
- package/models/Evento/promoter.js +24 -0
- package/models/Evento/tiny.d.ts +13 -0
- package/models/Evento/tiny.js +32 -0
- package/models/Evento/types.d.ts +76 -0
- package/models/Evento/types.js +22 -0
- package/models/Federation/Partnership/index.d.ts +12 -0
- package/models/Federation/Partnership/index.js +31 -0
- package/models/Federation/Partnership/types.d.ts +8 -0
- package/models/Federation/Partnership/types.js +2 -0
- package/models/Federation/index.d.ts +20 -0
- package/models/Federation/index.js +54 -0
- package/models/Federation/types.d.ts +16 -0
- package/models/Federation/types.js +2 -0
- package/models/Group/Analytics/index.d.ts +11 -0
- package/models/Group/Analytics/index.js +29 -0
- package/models/Group/Analytics/types.d.ts +20 -0
- package/models/Group/Analytics/types.js +13 -0
- package/models/Group/Event/index.d.ts +15 -0
- package/models/Group/Event/index.js +38 -0
- package/models/Group/Event/types.d.ts +11 -0
- package/models/Group/Event/types.js +2 -0
- package/models/Group/Player/Event/index.d.ts +17 -0
- package/models/Group/Player/Event/index.js +42 -0
- package/models/Group/Player/Event/types.d.ts +8 -0
- package/models/Group/Player/Event/types.js +2 -0
- package/models/Group/Player/Log/index.d.ts +12 -0
- package/models/Group/Player/Log/index.js +24 -0
- package/models/Group/Player/Log/types.d.ts +11 -0
- package/models/Group/Player/Log/types.js +2 -0
- package/models/Group/Player/index.d.ts +55 -0
- package/models/Group/Player/index.js +221 -0
- package/models/Group/Player/types.d.ts +43 -0
- package/models/Group/Player/types.js +9 -0
- package/models/Group/Repertory/index.d.ts +67 -0
- package/models/Group/Repertory/index.js +149 -0
- package/models/Group/Repertory/types.d.ts +43 -0
- package/models/Group/Repertory/types.js +2 -0
- package/models/Group/basic.d.ts +17 -0
- package/models/Group/basic.js +51 -0
- package/models/Group/index.d.ts +43 -0
- package/models/Group/index.js +115 -0
- package/models/Group/types.d.ts +68 -0
- package/models/Group/types.js +21 -0
- package/models/Instrument/index.d.ts +9 -0
- package/models/Instrument/index.js +17 -0
- package/models/Metrics/index.d.ts +17 -0
- package/models/Metrics/index.js +47 -0
- package/models/Metrics/types.d.ts +12 -0
- package/models/Metrics/types.js +2 -0
- package/models/Model.d.ts +10 -0
- package/models/Model.js +21 -0
- package/models/MusicStyle/index.d.ts +8 -0
- package/models/MusicStyle/index.js +13 -0
- package/models/Notification/index.d.ts +12 -0
- package/models/Notification/index.js +26 -0
- package/models/Notification/types.d.ts +71 -0
- package/models/Notification/types.js +68 -0
- package/models/Partner/basic.d.ts +14 -0
- package/models/Partner/basic.js +43 -0
- package/models/Partner/index.d.ts +16 -0
- package/models/Partner/index.js +48 -0
- package/models/Partner/tiny.d.ts +9 -0
- package/models/Partner/tiny.js +24 -0
- package/models/Partner/types.d.ts +43 -0
- package/models/Partner/types.js +9 -0
- package/models/Partnership/Group/index.d.ts +8 -0
- package/models/Partnership/Group/index.js +17 -0
- package/models/Partnership/Group/types.d.ts +2 -0
- package/models/Partnership/Group/types.js +2 -0
- package/models/Partnership/Partner/Subscription/index.d.ts +19 -0
- package/models/Partnership/Partner/Subscription/index.js +56 -0
- package/models/Partnership/Partner/Subscription/types.d.ts +21 -0
- package/models/Partnership/Partner/Subscription/types.js +9 -0
- package/models/Partnership/Partner/index.d.ts +9 -0
- package/models/Partnership/Partner/index.js +22 -0
- package/models/Partnership/Partner/types.d.ts +5 -0
- package/models/Partnership/Partner/types.js +2 -0
- package/models/Partnership/Payment/index.d.ts +8 -0
- package/models/Partnership/Payment/index.js +18 -0
- package/models/Partnership/Payment/types.d.ts +6 -0
- package/models/Partnership/Payment/types.js +2 -0
- package/models/Partnership/Plan/basic.d.ts +19 -0
- package/models/Partnership/Plan/basic.js +65 -0
- package/models/Partnership/Plan/index.d.ts +12 -0
- package/models/Partnership/Plan/index.js +31 -0
- package/models/Partnership/Plan/types.d.ts +23 -0
- package/models/Partnership/Plan/types.js +10 -0
- package/models/Partnership/basic.d.ts +17 -0
- package/models/Partnership/basic.js +58 -0
- package/models/Partnership/index.d.ts +18 -0
- package/models/Partnership/index.js +55 -0
- package/models/Partnership/types.d.ts +37 -0
- package/models/Partnership/types.js +9 -0
- package/models/Payment/basic.d.ts +17 -0
- package/models/Payment/basic.js +53 -0
- package/models/Payment/index.d.ts +13 -0
- package/models/Payment/index.js +33 -0
- package/models/Payment/types.d.ts +32 -0
- package/models/Payment/types.js +17 -0
- package/models/Player/basic.d.ts +10 -0
- package/models/Player/basic.js +27 -0
- package/models/Player/types.d.ts +8 -0
- package/models/Player/types.js +2 -0
- package/models/Repertory/basic.d.ts +11 -0
- package/models/Repertory/basic.js +32 -0
- package/models/Repertory/types.d.ts +21 -0
- package/models/Repertory/types.js +2 -0
- package/models/User/Group/index.d.ts +15 -0
- package/models/User/Group/index.js +36 -0
- package/models/User/Group/types.d.ts +10 -0
- package/models/User/Group/types.js +2 -0
- package/models/User/Notification/index.d.ts +25 -0
- package/models/User/Notification/index.js +73 -0
- package/models/User/Notification/types.d.ts +25 -0
- package/models/User/Notification/types.js +2 -0
- package/models/User/basic.d.ts +13 -0
- package/models/User/basic.js +35 -0
- package/models/User/index.d.ts +46 -0
- package/models/User/index.js +119 -0
- package/models/User/types.d.ts +68 -0
- package/models/User/types.js +26 -0
- package/package.json +39 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BasicAddressData } from '../models/Partner/types';
|
|
2
|
+
import { LegalContactData } from '../models/Partnership/types';
|
|
3
|
+
export declare namespace PartnershipFbFunctionsTypes {
|
|
4
|
+
interface CreateParams {
|
|
5
|
+
displayName: string;
|
|
6
|
+
photoURL: string;
|
|
7
|
+
email: string;
|
|
8
|
+
phone: string | null;
|
|
9
|
+
address: BasicAddressData;
|
|
10
|
+
legalContact: LegalContactData | null;
|
|
11
|
+
createLemonwayAccount: boolean;
|
|
12
|
+
administrators: string[];
|
|
13
|
+
partnershipId: string;
|
|
14
|
+
CIF: string | null;
|
|
15
|
+
}
|
|
16
|
+
type CreateResult = void;
|
|
17
|
+
type EditParams = CreateParams;
|
|
18
|
+
type EditResult = void;
|
|
19
|
+
interface GetBalanceParams {
|
|
20
|
+
partnershipId: string;
|
|
21
|
+
}
|
|
22
|
+
type GetBalanceResult = number;
|
|
23
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare namespace PartnershipGroupFbFunctionsTypes {
|
|
2
|
+
interface AddParams {
|
|
3
|
+
partnershipId: string;
|
|
4
|
+
groupId: string;
|
|
5
|
+
}
|
|
6
|
+
type AddResult = void;
|
|
7
|
+
interface RemoveParams {
|
|
8
|
+
partnershipId: string;
|
|
9
|
+
groupId: string;
|
|
10
|
+
}
|
|
11
|
+
type RemoveResult = void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { PlanScheduleType } from '../models/Partnership/Plan/types';
|
|
2
|
+
export declare namespace PartnershipPlanFbFunctionsTypes {
|
|
3
|
+
interface AddParams {
|
|
4
|
+
partnershipId: string;
|
|
5
|
+
name: string;
|
|
6
|
+
price: number;
|
|
7
|
+
description: string;
|
|
8
|
+
schedule: PlanScheduleType;
|
|
9
|
+
}
|
|
10
|
+
type AddResult = void;
|
|
11
|
+
interface EditParams {
|
|
12
|
+
partnershipId: string;
|
|
13
|
+
planId: string;
|
|
14
|
+
name: string;
|
|
15
|
+
description: string;
|
|
16
|
+
}
|
|
17
|
+
type EditResult = void;
|
|
18
|
+
type RemoveParams = {
|
|
19
|
+
partnershipId: string;
|
|
20
|
+
planId: string;
|
|
21
|
+
};
|
|
22
|
+
type RemoveResult = void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getFunctionRegion = exports.GCloudRegions = void 0;
|
|
4
|
+
const index_1 = require("./index");
|
|
5
|
+
var GCloudRegions;
|
|
6
|
+
(function (GCloudRegions) {
|
|
7
|
+
GCloudRegions["EuropeWest6"] = "europe-west6";
|
|
8
|
+
GCloudRegions["UsCentral1"] = "us-central1";
|
|
9
|
+
})(GCloudRegions = exports.GCloudRegions || (exports.GCloudRegions = {}));
|
|
10
|
+
const defaultRegion = GCloudRegions.UsCentral1;
|
|
11
|
+
const regionByFunctions = {
|
|
12
|
+
[index_1.FbFunctionName.UserRegister]: GCloudRegions.UsCentral1,
|
|
13
|
+
[index_1.FbFunctionName.UserOnCreate]: GCloudRegions.UsCentral1,
|
|
14
|
+
[index_1.FbFunctionName.UserOnUpdate]: GCloudRegions.UsCentral1,
|
|
15
|
+
[index_1.FbFunctionName.UserGetToken]: GCloudRegions.EuropeWest6,
|
|
16
|
+
[index_1.FbFunctionName.GroupPublish]: GCloudRegions.EuropeWest6,
|
|
17
|
+
[index_1.FbFunctionName.GroupEdit]: GCloudRegions.EuropeWest6,
|
|
18
|
+
[index_1.FbFunctionName.GroupRemove]: GCloudRegions.UsCentral1,
|
|
19
|
+
[index_1.FbFunctionName.GroupChangeStatus]: GCloudRegions.EuropeWest6,
|
|
20
|
+
[index_1.FbFunctionName.GroupOnCreate]: GCloudRegions.UsCentral1,
|
|
21
|
+
[index_1.FbFunctionName.GroupOnUpdate]: GCloudRegions.UsCentral1,
|
|
22
|
+
[index_1.FbFunctionName.GroupPlayerUpdateInstruments]: GCloudRegions.UsCentral1,
|
|
23
|
+
[index_1.FbFunctionName.GroupPlayerAdd]: GCloudRegions.UsCentral1,
|
|
24
|
+
[index_1.FbFunctionName.GroupPlayerJoin]: GCloudRegions.UsCentral1,
|
|
25
|
+
[index_1.FbFunctionName.GroupPlayerRemove]: GCloudRegions.UsCentral1,
|
|
26
|
+
[index_1.FbFunctionName.GroupPlayerLeave]: GCloudRegions.UsCentral1,
|
|
27
|
+
[index_1.FbFunctionName.GroupPlayerSwitchAdmin]: GCloudRegions.UsCentral1,
|
|
28
|
+
[index_1.FbFunctionName.GroupPlayerOnUpdate]: GCloudRegions.UsCentral1,
|
|
29
|
+
[index_1.FbFunctionName.GroupPlayerEventOnUpdate]: GCloudRegions.UsCentral1,
|
|
30
|
+
[index_1.FbFunctionName.GroupRepertoryPublish]: GCloudRegions.UsCentral1,
|
|
31
|
+
[index_1.FbFunctionName.GroupRepertoryEdit]: GCloudRegions.UsCentral1,
|
|
32
|
+
[index_1.FbFunctionName.GroupRepertoryRemove]: GCloudRegions.UsCentral1,
|
|
33
|
+
[index_1.FbFunctionName.GroupRepertoryDownloadThemeFiles]: GCloudRegions.UsCentral1,
|
|
34
|
+
[index_1.FbFunctionName.GroupRepertoryIdentifyInstruments]: GCloudRegions.UsCentral1,
|
|
35
|
+
[index_1.FbFunctionName.GroupRepertoryClaimMusicSheet]: GCloudRegions.UsCentral1,
|
|
36
|
+
[index_1.FbFunctionName.GroupRepertoryOnCreate]: GCloudRegions.UsCentral1,
|
|
37
|
+
[index_1.FbFunctionName.GroupRepertoryOnUpdate]: GCloudRegions.UsCentral1,
|
|
38
|
+
[index_1.FbFunctionName.CommunicationPublish]: GCloudRegions.UsCentral1,
|
|
39
|
+
[index_1.FbFunctionName.CommunicationEdit]: GCloudRegions.UsCentral1,
|
|
40
|
+
[index_1.FbFunctionName.CommunicationRemove]: GCloudRegions.UsCentral1,
|
|
41
|
+
[index_1.FbFunctionName.EventPublish]: GCloudRegions.UsCentral1,
|
|
42
|
+
[index_1.FbFunctionName.EventNotifyPendingPlayers]: GCloudRegions.UsCentral1,
|
|
43
|
+
[index_1.FbFunctionName.EventSetRollcall]: GCloudRegions.UsCentral1,
|
|
44
|
+
[index_1.FbFunctionName.EventEdit]: GCloudRegions.UsCentral1,
|
|
45
|
+
[index_1.FbFunctionName.EventEditDatetime]: GCloudRegions.UsCentral1,
|
|
46
|
+
[index_1.FbFunctionName.EventRemove]: GCloudRegions.UsCentral1,
|
|
47
|
+
[index_1.FbFunctionName.EventOnCreate]: GCloudRegions.UsCentral1,
|
|
48
|
+
[index_1.FbFunctionName.EventOnUpdate]: GCloudRegions.UsCentral1,
|
|
49
|
+
[index_1.FbFunctionName.EventPlayerSwitchAssistance]: GCloudRegions.UsCentral1,
|
|
50
|
+
[index_1.FbFunctionName.EventPlayerEdit]: GCloudRegions.UsCentral1,
|
|
51
|
+
[index_1.FbFunctionName.EventRepertoryEdit]: GCloudRegions.UsCentral1,
|
|
52
|
+
[index_1.FbFunctionName.FederationCreate]: GCloudRegions.EuropeWest6,
|
|
53
|
+
[index_1.FbFunctionName.FederationEdit]: GCloudRegions.EuropeWest6,
|
|
54
|
+
[index_1.FbFunctionName.FederationRemove]: GCloudRegions.EuropeWest6,
|
|
55
|
+
[index_1.FbFunctionName.FederationGetEvents]: GCloudRegions.EuropeWest6,
|
|
56
|
+
[index_1.FbFunctionName.FederationPartnershipAdd]: GCloudRegions.EuropeWest6,
|
|
57
|
+
[index_1.FbFunctionName.FederationPartnershipRemove]: GCloudRegions.EuropeWest6,
|
|
58
|
+
[index_1.FbFunctionName.FederationPartnershipGetByToken]: GCloudRegions.EuropeWest6,
|
|
59
|
+
[index_1.FbFunctionName.FederationPartnershipConnect]: GCloudRegions.EuropeWest6,
|
|
60
|
+
[index_1.FbFunctionName.MiscValidateUsername]: GCloudRegions.UsCentral1,
|
|
61
|
+
[index_1.FbFunctionName.NotificationMarkAllAsReaded]: GCloudRegions.UsCentral1,
|
|
62
|
+
[index_1.FbFunctionName.PartnerAdd]: GCloudRegions.EuropeWest6,
|
|
63
|
+
[index_1.FbFunctionName.PartnerEdit]: GCloudRegions.EuropeWest6,
|
|
64
|
+
[index_1.FbFunctionName.PartnerRemove]: GCloudRegions.EuropeWest6,
|
|
65
|
+
[index_1.FbFunctionName.PartnerOnUpdate]: GCloudRegions.EuropeWest6,
|
|
66
|
+
[index_1.FbFunctionName.PartnerGetByToken]: GCloudRegions.EuropeWest6,
|
|
67
|
+
[index_1.FbFunctionName.PartnerValidate]: GCloudRegions.EuropeWest6,
|
|
68
|
+
[index_1.FbFunctionName.PartnerValidateIBAN]: GCloudRegions.EuropeWest6,
|
|
69
|
+
[index_1.FbFunctionName.PartnerSendVerification]: GCloudRegions.EuropeWest6,
|
|
70
|
+
[index_1.FbFunctionName.SubscriptionAdd]: GCloudRegions.EuropeWest6,
|
|
71
|
+
[index_1.FbFunctionName.SubscriptionCancel]: GCloudRegions.EuropeWest6,
|
|
72
|
+
[index_1.FbFunctionName.SubscriptionResume]: GCloudRegions.EuropeWest6,
|
|
73
|
+
[index_1.FbFunctionName.PartnershipCreate]: GCloudRegions.EuropeWest6,
|
|
74
|
+
[index_1.FbFunctionName.PartnershipEdit]: GCloudRegions.EuropeWest6,
|
|
75
|
+
[index_1.FbFunctionName.PartnershipGetBalance]: GCloudRegions.EuropeWest6,
|
|
76
|
+
[index_1.FbFunctionName.PartnershipOnUpdate]: GCloudRegions.EuropeWest6,
|
|
77
|
+
[index_1.FbFunctionName.PartnershipPlanAdd]: GCloudRegions.EuropeWest6,
|
|
78
|
+
[index_1.FbFunctionName.PartnershipPlanEdit]: GCloudRegions.EuropeWest6,
|
|
79
|
+
[index_1.FbFunctionName.PartnershipPlanRemove]: GCloudRegions.EuropeWest6,
|
|
80
|
+
[index_1.FbFunctionName.PartnershipPlanOnUpdate]: GCloudRegions.EuropeWest6,
|
|
81
|
+
[index_1.FbFunctionName.PartnershipGroupAdd]: GCloudRegions.EuropeWest6,
|
|
82
|
+
[index_1.FbFunctionName.PartnershipGroupRemove]: GCloudRegions.EuropeWest6,
|
|
83
|
+
};
|
|
84
|
+
const getFunctionRegion = (fn) => regionByFunctions[fn] || defaultRegion;
|
|
85
|
+
exports.getFunctionRegion = getFunctionRegion;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare namespace SubscriptionFbFunctionsTypes {
|
|
2
|
+
interface CancelParams {
|
|
3
|
+
partnerId: string;
|
|
4
|
+
partnershipId: string;
|
|
5
|
+
subscriptionId: string;
|
|
6
|
+
}
|
|
7
|
+
type CancelResult = void;
|
|
8
|
+
interface AddParams {
|
|
9
|
+
partnerId: string;
|
|
10
|
+
partnershipId: string;
|
|
11
|
+
planId: string;
|
|
12
|
+
}
|
|
13
|
+
type AddResult = void;
|
|
14
|
+
interface ResumeParams {
|
|
15
|
+
partnerId: string;
|
|
16
|
+
partnershipId: string;
|
|
17
|
+
subscriptionId: string;
|
|
18
|
+
}
|
|
19
|
+
type ResumeResult = void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LanguagesTypes } from '../lang';
|
|
2
|
+
import { UserRegisterVia } from '../models/User/types';
|
|
3
|
+
export declare namespace UserFbFunctionsTypes {
|
|
4
|
+
interface RegisterParams {
|
|
5
|
+
uid: string;
|
|
6
|
+
name: string;
|
|
7
|
+
lastname: string;
|
|
8
|
+
email: string;
|
|
9
|
+
via: UserRegisterVia;
|
|
10
|
+
lang: LanguagesTypes;
|
|
11
|
+
}
|
|
12
|
+
type RegisterResult = void;
|
|
13
|
+
interface GetTokenParams {
|
|
14
|
+
userId: string;
|
|
15
|
+
}
|
|
16
|
+
interface GetTokenResult {
|
|
17
|
+
token: string;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export declare enum AppScenes {
|
|
2
|
+
AuthLoading = "AuthLoading",
|
|
3
|
+
AuthMain = "AuthMain",
|
|
4
|
+
Login = "Login",
|
|
5
|
+
ForgotPassword = "ForgotPassword",
|
|
6
|
+
Register = "Register",
|
|
7
|
+
Block = "Block",
|
|
8
|
+
Join = "Join",
|
|
9
|
+
JoinInstrument = "SelectGroupInstrument",
|
|
10
|
+
JoinImageProfile = "AddProfileImage",
|
|
11
|
+
App = "App",
|
|
12
|
+
Explore = "Explore",
|
|
13
|
+
Notifications = "Notifications",
|
|
14
|
+
Profile = "Me",
|
|
15
|
+
Badge = "Badge",
|
|
16
|
+
EditGroupPlayerInstruments = "EditGroupPlayerInstruments",
|
|
17
|
+
ProfileSettings = "MeSettings",
|
|
18
|
+
EditProfileDisplayName = "EditProfileDisplayName",
|
|
19
|
+
EditProfileUsername = "EditProfileUsername",
|
|
20
|
+
EditProfileEmail = "EditProfileEmail",
|
|
21
|
+
EditProfileLocality = "EditProfileLocality",
|
|
22
|
+
EditProfilePassword = "EditProfilePassword",
|
|
23
|
+
EditProfileBirthDate = "EditProfileBirthDate",
|
|
24
|
+
EditProfilePhotoURL = "EditProfilePhotoURL",
|
|
25
|
+
EditProfileDescription = "EditProfileDescription",
|
|
26
|
+
EditProfileLanguage = "EditProfileLanguage",
|
|
27
|
+
CommunicationList = "communications",
|
|
28
|
+
Communication = "communication",
|
|
29
|
+
EventList = "events",
|
|
30
|
+
Event = "event",
|
|
31
|
+
EventPlayers = "eventPlayers",
|
|
32
|
+
EventRollcall = "eventRollcall",
|
|
33
|
+
EventGroupPlayer = "eventGroupPlayer",
|
|
34
|
+
EventHistoricList = "EventsHistoric",
|
|
35
|
+
EventHistoricFilter = "EventsFilter",
|
|
36
|
+
Repertory = "repertory",
|
|
37
|
+
Theme = "theme",
|
|
38
|
+
VisorPDF = "visorPDF",
|
|
39
|
+
Group = "group",
|
|
40
|
+
GroupPlayer = "groupPlayer",
|
|
41
|
+
GroupsNavigation = "GroupsNavigation",
|
|
42
|
+
VisorImage = "visorImage",
|
|
43
|
+
AutocompleteLocality = "AutoCompleteLocality",
|
|
44
|
+
Modal = "Modal"
|
|
45
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AppScenes = void 0;
|
|
4
|
+
var AppScenes;
|
|
5
|
+
(function (AppScenes) {
|
|
6
|
+
AppScenes["AuthLoading"] = "AuthLoading";
|
|
7
|
+
AppScenes["AuthMain"] = "AuthMain";
|
|
8
|
+
AppScenes["Login"] = "Login";
|
|
9
|
+
AppScenes["ForgotPassword"] = "ForgotPassword";
|
|
10
|
+
AppScenes["Register"] = "Register";
|
|
11
|
+
AppScenes["Block"] = "Block";
|
|
12
|
+
AppScenes["Join"] = "Join";
|
|
13
|
+
AppScenes["JoinInstrument"] = "SelectGroupInstrument";
|
|
14
|
+
AppScenes["JoinImageProfile"] = "AddProfileImage";
|
|
15
|
+
AppScenes["App"] = "App";
|
|
16
|
+
AppScenes["Explore"] = "Explore";
|
|
17
|
+
AppScenes["Notifications"] = "Notifications";
|
|
18
|
+
AppScenes["Profile"] = "Me";
|
|
19
|
+
AppScenes["Badge"] = "Badge";
|
|
20
|
+
AppScenes["EditGroupPlayerInstruments"] = "EditGroupPlayerInstruments";
|
|
21
|
+
AppScenes["ProfileSettings"] = "MeSettings";
|
|
22
|
+
AppScenes["EditProfileDisplayName"] = "EditProfileDisplayName";
|
|
23
|
+
AppScenes["EditProfileUsername"] = "EditProfileUsername";
|
|
24
|
+
AppScenes["EditProfileEmail"] = "EditProfileEmail";
|
|
25
|
+
AppScenes["EditProfileLocality"] = "EditProfileLocality";
|
|
26
|
+
AppScenes["EditProfilePassword"] = "EditProfilePassword";
|
|
27
|
+
AppScenes["EditProfileBirthDate"] = "EditProfileBirthDate";
|
|
28
|
+
AppScenes["EditProfilePhotoURL"] = "EditProfilePhotoURL";
|
|
29
|
+
AppScenes["EditProfileDescription"] = "EditProfileDescription";
|
|
30
|
+
AppScenes["EditProfileLanguage"] = "EditProfileLanguage";
|
|
31
|
+
AppScenes["CommunicationList"] = "communications";
|
|
32
|
+
AppScenes["Communication"] = "communication";
|
|
33
|
+
AppScenes["EventList"] = "events";
|
|
34
|
+
AppScenes["Event"] = "event";
|
|
35
|
+
AppScenes["EventPlayers"] = "eventPlayers";
|
|
36
|
+
AppScenes["EventRollcall"] = "eventRollcall";
|
|
37
|
+
AppScenes["EventGroupPlayer"] = "eventGroupPlayer";
|
|
38
|
+
AppScenes["EventHistoricList"] = "EventsHistoric";
|
|
39
|
+
AppScenes["EventHistoricFilter"] = "EventsFilter";
|
|
40
|
+
AppScenes["Repertory"] = "repertory";
|
|
41
|
+
AppScenes["Theme"] = "theme";
|
|
42
|
+
AppScenes["VisorPDF"] = "visorPDF";
|
|
43
|
+
AppScenes["Group"] = "group";
|
|
44
|
+
AppScenes["GroupPlayer"] = "groupPlayer";
|
|
45
|
+
AppScenes["GroupsNavigation"] = "GroupsNavigation";
|
|
46
|
+
AppScenes["VisorImage"] = "visorImage";
|
|
47
|
+
AppScenes["AutocompleteLocality"] = "AutoCompleteLocality";
|
|
48
|
+
AppScenes["Modal"] = "Modal";
|
|
49
|
+
})(AppScenes = exports.AppScenes || (exports.AppScenes = {}));
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare enum BadgesTypes {
|
|
2
|
+
AccPerformances = "badgeAccPerformances",
|
|
3
|
+
AccPractices = "badgeAccPractices",
|
|
4
|
+
StrikePractices = "badgeStrikePractices",
|
|
5
|
+
AnswerEvents = "badgeAnswerEvents"
|
|
6
|
+
}
|
|
7
|
+
export interface BadgeDataLevel {
|
|
8
|
+
count: number;
|
|
9
|
+
imagePath: string;
|
|
10
|
+
imagePathDisabled: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const badgesLevels: {
|
|
13
|
+
[key in BadgesTypes]: {
|
|
14
|
+
[level: number]: BadgeDataLevel;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare const getLevelsDataBadge: (field: BadgesTypes) => {
|
|
18
|
+
[level: number]: BadgeDataLevel;
|
|
19
|
+
};
|
|
20
|
+
export declare const getLevelsCountBadge: (field: BadgesTypes) => number[];
|
|
21
|
+
export declare const getImageLevelBadge: (field: BadgesTypes, level: number, disabled?: boolean | undefined) => string;
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getImageLevelBadge = exports.getLevelsCountBadge = exports.getLevelsDataBadge = exports.badgesLevels = exports.BadgesTypes = void 0;
|
|
7
|
+
const get_1 = __importDefault(require("lodash/get"));
|
|
8
|
+
var BadgesTypes;
|
|
9
|
+
(function (BadgesTypes) {
|
|
10
|
+
BadgesTypes["AccPerformances"] = "badgeAccPerformances";
|
|
11
|
+
BadgesTypes["AccPractices"] = "badgeAccPractices";
|
|
12
|
+
BadgesTypes["StrikePractices"] = "badgeStrikePractices";
|
|
13
|
+
BadgesTypes["AnswerEvents"] = "badgeAnswerEvents";
|
|
14
|
+
})(BadgesTypes = exports.BadgesTypes || (exports.BadgesTypes = {}));
|
|
15
|
+
exports.badgesLevels = {
|
|
16
|
+
badgeAccPerformances: {
|
|
17
|
+
1: {
|
|
18
|
+
count: 1,
|
|
19
|
+
imagePath: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeAccPerformances%2F1.png?alt=media&token=1d957fe6-4757-480f-b415-337a7cd85582',
|
|
20
|
+
imagePathDisabled: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeAccPerformances%2Fb_w%2F1.png?alt=media&token=7bd3aa90-6c25-4cd4-9de4-426a95d169ad',
|
|
21
|
+
},
|
|
22
|
+
2: {
|
|
23
|
+
count: 3,
|
|
24
|
+
imagePath: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeAccPerformances%2F2.png?alt=media&token=1b2724d1-5aac-48f1-acee-d53c131e28fb',
|
|
25
|
+
imagePathDisabled: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeAccPerformances%2Fb_w%2F2.png?alt=media&token=69935651-dd5b-4685-b76e-cfd1a448a79f',
|
|
26
|
+
},
|
|
27
|
+
3: {
|
|
28
|
+
count: 5,
|
|
29
|
+
imagePath: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeAccPerformances%2F3.png?alt=media&token=23c03440-9a23-4bcb-b54f-e8bf62cc5dd8',
|
|
30
|
+
imagePathDisabled: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeAccPerformances%2Fb_w%2F3.png?alt=media&token=1f9affae-da3a-4539-94d3-fab15cb42a46',
|
|
31
|
+
},
|
|
32
|
+
4: {
|
|
33
|
+
count: 10,
|
|
34
|
+
imagePath: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeAccPerformances%2F4.png?alt=media&token=bd162693-02f2-4a7e-bf36-923e6993825a',
|
|
35
|
+
imagePathDisabled: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeAccPerformances%2Fb_w%2F4.png?alt=media&token=ac6b18d0-815c-4ce5-b24a-063650813512',
|
|
36
|
+
},
|
|
37
|
+
5: {
|
|
38
|
+
count: 25,
|
|
39
|
+
imagePath: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeAccPerformances%2F5.png?alt=media&token=af766938-7f7d-4f8e-9cc3-577ae83789a5',
|
|
40
|
+
imagePathDisabled: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeAccPerformances%2Fb_w%2F5.png?alt=media&token=e31e1416-7b67-4b75-a9e1-212ee8c1c680',
|
|
41
|
+
},
|
|
42
|
+
6: {
|
|
43
|
+
count: 50,
|
|
44
|
+
imagePath: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeAccPerformances%2F6.png?alt=media&token=c957e462-9c81-4afc-a8e2-4bc6dfecfd2b',
|
|
45
|
+
imagePathDisabled: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeAccPerformances%2Fb_w%2F6.png?alt=media&token=88843dd0-7676-4c0e-88e8-7f5b1d280d73',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
badgeAccPractices: {
|
|
49
|
+
1: {
|
|
50
|
+
count: 1,
|
|
51
|
+
imagePath: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeAccPractices%2F1.png?alt=media&token=d9c4a17a-4359-4049-bbcb-afd550f99c8c',
|
|
52
|
+
imagePathDisabled: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeAccPractices%2Fb_w%2F1.png?alt=media&token=36af3457-74d2-4f51-a24d-7c950571964c',
|
|
53
|
+
},
|
|
54
|
+
2: {
|
|
55
|
+
count: 5,
|
|
56
|
+
imagePath: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeAccPractices%2F2.png?alt=media&token=b564373c-54d6-45f3-8a41-e5011f7067c1',
|
|
57
|
+
imagePathDisabled: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeAccPractices%2Fb_w%2F2.png?alt=media&token=2ce8ca07-b89f-43e6-b49d-6fcc911027de',
|
|
58
|
+
},
|
|
59
|
+
3: {
|
|
60
|
+
count: 15,
|
|
61
|
+
imagePath: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeAccPractices%2F3.png?alt=media&token=bab04bf9-0476-42ac-9e5a-375dfcfa53fe',
|
|
62
|
+
imagePathDisabled: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeAccPractices%2Fb_w%2F3.png?alt=media&token=6d841798-02f2-433e-bba1-f6bffb2d77b8',
|
|
63
|
+
},
|
|
64
|
+
4: {
|
|
65
|
+
count: 30,
|
|
66
|
+
imagePath: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeAccPractices%2F4.png?alt=media&token=8280e7f0-20e5-4ccc-8298-e2b6ffd13616',
|
|
67
|
+
imagePathDisabled: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeAccPractices%2Fb_w%2F4.png?alt=media&token=b97a65b5-bef1-42e3-a5fa-4c48fc6e23d4',
|
|
68
|
+
},
|
|
69
|
+
5: {
|
|
70
|
+
count: 50,
|
|
71
|
+
imagePath: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeAccPractices%2F5.png?alt=media&token=62b41c80-0719-4d7d-ba3e-9a9a6e272cc1',
|
|
72
|
+
imagePathDisabled: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeAccPractices%2Fb_w%2F5.png?alt=media&token=8c009cf8-9d80-4028-9163-fc4783b9b73e',
|
|
73
|
+
},
|
|
74
|
+
6: {
|
|
75
|
+
count: 100,
|
|
76
|
+
imagePath: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeAccPractices%2F6.png?alt=media&token=9c520bc3-009c-4ea0-a29c-1f062444eb10',
|
|
77
|
+
imagePathDisabled: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeAccPractices%2Fb_w%2F6.png?alt=media&token=71178b25-f547-4d28-b300-455977222cc3',
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
badgeStrikePractices: {
|
|
81
|
+
1: {
|
|
82
|
+
count: 2,
|
|
83
|
+
imagePath: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeStrikePractices%2F1.png?alt=media&token=c2e60090-92a0-4147-911a-4b9c89ddf971',
|
|
84
|
+
imagePathDisabled: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeStrikePractices%2Fb_w%2F1.png?alt=media&token=7794b2c8-cc07-42b5-8453-48e7f49ef73b',
|
|
85
|
+
},
|
|
86
|
+
2: {
|
|
87
|
+
count: 3,
|
|
88
|
+
imagePath: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeStrikePractices%2F2.png?alt=media&token=44bfc02e-ed2b-43f8-b80f-96d0495e3faa',
|
|
89
|
+
imagePathDisabled: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeStrikePractices%2Fb_w%2F2.png?alt=media&token=cce870e7-a5cc-4fd0-9954-917c3abca5ba',
|
|
90
|
+
},
|
|
91
|
+
3: {
|
|
92
|
+
count: 5,
|
|
93
|
+
imagePath: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeStrikePractices%2F3.png?alt=media&token=1142a417-1fc7-4394-bf16-2d93f00a69f0',
|
|
94
|
+
imagePathDisabled: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeStrikePractices%2Fb_w%2F3.png?alt=media&token=ed8a0b5b-0fa0-4188-9834-9a567e56c081',
|
|
95
|
+
},
|
|
96
|
+
4: {
|
|
97
|
+
count: 10,
|
|
98
|
+
imagePath: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeStrikePractices%2F4.png?alt=media&token=a22d8bed-4265-41ef-8daf-e331ec2686e0',
|
|
99
|
+
imagePathDisabled: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeStrikePractices%2Fb_w%2F4.png?alt=media&token=feb5ccc1-de7a-406b-9d84-550209313138',
|
|
100
|
+
},
|
|
101
|
+
5: {
|
|
102
|
+
count: 20,
|
|
103
|
+
imagePath: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeStrikePractices%2F5.png?alt=media&token=ad552f7c-6a05-4528-9690-14672943738d',
|
|
104
|
+
imagePathDisabled: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeStrikePractices%2Fb_w%2F5.png?alt=media&token=21860812-6b86-48b9-851c-fcc11573a78e',
|
|
105
|
+
},
|
|
106
|
+
6: {
|
|
107
|
+
count: 40,
|
|
108
|
+
imagePath: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeStrikePractices%2F6.png?alt=media&token=55a1c027-19bf-40ed-8ea1-78198c5445e3',
|
|
109
|
+
imagePathDisabled: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeStrikePractices%2Fb_w%2F6.png?alt=media&token=90372290-a125-4ec6-947d-aa5070162a8b',
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
badgeAnswerEvents: {
|
|
113
|
+
1: {
|
|
114
|
+
count: 1,
|
|
115
|
+
imagePath: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeAnswerEvents%2F1.png?alt=media&token=5409ff05-e49b-44ec-95d7-d5219d52565d',
|
|
116
|
+
imagePathDisabled: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeAnswerEvents%2Fb_w%2F1.png?alt=media&token=f297f22a-f153-4fb3-9e90-87a8d27944ba',
|
|
117
|
+
},
|
|
118
|
+
2: {
|
|
119
|
+
count: 10,
|
|
120
|
+
imagePath: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeAnswerEvents%2F2.png?alt=media&token=b697ac08-def8-470a-b10d-c305f8e41fac',
|
|
121
|
+
imagePathDisabled: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeAnswerEvents%2Fb_w%2F2.png?alt=media&token=a1d1d946-5d78-4fc7-b13f-cadb95ae7dcd',
|
|
122
|
+
},
|
|
123
|
+
3: {
|
|
124
|
+
count: 25,
|
|
125
|
+
imagePath: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeAnswerEvents%2F3.png?alt=media&token=ac6d159f-12b3-4c46-b728-7d9002fb6c66',
|
|
126
|
+
imagePathDisabled: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeAnswerEvents%2Fb_w%2F3.png?alt=media&token=7f708a70-1f8d-4d87-95f8-c3eb770999b1',
|
|
127
|
+
},
|
|
128
|
+
4: {
|
|
129
|
+
count: 50,
|
|
130
|
+
imagePath: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeAnswerEvents%2F4.png?alt=media&token=097843bd-64ff-44b7-945d-254b0b51ba13',
|
|
131
|
+
imagePathDisabled: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeAnswerEvents%2Fb_w%2F4.png?alt=media&token=8f4a6039-ebba-43bd-b30f-ed61b35c8452',
|
|
132
|
+
},
|
|
133
|
+
5: {
|
|
134
|
+
count: 100,
|
|
135
|
+
imagePath: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeAnswerEvents%2F5.png?alt=media&token=36a7e479-0a8a-4c26-a30d-0787d1dc0878',
|
|
136
|
+
imagePathDisabled: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeAnswerEvents%2Fb_w%2F5.png?alt=media&token=9ee3f032-f773-42e9-b8bf-d3e45e200150',
|
|
137
|
+
},
|
|
138
|
+
6: {
|
|
139
|
+
count: 200,
|
|
140
|
+
imagePath: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeAnswerEvents%2F6.png?alt=media&token=0bdab3fb-c699-46ef-9d5a-861451796d28',
|
|
141
|
+
imagePathDisabled: 'https://firebasestorage.googleapis.com/v0/b/glissandoo-6eb90.appspot.com/o/images%2Fstatic%2Fbadges%2FbadgeAnswerEvents%2Fb_w%2F6.png?alt=media&token=3062cb39-bd32-4d54-9648-4eb606c53a32',
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
};
|
|
145
|
+
const getLevelsDataBadge = (field) => {
|
|
146
|
+
return exports.badgesLevels[field];
|
|
147
|
+
};
|
|
148
|
+
exports.getLevelsDataBadge = getLevelsDataBadge;
|
|
149
|
+
const getLevelsCountBadge = (field) => {
|
|
150
|
+
const data = exports.getLevelsDataBadge(field);
|
|
151
|
+
return Object.values(data).map((item) => item.count);
|
|
152
|
+
};
|
|
153
|
+
exports.getLevelsCountBadge = getLevelsCountBadge;
|
|
154
|
+
const getImageLevelBadge = (field, level, disabled) => {
|
|
155
|
+
const imagePath = get_1.default(exports.badgesLevels, [
|
|
156
|
+
field,
|
|
157
|
+
level,
|
|
158
|
+
disabled ? 'imagePathDisabled' : 'imagePath',
|
|
159
|
+
]);
|
|
160
|
+
return imagePath || '';
|
|
161
|
+
};
|
|
162
|
+
exports.getImageLevelBadge = getImageLevelBadge;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare enum CollectionNames {
|
|
2
|
+
Communication = "communication",
|
|
3
|
+
Notification = "notification",
|
|
4
|
+
User = "user",
|
|
5
|
+
UserGroups = "groups",
|
|
6
|
+
UserNotifications = "notifications",
|
|
7
|
+
Counters = "database",
|
|
8
|
+
Event = "event",
|
|
9
|
+
EventPlayers = "players",
|
|
10
|
+
EventRepertory = "repertory",
|
|
11
|
+
Group = "group",
|
|
12
|
+
GroupEvents = "events",
|
|
13
|
+
GroupPlayers = "players",
|
|
14
|
+
GroupAnalytics = "analytics",
|
|
15
|
+
GroupPlayerEvents = "events",
|
|
16
|
+
GroupRepertory = "repertory",
|
|
17
|
+
Metrics = "metrics",
|
|
18
|
+
Partner = "partner",
|
|
19
|
+
Partnership = "partnership",
|
|
20
|
+
PartnershipPartners = "partners",
|
|
21
|
+
PartnershipGroups = "groups",
|
|
22
|
+
PartnershipPartnerSubscriptions = "subscriptions",
|
|
23
|
+
PartnershipPayments = "payments",
|
|
24
|
+
PartnershipPlans = "plans",
|
|
25
|
+
Payment = "payment",
|
|
26
|
+
Federation = "federation",
|
|
27
|
+
FederationPartnerships = "partnerships"
|
|
28
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CollectionNames = void 0;
|
|
4
|
+
var CollectionNames;
|
|
5
|
+
(function (CollectionNames) {
|
|
6
|
+
CollectionNames["Communication"] = "communication";
|
|
7
|
+
CollectionNames["Notification"] = "notification";
|
|
8
|
+
CollectionNames["User"] = "user";
|
|
9
|
+
CollectionNames["UserGroups"] = "groups";
|
|
10
|
+
CollectionNames["UserNotifications"] = "notifications";
|
|
11
|
+
CollectionNames["Counters"] = "database";
|
|
12
|
+
CollectionNames["Event"] = "event";
|
|
13
|
+
CollectionNames["EventPlayers"] = "players";
|
|
14
|
+
CollectionNames["EventRepertory"] = "repertory";
|
|
15
|
+
CollectionNames["Group"] = "group";
|
|
16
|
+
CollectionNames["GroupEvents"] = "events";
|
|
17
|
+
CollectionNames["GroupPlayers"] = "players";
|
|
18
|
+
CollectionNames["GroupAnalytics"] = "analytics";
|
|
19
|
+
CollectionNames["GroupPlayerEvents"] = "events";
|
|
20
|
+
CollectionNames["GroupRepertory"] = "repertory";
|
|
21
|
+
CollectionNames["Metrics"] = "metrics";
|
|
22
|
+
CollectionNames["Partner"] = "partner";
|
|
23
|
+
CollectionNames["Partnership"] = "partnership";
|
|
24
|
+
CollectionNames["PartnershipPartners"] = "partners";
|
|
25
|
+
CollectionNames["PartnershipGroups"] = "groups";
|
|
26
|
+
CollectionNames["PartnershipPartnerSubscriptions"] = "subscriptions";
|
|
27
|
+
CollectionNames["PartnershipPayments"] = "payments";
|
|
28
|
+
CollectionNames["PartnershipPlans"] = "plans";
|
|
29
|
+
CollectionNames["Payment"] = "payment";
|
|
30
|
+
CollectionNames["Federation"] = "federation";
|
|
31
|
+
CollectionNames["FederationPartnerships"] = "partnerships";
|
|
32
|
+
})(CollectionNames = exports.CollectionNames || (exports.CollectionNames = {}));
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { LanguagesTypes } from '../../lang';
|
|
2
|
+
import Instrument from '../../models/Instrument';
|
|
3
|
+
export declare enum InstrumentId {
|
|
4
|
+
Accordion = "accordion",
|
|
5
|
+
Banjo = "banjo",
|
|
6
|
+
Baritone = "baritone",
|
|
7
|
+
Bass = "bass",
|
|
8
|
+
BassChoir = "bass-choir",
|
|
9
|
+
BassDrum = "bass-drum",
|
|
10
|
+
Bassoon = "bassoon",
|
|
11
|
+
BassoonContra = "contraBass",
|
|
12
|
+
Cello = "cello",
|
|
13
|
+
Choir = "choir",
|
|
14
|
+
Clarinet = "clarinet",
|
|
15
|
+
ClarinetBass = "bassClarinet",
|
|
16
|
+
ClarinetLittle = "littleClarinet",
|
|
17
|
+
ContraAlto = "contraAlto",
|
|
18
|
+
Cornet = "cornet",
|
|
19
|
+
CounterTenor = "counterTenor",
|
|
20
|
+
Cymbals = "cymbals",
|
|
21
|
+
DJ = "dj",
|
|
22
|
+
DoubleBass = "doubleBass",
|
|
23
|
+
DrumSet = "drumSet",
|
|
24
|
+
Dulzaina = "dulzaina",
|
|
25
|
+
ElectricGuitar = "electricGuitar",
|
|
26
|
+
EnglishHorn = "englishHorn",
|
|
27
|
+
Euphonium = "euphonium",
|
|
28
|
+
FlugeHorn = "flugelhorn",
|
|
29
|
+
Flute = "flute",
|
|
30
|
+
FluteLow = "low-flute",
|
|
31
|
+
FrenchHorn = "frenchHorn",
|
|
32
|
+
Guitar = "guitar",
|
|
33
|
+
Harmonica = "harmonica",
|
|
34
|
+
Harp = "harp",
|
|
35
|
+
Keyboard = "keyboard",
|
|
36
|
+
Mallets = "mallets",
|
|
37
|
+
MezzoSoprano = "mezzosoproano",
|
|
38
|
+
MusicConductor = "musicConductor",
|
|
39
|
+
Oboe = "oboe",
|
|
40
|
+
Percussion = "percussion",
|
|
41
|
+
Piano = "piano",
|
|
42
|
+
Piccolo = "piccolo",
|
|
43
|
+
SaxAlto = "altoSaxophone",
|
|
44
|
+
SaxBaritone = "baritoneSax",
|
|
45
|
+
SaxLow = "lowSaxophone",
|
|
46
|
+
SaxSoprano = "sopranoSaxophone",
|
|
47
|
+
SaxTenor = "tenorSax",
|
|
48
|
+
Singer = "singer",
|
|
49
|
+
Soprano = "soprano",
|
|
50
|
+
Tabal = "tabal",
|
|
51
|
+
Tenor = "tenor",
|
|
52
|
+
Timpani = "timpani",
|
|
53
|
+
Trombone = "trombone",
|
|
54
|
+
TromboneHigh = "highTrombone",
|
|
55
|
+
TromboneLow = "lowTrombone",
|
|
56
|
+
Trumpet = "trumpet",
|
|
57
|
+
TrumpetLow = "lowTrumpet",
|
|
58
|
+
TrumpetPiccolo = "piccoloTrumpet",
|
|
59
|
+
Tuba = "tuba",
|
|
60
|
+
TubaWagnerian = "tuba-wagnerian",
|
|
61
|
+
Txistu = "txistu",
|
|
62
|
+
Ukelele = "ukelele",
|
|
63
|
+
Viola = "viola",
|
|
64
|
+
Violin = "violin"
|
|
65
|
+
}
|
|
66
|
+
export declare const InstrumentIcons: Record<InstrumentId, string>;
|
|
67
|
+
export declare const list: (lang: LanguagesTypes) => Instrument[];
|