@glissandoo/lib 1.114.0 → 1.115.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 +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 +30 -0
- package/functions/index.js +31 -1
- package/functions/misc.d.ts +6 -0
- package/functions/regions.js +31 -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 +85 -0
- 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/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 +25 -5
- 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 +2 -31
- package/models/Evento/types.js +8 -39
- 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 +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 +15 -17
- package/models/Group/index.js +16 -15
- package/models/Group/types.d.ts +6 -66
- package/models/Group/types.js +8 -50
- package/models/Instrument/{group.d.ts → fromRecord.d.ts} +4 -5
- package/models/Instrument/{group.js → fromRecord.js} +10 -10
- 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/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 +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 +7 -7
- 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 +36 -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 +36 -0
- package/models/supabase/EventHistory/types.js +34 -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/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 +6 -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 +28 -20
- package/types/firestore.d.ts +0 -1
- package/types/firestore.js +1 -1
- 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 +3158 -451
- package/types/supabase/generated.js +13 -0
- package/types/supabase/generated.ts +3116 -496
- package/types/supabase/index.d.ts +155 -19
- package/types/supabase/index.js +15 -0
- package/types/supabase/index.ts +288 -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/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/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/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/helpers/glissandooAdmin.d.ts +0 -3
- package/helpers/glissandooAdmin.js +0 -6
- 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
|
@@ -7,6 +7,25 @@ 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",
|
|
10
29
|
CustomerAddConfirmedAdmin = "customer-addConfirmedAdmin",
|
|
11
30
|
CustomerCreate = "customer-create",
|
|
12
31
|
CustomerEdit = "customer-edit",
|
|
@@ -105,9 +124,20 @@ export declare enum FbFunctionName {
|
|
|
105
124
|
GroupRepertoryPublish = "groupRepertory-publish",
|
|
106
125
|
GroupRepertoryRate = "groupRepertory-rate",
|
|
107
126
|
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",
|
|
108
136
|
GroupSendInvitationEmail = "group-sendInvitationEmail",
|
|
109
137
|
MetricsWeekly = "metrics-week",
|
|
110
138
|
MiscAddSubscriber = "misc-addSubscriber",
|
|
139
|
+
MiscGetMarketplaceExchangeRate = "misc-getMarketplaceExchangeRate",
|
|
140
|
+
MiscRefreshMarketplaceRates = "misc-refreshMarketplaceRates",
|
|
111
141
|
MiscScheduledFirestoreExport = "misc-scheduledFirestoreExport",
|
|
112
142
|
MiscValidateUsername = "misc-validateUsername",
|
|
113
143
|
NotificationMarkAllAsReaded = "notification-markAllAsReaded",
|
package/functions/index.js
CHANGED
|
@@ -11,6 +11,25 @@ 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";
|
|
14
33
|
FbFunctionName["CustomerAddConfirmedAdmin"] = "customer-addConfirmedAdmin";
|
|
15
34
|
FbFunctionName["CustomerCreate"] = "customer-create";
|
|
16
35
|
FbFunctionName["CustomerEdit"] = "customer-edit";
|
|
@@ -109,9 +128,20 @@ var FbFunctionName;
|
|
|
109
128
|
FbFunctionName["GroupRepertoryPublish"] = "groupRepertory-publish";
|
|
110
129
|
FbFunctionName["GroupRepertoryRate"] = "groupRepertory-rate";
|
|
111
130
|
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";
|
|
112
140
|
FbFunctionName["GroupSendInvitationEmail"] = "group-sendInvitationEmail";
|
|
113
141
|
FbFunctionName["MetricsWeekly"] = "metrics-week";
|
|
114
142
|
FbFunctionName["MiscAddSubscriber"] = "misc-addSubscriber";
|
|
143
|
+
FbFunctionName["MiscGetMarketplaceExchangeRate"] = "misc-getMarketplaceExchangeRate";
|
|
144
|
+
FbFunctionName["MiscRefreshMarketplaceRates"] = "misc-refreshMarketplaceRates";
|
|
115
145
|
FbFunctionName["MiscScheduledFirestoreExport"] = "misc-scheduledFirestoreExport";
|
|
116
146
|
FbFunctionName["MiscValidateUsername"] = "misc-validateUsername";
|
|
117
147
|
FbFunctionName["NotificationMarkAllAsReaded"] = "notification-markAllAsReaded";
|
|
@@ -206,4 +236,4 @@ var FbFunctionName;
|
|
|
206
236
|
FbFunctionName["InventoryItemAdd"] = "inventoryItem-add";
|
|
207
237
|
FbFunctionName["InventoryItemDelete"] = "inventoryItem-remove";
|
|
208
238
|
FbFunctionName["InventoryItemEdit"] = "inventoryItem-edit";
|
|
209
|
-
})(FbFunctionName
|
|
239
|
+
})(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,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 = GCloudRegions = {}));
|
|
11
11
|
const defaultRegion = GCloudRegions.UsCentral1;
|
|
12
12
|
const regionByFunctions = {
|
|
13
13
|
[index_1.FbFunctionName.AuthGetToken]: GCloudRegions.EuropeWest6,
|
|
@@ -18,6 +18,25 @@ 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,
|
|
21
40
|
[index_1.FbFunctionName.CustomerAddConfirmedAdmin]: GCloudRegions.EuropeWest6,
|
|
22
41
|
[index_1.FbFunctionName.CustomerCreate]: GCloudRegions.EuropeWest6,
|
|
23
42
|
[index_1.FbFunctionName.CustomerEdit]: GCloudRegions.EuropeWest6,
|
|
@@ -116,9 +135,20 @@ const regionByFunctions = {
|
|
|
116
135
|
[index_1.FbFunctionName.GroupRepertoryPublish]: GCloudRegions.UsCentral1,
|
|
117
136
|
[index_1.FbFunctionName.GroupRepertoryRate]: GCloudRegions.EuropeWest6,
|
|
118
137
|
[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,
|
|
119
147
|
[index_1.FbFunctionName.GroupSendInvitationEmail]: GCloudRegions.EuropeWest6,
|
|
120
148
|
[index_1.FbFunctionName.MetricsWeekly]: GCloudRegions.EuropeWest6,
|
|
121
149
|
[index_1.FbFunctionName.MiscAddSubscriber]: GCloudRegions.EuropeWest6,
|
|
150
|
+
[index_1.FbFunctionName.MiscGetMarketplaceExchangeRate]: GCloudRegions.EuropeWest6,
|
|
151
|
+
[index_1.FbFunctionName.MiscRefreshMarketplaceRates]: GCloudRegions.EuropeWest6,
|
|
122
152
|
[index_1.FbFunctionName.MiscScheduledFirestoreExport]: GCloudRegions.EuropeWest6,
|
|
123
153
|
[index_1.FbFunctionName.MiscValidateUsername]: GCloudRegions.UsCentral1,
|
|
124
154
|
[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;
|
package/helpers/auth.js
CHANGED
|
@@ -1,8 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const
|
|
5
|
-
const
|
|
3
|
+
exports.AuthErrors = exports.parseAuthUserClaims = void 0;
|
|
4
|
+
const types_1 = require("../models/Customer/types");
|
|
5
|
+
const types_2 = require("../models/Group/Player/types");
|
|
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;
|
|
6
35
|
var AuthErrors;
|
|
7
36
|
(function (AuthErrors) {
|
|
8
37
|
AuthErrors["NoSuperAdmin"] = "error.auth.notSuperadmin";
|
|
@@ -11,14 +40,4 @@ var AuthErrors;
|
|
|
11
40
|
AuthErrors["NoFederationAdmin"] = "error.auth.noFederationAdmin";
|
|
12
41
|
AuthErrors["NoPartnerhispAdmin"] = "error.auth.noPartnershipAdmin";
|
|
13
42
|
AuthErrors["Unauthenticated"] = "error.auth.unauthenticated";
|
|
14
|
-
})(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;
|
|
43
|
+
})(AuthErrors || (exports.AuthErrors = AuthErrors = {}));
|
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 = BadgesTypes = {}));
|
|
15
15
|
exports.badgesLevels = {
|
|
16
16
|
badgeAccPerformances: {
|
|
17
17
|
1: {
|