@glissandoo/lib 1.61.0 → 1.61.1
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/auth.js +2 -1
- package/functions/communication.js +2 -1
- package/functions/communicationComment.js +2 -1
- package/functions/customer.js +2 -1
- package/functions/customerGroup.js +2 -1
- package/functions/event.js +5 -2
- package/functions/eventPlayer.js +5 -2
- package/functions/eventRepertory.js +2 -1
- package/functions/federation.js +2 -1
- package/functions/federationPartnership.js +2 -1
- package/functions/group.js +2 -1
- package/functions/groupPlayer.js +2 -1
- package/functions/groupRepertory.js +2 -1
- package/functions/index.js +5 -2
- package/functions/jwt.js +2 -1
- package/functions/misc.js +2 -1
- package/functions/notification.js +2 -1
- package/functions/partner.js +2 -1
- package/functions/partnership.js +2 -1
- package/functions/partnershipGroup.js +2 -1
- package/functions/partnershipPlan.js +2 -1
- package/functions/regions.js +128 -124
- package/functions/subscription.js +2 -1
- package/functions/user.js +2 -1
- package/helpers/appScenes.js +5 -2
- package/helpers/audios.js +9 -5
- package/helpers/auth.js +9 -5
- package/helpers/badges.js +19 -10
- package/helpers/collections.js +5 -2
- package/helpers/countries.js +4 -1
- package/helpers/dlinks.js +5 -2
- package/helpers/errors.js +5 -2
- package/helpers/fileSections/index.js +8 -5
- package/helpers/fileSections/orders.js +16 -11
- package/helpers/glissandooAdmin.js +6 -2
- package/helpers/instruments/index.js +6 -3
- package/helpers/instruments/lists.js +19 -11
- package/helpers/musicStyles/index.js +36 -29
- package/helpers/musicStyles/orders.js +179 -174
- package/helpers/notifications/index.js +122 -119
- package/helpers/notifications/placeholders.js +26 -18
- package/helpers/objects.js +23 -15
- package/helpers/payments.js +8 -5
- package/helpers/plans.js +9 -6
- package/helpers/rates.js +6 -2
- package/helpers/reasons.js +21 -17
- package/helpers/slate.js +12 -5
- package/helpers/styles.js +4 -1
- package/helpers/ts-extras/array-includes.js +5 -1
- package/helpers/ts-extras/as-mutable.js +5 -1
- package/helpers/ts-extras/assert-error.js +5 -1
- package/helpers/ts-extras/index.js +33 -15
- package/helpers/ts-extras/is-defined.js +5 -1
- package/helpers/ts-extras/is-empty.js +5 -1
- package/helpers/ts-extras/is-finite.js +4 -1
- package/helpers/ts-extras/is-infinite.js +5 -1
- package/helpers/ts-extras/is-integer.js +4 -1
- package/helpers/ts-extras/is-present.js +5 -1
- package/helpers/ts-extras/is-safe-integer.js +4 -1
- package/helpers/ts-extras/object-entries.js +4 -1
- package/helpers/ts-extras/object-from-entries.js +4 -1
- package/helpers/ts-extras/object-has-own.js +5 -1
- package/helpers/ts-extras/object-keys.js +4 -1
- package/helpers/ts-extras/set-has.js +5 -1
- package/helpers/types.js +5 -2
- package/helpers/utils.d.ts +1 -0
- package/helpers/utils.js +23 -8
- package/lang/index.js +51 -42
- package/models/Communication/Comment/index.js +12 -5
- package/models/Communication/Comment/types.js +2 -1
- package/models/Communication/index.js +21 -15
- package/models/Communication/types.js +7 -4
- package/models/Counters/Group/Analytics/index.js +12 -5
- package/models/Counters/Group/Analytics/types.js +5 -2
- package/models/Counters/Group/index.js +8 -2
- package/models/Counters/Group/types.js +2 -1
- package/models/Counters/event.js +8 -2
- package/models/Counters/index.js +8 -2
- package/models/Counters/types.js +2 -1
- package/models/Customer/Group/index.js +14 -7
- package/models/Customer/Group/types.js +2 -1
- package/models/Customer/basic.js +10 -4
- package/models/Customer/index.js +11 -5
- package/models/Customer/types.js +5 -2
- package/models/Evento/Player/basic.js +11 -10
- package/models/Evento/Player/index.js +19 -12
- package/models/Evento/Player/types.js +7 -4
- package/models/Evento/Repertory/index.js +10 -3
- package/models/Evento/Repertory/types.js +2 -1
- package/models/Evento/basic.js +18 -12
- package/models/Evento/index.js +38 -32
- package/models/Evento/promoter.js +8 -2
- package/models/Evento/tiny.js +9 -9
- package/models/Evento/types.js +17 -14
- package/models/Federation/Partnership/index.js +10 -3
- package/models/Federation/Partnership/types.js +2 -1
- package/models/Federation/index.js +13 -7
- package/models/Federation/types.js +2 -1
- package/models/Group/Analytics/index.js +12 -5
- package/models/Group/Analytics/types.js +5 -2
- package/models/Group/Event/index.js +12 -6
- package/models/Group/Event/types.js +2 -1
- package/models/Group/Player/Event/index.js +18 -11
- package/models/Group/Player/Event/types.js +2 -1
- package/models/Group/Player/Log/index.js +8 -2
- package/models/Group/Player/Log/types.js +2 -1
- package/models/Group/Player/index.js +25 -18
- package/models/Group/Player/types.js +5 -2
- package/models/Group/Repertory/File/Section/index.js +16 -12
- package/models/Group/Repertory/File/Section/types.js +5 -2
- package/models/Group/Repertory/File/index.js +12 -11
- package/models/Group/Repertory/File/types.js +2 -1
- package/models/Group/Repertory/FilePath/index.js +15 -12
- package/models/Group/Repertory/index.js +32 -25
- package/models/Group/Repertory/types.js +5 -2
- package/models/Group/StageTemplate/index.js +8 -2
- package/models/Group/StageTemplate/types.js +2 -1
- package/models/Group/basic.js +11 -5
- package/models/Group/index.js +47 -41
- package/models/Group/types.js +17 -14
- package/models/Instrument/group.js +11 -6
- package/models/Instrument/index.js +9 -8
- package/models/Metrics/index.js +16 -10
- package/models/Metrics/types.js +2 -1
- package/models/Model/index.js +6 -7
- package/models/Model/lang.js +10 -5
- package/models/MusicStyle/index.js +10 -9
- package/models/Notification/index.js +8 -2
- package/models/Notification/types.js +5 -2
- package/models/Partner/basic.js +12 -6
- package/models/Partner/index.js +10 -4
- package/models/Partner/tiny.js +8 -2
- package/models/Partner/types.js +5 -2
- package/models/Partnership/Group/index.js +12 -5
- package/models/Partnership/Group/types.js +2 -1
- package/models/Partnership/Partner/Subscription/index.js +15 -8
- package/models/Partnership/Partner/Subscription/types.js +5 -2
- package/models/Partnership/Partner/index.js +10 -3
- package/models/Partnership/Partner/types.js +2 -1
- package/models/Partnership/Payment/index.js +8 -2
- package/models/Partnership/Payment/types.js +2 -1
- package/models/Partnership/Plan/basic.js +18 -12
- package/models/Partnership/Plan/index.js +10 -3
- package/models/Partnership/Plan/types.js +5 -2
- package/models/Partnership/basic.js +10 -4
- package/models/Partnership/index.js +11 -5
- package/models/Partnership/types.js +7 -4
- package/models/Payment/basic.js +13 -7
- package/models/Payment/index.js +8 -2
- package/models/Payment/types.js +7 -4
- package/models/Player/basic.js +10 -4
- package/models/Player/types.js +2 -1
- package/models/Repertory/basic.js +8 -2
- package/models/Repertory/types.js +2 -1
- package/models/User/Group/index.js +15 -8
- package/models/User/Group/types.js +2 -1
- package/models/User/Notification/index.d.ts +1 -1
- package/models/User/Notification/index.js +21 -16
- package/models/User/Notification/types.js +2 -1
- package/models/User/basic.js +10 -4
- package/models/User/index.js +24 -18
- package/models/User/types.js +15 -12
- package/models/WebhookEvent/index.js +8 -2
- package/models/WebhookEvent/types.js +5 -2
- package/package.json +1 -1
- package/types/firestore.js +5 -2
- package/types/messagebirdChatWidget.js +2 -1
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.orderByMusicStyle = exports.getOrderByMusicStyle = exports.orders = void 0;
|
|
4
|
+
const types_1 = require("../../models/Group/Repertory/File/Section/types");
|
|
5
|
+
const fileSections_1 = require("../fileSections");
|
|
6
|
+
const orders_1 = require("../musicStyles/orders");
|
|
7
|
+
const utils_1 = require("../utils");
|
|
8
|
+
exports.orders = Object.fromEntries(Object.entries(orders_1.orders).map(([musicStyle, instruments]) => [
|
|
6
9
|
musicStyle,
|
|
7
|
-
[FileSectionIdReserved.All, ...instruments],
|
|
10
|
+
[types_1.FileSectionIdReserved.All, ...instruments],
|
|
8
11
|
]));
|
|
9
|
-
|
|
10
|
-
return musicStyle in orders ? orders[musicStyle] : fileSectionIdList;
|
|
12
|
+
const getOrderByMusicStyle = (musicStyle) => {
|
|
13
|
+
return musicStyle in exports.orders ? exports.orders[musicStyle] : fileSections_1.fileSectionIdList;
|
|
11
14
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
exports.getOrderByMusicStyle = getOrderByMusicStyle;
|
|
16
|
+
const orderByMusicStyle = (list, field, musicStyle) => {
|
|
17
|
+
const order = (0, exports.getOrderByMusicStyle)(musicStyle);
|
|
18
|
+
return (0, utils_1.sortByMatch)(list, field, order);
|
|
15
19
|
};
|
|
20
|
+
exports.orderByMusicStyle = orderByMusicStyle;
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getGlissandooAdminEntityURL = exports.GLISSANDOO_ADMIN_URL = void 0;
|
|
4
|
+
exports.GLISSANDOO_ADMIN_URL = 'https://admin.glissandoo.com/';
|
|
5
|
+
const getGlissandooAdminEntityURL = (entity, id) => new URL(`/${entity}s/${id}`, exports.GLISSANDOO_ADMIN_URL).href;
|
|
6
|
+
exports.getGlissandooAdminEntityURL = getGlissandooAdminEntityURL;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InstrumentIcons = exports.DefaultInstrumentId = void 0;
|
|
4
|
+
var DefaultInstrumentId;
|
|
2
5
|
(function (DefaultInstrumentId) {
|
|
3
6
|
DefaultInstrumentId["Accordion"] = "accordion";
|
|
4
7
|
DefaultInstrumentId["Agogo"] = "agogo";
|
|
@@ -88,8 +91,8 @@ export var DefaultInstrumentId;
|
|
|
88
91
|
DefaultInstrumentId["Ukelele"] = "ukelele";
|
|
89
92
|
DefaultInstrumentId["Viola"] = "viola";
|
|
90
93
|
DefaultInstrumentId["Violin"] = "violin";
|
|
91
|
-
})(DefaultInstrumentId || (DefaultInstrumentId = {}));
|
|
92
|
-
|
|
94
|
+
})(DefaultInstrumentId = exports.DefaultInstrumentId || (exports.DefaultInstrumentId = {}));
|
|
95
|
+
exports.InstrumentIcons = {
|
|
93
96
|
[DefaultInstrumentId.Accordion]: 'accordion',
|
|
94
97
|
[DefaultInstrumentId.Agogo]: 'agogo',
|
|
95
98
|
[DefaultInstrumentId.Auxiliar]: 'auxiliar',
|
|
@@ -1,13 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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)
|
|
7
13
|
.filter((id) => !hideInstruments.includes(id))
|
|
8
|
-
.map((id) => new
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
|
|
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));
|
|
13
20
|
};
|
|
21
|
+
exports.listWithCustom = listWithCustom;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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.list = exports.musicStyleByCountry = exports.MusicStylesCover = exports.musicStylesIcon = exports.MusicStyleId = void 0;
|
|
7
|
+
const lang_1 = require("../../lang");
|
|
8
|
+
const MusicStyle_1 = __importDefault(require("../../models/MusicStyle"));
|
|
9
|
+
const instruments_1 = require("../instruments");
|
|
10
|
+
var MusicStyleId;
|
|
5
11
|
(function (MusicStyleId) {
|
|
6
12
|
MusicStyleId["Orchestra"] = "orquesta-sinfonica";
|
|
7
13
|
MusicStyleId["Band"] = "banda-de-musica";
|
|
@@ -14,21 +20,21 @@ export var MusicStyleId;
|
|
|
14
20
|
MusicStyleId["Charanga"] = "charanga";
|
|
15
21
|
MusicStyleId["Choir"] = "coro";
|
|
16
22
|
MusicStyleId["Batucada"] = "batucada";
|
|
17
|
-
})(MusicStyleId || (MusicStyleId = {}));
|
|
18
|
-
|
|
19
|
-
[MusicStyleId.Orchestra]: DefaultInstrumentId.Violin,
|
|
20
|
-
[MusicStyleId.Band]: DefaultInstrumentId.Clarinet,
|
|
21
|
-
[MusicStyleId.MarchingBand]: DefaultInstrumentId.MarchingToms,
|
|
22
|
-
[MusicStyleId.BigBand]: DefaultInstrumentId.Trombone,
|
|
23
|
-
[MusicStyleId.JazzBand]: DefaultInstrumentId.SaxTenor,
|
|
24
|
-
[MusicStyleId.Colla]: DefaultInstrumentId.Dulzaina,
|
|
25
|
-
[MusicStyleId.TxistularisBand]: DefaultInstrumentId.Txistu,
|
|
26
|
-
[MusicStyleId.BandaCornetasYTambores]: DefaultInstrumentId.Cornet,
|
|
27
|
-
[MusicStyleId.Charanga]: DefaultInstrumentId.BassDrum,
|
|
28
|
-
[MusicStyleId.Choir]: DefaultInstrumentId.Tenor,
|
|
29
|
-
[MusicStyleId.Batucada]: DefaultInstrumentId.Repique,
|
|
23
|
+
})(MusicStyleId = exports.MusicStyleId || (exports.MusicStyleId = {}));
|
|
24
|
+
exports.musicStylesIcon = {
|
|
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,
|
|
30
36
|
};
|
|
31
|
-
|
|
37
|
+
exports.MusicStylesCover = {
|
|
32
38
|
[MusicStyleId.Orchestra]: 'orquestra',
|
|
33
39
|
[MusicStyleId.Band]: 'bandaDeMusica',
|
|
34
40
|
[MusicStyleId.MarchingBand]: 'marchingBand',
|
|
@@ -41,8 +47,8 @@ export const MusicStylesCover = {
|
|
|
41
47
|
[MusicStyleId.Choir]: 'choir',
|
|
42
48
|
[MusicStyleId.Batucada]: 'batucada',
|
|
43
49
|
};
|
|
44
|
-
|
|
45
|
-
[LanguagesTypes.EN]: [
|
|
50
|
+
exports.musicStyleByCountry = {
|
|
51
|
+
[lang_1.LanguagesTypes.EN]: [
|
|
46
52
|
MusicStyleId.Orchestra,
|
|
47
53
|
MusicStyleId.MarchingBand,
|
|
48
54
|
MusicStyleId.Band,
|
|
@@ -51,7 +57,7 @@ export const musicStyleByCountry = {
|
|
|
51
57
|
MusicStyleId.Choir,
|
|
52
58
|
MusicStyleId.Batucada,
|
|
53
59
|
],
|
|
54
|
-
[LanguagesTypes.DE]: [
|
|
60
|
+
[lang_1.LanguagesTypes.DE]: [
|
|
55
61
|
MusicStyleId.Orchestra,
|
|
56
62
|
MusicStyleId.MarchingBand,
|
|
57
63
|
MusicStyleId.Band,
|
|
@@ -60,7 +66,7 @@ export const musicStyleByCountry = {
|
|
|
60
66
|
MusicStyleId.Choir,
|
|
61
67
|
MusicStyleId.Batucada,
|
|
62
68
|
],
|
|
63
|
-
[LanguagesTypes.ES]: [
|
|
69
|
+
[lang_1.LanguagesTypes.ES]: [
|
|
64
70
|
MusicStyleId.Orchestra,
|
|
65
71
|
MusicStyleId.Band,
|
|
66
72
|
MusicStyleId.BigBand,
|
|
@@ -72,7 +78,7 @@ export const musicStyleByCountry = {
|
|
|
72
78
|
MusicStyleId.Choir,
|
|
73
79
|
MusicStyleId.Batucada,
|
|
74
80
|
],
|
|
75
|
-
[LanguagesTypes.EU]: [
|
|
81
|
+
[lang_1.LanguagesTypes.EU]: [
|
|
76
82
|
MusicStyleId.Choir,
|
|
77
83
|
MusicStyleId.Orchestra,
|
|
78
84
|
MusicStyleId.TxistularisBand,
|
|
@@ -82,7 +88,7 @@ export const musicStyleByCountry = {
|
|
|
82
88
|
MusicStyleId.JazzBand,
|
|
83
89
|
MusicStyleId.Batucada,
|
|
84
90
|
],
|
|
85
|
-
[LanguagesTypes.GL]: [
|
|
91
|
+
[lang_1.LanguagesTypes.GL]: [
|
|
86
92
|
MusicStyleId.Orchestra,
|
|
87
93
|
MusicStyleId.Band,
|
|
88
94
|
MusicStyleId.BigBand,
|
|
@@ -93,7 +99,7 @@ export const musicStyleByCountry = {
|
|
|
93
99
|
MusicStyleId.Choir,
|
|
94
100
|
MusicStyleId.Batucada,
|
|
95
101
|
],
|
|
96
|
-
[LanguagesTypes.CA]: [
|
|
102
|
+
[lang_1.LanguagesTypes.CA]: [
|
|
97
103
|
MusicStyleId.Orchestra,
|
|
98
104
|
MusicStyleId.Band,
|
|
99
105
|
MusicStyleId.BigBand,
|
|
@@ -104,7 +110,7 @@ export const musicStyleByCountry = {
|
|
|
104
110
|
MusicStyleId.Choir,
|
|
105
111
|
MusicStyleId.Batucada,
|
|
106
112
|
],
|
|
107
|
-
[LanguagesTypes.PT]: [
|
|
113
|
+
[lang_1.LanguagesTypes.PT]: [
|
|
108
114
|
MusicStyleId.Orchestra,
|
|
109
115
|
MusicStyleId.Band,
|
|
110
116
|
MusicStyleId.BigBand,
|
|
@@ -113,7 +119,8 @@ export const musicStyleByCountry = {
|
|
|
113
119
|
MusicStyleId.Batucada,
|
|
114
120
|
],
|
|
115
121
|
};
|
|
116
|
-
|
|
117
|
-
const musicStyles = filteredByCountry ? musicStyleByCountry[lang] : Object.values(MusicStyleId);
|
|
118
|
-
return musicStyles.map((key) => new
|
|
122
|
+
const list = (lang, filteredByCountry = false) => {
|
|
123
|
+
const musicStyles = filteredByCountry ? exports.musicStyleByCountry[lang] : Object.values(MusicStyleId);
|
|
124
|
+
return musicStyles.map((key) => new MusicStyle_1.default(key, lang));
|
|
119
125
|
};
|
|
126
|
+
exports.list = list;
|
|
@@ -1,188 +1,193 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
DefaultInstrumentId.
|
|
10
|
-
DefaultInstrumentId.
|
|
11
|
-
DefaultInstrumentId.
|
|
12
|
-
DefaultInstrumentId.
|
|
13
|
-
DefaultInstrumentId.
|
|
14
|
-
DefaultInstrumentId.
|
|
15
|
-
DefaultInstrumentId.
|
|
16
|
-
DefaultInstrumentId.
|
|
17
|
-
DefaultInstrumentId.
|
|
18
|
-
DefaultInstrumentId.
|
|
19
|
-
DefaultInstrumentId.
|
|
20
|
-
DefaultInstrumentId.
|
|
21
|
-
DefaultInstrumentId.
|
|
22
|
-
DefaultInstrumentId.
|
|
23
|
-
DefaultInstrumentId.
|
|
24
|
-
DefaultInstrumentId.
|
|
25
|
-
DefaultInstrumentId.
|
|
26
|
-
DefaultInstrumentId.
|
|
27
|
-
DefaultInstrumentId.
|
|
28
|
-
DefaultInstrumentId.
|
|
29
|
-
DefaultInstrumentId.
|
|
30
|
-
DefaultInstrumentId.
|
|
31
|
-
DefaultInstrumentId.
|
|
32
|
-
DefaultInstrumentId.
|
|
33
|
-
DefaultInstrumentId.
|
|
34
|
-
DefaultInstrumentId.
|
|
35
|
-
DefaultInstrumentId.
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.orderByMusicStyle = exports.getInstrumentsOrderByMusicStyle = exports.orders = void 0;
|
|
4
|
+
const instruments_1 = require("../instruments");
|
|
5
|
+
const utils_1 = require("../utils");
|
|
6
|
+
const index_1 = require("./index");
|
|
7
|
+
exports.orders = {
|
|
8
|
+
[index_1.MusicStyleId.Band]: [
|
|
9
|
+
instruments_1.DefaultInstrumentId.MusicConductor,
|
|
10
|
+
instruments_1.DefaultInstrumentId.Piccolo,
|
|
11
|
+
instruments_1.DefaultInstrumentId.Flute,
|
|
12
|
+
instruments_1.DefaultInstrumentId.Oboe,
|
|
13
|
+
instruments_1.DefaultInstrumentId.EnglishHorn,
|
|
14
|
+
instruments_1.DefaultInstrumentId.Bassoon,
|
|
15
|
+
instruments_1.DefaultInstrumentId.BassoonContra,
|
|
16
|
+
instruments_1.DefaultInstrumentId.ClarinetLittle,
|
|
17
|
+
instruments_1.DefaultInstrumentId.Clarinet,
|
|
18
|
+
instruments_1.DefaultInstrumentId.ClarinetBass,
|
|
19
|
+
instruments_1.DefaultInstrumentId.SaxSoprano,
|
|
20
|
+
instruments_1.DefaultInstrumentId.SaxAlto,
|
|
21
|
+
instruments_1.DefaultInstrumentId.SaxTenor,
|
|
22
|
+
instruments_1.DefaultInstrumentId.SaxBaritone,
|
|
23
|
+
instruments_1.DefaultInstrumentId.FrenchHorn,
|
|
24
|
+
instruments_1.DefaultInstrumentId.FlugeHorn,
|
|
25
|
+
instruments_1.DefaultInstrumentId.Trumpet,
|
|
26
|
+
instruments_1.DefaultInstrumentId.Trombone,
|
|
27
|
+
instruments_1.DefaultInstrumentId.TromboneLow,
|
|
28
|
+
instruments_1.DefaultInstrumentId.Euphonium,
|
|
29
|
+
instruments_1.DefaultInstrumentId.Tuba,
|
|
30
|
+
instruments_1.DefaultInstrumentId.Cello,
|
|
31
|
+
instruments_1.DefaultInstrumentId.DoubleBass,
|
|
32
|
+
instruments_1.DefaultInstrumentId.SnareDrum,
|
|
33
|
+
instruments_1.DefaultInstrumentId.Percussion,
|
|
34
|
+
instruments_1.DefaultInstrumentId.BassDrum,
|
|
35
|
+
instruments_1.DefaultInstrumentId.Cymbals,
|
|
36
|
+
instruments_1.DefaultInstrumentId.Timpani,
|
|
37
|
+
instruments_1.DefaultInstrumentId.Mallets,
|
|
38
|
+
instruments_1.DefaultInstrumentId.DrumSet,
|
|
36
39
|
],
|
|
37
|
-
[MusicStyleId.MarchingBand]: [
|
|
38
|
-
DefaultInstrumentId.MusicConductor,
|
|
39
|
-
DefaultInstrumentId.Piccolo,
|
|
40
|
-
DefaultInstrumentId.Flute,
|
|
41
|
-
DefaultInstrumentId.Clarinet,
|
|
42
|
-
DefaultInstrumentId.ClarinetBass,
|
|
43
|
-
DefaultInstrumentId.SaxAlto,
|
|
44
|
-
DefaultInstrumentId.SaxTenor,
|
|
45
|
-
DefaultInstrumentId.SaxBaritone,
|
|
46
|
-
DefaultInstrumentId.Trumpet,
|
|
47
|
-
DefaultInstrumentId.Trombone,
|
|
48
|
-
DefaultInstrumentId.TromboneLow,
|
|
49
|
-
DefaultInstrumentId.Euphonium,
|
|
50
|
-
DefaultInstrumentId.Tuba,
|
|
51
|
-
DefaultInstrumentId.SnareDrum,
|
|
52
|
-
DefaultInstrumentId.MarchingToms,
|
|
53
|
-
DefaultInstrumentId.BassDrum,
|
|
54
|
-
DefaultInstrumentId.Cymbals,
|
|
55
|
-
DefaultInstrumentId.Timpani,
|
|
56
|
-
DefaultInstrumentId.Mallets,
|
|
57
|
-
DefaultInstrumentId.DrumSet,
|
|
40
|
+
[index_1.MusicStyleId.MarchingBand]: [
|
|
41
|
+
instruments_1.DefaultInstrumentId.MusicConductor,
|
|
42
|
+
instruments_1.DefaultInstrumentId.Piccolo,
|
|
43
|
+
instruments_1.DefaultInstrumentId.Flute,
|
|
44
|
+
instruments_1.DefaultInstrumentId.Clarinet,
|
|
45
|
+
instruments_1.DefaultInstrumentId.ClarinetBass,
|
|
46
|
+
instruments_1.DefaultInstrumentId.SaxAlto,
|
|
47
|
+
instruments_1.DefaultInstrumentId.SaxTenor,
|
|
48
|
+
instruments_1.DefaultInstrumentId.SaxBaritone,
|
|
49
|
+
instruments_1.DefaultInstrumentId.Trumpet,
|
|
50
|
+
instruments_1.DefaultInstrumentId.Trombone,
|
|
51
|
+
instruments_1.DefaultInstrumentId.TromboneLow,
|
|
52
|
+
instruments_1.DefaultInstrumentId.Euphonium,
|
|
53
|
+
instruments_1.DefaultInstrumentId.Tuba,
|
|
54
|
+
instruments_1.DefaultInstrumentId.SnareDrum,
|
|
55
|
+
instruments_1.DefaultInstrumentId.MarchingToms,
|
|
56
|
+
instruments_1.DefaultInstrumentId.BassDrum,
|
|
57
|
+
instruments_1.DefaultInstrumentId.Cymbals,
|
|
58
|
+
instruments_1.DefaultInstrumentId.Timpani,
|
|
59
|
+
instruments_1.DefaultInstrumentId.Mallets,
|
|
60
|
+
instruments_1.DefaultInstrumentId.DrumSet,
|
|
58
61
|
],
|
|
59
|
-
[MusicStyleId.Orchestra]: [
|
|
60
|
-
DefaultInstrumentId.MusicConductor,
|
|
61
|
-
DefaultInstrumentId.Violin,
|
|
62
|
-
DefaultInstrumentId.Viola,
|
|
63
|
-
DefaultInstrumentId.Cello,
|
|
64
|
-
DefaultInstrumentId.DoubleBass,
|
|
65
|
-
DefaultInstrumentId.Piccolo,
|
|
66
|
-
DefaultInstrumentId.Flute,
|
|
67
|
-
DefaultInstrumentId.FluteLow,
|
|
68
|
-
DefaultInstrumentId.Oboe,
|
|
69
|
-
DefaultInstrumentId.EnglishHorn,
|
|
70
|
-
DefaultInstrumentId.Clarinet,
|
|
71
|
-
DefaultInstrumentId.ClarinetBass,
|
|
72
|
-
DefaultInstrumentId.Bassoon,
|
|
73
|
-
DefaultInstrumentId.BassoonContra,
|
|
74
|
-
DefaultInstrumentId.FrenchHorn,
|
|
75
|
-
DefaultInstrumentId.FlugeHorn,
|
|
76
|
-
DefaultInstrumentId.Trumpet,
|
|
77
|
-
DefaultInstrumentId.TrumpetLow,
|
|
78
|
-
DefaultInstrumentId.TrumpetPiccolo,
|
|
79
|
-
DefaultInstrumentId.Trombone,
|
|
80
|
-
DefaultInstrumentId.TromboneHigh,
|
|
81
|
-
DefaultInstrumentId.TromboneLow,
|
|
82
|
-
DefaultInstrumentId.Euphonium,
|
|
83
|
-
DefaultInstrumentId.Tuba,
|
|
84
|
-
DefaultInstrumentId.Percussion,
|
|
85
|
-
DefaultInstrumentId.SnareDrum,
|
|
86
|
-
DefaultInstrumentId.BassDrum,
|
|
87
|
-
DefaultInstrumentId.Cymbals,
|
|
88
|
-
DefaultInstrumentId.Timpani,
|
|
89
|
-
DefaultInstrumentId.Mallets,
|
|
62
|
+
[index_1.MusicStyleId.Orchestra]: [
|
|
63
|
+
instruments_1.DefaultInstrumentId.MusicConductor,
|
|
64
|
+
instruments_1.DefaultInstrumentId.Violin,
|
|
65
|
+
instruments_1.DefaultInstrumentId.Viola,
|
|
66
|
+
instruments_1.DefaultInstrumentId.Cello,
|
|
67
|
+
instruments_1.DefaultInstrumentId.DoubleBass,
|
|
68
|
+
instruments_1.DefaultInstrumentId.Piccolo,
|
|
69
|
+
instruments_1.DefaultInstrumentId.Flute,
|
|
70
|
+
instruments_1.DefaultInstrumentId.FluteLow,
|
|
71
|
+
instruments_1.DefaultInstrumentId.Oboe,
|
|
72
|
+
instruments_1.DefaultInstrumentId.EnglishHorn,
|
|
73
|
+
instruments_1.DefaultInstrumentId.Clarinet,
|
|
74
|
+
instruments_1.DefaultInstrumentId.ClarinetBass,
|
|
75
|
+
instruments_1.DefaultInstrumentId.Bassoon,
|
|
76
|
+
instruments_1.DefaultInstrumentId.BassoonContra,
|
|
77
|
+
instruments_1.DefaultInstrumentId.FrenchHorn,
|
|
78
|
+
instruments_1.DefaultInstrumentId.FlugeHorn,
|
|
79
|
+
instruments_1.DefaultInstrumentId.Trumpet,
|
|
80
|
+
instruments_1.DefaultInstrumentId.TrumpetLow,
|
|
81
|
+
instruments_1.DefaultInstrumentId.TrumpetPiccolo,
|
|
82
|
+
instruments_1.DefaultInstrumentId.Trombone,
|
|
83
|
+
instruments_1.DefaultInstrumentId.TromboneHigh,
|
|
84
|
+
instruments_1.DefaultInstrumentId.TromboneLow,
|
|
85
|
+
instruments_1.DefaultInstrumentId.Euphonium,
|
|
86
|
+
instruments_1.DefaultInstrumentId.Tuba,
|
|
87
|
+
instruments_1.DefaultInstrumentId.Percussion,
|
|
88
|
+
instruments_1.DefaultInstrumentId.SnareDrum,
|
|
89
|
+
instruments_1.DefaultInstrumentId.BassDrum,
|
|
90
|
+
instruments_1.DefaultInstrumentId.Cymbals,
|
|
91
|
+
instruments_1.DefaultInstrumentId.Timpani,
|
|
92
|
+
instruments_1.DefaultInstrumentId.Mallets,
|
|
90
93
|
],
|
|
91
|
-
[MusicStyleId.Choir]: [
|
|
92
|
-
DefaultInstrumentId.MusicConductor,
|
|
93
|
-
DefaultInstrumentId.Soprano,
|
|
94
|
-
DefaultInstrumentId.MezzoSoprano,
|
|
95
|
-
DefaultInstrumentId.ContraAlto,
|
|
96
|
-
DefaultInstrumentId.CounterTenor,
|
|
97
|
-
DefaultInstrumentId.BassChoir,
|
|
98
|
-
DefaultInstrumentId.Tenor,
|
|
99
|
-
DefaultInstrumentId.Baritone,
|
|
100
|
-
DefaultInstrumentId.Choir,
|
|
94
|
+
[index_1.MusicStyleId.Choir]: [
|
|
95
|
+
instruments_1.DefaultInstrumentId.MusicConductor,
|
|
96
|
+
instruments_1.DefaultInstrumentId.Soprano,
|
|
97
|
+
instruments_1.DefaultInstrumentId.MezzoSoprano,
|
|
98
|
+
instruments_1.DefaultInstrumentId.ContraAlto,
|
|
99
|
+
instruments_1.DefaultInstrumentId.CounterTenor,
|
|
100
|
+
instruments_1.DefaultInstrumentId.BassChoir,
|
|
101
|
+
instruments_1.DefaultInstrumentId.Tenor,
|
|
102
|
+
instruments_1.DefaultInstrumentId.Baritone,
|
|
103
|
+
instruments_1.DefaultInstrumentId.Choir,
|
|
101
104
|
],
|
|
102
|
-
[MusicStyleId.BigBand]: [
|
|
103
|
-
DefaultInstrumentId.MusicConductor,
|
|
104
|
-
DefaultInstrumentId.Flute,
|
|
105
|
-
DefaultInstrumentId.Oboe,
|
|
106
|
-
DefaultInstrumentId.Clarinet,
|
|
107
|
-
DefaultInstrumentId.SaxSoprano,
|
|
108
|
-
DefaultInstrumentId.SaxAlto,
|
|
109
|
-
DefaultInstrumentId.SaxTenor,
|
|
110
|
-
DefaultInstrumentId.SaxBaritone,
|
|
111
|
-
DefaultInstrumentId.FrenchHorn,
|
|
112
|
-
DefaultInstrumentId.FlugeHorn,
|
|
113
|
-
DefaultInstrumentId.Trumpet,
|
|
114
|
-
DefaultInstrumentId.Trombone,
|
|
115
|
-
DefaultInstrumentId.Euphonium,
|
|
116
|
-
DefaultInstrumentId.Tuba,
|
|
117
|
-
DefaultInstrumentId.Percussion,
|
|
118
|
-
DefaultInstrumentId.DrumSet,
|
|
105
|
+
[index_1.MusicStyleId.BigBand]: [
|
|
106
|
+
instruments_1.DefaultInstrumentId.MusicConductor,
|
|
107
|
+
instruments_1.DefaultInstrumentId.Flute,
|
|
108
|
+
instruments_1.DefaultInstrumentId.Oboe,
|
|
109
|
+
instruments_1.DefaultInstrumentId.Clarinet,
|
|
110
|
+
instruments_1.DefaultInstrumentId.SaxSoprano,
|
|
111
|
+
instruments_1.DefaultInstrumentId.SaxAlto,
|
|
112
|
+
instruments_1.DefaultInstrumentId.SaxTenor,
|
|
113
|
+
instruments_1.DefaultInstrumentId.SaxBaritone,
|
|
114
|
+
instruments_1.DefaultInstrumentId.FrenchHorn,
|
|
115
|
+
instruments_1.DefaultInstrumentId.FlugeHorn,
|
|
116
|
+
instruments_1.DefaultInstrumentId.Trumpet,
|
|
117
|
+
instruments_1.DefaultInstrumentId.Trombone,
|
|
118
|
+
instruments_1.DefaultInstrumentId.Euphonium,
|
|
119
|
+
instruments_1.DefaultInstrumentId.Tuba,
|
|
120
|
+
instruments_1.DefaultInstrumentId.Percussion,
|
|
121
|
+
instruments_1.DefaultInstrumentId.DrumSet,
|
|
119
122
|
],
|
|
120
|
-
[MusicStyleId.TxistularisBand]: [
|
|
121
|
-
DefaultInstrumentId.Txistu,
|
|
122
|
-
DefaultInstrumentId.Silbote,
|
|
123
|
-
DefaultInstrumentId.Tabal,
|
|
123
|
+
[index_1.MusicStyleId.TxistularisBand]: [
|
|
124
|
+
instruments_1.DefaultInstrumentId.Txistu,
|
|
125
|
+
instruments_1.DefaultInstrumentId.Silbote,
|
|
126
|
+
instruments_1.DefaultInstrumentId.Tabal,
|
|
124
127
|
],
|
|
125
|
-
[MusicStyleId.Colla]: [
|
|
126
|
-
DefaultInstrumentId.MusicConductor,
|
|
127
|
-
DefaultInstrumentId.Dulzaina,
|
|
128
|
-
DefaultInstrumentId.DulzainaFa,
|
|
129
|
-
DefaultInstrumentId.Tarota,
|
|
130
|
-
DefaultInstrumentId.Bagpipes,
|
|
131
|
-
DefaultInstrumentId.Tabal,
|
|
132
|
-
DefaultInstrumentId.Percussion,
|
|
133
|
-
DefaultInstrumentId.BassDrum,
|
|
134
|
-
DefaultInstrumentId.Cymbals,
|
|
135
|
-
DefaultInstrumentId.Timpani,
|
|
128
|
+
[index_1.MusicStyleId.Colla]: [
|
|
129
|
+
instruments_1.DefaultInstrumentId.MusicConductor,
|
|
130
|
+
instruments_1.DefaultInstrumentId.Dulzaina,
|
|
131
|
+
instruments_1.DefaultInstrumentId.DulzainaFa,
|
|
132
|
+
instruments_1.DefaultInstrumentId.Tarota,
|
|
133
|
+
instruments_1.DefaultInstrumentId.Bagpipes,
|
|
134
|
+
instruments_1.DefaultInstrumentId.Tabal,
|
|
135
|
+
instruments_1.DefaultInstrumentId.Percussion,
|
|
136
|
+
instruments_1.DefaultInstrumentId.BassDrum,
|
|
137
|
+
instruments_1.DefaultInstrumentId.Cymbals,
|
|
138
|
+
instruments_1.DefaultInstrumentId.Timpani,
|
|
136
139
|
],
|
|
137
|
-
[MusicStyleId.Charanga]: [
|
|
138
|
-
DefaultInstrumentId.Clarinet,
|
|
139
|
-
DefaultInstrumentId.SaxAlto,
|
|
140
|
-
DefaultInstrumentId.SaxTenor,
|
|
141
|
-
DefaultInstrumentId.Trumpet,
|
|
142
|
-
DefaultInstrumentId.Trombone,
|
|
143
|
-
DefaultInstrumentId.Euphonium,
|
|
144
|
-
DefaultInstrumentId.Tuba,
|
|
145
|
-
DefaultInstrumentId.Percussion,
|
|
146
|
-
DefaultInstrumentId.SnareDrum,
|
|
147
|
-
DefaultInstrumentId.BassDrum,
|
|
148
|
-
DefaultInstrumentId.MarchingToms,
|
|
149
|
-
DefaultInstrumentId.Cymbals,
|
|
140
|
+
[index_1.MusicStyleId.Charanga]: [
|
|
141
|
+
instruments_1.DefaultInstrumentId.Clarinet,
|
|
142
|
+
instruments_1.DefaultInstrumentId.SaxAlto,
|
|
143
|
+
instruments_1.DefaultInstrumentId.SaxTenor,
|
|
144
|
+
instruments_1.DefaultInstrumentId.Trumpet,
|
|
145
|
+
instruments_1.DefaultInstrumentId.Trombone,
|
|
146
|
+
instruments_1.DefaultInstrumentId.Euphonium,
|
|
147
|
+
instruments_1.DefaultInstrumentId.Tuba,
|
|
148
|
+
instruments_1.DefaultInstrumentId.Percussion,
|
|
149
|
+
instruments_1.DefaultInstrumentId.SnareDrum,
|
|
150
|
+
instruments_1.DefaultInstrumentId.BassDrum,
|
|
151
|
+
instruments_1.DefaultInstrumentId.MarchingToms,
|
|
152
|
+
instruments_1.DefaultInstrumentId.Cymbals,
|
|
150
153
|
],
|
|
151
|
-
[MusicStyleId.BandaCornetasYTambores]: [
|
|
152
|
-
DefaultInstrumentId.MusicConductor,
|
|
153
|
-
DefaultInstrumentId.Cornet,
|
|
154
|
-
DefaultInstrumentId.Percussion,
|
|
155
|
-
DefaultInstrumentId.SnareDrum,
|
|
156
|
-
DefaultInstrumentId.BassDrum,
|
|
154
|
+
[index_1.MusicStyleId.BandaCornetasYTambores]: [
|
|
155
|
+
instruments_1.DefaultInstrumentId.MusicConductor,
|
|
156
|
+
instruments_1.DefaultInstrumentId.Cornet,
|
|
157
|
+
instruments_1.DefaultInstrumentId.Percussion,
|
|
158
|
+
instruments_1.DefaultInstrumentId.SnareDrum,
|
|
159
|
+
instruments_1.DefaultInstrumentId.BassDrum,
|
|
157
160
|
],
|
|
158
|
-
[MusicStyleId.JazzBand]: [
|
|
159
|
-
DefaultInstrumentId.Flute,
|
|
160
|
-
DefaultInstrumentId.Clarinet,
|
|
161
|
-
DefaultInstrumentId.SaxSoprano,
|
|
162
|
-
DefaultInstrumentId.SaxAlto,
|
|
163
|
-
DefaultInstrumentId.SaxTenor,
|
|
164
|
-
DefaultInstrumentId.SaxBaritone,
|
|
165
|
-
DefaultInstrumentId.Trumpet,
|
|
166
|
-
DefaultInstrumentId.Trombone,
|
|
167
|
-
DefaultInstrumentId.Tuba,
|
|
168
|
-
DefaultInstrumentId.DoubleBass,
|
|
169
|
-
DefaultInstrumentId.Percussion,
|
|
170
|
-
DefaultInstrumentId.DrumSet,
|
|
161
|
+
[index_1.MusicStyleId.JazzBand]: [
|
|
162
|
+
instruments_1.DefaultInstrumentId.Flute,
|
|
163
|
+
instruments_1.DefaultInstrumentId.Clarinet,
|
|
164
|
+
instruments_1.DefaultInstrumentId.SaxSoprano,
|
|
165
|
+
instruments_1.DefaultInstrumentId.SaxAlto,
|
|
166
|
+
instruments_1.DefaultInstrumentId.SaxTenor,
|
|
167
|
+
instruments_1.DefaultInstrumentId.SaxBaritone,
|
|
168
|
+
instruments_1.DefaultInstrumentId.Trumpet,
|
|
169
|
+
instruments_1.DefaultInstrumentId.Trombone,
|
|
170
|
+
instruments_1.DefaultInstrumentId.Tuba,
|
|
171
|
+
instruments_1.DefaultInstrumentId.DoubleBass,
|
|
172
|
+
instruments_1.DefaultInstrumentId.Percussion,
|
|
173
|
+
instruments_1.DefaultInstrumentId.DrumSet,
|
|
171
174
|
],
|
|
172
|
-
[MusicStyleId.Batucada]: [
|
|
173
|
-
DefaultInstrumentId.Repique,
|
|
174
|
-
DefaultInstrumentId.TambourineBrazilian,
|
|
175
|
-
DefaultInstrumentId.TimbalBrazilian,
|
|
176
|
-
DefaultInstrumentId.SnareDrum,
|
|
177
|
-
DefaultInstrumentId.Surdo,
|
|
178
|
-
DefaultInstrumentId.Agogo,
|
|
179
|
-
DefaultInstrumentId.Chocalho,
|
|
175
|
+
[index_1.MusicStyleId.Batucada]: [
|
|
176
|
+
instruments_1.DefaultInstrumentId.Repique,
|
|
177
|
+
instruments_1.DefaultInstrumentId.TambourineBrazilian,
|
|
178
|
+
instruments_1.DefaultInstrumentId.TimbalBrazilian,
|
|
179
|
+
instruments_1.DefaultInstrumentId.SnareDrum,
|
|
180
|
+
instruments_1.DefaultInstrumentId.Surdo,
|
|
181
|
+
instruments_1.DefaultInstrumentId.Agogo,
|
|
182
|
+
instruments_1.DefaultInstrumentId.Chocalho,
|
|
180
183
|
],
|
|
181
184
|
};
|
|
182
|
-
|
|
183
|
-
return musicStyle in orders ? orders[musicStyle] : Object.values(DefaultInstrumentId);
|
|
185
|
+
const getInstrumentsOrderByMusicStyle = (musicStyle) => {
|
|
186
|
+
return musicStyle in exports.orders ? exports.orders[musicStyle] : Object.values(instruments_1.DefaultInstrumentId);
|
|
184
187
|
};
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
+
exports.getInstrumentsOrderByMusicStyle = getInstrumentsOrderByMusicStyle;
|
|
189
|
+
const orderByMusicStyle = (list, field, musicStyle) => {
|
|
190
|
+
const order = (0, exports.getInstrumentsOrderByMusicStyle)(musicStyle);
|
|
191
|
+
return (0, utils_1.sortByMatch)(list, field, order);
|
|
188
192
|
};
|
|
193
|
+
exports.orderByMusicStyle = orderByMusicStyle;
|