@glissandoo/lib 1.115.0 → 1.116.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.js +1 -1
- package/functions/eventPlayer.js +1 -1
- package/functions/eventRepertory.d.ts +0 -2
- package/functions/eventRepertory.js +1 -1
- package/functions/groupRepertory.d.ts +0 -110
- package/functions/index.d.ts +0 -30
- package/functions/index.js +1 -31
- package/functions/misc.d.ts +0 -6
- package/functions/regions.js +1 -31
- package/helpers/appScenes.js +1 -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/dlinks.js +1 -1
- package/helpers/errors.d.ts +0 -1
- package/helpers/errors.js +1 -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/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 +91 -325
- package/lang/de.json +91 -325
- package/lang/en.json +91 -325
- package/lang/es.json +91 -325
- package/lang/eu.json +91 -325
- package/lang/fr.json +91 -325
- package/lang/gl.json +91 -325
- package/lang/index.js +2 -3
- package/lang/it.json +91 -325
- package/lang/nl.json +91 -325
- package/lang/pt.json +91 -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/types.js +3 -3
- package/models/Evento/Repertory/types.d.ts +1 -2
- package/models/Evento/index.d.ts +2 -3
- package/models/Evento/index.js +4 -5
- package/models/Evento/types.d.ts +31 -2
- package/models/Evento/types.js +39 -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/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 +13 -15
- package/models/Group/index.js +15 -16
- package/models/Group/types.d.ts +66 -6
- package/models/Group/types.js +50 -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.js +2 -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/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/currency.d.ts +0 -19
- package/helpers/currency.js +0 -85
- 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/Composer/types.js +0 -2
- 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/Repertoire/types.js +0 -2
- 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/Group/types.js +0 -2
- 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/models/supabase/User/types.js +0 -2
- 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 → types/supabase/overwrites/comm.js} +0 -0
- /package/{functions/composerComposition.js → types/supabase/overwrites/comm_history.js} +0 -0
- /package/{functions/composerNotification.js → types/supabase/overwrites/event.js} +0 -0
- /package/{functions/composerPayout.js → types/supabase/overwrites/event_history.js} +0 -0
- /package/{models/supabase/Comm/types.js → types/supabase/overwrites/group.js} +0 -0
- /package/{models/supabase/Composer/Composition/Acquisition/types.js → types/supabase/overwrites/group_history.js} +0 -0
- /package/{models/supabase/Composer/Composition/Favorite/types.js → types/supabase/overwrites/offer.js} +0 -0
- /package/{models/supabase/Composer/Composition/View/types.js → types/supabase/overwrites/offer_history.js} +0 -0
- /package/{models/supabase/Composer/Payout/status.js → types/supabase/overwrites/repertoire.js} +0 -0
- /package/{models/supabase/Composer/Payout/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/Composer/PerformanceAttendance/types.js → types/supabase/overwrites/utils.js} +0 -0
- /package/types/supabase/overwrites/{tables/common/index.ts → utils.ts} +0 -0
package/functions/auth.d.ts
CHANGED
|
@@ -4,9 +4,7 @@ export declare namespace AuthFbFunctionsTypes {
|
|
|
4
4
|
idToken: string;
|
|
5
5
|
sessionExpiresIn?: number;
|
|
6
6
|
}
|
|
7
|
-
|
|
8
|
-
hasComposerProfile: boolean;
|
|
9
|
-
}
|
|
7
|
+
type LoginResult = void;
|
|
10
8
|
type StatusParams = void;
|
|
11
9
|
interface StatusResult {
|
|
12
10
|
idToken: string | null;
|
package/functions/customer.d.ts
CHANGED
|
@@ -73,11 +73,7 @@ export declare namespace CustomerFbFunctionsTypes {
|
|
|
73
73
|
currency: string;
|
|
74
74
|
created: number;
|
|
75
75
|
number: string;
|
|
76
|
-
description: string | null;
|
|
77
76
|
link: string | null;
|
|
78
|
-
isSubscription: boolean;
|
|
79
|
-
billingInterval: 'month' | 'year' | null;
|
|
80
|
-
isCreditNote: boolean;
|
|
81
77
|
}
|
|
82
78
|
interface GetInvoicesResult {
|
|
83
79
|
invoices: InvoiceItem[];
|
package/functions/event.js
CHANGED
|
@@ -26,4 +26,4 @@ var EventoFbFunctionsTypes;
|
|
|
26
26
|
(function (UndoAction) {
|
|
27
27
|
UndoAction["Undo"] = "undo";
|
|
28
28
|
})(UndoAction = EventoFbFunctionsTypes.UndoAction || (EventoFbFunctionsTypes.UndoAction = {}));
|
|
29
|
-
})(EventoFbFunctionsTypes
|
|
29
|
+
})(EventoFbFunctionsTypes = exports.EventoFbFunctionsTypes || (exports.EventoFbFunctionsTypes = {}));
|
package/functions/eventPlayer.js
CHANGED
|
@@ -10,4 +10,4 @@ var EventoPlayerFbFunctionsTypes;
|
|
|
10
10
|
SwitchAssistanceActions["Decline"] = "decline";
|
|
11
11
|
SwitchAssistanceActions["Undo"] = "undo";
|
|
12
12
|
})(SwitchAssistanceActions = EventoPlayerFbFunctionsTypes.SwitchAssistanceActions || (EventoPlayerFbFunctionsTypes.SwitchAssistanceActions = {}));
|
|
13
|
-
})(EventoPlayerFbFunctionsTypes
|
|
13
|
+
})(EventoPlayerFbFunctionsTypes = exports.EventoPlayerFbFunctionsTypes || (exports.EventoPlayerFbFunctionsTypes = {}));
|
|
@@ -13,4 +13,4 @@ var EventoRepertoryFbFunctionsTypes;
|
|
|
13
13
|
DownloadSheetMode["Merged"] = "merged";
|
|
14
14
|
DownloadSheetMode["Separated"] = "separated";
|
|
15
15
|
})(DownloadSheetMode = EventoRepertoryFbFunctionsTypes.DownloadSheetMode || (EventoRepertoryFbFunctionsTypes.DownloadSheetMode = {}));
|
|
16
|
-
})(EventoRepertoryFbFunctionsTypes
|
|
16
|
+
})(EventoRepertoryFbFunctionsTypes = exports.EventoRepertoryFbFunctionsTypes || (exports.EventoRepertoryFbFunctionsTypes = {}));
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import { InstrumentId } from '../helpers/instruments';
|
|
2
2
|
import { FileSectionId } from '../models/Group/Repertory/File/Section/types';
|
|
3
3
|
import { GroupRepertoireFile, GroupRepertoireVisibility, GroupRepertoryTagAlgoliaData } from '../models/Group/Repertory/types';
|
|
4
|
-
import { ComposerCompositionCover, ComposerCompositionProducts, ComposerCompositionSample, ComposerCompositionProductType } from '../models/supabase/Composer/Composition/types';
|
|
5
|
-
import { AcquiredProductsMap } from '../models/supabase/Composer/Composition/Acquisition/types';
|
|
6
|
-
import { Descendant } from '../helpers/slate';
|
|
7
|
-
import { CompositionGenreId } from '../helpers/compositionCategories/genres';
|
|
8
|
-
import { CompositionStyleId } from '../helpers/compositionCategories/styles';
|
|
9
|
-
import { MarketplaceCurrencyCode } from '../helpers/currencyConversion';
|
|
10
|
-
import { MusicStyleId } from '../helpers/musicStyles';
|
|
11
4
|
import { ThemeMediaType } from '../models/Repertory/types';
|
|
12
5
|
import { EventoRepertoryFbFunctionsTypes } from './eventRepertory';
|
|
13
6
|
export declare namespace GroupRepertoryFbFunctionsTypes {
|
|
@@ -143,108 +136,5 @@ export declare namespace GroupRepertoryFbFunctionsTypes {
|
|
|
143
136
|
value: number;
|
|
144
137
|
}
|
|
145
138
|
export type RateResult = void;
|
|
146
|
-
export interface AcquireCompositionParams {
|
|
147
|
-
groupId: string;
|
|
148
|
-
compositionId: string;
|
|
149
|
-
composerId: string;
|
|
150
|
-
productType: ComposerCompositionProductType;
|
|
151
|
-
buyerCurrency?: MarketplaceCurrencyCode;
|
|
152
|
-
}
|
|
153
|
-
export interface AcquireCompositionResult {
|
|
154
|
-
acquisitionId: string;
|
|
155
|
-
notificationKind?: 'created' | 'upgraded' | 'existing';
|
|
156
|
-
}
|
|
157
|
-
export interface CreateThemeFromAcquisitionParams {
|
|
158
|
-
acquisitionId: string;
|
|
159
|
-
groupId: string;
|
|
160
|
-
}
|
|
161
|
-
export interface CreateThemeFromAcquisitionResult {
|
|
162
|
-
themeId: string;
|
|
163
|
-
}
|
|
164
|
-
export interface CreateCompositionCheckoutParams {
|
|
165
|
-
groupId: string;
|
|
166
|
-
compositionId: string;
|
|
167
|
-
composerId: string;
|
|
168
|
-
productType: ComposerCompositionProductType;
|
|
169
|
-
buyerCurrency: MarketplaceCurrencyCode;
|
|
170
|
-
}
|
|
171
|
-
export interface CreateCompositionCheckoutResult {
|
|
172
|
-
url: string;
|
|
173
|
-
}
|
|
174
|
-
export interface UpgradeCompositionParams {
|
|
175
|
-
groupId: string;
|
|
176
|
-
compositionId: string;
|
|
177
|
-
composerId: string;
|
|
178
|
-
productType: ComposerCompositionProductType;
|
|
179
|
-
themeId: string;
|
|
180
|
-
buyerCurrency?: MarketplaceCurrencyCode;
|
|
181
|
-
}
|
|
182
|
-
export interface UpgradeCompositionResult {
|
|
183
|
-
url: string;
|
|
184
|
-
}
|
|
185
|
-
export interface TrackViewParams {
|
|
186
|
-
compositionId: string;
|
|
187
|
-
groupId: string;
|
|
188
|
-
}
|
|
189
|
-
export type TrackViewResult = void;
|
|
190
|
-
export interface AddFavoriteParams {
|
|
191
|
-
groupId: string;
|
|
192
|
-
compositionId: string;
|
|
193
|
-
userId: string;
|
|
194
|
-
}
|
|
195
|
-
export interface AddFavoriteResult {
|
|
196
|
-
id: string;
|
|
197
|
-
}
|
|
198
|
-
export interface RemoveFavoriteParams {
|
|
199
|
-
groupId: string;
|
|
200
|
-
compositionId: string;
|
|
201
|
-
}
|
|
202
|
-
export type RemoveFavoriteResult = void;
|
|
203
|
-
export interface GetFavoritesParams {
|
|
204
|
-
groupId: string;
|
|
205
|
-
}
|
|
206
|
-
export interface GetFavoritesResult {
|
|
207
|
-
compositionIds: string[];
|
|
208
|
-
}
|
|
209
|
-
export interface GetAcquisitionsParams {
|
|
210
|
-
customerId?: string;
|
|
211
|
-
compositionId?: string;
|
|
212
|
-
acquiredByGroupId?: string;
|
|
213
|
-
acquisitionId?: string;
|
|
214
|
-
}
|
|
215
|
-
export interface GetAcquisitionsResultItem {
|
|
216
|
-
id: string;
|
|
217
|
-
compositionId: string;
|
|
218
|
-
customerId: string;
|
|
219
|
-
acquiredProducts: AcquiredProductsMap;
|
|
220
|
-
refundStatus: string;
|
|
221
|
-
refundedAt: string | null;
|
|
222
|
-
refundedCents: number;
|
|
223
|
-
stripeRefundId: string | null;
|
|
224
|
-
acquiredByUserId: string;
|
|
225
|
-
acquiredByGroupId: string;
|
|
226
|
-
created_at: string;
|
|
227
|
-
composerComposition: {
|
|
228
|
-
id: string;
|
|
229
|
-
title: string;
|
|
230
|
-
subtitle: string | null;
|
|
231
|
-
description: Descendant[];
|
|
232
|
-
cover: ComposerCompositionCover | null;
|
|
233
|
-
samples: Record<string, ComposerCompositionSample>;
|
|
234
|
-
products: ComposerCompositionProducts;
|
|
235
|
-
genresIds: CompositionGenreId[];
|
|
236
|
-
stylesIds: CompositionStyleId[];
|
|
237
|
-
instrumentationIds: MusicStyleId[];
|
|
238
|
-
difficulty: number | null;
|
|
239
|
-
duration: number | null;
|
|
240
|
-
uploaderComposerId: string;
|
|
241
|
-
uploaderComposerRole: string | null;
|
|
242
|
-
externalComposerName: string | null;
|
|
243
|
-
composer: {
|
|
244
|
-
artisticName: string | null;
|
|
245
|
-
};
|
|
246
|
-
} | null;
|
|
247
|
-
}
|
|
248
|
-
export type GetAcquisitionsResult = GetAcquisitionsResultItem[];
|
|
249
139
|
export {};
|
|
250
140
|
}
|
package/functions/index.d.ts
CHANGED
|
@@ -7,25 +7,6 @@ export declare enum FbFunctionName {
|
|
|
7
7
|
CommunicationEdit = "communication-edit",
|
|
8
8
|
CommunicationPublish = "communication-publish",
|
|
9
9
|
CommunicationRemove = "communication-remove",
|
|
10
|
-
ComposerGetStatus = "composer-getStatus",
|
|
11
|
-
ComposerPublish = "composer-publish",
|
|
12
|
-
ComposerSuperAdminRemove = "composer-superAdminRemove",
|
|
13
|
-
ComposerCompositionPublish = "composerComposition-publish",
|
|
14
|
-
ComposerCompositionEdit = "composerComposition-edit",
|
|
15
|
-
ComposerCompositionIdentifyInstruments = "composerComposition-identifyInstruments",
|
|
16
|
-
ComposerCompositionIdentifyInstrumentsFromFileNames = "composerComposition-identifyInstrumentsFromFileNames",
|
|
17
|
-
ComposerCompositionDownloadFiles = "composerComposition-downloadFiles",
|
|
18
|
-
ComposerCompositionDownloadFilesBySection = "composerComposition-downloadFilesBySection",
|
|
19
|
-
ComposerCompositionCloneFiles = "composerComposition-cloneFiles",
|
|
20
|
-
ComposerCompositionOnCreate = "composerComposition-onCreate",
|
|
21
|
-
ComposerCompositionOnUpdate = "composerComposition-onUpdate",
|
|
22
|
-
ComposerCompositionSuperAdminRemove = "composerComposition-superAdminRemove",
|
|
23
|
-
ComposerNotificationSendWeeklySummaries = "composerNotification-sendWeeklySummaries",
|
|
24
|
-
ComposerNotificationSendUpcomingPerformanceReminders = "composerNotification-sendUpcomingPerformanceReminders",
|
|
25
|
-
ComposerNotificationRetryFailedEmails = "composerNotification-retryFailedEmails",
|
|
26
|
-
ComposerPayoutCreatePayout = "composerPayout-createPayout",
|
|
27
|
-
ComposerPayoutCancelPayout = "composerPayout-cancelPayout",
|
|
28
|
-
ComposerPayoutSuperAdminResolve = "composerPayout-superAdminResolve",
|
|
29
10
|
CustomerAddConfirmedAdmin = "customer-addConfirmedAdmin",
|
|
30
11
|
CustomerCreate = "customer-create",
|
|
31
12
|
CustomerEdit = "customer-edit",
|
|
@@ -124,20 +105,9 @@ export declare enum FbFunctionName {
|
|
|
124
105
|
GroupRepertoryPublish = "groupRepertory-publish",
|
|
125
106
|
GroupRepertoryRate = "groupRepertory-rate",
|
|
126
107
|
GroupRepertoryRemove = "groupRepertory-remove",
|
|
127
|
-
GroupRepertoryAcquireComposition = "groupRepertory-acquireComposition",
|
|
128
|
-
GroupRepertoryCreateThemeFromAcquisition = "groupRepertory-createThemeFromAcquisition",
|
|
129
|
-
GroupRepertoryCreateCompositionCheckout = "groupRepertory-createCompositionCheckout",
|
|
130
|
-
GroupRepertoryUpgradeComposition = "groupRepertory-upgradeComposition",
|
|
131
|
-
GroupRepertoryTrackView = "groupRepertory-trackView",
|
|
132
|
-
GroupRepertoryAddFavorite = "groupRepertory-addFavorite",
|
|
133
|
-
GroupRepertoryRemoveFavorite = "groupRepertory-removeFavorite",
|
|
134
|
-
GroupRepertoryGetFavorites = "groupRepertory-getFavorites",
|
|
135
|
-
GroupRepertoryGetAcquisitions = "groupRepertory-getAcquisitions",
|
|
136
108
|
GroupSendInvitationEmail = "group-sendInvitationEmail",
|
|
137
109
|
MetricsWeekly = "metrics-week",
|
|
138
110
|
MiscAddSubscriber = "misc-addSubscriber",
|
|
139
|
-
MiscGetMarketplaceExchangeRate = "misc-getMarketplaceExchangeRate",
|
|
140
|
-
MiscRefreshMarketplaceRates = "misc-refreshMarketplaceRates",
|
|
141
111
|
MiscScheduledFirestoreExport = "misc-scheduledFirestoreExport",
|
|
142
112
|
MiscValidateUsername = "misc-validateUsername",
|
|
143
113
|
NotificationMarkAllAsReaded = "notification-markAllAsReaded",
|
package/functions/index.js
CHANGED
|
@@ -11,25 +11,6 @@ var FbFunctionName;
|
|
|
11
11
|
FbFunctionName["CommunicationEdit"] = "communication-edit";
|
|
12
12
|
FbFunctionName["CommunicationPublish"] = "communication-publish";
|
|
13
13
|
FbFunctionName["CommunicationRemove"] = "communication-remove";
|
|
14
|
-
FbFunctionName["ComposerGetStatus"] = "composer-getStatus";
|
|
15
|
-
FbFunctionName["ComposerPublish"] = "composer-publish";
|
|
16
|
-
FbFunctionName["ComposerSuperAdminRemove"] = "composer-superAdminRemove";
|
|
17
|
-
FbFunctionName["ComposerCompositionPublish"] = "composerComposition-publish";
|
|
18
|
-
FbFunctionName["ComposerCompositionEdit"] = "composerComposition-edit";
|
|
19
|
-
FbFunctionName["ComposerCompositionIdentifyInstruments"] = "composerComposition-identifyInstruments";
|
|
20
|
-
FbFunctionName["ComposerCompositionIdentifyInstrumentsFromFileNames"] = "composerComposition-identifyInstrumentsFromFileNames";
|
|
21
|
-
FbFunctionName["ComposerCompositionDownloadFiles"] = "composerComposition-downloadFiles";
|
|
22
|
-
FbFunctionName["ComposerCompositionDownloadFilesBySection"] = "composerComposition-downloadFilesBySection";
|
|
23
|
-
FbFunctionName["ComposerCompositionCloneFiles"] = "composerComposition-cloneFiles";
|
|
24
|
-
FbFunctionName["ComposerCompositionOnCreate"] = "composerComposition-onCreate";
|
|
25
|
-
FbFunctionName["ComposerCompositionOnUpdate"] = "composerComposition-onUpdate";
|
|
26
|
-
FbFunctionName["ComposerCompositionSuperAdminRemove"] = "composerComposition-superAdminRemove";
|
|
27
|
-
FbFunctionName["ComposerNotificationSendWeeklySummaries"] = "composerNotification-sendWeeklySummaries";
|
|
28
|
-
FbFunctionName["ComposerNotificationSendUpcomingPerformanceReminders"] = "composerNotification-sendUpcomingPerformanceReminders";
|
|
29
|
-
FbFunctionName["ComposerNotificationRetryFailedEmails"] = "composerNotification-retryFailedEmails";
|
|
30
|
-
FbFunctionName["ComposerPayoutCreatePayout"] = "composerPayout-createPayout";
|
|
31
|
-
FbFunctionName["ComposerPayoutCancelPayout"] = "composerPayout-cancelPayout";
|
|
32
|
-
FbFunctionName["ComposerPayoutSuperAdminResolve"] = "composerPayout-superAdminResolve";
|
|
33
14
|
FbFunctionName["CustomerAddConfirmedAdmin"] = "customer-addConfirmedAdmin";
|
|
34
15
|
FbFunctionName["CustomerCreate"] = "customer-create";
|
|
35
16
|
FbFunctionName["CustomerEdit"] = "customer-edit";
|
|
@@ -128,20 +109,9 @@ var FbFunctionName;
|
|
|
128
109
|
FbFunctionName["GroupRepertoryPublish"] = "groupRepertory-publish";
|
|
129
110
|
FbFunctionName["GroupRepertoryRate"] = "groupRepertory-rate";
|
|
130
111
|
FbFunctionName["GroupRepertoryRemove"] = "groupRepertory-remove";
|
|
131
|
-
FbFunctionName["GroupRepertoryAcquireComposition"] = "groupRepertory-acquireComposition";
|
|
132
|
-
FbFunctionName["GroupRepertoryCreateThemeFromAcquisition"] = "groupRepertory-createThemeFromAcquisition";
|
|
133
|
-
FbFunctionName["GroupRepertoryCreateCompositionCheckout"] = "groupRepertory-createCompositionCheckout";
|
|
134
|
-
FbFunctionName["GroupRepertoryUpgradeComposition"] = "groupRepertory-upgradeComposition";
|
|
135
|
-
FbFunctionName["GroupRepertoryTrackView"] = "groupRepertory-trackView";
|
|
136
|
-
FbFunctionName["GroupRepertoryAddFavorite"] = "groupRepertory-addFavorite";
|
|
137
|
-
FbFunctionName["GroupRepertoryRemoveFavorite"] = "groupRepertory-removeFavorite";
|
|
138
|
-
FbFunctionName["GroupRepertoryGetFavorites"] = "groupRepertory-getFavorites";
|
|
139
|
-
FbFunctionName["GroupRepertoryGetAcquisitions"] = "groupRepertory-getAcquisitions";
|
|
140
112
|
FbFunctionName["GroupSendInvitationEmail"] = "group-sendInvitationEmail";
|
|
141
113
|
FbFunctionName["MetricsWeekly"] = "metrics-week";
|
|
142
114
|
FbFunctionName["MiscAddSubscriber"] = "misc-addSubscriber";
|
|
143
|
-
FbFunctionName["MiscGetMarketplaceExchangeRate"] = "misc-getMarketplaceExchangeRate";
|
|
144
|
-
FbFunctionName["MiscRefreshMarketplaceRates"] = "misc-refreshMarketplaceRates";
|
|
145
115
|
FbFunctionName["MiscScheduledFirestoreExport"] = "misc-scheduledFirestoreExport";
|
|
146
116
|
FbFunctionName["MiscValidateUsername"] = "misc-validateUsername";
|
|
147
117
|
FbFunctionName["NotificationMarkAllAsReaded"] = "notification-markAllAsReaded";
|
|
@@ -236,4 +206,4 @@ var FbFunctionName;
|
|
|
236
206
|
FbFunctionName["InventoryItemAdd"] = "inventoryItem-add";
|
|
237
207
|
FbFunctionName["InventoryItemDelete"] = "inventoryItem-remove";
|
|
238
208
|
FbFunctionName["InventoryItemEdit"] = "inventoryItem-edit";
|
|
239
|
-
})(FbFunctionName
|
|
209
|
+
})(FbFunctionName = exports.FbFunctionName || (exports.FbFunctionName = {}));
|
package/functions/misc.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { CurrencyExchangeRateSnapshot, MarketplaceCurrencyCode } from '../helpers/currency';
|
|
2
1
|
export declare namespace MiscFbFunctionsTypes {
|
|
3
2
|
interface ValidateUsernameParams {
|
|
4
3
|
username: string;
|
|
@@ -16,9 +15,4 @@ export declare namespace MiscFbFunctionsTypes {
|
|
|
16
15
|
lang: string;
|
|
17
16
|
}
|
|
18
17
|
type MiscAddSubscriberResult = void;
|
|
19
|
-
interface GetMarketplaceExchangeRateParams {
|
|
20
|
-
baseCurrency: MarketplaceCurrencyCode;
|
|
21
|
-
targetCurrency: MarketplaceCurrencyCode;
|
|
22
|
-
}
|
|
23
|
-
type GetMarketplaceExchangeRateResult = CurrencyExchangeRateSnapshot;
|
|
24
18
|
}
|
package/functions/regions.js
CHANGED
|
@@ -7,7 +7,7 @@ var GCloudRegions;
|
|
|
7
7
|
GCloudRegions["EuropeWest1"] = "europe-west1";
|
|
8
8
|
GCloudRegions["EuropeWest6"] = "europe-west6";
|
|
9
9
|
GCloudRegions["UsCentral1"] = "us-central1";
|
|
10
|
-
})(GCloudRegions
|
|
10
|
+
})(GCloudRegions = exports.GCloudRegions || (exports.GCloudRegions = {}));
|
|
11
11
|
const defaultRegion = GCloudRegions.UsCentral1;
|
|
12
12
|
const regionByFunctions = {
|
|
13
13
|
[index_1.FbFunctionName.AuthGetToken]: GCloudRegions.EuropeWest6,
|
|
@@ -18,25 +18,6 @@ const regionByFunctions = {
|
|
|
18
18
|
[index_1.FbFunctionName.CommunicationEdit]: GCloudRegions.UsCentral1,
|
|
19
19
|
[index_1.FbFunctionName.CommunicationPublish]: GCloudRegions.UsCentral1,
|
|
20
20
|
[index_1.FbFunctionName.CommunicationRemove]: GCloudRegions.UsCentral1,
|
|
21
|
-
[index_1.FbFunctionName.ComposerGetStatus]: GCloudRegions.EuropeWest6,
|
|
22
|
-
[index_1.FbFunctionName.ComposerPublish]: GCloudRegions.EuropeWest6,
|
|
23
|
-
[index_1.FbFunctionName.ComposerSuperAdminRemove]: GCloudRegions.EuropeWest6,
|
|
24
|
-
[index_1.FbFunctionName.ComposerCompositionPublish]: GCloudRegions.EuropeWest6,
|
|
25
|
-
[index_1.FbFunctionName.ComposerCompositionEdit]: GCloudRegions.EuropeWest6,
|
|
26
|
-
[index_1.FbFunctionName.ComposerCompositionIdentifyInstruments]: GCloudRegions.EuropeWest6,
|
|
27
|
-
[index_1.FbFunctionName.ComposerCompositionIdentifyInstrumentsFromFileNames]: GCloudRegions.EuropeWest6,
|
|
28
|
-
[index_1.FbFunctionName.ComposerCompositionDownloadFiles]: GCloudRegions.EuropeWest6,
|
|
29
|
-
[index_1.FbFunctionName.ComposerCompositionDownloadFilesBySection]: GCloudRegions.EuropeWest6,
|
|
30
|
-
[index_1.FbFunctionName.ComposerCompositionCloneFiles]: GCloudRegions.EuropeWest6,
|
|
31
|
-
[index_1.FbFunctionName.ComposerCompositionOnCreate]: GCloudRegions.EuropeWest6,
|
|
32
|
-
[index_1.FbFunctionName.ComposerCompositionOnUpdate]: GCloudRegions.EuropeWest6,
|
|
33
|
-
[index_1.FbFunctionName.ComposerCompositionSuperAdminRemove]: GCloudRegions.EuropeWest6,
|
|
34
|
-
[index_1.FbFunctionName.ComposerNotificationSendWeeklySummaries]: GCloudRegions.EuropeWest6,
|
|
35
|
-
[index_1.FbFunctionName.ComposerNotificationSendUpcomingPerformanceReminders]: GCloudRegions.EuropeWest6,
|
|
36
|
-
[index_1.FbFunctionName.ComposerNotificationRetryFailedEmails]: GCloudRegions.EuropeWest6,
|
|
37
|
-
[index_1.FbFunctionName.ComposerPayoutCreatePayout]: GCloudRegions.EuropeWest6,
|
|
38
|
-
[index_1.FbFunctionName.ComposerPayoutCancelPayout]: GCloudRegions.EuropeWest6,
|
|
39
|
-
[index_1.FbFunctionName.ComposerPayoutSuperAdminResolve]: GCloudRegions.EuropeWest6,
|
|
40
21
|
[index_1.FbFunctionName.CustomerAddConfirmedAdmin]: GCloudRegions.EuropeWest6,
|
|
41
22
|
[index_1.FbFunctionName.CustomerCreate]: GCloudRegions.EuropeWest6,
|
|
42
23
|
[index_1.FbFunctionName.CustomerEdit]: GCloudRegions.EuropeWest6,
|
|
@@ -135,20 +116,9 @@ const regionByFunctions = {
|
|
|
135
116
|
[index_1.FbFunctionName.GroupRepertoryPublish]: GCloudRegions.UsCentral1,
|
|
136
117
|
[index_1.FbFunctionName.GroupRepertoryRate]: GCloudRegions.EuropeWest6,
|
|
137
118
|
[index_1.FbFunctionName.GroupRepertoryRemove]: GCloudRegions.UsCentral1,
|
|
138
|
-
[index_1.FbFunctionName.GroupRepertoryAcquireComposition]: GCloudRegions.EuropeWest6,
|
|
139
|
-
[index_1.FbFunctionName.GroupRepertoryCreateThemeFromAcquisition]: GCloudRegions.EuropeWest6,
|
|
140
|
-
[index_1.FbFunctionName.GroupRepertoryCreateCompositionCheckout]: GCloudRegions.EuropeWest6,
|
|
141
|
-
[index_1.FbFunctionName.GroupRepertoryUpgradeComposition]: GCloudRegions.EuropeWest6,
|
|
142
|
-
[index_1.FbFunctionName.GroupRepertoryTrackView]: GCloudRegions.EuropeWest6,
|
|
143
|
-
[index_1.FbFunctionName.GroupRepertoryAddFavorite]: GCloudRegions.EuropeWest6,
|
|
144
|
-
[index_1.FbFunctionName.GroupRepertoryRemoveFavorite]: GCloudRegions.EuropeWest6,
|
|
145
|
-
[index_1.FbFunctionName.GroupRepertoryGetFavorites]: GCloudRegions.EuropeWest6,
|
|
146
|
-
[index_1.FbFunctionName.GroupRepertoryGetAcquisitions]: GCloudRegions.EuropeWest6,
|
|
147
119
|
[index_1.FbFunctionName.GroupSendInvitationEmail]: GCloudRegions.EuropeWest6,
|
|
148
120
|
[index_1.FbFunctionName.MetricsWeekly]: GCloudRegions.EuropeWest6,
|
|
149
121
|
[index_1.FbFunctionName.MiscAddSubscriber]: GCloudRegions.EuropeWest6,
|
|
150
|
-
[index_1.FbFunctionName.MiscGetMarketplaceExchangeRate]: GCloudRegions.EuropeWest6,
|
|
151
|
-
[index_1.FbFunctionName.MiscRefreshMarketplaceRates]: GCloudRegions.EuropeWest6,
|
|
152
122
|
[index_1.FbFunctionName.MiscScheduledFirestoreExport]: GCloudRegions.EuropeWest6,
|
|
153
123
|
[index_1.FbFunctionName.MiscValidateUsername]: GCloudRegions.UsCentral1,
|
|
154
124
|
[index_1.FbFunctionName.NotificationMarkAllAsReaded]: GCloudRegions.UsCentral1,
|
package/helpers/appScenes.js
CHANGED
package/helpers/auth.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { FbFunctionName } from '../functions';
|
|
2
|
+
import { LanguagesTypes } from '../lang';
|
|
1
3
|
import { CustomerRoles } from '../models/Customer/types';
|
|
2
4
|
import { GroupPlayerRole } from '../models/Group/Player/types';
|
|
3
5
|
import { PartnershipRoles } from '../models/Partnership/types';
|
|
@@ -8,9 +10,7 @@ export interface AuthUserClaims {
|
|
|
8
10
|
customers?: Record<string, CustomerRoles>;
|
|
9
11
|
superAdmin?: boolean;
|
|
10
12
|
besm?: boolean;
|
|
11
|
-
role?: 'authenticated';
|
|
12
13
|
}
|
|
13
|
-
export declare const parseAuthUserClaims: (claims: unknown) => AuthUserClaims;
|
|
14
14
|
export declare enum AuthErrors {
|
|
15
15
|
NoSuperAdmin = "error.auth.notSuperadmin",
|
|
16
16
|
NoGroupAdmin = "error.auth.notGroupAdmin",
|
|
@@ -19,3 +19,10 @@ export declare enum AuthErrors {
|
|
|
19
19
|
NoPartnerhispAdmin = "error.auth.noPartnershipAdmin",
|
|
20
20
|
Unauthenticated = "error.auth.unauthenticated"
|
|
21
21
|
}
|
|
22
|
+
export interface AuthURLParams {
|
|
23
|
+
error?: string;
|
|
24
|
+
return_to?: string;
|
|
25
|
+
callbackFbName?: FbFunctionName;
|
|
26
|
+
callbackFbParam?: string;
|
|
27
|
+
}
|
|
28
|
+
export declare const getAuthURL: (path: string, lang: LanguagesTypes, params?: AuthURLParams) => string;
|
package/helpers/auth.js
CHANGED
|
@@ -1,37 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const types_3 = require("../models/Partnership/types");
|
|
7
|
-
const isObject = (value) => typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
8
|
-
const getStringEnumValues = (values) => new Set(Object.values(values));
|
|
9
|
-
const groupPlayerRoles = getStringEnumValues(types_2.GroupPlayerRole);
|
|
10
|
-
const partnershipRoles = getStringEnumValues(types_3.PartnershipRoles);
|
|
11
|
-
const customerRoles = getStringEnumValues(types_1.CustomerRoles);
|
|
12
|
-
const parseRoleRecord = (value, allowedRoles) => {
|
|
13
|
-
if (!isObject(value))
|
|
14
|
-
return undefined;
|
|
15
|
-
const entries = Object.entries(value).filter((entry) => {
|
|
16
|
-
const [, role] = entry;
|
|
17
|
-
return typeof role === 'string' && allowedRoles.has(role);
|
|
18
|
-
});
|
|
19
|
-
return entries.length > 0 ? Object.fromEntries(entries) : undefined;
|
|
20
|
-
};
|
|
21
|
-
const parseAuthUserClaims = (claims) => {
|
|
22
|
-
if (!isObject(claims))
|
|
23
|
-
return {};
|
|
24
|
-
return {
|
|
25
|
-
groups: parseRoleRecord(claims.groups, groupPlayerRoles),
|
|
26
|
-
federation: typeof claims.federation === 'string' ? claims.federation : undefined,
|
|
27
|
-
partnerships: parseRoleRecord(claims.partnerships, partnershipRoles),
|
|
28
|
-
customers: parseRoleRecord(claims.customers, customerRoles),
|
|
29
|
-
superAdmin: typeof claims.superAdmin === 'boolean' ? claims.superAdmin : undefined,
|
|
30
|
-
besm: typeof claims.besm === 'boolean' ? claims.besm : undefined,
|
|
31
|
-
role: claims.role === 'authenticated' ? 'authenticated' : undefined,
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
exports.parseAuthUserClaims = parseAuthUserClaims;
|
|
3
|
+
exports.getAuthURL = exports.AuthErrors = void 0;
|
|
4
|
+
const lang_1 = require("../lang");
|
|
5
|
+
const AUTH_HOST = 'https://auth.glissandoo.com';
|
|
35
6
|
var AuthErrors;
|
|
36
7
|
(function (AuthErrors) {
|
|
37
8
|
AuthErrors["NoSuperAdmin"] = "error.auth.notSuperadmin";
|
|
@@ -40,4 +11,14 @@ var AuthErrors;
|
|
|
40
11
|
AuthErrors["NoFederationAdmin"] = "error.auth.noFederationAdmin";
|
|
41
12
|
AuthErrors["NoPartnerhispAdmin"] = "error.auth.noPartnershipAdmin";
|
|
42
13
|
AuthErrors["Unauthenticated"] = "error.auth.unauthenticated";
|
|
43
|
-
})(AuthErrors
|
|
14
|
+
})(AuthErrors = exports.AuthErrors || (exports.AuthErrors = {}));
|
|
15
|
+
const getAuthURL = (path, lang, params) => {
|
|
16
|
+
const url = new URL(lang === lang_1.defaultLocale ? path : [lang, path].join('/'), AUTH_HOST);
|
|
17
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
18
|
+
if (typeof value === 'string') {
|
|
19
|
+
url.searchParams.set(key, value);
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
return url.toString();
|
|
23
|
+
};
|
|
24
|
+
exports.getAuthURL = getAuthURL;
|
package/helpers/badges.js
CHANGED
|
@@ -11,7 +11,7 @@ var BadgesTypes;
|
|
|
11
11
|
BadgesTypes["AccPractices"] = "badgeAccPractices";
|
|
12
12
|
BadgesTypes["StrikePractices"] = "badgeStrikePractices";
|
|
13
13
|
BadgesTypes["AnswerEvents"] = "badgeAnswerEvents";
|
|
14
|
-
})(BadgesTypes
|
|
14
|
+
})(BadgesTypes = exports.BadgesTypes || (exports.BadgesTypes = {}));
|
|
15
15
|
exports.badgesLevels = {
|
|
16
16
|
badgeAccPerformances: {
|
|
17
17
|
1: {
|
package/helpers/collections.js
CHANGED
|
@@ -42,8 +42,8 @@ var CollectionNames;
|
|
|
42
42
|
CollectionNames["Inventory"] = "inventory";
|
|
43
43
|
CollectionNames["InventoryItems"] = "inventoryItems";
|
|
44
44
|
CollectionNames["Helpers"] = "helpers";
|
|
45
|
-
})(CollectionNames
|
|
45
|
+
})(CollectionNames = exports.CollectionNames || (exports.CollectionNames = {}));
|
|
46
46
|
var HelpersDocNames;
|
|
47
47
|
(function (HelpersDocNames) {
|
|
48
48
|
HelpersDocNames["MinVersion"] = "minVersion";
|
|
49
|
-
})(HelpersDocNames
|
|
49
|
+
})(HelpersDocNames = exports.HelpersDocNames || (exports.HelpersDocNames = {}));
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { LanguagesTypes } from '../../lang';
|
|
2
|
-
import { Descendant } from '../slate';
|
|
3
2
|
export declare enum CommunicationTemplateType {
|
|
4
3
|
NewGroup = "newGroup",
|
|
5
4
|
NewMember = "newMember"
|
|
6
5
|
}
|
|
7
6
|
export interface CommunicationTemplateData {
|
|
8
7
|
title: string;
|
|
9
|
-
message:
|
|
8
|
+
message: any;
|
|
10
9
|
}
|
|
11
10
|
export type CommunicationTemplateLangs = Record<LanguagesTypes, CommunicationTemplateData>;
|
|
12
11
|
export interface CommunicationTemplatesVars {
|
|
@@ -29,5 +28,5 @@ export interface CommunicationTemplatesVars {
|
|
|
29
28
|
}
|
|
30
29
|
declare const templates: Record<CommunicationTemplateType, CommunicationTemplateLangs>;
|
|
31
30
|
export declare const replaceKeysVarsString: <T extends string, D extends Record<string, string>>(text: T, meta: D) => string;
|
|
32
|
-
export declare function replaceKeysVarsInNodes<T extends
|
|
31
|
+
export declare function replaceKeysVarsInNodes<T extends Record<string, any>, D extends Record<string, string>>(nodes: T[], meta: D): T[];
|
|
33
32
|
export default templates;
|
|
@@ -3,15 +3,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.replaceKeysVarsString = exports.CommunicationTemplateType = void 0;
|
|
7
|
-
exports.replaceKeysVarsInNodes = replaceKeysVarsInNodes;
|
|
6
|
+
exports.replaceKeysVarsInNodes = exports.replaceKeysVarsString = exports.CommunicationTemplateType = void 0;
|
|
8
7
|
const newGroup_1 = __importDefault(require("./newGroup"));
|
|
9
8
|
const newMember_1 = __importDefault(require("./newMember"));
|
|
10
9
|
var CommunicationTemplateType;
|
|
11
10
|
(function (CommunicationTemplateType) {
|
|
12
11
|
CommunicationTemplateType["NewGroup"] = "newGroup";
|
|
13
12
|
CommunicationTemplateType["NewMember"] = "newMember";
|
|
14
|
-
})(CommunicationTemplateType
|
|
13
|
+
})(CommunicationTemplateType = exports.CommunicationTemplateType || (exports.CommunicationTemplateType = {}));
|
|
15
14
|
const templates = {
|
|
16
15
|
newGroup: newGroup_1.default,
|
|
17
16
|
newMember: newMember_1.default,
|
|
@@ -30,18 +29,19 @@ const replaceKeysVarsString = (text, meta) => {
|
|
|
30
29
|
exports.replaceKeysVarsString = replaceKeysVarsString;
|
|
31
30
|
function replaceKeysVarsInNodes(nodes, meta) {
|
|
32
31
|
return nodes.map((node) => {
|
|
32
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
33
33
|
const newNode = { ...node };
|
|
34
34
|
for (const key in newNode) {
|
|
35
35
|
if (typeof newNode[key] === 'string') {
|
|
36
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
37
|
-
// @ts-ignore — typeof guard narrows this, but TS <5.9 can't infer it
|
|
38
36
|
newNode[key] = (0, exports.replaceKeysVarsString)(newNode[key], meta);
|
|
39
37
|
}
|
|
40
38
|
else if (Array.isArray(newNode[key])) {
|
|
39
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
41
40
|
newNode[key] = replaceKeysVarsInNodes(newNode[key], meta);
|
|
42
41
|
}
|
|
43
42
|
}
|
|
44
43
|
return newNode;
|
|
45
44
|
});
|
|
46
45
|
}
|
|
46
|
+
exports.replaceKeysVarsInNodes = replaceKeysVarsInNodes;
|
|
47
47
|
exports.default = templates;
|
package/helpers/dlinks.js
CHANGED
|
@@ -9,4 +9,4 @@ var DLinkActions;
|
|
|
9
9
|
DLinkActions["Event"] = "event";
|
|
10
10
|
DLinkActions["RollCall"] = "rollcall";
|
|
11
11
|
DLinkActions["Offer"] = "offer";
|
|
12
|
-
})(DLinkActions
|
|
12
|
+
})(DLinkActions = exports.DLinkActions || (exports.DLinkActions = {}));
|
package/helpers/errors.d.ts
CHANGED
|
@@ -29,7 +29,6 @@ export declare enum HttpsErrorMessages {
|
|
|
29
29
|
InvalidPartnership = "error.partnership.noValid",
|
|
30
30
|
InvalidAdminPartnership = "error.partnership.noAdmin",
|
|
31
31
|
InvalidPartnershipLastAdmin = "error.partnership.lastAdmin",
|
|
32
|
-
InvalidComposer = "error.composer.noValid",
|
|
33
32
|
PartnershipSepaCreditorInfoMissing = "error.partnership.sepaCreditorInfoMissing",
|
|
34
33
|
InvalidPartnershipPartner = "error.partnershipPartner.noValid",
|
|
35
34
|
PartnershipPartnerNotSelf = "error.partnershipPartner.notSelf",
|
package/helpers/errors.js
CHANGED
|
@@ -30,7 +30,6 @@ var HttpsErrorMessages;
|
|
|
30
30
|
HttpsErrorMessages["InvalidPartnership"] = "error.partnership.noValid";
|
|
31
31
|
HttpsErrorMessages["InvalidAdminPartnership"] = "error.partnership.noAdmin";
|
|
32
32
|
HttpsErrorMessages["InvalidPartnershipLastAdmin"] = "error.partnership.lastAdmin";
|
|
33
|
-
HttpsErrorMessages["InvalidComposer"] = "error.composer.noValid";
|
|
34
33
|
HttpsErrorMessages["PartnershipSepaCreditorInfoMissing"] = "error.partnership.sepaCreditorInfoMissing";
|
|
35
34
|
HttpsErrorMessages["InvalidPartnershipPartner"] = "error.partnershipPartner.noValid";
|
|
36
35
|
HttpsErrorMessages["PartnershipPartnerNotSelf"] = "error.partnershipPartner.notSelf";
|
|
@@ -72,4 +71,4 @@ var HttpsErrorMessages;
|
|
|
72
71
|
HttpsErrorMessages["CustomerHasGroups"] = "error.customer.hasGroups";
|
|
73
72
|
HttpsErrorMessages["GroupPlayerEditInstumentsNotAllowed"] = "error.groupPlayer.editInstrumentsNotAllowed";
|
|
74
73
|
HttpsErrorMessages["InvalidEmail"] = "error.email.noValid";
|
|
75
|
-
})(HttpsErrorMessages
|
|
74
|
+
})(HttpsErrorMessages = exports.HttpsErrorMessages || (exports.HttpsErrorMessages = {}));
|
|
@@ -0,0 +1,6 @@
|
|
|
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,3 @@
|
|
|
1
|
-
import { Ordered } from '../objects';
|
|
2
1
|
export declare enum DefaultInstrumentId {
|
|
3
2
|
Accordion = "accordion",
|
|
4
3
|
Agogo = "agogo",
|
|
@@ -45,7 +44,6 @@ export declare enum DefaultInstrumentId {
|
|
|
45
44
|
DrumSet = "drumSet",
|
|
46
45
|
Dulzaina = "dulzaina",
|
|
47
46
|
DulzainaFa = "dulzaina-fa",
|
|
48
|
-
Electronics = "electronics",
|
|
49
47
|
ElectricGuitar = "electricGuitar",
|
|
50
48
|
EnglishHorn = "englishHorn",
|
|
51
49
|
Escort = "escort",
|
|
@@ -85,7 +83,6 @@ export declare enum DefaultInstrumentId {
|
|
|
85
83
|
MezzoSoprano = "mezzosoproano",
|
|
86
84
|
Multipercussion = "multipercussion",
|
|
87
85
|
MusicConductor = "musicConductor",
|
|
88
|
-
Narrator = "narrator",
|
|
89
86
|
Oboe = "oboe",
|
|
90
87
|
Oboe1 = "oboe-1",
|
|
91
88
|
Oboe2 = "oboe-2",
|
|
@@ -148,17 +145,3 @@ export declare const getVoicesOf: (id: DefaultInstrumentId) => DefaultInstrument
|
|
|
148
145
|
export declare const InstrumentIcons: Record<DefaultInstrumentId, string>;
|
|
149
146
|
export type CustomInstrumentId = `customInstrument-${string}`;
|
|
150
147
|
export type InstrumentId = CustomInstrumentId | DefaultInstrumentId;
|
|
151
|
-
export interface CustomInstrument extends Ordered {
|
|
152
|
-
icon: string;
|
|
153
|
-
name: string;
|
|
154
|
-
basedOnInstrument: DefaultInstrumentId;
|
|
155
|
-
}
|
|
156
|
-
export interface ACustomInstrument extends CustomInstrument {
|
|
157
|
-
id: CustomInstrumentId;
|
|
158
|
-
}
|
|
159
|
-
export type DefaultInstrument = Ordered;
|
|
160
|
-
export interface ADefaultInstrument extends DefaultInstrument {
|
|
161
|
-
id: DefaultInstrumentId;
|
|
162
|
-
}
|
|
163
|
-
export type AInstrument = ADefaultInstrument | ACustomInstrument;
|
|
164
|
-
export type InstrumentsRecord = Partial<Record<DefaultInstrumentId, DefaultInstrument>> & Record<CustomInstrumentId, CustomInstrument>;
|