@glissandoo/lib 1.115.0 → 1.117.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/auth.d.ts +1 -3
- package/functions/customer.d.ts +0 -4
- package/functions/event.d.ts +22 -0
- package/functions/event.js +1 -1
- package/functions/eventPlayer.d.ts +2 -0
- package/functions/eventPlayer.js +1 -1
- package/functions/eventRepertory.d.ts +0 -2
- package/functions/eventRepertory.js +1 -1
- package/functions/eventoPayout.d.ts +70 -0
- package/functions/groupModule.d.ts +13 -0
- package/functions/groupPayment.d.ts +62 -0
- package/functions/groupPayoutRule.d.ts +18 -0
- package/functions/groupRepertory.d.ts +0 -110
- package/functions/index.d.ts +12 -30
- package/functions/index.js +13 -31
- package/functions/misc.d.ts +0 -6
- package/functions/regions.js +13 -31
- package/helpers/appScenes.d.ts +2 -0
- package/helpers/appScenes.js +3 -1
- package/helpers/auth.d.ts +9 -2
- package/helpers/auth.js +14 -33
- package/helpers/badges.js +1 -1
- package/helpers/collections.js +2 -2
- package/helpers/communicationTemplate/index.d.ts +2 -3
- package/helpers/communicationTemplate/index.js +5 -5
- package/helpers/currency.d.ts +4 -19
- package/helpers/currency.js +264 -72
- package/helpers/dlinks.js +1 -1
- package/helpers/errors.d.ts +7 -2
- package/helpers/errors.js +7 -2
- package/helpers/glissandooAdmin.d.ts +3 -0
- package/helpers/glissandooAdmin.js +6 -0
- package/helpers/instruments/index.d.ts +0 -17
- package/helpers/instruments/index.js +1 -5
- package/helpers/instruments/lists.d.ts +3 -3
- package/helpers/instruments/lists.js +5 -5
- package/helpers/musicStyles/index.d.ts +4 -22
- package/helpers/musicStyles/index.js +35 -114
- package/helpers/notifications/index.js +1 -1
- package/helpers/objects.d.ts +1 -5
- package/helpers/objects.js +6 -7
- package/helpers/paymentForecast.d.ts +37 -0
- package/helpers/paymentForecast.js +58 -0
- package/helpers/payoutRules.d.ts +45 -0
- package/helpers/payoutRules.js +166 -0
- package/helpers/plans.js +2 -2
- package/helpers/rates.d.ts +1 -1
- package/helpers/slate.d.ts +5 -64
- package/helpers/slate.js +1 -7
- package/helpers/ts-extras/array-includes.js +2 -1
- package/helpers/ts-extras/as-mutable.js +2 -1
- package/helpers/ts-extras/assert-error.js +2 -1
- package/helpers/ts-extras/index.js +1 -1
- package/helpers/ts-extras/is-defined.js +2 -1
- package/helpers/ts-extras/is-empty.js +2 -1
- package/helpers/ts-extras/is-infinite.js +2 -1
- package/helpers/ts-extras/is-present.js +2 -1
- package/helpers/ts-extras/object-entries.d.ts +1 -1
- package/helpers/ts-extras/object-from-entries.d.ts +1 -1
- package/helpers/ts-extras/object-has-own.js +2 -1
- package/helpers/ts-extras/object-keys.d.ts +1 -1
- package/helpers/ts-extras/object-keys.js +1 -0
- package/helpers/ts-extras/set-has.js +2 -1
- package/helpers/types.d.ts +0 -26
- package/helpers/types.js +5 -25
- package/lang/ca.json +97 -325
- package/lang/de.json +97 -325
- package/lang/en.json +97 -325
- package/lang/es.json +97 -325
- package/lang/eu.json +97 -325
- package/lang/fr.json +97 -325
- package/lang/gl.json +97 -325
- package/lang/index.js +2 -3
- package/lang/it.json +97 -325
- package/lang/nl.json +97 -325
- package/lang/pt.json +97 -325
- package/models/Communication/types.d.ts +16 -0
- package/models/Communication/types.js +9 -3
- package/models/Counters/Group/Analytics/types.js +1 -1
- package/models/Customer/index.d.ts +1 -1
- package/models/Customer/index.js +3 -3
- package/models/Customer/types.js +1 -1
- package/models/Evento/Player/index.d.ts +1 -0
- package/models/Evento/Player/index.js +3 -0
- package/models/Evento/Player/types.d.ts +1 -0
- package/models/Evento/Player/types.js +3 -3
- package/models/Evento/Repertory/types.d.ts +1 -2
- package/models/Evento/index.d.ts +4 -3
- package/models/Evento/index.js +10 -5
- package/models/Evento/types.d.ts +43 -2
- package/models/Evento/types.js +42 -8
- package/models/Federation/index.d.ts +1 -1
- package/models/Federation/index.js +3 -3
- package/models/Group/Analytics/types.js +1 -1
- package/models/Group/Payment/index.d.ts +45 -0
- package/models/Group/Payment/index.js +110 -0
- package/models/Group/Payment/supabase.d.ts +16 -0
- package/models/Group/Payment/supabase.js +46 -0
- package/models/Group/Payment/types.d.ts +96 -0
- package/models/Group/Payment/types.js +26 -0
- package/models/Group/Player/types.js +1 -1
- package/models/Group/Repertory/File/Section/index.d.ts +3 -3
- package/models/Group/Repertory/File/Section/index.js +2 -3
- package/models/Group/Repertory/File/Section/types.d.ts +0 -7
- package/models/Group/Repertory/File/Section/types.js +1 -1
- package/models/Group/Repertory/File/index.d.ts +2 -4
- package/models/Group/Repertory/File/index.js +4 -4
- package/models/Group/Repertory/FilePath/index.d.ts +4 -3
- package/models/Group/Repertory/index.d.ts +4 -12
- package/models/Group/Repertory/index.js +0 -9
- package/models/Group/Repertory/types.d.ts +32 -21
- package/models/Group/Repertory/types.js +18 -8
- package/models/Group/index.d.ts +20 -15
- package/models/Group/index.js +34 -16
- package/models/Group/types.d.ts +96 -6
- package/models/Group/types.js +63 -8
- package/models/Instrument/{fromRecord.d.ts → group.d.ts} +5 -4
- package/models/Instrument/{fromRecord.js → group.js} +10 -10
- package/models/Instrument/index.d.ts +0 -2
- package/models/Instrument/index.js +1 -38
- package/models/Inventory/Item/types.js +2 -2
- package/models/Inventory/types.js +1 -1
- package/models/Notification/types.d.ts +4 -1
- package/models/Notification/types.js +5 -2
- package/models/Offer/types.d.ts +12 -0
- package/models/Offer/types.js +15 -2
- package/models/Partnership/Partner/types.js +1 -1
- package/models/Partnership/Payment/types.js +2 -2
- package/models/Partnership/index.d.ts +1 -1
- package/models/Partnership/index.js +3 -3
- package/models/Partnership/types.js +1 -1
- package/models/Repertory/types.d.ts +0 -12
- package/models/Repertory/types.js +2 -2
- package/models/User/Group/index.js +2 -1
- package/models/User/index.d.ts +1 -1
- package/models/User/index.js +3 -3
- package/models/User/types.d.ts +1 -2
- package/models/User/types.js +7 -7
- package/models/WebhookEvent/types.js +1 -1
- package/package.json +20 -28
- package/types/firestore.d.ts +1 -0
- package/types/firestore.js +1 -1
- package/types/payoutRule.d.ts +126 -0
- package/types/payoutRule.js +34 -0
- package/types/payoutRule.ts +132 -0
- package/types/supabase/generated.d.ts +545 -3113
- package/types/supabase/generated.js +0 -9
- package/types/supabase/generated.ts +581 -3080
- package/types/supabase/index.d.ts +19 -155
- package/types/supabase/index.js +0 -15
- package/types/supabase/index.ts +21 -288
- package/types/supabase/overwrites/comm.d.ts +18 -0
- package/types/supabase/overwrites/comm.ts +18 -0
- package/types/supabase/overwrites/comm_history.d.ts +10 -0
- package/types/supabase/overwrites/comm_history.ts +10 -0
- package/types/supabase/overwrites/{tables/event/index.d.ts → event.d.ts} +1 -1
- package/types/supabase/overwrites/{tables/event/index.ts → event.ts} +1 -1
- package/types/supabase/overwrites/event_history.d.ts +10 -0
- package/types/supabase/overwrites/event_history.ts +10 -0
- package/types/supabase/overwrites/{tables/group/index.d.ts → group.d.ts} +5 -2
- package/types/supabase/overwrites/{tables/group/index.ts → group.ts} +6 -2
- package/types/supabase/overwrites/group_history.d.ts +9 -0
- package/types/supabase/overwrites/group_history.ts +9 -0
- package/types/supabase/overwrites/index.d.ts +1 -1
- package/types/supabase/overwrites/index.ts +1 -1
- package/types/supabase/overwrites/{tables/offer/index.d.ts → offer.d.ts} +2 -6
- package/types/supabase/overwrites/{tables/offer/index.ts → offer.ts} +2 -7
- package/types/supabase/overwrites/offer_history.d.ts +10 -0
- package/types/supabase/overwrites/offer_history.ts +10 -0
- package/types/supabase/overwrites/repertoire.d.ts +12 -0
- package/types/supabase/overwrites/repertoire.ts +12 -0
- package/types/supabase/overwrites/repertoire_history.d.ts +10 -0
- package/types/supabase/overwrites/repertoire_history.ts +10 -0
- package/functions/composer.d.ts +0 -13
- package/functions/composerComposition.d.ts +0 -102
- package/functions/composerNotification.d.ts +0 -38
- package/functions/composerPayout.d.ts +0 -20
- package/helpers/catalogBridge.d.ts +0 -121
- package/helpers/catalogBridge.js +0 -95
- package/helpers/compositionCategories/genres.d.ts +0 -922
- package/helpers/compositionCategories/genres.js +0 -940
- package/helpers/compositionCategories/index.d.ts +0 -2
- package/helpers/compositionCategories/index.js +0 -18
- package/helpers/compositionCategories/styles.d.ts +0 -181
- package/helpers/compositionCategories/styles.js +0 -197
- package/helpers/compositionSoloistOffstageParts/index.d.ts +0 -34
- package/helpers/compositionSoloistOffstageParts/index.js +0 -117
- package/helpers/currencyConversion.d.ts +0 -45
- package/helpers/currencyConversion.js +0 -119
- package/helpers/dataStructures/trees/index.d.ts +0 -12
- package/helpers/dataStructures/trees/index.js +0 -71
- package/helpers/dataStructures/trees/types.d.ts +0 -14
- package/helpers/dataStructures/trees/types.js +0 -5
- package/helpers/externalUrls.d.ts +0 -12
- package/helpers/externalUrls.js +0 -40
- package/models/CompositionGenre/index.d.ts +0 -9
- package/models/CompositionGenre/index.js +0 -16
- package/models/CompositionStyle/index.d.ts +0 -9
- package/models/CompositionStyle/index.js +0 -16
- package/models/supabase/Comm/index.d.ts +0 -24
- package/models/supabase/Comm/index.js +0 -68
- package/models/supabase/Comm/types.d.ts +0 -6
- package/models/supabase/CommHistory/index.d.ts +0 -22
- package/models/supabase/CommHistory/index.js +0 -37
- package/models/supabase/CommHistory/types.d.ts +0 -11
- package/models/supabase/CommHistory/types.js +0 -9
- package/models/supabase/Composer/Composition/Acquisition/index.d.ts +0 -4
- package/models/supabase/Composer/Composition/Acquisition/index.js +0 -9
- package/models/supabase/Composer/Composition/Acquisition/types.d.ts +0 -36
- package/models/supabase/Composer/Composition/Favorite/index.d.ts +0 -4
- package/models/supabase/Composer/Composition/Favorite/index.js +0 -9
- package/models/supabase/Composer/Composition/Favorite/types.d.ts +0 -6
- package/models/supabase/Composer/Composition/View/index.d.ts +0 -4
- package/models/supabase/Composer/Composition/View/index.js +0 -9
- package/models/supabase/Composer/Composition/View/types.d.ts +0 -6
- package/models/supabase/Composer/Composition/index.d.ts +0 -5284
- package/models/supabase/Composer/Composition/index.js +0 -166
- package/models/supabase/Composer/Composition/types.d.ts +0 -96
- package/models/supabase/Composer/Composition/types.js +0 -32
- package/models/supabase/Composer/Notification/index.d.ts +0 -4
- package/models/supabase/Composer/Notification/index.js +0 -9
- package/models/supabase/Composer/Notification/types.d.ts +0 -39
- package/models/supabase/Composer/Notification/types.js +0 -27
- package/models/supabase/Composer/Payout/index.d.ts +0 -4
- package/models/supabase/Composer/Payout/index.js +0 -9
- package/models/supabase/Composer/Payout/status.d.ts +0 -1
- package/models/supabase/Composer/Payout/types.d.ts +0 -5
- package/models/supabase/Composer/PerformanceAttendance/types.d.ts +0 -4
- package/models/supabase/Composer/index.d.ts +0 -78
- package/models/supabase/Composer/index.js +0 -105
- package/models/supabase/Composer/types.d.ts +0 -6
- package/models/supabase/EventHistory/index.d.ts +0 -22
- package/models/supabase/EventHistory/index.js +0 -37
- package/models/supabase/EventHistory/types.d.ts +0 -36
- package/models/supabase/EventHistory/types.js +0 -34
- package/models/supabase/GroupHistory/index.d.ts +0 -21
- package/models/supabase/GroupHistory/index.js +0 -34
- package/models/supabase/GroupHistory/types.d.ts +0 -27
- package/models/supabase/GroupHistory/types.js +0 -25
- package/models/supabase/Model/index.d.ts +0 -10
- package/models/supabase/Model/index.js +0 -21
- package/models/supabase/OfferHistory/index.d.ts +0 -22
- package/models/supabase/OfferHistory/index.js +0 -37
- package/models/supabase/OfferHistory/types.d.ts +0 -18
- package/models/supabase/OfferHistory/types.js +0 -16
- package/models/supabase/Repertoire/index.d.ts +0 -16
- package/models/supabase/Repertoire/index.js +0 -43
- package/models/supabase/Repertoire/types.d.ts +0 -6
- package/models/supabase/RepertoireHistory/index.d.ts +0 -22
- package/models/supabase/RepertoireHistory/index.js +0 -37
- package/models/supabase/RepertoireHistory/types.d.ts +0 -21
- package/models/supabase/RepertoireHistory/types.js +0 -19
- package/models/supabase/User/Group/index.d.ts +0 -11
- package/models/supabase/User/Group/index.js +0 -30
- package/models/supabase/User/Group/types.d.ts +0 -6
- package/models/supabase/User/index.d.ts +0 -13
- package/models/supabase/User/index.js +0 -37
- package/models/supabase/User/types.d.ts +0 -6
- package/types/supabase/catalog.d.ts +0 -46
- package/types/supabase/catalog.js +0 -2
- package/types/supabase/catalog.ts +0 -67
- package/types/supabase/composerMetrics.d.ts +0 -27
- package/types/supabase/composerMetrics.js +0 -2
- package/types/supabase/composerMetrics.ts +0 -26
- package/types/supabase/overwrites/tables/comm/model.d.ts +0 -4
- package/types/supabase/overwrites/tables/comm/model.js +0 -2
- package/types/supabase/overwrites/tables/comm/model.ts +0 -4
- package/types/supabase/overwrites/tables/comm_history/index.d.ts +0 -7
- package/types/supabase/overwrites/tables/comm_history/index.js +0 -2
- package/types/supabase/overwrites/tables/comm_history/index.ts +0 -9
- package/types/supabase/overwrites/tables/comm_history/model.d.ts +0 -10
- package/types/supabase/overwrites/tables/comm_history/model.js +0 -2
- package/types/supabase/overwrites/tables/comm_history/model.ts +0 -13
- package/types/supabase/overwrites/tables/common/index.js +0 -2
- package/types/supabase/overwrites/tables/composer/index.d.ts +0 -9
- package/types/supabase/overwrites/tables/composer/index.js +0 -2
- package/types/supabase/overwrites/tables/composer/index.ts +0 -10
- package/types/supabase/overwrites/tables/composer/model.d.ts +0 -12
- package/types/supabase/overwrites/tables/composer/model.js +0 -2
- package/types/supabase/overwrites/tables/composer/model.ts +0 -15
- package/types/supabase/overwrites/tables/composer/publicModel.d.ts +0 -11
- package/types/supabase/overwrites/tables/composer/publicModel.js +0 -2
- package/types/supabase/overwrites/tables/composer/publicModel.ts +0 -15
- package/types/supabase/overwrites/tables/composerComposition/index.d.ts +0 -18
- package/types/supabase/overwrites/tables/composerComposition/index.js +0 -2
- package/types/supabase/overwrites/tables/composerComposition/index.ts +0 -24
- package/types/supabase/overwrites/tables/composerComposition/model.d.ts +0 -9
- package/types/supabase/overwrites/tables/composerComposition/model.js +0 -2
- package/types/supabase/overwrites/tables/composerComposition/model.ts +0 -26
- package/types/supabase/overwrites/tables/composerComposition/publicModel.d.ts +0 -9
- package/types/supabase/overwrites/tables/composerComposition/publicModel.js +0 -2
- package/types/supabase/overwrites/tables/composerComposition/publicModel.ts +0 -37
- package/types/supabase/overwrites/tables/composerNotification/index.d.ts +0 -19
- package/types/supabase/overwrites/tables/composerNotification/index.js +0 -2
- package/types/supabase/overwrites/tables/composerNotification/index.ts +0 -25
- package/types/supabase/overwrites/tables/composerOwnedTransaction/model.d.ts +0 -2
- package/types/supabase/overwrites/tables/composerOwnedTransaction/model.js +0 -2
- package/types/supabase/overwrites/tables/composerOwnedTransaction/model.ts +0 -3
- package/types/supabase/overwrites/tables/composerPayout/index.d.ts +0 -7
- package/types/supabase/overwrites/tables/composerPayout/index.js +0 -2
- package/types/supabase/overwrites/tables/composerPayout/index.ts +0 -8
- package/types/supabase/overwrites/tables/compositionAcquisition/index.d.ts +0 -4
- package/types/supabase/overwrites/tables/compositionAcquisition/index.js +0 -2
- package/types/supabase/overwrites/tables/compositionAcquisition/index.ts +0 -8
- package/types/supabase/overwrites/tables/compositionAcquisition/model.d.ts +0 -6
- package/types/supabase/overwrites/tables/compositionAcquisition/model.js +0 -2
- package/types/supabase/overwrites/tables/compositionAcquisition/model.ts +0 -11
- package/types/supabase/overwrites/tables/compositionFavorite/index.d.ts +0 -1
- package/types/supabase/overwrites/tables/compositionFavorite/index.js +0 -2
- package/types/supabase/overwrites/tables/compositionFavorite/index.ts +0 -2
- package/types/supabase/overwrites/tables/compositionFavorite/model.d.ts +0 -1
- package/types/supabase/overwrites/tables/compositionFavorite/model.js +0 -2
- package/types/supabase/overwrites/tables/compositionFavorite/model.ts +0 -1
- package/types/supabase/overwrites/tables/compositionView/index.d.ts +0 -1
- package/types/supabase/overwrites/tables/compositionView/index.js +0 -2
- package/types/supabase/overwrites/tables/compositionView/index.ts +0 -2
- package/types/supabase/overwrites/tables/compositionView/model.d.ts +0 -1
- package/types/supabase/overwrites/tables/compositionView/model.js +0 -2
- package/types/supabase/overwrites/tables/compositionView/model.ts +0 -1
- package/types/supabase/overwrites/tables/currencyExchangeRate/index.d.ts +0 -16
- package/types/supabase/overwrites/tables/currencyExchangeRate/index.js +0 -2
- package/types/supabase/overwrites/tables/currencyExchangeRate/index.ts +0 -18
- package/types/supabase/overwrites/tables/event/index.js +0 -2
- package/types/supabase/overwrites/tables/event_history/index.d.ts +0 -7
- package/types/supabase/overwrites/tables/event_history/index.js +0 -2
- package/types/supabase/overwrites/tables/event_history/index.ts +0 -9
- package/types/supabase/overwrites/tables/event_history/model.d.ts +0 -10
- package/types/supabase/overwrites/tables/event_history/model.js +0 -2
- package/types/supabase/overwrites/tables/event_history/model.ts +0 -13
- package/types/supabase/overwrites/tables/group/index.js +0 -2
- package/types/supabase/overwrites/tables/group_history/index.d.ts +0 -7
- package/types/supabase/overwrites/tables/group_history/index.js +0 -2
- package/types/supabase/overwrites/tables/group_history/index.ts +0 -9
- package/types/supabase/overwrites/tables/group_history/model.d.ts +0 -10
- package/types/supabase/overwrites/tables/group_history/model.js +0 -2
- package/types/supabase/overwrites/tables/group_history/model.ts +0 -13
- package/types/supabase/overwrites/tables/offer/index.js +0 -2
- package/types/supabase/overwrites/tables/offer_history/index.d.ts +0 -7
- package/types/supabase/overwrites/tables/offer_history/index.js +0 -2
- package/types/supabase/overwrites/tables/offer_history/index.ts +0 -9
- package/types/supabase/overwrites/tables/offer_history/model.d.ts +0 -10
- package/types/supabase/overwrites/tables/offer_history/model.js +0 -2
- package/types/supabase/overwrites/tables/offer_history/model.ts +0 -13
- package/types/supabase/overwrites/tables/repertoire/model.d.ts +0 -7
- package/types/supabase/overwrites/tables/repertoire/model.js +0 -2
- package/types/supabase/overwrites/tables/repertoire/model.ts +0 -7
- package/types/supabase/overwrites/tables/repertoire_history/index.d.ts +0 -7
- package/types/supabase/overwrites/tables/repertoire_history/index.js +0 -2
- package/types/supabase/overwrites/tables/repertoire_history/index.ts +0 -9
- package/types/supabase/overwrites/tables/repertoire_history/model.d.ts +0 -10
- package/types/supabase/overwrites/tables/repertoire_history/model.js +0 -2
- package/types/supabase/overwrites/tables/repertoire_history/model.ts +0 -13
- package/types/supabase/overwrites/tables/user/index.d.ts +0 -11
- package/types/supabase/overwrites/tables/user/index.js +0 -2
- package/types/supabase/overwrites/tables/user/index.ts +0 -13
- /package/functions/{composer.js → eventoPayout.js} +0 -0
- /package/functions/{composerComposition.js → groupModule.js} +0 -0
- /package/functions/{composerNotification.js → groupPayment.js} +0 -0
- /package/functions/{composerPayout.js → groupPayoutRule.js} +0 -0
- /package/{models/supabase/Comm/types.js → types/supabase/overwrites/comm.js} +0 -0
- /package/{models/supabase/Composer/Composition/Acquisition/types.js → types/supabase/overwrites/comm_history.js} +0 -0
- /package/{models/supabase/Composer/Composition/Favorite/types.js → types/supabase/overwrites/event.js} +0 -0
- /package/{models/supabase/Composer/Composition/View/types.js → types/supabase/overwrites/event_history.js} +0 -0
- /package/{models/supabase/Composer/Payout/status.js → types/supabase/overwrites/group.js} +0 -0
- /package/{models/supabase/Composer/Payout/types.js → types/supabase/overwrites/group_history.js} +0 -0
- /package/{models/supabase/Composer/PerformanceAttendance/types.js → types/supabase/overwrites/offer.js} +0 -0
- /package/{models/supabase/Composer/types.js → types/supabase/overwrites/offer_history.js} +0 -0
- /package/{models/supabase/Repertoire/types.js → types/supabase/overwrites/repertoire.js} +0 -0
- /package/{models/supabase/User/Group/types.js → types/supabase/overwrites/repertoire_history.js} +0 -0
- /package/types/supabase/overwrites/{tables/common/index.d.ts → utils.d.ts} +0 -0
- /package/{models/supabase/User/types.js → types/supabase/overwrites/utils.js} +0 -0
- /package/types/supabase/overwrites/{tables/common/index.ts → utils.ts} +0 -0
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./genres"), exports);
|
|
18
|
-
__exportStar(require("./styles"), exports);
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import { LeafIds } from '../dataStructures/trees/types';
|
|
2
|
-
export declare const compositionStylesTree: {
|
|
3
|
-
readonly 'st-historical': {
|
|
4
|
-
readonly id: "st-historical";
|
|
5
|
-
readonly labelKey: "compositionStyles.group.historical";
|
|
6
|
-
readonly order: 0;
|
|
7
|
-
};
|
|
8
|
-
readonly 'st-jazz-blues': {
|
|
9
|
-
readonly id: "st-jazz-blues";
|
|
10
|
-
readonly labelKey: "compositionStyles.group.jazz_blues";
|
|
11
|
-
readonly order: 1;
|
|
12
|
-
};
|
|
13
|
-
readonly 'st-world-pop': {
|
|
14
|
-
readonly id: "st-world-pop";
|
|
15
|
-
readonly labelKey: "compositionStyles.group.world_pop";
|
|
16
|
-
readonly order: 2;
|
|
17
|
-
};
|
|
18
|
-
readonly 'st-character': {
|
|
19
|
-
readonly id: "st-character";
|
|
20
|
-
readonly labelKey: "compositionStyles.group.character";
|
|
21
|
-
readonly order: 3;
|
|
22
|
-
};
|
|
23
|
-
readonly 'st-renaissance': {
|
|
24
|
-
readonly id: "st-renaissance";
|
|
25
|
-
readonly parentId: "st-historical";
|
|
26
|
-
readonly labelKey: "compositionStyles.historical.renaissance";
|
|
27
|
-
readonly order: 0;
|
|
28
|
-
};
|
|
29
|
-
readonly 'st-baroque': {
|
|
30
|
-
readonly id: "st-baroque";
|
|
31
|
-
readonly parentId: "st-historical";
|
|
32
|
-
readonly labelKey: "compositionStyles.historical.baroque";
|
|
33
|
-
readonly order: 1;
|
|
34
|
-
};
|
|
35
|
-
readonly 'st-classicism': {
|
|
36
|
-
readonly id: "st-classicism";
|
|
37
|
-
readonly parentId: "st-historical";
|
|
38
|
-
readonly labelKey: "compositionStyles.historical.classicism";
|
|
39
|
-
readonly order: 2;
|
|
40
|
-
};
|
|
41
|
-
readonly 'st-romanticism': {
|
|
42
|
-
readonly id: "st-romanticism";
|
|
43
|
-
readonly parentId: "st-historical";
|
|
44
|
-
readonly labelKey: "compositionStyles.historical.romanticism";
|
|
45
|
-
readonly order: 3;
|
|
46
|
-
};
|
|
47
|
-
readonly 'st-post-romanticism': {
|
|
48
|
-
readonly id: "st-post-romanticism";
|
|
49
|
-
readonly parentId: "st-historical";
|
|
50
|
-
readonly labelKey: "compositionStyles.historical.post_romanticism";
|
|
51
|
-
readonly order: 4;
|
|
52
|
-
};
|
|
53
|
-
readonly 'st-20th-century': {
|
|
54
|
-
readonly id: "st-20th-century";
|
|
55
|
-
readonly parentId: "st-historical";
|
|
56
|
-
readonly labelKey: "compositionStyles.historical.20th_century";
|
|
57
|
-
readonly order: 5;
|
|
58
|
-
};
|
|
59
|
-
readonly 'st-contemporary': {
|
|
60
|
-
readonly id: "st-contemporary";
|
|
61
|
-
readonly parentId: "st-historical";
|
|
62
|
-
readonly labelKey: "compositionStyles.historical.contemporary";
|
|
63
|
-
readonly order: 6;
|
|
64
|
-
};
|
|
65
|
-
readonly 'st-minimalism': {
|
|
66
|
-
readonly id: "st-minimalism";
|
|
67
|
-
readonly parentId: "st-historical";
|
|
68
|
-
readonly labelKey: "compositionStyles.historical.minimalism";
|
|
69
|
-
readonly order: 7;
|
|
70
|
-
};
|
|
71
|
-
readonly 'st-swing': {
|
|
72
|
-
readonly id: "st-swing";
|
|
73
|
-
readonly parentId: "st-jazz-blues";
|
|
74
|
-
readonly labelKey: "compositionStyles.jazz.swing";
|
|
75
|
-
readonly order: 0;
|
|
76
|
-
};
|
|
77
|
-
readonly 'st-dixieland': {
|
|
78
|
-
readonly id: "st-dixieland";
|
|
79
|
-
readonly parentId: "st-jazz-blues";
|
|
80
|
-
readonly labelKey: "compositionStyles.jazz.dixieland";
|
|
81
|
-
readonly order: 1;
|
|
82
|
-
};
|
|
83
|
-
readonly 'st-bebop': {
|
|
84
|
-
readonly id: "st-bebop";
|
|
85
|
-
readonly parentId: "st-jazz-blues";
|
|
86
|
-
readonly labelKey: "compositionStyles.jazz.bebop";
|
|
87
|
-
readonly order: 2;
|
|
88
|
-
};
|
|
89
|
-
readonly 'st-fusion': {
|
|
90
|
-
readonly id: "st-fusion";
|
|
91
|
-
readonly parentId: "st-jazz-blues";
|
|
92
|
-
readonly labelKey: "compositionStyles.jazz.fusion";
|
|
93
|
-
readonly order: 3;
|
|
94
|
-
};
|
|
95
|
-
readonly 'st-blues': {
|
|
96
|
-
readonly id: "st-blues";
|
|
97
|
-
readonly parentId: "st-jazz-blues";
|
|
98
|
-
readonly labelKey: "compositionStyles.jazz.blues";
|
|
99
|
-
readonly order: 4;
|
|
100
|
-
};
|
|
101
|
-
readonly 'st-bossa': {
|
|
102
|
-
readonly id: "st-bossa";
|
|
103
|
-
readonly parentId: "st-jazz-blues";
|
|
104
|
-
readonly labelKey: "compositionStyles.jazz.bossa";
|
|
105
|
-
readonly order: 5;
|
|
106
|
-
};
|
|
107
|
-
readonly 'st-pop': {
|
|
108
|
-
readonly id: "st-pop";
|
|
109
|
-
readonly parentId: "st-world-pop";
|
|
110
|
-
readonly labelKey: "compositionStyles.world.pop";
|
|
111
|
-
readonly order: 0;
|
|
112
|
-
};
|
|
113
|
-
readonly 'st-rock': {
|
|
114
|
-
readonly id: "st-rock";
|
|
115
|
-
readonly parentId: "st-world-pop";
|
|
116
|
-
readonly labelKey: "compositionStyles.world.rock";
|
|
117
|
-
readonly order: 1;
|
|
118
|
-
};
|
|
119
|
-
readonly 'st-funk': {
|
|
120
|
-
readonly id: "st-funk";
|
|
121
|
-
readonly parentId: "st-world-pop";
|
|
122
|
-
readonly labelKey: "compositionStyles.world.funk";
|
|
123
|
-
readonly order: 2;
|
|
124
|
-
};
|
|
125
|
-
readonly 'st-flamenco': {
|
|
126
|
-
readonly id: "st-flamenco";
|
|
127
|
-
readonly parentId: "st-world-pop";
|
|
128
|
-
readonly labelKey: "compositionStyles.world.flamenco";
|
|
129
|
-
readonly order: 3;
|
|
130
|
-
};
|
|
131
|
-
readonly 'st-celtic': {
|
|
132
|
-
readonly id: "st-celtic";
|
|
133
|
-
readonly parentId: "st-world-pop";
|
|
134
|
-
readonly labelKey: "compositionStyles.world.celtic";
|
|
135
|
-
readonly order: 4;
|
|
136
|
-
};
|
|
137
|
-
readonly 'st-latin': {
|
|
138
|
-
readonly id: "st-latin";
|
|
139
|
-
readonly parentId: "st-world-pop";
|
|
140
|
-
readonly labelKey: "compositionStyles.world.latin";
|
|
141
|
-
readonly order: 5;
|
|
142
|
-
};
|
|
143
|
-
readonly 'st-african': {
|
|
144
|
-
readonly id: "st-african";
|
|
145
|
-
readonly parentId: "st-world-pop";
|
|
146
|
-
readonly labelKey: "compositionStyles.world.african";
|
|
147
|
-
readonly order: 6;
|
|
148
|
-
};
|
|
149
|
-
readonly 'st-oriental': {
|
|
150
|
-
readonly id: "st-oriental";
|
|
151
|
-
readonly parentId: "st-world-pop";
|
|
152
|
-
readonly labelKey: "compositionStyles.world.oriental";
|
|
153
|
-
readonly order: 7;
|
|
154
|
-
};
|
|
155
|
-
readonly 'st-epic': {
|
|
156
|
-
readonly id: "st-epic";
|
|
157
|
-
readonly parentId: "st-character";
|
|
158
|
-
readonly labelKey: "compositionStyles.character.epic";
|
|
159
|
-
readonly order: 0;
|
|
160
|
-
};
|
|
161
|
-
readonly 'st-sacred': {
|
|
162
|
-
readonly id: "st-sacred";
|
|
163
|
-
readonly parentId: "st-character";
|
|
164
|
-
readonly labelKey: "compositionStyles.character.sacred";
|
|
165
|
-
readonly order: 1;
|
|
166
|
-
};
|
|
167
|
-
readonly 'st-humorous': {
|
|
168
|
-
readonly id: "st-humorous";
|
|
169
|
-
readonly parentId: "st-character";
|
|
170
|
-
readonly labelKey: "compositionStyles.character.humorous";
|
|
171
|
-
readonly order: 2;
|
|
172
|
-
};
|
|
173
|
-
readonly 'st-solemn': {
|
|
174
|
-
readonly id: "st-solemn";
|
|
175
|
-
readonly parentId: "st-character";
|
|
176
|
-
readonly labelKey: "compositionStyles.character.solemn";
|
|
177
|
-
readonly order: 3;
|
|
178
|
-
};
|
|
179
|
-
};
|
|
180
|
-
export type CompositionStyleTreeKey = keyof typeof compositionStylesTree;
|
|
181
|
-
export type CompositionStyleId = LeafIds<typeof compositionStylesTree>;
|
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.compositionStylesTree = void 0;
|
|
4
|
-
const types_1 = require("../dataStructures/trees/types");
|
|
5
|
-
exports.compositionStylesTree = (0, types_1.defineTable)({
|
|
6
|
-
// ===========================================================================
|
|
7
|
-
// ROOT CATEGORIES
|
|
8
|
-
// ===========================================================================
|
|
9
|
-
'st-historical': {
|
|
10
|
-
id: 'st-historical',
|
|
11
|
-
labelKey: 'compositionStyles.group.historical',
|
|
12
|
-
order: 0,
|
|
13
|
-
},
|
|
14
|
-
'st-jazz-blues': {
|
|
15
|
-
id: 'st-jazz-blues',
|
|
16
|
-
labelKey: 'compositionStyles.group.jazz_blues',
|
|
17
|
-
order: 1,
|
|
18
|
-
},
|
|
19
|
-
'st-world-pop': {
|
|
20
|
-
id: 'st-world-pop',
|
|
21
|
-
labelKey: 'compositionStyles.group.world_pop',
|
|
22
|
-
order: 2,
|
|
23
|
-
},
|
|
24
|
-
'st-character': {
|
|
25
|
-
id: 'st-character',
|
|
26
|
-
labelKey: 'compositionStyles.group.character',
|
|
27
|
-
order: 3,
|
|
28
|
-
},
|
|
29
|
-
// ===========================================================================
|
|
30
|
-
// 1. HISTORICAL PERIODS
|
|
31
|
-
// ===========================================================================
|
|
32
|
-
'st-renaissance': {
|
|
33
|
-
id: 'st-renaissance',
|
|
34
|
-
parentId: 'st-historical',
|
|
35
|
-
labelKey: 'compositionStyles.historical.renaissance',
|
|
36
|
-
order: 0,
|
|
37
|
-
},
|
|
38
|
-
'st-baroque': {
|
|
39
|
-
id: 'st-baroque',
|
|
40
|
-
parentId: 'st-historical',
|
|
41
|
-
labelKey: 'compositionStyles.historical.baroque',
|
|
42
|
-
order: 1,
|
|
43
|
-
},
|
|
44
|
-
'st-classicism': {
|
|
45
|
-
id: 'st-classicism',
|
|
46
|
-
parentId: 'st-historical',
|
|
47
|
-
labelKey: 'compositionStyles.historical.classicism',
|
|
48
|
-
order: 2,
|
|
49
|
-
},
|
|
50
|
-
'st-romanticism': {
|
|
51
|
-
id: 'st-romanticism',
|
|
52
|
-
parentId: 'st-historical',
|
|
53
|
-
labelKey: 'compositionStyles.historical.romanticism',
|
|
54
|
-
order: 3,
|
|
55
|
-
},
|
|
56
|
-
'st-post-romanticism': {
|
|
57
|
-
id: 'st-post-romanticism',
|
|
58
|
-
parentId: 'st-historical',
|
|
59
|
-
labelKey: 'compositionStyles.historical.post_romanticism',
|
|
60
|
-
order: 4,
|
|
61
|
-
},
|
|
62
|
-
'st-20th-century': {
|
|
63
|
-
id: 'st-20th-century',
|
|
64
|
-
parentId: 'st-historical',
|
|
65
|
-
labelKey: 'compositionStyles.historical.20th_century',
|
|
66
|
-
order: 5,
|
|
67
|
-
},
|
|
68
|
-
'st-contemporary': {
|
|
69
|
-
id: 'st-contemporary',
|
|
70
|
-
parentId: 'st-historical',
|
|
71
|
-
labelKey: 'compositionStyles.historical.contemporary',
|
|
72
|
-
order: 6,
|
|
73
|
-
},
|
|
74
|
-
'st-minimalism': {
|
|
75
|
-
id: 'st-minimalism',
|
|
76
|
-
parentId: 'st-historical',
|
|
77
|
-
labelKey: 'compositionStyles.historical.minimalism',
|
|
78
|
-
order: 7,
|
|
79
|
-
},
|
|
80
|
-
// ===========================================================================
|
|
81
|
-
// 2. JAZZ & BLUES
|
|
82
|
-
// ===========================================================================
|
|
83
|
-
'st-swing': {
|
|
84
|
-
id: 'st-swing',
|
|
85
|
-
parentId: 'st-jazz-blues',
|
|
86
|
-
labelKey: 'compositionStyles.jazz.swing',
|
|
87
|
-
order: 0,
|
|
88
|
-
},
|
|
89
|
-
'st-dixieland': {
|
|
90
|
-
id: 'st-dixieland',
|
|
91
|
-
parentId: 'st-jazz-blues',
|
|
92
|
-
labelKey: 'compositionStyles.jazz.dixieland',
|
|
93
|
-
order: 1,
|
|
94
|
-
},
|
|
95
|
-
'st-bebop': {
|
|
96
|
-
id: 'st-bebop',
|
|
97
|
-
parentId: 'st-jazz-blues',
|
|
98
|
-
labelKey: 'compositionStyles.jazz.bebop',
|
|
99
|
-
order: 2,
|
|
100
|
-
},
|
|
101
|
-
'st-fusion': {
|
|
102
|
-
id: 'st-fusion',
|
|
103
|
-
parentId: 'st-jazz-blues',
|
|
104
|
-
labelKey: 'compositionStyles.jazz.fusion',
|
|
105
|
-
order: 3,
|
|
106
|
-
},
|
|
107
|
-
'st-blues': {
|
|
108
|
-
id: 'st-blues',
|
|
109
|
-
parentId: 'st-jazz-blues',
|
|
110
|
-
labelKey: 'compositionStyles.jazz.blues',
|
|
111
|
-
order: 4,
|
|
112
|
-
},
|
|
113
|
-
'st-bossa': {
|
|
114
|
-
id: 'st-bossa',
|
|
115
|
-
parentId: 'st-jazz-blues',
|
|
116
|
-
labelKey: 'compositionStyles.jazz.bossa',
|
|
117
|
-
order: 5,
|
|
118
|
-
},
|
|
119
|
-
// ===========================================================================
|
|
120
|
-
// 3. POPULAR & WORLD
|
|
121
|
-
// ===========================================================================
|
|
122
|
-
'st-pop': {
|
|
123
|
-
id: 'st-pop',
|
|
124
|
-
parentId: 'st-world-pop',
|
|
125
|
-
labelKey: 'compositionStyles.world.pop',
|
|
126
|
-
order: 0,
|
|
127
|
-
},
|
|
128
|
-
'st-rock': {
|
|
129
|
-
id: 'st-rock',
|
|
130
|
-
parentId: 'st-world-pop',
|
|
131
|
-
labelKey: 'compositionStyles.world.rock',
|
|
132
|
-
order: 1,
|
|
133
|
-
},
|
|
134
|
-
'st-funk': {
|
|
135
|
-
id: 'st-funk',
|
|
136
|
-
parentId: 'st-world-pop',
|
|
137
|
-
labelKey: 'compositionStyles.world.funk',
|
|
138
|
-
order: 2,
|
|
139
|
-
},
|
|
140
|
-
'st-flamenco': {
|
|
141
|
-
id: 'st-flamenco',
|
|
142
|
-
parentId: 'st-world-pop',
|
|
143
|
-
labelKey: 'compositionStyles.world.flamenco',
|
|
144
|
-
order: 3,
|
|
145
|
-
},
|
|
146
|
-
'st-celtic': {
|
|
147
|
-
id: 'st-celtic',
|
|
148
|
-
parentId: 'st-world-pop',
|
|
149
|
-
labelKey: 'compositionStyles.world.celtic',
|
|
150
|
-
order: 4,
|
|
151
|
-
},
|
|
152
|
-
'st-latin': {
|
|
153
|
-
id: 'st-latin',
|
|
154
|
-
parentId: 'st-world-pop',
|
|
155
|
-
labelKey: 'compositionStyles.world.latin',
|
|
156
|
-
order: 5,
|
|
157
|
-
},
|
|
158
|
-
'st-african': {
|
|
159
|
-
id: 'st-african',
|
|
160
|
-
parentId: 'st-world-pop',
|
|
161
|
-
labelKey: 'compositionStyles.world.african',
|
|
162
|
-
order: 6,
|
|
163
|
-
},
|
|
164
|
-
'st-oriental': {
|
|
165
|
-
id: 'st-oriental',
|
|
166
|
-
parentId: 'st-world-pop',
|
|
167
|
-
labelKey: 'compositionStyles.world.oriental',
|
|
168
|
-
order: 7,
|
|
169
|
-
},
|
|
170
|
-
// ===========================================================================
|
|
171
|
-
// 4. CHARACTER & FUNCTION
|
|
172
|
-
// ===========================================================================
|
|
173
|
-
'st-epic': {
|
|
174
|
-
id: 'st-epic',
|
|
175
|
-
parentId: 'st-character',
|
|
176
|
-
labelKey: 'compositionStyles.character.epic',
|
|
177
|
-
order: 0,
|
|
178
|
-
},
|
|
179
|
-
'st-sacred': {
|
|
180
|
-
id: 'st-sacred',
|
|
181
|
-
parentId: 'st-character',
|
|
182
|
-
labelKey: 'compositionStyles.character.sacred',
|
|
183
|
-
order: 1,
|
|
184
|
-
},
|
|
185
|
-
'st-humorous': {
|
|
186
|
-
id: 'st-humorous',
|
|
187
|
-
parentId: 'st-character',
|
|
188
|
-
labelKey: 'compositionStyles.character.humorous',
|
|
189
|
-
order: 2,
|
|
190
|
-
},
|
|
191
|
-
'st-solemn': {
|
|
192
|
-
id: 'st-solemn',
|
|
193
|
-
parentId: 'st-character',
|
|
194
|
-
labelKey: 'compositionStyles.character.solemn',
|
|
195
|
-
order: 3,
|
|
196
|
-
},
|
|
197
|
-
});
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { DefaultInstrumentId } from '../instruments';
|
|
2
|
-
import { LanguagesTypes } from '../../lang';
|
|
3
|
-
export type SoloistOffstagePartType = 'soloist' | 'offstage';
|
|
4
|
-
export interface SoloistOffstagePartInput {
|
|
5
|
-
partId?: string | null;
|
|
6
|
-
quantity?: number | null;
|
|
7
|
-
soloist?: boolean | null;
|
|
8
|
-
offstage?: boolean | null;
|
|
9
|
-
}
|
|
10
|
-
export interface SoloistOffstagePartFilterChip {
|
|
11
|
-
partId: DefaultInstrumentId;
|
|
12
|
-
quantity: number;
|
|
13
|
-
soloist: boolean;
|
|
14
|
-
offstage: boolean;
|
|
15
|
-
}
|
|
16
|
-
export type SoloistOffstagePartFilterMode = 'include' | 'exclude';
|
|
17
|
-
export interface SoloistOffstagePartFilterSelection {
|
|
18
|
-
value: string;
|
|
19
|
-
mode: SoloistOffstagePartFilterMode;
|
|
20
|
-
}
|
|
21
|
-
export declare const getSoloistOffstagePartType: (part: Pick<SoloistOffstagePartInput, "soloist" | "offstage">) => SoloistOffstagePartType;
|
|
22
|
-
export declare const getSoloistOffstagePartFlags: (type: SoloistOffstagePartType) => Pick<SoloistOffstagePartFilterChip, "soloist" | "offstage">;
|
|
23
|
-
export declare const getSoloistOffstagePartKey: (part: Pick<SoloistOffstagePartFilterChip, "partId" | "soloist" | "offstage">) => string;
|
|
24
|
-
export declare const getSoloistOffstagePartChipValue: (part: SoloistOffstagePartFilterChip) => string;
|
|
25
|
-
export declare const getSoloistOffstagePartNameToken: (part: Pick<SoloistOffstagePartFilterChip, "partId" | "quantity">, lang?: LanguagesTypes) => string;
|
|
26
|
-
export declare const normalizeSoloistOffstageParts: (parts?: SoloistOffstagePartInput[]) => SoloistOffstagePartFilterChip[];
|
|
27
|
-
export declare const parseSoloistOffstagePartChipValue: (value: string) => SoloistOffstagePartFilterChip | null;
|
|
28
|
-
export declare const matchesSoloistOffstagePartFilter: (part: SoloistOffstagePartFilterChip, filter: SoloistOffstagePartFilterChip) => boolean;
|
|
29
|
-
export declare const hasSoloistOffstagePartFilterMatch: (parts: SoloistOffstagePartInput[] | undefined, filter: SoloistOffstagePartFilterChip) => boolean;
|
|
30
|
-
export declare const mergeSoloistOffstagePartFilterSelections: (includeValues?: string[], excludeValues?: string[]) => SoloistOffstagePartFilterSelection[];
|
|
31
|
-
export declare const splitSoloistOffstagePartFilterSelections: (selections?: SoloistOffstagePartFilterSelection[]) => {
|
|
32
|
-
include: string[];
|
|
33
|
-
exclude: string[];
|
|
34
|
-
};
|
|
@@ -1,117 +0,0 @@
|
|
|
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.splitSoloistOffstagePartFilterSelections = exports.mergeSoloistOffstagePartFilterSelections = exports.hasSoloistOffstagePartFilterMatch = exports.matchesSoloistOffstagePartFilter = exports.parseSoloistOffstagePartChipValue = exports.normalizeSoloistOffstageParts = exports.getSoloistOffstagePartNameToken = exports.getSoloistOffstagePartChipValue = exports.getSoloistOffstagePartKey = exports.getSoloistOffstagePartFlags = exports.getSoloistOffstagePartType = void 0;
|
|
7
|
-
const instruments_1 = require("../instruments");
|
|
8
|
-
const lang_1 = require("../../lang");
|
|
9
|
-
const Instrument_1 = __importDefault(require("../../models/Instrument"));
|
|
10
|
-
const defaultInstrumentIds = new Set(Object.values(instruments_1.DefaultInstrumentId));
|
|
11
|
-
const isDefaultInstrumentId = (value) => defaultInstrumentIds.has(value);
|
|
12
|
-
const isValidQuantity = (quantity) => typeof quantity === 'number' && Number.isInteger(quantity) && quantity >= 1 && quantity <= 99;
|
|
13
|
-
const getSoloistOffstagePartType = (part) => {
|
|
14
|
-
if (part.offstage)
|
|
15
|
-
return 'offstage';
|
|
16
|
-
return 'soloist';
|
|
17
|
-
};
|
|
18
|
-
exports.getSoloistOffstagePartType = getSoloistOffstagePartType;
|
|
19
|
-
const getSoloistOffstagePartFlags = (type) => ({
|
|
20
|
-
soloist: type === 'soloist',
|
|
21
|
-
offstage: type === 'offstage',
|
|
22
|
-
});
|
|
23
|
-
exports.getSoloistOffstagePartFlags = getSoloistOffstagePartFlags;
|
|
24
|
-
const toSoloistOffstagePart = (part) => {
|
|
25
|
-
if (!part ||
|
|
26
|
-
typeof part.partId !== 'string' ||
|
|
27
|
-
!isDefaultInstrumentId(part.partId) ||
|
|
28
|
-
!isValidQuantity(part.quantity) ||
|
|
29
|
-
typeof part.soloist !== 'boolean' ||
|
|
30
|
-
typeof part.offstage !== 'boolean') {
|
|
31
|
-
return null;
|
|
32
|
-
}
|
|
33
|
-
const flags = (0, exports.getSoloistOffstagePartFlags)((0, exports.getSoloistOffstagePartType)(part));
|
|
34
|
-
return {
|
|
35
|
-
partId: part.partId,
|
|
36
|
-
quantity: part.quantity,
|
|
37
|
-
soloist: flags.soloist,
|
|
38
|
-
offstage: flags.offstage,
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
const getSoloistOffstagePartKey = (part) => `${part.partId}|${(0, exports.getSoloistOffstagePartType)(part)}`;
|
|
42
|
-
exports.getSoloistOffstagePartKey = getSoloistOffstagePartKey;
|
|
43
|
-
const getSoloistOffstagePartChipValue = (part) => `${part.partId}|${part.quantity}|${part.soloist}|${part.offstage}`;
|
|
44
|
-
exports.getSoloistOffstagePartChipValue = getSoloistOffstagePartChipValue;
|
|
45
|
-
const getSoloistOffstagePartNameToken = (part, lang = lang_1.defaultLocale) => {
|
|
46
|
-
const instrument = new Instrument_1.default(part.partId, lang);
|
|
47
|
-
const name = instrument.getName(part.quantity);
|
|
48
|
-
return part.quantity > 1 ? name.toLocaleLowerCase(lang) : name;
|
|
49
|
-
};
|
|
50
|
-
exports.getSoloistOffstagePartNameToken = getSoloistOffstagePartNameToken;
|
|
51
|
-
const normalizeSoloistOffstageParts = (parts = []) => {
|
|
52
|
-
const keyedParts = new Map();
|
|
53
|
-
parts.forEach((part) => {
|
|
54
|
-
const soloistOffstagePart = toSoloistOffstagePart(part);
|
|
55
|
-
if (!soloistOffstagePart)
|
|
56
|
-
return;
|
|
57
|
-
const key = (0, exports.getSoloistOffstagePartKey)(soloistOffstagePart);
|
|
58
|
-
if (!keyedParts.has(key)) {
|
|
59
|
-
keyedParts.set(key, soloistOffstagePart);
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
return [...keyedParts.values()].sort((a, b) => {
|
|
63
|
-
if (a.partId !== b.partId)
|
|
64
|
-
return a.partId.localeCompare(b.partId);
|
|
65
|
-
if (a.soloist !== b.soloist)
|
|
66
|
-
return Number(b.soloist) - Number(a.soloist);
|
|
67
|
-
return Number(b.offstage) - Number(a.offstage);
|
|
68
|
-
});
|
|
69
|
-
};
|
|
70
|
-
exports.normalizeSoloistOffstageParts = normalizeSoloistOffstageParts;
|
|
71
|
-
const parseSoloistOffstagePartChipValue = (value) => {
|
|
72
|
-
const [partId, quantity, soloist, offstage, extra] = value.split('|');
|
|
73
|
-
if (extra !== undefined || !isDefaultInstrumentId(partId))
|
|
74
|
-
return null;
|
|
75
|
-
return toSoloistOffstagePart({
|
|
76
|
-
partId,
|
|
77
|
-
quantity: Number(quantity),
|
|
78
|
-
soloist: soloist === 'true' ? true : soloist === 'false' ? false : null,
|
|
79
|
-
offstage: offstage === 'true' ? true : offstage === 'false' ? false : null,
|
|
80
|
-
});
|
|
81
|
-
};
|
|
82
|
-
exports.parseSoloistOffstagePartChipValue = parseSoloistOffstagePartChipValue;
|
|
83
|
-
const matchesSoloistOffstagePartFilter = (part, filter) => part.partId === filter.partId &&
|
|
84
|
-
(0, exports.getSoloistOffstagePartType)(part) === (0, exports.getSoloistOffstagePartType)(filter) &&
|
|
85
|
-
part.quantity >= filter.quantity;
|
|
86
|
-
exports.matchesSoloistOffstagePartFilter = matchesSoloistOffstagePartFilter;
|
|
87
|
-
const hasSoloistOffstagePartFilterMatch = (parts = [], filter) => (0, exports.normalizeSoloistOffstageParts)(parts).some((part) => (0, exports.matchesSoloistOffstagePartFilter)(part, filter));
|
|
88
|
-
exports.hasSoloistOffstagePartFilterMatch = hasSoloistOffstagePartFilterMatch;
|
|
89
|
-
const mergeSoloistOffstagePartFilterSelections = (includeValues = [], excludeValues = []) => {
|
|
90
|
-
const selectedValues = new Set();
|
|
91
|
-
const selections = [];
|
|
92
|
-
includeValues.forEach((value) => {
|
|
93
|
-
if (selectedValues.has(value))
|
|
94
|
-
return;
|
|
95
|
-
selectedValues.add(value);
|
|
96
|
-
selections.push({ value, mode: 'include' });
|
|
97
|
-
});
|
|
98
|
-
excludeValues.forEach((value) => {
|
|
99
|
-
if (selectedValues.has(value))
|
|
100
|
-
return;
|
|
101
|
-
selectedValues.add(value);
|
|
102
|
-
selections.push({ value, mode: 'exclude' });
|
|
103
|
-
});
|
|
104
|
-
return selections;
|
|
105
|
-
};
|
|
106
|
-
exports.mergeSoloistOffstagePartFilterSelections = mergeSoloistOffstagePartFilterSelections;
|
|
107
|
-
const splitSoloistOffstagePartFilterSelections = (selections = []) => {
|
|
108
|
-
const modesByValue = new Map();
|
|
109
|
-
selections.forEach(({ value, mode }) => {
|
|
110
|
-
modesByValue.set(value, mode);
|
|
111
|
-
});
|
|
112
|
-
return [...modesByValue.entries()].reduce((result, [value, mode]) => {
|
|
113
|
-
result[mode].push(value);
|
|
114
|
-
return result;
|
|
115
|
-
}, { include: [], exclude: [] });
|
|
116
|
-
};
|
|
117
|
-
exports.splitSoloistOffstagePartFilterSelections = splitSoloistOffstagePartFilterSelections;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export declare const MARKETPLACE_CURRENCY_SYMBOL_LOCALES: {
|
|
2
|
-
readonly EUR: "de-DE";
|
|
3
|
-
readonly USD: "en-US";
|
|
4
|
-
readonly GBP: "en-GB";
|
|
5
|
-
readonly CHF: "de-CH";
|
|
6
|
-
readonly CAD: "en-CA";
|
|
7
|
-
readonly AUD: "en-AU";
|
|
8
|
-
readonly JPY: "ja-JP";
|
|
9
|
-
readonly SEK: "sv-SE";
|
|
10
|
-
readonly NOK: "nb-NO";
|
|
11
|
-
readonly DKK: "da-DK";
|
|
12
|
-
};
|
|
13
|
-
export type MarketplaceCurrencyCode = keyof typeof MARKETPLACE_CURRENCY_SYMBOL_LOCALES;
|
|
14
|
-
export declare const MARKETPLACE_CURRENCY_CODES: MarketplaceCurrencyCode[];
|
|
15
|
-
export interface CurrencyExchangeRateSnapshot {
|
|
16
|
-
baseCurrency: MarketplaceCurrencyCode;
|
|
17
|
-
targetCurrency: MarketplaceCurrencyCode;
|
|
18
|
-
rate: number;
|
|
19
|
-
rateDate: string;
|
|
20
|
-
provider: string;
|
|
21
|
-
fetchedAt: string;
|
|
22
|
-
}
|
|
23
|
-
export interface CurrencyDefaultingInput {
|
|
24
|
-
savedCurrency?: string | null;
|
|
25
|
-
country?: string | null;
|
|
26
|
-
locale?: string | null;
|
|
27
|
-
fallbackCurrency?: MarketplaceCurrencyCode;
|
|
28
|
-
}
|
|
29
|
-
export interface CurrencyConversionResult {
|
|
30
|
-
baseAmountCents: number;
|
|
31
|
-
baseCurrency: MarketplaceCurrencyCode;
|
|
32
|
-
convertedAmountCents: number;
|
|
33
|
-
targetCurrency: MarketplaceCurrencyCode;
|
|
34
|
-
rate: number;
|
|
35
|
-
rateDate: string;
|
|
36
|
-
rateProvider: string;
|
|
37
|
-
}
|
|
38
|
-
export declare const MARKETPLACE_CURRENCY_ROUNDING_CENTS: Record<MarketplaceCurrencyCode, number>;
|
|
39
|
-
export declare const isSupportedMarketplaceCurrency: (value: unknown) => value is MarketplaceCurrencyCode;
|
|
40
|
-
export declare const normalizeMarketplaceCurrency: (value: unknown) => MarketplaceCurrencyCode | undefined;
|
|
41
|
-
export declare const getCurrencyForCountry: (country: string | null | undefined) => MarketplaceCurrencyCode | undefined;
|
|
42
|
-
export declare const getDefaultMarketplaceCurrency: ({ savedCurrency, country, locale, fallbackCurrency, }: CurrencyDefaultingInput) => MarketplaceCurrencyCode;
|
|
43
|
-
export declare const roundMarketplaceCurrencyCents: (amountCents: number, currency: MarketplaceCurrencyCode) => number;
|
|
44
|
-
export declare const convertCurrencyCents: (baseAmountCents: number, rate: number, targetCurrency?: MarketplaceCurrencyCode) => number;
|
|
45
|
-
export declare const buildCurrencyConversionResult: (baseAmountCents: number, rateSnapshot: CurrencyExchangeRateSnapshot) => CurrencyConversionResult;
|