@glissandoo/lib 1.53.7 → 1.54.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/group.d.ts +9 -1
- package/functions/groupRepertory.d.ts +1 -1
- package/functions/index.d.ts +1 -0
- package/functions/index.js +1 -0
- package/functions/regions.js +1 -0
- package/helpers/errors.d.ts +3 -1
- package/helpers/errors.js +2 -0
- package/helpers/fileSections/index.js +1 -1
- package/helpers/instruments/index.d.ts +6 -5
- package/helpers/instruments/index.js +180 -185
- package/helpers/instruments/lists.d.ts +6 -0
- package/helpers/instruments/lists.js +21 -0
- package/helpers/musicStyles/index.d.ts +2 -2
- package/helpers/musicStyles/index.js +11 -11
- package/helpers/musicStyles/orders.d.ts +3 -3
- package/helpers/musicStyles/orders.js +172 -168
- package/helpers/notifications/placeholders.js +14 -7
- package/helpers/objects.d.ts +1 -1
- package/lang/ca.json +6 -4
- package/lang/de.json +5 -3
- package/lang/en.json +6 -4
- package/lang/es.json +5 -3
- package/lang/eu.json +5 -3
- package/lang/gl.json +5 -3
- package/lang/pt.json +5 -3
- package/models/Group/index.d.ts +7 -2
- package/models/Group/index.js +4 -1
- package/models/Group/types.d.ts +14 -5
- package/models/Instrument/group.d.ts +12 -0
- package/models/Instrument/group.js +26 -0
- package/package.json +1 -1
package/functions/group.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GroupBasicData, GroupCreatedOn, GroupStatus } from '../models/Group/types';
|
|
1
|
+
import { GroupBasicData, GroupCreatedOn, GroupData, GroupStatus } from '../models/Group/types';
|
|
2
2
|
export declare namespace GroupFbFunctionsTypes {
|
|
3
3
|
interface PublishParams {
|
|
4
4
|
displayName: string;
|
|
@@ -15,6 +15,7 @@ export declare namespace GroupFbFunctionsTypes {
|
|
|
15
15
|
id: string;
|
|
16
16
|
username: string;
|
|
17
17
|
invitationLink: string | null;
|
|
18
|
+
instruments: GroupData['instruments'];
|
|
18
19
|
}
|
|
19
20
|
interface EditParams {
|
|
20
21
|
displayName: string;
|
|
@@ -27,6 +28,12 @@ export declare namespace GroupFbFunctionsTypes {
|
|
|
27
28
|
longitude: number;
|
|
28
29
|
}
|
|
29
30
|
type EditResult = void;
|
|
31
|
+
interface EditInstrumentsParams {
|
|
32
|
+
groupId: string;
|
|
33
|
+
instruments: GroupData['instruments'];
|
|
34
|
+
ignoreRepertoryRules: boolean;
|
|
35
|
+
}
|
|
36
|
+
type EditInstrumentsResult = void;
|
|
30
37
|
interface RemoveParams {
|
|
31
38
|
groupId: string;
|
|
32
39
|
}
|
|
@@ -41,6 +48,7 @@ export declare namespace GroupFbFunctionsTypes {
|
|
|
41
48
|
}
|
|
42
49
|
interface GetByIdResult extends GroupBasicData {
|
|
43
50
|
id: string;
|
|
51
|
+
instruments: GroupData['instruments'];
|
|
44
52
|
}
|
|
45
53
|
interface SendInvitationEmailParams {
|
|
46
54
|
emails: string[];
|
|
@@ -26,7 +26,7 @@ export declare namespace GroupRepertoryFbFunctionsTypes {
|
|
|
26
26
|
export interface ClaimMusicSheetParams {
|
|
27
27
|
themeId: string;
|
|
28
28
|
groupId: string;
|
|
29
|
-
instrumentId:
|
|
29
|
+
instrumentId: InstrumentId;
|
|
30
30
|
}
|
|
31
31
|
export type ClaimMusicSheetResult = void;
|
|
32
32
|
export interface DownloadThemeFilesParams {
|
package/functions/index.d.ts
CHANGED
|
@@ -60,6 +60,7 @@ export declare enum FbFunctionName {
|
|
|
60
60
|
GroupChangeStatus = "group-changeStatus",
|
|
61
61
|
GroupCronSatistactionIndexWeekly = "group-cronSatistactionIndexWeekly",
|
|
62
62
|
GroupEdit = "group-edit",
|
|
63
|
+
GroupEditInstruments = "group-editInstruments",
|
|
63
64
|
GroupGetById = "group-getById",
|
|
64
65
|
GroupOnboardingMessages = "group-onboardingMessages",
|
|
65
66
|
GroupOnCreate = "group-onCreate",
|
package/functions/index.js
CHANGED
|
@@ -64,6 +64,7 @@ var FbFunctionName;
|
|
|
64
64
|
FbFunctionName["GroupChangeStatus"] = "group-changeStatus";
|
|
65
65
|
FbFunctionName["GroupCronSatistactionIndexWeekly"] = "group-cronSatistactionIndexWeekly";
|
|
66
66
|
FbFunctionName["GroupEdit"] = "group-edit";
|
|
67
|
+
FbFunctionName["GroupEditInstruments"] = "group-editInstruments";
|
|
67
68
|
FbFunctionName["GroupGetById"] = "group-getById";
|
|
68
69
|
FbFunctionName["GroupOnboardingMessages"] = "group-onboardingMessages";
|
|
69
70
|
FbFunctionName["GroupOnCreate"] = "group-onCreate";
|
package/functions/regions.js
CHANGED
|
@@ -34,6 +34,7 @@ const regionByFunctions = {
|
|
|
34
34
|
[index_1.FbFunctionName.JWTGenerate]: GCloudRegions.EuropeWest6,
|
|
35
35
|
[index_1.FbFunctionName.GroupPublish]: GCloudRegions.EuropeWest6,
|
|
36
36
|
[index_1.FbFunctionName.GroupEdit]: GCloudRegions.EuropeWest6,
|
|
37
|
+
[index_1.FbFunctionName.GroupEditInstruments]: GCloudRegions.EuropeWest6,
|
|
37
38
|
[index_1.FbFunctionName.GroupRemove]: GCloudRegions.UsCentral1,
|
|
38
39
|
[index_1.FbFunctionName.GroupChangeStatus]: GCloudRegions.EuropeWest6,
|
|
39
40
|
[index_1.FbFunctionName.GroupOnboardingMessages]: GCloudRegions.EuropeWest6,
|
package/helpers/errors.d.ts
CHANGED
|
@@ -54,5 +54,7 @@ export declare enum HttpsErrorMessages {
|
|
|
54
54
|
EventSelectionModeStillOpen = "error.event.selectionModeStillOpen",
|
|
55
55
|
EventSelectionModeClosedOrNotActive = "error.event.selectionModeClosedOrNotActive",
|
|
56
56
|
EventPlayerNotSelected = "error.event.playerNotSelected",
|
|
57
|
-
CustomerGroupNoSubscriptionFound = "error.customerGroup.noSubscriptionFound"
|
|
57
|
+
CustomerGroupNoSubscriptionFound = "error.customerGroup.noSubscriptionFound",
|
|
58
|
+
PlayersWithCustomInstrumentsToBeDeleted = "error.group.playersWithCustomInstrumentsToBeDeleted",
|
|
59
|
+
ThemesWithCustomInstrumentsToBeDeleted = "error.group.themesWithCustomInstrumentsToBeDeleted"
|
|
58
60
|
}
|
package/helpers/errors.js
CHANGED
|
@@ -59,4 +59,6 @@ var HttpsErrorMessages;
|
|
|
59
59
|
HttpsErrorMessages["EventSelectionModeClosedOrNotActive"] = "error.event.selectionModeClosedOrNotActive";
|
|
60
60
|
HttpsErrorMessages["EventPlayerNotSelected"] = "error.event.playerNotSelected";
|
|
61
61
|
HttpsErrorMessages["CustomerGroupNoSubscriptionFound"] = "error.customerGroup.noSubscriptionFound";
|
|
62
|
+
HttpsErrorMessages["PlayersWithCustomInstrumentsToBeDeleted"] = "error.group.playersWithCustomInstrumentsToBeDeleted";
|
|
63
|
+
HttpsErrorMessages["ThemesWithCustomInstrumentsToBeDeleted"] = "error.group.themesWithCustomInstrumentsToBeDeleted";
|
|
62
64
|
})(HttpsErrorMessages = exports.HttpsErrorMessages || (exports.HttpsErrorMessages = {}));
|
|
@@ -4,6 +4,6 @@ exports.fileSectionIdList = void 0;
|
|
|
4
4
|
const types_1 = require("../../models/Group/Repertory/File/Section/types");
|
|
5
5
|
const instruments_1 = require("../instruments");
|
|
6
6
|
exports.fileSectionIdList = [
|
|
7
|
-
...Object.values(instruments_1.
|
|
7
|
+
...Object.values(instruments_1.DefaultInstrumentId),
|
|
8
8
|
...Object.values(types_1.FileSectionIdReserved),
|
|
9
9
|
];
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import Instrument from '../../models/Instrument';
|
|
3
|
-
export declare enum InstrumentId {
|
|
1
|
+
export declare enum DefaultInstrumentId {
|
|
4
2
|
Accordion = "accordion",
|
|
5
3
|
Agogo = "agogo",
|
|
4
|
+
Auxiliar = "auxiliar",
|
|
6
5
|
Bandurria = "bandurria",
|
|
7
6
|
Bagpipes = "bagpipes",
|
|
8
7
|
Banjo = "banjo",
|
|
@@ -35,6 +34,7 @@ export declare enum InstrumentId {
|
|
|
35
34
|
EnglishHorn = "englishHorn",
|
|
36
35
|
Euphonium = "euphonium",
|
|
37
36
|
Flabiol = "flabiol",
|
|
37
|
+
FlagBearer = "flagBearer",
|
|
38
38
|
FlugeHorn = "flugelhorn",
|
|
39
39
|
Flute = "flute",
|
|
40
40
|
FluteLow = "low-flute",
|
|
@@ -88,5 +88,6 @@ export declare enum InstrumentId {
|
|
|
88
88
|
Viola = "viola",
|
|
89
89
|
Violin = "violin"
|
|
90
90
|
}
|
|
91
|
-
export declare const InstrumentIcons: Record<
|
|
92
|
-
export
|
|
91
|
+
export declare const InstrumentIcons: Record<DefaultInstrumentId, string>;
|
|
92
|
+
export type CustomInstrumentId = `customInstrument-${string}`;
|
|
93
|
+
export type InstrumentId = CustomInstrumentId | DefaultInstrumentId;
|
|
@@ -1,189 +1,184 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
3
|
+
exports.InstrumentIcons = exports.DefaultInstrumentId = void 0;
|
|
4
|
+
var DefaultInstrumentId;
|
|
5
|
+
(function (DefaultInstrumentId) {
|
|
6
|
+
DefaultInstrumentId["Accordion"] = "accordion";
|
|
7
|
+
DefaultInstrumentId["Agogo"] = "agogo";
|
|
8
|
+
DefaultInstrumentId["Auxiliar"] = "auxiliar";
|
|
9
|
+
DefaultInstrumentId["Bandurria"] = "bandurria";
|
|
10
|
+
DefaultInstrumentId["Bagpipes"] = "bagpipes";
|
|
11
|
+
DefaultInstrumentId["Banjo"] = "banjo";
|
|
12
|
+
DefaultInstrumentId["Baritone"] = "baritone";
|
|
13
|
+
DefaultInstrumentId["Bass"] = "bass";
|
|
14
|
+
DefaultInstrumentId["BassChoir"] = "bass-choir";
|
|
15
|
+
DefaultInstrumentId["BassDrum"] = "bass-drum";
|
|
16
|
+
DefaultInstrumentId["Bassoon"] = "bassoon";
|
|
17
|
+
DefaultInstrumentId["BassoonContra"] = "contraBass";
|
|
18
|
+
DefaultInstrumentId["Cajon"] = "cajon";
|
|
19
|
+
DefaultInstrumentId["Castanets"] = "castanets";
|
|
20
|
+
DefaultInstrumentId["Cello"] = "cello";
|
|
21
|
+
DefaultInstrumentId["Choir"] = "choir";
|
|
22
|
+
DefaultInstrumentId["Chocalho"] = "chocalho";
|
|
23
|
+
DefaultInstrumentId["Clarinet"] = "clarinet";
|
|
24
|
+
DefaultInstrumentId["ClarinetAlto"] = "altoClarinet";
|
|
25
|
+
DefaultInstrumentId["ClarinetBass"] = "bassClarinet";
|
|
26
|
+
DefaultInstrumentId["ClarinetContrabass"] = "contrabassClarinet";
|
|
27
|
+
DefaultInstrumentId["ClarinetLittle"] = "littleClarinet";
|
|
28
|
+
DefaultInstrumentId["ContraAlto"] = "contraAlto";
|
|
29
|
+
DefaultInstrumentId["Cornet"] = "cornet";
|
|
30
|
+
DefaultInstrumentId["CounterTenor"] = "counterTenor";
|
|
31
|
+
DefaultInstrumentId["Cymbals"] = "cymbals";
|
|
32
|
+
DefaultInstrumentId["DJ"] = "dj";
|
|
33
|
+
DefaultInstrumentId["DoubleBass"] = "doubleBass";
|
|
34
|
+
DefaultInstrumentId["DrumSet"] = "drumSet";
|
|
35
|
+
DefaultInstrumentId["Dulzaina"] = "dulzaina";
|
|
36
|
+
DefaultInstrumentId["DulzainaFa"] = "dulzaina-fa";
|
|
37
|
+
DefaultInstrumentId["ElectricGuitar"] = "electricGuitar";
|
|
38
|
+
DefaultInstrumentId["EnglishHorn"] = "englishHorn";
|
|
39
|
+
DefaultInstrumentId["Euphonium"] = "euphonium";
|
|
40
|
+
DefaultInstrumentId["Flabiol"] = "flabiol";
|
|
41
|
+
DefaultInstrumentId["FlagBearer"] = "flagBearer";
|
|
42
|
+
DefaultInstrumentId["FlugeHorn"] = "flugelhorn";
|
|
43
|
+
DefaultInstrumentId["Flute"] = "flute";
|
|
44
|
+
DefaultInstrumentId["FluteLow"] = "low-flute";
|
|
45
|
+
DefaultInstrumentId["FlutePeak"] = "peak-flute";
|
|
46
|
+
DefaultInstrumentId["FrenchHorn"] = "frenchHorn";
|
|
47
|
+
DefaultInstrumentId["Guitar"] = "guitar";
|
|
48
|
+
DefaultInstrumentId["Harmonica"] = "harmonica";
|
|
49
|
+
DefaultInstrumentId["Harpsichord"] = "harpsichord";
|
|
50
|
+
DefaultInstrumentId["Harp"] = "harp";
|
|
51
|
+
DefaultInstrumentId["Keyboard"] = "keyboard";
|
|
52
|
+
DefaultInstrumentId["Lute"] = "lute";
|
|
53
|
+
DefaultInstrumentId["Maracas"] = "maracas";
|
|
54
|
+
DefaultInstrumentId["MarchingToms"] = "marchingToms";
|
|
55
|
+
DefaultInstrumentId["Mallets"] = "mallets";
|
|
56
|
+
DefaultInstrumentId["Mandoline"] = "mandoline";
|
|
57
|
+
DefaultInstrumentId["Melodica"] = "melodica";
|
|
58
|
+
DefaultInstrumentId["MezzoSoprano"] = "mezzosoproano";
|
|
59
|
+
DefaultInstrumentId["MusicConductor"] = "musicConductor";
|
|
60
|
+
DefaultInstrumentId["Oboe"] = "oboe";
|
|
61
|
+
DefaultInstrumentId["Percussion"] = "percussion";
|
|
62
|
+
DefaultInstrumentId["Piano"] = "piano";
|
|
63
|
+
DefaultInstrumentId["Piccolo"] = "piccolo";
|
|
64
|
+
DefaultInstrumentId["Repique"] = "repique";
|
|
65
|
+
DefaultInstrumentId["SaxAlto"] = "altoSaxophone";
|
|
66
|
+
DefaultInstrumentId["SaxBaritone"] = "baritoneSax";
|
|
67
|
+
DefaultInstrumentId["SaxLow"] = "lowSaxophone";
|
|
68
|
+
DefaultInstrumentId["SaxSoprano"] = "sopranoSaxophone";
|
|
69
|
+
DefaultInstrumentId["SaxTenor"] = "tenorSax";
|
|
70
|
+
DefaultInstrumentId["Silbote"] = "silbote";
|
|
71
|
+
DefaultInstrumentId["Singer"] = "singer";
|
|
72
|
+
DefaultInstrumentId["SnareDrum"] = "snareDrum";
|
|
73
|
+
DefaultInstrumentId["Soprano"] = "soprano";
|
|
74
|
+
DefaultInstrumentId["Surdo"] = "surdo";
|
|
75
|
+
DefaultInstrumentId["Tabal"] = "tabal";
|
|
76
|
+
DefaultInstrumentId["Tambourine"] = "tambourine";
|
|
77
|
+
DefaultInstrumentId["TambourineBrazilian"] = "tambourineBrazilian";
|
|
78
|
+
DefaultInstrumentId["Tarota"] = "tarota";
|
|
79
|
+
DefaultInstrumentId["Tenor"] = "tenor";
|
|
80
|
+
DefaultInstrumentId["TimbalBrazilian"] = "timbalBrazilian";
|
|
81
|
+
DefaultInstrumentId["Timpani"] = "timpani";
|
|
82
|
+
DefaultInstrumentId["Trombone"] = "trombone";
|
|
83
|
+
DefaultInstrumentId["TromboneHigh"] = "highTrombone";
|
|
84
|
+
DefaultInstrumentId["TromboneLow"] = "lowTrombone";
|
|
85
|
+
DefaultInstrumentId["Trumpet"] = "trumpet";
|
|
86
|
+
DefaultInstrumentId["TrumpetLow"] = "lowTrumpet";
|
|
87
|
+
DefaultInstrumentId["TrumpetPiccolo"] = "piccoloTrumpet";
|
|
88
|
+
DefaultInstrumentId["Tuba"] = "tuba";
|
|
89
|
+
DefaultInstrumentId["TubaWagnerian"] = "tuba-wagnerian";
|
|
90
|
+
DefaultInstrumentId["Txistu"] = "txistu";
|
|
91
|
+
DefaultInstrumentId["Ukelele"] = "ukelele";
|
|
92
|
+
DefaultInstrumentId["Viola"] = "viola";
|
|
93
|
+
DefaultInstrumentId["Violin"] = "violin";
|
|
94
|
+
})(DefaultInstrumentId = exports.DefaultInstrumentId || (exports.DefaultInstrumentId = {}));
|
|
97
95
|
exports.InstrumentIcons = {
|
|
98
|
-
[
|
|
99
|
-
[
|
|
100
|
-
[
|
|
101
|
-
[
|
|
102
|
-
[
|
|
103
|
-
[
|
|
104
|
-
[
|
|
105
|
-
[
|
|
106
|
-
[
|
|
107
|
-
[
|
|
108
|
-
[
|
|
109
|
-
[
|
|
110
|
-
[
|
|
111
|
-
[
|
|
112
|
-
[
|
|
113
|
-
[
|
|
114
|
-
[
|
|
115
|
-
[
|
|
116
|
-
[
|
|
117
|
-
[
|
|
118
|
-
[
|
|
119
|
-
[
|
|
120
|
-
[
|
|
121
|
-
[
|
|
122
|
-
[
|
|
123
|
-
[
|
|
124
|
-
[
|
|
125
|
-
[
|
|
126
|
-
[
|
|
127
|
-
[
|
|
128
|
-
[
|
|
129
|
-
[
|
|
130
|
-
[
|
|
131
|
-
[
|
|
132
|
-
[
|
|
133
|
-
[
|
|
134
|
-
[
|
|
135
|
-
[
|
|
136
|
-
[
|
|
137
|
-
[
|
|
138
|
-
[
|
|
139
|
-
[
|
|
140
|
-
[
|
|
141
|
-
[
|
|
142
|
-
[
|
|
143
|
-
[
|
|
144
|
-
[
|
|
145
|
-
[
|
|
146
|
-
[
|
|
147
|
-
[
|
|
148
|
-
[
|
|
149
|
-
[
|
|
150
|
-
[
|
|
151
|
-
[
|
|
152
|
-
[
|
|
153
|
-
[
|
|
154
|
-
[
|
|
155
|
-
[
|
|
156
|
-
[
|
|
157
|
-
[
|
|
158
|
-
[
|
|
159
|
-
[
|
|
160
|
-
[
|
|
161
|
-
[
|
|
162
|
-
[
|
|
163
|
-
[
|
|
164
|
-
[
|
|
165
|
-
[
|
|
166
|
-
[
|
|
167
|
-
[
|
|
168
|
-
[
|
|
169
|
-
[
|
|
170
|
-
[
|
|
171
|
-
[
|
|
172
|
-
[
|
|
173
|
-
[
|
|
174
|
-
[
|
|
175
|
-
[
|
|
176
|
-
[
|
|
177
|
-
[
|
|
178
|
-
[
|
|
179
|
-
[
|
|
180
|
-
[
|
|
181
|
-
[
|
|
182
|
-
[
|
|
183
|
-
[
|
|
96
|
+
[DefaultInstrumentId.Accordion]: 'accordion',
|
|
97
|
+
[DefaultInstrumentId.Agogo]: 'agogo',
|
|
98
|
+
[DefaultInstrumentId.Auxiliar]: 'auxiliar',
|
|
99
|
+
[DefaultInstrumentId.Bandurria]: 'bandurria',
|
|
100
|
+
[DefaultInstrumentId.Bagpipes]: 'bagpipes',
|
|
101
|
+
[DefaultInstrumentId.Banjo]: 'banjo',
|
|
102
|
+
[DefaultInstrumentId.Baritone]: 'choirMen',
|
|
103
|
+
[DefaultInstrumentId.BassChoir]: 'choirMen',
|
|
104
|
+
[DefaultInstrumentId.Bass]: 'guitarBass',
|
|
105
|
+
[DefaultInstrumentId.BassDrum]: 'drumBass',
|
|
106
|
+
[DefaultInstrumentId.Bassoon]: 'bassoon',
|
|
107
|
+
[DefaultInstrumentId.BassoonContra]: 'bassoon',
|
|
108
|
+
[DefaultInstrumentId.Castanets]: 'castanets',
|
|
109
|
+
[DefaultInstrumentId.Cajon]: 'cajon',
|
|
110
|
+
[DefaultInstrumentId.Cello]: 'cello',
|
|
111
|
+
[DefaultInstrumentId.Choir]: 'choirMen',
|
|
112
|
+
[DefaultInstrumentId.Chocalho]: 'chocalho',
|
|
113
|
+
[DefaultInstrumentId.ClarinetBass]: 'bassClarinet',
|
|
114
|
+
[DefaultInstrumentId.ClarinetAlto]: 'bassClarinet',
|
|
115
|
+
[DefaultInstrumentId.ClarinetContrabass]: 'contrabassClarinet',
|
|
116
|
+
[DefaultInstrumentId.ClarinetLittle]: 'clarinet',
|
|
117
|
+
[DefaultInstrumentId.Clarinet]: 'clarinet',
|
|
118
|
+
[DefaultInstrumentId.ContraAlto]: 'choirWomen',
|
|
119
|
+
[DefaultInstrumentId.Cornet]: 'cornet',
|
|
120
|
+
[DefaultInstrumentId.CounterTenor]: 'choirMen',
|
|
121
|
+
[DefaultInstrumentId.Cymbals]: 'cymbals',
|
|
122
|
+
[DefaultInstrumentId.DJ]: 'dj',
|
|
123
|
+
[DefaultInstrumentId.DoubleBass]: 'cello',
|
|
124
|
+
[DefaultInstrumentId.DrumSet]: 'drumSet',
|
|
125
|
+
[DefaultInstrumentId.Dulzaina]: 'dulzaina',
|
|
126
|
+
[DefaultInstrumentId.DulzainaFa]: 'dulzaina',
|
|
127
|
+
[DefaultInstrumentId.ElectricGuitar]: 'guitarElectric',
|
|
128
|
+
[DefaultInstrumentId.EnglishHorn]: 'clarinet',
|
|
129
|
+
[DefaultInstrumentId.Euphonium]: 'tuba',
|
|
130
|
+
[DefaultInstrumentId.Flabiol]: 'flabiol',
|
|
131
|
+
[DefaultInstrumentId.FlagBearer]: 'flagBearer',
|
|
132
|
+
[DefaultInstrumentId.FlugeHorn]: 'trumpet',
|
|
133
|
+
[DefaultInstrumentId.FluteLow]: 'flute',
|
|
134
|
+
[DefaultInstrumentId.Flute]: 'flute',
|
|
135
|
+
[DefaultInstrumentId.FlutePeak]: 'fluteWood',
|
|
136
|
+
[DefaultInstrumentId.FrenchHorn]: 'frenchHorn',
|
|
137
|
+
[DefaultInstrumentId.Guitar]: 'guitar',
|
|
138
|
+
[DefaultInstrumentId.Harmonica]: 'harmonica',
|
|
139
|
+
[DefaultInstrumentId.Harp]: 'harp',
|
|
140
|
+
[DefaultInstrumentId.Harpsichord]: 'harpsichord',
|
|
141
|
+
[DefaultInstrumentId.Keyboard]: 'piano',
|
|
142
|
+
[DefaultInstrumentId.Lute]: 'lute',
|
|
143
|
+
[DefaultInstrumentId.Mallets]: 'xylophone',
|
|
144
|
+
[DefaultInstrumentId.Maracas]: 'maracas',
|
|
145
|
+
[DefaultInstrumentId.MarchingToms]: 'marchingDrums',
|
|
146
|
+
[DefaultInstrumentId.Mandoline]: 'mandoline',
|
|
147
|
+
[DefaultInstrumentId.MezzoSoprano]: 'choirWomen',
|
|
148
|
+
[DefaultInstrumentId.Melodica]: 'melodica',
|
|
149
|
+
[DefaultInstrumentId.MusicConductor]: 'bandmastersMace',
|
|
150
|
+
[DefaultInstrumentId.Oboe]: 'oboe',
|
|
151
|
+
[DefaultInstrumentId.Percussion]: 'drumSnare',
|
|
152
|
+
[DefaultInstrumentId.Piano]: 'pianoClassic',
|
|
153
|
+
[DefaultInstrumentId.Piccolo]: 'piccolo',
|
|
154
|
+
[DefaultInstrumentId.Repique]: 'repique',
|
|
155
|
+
[DefaultInstrumentId.SaxAlto]: 'saxophone',
|
|
156
|
+
[DefaultInstrumentId.SaxBaritone]: 'saxophoneHigh',
|
|
157
|
+
[DefaultInstrumentId.SaxLow]: 'saxophoneHigh',
|
|
158
|
+
[DefaultInstrumentId.SaxSoprano]: 'saxophoneSoprano',
|
|
159
|
+
[DefaultInstrumentId.SaxTenor]: 'saxophone',
|
|
160
|
+
[DefaultInstrumentId.Silbote]: 'silbote',
|
|
161
|
+
[DefaultInstrumentId.Singer]: 'microphone',
|
|
162
|
+
[DefaultInstrumentId.SnareDrum]: 'drumSnare',
|
|
163
|
+
[DefaultInstrumentId.Soprano]: 'choirWomen',
|
|
164
|
+
[DefaultInstrumentId.Surdo]: 'surdo',
|
|
165
|
+
[DefaultInstrumentId.Tabal]: 'tabal',
|
|
166
|
+
[DefaultInstrumentId.Tambourine]: 'tambourine',
|
|
167
|
+
[DefaultInstrumentId.TambourineBrazilian]: 'tambourineBrazilian',
|
|
168
|
+
[DefaultInstrumentId.Tarota]: 'dulzaina',
|
|
169
|
+
[DefaultInstrumentId.Tenor]: 'choirMen',
|
|
170
|
+
[DefaultInstrumentId.TimbalBrazilian]: 'timbalBrazilian',
|
|
171
|
+
[DefaultInstrumentId.TromboneHigh]: 'trombone',
|
|
172
|
+
[DefaultInstrumentId.TromboneLow]: 'trombone',
|
|
173
|
+
[DefaultInstrumentId.Trombone]: 'trombone',
|
|
174
|
+
[DefaultInstrumentId.Trumpet]: 'trumpet',
|
|
175
|
+
[DefaultInstrumentId.TrumpetLow]: 'trumpet',
|
|
176
|
+
[DefaultInstrumentId.TrumpetPiccolo]: 'trumpet',
|
|
177
|
+
[DefaultInstrumentId.TubaWagnerian]: 'tuba',
|
|
178
|
+
[DefaultInstrumentId.Tuba]: 'tuba',
|
|
179
|
+
[DefaultInstrumentId.Timpani]: 'timpani',
|
|
180
|
+
[DefaultInstrumentId.Txistu]: 'txistu',
|
|
181
|
+
[DefaultInstrumentId.Ukelele]: 'guitar',
|
|
182
|
+
[DefaultInstrumentId.Viola]: 'violin',
|
|
183
|
+
[DefaultInstrumentId.Violin]: 'violin',
|
|
184
184
|
};
|
|
185
|
-
const hideInstruments = [InstrumentId.DJ, InstrumentId.Choir];
|
|
186
|
-
const list = (lang) => Object.values(InstrumentId)
|
|
187
|
-
.filter((id) => !hideInstruments.includes(id))
|
|
188
|
-
.map((key) => new Instrument_1.default(key, lang));
|
|
189
|
-
exports.list = list;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { LanguagesTypes } from '../../lang';
|
|
2
|
+
import Group from '../../models/Group';
|
|
3
|
+
import Instrument from '../../models/Instrument';
|
|
4
|
+
import GroupInstrument from '../../models/Instrument/group';
|
|
5
|
+
export declare const list: (lang: LanguagesTypes) => Instrument[];
|
|
6
|
+
export declare const listWithCustom: (groupInstruments: Group['instruments'], lang: LanguagesTypes) => GroupInstrument[];
|
|
@@ -0,0 +1,21 @@
|
|
|
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.listWithCustom = exports.list = void 0;
|
|
7
|
+
const _1 = require(".");
|
|
8
|
+
const Instrument_1 = __importDefault(require("../../models/Instrument"));
|
|
9
|
+
const group_1 = __importDefault(require("../../models/Instrument/group"));
|
|
10
|
+
const objects_1 = require("../objects");
|
|
11
|
+
const hideInstruments = [_1.DefaultInstrumentId.DJ, _1.DefaultInstrumentId.Choir];
|
|
12
|
+
const list = (lang) => Object.values(_1.DefaultInstrumentId)
|
|
13
|
+
.filter((id) => !hideInstruments.includes(id))
|
|
14
|
+
.map((id) => new Instrument_1.default(id, lang));
|
|
15
|
+
exports.list = list;
|
|
16
|
+
const listWithCustom = (groupInstruments, lang) => {
|
|
17
|
+
const groupInstrumentsIds = (0, objects_1.orderedMapToArray)(groupInstruments).map(({ id }) => id);
|
|
18
|
+
const others = Object.values(_1.DefaultInstrumentId).filter((id) => !groupInstrumentsIds.includes(id) && !hideInstruments.includes(id));
|
|
19
|
+
return [...groupInstrumentsIds, ...others].map((id) => new group_1.default(id, lang, groupInstruments));
|
|
20
|
+
};
|
|
21
|
+
exports.listWithCustom = listWithCustom;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LanguagesTypes } from '../../lang';
|
|
2
2
|
import MusicStyle from '../../models/MusicStyle';
|
|
3
|
-
import {
|
|
3
|
+
import { DefaultInstrumentId } from '../instruments';
|
|
4
4
|
export declare enum MusicStyleId {
|
|
5
5
|
Orchestra = "orquesta-sinfonica",
|
|
6
6
|
Band = "banda-de-musica",
|
|
@@ -14,7 +14,7 @@ export declare enum MusicStyleId {
|
|
|
14
14
|
Choir = "coro",
|
|
15
15
|
Batucada = "batucada"
|
|
16
16
|
}
|
|
17
|
-
export declare const musicStylesIcon: Record<MusicStyleId,
|
|
17
|
+
export declare const musicStylesIcon: Record<MusicStyleId, DefaultInstrumentId>;
|
|
18
18
|
export declare const MusicStylesCover: Record<MusicStyleId, string>;
|
|
19
19
|
export type MusicStyleType = MusicStyleId | string;
|
|
20
20
|
export declare const musicStyleByCountry: Record<LanguagesTypes, MusicStyleId[]>;
|
|
@@ -22,17 +22,17 @@ var MusicStyleId;
|
|
|
22
22
|
MusicStyleId["Batucada"] = "batucada";
|
|
23
23
|
})(MusicStyleId = exports.MusicStyleId || (exports.MusicStyleId = {}));
|
|
24
24
|
exports.musicStylesIcon = {
|
|
25
|
-
[MusicStyleId.Orchestra]: instruments_1.
|
|
26
|
-
[MusicStyleId.Band]: instruments_1.
|
|
27
|
-
[MusicStyleId.MarchingBand]: instruments_1.
|
|
28
|
-
[MusicStyleId.BigBand]: instruments_1.
|
|
29
|
-
[MusicStyleId.JazzBand]: instruments_1.
|
|
30
|
-
[MusicStyleId.Colla]: instruments_1.
|
|
31
|
-
[MusicStyleId.TxistularisBand]: instruments_1.
|
|
32
|
-
[MusicStyleId.BandaCornetasYTambores]: instruments_1.
|
|
33
|
-
[MusicStyleId.Charanga]: instruments_1.
|
|
34
|
-
[MusicStyleId.Choir]: instruments_1.
|
|
35
|
-
[MusicStyleId.Batucada]: instruments_1.
|
|
25
|
+
[MusicStyleId.Orchestra]: instruments_1.DefaultInstrumentId.Violin,
|
|
26
|
+
[MusicStyleId.Band]: instruments_1.DefaultInstrumentId.Clarinet,
|
|
27
|
+
[MusicStyleId.MarchingBand]: instruments_1.DefaultInstrumentId.MarchingToms,
|
|
28
|
+
[MusicStyleId.BigBand]: instruments_1.DefaultInstrumentId.Trombone,
|
|
29
|
+
[MusicStyleId.JazzBand]: instruments_1.DefaultInstrumentId.SaxTenor,
|
|
30
|
+
[MusicStyleId.Colla]: instruments_1.DefaultInstrumentId.Dulzaina,
|
|
31
|
+
[MusicStyleId.TxistularisBand]: instruments_1.DefaultInstrumentId.Txistu,
|
|
32
|
+
[MusicStyleId.BandaCornetasYTambores]: instruments_1.DefaultInstrumentId.Cornet,
|
|
33
|
+
[MusicStyleId.Charanga]: instruments_1.DefaultInstrumentId.BassDrum,
|
|
34
|
+
[MusicStyleId.Choir]: instruments_1.DefaultInstrumentId.Tenor,
|
|
35
|
+
[MusicStyleId.Batucada]: instruments_1.DefaultInstrumentId.Repique,
|
|
36
36
|
};
|
|
37
37
|
exports.MusicStylesCover = {
|
|
38
38
|
[MusicStyleId.Orchestra]: 'orquestra',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DefaultInstrumentId } from '../instruments';
|
|
2
2
|
import { MusicStyleType } from './index';
|
|
3
|
-
export declare const orders: Record<MusicStyleType,
|
|
4
|
-
export declare const getInstrumentsOrderByMusicStyle: (musicStyle: MusicStyleType) =>
|
|
3
|
+
export declare const orders: Record<MusicStyleType, DefaultInstrumentId[]>;
|
|
4
|
+
export declare const getInstrumentsOrderByMusicStyle: (musicStyle: MusicStyleType) => DefaultInstrumentId[];
|
|
5
5
|
export declare const orderByMusicStyle: <T>(list: T[], field: keyof T, musicStyle: MusicStyleType) => T[];
|