@glissandoo/lib 1.4.3 → 1.4.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/group.d.ts +1 -0
- package/helpers/instruments/index.js +1 -6
- package/helpers/plans.js +1 -1
- package/lang/ca.json +4 -0
- package/lang/de.json +4 -0
- package/lang/en.json +2 -2
- package/lang/es.json +4 -0
- package/lang/gl.json +4 -0
- package/lang/index.d.ts +18 -2
- package/models/Group/index.d.ts +1 -0
- package/models/Group/index.js +3 -0
- package/models/Group/types.d.ts +1 -0
- package/package.json +1 -1
package/functions/group.d.ts
CHANGED
|
@@ -152,12 +152,7 @@ exports.InstrumentIcons = {
|
|
|
152
152
|
[InstrumentId.Viola]: 'violin',
|
|
153
153
|
[InstrumentId.Violin]: 'violin',
|
|
154
154
|
};
|
|
155
|
-
const hideInstruments = [
|
|
156
|
-
InstrumentId.Banjo,
|
|
157
|
-
InstrumentId.Harmonica,
|
|
158
|
-
InstrumentId.DJ,
|
|
159
|
-
InstrumentId.Choir,
|
|
160
|
-
];
|
|
155
|
+
const hideInstruments = [InstrumentId.DJ, InstrumentId.Choir];
|
|
161
156
|
const list = (lang) => Object.values(InstrumentId)
|
|
162
157
|
.filter((id) => !hideInstruments.includes(id))
|
|
163
158
|
.map((key) => new Instrument_1.default(key, lang));
|
package/helpers/plans.js
CHANGED
|
@@ -9,7 +9,7 @@ var PlansGroup;
|
|
|
9
9
|
PlansGroup["Tutti"] = "tutti";
|
|
10
10
|
})(PlansGroup = exports.PlansGroup || (exports.PlansGroup = {}));
|
|
11
11
|
exports.membersPerPlan = {
|
|
12
|
-
[PlansGroup.Piano]:
|
|
12
|
+
[PlansGroup.Piano]: 20,
|
|
13
13
|
[PlansGroup.Mezzo]: 30,
|
|
14
14
|
[PlansGroup.Forte]: 60,
|
|
15
15
|
[PlansGroup.Tutti]: 1000,
|
package/lang/ca.json
CHANGED
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"instruments.accordion": "Acordió",
|
|
34
34
|
"instruments.altoSaxophone": "Saxofó alt",
|
|
35
35
|
"instruments.bagpipes": "Sac de gemecs",
|
|
36
|
+
"instruments.bandurria": "Bandúrria",
|
|
36
37
|
"instruments.banjo": "Banjo",
|
|
37
38
|
"instruments.baritone": "Baríton",
|
|
38
39
|
"instruments.baritoneSax": "Saxofó baríton",
|
|
@@ -41,6 +42,7 @@
|
|
|
41
42
|
"instruments.bass-drum": "Bombo",
|
|
42
43
|
"instruments.bassClarinet": "Clarinet baix",
|
|
43
44
|
"instruments.bassoon": "Fagot",
|
|
45
|
+
"instruments.cajon": "Caixó",
|
|
44
46
|
"instruments.castanets": "Castanyoles",
|
|
45
47
|
"instruments.cello": "Violoncel",
|
|
46
48
|
"instruments.choir": "Cor",
|
|
@@ -71,7 +73,9 @@
|
|
|
71
73
|
"instruments.lowSaxophone": "Saxofó baix",
|
|
72
74
|
"instruments.lowTrombone": "Trombó baix",
|
|
73
75
|
"instruments.lowTrumpet": "Trompeta baixa",
|
|
76
|
+
"instruments.lute": "Llaüt",
|
|
74
77
|
"instruments.mallets": "Làmines",
|
|
78
|
+
"instruments.mandoline": "Mandolina",
|
|
75
79
|
"instruments.mezzosoproano": "Mezzosoprano",
|
|
76
80
|
"instruments.musicConductor": "Direccció Musical",
|
|
77
81
|
"instruments.oboe": "Oboè",
|
package/lang/de.json
CHANGED
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"instruments.accordion": "Akkordeon",
|
|
34
34
|
"instruments.altoSaxophone": "Altsaxophon",
|
|
35
35
|
"instruments.bagpipes": "Dudelsack",
|
|
36
|
+
"instruments.bandurria": "Bandurria",
|
|
36
37
|
"instruments.banjo": "Banjo",
|
|
37
38
|
"instruments.baritone": "Bariton",
|
|
38
39
|
"instruments.baritoneSax": "Baritonsaxophon",
|
|
@@ -41,6 +42,7 @@
|
|
|
41
42
|
"instruments.bass-drum": "Große Trommel",
|
|
42
43
|
"instruments.bassClarinet": "Bassklarinette",
|
|
43
44
|
"instruments.bassoon": "Fagott",
|
|
45
|
+
"instruments.cajon": "Cajon",
|
|
44
46
|
"instruments.castanets": "Kastagnetten",
|
|
45
47
|
"instruments.cello": "Violoncello",
|
|
46
48
|
"instruments.choir": "Chor",
|
|
@@ -71,7 +73,9 @@
|
|
|
71
73
|
"instruments.lowSaxophone": "Bass-Saxophon",
|
|
72
74
|
"instruments.lowTrombone": "Bassposaune",
|
|
73
75
|
"instruments.lowTrumpet": "Basstrompete",
|
|
76
|
+
"instruments.lute": "Laute",
|
|
74
77
|
"instruments.mallets": "Stabspiel",
|
|
78
|
+
"instruments.mandoline": "Mandoline",
|
|
75
79
|
"instruments.mezzosoproano": "Mezzosopran",
|
|
76
80
|
"instruments.musicConductor": "Dirigent",
|
|
77
81
|
"instruments.oboe": "Oboe",
|
package/lang/en.json
CHANGED
|
@@ -69,13 +69,13 @@
|
|
|
69
69
|
"instruments.highTrombone": "Alto Trombone",
|
|
70
70
|
"instruments.keyboard": "Keyboard",
|
|
71
71
|
"instruments.littleClarinet": "Piccolo Clarinet",
|
|
72
|
-
"instruments.lute": "Lute",
|
|
73
72
|
"instruments.low-flute": "Bass Flute",
|
|
74
73
|
"instruments.lowSaxophone": "Bass Saxophone",
|
|
75
74
|
"instruments.lowTrombone": "Bass Trombone",
|
|
76
75
|
"instruments.lowTrumpet": "Bass Trumpet",
|
|
77
|
-
"instruments.
|
|
76
|
+
"instruments.lute": "Lute",
|
|
78
77
|
"instruments.mallets": "Mallets",
|
|
78
|
+
"instruments.mandoline": "Mandoline",
|
|
79
79
|
"instruments.mezzosoproano": "Mezzosoprano",
|
|
80
80
|
"instruments.musicConductor": "Conductor",
|
|
81
81
|
"instruments.oboe": "Oboe",
|
package/lang/es.json
CHANGED
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"instruments.accordion": "Acordeón",
|
|
34
34
|
"instruments.altoSaxophone": "Saxofón alto",
|
|
35
35
|
"instruments.bagpipes": "Gaita",
|
|
36
|
+
"instruments.bandurria": "Bandurria",
|
|
36
37
|
"instruments.banjo": "Banjo",
|
|
37
38
|
"instruments.baritone": "Baritono",
|
|
38
39
|
"instruments.baritoneSax": "Saxofón barítono",
|
|
@@ -41,6 +42,7 @@
|
|
|
41
42
|
"instruments.bass-drum": "Bombo",
|
|
42
43
|
"instruments.bassClarinet": "Clarinete bajo",
|
|
43
44
|
"instruments.bassoon": "Fagot",
|
|
45
|
+
"instruments.cajon": "Cajón",
|
|
44
46
|
"instruments.castanets": "Castañuelas",
|
|
45
47
|
"instruments.cello": "Violonchelo",
|
|
46
48
|
"instruments.choir": "Coro",
|
|
@@ -71,7 +73,9 @@
|
|
|
71
73
|
"instruments.lowSaxophone": "Saxofón bajo",
|
|
72
74
|
"instruments.lowTrombone": "Trombón bajo",
|
|
73
75
|
"instruments.lowTrumpet": "Trompeta baja",
|
|
76
|
+
"instruments.lute": "Laúd",
|
|
74
77
|
"instruments.mallets": "Láminas",
|
|
78
|
+
"instruments.mandoline": "Mandolina",
|
|
75
79
|
"instruments.mezzosoproano": "Mezzosoprano",
|
|
76
80
|
"instruments.musicConductor": "Dirección musical",
|
|
77
81
|
"instruments.oboe": "Oboe",
|
package/lang/gl.json
CHANGED
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"instruments.accordion": "Acordeón",
|
|
34
34
|
"instruments.altoSaxophone": "Saxofón alto",
|
|
35
35
|
"instruments.bagpipes": "Gaita",
|
|
36
|
+
"instruments.bandurria": "Bandurria",
|
|
36
37
|
"instruments.banjo": "Banjo",
|
|
37
38
|
"instruments.baritone": "Baritono",
|
|
38
39
|
"instruments.baritoneSax": "Saxofón barítono",
|
|
@@ -41,6 +42,7 @@
|
|
|
41
42
|
"instruments.bass-drum": "Bombo",
|
|
42
43
|
"instruments.bassClarinet": "Clarinete baixo",
|
|
43
44
|
"instruments.bassoon": "Fagot",
|
|
45
|
+
"instruments.cajon": "Caixón",
|
|
44
46
|
"instruments.castanets": "Castañuelas",
|
|
45
47
|
"instruments.cello": "Violonchelo",
|
|
46
48
|
"instruments.choir": "Coro",
|
|
@@ -71,7 +73,9 @@
|
|
|
71
73
|
"instruments.lowSaxophone": "Saxofón bajo",
|
|
72
74
|
"instruments.lowTrombone": "Trombón baixo",
|
|
73
75
|
"instruments.lowTrumpet": "Trompeta baixa",
|
|
76
|
+
"instruments.lute": "Laúde",
|
|
74
77
|
"instruments.mallets": "Láminas",
|
|
78
|
+
"instruments.mandoline": "Mandolina",
|
|
75
79
|
"instruments.mezzosoproano": "Mezzosoprano",
|
|
76
80
|
"instruments.musicConductor": "Dirección musical",
|
|
77
81
|
"instruments.oboe": "Oboe",
|
package/lang/index.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ declare const languageProvider: {
|
|
|
43
43
|
"instruments.accordion": string;
|
|
44
44
|
"instruments.altoSaxophone": string;
|
|
45
45
|
"instruments.bagpipes": string;
|
|
46
|
+
"instruments.bandurria": string;
|
|
46
47
|
"instruments.banjo": string;
|
|
47
48
|
"instruments.baritone": string;
|
|
48
49
|
"instruments.baritoneSax": string;
|
|
@@ -51,6 +52,7 @@ declare const languageProvider: {
|
|
|
51
52
|
"instruments.bass-drum": string;
|
|
52
53
|
"instruments.bassClarinet": string;
|
|
53
54
|
"instruments.bassoon": string;
|
|
55
|
+
"instruments.cajon": string;
|
|
54
56
|
"instruments.castanets": string;
|
|
55
57
|
"instruments.cello": string;
|
|
56
58
|
"instruments.choir": string;
|
|
@@ -81,7 +83,9 @@ declare const languageProvider: {
|
|
|
81
83
|
"instruments.lowSaxophone": string;
|
|
82
84
|
"instruments.lowTrombone": string;
|
|
83
85
|
"instruments.lowTrumpet": string;
|
|
86
|
+
"instruments.lute": string;
|
|
84
87
|
"instruments.mallets": string;
|
|
88
|
+
"instruments.mandoline": string;
|
|
85
89
|
"instruments.mezzosoproano": string;
|
|
86
90
|
"instruments.musicConductor": string;
|
|
87
91
|
"instruments.oboe": string;
|
|
@@ -298,13 +302,13 @@ declare const languageProvider: {
|
|
|
298
302
|
"instruments.highTrombone": string;
|
|
299
303
|
"instruments.keyboard": string;
|
|
300
304
|
"instruments.littleClarinet": string;
|
|
301
|
-
"instruments.lute": string;
|
|
302
305
|
"instruments.low-flute": string;
|
|
303
306
|
"instruments.lowSaxophone": string;
|
|
304
307
|
"instruments.lowTrombone": string;
|
|
305
308
|
"instruments.lowTrumpet": string;
|
|
306
|
-
"instruments.
|
|
309
|
+
"instruments.lute": string;
|
|
307
310
|
"instruments.mallets": string;
|
|
311
|
+
"instruments.mandoline": string;
|
|
308
312
|
"instruments.mezzosoproano": string;
|
|
309
313
|
"instruments.musicConductor": string;
|
|
310
314
|
"instruments.oboe": string;
|
|
@@ -485,6 +489,7 @@ declare const languageProvider: {
|
|
|
485
489
|
"instruments.accordion": string;
|
|
486
490
|
"instruments.altoSaxophone": string;
|
|
487
491
|
"instruments.bagpipes": string;
|
|
492
|
+
"instruments.bandurria": string;
|
|
488
493
|
"instruments.banjo": string;
|
|
489
494
|
"instruments.baritone": string;
|
|
490
495
|
"instruments.baritoneSax": string;
|
|
@@ -493,6 +498,7 @@ declare const languageProvider: {
|
|
|
493
498
|
"instruments.bass-drum": string;
|
|
494
499
|
"instruments.bassClarinet": string;
|
|
495
500
|
"instruments.bassoon": string;
|
|
501
|
+
"instruments.cajon": string;
|
|
496
502
|
"instruments.castanets": string;
|
|
497
503
|
"instruments.cello": string;
|
|
498
504
|
"instruments.choir": string;
|
|
@@ -523,7 +529,9 @@ declare const languageProvider: {
|
|
|
523
529
|
"instruments.lowSaxophone": string;
|
|
524
530
|
"instruments.lowTrombone": string;
|
|
525
531
|
"instruments.lowTrumpet": string;
|
|
532
|
+
"instruments.lute": string;
|
|
526
533
|
"instruments.mallets": string;
|
|
534
|
+
"instruments.mandoline": string;
|
|
527
535
|
"instruments.mezzosoproano": string;
|
|
528
536
|
"instruments.musicConductor": string;
|
|
529
537
|
"instruments.oboe": string;
|
|
@@ -704,6 +712,7 @@ declare const languageProvider: {
|
|
|
704
712
|
"instruments.accordion": string;
|
|
705
713
|
"instruments.altoSaxophone": string;
|
|
706
714
|
"instruments.bagpipes": string;
|
|
715
|
+
"instruments.bandurria": string;
|
|
707
716
|
"instruments.banjo": string;
|
|
708
717
|
"instruments.baritone": string;
|
|
709
718
|
"instruments.baritoneSax": string;
|
|
@@ -712,6 +721,7 @@ declare const languageProvider: {
|
|
|
712
721
|
"instruments.bass-drum": string;
|
|
713
722
|
"instruments.bassClarinet": string;
|
|
714
723
|
"instruments.bassoon": string;
|
|
724
|
+
"instruments.cajon": string;
|
|
715
725
|
"instruments.castanets": string;
|
|
716
726
|
"instruments.cello": string;
|
|
717
727
|
"instruments.choir": string;
|
|
@@ -742,7 +752,9 @@ declare const languageProvider: {
|
|
|
742
752
|
"instruments.lowSaxophone": string;
|
|
743
753
|
"instruments.lowTrombone": string;
|
|
744
754
|
"instruments.lowTrumpet": string;
|
|
755
|
+
"instruments.lute": string;
|
|
745
756
|
"instruments.mallets": string;
|
|
757
|
+
"instruments.mandoline": string;
|
|
746
758
|
"instruments.mezzosoproano": string;
|
|
747
759
|
"instruments.musicConductor": string;
|
|
748
760
|
"instruments.oboe": string;
|
|
@@ -923,6 +935,7 @@ declare const languageProvider: {
|
|
|
923
935
|
"instruments.accordion": string;
|
|
924
936
|
"instruments.altoSaxophone": string;
|
|
925
937
|
"instruments.bagpipes": string;
|
|
938
|
+
"instruments.bandurria": string;
|
|
926
939
|
"instruments.banjo": string;
|
|
927
940
|
"instruments.baritone": string;
|
|
928
941
|
"instruments.baritoneSax": string;
|
|
@@ -931,6 +944,7 @@ declare const languageProvider: {
|
|
|
931
944
|
"instruments.bass-drum": string;
|
|
932
945
|
"instruments.bassClarinet": string;
|
|
933
946
|
"instruments.bassoon": string;
|
|
947
|
+
"instruments.cajon": string;
|
|
934
948
|
"instruments.castanets": string;
|
|
935
949
|
"instruments.cello": string;
|
|
936
950
|
"instruments.choir": string;
|
|
@@ -961,7 +975,9 @@ declare const languageProvider: {
|
|
|
961
975
|
"instruments.lowSaxophone": string;
|
|
962
976
|
"instruments.lowTrombone": string;
|
|
963
977
|
"instruments.lowTrumpet": string;
|
|
978
|
+
"instruments.lute": string;
|
|
964
979
|
"instruments.mallets": string;
|
|
980
|
+
"instruments.mandoline": string;
|
|
965
981
|
"instruments.mezzosoproano": string;
|
|
966
982
|
"instruments.musicConductor": string;
|
|
967
983
|
"instruments.oboe": string;
|
package/models/Group/index.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export default class Group extends GroupBasic<GroupData> {
|
|
|
44
44
|
current: number;
|
|
45
45
|
last: number;
|
|
46
46
|
};
|
|
47
|
+
get metadata(): Record<string, string>;
|
|
47
48
|
getPlayer: (userId: string) => import("../Player/types").PlayerBasicData | null;
|
|
48
49
|
isAdmin: (userId: string) => boolean;
|
|
49
50
|
isPlayer: (userId: string) => boolean;
|
package/models/Group/index.js
CHANGED
|
@@ -134,6 +134,9 @@ class Group extends basic_1.default {
|
|
|
134
134
|
get satisfactionIndex() {
|
|
135
135
|
return this.data.satisfactionIndex || { current: 0, last: 0 };
|
|
136
136
|
}
|
|
137
|
+
get metadata() {
|
|
138
|
+
return this.data.metadata || {};
|
|
139
|
+
}
|
|
137
140
|
get isExpiredTrial() {
|
|
138
141
|
const isOutDateTrial = date_fns_1.isBefore(this.createdAt.toDate(), date_fns_1.subMonths(new Date(), 1));
|
|
139
142
|
const members = this.activePlayers.length;
|
package/models/Group/types.d.ts
CHANGED