@glissandoo/lib 1.53.7 → 1.53.8
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 +14 -1
- package/helpers/errors.js +2 -0
- package/helpers/fileSections/index.js +1 -1
- package/helpers/firestore.d.ts +11 -0
- package/helpers/firestore.js +196 -0
- 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 +30 -0
- package/package.json +1 -1
|
@@ -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[];
|