@glissandoo/lib 1.124.2 → 1.125.0-dev.228.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/functions/auth.d.ts +3 -1
- package/functions/composer.d.ts +13 -0
- package/functions/composerComposition.d.ts +102 -0
- package/functions/composerNotification.d.ts +38 -0
- package/functions/composerPayout.d.ts +20 -0
- package/functions/customer.d.ts +4 -0
- package/functions/event.js +1 -1
- package/functions/eventPlayer.js +1 -1
- package/functions/eventRepertory.d.ts +2 -0
- package/functions/eventRepertory.js +1 -1
- package/functions/groupRepertory.d.ts +110 -0
- package/functions/index.d.ts +36 -0
- package/functions/index.js +37 -1
- package/functions/misc.d.ts +6 -0
- package/functions/regions.js +37 -1
- package/helpers/appScenes.js +1 -1
- package/helpers/auth.d.ts +2 -9
- package/helpers/auth.js +33 -14
- package/helpers/badges.js +1 -1
- package/helpers/catalogBridge.d.ts +121 -0
- package/helpers/catalogBridge.js +95 -0
- package/helpers/collections.js +2 -2
- package/helpers/communicationTemplate/index.d.ts +3 -2
- package/helpers/communicationTemplate/index.js +5 -5
- package/helpers/compositionCategories/genres.d.ts +922 -0
- package/helpers/compositionCategories/genres.js +940 -0
- package/helpers/compositionCategories/index.d.ts +2 -0
- package/helpers/compositionCategories/index.js +18 -0
- package/helpers/compositionCategories/styles.d.ts +181 -0
- package/helpers/compositionCategories/styles.js +197 -0
- package/helpers/compositionSoloistOffstageParts/index.d.ts +34 -0
- package/helpers/compositionSoloistOffstageParts/index.js +117 -0
- package/helpers/currency.d.ts +19 -0
- package/helpers/currency.js +71 -2
- package/helpers/currencyConversion.d.ts +45 -0
- package/helpers/currencyConversion.js +119 -0
- package/helpers/dataStructures/trees/index.d.ts +12 -0
- package/helpers/dataStructures/trees/index.js +71 -0
- package/helpers/dataStructures/trees/types.d.ts +14 -0
- package/helpers/dataStructures/trees/types.js +5 -0
- package/helpers/dlinks.js +1 -1
- package/helpers/errors.d.ts +1 -0
- package/helpers/errors.js +2 -1
- package/helpers/externalUrls.d.ts +12 -0
- package/helpers/externalUrls.js +40 -0
- package/helpers/instruments/index.d.ts +17 -0
- package/helpers/instruments/index.js +5 -1
- package/helpers/instruments/lists.d.ts +3 -3
- package/helpers/instruments/lists.js +5 -5
- package/helpers/musicStyles/index.d.ts +22 -4
- package/helpers/musicStyles/index.js +114 -35
- package/helpers/notifications/index.js +1 -1
- package/helpers/objects.d.ts +5 -1
- package/helpers/objects.js +7 -6
- package/helpers/paymentForecast.js +1 -2
- package/helpers/payoutRules.js +3 -4
- package/helpers/plans.js +2 -2
- package/helpers/rates.d.ts +1 -1
- package/helpers/slate.d.ts +64 -5
- package/helpers/slate.js +7 -1
- package/helpers/ts-extras/array-includes.js +1 -2
- package/helpers/ts-extras/as-mutable.js +1 -2
- package/helpers/ts-extras/assert-error.js +1 -2
- package/helpers/ts-extras/index.js +1 -1
- package/helpers/ts-extras/is-defined.js +1 -2
- package/helpers/ts-extras/is-empty.js +1 -2
- package/helpers/ts-extras/is-infinite.js +1 -2
- package/helpers/ts-extras/is-present.js +1 -2
- 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 +1 -2
- package/helpers/ts-extras/object-keys.d.ts +1 -1
- package/helpers/ts-extras/object-keys.js +0 -1
- package/helpers/ts-extras/set-has.js +1 -2
- package/helpers/types.d.ts +26 -0
- package/helpers/types.js +26 -6
- package/lang/ca.json +325 -91
- package/lang/de.json +325 -91
- package/lang/en.json +325 -91
- package/lang/es.json +325 -91
- package/lang/eu.json +325 -91
- package/lang/fr.json +325 -91
- package/lang/gl.json +325 -91
- package/lang/index.js +3 -2
- package/lang/it.json +325 -91
- package/lang/nl.json +325 -91
- package/lang/pt.json +325 -91
- package/models/Communication/types.d.ts +0 -16
- package/models/Communication/types.js +3 -9
- package/models/CompositionGenre/index.d.ts +9 -0
- package/models/CompositionGenre/index.js +16 -0
- package/models/CompositionStyle/index.d.ts +9 -0
- package/models/CompositionStyle/index.js +16 -0
- 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 +2 -1
- package/models/Evento/index.d.ts +3 -2
- package/models/Evento/index.js +5 -4
- package/models/Evento/types.d.ts +3 -34
- package/models/Evento/types.js +9 -41
- 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/supabase.js +3 -3
- package/models/Group/Payment/types.js +5 -5
- 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 +3 -2
- package/models/Group/Repertory/File/Section/types.d.ts +7 -0
- package/models/Group/Repertory/File/Section/types.js +1 -1
- package/models/Group/Repertory/File/index.d.ts +4 -2
- package/models/Group/Repertory/File/index.js +4 -4
- package/models/Group/Repertory/FilePath/index.d.ts +3 -4
- package/models/Group/Repertory/index.d.ts +12 -4
- package/models/Group/Repertory/index.js +9 -0
- package/models/Group/Repertory/types.d.ts +21 -32
- package/models/Group/Repertory/types.js +8 -18
- package/models/Group/index.d.ts +7 -2
- package/models/Group/index.js +14 -0
- package/models/Group/types.d.ts +2 -21
- package/models/Group/types.js +14 -33
- package/models/Instrument/fromRecord.d.ts +11 -0
- package/models/Instrument/fromRecord.js +33 -0
- package/models/Instrument/index.d.ts +2 -0
- package/models/Instrument/index.js +38 -1
- 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 +0 -12
- package/models/Offer/types.js +2 -15
- package/models/Partnership/Communication/supabase.js +2 -2
- package/models/Partnership/Group/index.d.ts +2 -1
- package/models/Partnership/Group/index.js +15 -3
- package/models/Partnership/Group/supabase.js +2 -2
- package/models/Partnership/Partner/supabase.js +2 -2
- package/models/Partnership/Partner/types.js +1 -1
- package/models/Partnership/Payment/supabase.js +3 -3
- package/models/Partnership/Payment/types.js +2 -2
- package/models/Partnership/Plan/supabase.js +2 -2
- package/models/Partnership/SepaPaymentGroup/supabase.js +2 -2
- package/models/Partnership/Subscription/supabase.js +2 -2
- package/models/Partnership/index.d.ts +1 -0
- package/models/Partnership/index.js +4 -0
- package/models/Partnership/types.js +1 -1
- package/models/Repertory/types.d.ts +12 -0
- package/models/Repertory/types.js +2 -2
- package/models/User/Group/index.js +1 -2
- package/models/User/index.d.ts +1 -1
- package/models/User/index.js +3 -3
- package/models/User/types.d.ts +2 -1
- package/models/User/types.js +8 -8
- package/models/WebhookEvent/types.js +1 -1
- package/models/supabase/Comm/index.d.ts +24 -0
- package/models/supabase/Comm/index.js +68 -0
- package/models/supabase/Comm/types.d.ts +6 -0
- package/models/supabase/CommHistory/index.d.ts +22 -0
- package/models/supabase/CommHistory/index.js +37 -0
- package/models/supabase/CommHistory/types.d.ts +11 -0
- package/models/supabase/CommHistory/types.js +9 -0
- package/models/supabase/Composer/Composition/Acquisition/index.d.ts +4 -0
- package/models/supabase/Composer/Composition/Acquisition/index.js +9 -0
- package/models/supabase/Composer/Composition/Acquisition/types.d.ts +42 -0
- package/models/supabase/Composer/Composition/Favorite/index.d.ts +4 -0
- package/models/supabase/Composer/Composition/Favorite/index.js +9 -0
- package/models/supabase/Composer/Composition/Favorite/types.d.ts +6 -0
- package/models/supabase/Composer/Composition/View/index.d.ts +4 -0
- package/models/supabase/Composer/Composition/View/index.js +9 -0
- package/models/supabase/Composer/Composition/View/types.d.ts +6 -0
- package/models/supabase/Composer/Composition/index.d.ts +5284 -0
- package/models/supabase/Composer/Composition/index.js +166 -0
- package/models/supabase/Composer/Composition/types.d.ts +96 -0
- package/models/supabase/Composer/Composition/types.js +32 -0
- package/models/supabase/Composer/Notification/index.d.ts +4 -0
- package/models/supabase/Composer/Notification/index.js +9 -0
- package/models/supabase/Composer/Notification/types.d.ts +39 -0
- package/models/supabase/Composer/Notification/types.js +27 -0
- package/models/supabase/Composer/Payout/index.d.ts +4 -0
- package/models/supabase/Composer/Payout/index.js +9 -0
- package/models/supabase/Composer/Payout/status.d.ts +1 -0
- package/models/supabase/Composer/Payout/types.d.ts +5 -0
- package/models/supabase/Composer/PerformanceAttendance/types.d.ts +4 -0
- package/models/supabase/Composer/index.d.ts +78 -0
- package/models/supabase/Composer/index.js +105 -0
- package/models/supabase/Composer/types.d.ts +6 -0
- package/models/supabase/Composer/types.js +2 -0
- package/models/supabase/EventHistory/index.d.ts +22 -0
- package/models/supabase/EventHistory/index.js +37 -0
- package/models/supabase/EventHistory/types.d.ts +39 -0
- package/models/supabase/EventHistory/types.js +37 -0
- package/models/supabase/EventPlayer/types.d.ts +13 -0
- package/models/supabase/EventPlayer/types.js +2 -0
- package/models/supabase/GroupHistory/index.d.ts +21 -0
- package/models/supabase/GroupHistory/index.js +34 -0
- package/models/supabase/GroupHistory/types.d.ts +27 -0
- package/models/supabase/GroupHistory/types.js +25 -0
- package/models/supabase/GroupPlayer/types.d.ts +17 -0
- package/models/supabase/GroupPlayer/types.js +2 -0
- package/models/supabase/Model/index.d.ts +10 -0
- package/models/supabase/Model/index.js +21 -0
- package/models/supabase/OfferHistory/index.d.ts +22 -0
- package/models/supabase/OfferHistory/index.js +37 -0
- package/models/supabase/OfferHistory/types.d.ts +18 -0
- package/models/supabase/OfferHistory/types.js +16 -0
- package/models/supabase/Repertoire/index.d.ts +16 -0
- package/models/supabase/Repertoire/index.js +43 -0
- package/models/supabase/Repertoire/types.d.ts +6 -0
- package/models/supabase/Repertoire/types.js +2 -0
- package/models/supabase/RepertoireHistory/index.d.ts +22 -0
- package/models/supabase/RepertoireHistory/index.js +37 -0
- package/models/supabase/RepertoireHistory/types.d.ts +21 -0
- package/models/supabase/RepertoireHistory/types.js +19 -0
- package/models/supabase/User/Group/index.d.ts +11 -0
- package/models/supabase/User/Group/index.js +30 -0
- package/models/supabase/User/Group/types.d.ts +1 -0
- package/models/supabase/User/Group/types.js +2 -0
- package/models/supabase/User/index.d.ts +13 -0
- package/models/supabase/User/index.js +37 -0
- package/models/supabase/User/types.d.ts +6 -0
- package/models/supabase/User/types.js +2 -0
- package/package.json +15 -13
- package/types/firestore.d.ts +0 -1
- package/types/firestore.js +1 -1
- package/types/payoutRule.js +3 -3
- package/types/supabase/catalog.d.ts +46 -0
- package/types/supabase/catalog.js +2 -0
- package/types/supabase/catalog.ts +67 -0
- package/types/supabase/composerMetrics.d.ts +27 -0
- package/types/supabase/composerMetrics.js +2 -0
- package/types/supabase/composerMetrics.ts +26 -0
- package/types/supabase/generated.d.ts +3867 -1090
- package/types/supabase/generated.js +9 -0
- package/types/supabase/generated.ts +3834 -1126
- package/types/supabase/index.d.ts +169 -19
- package/types/supabase/index.js +15 -0
- package/types/supabase/index.ts +323 -21
- package/types/supabase/overwrites/index.d.ts +1 -1
- package/types/supabase/overwrites/index.ts +1 -1
- package/types/supabase/overwrites/tables/comm/model.d.ts +4 -0
- package/types/supabase/overwrites/tables/comm/model.js +2 -0
- package/types/supabase/overwrites/tables/comm/model.ts +4 -0
- package/types/supabase/overwrites/tables/comm_history/index.d.ts +7 -0
- package/types/supabase/overwrites/tables/comm_history/index.js +2 -0
- package/types/supabase/overwrites/tables/comm_history/index.ts +9 -0
- package/types/supabase/overwrites/tables/comm_history/model.d.ts +10 -0
- package/types/supabase/overwrites/tables/comm_history/model.js +2 -0
- package/types/supabase/overwrites/tables/comm_history/model.ts +13 -0
- package/types/supabase/overwrites/tables/common/index.js +2 -0
- package/types/supabase/overwrites/tables/composer/index.d.ts +9 -0
- package/types/supabase/overwrites/tables/composer/index.js +2 -0
- package/types/supabase/overwrites/tables/composer/index.ts +10 -0
- package/types/supabase/overwrites/tables/composer/model.d.ts +12 -0
- package/types/supabase/overwrites/tables/composer/model.js +2 -0
- package/types/supabase/overwrites/tables/composer/model.ts +15 -0
- package/types/supabase/overwrites/tables/composer/publicModel.d.ts +11 -0
- package/types/supabase/overwrites/tables/composer/publicModel.js +2 -0
- package/types/supabase/overwrites/tables/composer/publicModel.ts +15 -0
- package/types/supabase/overwrites/tables/composerComposition/index.d.ts +18 -0
- package/types/supabase/overwrites/tables/composerComposition/index.js +2 -0
- package/types/supabase/overwrites/tables/composerComposition/index.ts +24 -0
- package/types/supabase/overwrites/tables/composerComposition/model.d.ts +9 -0
- package/types/supabase/overwrites/tables/composerComposition/model.js +2 -0
- package/types/supabase/overwrites/tables/composerComposition/model.ts +26 -0
- package/types/supabase/overwrites/tables/composerComposition/publicModel.d.ts +9 -0
- package/types/supabase/overwrites/tables/composerComposition/publicModel.js +2 -0
- package/types/supabase/overwrites/tables/composerComposition/publicModel.ts +37 -0
- package/types/supabase/overwrites/tables/composerNotification/index.d.ts +19 -0
- package/types/supabase/overwrites/tables/composerNotification/index.js +2 -0
- package/types/supabase/overwrites/tables/composerNotification/index.ts +25 -0
- package/types/supabase/overwrites/tables/composerOwnedTransaction/model.d.ts +2 -0
- package/types/supabase/overwrites/tables/composerOwnedTransaction/model.js +2 -0
- package/types/supabase/overwrites/tables/composerOwnedTransaction/model.ts +3 -0
- package/types/supabase/overwrites/tables/composerPayout/index.d.ts +7 -0
- package/types/supabase/overwrites/tables/composerPayout/index.js +2 -0
- package/types/supabase/overwrites/tables/composerPayout/index.ts +8 -0
- package/types/supabase/overwrites/tables/compositionAcquisition/index.d.ts +4 -0
- package/types/supabase/overwrites/tables/compositionAcquisition/index.js +2 -0
- package/types/supabase/overwrites/tables/compositionAcquisition/index.ts +8 -0
- package/types/supabase/overwrites/tables/compositionAcquisition/model.d.ts +6 -0
- package/types/supabase/overwrites/tables/compositionAcquisition/model.js +2 -0
- package/types/supabase/overwrites/tables/compositionAcquisition/model.ts +11 -0
- package/types/supabase/overwrites/tables/compositionFavorite/index.d.ts +1 -0
- package/types/supabase/overwrites/tables/compositionFavorite/index.js +2 -0
- package/types/supabase/overwrites/tables/compositionFavorite/index.ts +2 -0
- package/types/supabase/overwrites/tables/compositionFavorite/model.d.ts +1 -0
- package/types/supabase/overwrites/tables/compositionFavorite/model.js +2 -0
- package/types/supabase/overwrites/tables/compositionFavorite/model.ts +1 -0
- package/types/supabase/overwrites/tables/compositionView/index.d.ts +1 -0
- package/types/supabase/overwrites/tables/compositionView/index.js +2 -0
- package/types/supabase/overwrites/tables/compositionView/index.ts +2 -0
- package/types/supabase/overwrites/tables/compositionView/model.d.ts +1 -0
- package/types/supabase/overwrites/tables/compositionView/model.js +2 -0
- package/types/supabase/overwrites/tables/compositionView/model.ts +1 -0
- package/types/supabase/overwrites/tables/currencyExchangeRate/index.d.ts +16 -0
- package/types/supabase/overwrites/tables/currencyExchangeRate/index.js +2 -0
- package/types/supabase/overwrites/tables/currencyExchangeRate/index.ts +18 -0
- package/types/supabase/overwrites/{event.d.ts → tables/event/index.d.ts} +1 -1
- package/types/supabase/overwrites/tables/event/index.js +2 -0
- package/types/supabase/overwrites/{event.ts → tables/event/index.ts} +1 -1
- package/types/supabase/overwrites/tables/eventPlayer/index.d.ts +11 -0
- package/types/supabase/overwrites/tables/eventPlayer/index.js +2 -0
- package/types/supabase/overwrites/tables/eventPlayer/index.ts +18 -0
- package/types/supabase/overwrites/tables/event_history/index.d.ts +7 -0
- package/types/supabase/overwrites/tables/event_history/index.js +2 -0
- package/types/supabase/overwrites/tables/event_history/index.ts +9 -0
- package/types/supabase/overwrites/tables/event_history/model.d.ts +10 -0
- package/types/supabase/overwrites/tables/event_history/model.js +2 -0
- package/types/supabase/overwrites/tables/event_history/model.ts +13 -0
- package/types/supabase/overwrites/{group.d.ts → tables/group/index.d.ts} +2 -5
- package/types/supabase/overwrites/tables/group/index.js +2 -0
- package/types/supabase/overwrites/{group.ts → tables/group/index.ts} +2 -6
- package/types/supabase/overwrites/tables/groupPlayer/index.d.ts +20 -0
- package/types/supabase/overwrites/tables/groupPlayer/index.js +2 -0
- package/types/supabase/overwrites/tables/groupPlayer/index.ts +30 -0
- package/types/supabase/overwrites/tables/group_history/index.d.ts +7 -0
- package/types/supabase/overwrites/tables/group_history/index.js +2 -0
- package/types/supabase/overwrites/tables/group_history/index.ts +9 -0
- package/types/supabase/overwrites/tables/group_history/model.d.ts +10 -0
- package/types/supabase/overwrites/tables/group_history/model.js +2 -0
- package/types/supabase/overwrites/tables/group_history/model.ts +13 -0
- package/types/supabase/overwrites/{offer.d.ts → tables/offer/index.d.ts} +6 -2
- package/types/supabase/overwrites/tables/offer/index.js +2 -0
- package/types/supabase/overwrites/{offer.ts → tables/offer/index.ts} +7 -2
- package/types/supabase/overwrites/tables/offer_history/index.d.ts +7 -0
- package/types/supabase/overwrites/tables/offer_history/index.js +2 -0
- package/types/supabase/overwrites/tables/offer_history/index.ts +9 -0
- package/types/supabase/overwrites/tables/offer_history/model.d.ts +10 -0
- package/types/supabase/overwrites/tables/offer_history/model.js +2 -0
- package/types/supabase/overwrites/tables/offer_history/model.ts +13 -0
- package/types/supabase/overwrites/tables/publicApiGroupModel/index.d.ts +7 -0
- package/types/supabase/overwrites/tables/publicApiGroupModel/index.js +2 -0
- package/types/supabase/overwrites/tables/publicApiGroupModel/index.ts +11 -0
- package/types/supabase/overwrites/tables/repertoire/model.d.ts +7 -0
- package/types/supabase/overwrites/tables/repertoire/model.js +2 -0
- package/types/supabase/overwrites/tables/repertoire/model.ts +7 -0
- package/types/supabase/overwrites/tables/repertoire_history/index.d.ts +7 -0
- package/types/supabase/overwrites/tables/repertoire_history/index.js +2 -0
- package/types/supabase/overwrites/tables/repertoire_history/index.ts +9 -0
- package/types/supabase/overwrites/tables/repertoire_history/model.d.ts +10 -0
- package/types/supabase/overwrites/tables/repertoire_history/model.js +2 -0
- package/types/supabase/overwrites/tables/repertoire_history/model.ts +13 -0
- package/types/supabase/overwrites/tables/user/index.d.ts +11 -0
- package/types/supabase/overwrites/tables/user/index.js +2 -0
- package/types/supabase/overwrites/tables/user/index.ts +13 -0
- package/types/supabase/publicApi.d.ts +12 -0
- package/types/supabase/publicApi.js +2 -0
- package/types/supabase/publicApi.ts +18 -0
- package/types/supabase/overwrites/comm.d.ts +0 -18
- package/types/supabase/overwrites/comm.ts +0 -18
- package/types/supabase/overwrites/comm_history.d.ts +0 -10
- package/types/supabase/overwrites/comm_history.ts +0 -10
- package/types/supabase/overwrites/event_history.d.ts +0 -10
- package/types/supabase/overwrites/event_history.ts +0 -10
- package/types/supabase/overwrites/group_history.d.ts +0 -9
- package/types/supabase/overwrites/group_history.ts +0 -9
- package/types/supabase/overwrites/offer_history.d.ts +0 -10
- package/types/supabase/overwrites/offer_history.ts +0 -10
- package/types/supabase/overwrites/repertoire.d.ts +0 -12
- package/types/supabase/overwrites/repertoire.ts +0 -12
- package/types/supabase/overwrites/repertoire_history.d.ts +0 -10
- package/types/supabase/overwrites/repertoire_history.ts +0 -10
- /package/{types/supabase/overwrites/comm.js → functions/composer.js} +0 -0
- /package/{types/supabase/overwrites/comm_history.js → functions/composerComposition.js} +0 -0
- /package/{types/supabase/overwrites/event.js → functions/composerNotification.js} +0 -0
- /package/{types/supabase/overwrites/event_history.js → functions/composerPayout.js} +0 -0
- /package/{types/supabase/overwrites/group.js → models/supabase/Comm/types.js} +0 -0
- /package/{types/supabase/overwrites/group_history.js → models/supabase/Composer/Composition/Acquisition/types.js} +0 -0
- /package/{types/supabase/overwrites/offer.js → models/supabase/Composer/Composition/Favorite/types.js} +0 -0
- /package/{types/supabase/overwrites/offer_history.js → models/supabase/Composer/Composition/View/types.js} +0 -0
- /package/{types/supabase/overwrites/repertoire.js → models/supabase/Composer/Payout/status.js} +0 -0
- /package/{types/supabase/overwrites/repertoire_history.js → models/supabase/Composer/Payout/types.js} +0 -0
- /package/{types/supabase/overwrites/utils.js → models/supabase/Composer/PerformanceAttendance/types.js} +0 -0
- /package/types/supabase/overwrites/{utils.d.ts → tables/common/index.d.ts} +0 -0
- /package/types/supabase/overwrites/{utils.ts → tables/common/index.ts} +0 -0
package/functions/auth.d.ts
CHANGED
|
@@ -4,7 +4,9 @@ export declare namespace AuthFbFunctionsTypes {
|
|
|
4
4
|
idToken: string;
|
|
5
5
|
sessionExpiresIn?: number;
|
|
6
6
|
}
|
|
7
|
-
|
|
7
|
+
interface LoginResult {
|
|
8
|
+
hasComposerProfile: boolean;
|
|
9
|
+
}
|
|
8
10
|
type StatusParams = void;
|
|
9
11
|
interface StatusResult {
|
|
10
12
|
idToken: string | null;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ComposerModelData } from '../models/supabase/Composer/types';
|
|
2
|
+
export declare namespace ComposerFbFunctionsTypes {
|
|
3
|
+
type GetStatusParams = void;
|
|
4
|
+
interface GetStatusResult {
|
|
5
|
+
hasComposerProfile: boolean;
|
|
6
|
+
}
|
|
7
|
+
type PublishParams = void;
|
|
8
|
+
type PublishResult = void;
|
|
9
|
+
interface SuperAdminRemoveParams {
|
|
10
|
+
composerId: ComposerModelData['id'];
|
|
11
|
+
}
|
|
12
|
+
type SuperAdminRemoveResult = void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { InstrumentId } from '../helpers/instruments';
|
|
2
|
+
import { FileSectionId } from '../models/Group/Repertory/File/Section/types';
|
|
3
|
+
import { GroupRepertoireFile } from '../models/Group/Repertory/types';
|
|
4
|
+
import { ComposerCompositionSample, ComposerCompositionInsertData, ComposerCompositionModelData, ComposerCompositionHighlightedPart, ComposerCompositionUpdateData } from '../models/supabase/Composer/Composition/types';
|
|
5
|
+
export declare namespace ComposerCompositionFbFunctionsTypes {
|
|
6
|
+
type SoloistOffstagePartsPayload = {
|
|
7
|
+
soloistOffstageParts?: ComposerCompositionHighlightedPart[] | null;
|
|
8
|
+
};
|
|
9
|
+
export type PublishParams = Pick<ComposerCompositionInsertData, 'title' | 'subtitle' | 'description' | 'duration' | 'difficulty' | 'year' | 'century' | 'genresIds' | 'stylesIds' | 'instrumentationIds' | 'uploaderComposerRole' | 'externalComposerName' | 'publisher' | 'catalogueNumber' | 'visibility' | 'cover' | 'files' | 'samples' | 'products'> & SoloistOffstagePartsPayload;
|
|
10
|
+
export interface PublishResult {
|
|
11
|
+
id: ComposerCompositionModelData['id'];
|
|
12
|
+
}
|
|
13
|
+
export type EditParams = Pick<ComposerCompositionUpdateData, 'title' | 'subtitle' | 'description' | 'duration' | 'difficulty' | 'year' | 'century' | 'genresIds' | 'stylesIds' | 'instrumentationIds' | 'uploaderComposerRole' | 'externalComposerName' | 'publisher' | 'catalogueNumber' | 'visibility' | 'cover' | 'files' | 'samples' | 'products'> & SoloistOffstagePartsPayload & {
|
|
14
|
+
id: NonNullable<ComposerCompositionUpdateData['id']>;
|
|
15
|
+
};
|
|
16
|
+
export type EditResult = void;
|
|
17
|
+
export interface SuperAdminRemoveParams {
|
|
18
|
+
compositionId: ComposerCompositionModelData['id'];
|
|
19
|
+
}
|
|
20
|
+
export type SuperAdminRemoveResult = void;
|
|
21
|
+
export interface IdentifyInstrumentsFromFileNamesFile {
|
|
22
|
+
fileName: string;
|
|
23
|
+
fileId: string;
|
|
24
|
+
}
|
|
25
|
+
export interface IdentifyInstrumentsFromFileNamesParams {
|
|
26
|
+
composerId: string;
|
|
27
|
+
files: IdentifyInstrumentsFromFileNamesFile[];
|
|
28
|
+
}
|
|
29
|
+
export interface IdentifyInstrumentsFromFileNamesItem {
|
|
30
|
+
fileId: number | string;
|
|
31
|
+
instrument?: InstrumentId;
|
|
32
|
+
score?: number;
|
|
33
|
+
}
|
|
34
|
+
export type IdentifyInstrumentsFromFileNamesResult = IdentifyInstrumentsFromFileNamesItem[];
|
|
35
|
+
export interface IdentifyInstrumentsParams {
|
|
36
|
+
composerId: string;
|
|
37
|
+
compositionId: string;
|
|
38
|
+
path: string;
|
|
39
|
+
fileName: string;
|
|
40
|
+
fileId: string;
|
|
41
|
+
}
|
|
42
|
+
export interface IdentifyInstrumentItem {
|
|
43
|
+
page: number;
|
|
44
|
+
instrument?: InstrumentId;
|
|
45
|
+
predictedInstrument?: InstrumentId;
|
|
46
|
+
score?: number;
|
|
47
|
+
}
|
|
48
|
+
export type IdentifyInstrumentsResult = IdentifyInstrumentItem[];
|
|
49
|
+
export interface DownloadFileType {
|
|
50
|
+
id: string;
|
|
51
|
+
tagId: string | null;
|
|
52
|
+
filetype: string;
|
|
53
|
+
isEncrypted: boolean;
|
|
54
|
+
pages: number[] | null;
|
|
55
|
+
path: string;
|
|
56
|
+
sectionId: FileSectionId;
|
|
57
|
+
}
|
|
58
|
+
export interface DownloadCompositionFilesParams {
|
|
59
|
+
composerId: string;
|
|
60
|
+
compositionId: string;
|
|
61
|
+
files: DownloadFileType[];
|
|
62
|
+
}
|
|
63
|
+
export interface DownloadCompositionFilesResult {
|
|
64
|
+
path: string;
|
|
65
|
+
filename: string;
|
|
66
|
+
}
|
|
67
|
+
export interface DownloadFilesBySectionParams {
|
|
68
|
+
composerId: string;
|
|
69
|
+
compositionId: string;
|
|
70
|
+
sectionId: FileSectionId;
|
|
71
|
+
files: DownloadFileType[];
|
|
72
|
+
}
|
|
73
|
+
export interface DownloadFilesBySectionResult {
|
|
74
|
+
path: string;
|
|
75
|
+
filename: string;
|
|
76
|
+
}
|
|
77
|
+
export interface CloneFilesParams {
|
|
78
|
+
composerId: string;
|
|
79
|
+
compositionId: string;
|
|
80
|
+
newCompositionId: string;
|
|
81
|
+
}
|
|
82
|
+
export interface CloneFilesResult {
|
|
83
|
+
files: Record<string, GroupRepertoireFile>;
|
|
84
|
+
samples: Record<string, ComposerCompositionSample>;
|
|
85
|
+
}
|
|
86
|
+
export interface OnCreateParams {
|
|
87
|
+
type: string;
|
|
88
|
+
table: string;
|
|
89
|
+
schema: string;
|
|
90
|
+
record: ComposerCompositionModelData;
|
|
91
|
+
}
|
|
92
|
+
export type OnCreateResult = void;
|
|
93
|
+
export interface OnUpdateParams {
|
|
94
|
+
type: string;
|
|
95
|
+
table: string;
|
|
96
|
+
schema: string;
|
|
97
|
+
record: ComposerCompositionModelData;
|
|
98
|
+
old_record: ComposerCompositionModelData;
|
|
99
|
+
}
|
|
100
|
+
export type OnUpdateResult = void;
|
|
101
|
+
export {};
|
|
102
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ComposerNotificationModelData, ComposerNotificationSettingData, ComposerNotificationSettingEditable } from '../models/supabase/Composer/Notification/types';
|
|
2
|
+
export declare namespace ComposerNotificationFbFunctionsTypes {
|
|
3
|
+
interface ListParams {
|
|
4
|
+
composerId: string;
|
|
5
|
+
limit?: number;
|
|
6
|
+
cursor?: string | null;
|
|
7
|
+
includeArchived?: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface ListResult {
|
|
10
|
+
notifications: ComposerNotificationModelData[];
|
|
11
|
+
unreadCount: number;
|
|
12
|
+
nextCursor: string | null;
|
|
13
|
+
}
|
|
14
|
+
interface MarkReadParams {
|
|
15
|
+
composerId: string;
|
|
16
|
+
notificationId: string;
|
|
17
|
+
read: boolean;
|
|
18
|
+
}
|
|
19
|
+
type MarkReadResult = ComposerNotificationModelData;
|
|
20
|
+
interface MarkAllReadParams {
|
|
21
|
+
composerId: string;
|
|
22
|
+
}
|
|
23
|
+
type MarkAllReadResult = void;
|
|
24
|
+
interface ArchiveParams {
|
|
25
|
+
composerId: string;
|
|
26
|
+
notificationId: string;
|
|
27
|
+
}
|
|
28
|
+
type ArchiveResult = void;
|
|
29
|
+
interface GetSettingsParams {
|
|
30
|
+
composerId: string;
|
|
31
|
+
}
|
|
32
|
+
type GetSettingsResult = ComposerNotificationSettingData;
|
|
33
|
+
interface UpdateSettingsParams {
|
|
34
|
+
composerId: string;
|
|
35
|
+
settings: ComposerNotificationSettingEditable;
|
|
36
|
+
}
|
|
37
|
+
type UpdateSettingsResult = ComposerNotificationSettingData;
|
|
38
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare namespace ComposerPayoutFbFunctionsTypes {
|
|
2
|
+
type SuperAdminResolveStatus = 'completed' | 'cancelled' | 'failed';
|
|
3
|
+
interface CreatePayoutParams {
|
|
4
|
+
amountCents: number;
|
|
5
|
+
currency: string;
|
|
6
|
+
}
|
|
7
|
+
interface CreatePayoutResult {
|
|
8
|
+
id: string;
|
|
9
|
+
}
|
|
10
|
+
interface CancelPayoutParams {
|
|
11
|
+
payoutId: string;
|
|
12
|
+
}
|
|
13
|
+
type CancelPayoutResult = void;
|
|
14
|
+
interface SuperAdminResolveParams {
|
|
15
|
+
payoutId: string;
|
|
16
|
+
status: SuperAdminResolveStatus;
|
|
17
|
+
observations?: string | null;
|
|
18
|
+
}
|
|
19
|
+
type SuperAdminResolveResult = void;
|
|
20
|
+
}
|
package/functions/customer.d.ts
CHANGED
|
@@ -73,7 +73,11 @@ export declare namespace CustomerFbFunctionsTypes {
|
|
|
73
73
|
currency: string;
|
|
74
74
|
created: number;
|
|
75
75
|
number: string;
|
|
76
|
+
description: string | null;
|
|
76
77
|
link: string | null;
|
|
78
|
+
isSubscription: boolean;
|
|
79
|
+
billingInterval: 'month' | 'year' | null;
|
|
80
|
+
isCreditNote: boolean;
|
|
77
81
|
}
|
|
78
82
|
interface GetInvoicesResult {
|
|
79
83
|
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 = 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 = 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 = EventoRepertoryFbFunctionsTypes = {}));
|
|
@@ -1,6 +1,13 @@
|
|
|
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';
|
|
4
11
|
import { ThemeMediaType } from '../models/Repertory/types';
|
|
5
12
|
import { EventoRepertoryFbFunctionsTypes } from './eventRepertory';
|
|
6
13
|
export declare namespace GroupRepertoryFbFunctionsTypes {
|
|
@@ -136,5 +143,108 @@ export declare namespace GroupRepertoryFbFunctionsTypes {
|
|
|
136
143
|
value: number;
|
|
137
144
|
}
|
|
138
145
|
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[];
|
|
139
249
|
export {};
|
|
140
250
|
}
|
package/functions/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare enum FbFunctionName {
|
|
2
|
+
PublicApi = "api",
|
|
2
3
|
AuthGetToken = "authGetToken",
|
|
3
4
|
AuthLogin = "authLogin",
|
|
4
5
|
AuthLogout = "authLogout",
|
|
@@ -13,6 +14,25 @@ export declare enum FbFunctionName {
|
|
|
13
14
|
CommunicationEdit = "communication-edit",
|
|
14
15
|
CommunicationPublish = "communication-publish",
|
|
15
16
|
CommunicationRemove = "communication-remove",
|
|
17
|
+
ComposerGetStatus = "composer-getStatus",
|
|
18
|
+
ComposerPublish = "composer-publish",
|
|
19
|
+
ComposerSuperAdminRemove = "composer-superAdminRemove",
|
|
20
|
+
ComposerCompositionPublish = "composerComposition-publish",
|
|
21
|
+
ComposerCompositionEdit = "composerComposition-edit",
|
|
22
|
+
ComposerCompositionIdentifyInstruments = "composerComposition-identifyInstruments",
|
|
23
|
+
ComposerCompositionIdentifyInstrumentsFromFileNames = "composerComposition-identifyInstrumentsFromFileNames",
|
|
24
|
+
ComposerCompositionDownloadFiles = "composerComposition-downloadFiles",
|
|
25
|
+
ComposerCompositionDownloadFilesBySection = "composerComposition-downloadFilesBySection",
|
|
26
|
+
ComposerCompositionCloneFiles = "composerComposition-cloneFiles",
|
|
27
|
+
ComposerCompositionOnCreate = "composerComposition-onCreate",
|
|
28
|
+
ComposerCompositionOnUpdate = "composerComposition-onUpdate",
|
|
29
|
+
ComposerCompositionSuperAdminRemove = "composerComposition-superAdminRemove",
|
|
30
|
+
ComposerNotificationSendWeeklySummaries = "composerNotification-sendWeeklySummaries",
|
|
31
|
+
ComposerNotificationSendUpcomingPerformanceReminders = "composerNotification-sendUpcomingPerformanceReminders",
|
|
32
|
+
ComposerNotificationRetryFailedEmails = "composerNotification-retryFailedEmails",
|
|
33
|
+
ComposerPayoutCreatePayout = "composerPayout-createPayout",
|
|
34
|
+
ComposerPayoutCancelPayout = "composerPayout-cancelPayout",
|
|
35
|
+
ComposerPayoutSuperAdminResolve = "composerPayout-superAdminResolve",
|
|
16
36
|
CustomerAddConfirmedAdmin = "customer-addConfirmedAdmin",
|
|
17
37
|
CustomerCreate = "customer-create",
|
|
18
38
|
CustomerEdit = "customer-edit",
|
|
@@ -40,6 +60,9 @@ export declare enum FbFunctionName {
|
|
|
40
60
|
EventOnCreate = "event-onCreate",
|
|
41
61
|
EventOnUpdate = "event-onUpdate",
|
|
42
62
|
EventPlayerEdit = "eventPlayer-edit",
|
|
63
|
+
EventPlayerOnCreate = "eventPlayer-onCreate",
|
|
64
|
+
EventPlayerOnDelete = "eventPlayer-onDelete",
|
|
65
|
+
EventPlayerOnUpdate = "eventPlayer-onUpdate",
|
|
43
66
|
EventPlayerEditPlayerAttendance = "eventPlayer-editPlayerAttendance",
|
|
44
67
|
EventPlayerEditPlayerInterest = "eventPlayer-editPlayerInterest",
|
|
45
68
|
EventPlayerSetReasonAttendance = "eventPlayer-setReasonAttendance",
|
|
@@ -91,6 +114,8 @@ export declare enum FbFunctionName {
|
|
|
91
114
|
GroupOnUpdate = "group-onUpdate",
|
|
92
115
|
GroupPlayerAdd = "groupPlayer-add",
|
|
93
116
|
GroupPlayerAddPlayer = "groupPlayer-addPlayer",
|
|
117
|
+
GroupPlayerOnCreate = "groupPlayer-onCreate",
|
|
118
|
+
GroupPlayerOnDelete = "groupPlayer-onDelete",
|
|
94
119
|
GroupPlayerEventOnUpdate = "groupPlayerEvent-onUpdate",
|
|
95
120
|
GroupPlayerJoin = "groupPlayer-joinGroup",
|
|
96
121
|
GroupPlayerLeave = "groupPlayer-leave",
|
|
@@ -125,9 +150,20 @@ export declare enum FbFunctionName {
|
|
|
125
150
|
GroupRepertoryPublish = "groupRepertory-publish",
|
|
126
151
|
GroupRepertoryRate = "groupRepertory-rate",
|
|
127
152
|
GroupRepertoryRemove = "groupRepertory-remove",
|
|
153
|
+
GroupRepertoryAcquireComposition = "groupRepertory-acquireComposition",
|
|
154
|
+
GroupRepertoryCreateThemeFromAcquisition = "groupRepertory-createThemeFromAcquisition",
|
|
155
|
+
GroupRepertoryCreateCompositionCheckout = "groupRepertory-createCompositionCheckout",
|
|
156
|
+
GroupRepertoryUpgradeComposition = "groupRepertory-upgradeComposition",
|
|
157
|
+
GroupRepertoryTrackView = "groupRepertory-trackView",
|
|
158
|
+
GroupRepertoryAddFavorite = "groupRepertory-addFavorite",
|
|
159
|
+
GroupRepertoryRemoveFavorite = "groupRepertory-removeFavorite",
|
|
160
|
+
GroupRepertoryGetFavorites = "groupRepertory-getFavorites",
|
|
161
|
+
GroupRepertoryGetAcquisitions = "groupRepertory-getAcquisitions",
|
|
128
162
|
GroupSendInvitationEmail = "group-sendInvitationEmail",
|
|
129
163
|
MetricsWeekly = "metrics-week",
|
|
130
164
|
MiscAddSubscriber = "misc-addSubscriber",
|
|
165
|
+
MiscGetMarketplaceExchangeRate = "misc-getMarketplaceExchangeRate",
|
|
166
|
+
MiscRefreshMarketplaceRates = "misc-refreshMarketplaceRates",
|
|
131
167
|
MiscScheduledFirestoreExport = "misc-scheduledFirestoreExport",
|
|
132
168
|
MiscValidateUsername = "misc-validateUsername",
|
|
133
169
|
NotificationMarkAllAsReaded = "notification-markAllAsReaded",
|
package/functions/index.js
CHANGED
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.FbFunctionName = void 0;
|
|
4
4
|
var FbFunctionName;
|
|
5
5
|
(function (FbFunctionName) {
|
|
6
|
+
FbFunctionName["PublicApi"] = "api";
|
|
6
7
|
FbFunctionName["AuthGetToken"] = "authGetToken";
|
|
7
8
|
FbFunctionName["AuthLogin"] = "authLogin";
|
|
8
9
|
FbFunctionName["AuthLogout"] = "authLogout";
|
|
@@ -17,6 +18,25 @@ var FbFunctionName;
|
|
|
17
18
|
FbFunctionName["CommunicationEdit"] = "communication-edit";
|
|
18
19
|
FbFunctionName["CommunicationPublish"] = "communication-publish";
|
|
19
20
|
FbFunctionName["CommunicationRemove"] = "communication-remove";
|
|
21
|
+
FbFunctionName["ComposerGetStatus"] = "composer-getStatus";
|
|
22
|
+
FbFunctionName["ComposerPublish"] = "composer-publish";
|
|
23
|
+
FbFunctionName["ComposerSuperAdminRemove"] = "composer-superAdminRemove";
|
|
24
|
+
FbFunctionName["ComposerCompositionPublish"] = "composerComposition-publish";
|
|
25
|
+
FbFunctionName["ComposerCompositionEdit"] = "composerComposition-edit";
|
|
26
|
+
FbFunctionName["ComposerCompositionIdentifyInstruments"] = "composerComposition-identifyInstruments";
|
|
27
|
+
FbFunctionName["ComposerCompositionIdentifyInstrumentsFromFileNames"] = "composerComposition-identifyInstrumentsFromFileNames";
|
|
28
|
+
FbFunctionName["ComposerCompositionDownloadFiles"] = "composerComposition-downloadFiles";
|
|
29
|
+
FbFunctionName["ComposerCompositionDownloadFilesBySection"] = "composerComposition-downloadFilesBySection";
|
|
30
|
+
FbFunctionName["ComposerCompositionCloneFiles"] = "composerComposition-cloneFiles";
|
|
31
|
+
FbFunctionName["ComposerCompositionOnCreate"] = "composerComposition-onCreate";
|
|
32
|
+
FbFunctionName["ComposerCompositionOnUpdate"] = "composerComposition-onUpdate";
|
|
33
|
+
FbFunctionName["ComposerCompositionSuperAdminRemove"] = "composerComposition-superAdminRemove";
|
|
34
|
+
FbFunctionName["ComposerNotificationSendWeeklySummaries"] = "composerNotification-sendWeeklySummaries";
|
|
35
|
+
FbFunctionName["ComposerNotificationSendUpcomingPerformanceReminders"] = "composerNotification-sendUpcomingPerformanceReminders";
|
|
36
|
+
FbFunctionName["ComposerNotificationRetryFailedEmails"] = "composerNotification-retryFailedEmails";
|
|
37
|
+
FbFunctionName["ComposerPayoutCreatePayout"] = "composerPayout-createPayout";
|
|
38
|
+
FbFunctionName["ComposerPayoutCancelPayout"] = "composerPayout-cancelPayout";
|
|
39
|
+
FbFunctionName["ComposerPayoutSuperAdminResolve"] = "composerPayout-superAdminResolve";
|
|
20
40
|
FbFunctionName["CustomerAddConfirmedAdmin"] = "customer-addConfirmedAdmin";
|
|
21
41
|
FbFunctionName["CustomerCreate"] = "customer-create";
|
|
22
42
|
FbFunctionName["CustomerEdit"] = "customer-edit";
|
|
@@ -44,6 +64,9 @@ var FbFunctionName;
|
|
|
44
64
|
FbFunctionName["EventOnCreate"] = "event-onCreate";
|
|
45
65
|
FbFunctionName["EventOnUpdate"] = "event-onUpdate";
|
|
46
66
|
FbFunctionName["EventPlayerEdit"] = "eventPlayer-edit";
|
|
67
|
+
FbFunctionName["EventPlayerOnCreate"] = "eventPlayer-onCreate";
|
|
68
|
+
FbFunctionName["EventPlayerOnDelete"] = "eventPlayer-onDelete";
|
|
69
|
+
FbFunctionName["EventPlayerOnUpdate"] = "eventPlayer-onUpdate";
|
|
47
70
|
FbFunctionName["EventPlayerEditPlayerAttendance"] = "eventPlayer-editPlayerAttendance";
|
|
48
71
|
FbFunctionName["EventPlayerEditPlayerInterest"] = "eventPlayer-editPlayerInterest";
|
|
49
72
|
FbFunctionName["EventPlayerSetReasonAttendance"] = "eventPlayer-setReasonAttendance";
|
|
@@ -95,6 +118,8 @@ var FbFunctionName;
|
|
|
95
118
|
FbFunctionName["GroupOnUpdate"] = "group-onUpdate";
|
|
96
119
|
FbFunctionName["GroupPlayerAdd"] = "groupPlayer-add";
|
|
97
120
|
FbFunctionName["GroupPlayerAddPlayer"] = "groupPlayer-addPlayer";
|
|
121
|
+
FbFunctionName["GroupPlayerOnCreate"] = "groupPlayer-onCreate";
|
|
122
|
+
FbFunctionName["GroupPlayerOnDelete"] = "groupPlayer-onDelete";
|
|
98
123
|
FbFunctionName["GroupPlayerEventOnUpdate"] = "groupPlayerEvent-onUpdate";
|
|
99
124
|
FbFunctionName["GroupPlayerJoin"] = "groupPlayer-joinGroup";
|
|
100
125
|
FbFunctionName["GroupPlayerLeave"] = "groupPlayer-leave";
|
|
@@ -129,9 +154,20 @@ var FbFunctionName;
|
|
|
129
154
|
FbFunctionName["GroupRepertoryPublish"] = "groupRepertory-publish";
|
|
130
155
|
FbFunctionName["GroupRepertoryRate"] = "groupRepertory-rate";
|
|
131
156
|
FbFunctionName["GroupRepertoryRemove"] = "groupRepertory-remove";
|
|
157
|
+
FbFunctionName["GroupRepertoryAcquireComposition"] = "groupRepertory-acquireComposition";
|
|
158
|
+
FbFunctionName["GroupRepertoryCreateThemeFromAcquisition"] = "groupRepertory-createThemeFromAcquisition";
|
|
159
|
+
FbFunctionName["GroupRepertoryCreateCompositionCheckout"] = "groupRepertory-createCompositionCheckout";
|
|
160
|
+
FbFunctionName["GroupRepertoryUpgradeComposition"] = "groupRepertory-upgradeComposition";
|
|
161
|
+
FbFunctionName["GroupRepertoryTrackView"] = "groupRepertory-trackView";
|
|
162
|
+
FbFunctionName["GroupRepertoryAddFavorite"] = "groupRepertory-addFavorite";
|
|
163
|
+
FbFunctionName["GroupRepertoryRemoveFavorite"] = "groupRepertory-removeFavorite";
|
|
164
|
+
FbFunctionName["GroupRepertoryGetFavorites"] = "groupRepertory-getFavorites";
|
|
165
|
+
FbFunctionName["GroupRepertoryGetAcquisitions"] = "groupRepertory-getAcquisitions";
|
|
132
166
|
FbFunctionName["GroupSendInvitationEmail"] = "group-sendInvitationEmail";
|
|
133
167
|
FbFunctionName["MetricsWeekly"] = "metrics-week";
|
|
134
168
|
FbFunctionName["MiscAddSubscriber"] = "misc-addSubscriber";
|
|
169
|
+
FbFunctionName["MiscGetMarketplaceExchangeRate"] = "misc-getMarketplaceExchangeRate";
|
|
170
|
+
FbFunctionName["MiscRefreshMarketplaceRates"] = "misc-refreshMarketplaceRates";
|
|
135
171
|
FbFunctionName["MiscScheduledFirestoreExport"] = "misc-scheduledFirestoreExport";
|
|
136
172
|
FbFunctionName["MiscValidateUsername"] = "misc-validateUsername";
|
|
137
173
|
FbFunctionName["NotificationMarkAllAsReaded"] = "notification-markAllAsReaded";
|
|
@@ -228,4 +264,4 @@ var FbFunctionName;
|
|
|
228
264
|
FbFunctionName["InventoryItemAdd"] = "inventoryItem-add";
|
|
229
265
|
FbFunctionName["InventoryItemDelete"] = "inventoryItem-remove";
|
|
230
266
|
FbFunctionName["InventoryItemEdit"] = "inventoryItem-edit";
|
|
231
|
-
})(FbFunctionName
|
|
267
|
+
})(FbFunctionName || (exports.FbFunctionName = FbFunctionName = {}));
|
package/functions/misc.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CurrencyExchangeRateSnapshot, MarketplaceCurrencyCode } from '../helpers/currency';
|
|
1
2
|
export declare namespace MiscFbFunctionsTypes {
|
|
2
3
|
interface ValidateUsernameParams {
|
|
3
4
|
username: string;
|
|
@@ -15,4 +16,9 @@ export declare namespace MiscFbFunctionsTypes {
|
|
|
15
16
|
lang: string;
|
|
16
17
|
}
|
|
17
18
|
type MiscAddSubscriberResult = void;
|
|
19
|
+
interface GetMarketplaceExchangeRateParams {
|
|
20
|
+
baseCurrency: MarketplaceCurrencyCode;
|
|
21
|
+
targetCurrency: MarketplaceCurrencyCode;
|
|
22
|
+
}
|
|
23
|
+
type GetMarketplaceExchangeRateResult = CurrencyExchangeRateSnapshot;
|
|
18
24
|
}
|
package/functions/regions.js
CHANGED
|
@@ -7,9 +7,10 @@ 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 = GCloudRegions = {}));
|
|
11
11
|
const defaultRegion = GCloudRegions.UsCentral1;
|
|
12
12
|
const regionByFunctions = {
|
|
13
|
+
[index_1.FbFunctionName.PublicApi]: GCloudRegions.EuropeWest6,
|
|
13
14
|
[index_1.FbFunctionName.AuthGetToken]: GCloudRegions.EuropeWest6,
|
|
14
15
|
[index_1.FbFunctionName.AuthLogin]: GCloudRegions.EuropeWest6,
|
|
15
16
|
[index_1.FbFunctionName.AuthLogout]: GCloudRegions.EuropeWest6,
|
|
@@ -24,6 +25,25 @@ const regionByFunctions = {
|
|
|
24
25
|
[index_1.FbFunctionName.CommunicationEdit]: GCloudRegions.UsCentral1,
|
|
25
26
|
[index_1.FbFunctionName.CommunicationPublish]: GCloudRegions.UsCentral1,
|
|
26
27
|
[index_1.FbFunctionName.CommunicationRemove]: GCloudRegions.UsCentral1,
|
|
28
|
+
[index_1.FbFunctionName.ComposerGetStatus]: GCloudRegions.EuropeWest6,
|
|
29
|
+
[index_1.FbFunctionName.ComposerPublish]: GCloudRegions.EuropeWest6,
|
|
30
|
+
[index_1.FbFunctionName.ComposerSuperAdminRemove]: GCloudRegions.EuropeWest6,
|
|
31
|
+
[index_1.FbFunctionName.ComposerCompositionPublish]: GCloudRegions.EuropeWest6,
|
|
32
|
+
[index_1.FbFunctionName.ComposerCompositionEdit]: GCloudRegions.EuropeWest6,
|
|
33
|
+
[index_1.FbFunctionName.ComposerCompositionIdentifyInstruments]: GCloudRegions.EuropeWest6,
|
|
34
|
+
[index_1.FbFunctionName.ComposerCompositionIdentifyInstrumentsFromFileNames]: GCloudRegions.EuropeWest6,
|
|
35
|
+
[index_1.FbFunctionName.ComposerCompositionDownloadFiles]: GCloudRegions.EuropeWest6,
|
|
36
|
+
[index_1.FbFunctionName.ComposerCompositionDownloadFilesBySection]: GCloudRegions.EuropeWest6,
|
|
37
|
+
[index_1.FbFunctionName.ComposerCompositionCloneFiles]: GCloudRegions.EuropeWest6,
|
|
38
|
+
[index_1.FbFunctionName.ComposerCompositionOnCreate]: GCloudRegions.EuropeWest6,
|
|
39
|
+
[index_1.FbFunctionName.ComposerCompositionOnUpdate]: GCloudRegions.EuropeWest6,
|
|
40
|
+
[index_1.FbFunctionName.ComposerCompositionSuperAdminRemove]: GCloudRegions.EuropeWest6,
|
|
41
|
+
[index_1.FbFunctionName.ComposerNotificationSendWeeklySummaries]: GCloudRegions.EuropeWest6,
|
|
42
|
+
[index_1.FbFunctionName.ComposerNotificationSendUpcomingPerformanceReminders]: GCloudRegions.EuropeWest6,
|
|
43
|
+
[index_1.FbFunctionName.ComposerNotificationRetryFailedEmails]: GCloudRegions.EuropeWest6,
|
|
44
|
+
[index_1.FbFunctionName.ComposerPayoutCreatePayout]: GCloudRegions.EuropeWest6,
|
|
45
|
+
[index_1.FbFunctionName.ComposerPayoutCancelPayout]: GCloudRegions.EuropeWest6,
|
|
46
|
+
[index_1.FbFunctionName.ComposerPayoutSuperAdminResolve]: GCloudRegions.EuropeWest6,
|
|
27
47
|
[index_1.FbFunctionName.CustomerAddConfirmedAdmin]: GCloudRegions.EuropeWest6,
|
|
28
48
|
[index_1.FbFunctionName.CustomerCreate]: GCloudRegions.EuropeWest6,
|
|
29
49
|
[index_1.FbFunctionName.CustomerEdit]: GCloudRegions.EuropeWest6,
|
|
@@ -51,6 +71,9 @@ const regionByFunctions = {
|
|
|
51
71
|
[index_1.FbFunctionName.EventOnCreate]: GCloudRegions.UsCentral1,
|
|
52
72
|
[index_1.FbFunctionName.EventOnUpdate]: GCloudRegions.UsCentral1,
|
|
53
73
|
[index_1.FbFunctionName.EventPlayerEdit]: GCloudRegions.UsCentral1,
|
|
74
|
+
[index_1.FbFunctionName.EventPlayerOnCreate]: GCloudRegions.UsCentral1,
|
|
75
|
+
[index_1.FbFunctionName.EventPlayerOnDelete]: GCloudRegions.UsCentral1,
|
|
76
|
+
[index_1.FbFunctionName.EventPlayerOnUpdate]: GCloudRegions.UsCentral1,
|
|
54
77
|
[index_1.FbFunctionName.EventPlayerEditPlayerAttendance]: GCloudRegions.EuropeWest6,
|
|
55
78
|
[index_1.FbFunctionName.EventPlayerEditPlayerInterest]: GCloudRegions.EuropeWest6,
|
|
56
79
|
[index_1.FbFunctionName.EventPlayerSetReasonAttendance]: GCloudRegions.EuropeWest6,
|
|
@@ -102,6 +125,8 @@ const regionByFunctions = {
|
|
|
102
125
|
[index_1.FbFunctionName.GroupOnUpdate]: GCloudRegions.UsCentral1,
|
|
103
126
|
[index_1.FbFunctionName.GroupPlayerAdd]: GCloudRegions.UsCentral1,
|
|
104
127
|
[index_1.FbFunctionName.GroupPlayerAddPlayer]: GCloudRegions.EuropeWest6,
|
|
128
|
+
[index_1.FbFunctionName.GroupPlayerOnCreate]: GCloudRegions.UsCentral1,
|
|
129
|
+
[index_1.FbFunctionName.GroupPlayerOnDelete]: GCloudRegions.UsCentral1,
|
|
105
130
|
[index_1.FbFunctionName.GroupPlayerEventOnUpdate]: GCloudRegions.UsCentral1,
|
|
106
131
|
[index_1.FbFunctionName.GroupPlayerEditFakeInfo]: GCloudRegions.EuropeWest6,
|
|
107
132
|
[index_1.FbFunctionName.GroupPlayerLinkFakeAccount]: GCloudRegions.EuropeWest6,
|
|
@@ -136,9 +161,20 @@ const regionByFunctions = {
|
|
|
136
161
|
[index_1.FbFunctionName.GroupRepertoryPublish]: GCloudRegions.UsCentral1,
|
|
137
162
|
[index_1.FbFunctionName.GroupRepertoryRate]: GCloudRegions.EuropeWest6,
|
|
138
163
|
[index_1.FbFunctionName.GroupRepertoryRemove]: GCloudRegions.UsCentral1,
|
|
164
|
+
[index_1.FbFunctionName.GroupRepertoryAcquireComposition]: GCloudRegions.EuropeWest6,
|
|
165
|
+
[index_1.FbFunctionName.GroupRepertoryCreateThemeFromAcquisition]: GCloudRegions.EuropeWest6,
|
|
166
|
+
[index_1.FbFunctionName.GroupRepertoryCreateCompositionCheckout]: GCloudRegions.EuropeWest6,
|
|
167
|
+
[index_1.FbFunctionName.GroupRepertoryUpgradeComposition]: GCloudRegions.EuropeWest6,
|
|
168
|
+
[index_1.FbFunctionName.GroupRepertoryTrackView]: GCloudRegions.EuropeWest6,
|
|
169
|
+
[index_1.FbFunctionName.GroupRepertoryAddFavorite]: GCloudRegions.EuropeWest6,
|
|
170
|
+
[index_1.FbFunctionName.GroupRepertoryRemoveFavorite]: GCloudRegions.EuropeWest6,
|
|
171
|
+
[index_1.FbFunctionName.GroupRepertoryGetFavorites]: GCloudRegions.EuropeWest6,
|
|
172
|
+
[index_1.FbFunctionName.GroupRepertoryGetAcquisitions]: GCloudRegions.EuropeWest6,
|
|
139
173
|
[index_1.FbFunctionName.GroupSendInvitationEmail]: GCloudRegions.EuropeWest6,
|
|
140
174
|
[index_1.FbFunctionName.MetricsWeekly]: GCloudRegions.EuropeWest6,
|
|
141
175
|
[index_1.FbFunctionName.MiscAddSubscriber]: GCloudRegions.EuropeWest6,
|
|
176
|
+
[index_1.FbFunctionName.MiscGetMarketplaceExchangeRate]: GCloudRegions.EuropeWest6,
|
|
177
|
+
[index_1.FbFunctionName.MiscRefreshMarketplaceRates]: GCloudRegions.EuropeWest6,
|
|
142
178
|
[index_1.FbFunctionName.MiscScheduledFirestoreExport]: GCloudRegions.EuropeWest6,
|
|
143
179
|
[index_1.FbFunctionName.MiscValidateUsername]: GCloudRegions.UsCentral1,
|
|
144
180
|
[index_1.FbFunctionName.NotificationMarkAllAsReaded]: GCloudRegions.UsCentral1,
|
package/helpers/appScenes.js
CHANGED
package/helpers/auth.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { FbFunctionName } from '../functions';
|
|
2
|
-
import { LanguagesTypes } from '../lang';
|
|
3
1
|
import { CustomerRoles } from '../models/Customer/types';
|
|
4
2
|
import { GroupPlayerRole } from '../models/Group/Player/types';
|
|
5
3
|
import { PartnershipRoles } from '../models/Partnership/types';
|
|
@@ -10,7 +8,9 @@ export interface AuthUserClaims {
|
|
|
10
8
|
customers?: Record<string, CustomerRoles>;
|
|
11
9
|
superAdmin?: boolean;
|
|
12
10
|
besm?: boolean;
|
|
11
|
+
role?: 'authenticated';
|
|
13
12
|
}
|
|
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,10 +19,3 @@ 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;
|