@glissandoo/lib 1.123.0-dev.214.1 → 1.123.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 +1 -3
- package/functions/calendarFeed.d.ts +4 -1
- package/functions/customer.d.ts +0 -4
- package/functions/event.js +1 -1
- package/functions/eventPlayer.js +1 -1
- package/functions/eventRepertory.d.ts +0 -2
- package/functions/eventRepertory.js +1 -1
- package/functions/groupRepertory.d.ts +0 -110
- package/functions/index.d.ts +0 -30
- package/functions/index.js +1 -31
- package/functions/misc.d.ts +0 -6
- package/functions/regions.js +1 -31
- package/helpers/appScenes.js +1 -1
- package/helpers/auth.d.ts +9 -2
- package/helpers/auth.js +14 -33
- package/helpers/badges.js +1 -1
- package/helpers/collections.js +2 -2
- package/helpers/communicationTemplate/index.d.ts +2 -3
- package/helpers/communicationTemplate/index.js +5 -5
- package/helpers/currency.d.ts +0 -19
- package/helpers/currency.js +2 -71
- package/helpers/dlinks.js +1 -1
- package/helpers/errors.d.ts +0 -1
- package/helpers/errors.js +1 -2
- package/helpers/instruments/index.d.ts +0 -17
- package/helpers/instruments/index.js +1 -5
- package/helpers/instruments/lists.d.ts +3 -3
- package/helpers/instruments/lists.js +5 -5
- package/helpers/musicStyles/index.d.ts +4 -22
- package/helpers/musicStyles/index.js +35 -114
- package/helpers/notifications/index.js +1 -1
- package/helpers/objects.d.ts +1 -5
- package/helpers/objects.js +6 -7
- package/helpers/paymentForecast.js +2 -1
- package/helpers/payoutRules.js +4 -3
- package/helpers/plans.js +2 -2
- package/helpers/rates.d.ts +1 -1
- package/helpers/slate.d.ts +5 -64
- package/helpers/slate.js +1 -7
- package/helpers/ts-extras/array-includes.js +2 -1
- package/helpers/ts-extras/as-mutable.js +2 -1
- package/helpers/ts-extras/assert-error.js +2 -1
- package/helpers/ts-extras/index.js +1 -1
- package/helpers/ts-extras/is-defined.js +2 -1
- package/helpers/ts-extras/is-empty.js +2 -1
- package/helpers/ts-extras/is-infinite.js +2 -1
- package/helpers/ts-extras/is-present.js +2 -1
- package/helpers/ts-extras/object-entries.d.ts +1 -1
- package/helpers/ts-extras/object-from-entries.d.ts +1 -1
- package/helpers/ts-extras/object-has-own.js +2 -1
- package/helpers/ts-extras/object-keys.d.ts +1 -1
- package/helpers/ts-extras/object-keys.js +1 -0
- package/helpers/ts-extras/set-has.js +2 -1
- package/helpers/types.d.ts +0 -26
- package/helpers/types.js +6 -26
- package/lang/ca.json +91 -325
- package/lang/de.json +91 -325
- package/lang/en.json +91 -325
- package/lang/es.json +91 -325
- package/lang/eu.json +91 -325
- package/lang/fr.json +91 -325
- package/lang/gl.json +91 -325
- package/lang/index.js +2 -3
- package/lang/it.json +91 -325
- package/lang/nl.json +91 -325
- package/lang/pt.json +91 -325
- package/models/Communication/types.d.ts +16 -0
- package/models/Communication/types.js +9 -3
- package/models/Counters/Group/Analytics/types.js +1 -1
- package/models/Customer/index.d.ts +1 -1
- package/models/Customer/index.js +3 -3
- package/models/Customer/types.js +1 -1
- package/models/Evento/Player/types.js +3 -3
- package/models/Evento/Repertory/types.d.ts +1 -2
- package/models/Evento/index.d.ts +2 -3
- package/models/Evento/index.js +4 -5
- package/models/Evento/types.d.ts +34 -3
- package/models/Evento/types.js +41 -9
- 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 +2 -3
- package/models/Group/Repertory/File/Section/types.d.ts +0 -7
- package/models/Group/Repertory/File/Section/types.js +1 -1
- package/models/Group/Repertory/File/index.d.ts +2 -4
- package/models/Group/Repertory/File/index.js +4 -4
- package/models/Group/Repertory/FilePath/index.d.ts +4 -3
- package/models/Group/Repertory/index.d.ts +4 -12
- package/models/Group/Repertory/index.js +0 -9
- package/models/Group/Repertory/types.d.ts +32 -21
- package/models/Group/Repertory/types.js +18 -8
- package/models/Group/index.d.ts +2 -7
- package/models/Group/index.js +0 -14
- package/models/Group/types.d.ts +21 -2
- package/models/Group/types.js +33 -14
- package/models/Instrument/index.d.ts +0 -2
- package/models/Instrument/index.js +1 -38
- package/models/Inventory/Item/types.js +2 -2
- package/models/Inventory/types.js +1 -1
- package/models/Notification/types.js +2 -2
- package/models/Offer/types.d.ts +12 -0
- package/models/Offer/types.js +15 -2
- package/models/Partnership/Communication/supabase.js +2 -2
- package/models/Partnership/Group/index.d.ts +1 -2
- package/models/Partnership/Group/index.js +3 -15
- 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 +0 -1
- package/models/Partnership/index.js +0 -4
- package/models/Partnership/types.js +1 -1
- package/models/Repertory/types.d.ts +0 -12
- package/models/Repertory/types.js +2 -2
- package/models/User/Group/index.js +2 -1
- package/models/User/index.d.ts +1 -1
- package/models/User/index.js +3 -3
- package/models/User/types.d.ts +1 -2
- package/models/User/types.js +7 -7
- package/models/WebhookEvent/types.js +1 -1
- package/package.json +13 -15
- package/types/firestore.d.ts +1 -0
- package/types/firestore.js +1 -1
- package/types/payoutRule.js +3 -3
- package/types/supabase/generated.d.ts +1081 -3541
- package/types/supabase/generated.js +0 -9
- package/types/supabase/generated.ts +1087 -3478
- package/types/supabase/index.d.ts +19 -159
- package/types/supabase/index.js +0 -15
- package/types/supabase/index.ts +21 -292
- package/types/supabase/overwrites/comm.d.ts +18 -0
- package/types/supabase/overwrites/comm.ts +18 -0
- package/types/supabase/overwrites/comm_history.d.ts +10 -0
- package/types/supabase/overwrites/comm_history.ts +10 -0
- package/types/supabase/overwrites/{tables/event/index.d.ts → event.d.ts} +1 -1
- package/types/supabase/overwrites/{tables/event/index.ts → event.ts} +1 -1
- package/types/supabase/overwrites/event_history.d.ts +10 -0
- package/types/supabase/overwrites/event_history.ts +10 -0
- package/types/supabase/overwrites/{tables/group/index.d.ts → group.d.ts} +5 -2
- package/types/supabase/overwrites/{tables/group/index.ts → group.ts} +6 -2
- package/types/supabase/overwrites/group_history.d.ts +9 -0
- package/types/supabase/overwrites/group_history.ts +9 -0
- package/types/supabase/overwrites/index.d.ts +1 -1
- package/types/supabase/overwrites/index.ts +1 -1
- package/types/supabase/overwrites/{tables/offer/index.d.ts → offer.d.ts} +2 -6
- package/types/supabase/overwrites/{tables/offer/index.ts → offer.ts} +2 -7
- package/types/supabase/overwrites/offer_history.d.ts +10 -0
- package/types/supabase/overwrites/offer_history.ts +10 -0
- package/types/supabase/overwrites/repertoire.d.ts +12 -0
- package/types/supabase/overwrites/repertoire.ts +12 -0
- package/types/supabase/overwrites/repertoire_history.d.ts +10 -0
- package/types/supabase/overwrites/repertoire_history.ts +10 -0
- package/functions/composer.d.ts +0 -13
- package/functions/composerComposition.d.ts +0 -102
- package/functions/composerNotification.d.ts +0 -38
- package/functions/composerPayout.d.ts +0 -20
- package/helpers/catalogBridge.d.ts +0 -121
- package/helpers/catalogBridge.js +0 -95
- package/helpers/compositionCategories/genres.d.ts +0 -922
- package/helpers/compositionCategories/genres.js +0 -940
- package/helpers/compositionCategories/index.d.ts +0 -2
- package/helpers/compositionCategories/index.js +0 -18
- package/helpers/compositionCategories/styles.d.ts +0 -181
- package/helpers/compositionCategories/styles.js +0 -197
- package/helpers/compositionSoloistOffstageParts/index.d.ts +0 -34
- package/helpers/compositionSoloistOffstageParts/index.js +0 -117
- package/helpers/currencyConversion.d.ts +0 -45
- package/helpers/currencyConversion.js +0 -119
- package/helpers/dataStructures/trees/index.d.ts +0 -12
- package/helpers/dataStructures/trees/index.js +0 -71
- package/helpers/dataStructures/trees/types.d.ts +0 -14
- package/helpers/dataStructures/trees/types.js +0 -5
- package/helpers/externalUrls.d.ts +0 -12
- package/helpers/externalUrls.js +0 -40
- package/models/CompositionGenre/index.d.ts +0 -9
- package/models/CompositionGenre/index.js +0 -16
- package/models/CompositionStyle/index.d.ts +0 -9
- package/models/CompositionStyle/index.js +0 -16
- package/models/Instrument/fromRecord.d.ts +0 -11
- package/models/Instrument/fromRecord.js +0 -33
- package/models/supabase/Comm/index.d.ts +0 -24
- package/models/supabase/Comm/index.js +0 -68
- package/models/supabase/Comm/types.d.ts +0 -6
- package/models/supabase/CommHistory/index.d.ts +0 -22
- package/models/supabase/CommHistory/index.js +0 -37
- package/models/supabase/CommHistory/types.d.ts +0 -11
- package/models/supabase/CommHistory/types.js +0 -9
- package/models/supabase/Composer/Composition/Acquisition/index.d.ts +0 -4
- package/models/supabase/Composer/Composition/Acquisition/index.js +0 -9
- package/models/supabase/Composer/Composition/Acquisition/types.d.ts +0 -36
- package/models/supabase/Composer/Composition/Favorite/index.d.ts +0 -4
- package/models/supabase/Composer/Composition/Favorite/index.js +0 -9
- package/models/supabase/Composer/Composition/Favorite/types.d.ts +0 -6
- package/models/supabase/Composer/Composition/View/index.d.ts +0 -4
- package/models/supabase/Composer/Composition/View/index.js +0 -9
- package/models/supabase/Composer/Composition/View/types.d.ts +0 -6
- package/models/supabase/Composer/Composition/index.d.ts +0 -5284
- package/models/supabase/Composer/Composition/index.js +0 -166
- package/models/supabase/Composer/Composition/types.d.ts +0 -96
- package/models/supabase/Composer/Composition/types.js +0 -32
- package/models/supabase/Composer/Notification/index.d.ts +0 -4
- package/models/supabase/Composer/Notification/index.js +0 -9
- package/models/supabase/Composer/Notification/types.d.ts +0 -39
- package/models/supabase/Composer/Notification/types.js +0 -27
- package/models/supabase/Composer/Payout/index.d.ts +0 -4
- package/models/supabase/Composer/Payout/index.js +0 -9
- package/models/supabase/Composer/Payout/status.d.ts +0 -1
- package/models/supabase/Composer/Payout/types.d.ts +0 -5
- package/models/supabase/Composer/PerformanceAttendance/types.d.ts +0 -4
- package/models/supabase/Composer/index.d.ts +0 -78
- package/models/supabase/Composer/index.js +0 -105
- package/models/supabase/Composer/types.d.ts +0 -6
- package/models/supabase/Composer/types.js +0 -2
- package/models/supabase/EventHistory/index.d.ts +0 -22
- package/models/supabase/EventHistory/index.js +0 -37
- package/models/supabase/EventHistory/types.d.ts +0 -39
- package/models/supabase/EventHistory/types.js +0 -37
- package/models/supabase/GroupHistory/index.d.ts +0 -21
- package/models/supabase/GroupHistory/index.js +0 -34
- package/models/supabase/GroupHistory/types.d.ts +0 -27
- package/models/supabase/GroupHistory/types.js +0 -25
- package/models/supabase/Model/index.d.ts +0 -10
- package/models/supabase/Model/index.js +0 -21
- package/models/supabase/OfferHistory/index.d.ts +0 -22
- package/models/supabase/OfferHistory/index.js +0 -37
- package/models/supabase/OfferHistory/types.d.ts +0 -18
- package/models/supabase/OfferHistory/types.js +0 -16
- package/models/supabase/Repertoire/index.d.ts +0 -16
- package/models/supabase/Repertoire/index.js +0 -43
- package/models/supabase/Repertoire/types.d.ts +0 -6
- package/models/supabase/Repertoire/types.js +0 -2
- package/models/supabase/RepertoireHistory/index.d.ts +0 -22
- package/models/supabase/RepertoireHistory/index.js +0 -37
- package/models/supabase/RepertoireHistory/types.d.ts +0 -21
- package/models/supabase/RepertoireHistory/types.js +0 -19
- package/models/supabase/User/Group/index.d.ts +0 -11
- package/models/supabase/User/Group/index.js +0 -30
- package/models/supabase/User/Group/types.d.ts +0 -6
- package/models/supabase/User/Group/types.js +0 -2
- package/models/supabase/User/index.d.ts +0 -13
- package/models/supabase/User/index.js +0 -37
- package/models/supabase/User/types.d.ts +0 -6
- package/models/supabase/User/types.js +0 -2
- package/types/supabase/catalog.d.ts +0 -46
- package/types/supabase/catalog.js +0 -2
- package/types/supabase/catalog.ts +0 -67
- package/types/supabase/composerMetrics.d.ts +0 -27
- package/types/supabase/composerMetrics.js +0 -2
- package/types/supabase/composerMetrics.ts +0 -26
- package/types/supabase/overwrites/tables/comm/model.d.ts +0 -4
- package/types/supabase/overwrites/tables/comm/model.js +0 -2
- package/types/supabase/overwrites/tables/comm/model.ts +0 -4
- package/types/supabase/overwrites/tables/comm_history/index.d.ts +0 -7
- package/types/supabase/overwrites/tables/comm_history/index.js +0 -2
- package/types/supabase/overwrites/tables/comm_history/index.ts +0 -9
- package/types/supabase/overwrites/tables/comm_history/model.d.ts +0 -10
- package/types/supabase/overwrites/tables/comm_history/model.js +0 -2
- package/types/supabase/overwrites/tables/comm_history/model.ts +0 -13
- package/types/supabase/overwrites/tables/common/index.js +0 -2
- package/types/supabase/overwrites/tables/composer/index.d.ts +0 -9
- package/types/supabase/overwrites/tables/composer/index.js +0 -2
- package/types/supabase/overwrites/tables/composer/index.ts +0 -10
- package/types/supabase/overwrites/tables/composer/model.d.ts +0 -12
- package/types/supabase/overwrites/tables/composer/model.js +0 -2
- package/types/supabase/overwrites/tables/composer/model.ts +0 -15
- package/types/supabase/overwrites/tables/composer/publicModel.d.ts +0 -11
- package/types/supabase/overwrites/tables/composer/publicModel.js +0 -2
- package/types/supabase/overwrites/tables/composer/publicModel.ts +0 -15
- package/types/supabase/overwrites/tables/composerComposition/index.d.ts +0 -18
- package/types/supabase/overwrites/tables/composerComposition/index.js +0 -2
- package/types/supabase/overwrites/tables/composerComposition/index.ts +0 -24
- package/types/supabase/overwrites/tables/composerComposition/model.d.ts +0 -9
- package/types/supabase/overwrites/tables/composerComposition/model.js +0 -2
- package/types/supabase/overwrites/tables/composerComposition/model.ts +0 -26
- package/types/supabase/overwrites/tables/composerComposition/publicModel.d.ts +0 -9
- package/types/supabase/overwrites/tables/composerComposition/publicModel.js +0 -2
- package/types/supabase/overwrites/tables/composerComposition/publicModel.ts +0 -37
- package/types/supabase/overwrites/tables/composerNotification/index.d.ts +0 -19
- package/types/supabase/overwrites/tables/composerNotification/index.js +0 -2
- package/types/supabase/overwrites/tables/composerNotification/index.ts +0 -25
- package/types/supabase/overwrites/tables/composerOwnedTransaction/model.d.ts +0 -2
- package/types/supabase/overwrites/tables/composerOwnedTransaction/model.js +0 -2
- package/types/supabase/overwrites/tables/composerOwnedTransaction/model.ts +0 -3
- package/types/supabase/overwrites/tables/composerPayout/index.d.ts +0 -7
- package/types/supabase/overwrites/tables/composerPayout/index.js +0 -2
- package/types/supabase/overwrites/tables/composerPayout/index.ts +0 -8
- package/types/supabase/overwrites/tables/compositionAcquisition/index.d.ts +0 -4
- package/types/supabase/overwrites/tables/compositionAcquisition/index.js +0 -2
- package/types/supabase/overwrites/tables/compositionAcquisition/index.ts +0 -8
- package/types/supabase/overwrites/tables/compositionAcquisition/model.d.ts +0 -6
- package/types/supabase/overwrites/tables/compositionAcquisition/model.js +0 -2
- package/types/supabase/overwrites/tables/compositionAcquisition/model.ts +0 -11
- package/types/supabase/overwrites/tables/compositionFavorite/index.d.ts +0 -1
- package/types/supabase/overwrites/tables/compositionFavorite/index.js +0 -2
- package/types/supabase/overwrites/tables/compositionFavorite/index.ts +0 -2
- package/types/supabase/overwrites/tables/compositionFavorite/model.d.ts +0 -1
- package/types/supabase/overwrites/tables/compositionFavorite/model.js +0 -2
- package/types/supabase/overwrites/tables/compositionFavorite/model.ts +0 -1
- package/types/supabase/overwrites/tables/compositionView/index.d.ts +0 -1
- package/types/supabase/overwrites/tables/compositionView/index.js +0 -2
- package/types/supabase/overwrites/tables/compositionView/index.ts +0 -2
- package/types/supabase/overwrites/tables/compositionView/model.d.ts +0 -1
- package/types/supabase/overwrites/tables/compositionView/model.js +0 -2
- package/types/supabase/overwrites/tables/compositionView/model.ts +0 -1
- package/types/supabase/overwrites/tables/currencyExchangeRate/index.d.ts +0 -16
- package/types/supabase/overwrites/tables/currencyExchangeRate/index.js +0 -2
- package/types/supabase/overwrites/tables/currencyExchangeRate/index.ts +0 -18
- package/types/supabase/overwrites/tables/event/index.js +0 -2
- package/types/supabase/overwrites/tables/event_history/index.d.ts +0 -7
- package/types/supabase/overwrites/tables/event_history/index.js +0 -2
- package/types/supabase/overwrites/tables/event_history/index.ts +0 -9
- package/types/supabase/overwrites/tables/event_history/model.d.ts +0 -10
- package/types/supabase/overwrites/tables/event_history/model.js +0 -2
- package/types/supabase/overwrites/tables/event_history/model.ts +0 -13
- package/types/supabase/overwrites/tables/group/index.js +0 -2
- package/types/supabase/overwrites/tables/group_history/index.d.ts +0 -7
- package/types/supabase/overwrites/tables/group_history/index.js +0 -2
- package/types/supabase/overwrites/tables/group_history/index.ts +0 -9
- package/types/supabase/overwrites/tables/group_history/model.d.ts +0 -10
- package/types/supabase/overwrites/tables/group_history/model.js +0 -2
- package/types/supabase/overwrites/tables/group_history/model.ts +0 -13
- package/types/supabase/overwrites/tables/offer/index.js +0 -2
- package/types/supabase/overwrites/tables/offer_history/index.d.ts +0 -7
- package/types/supabase/overwrites/tables/offer_history/index.js +0 -2
- package/types/supabase/overwrites/tables/offer_history/index.ts +0 -9
- package/types/supabase/overwrites/tables/offer_history/model.d.ts +0 -10
- package/types/supabase/overwrites/tables/offer_history/model.js +0 -2
- package/types/supabase/overwrites/tables/offer_history/model.ts +0 -13
- package/types/supabase/overwrites/tables/repertoire/model.d.ts +0 -7
- package/types/supabase/overwrites/tables/repertoire/model.js +0 -2
- package/types/supabase/overwrites/tables/repertoire/model.ts +0 -7
- package/types/supabase/overwrites/tables/repertoire_history/index.d.ts +0 -7
- package/types/supabase/overwrites/tables/repertoire_history/index.js +0 -2
- package/types/supabase/overwrites/tables/repertoire_history/index.ts +0 -9
- package/types/supabase/overwrites/tables/repertoire_history/model.d.ts +0 -10
- package/types/supabase/overwrites/tables/repertoire_history/model.js +0 -2
- package/types/supabase/overwrites/tables/repertoire_history/model.ts +0 -13
- package/types/supabase/overwrites/tables/user/index.d.ts +0 -11
- package/types/supabase/overwrites/tables/user/index.js +0 -2
- package/types/supabase/overwrites/tables/user/index.ts +0 -13
- /package/{functions/composer.js → types/supabase/overwrites/comm.js} +0 -0
- /package/{functions/composerComposition.js → types/supabase/overwrites/comm_history.js} +0 -0
- /package/{functions/composerNotification.js → types/supabase/overwrites/event.js} +0 -0
- /package/{functions/composerPayout.js → types/supabase/overwrites/event_history.js} +0 -0
- /package/{models/supabase/Comm/types.js → types/supabase/overwrites/group.js} +0 -0
- /package/{models/supabase/Composer/Composition/Acquisition/types.js → types/supabase/overwrites/group_history.js} +0 -0
- /package/{models/supabase/Composer/Composition/Favorite/types.js → types/supabase/overwrites/offer.js} +0 -0
- /package/{models/supabase/Composer/Composition/View/types.js → types/supabase/overwrites/offer_history.js} +0 -0
- /package/{models/supabase/Composer/Payout/status.js → types/supabase/overwrites/repertoire.js} +0 -0
- /package/{models/supabase/Composer/Payout/types.js → types/supabase/overwrites/repertoire_history.js} +0 -0
- /package/types/supabase/overwrites/{tables/common/index.d.ts → utils.d.ts} +0 -0
- /package/{models/supabase/Composer/PerformanceAttendance/types.js → types/supabase/overwrites/utils.js} +0 -0
- /package/types/supabase/overwrites/{tables/common/index.ts → utils.ts} +0 -0
|
@@ -1,14 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.GroupRepertoireVisibility = exports.RepertoireHistoryAction = void 0;
|
|
4
|
+
var RepertoireHistoryAction;
|
|
5
|
+
(function (RepertoireHistoryAction) {
|
|
6
|
+
RepertoireHistoryAction["Created"] = "created";
|
|
7
|
+
RepertoireHistoryAction["Deleted"] = "deleted";
|
|
8
|
+
RepertoireHistoryAction["PlayerPlay"] = "player_play";
|
|
9
|
+
RepertoireHistoryAction["PlayerView"] = "player_view";
|
|
10
|
+
RepertoireHistoryAction["PlayerDownload"] = "player_download";
|
|
11
|
+
RepertoireHistoryAction["PlayerDownloadAll"] = "player_download_all";
|
|
12
|
+
RepertoireHistoryAction["PlayerClaim"] = "player_claim";
|
|
13
|
+
RepertoireHistoryAction["RemovedClaim"] = "removed_claim";
|
|
14
|
+
RepertoireHistoryAction["EditTitle"] = "edit_title";
|
|
15
|
+
RepertoireHistoryAction["EditTags"] = "edit_tags";
|
|
16
|
+
RepertoireHistoryAction["EditVisibility"] = "edit_visibility";
|
|
17
|
+
RepertoireHistoryAction["EditCompositor"] = "edit_compositor";
|
|
18
|
+
RepertoireHistoryAction["EditFile"] = "edit_file";
|
|
19
|
+
})(RepertoireHistoryAction = exports.RepertoireHistoryAction || (exports.RepertoireHistoryAction = {}));
|
|
4
20
|
var GroupRepertoireVisibility;
|
|
5
21
|
(function (GroupRepertoireVisibility) {
|
|
6
22
|
GroupRepertoireVisibility["Always"] = "always";
|
|
7
23
|
GroupRepertoireVisibility["ByEvent"] = "byEvent";
|
|
8
|
-
})(GroupRepertoireVisibility
|
|
9
|
-
var AcquisitionStatus;
|
|
10
|
-
(function (AcquisitionStatus) {
|
|
11
|
-
AcquisitionStatus["Preparing"] = "preparing";
|
|
12
|
-
AcquisitionStatus["ActionsNeeded"] = "actionsNeeded";
|
|
13
|
-
AcquisitionStatus["Ready"] = "ready";
|
|
14
|
-
})(AcquisitionStatus || (exports.AcquisitionStatus = AcquisitionStatus = {}));
|
|
24
|
+
})(GroupRepertoireVisibility = exports.GroupRepertoireVisibility || (exports.GroupRepertoireVisibility = {}));
|
package/models/Group/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DocumentReference } from '@google-cloud/firestore';
|
|
2
|
-
import { CustomInstrumentId } from '../../helpers/instruments';
|
|
3
2
|
import { PlansGroup } from '../../helpers/plans';
|
|
4
3
|
import { LanguagesTypes } from '../../lang';
|
|
5
4
|
import { GroupPayoutRuleEntry } from '../../types/payoutRule';
|
|
@@ -18,10 +17,8 @@ export default class Group extends GroupBasic<GroupData> {
|
|
|
18
17
|
get addressDefault(): import("./types").GroupAddressData | undefined;
|
|
19
18
|
get activeInvitationLink(): boolean;
|
|
20
19
|
get invitationLink(): string;
|
|
21
|
-
getInvitationLink(landingHost: string): string;
|
|
22
20
|
get invitationEmails(): string[];
|
|
23
21
|
get shortDynamicLink(): string;
|
|
24
|
-
getShortDynamicLink(appHost: string): string;
|
|
25
22
|
get admins(): string[];
|
|
26
23
|
get adminPermissions(): Record<string, AdminPermissions[]>;
|
|
27
24
|
permissionsByAdmin(userId: string): AdminPermissions[];
|
|
@@ -92,20 +89,18 @@ export default class Group extends GroupBasic<GroupData> {
|
|
|
92
89
|
getRepertoireTagName(id: string): string | null;
|
|
93
90
|
get trialEndAt(): Date;
|
|
94
91
|
get glissandooAdminUrl(): string;
|
|
95
|
-
getGlissandooAdminUrl(adminHost: string): string;
|
|
96
92
|
get createdOn(): import("../../helpers/types").CreatedOn;
|
|
97
93
|
get instruments(): import("./types").GroupInstruments;
|
|
98
94
|
get instrumentsList(): AGroupInstrument[];
|
|
99
95
|
get instrumentsIds(): (import("../../helpers/instruments").DefaultInstrumentId | `customInstrument-${string}`)[];
|
|
100
|
-
get customInstruments(): Record
|
|
96
|
+
get customInstruments(): Record<`customInstrument-${string}`, CustomGroupInstrument>;
|
|
101
97
|
get customInstrumentsList(): Pick<CustomGroupInstrument & {
|
|
102
98
|
id: `customInstrument-${string}`;
|
|
103
|
-
}, "
|
|
99
|
+
}, "name" | "id" | "icon" | "basedOnInstrument">[];
|
|
104
100
|
get customInstrumentsIds(): `customInstrument-${string}`[];
|
|
105
101
|
get visitedDashboardAt(): Record<string, FirebaseFirestore.Timestamp>;
|
|
106
102
|
get onboardingMessages(): import("./types").GroupOnboardingMessage[];
|
|
107
103
|
get rollcallLink(): string;
|
|
108
|
-
getRollcallLink(landingHost: string): string;
|
|
109
104
|
get subscriptionId(): string | null;
|
|
110
105
|
get questions(): Record<string, import("./types").GroupEventQuestion>;
|
|
111
106
|
get questionsList(): {
|
package/models/Group/index.js
CHANGED
|
@@ -7,7 +7,6 @@ const date_fns_1 = require("date-fns");
|
|
|
7
7
|
const lodash_1 = require("lodash");
|
|
8
8
|
const collections_1 = require("../../helpers/collections");
|
|
9
9
|
const currency_1 = require("../../helpers/currency");
|
|
10
|
-
const externalUrls_1 = require("../../helpers/externalUrls");
|
|
11
10
|
const glissandooAdmin_1 = require("../../helpers/glissandooAdmin");
|
|
12
11
|
const orders_1 = require("../../helpers/instruments/orders");
|
|
13
12
|
const objects_1 = require("../../helpers/objects");
|
|
@@ -59,19 +58,12 @@ class Group extends basic_1.default {
|
|
|
59
58
|
}
|
|
60
59
|
return `${link}?lang=${this.lang}`;
|
|
61
60
|
}
|
|
62
|
-
getInvitationLink(landingHost) {
|
|
63
|
-
const link = (0, externalUrls_1.buildGroupInvitationUrl)(landingHost, this.id);
|
|
64
|
-
return lang_1.LanguagesTypes.ES === this.lang ? link : `${link}?lang=${this.lang}`;
|
|
65
|
-
}
|
|
66
61
|
get invitationEmails() {
|
|
67
62
|
return this.data.invitationEmails || [];
|
|
68
63
|
}
|
|
69
64
|
get shortDynamicLink() {
|
|
70
65
|
return `https://app.glissandoo.com/group/${this.username}`;
|
|
71
66
|
}
|
|
72
|
-
getShortDynamicLink(appHost) {
|
|
73
|
-
return (0, externalUrls_1.buildGroupShortDynamicUrl)(appHost, this.username);
|
|
74
|
-
}
|
|
75
67
|
get admins() {
|
|
76
68
|
return this.data.administrators || [];
|
|
77
69
|
}
|
|
@@ -256,9 +248,6 @@ class Group extends basic_1.default {
|
|
|
256
248
|
get glissandooAdminUrl() {
|
|
257
249
|
return (0, glissandooAdmin_1.getGlissandooAdminEntityURL)(collections_1.CollectionNames.Group, this.id);
|
|
258
250
|
}
|
|
259
|
-
getGlissandooAdminUrl(adminHost) {
|
|
260
|
-
return (0, externalUrls_1.buildAdminEntityUrl)(adminHost, collections_1.CollectionNames.Group, this.id);
|
|
261
|
-
}
|
|
262
251
|
get createdOn() {
|
|
263
252
|
return this.data.createdOn;
|
|
264
253
|
}
|
|
@@ -289,9 +278,6 @@ class Group extends basic_1.default {
|
|
|
289
278
|
get rollcallLink() {
|
|
290
279
|
return `https://glissandoo.com/rollcall/${this.id}`;
|
|
291
280
|
}
|
|
292
|
-
getRollcallLink(landingHost) {
|
|
293
|
-
return (0, externalUrls_1.buildRollcallUrl)(landingHost, this.id);
|
|
294
|
-
}
|
|
295
281
|
get subscriptionId() {
|
|
296
282
|
return this.data.subscriptionId || null;
|
|
297
283
|
}
|
package/models/Group/types.d.ts
CHANGED
|
@@ -7,7 +7,27 @@ import { GroupPayoutRuleEntry } from '../../types/payoutRule';
|
|
|
7
7
|
import { EventPlayerStatus } from '../Evento/Player/types';
|
|
8
8
|
import { EventType } from '../Evento/types';
|
|
9
9
|
import { PlayerBasicData } from '../Player/types';
|
|
10
|
-
export
|
|
10
|
+
export declare enum GroupHistoryAction {
|
|
11
|
+
Created = "created",
|
|
12
|
+
Deleted = "deleted",
|
|
13
|
+
MemberAdd = "member_add",
|
|
14
|
+
MemberJoin = "member_join",
|
|
15
|
+
MemberLeave = "member_leave",
|
|
16
|
+
MemberRemove = "member_remove",
|
|
17
|
+
MemberInstrumentChange = "member_instrument_change",
|
|
18
|
+
MemberPermissionsChange = "member_permissions_change",
|
|
19
|
+
TemplateCreated = "template_created",
|
|
20
|
+
TemplateDeleted = "template_deleted",
|
|
21
|
+
TemplateEdited = "template_edited",
|
|
22
|
+
EditInstruments = "edit_instruments",
|
|
23
|
+
EditName = "edit_name",
|
|
24
|
+
EditLocation = "edit_location",
|
|
25
|
+
EditMusicStyle = "edit_music_style",
|
|
26
|
+
EditUsername = "edit_username",
|
|
27
|
+
EditPhoto = "edit_photo",
|
|
28
|
+
LinkFakeAccount = "link_fake_account",
|
|
29
|
+
EditFakeAccountInfo = "edit_fake_account_info"
|
|
30
|
+
}
|
|
11
31
|
export declare enum GroupCustomFieldType {
|
|
12
32
|
TEXT = "text",
|
|
13
33
|
NUMBER = "number",
|
|
@@ -51,7 +71,6 @@ export declare enum AdminPermissions {
|
|
|
51
71
|
Rollcall = "rollcall",
|
|
52
72
|
Members = "members",
|
|
53
73
|
Repertoire = "repertoire",
|
|
54
|
-
Purchase = "purchase",
|
|
55
74
|
Communications = "communications",
|
|
56
75
|
Offers = "offers",
|
|
57
76
|
Billing = "billing",
|
package/models/Group/types.js
CHANGED
|
@@ -1,8 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GroupRepertoireTagDefault = exports.GroupRepertoireTagReserved = exports.SocialNetwork = exports.GroupModulePlan = exports.GroupModuleId = exports.GroupStatus = exports.GroupConfigShowAttendanceToMembers = exports.GroupConfigSitesKey = exports.GroupConfigKey = exports.AdminPermissions = exports.GroupCustomFieldType = exports.GroupHistoryAction = void 0;
|
|
4
|
-
var
|
|
5
|
-
|
|
4
|
+
var GroupHistoryAction;
|
|
5
|
+
(function (GroupHistoryAction) {
|
|
6
|
+
GroupHistoryAction["Created"] = "created";
|
|
7
|
+
GroupHistoryAction["Deleted"] = "deleted";
|
|
8
|
+
GroupHistoryAction["MemberAdd"] = "member_add";
|
|
9
|
+
GroupHistoryAction["MemberJoin"] = "member_join";
|
|
10
|
+
GroupHistoryAction["MemberLeave"] = "member_leave";
|
|
11
|
+
GroupHistoryAction["MemberRemove"] = "member_remove";
|
|
12
|
+
GroupHistoryAction["MemberInstrumentChange"] = "member_instrument_change";
|
|
13
|
+
GroupHistoryAction["MemberPermissionsChange"] = "member_permissions_change";
|
|
14
|
+
GroupHistoryAction["TemplateCreated"] = "template_created";
|
|
15
|
+
GroupHistoryAction["TemplateDeleted"] = "template_deleted";
|
|
16
|
+
GroupHistoryAction["TemplateEdited"] = "template_edited";
|
|
17
|
+
GroupHistoryAction["EditInstruments"] = "edit_instruments";
|
|
18
|
+
GroupHistoryAction["EditName"] = "edit_name";
|
|
19
|
+
GroupHistoryAction["EditLocation"] = "edit_location";
|
|
20
|
+
GroupHistoryAction["EditMusicStyle"] = "edit_music_style";
|
|
21
|
+
GroupHistoryAction["EditUsername"] = "edit_username";
|
|
22
|
+
GroupHistoryAction["EditPhoto"] = "edit_photo";
|
|
23
|
+
GroupHistoryAction["LinkFakeAccount"] = "link_fake_account";
|
|
24
|
+
GroupHistoryAction["EditFakeAccountInfo"] = "edit_fake_account_info";
|
|
25
|
+
})(GroupHistoryAction = exports.GroupHistoryAction || (exports.GroupHistoryAction = {}));
|
|
6
26
|
// types/CustomFields.ts
|
|
7
27
|
var GroupCustomFieldType;
|
|
8
28
|
(function (GroupCustomFieldType) {
|
|
@@ -14,7 +34,7 @@ var GroupCustomFieldType;
|
|
|
14
34
|
GroupCustomFieldType["PHONE"] = "phone";
|
|
15
35
|
GroupCustomFieldType["LINK"] = "link";
|
|
16
36
|
GroupCustomFieldType["PARAGRAPH"] = "paragraph";
|
|
17
|
-
})(GroupCustomFieldType
|
|
37
|
+
})(GroupCustomFieldType = exports.GroupCustomFieldType || (exports.GroupCustomFieldType = {}));
|
|
18
38
|
var AdminPermissions;
|
|
19
39
|
(function (AdminPermissions) {
|
|
20
40
|
AdminPermissions["Owner"] = "owner";
|
|
@@ -22,39 +42,38 @@ var AdminPermissions;
|
|
|
22
42
|
AdminPermissions["Rollcall"] = "rollcall";
|
|
23
43
|
AdminPermissions["Members"] = "members";
|
|
24
44
|
AdminPermissions["Repertoire"] = "repertoire";
|
|
25
|
-
AdminPermissions["Purchase"] = "purchase";
|
|
26
45
|
AdminPermissions["Communications"] = "communications";
|
|
27
46
|
AdminPermissions["Offers"] = "offers";
|
|
28
47
|
AdminPermissions["Billing"] = "billing";
|
|
29
48
|
AdminPermissions["Inventory"] = "inventory";
|
|
30
|
-
})(AdminPermissions
|
|
49
|
+
})(AdminPermissions = exports.AdminPermissions || (exports.AdminPermissions = {}));
|
|
31
50
|
var GroupConfigKey;
|
|
32
51
|
(function (GroupConfigKey) {
|
|
33
52
|
GroupConfigKey["IncludesMembersToEventsWhenJoined"] = "includesMembersToEventsWhenJoined";
|
|
34
53
|
GroupConfigKey["AllowEditInstruments"] = "allowEditInstruments";
|
|
35
54
|
GroupConfigKey["ShowAttendanceToMembers"] = "showAttendanceToMembers";
|
|
36
55
|
GroupConfigKey["AllowVerifyGeoLoc"] = "allowVerifyGeoLoc";
|
|
37
|
-
})(GroupConfigKey
|
|
56
|
+
})(GroupConfigKey = exports.GroupConfigKey || (exports.GroupConfigKey = {}));
|
|
38
57
|
var GroupConfigSitesKey;
|
|
39
58
|
(function (GroupConfigSitesKey) {
|
|
40
59
|
GroupConfigSitesKey["Active"] = "active";
|
|
41
60
|
GroupConfigSitesKey["ShowMembers"] = "showMembers";
|
|
42
61
|
GroupConfigSitesKey["ShowEvents"] = "showEvents";
|
|
43
|
-
})(GroupConfigSitesKey
|
|
62
|
+
})(GroupConfigSitesKey = exports.GroupConfigSitesKey || (exports.GroupConfigSitesKey = {}));
|
|
44
63
|
var GroupConfigShowAttendanceToMembers;
|
|
45
64
|
(function (GroupConfigShowAttendanceToMembers) {
|
|
46
65
|
GroupConfigShowAttendanceToMembers["None"] = "none";
|
|
47
66
|
GroupConfigShowAttendanceToMembers["OnlyConfirmed"] = "onlyConfirmed";
|
|
48
67
|
GroupConfigShowAttendanceToMembers["OnlyToSection"] = "onlyToSection";
|
|
49
68
|
GroupConfigShowAttendanceToMembers["All"] = "all";
|
|
50
|
-
})(GroupConfigShowAttendanceToMembers
|
|
69
|
+
})(GroupConfigShowAttendanceToMembers = exports.GroupConfigShowAttendanceToMembers || (exports.GroupConfigShowAttendanceToMembers = {}));
|
|
51
70
|
var GroupStatus;
|
|
52
71
|
(function (GroupStatus) {
|
|
53
72
|
GroupStatus["Premium"] = "premium";
|
|
54
73
|
GroupStatus["Trial"] = "trial";
|
|
55
74
|
GroupStatus["Inactive"] = "inactive";
|
|
56
75
|
GroupStatus["Deleted"] = "deleted";
|
|
57
|
-
})(GroupStatus
|
|
76
|
+
})(GroupStatus = exports.GroupStatus || (exports.GroupStatus = {}));
|
|
58
77
|
var GroupModuleId;
|
|
59
78
|
(function (GroupModuleId) {
|
|
60
79
|
GroupModuleId["Payout"] = "payout";
|
|
@@ -62,12 +81,12 @@ var GroupModuleId;
|
|
|
62
81
|
GroupModuleId["Vacancies"] = "vacancies";
|
|
63
82
|
GroupModuleId["Partnership"] = "partnership";
|
|
64
83
|
GroupModuleId["MusicSchool"] = "musicSchool";
|
|
65
|
-
})(GroupModuleId
|
|
84
|
+
})(GroupModuleId = exports.GroupModuleId || (exports.GroupModuleId = {}));
|
|
66
85
|
var GroupModulePlan;
|
|
67
86
|
(function (GroupModulePlan) {
|
|
68
87
|
GroupModulePlan["Free"] = "free";
|
|
69
88
|
GroupModulePlan["Paid"] = "paid";
|
|
70
|
-
})(GroupModulePlan
|
|
89
|
+
})(GroupModulePlan = exports.GroupModulePlan || (exports.GroupModulePlan = {}));
|
|
71
90
|
var SocialNetwork;
|
|
72
91
|
(function (SocialNetwork) {
|
|
73
92
|
SocialNetwork["Facebook"] = "facebook";
|
|
@@ -75,11 +94,11 @@ var SocialNetwork;
|
|
|
75
94
|
SocialNetwork["Instagram"] = "instagram";
|
|
76
95
|
SocialNetwork["YouTube"] = "youtube";
|
|
77
96
|
SocialNetwork["Web"] = "web";
|
|
78
|
-
})(SocialNetwork
|
|
97
|
+
})(SocialNetwork = exports.SocialNetwork || (exports.SocialNetwork = {}));
|
|
79
98
|
var GroupRepertoireTagReserved;
|
|
80
99
|
(function (GroupRepertoireTagReserved) {
|
|
81
100
|
GroupRepertoireTagReserved["NoTag"] = "$noTag";
|
|
82
|
-
})(GroupRepertoireTagReserved
|
|
101
|
+
})(GroupRepertoireTagReserved = exports.GroupRepertoireTagReserved || (exports.GroupRepertoireTagReserved = {}));
|
|
83
102
|
var GroupRepertoireTagDefault;
|
|
84
103
|
(function (GroupRepertoireTagDefault) {
|
|
85
104
|
GroupRepertoireTagDefault["First"] = "repertoireTags.1";
|
|
@@ -87,4 +106,4 @@ var GroupRepertoireTagDefault;
|
|
|
87
106
|
GroupRepertoireTagDefault["Third"] = "repertoireTags.3";
|
|
88
107
|
GroupRepertoireTagDefault["Fourth"] = "repertoireTags.4";
|
|
89
108
|
GroupRepertoireTagDefault["Principal"] = "repertoireTags.principal";
|
|
90
|
-
})(GroupRepertoireTagDefault
|
|
109
|
+
})(GroupRepertoireTagDefault = exports.GroupRepertoireTagDefault || (exports.GroupRepertoireTagDefault = {}));
|
|
@@ -2,36 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const instruments_1 = require("../../helpers/instruments");
|
|
4
4
|
const lang_1 = require("../../lang");
|
|
5
|
-
const getPluralBlock = (message, selector) => {
|
|
6
|
-
const startToken = `${selector} {`;
|
|
7
|
-
const start = message.indexOf(startToken);
|
|
8
|
-
if (start === -1)
|
|
9
|
-
return null;
|
|
10
|
-
let depth = 1;
|
|
11
|
-
let index = start + startToken.length;
|
|
12
|
-
const blockStart = index;
|
|
13
|
-
while (index < message.length) {
|
|
14
|
-
const character = message[index];
|
|
15
|
-
if (character === '{')
|
|
16
|
-
depth++;
|
|
17
|
-
if (character === '}')
|
|
18
|
-
depth--;
|
|
19
|
-
if (depth === 0) {
|
|
20
|
-
return message.slice(blockStart, index);
|
|
21
|
-
}
|
|
22
|
-
index++;
|
|
23
|
-
}
|
|
24
|
-
return null;
|
|
25
|
-
};
|
|
26
|
-
const formatInstrumentMessage = (message, count, lang) => {
|
|
27
|
-
if (!message.includes('{count, plural,'))
|
|
28
|
-
return message;
|
|
29
|
-
const pluralCategory = new Intl.PluralRules(lang).select(count);
|
|
30
|
-
const selectedBlock = getPluralBlock(message, `=${count}`) ||
|
|
31
|
-
getPluralBlock(message, pluralCategory) ||
|
|
32
|
-
getPluralBlock(message, 'other');
|
|
33
|
-
return (selectedBlock || message).replace(/#/g, String(count));
|
|
34
|
-
};
|
|
35
5
|
class Instrument {
|
|
36
6
|
constructor(id, lang = lang_1.defaultLocale) {
|
|
37
7
|
this.id = id;
|
|
@@ -39,14 +9,7 @@ class Instrument {
|
|
|
39
9
|
}
|
|
40
10
|
get name() {
|
|
41
11
|
const translation = (0, lang_1.getTranslation)(`instruments.${this.id}`, this.lang);
|
|
42
|
-
return translation
|
|
43
|
-
}
|
|
44
|
-
get pluralName() {
|
|
45
|
-
return this.getName(2);
|
|
46
|
-
}
|
|
47
|
-
getName(count) {
|
|
48
|
-
const translation = (0, lang_1.getTranslation)(`instruments.${this.id}`, this.lang);
|
|
49
|
-
return translation ? formatInstrumentMessage(translation, count, this.lang) : this.id;
|
|
12
|
+
return translation || this.id;
|
|
50
13
|
}
|
|
51
14
|
get icon() {
|
|
52
15
|
return instruments_1.InstrumentIcons[this.id] || 'warning';
|
|
@@ -7,9 +7,9 @@ var InventoryItemStatus;
|
|
|
7
7
|
InventoryItemStatus["Assigned"] = "assigned";
|
|
8
8
|
InventoryItemStatus["OnHold"] = "onHold";
|
|
9
9
|
InventoryItemStatus["Retired"] = "retired";
|
|
10
|
-
})(InventoryItemStatus
|
|
10
|
+
})(InventoryItemStatus = exports.InventoryItemStatus || (exports.InventoryItemStatus = {}));
|
|
11
11
|
var InventoryItemAssignmentKind;
|
|
12
12
|
(function (InventoryItemAssignmentKind) {
|
|
13
13
|
InventoryItemAssignmentKind["Member"] = "member";
|
|
14
14
|
InventoryItemAssignmentKind["Other"] = "other";
|
|
15
|
-
})(InventoryItemAssignmentKind
|
|
15
|
+
})(InventoryItemAssignmentKind = exports.InventoryItemAssignmentKind || (exports.InventoryItemAssignmentKind = {}));
|
|
@@ -12,4 +12,4 @@ var InventoryTypeCustomFieldType;
|
|
|
12
12
|
InventoryTypeCustomFieldType["ASSIGNABLE"] = "assignable";
|
|
13
13
|
InventoryTypeCustomFieldType["IMAGES"] = "images";
|
|
14
14
|
InventoryTypeCustomFieldType["DOCUMENT"] = "document";
|
|
15
|
-
})(InventoryTypeCustomFieldType
|
|
15
|
+
})(InventoryTypeCustomFieldType = exports.InventoryTypeCustomFieldType || (exports.InventoryTypeCustomFieldType = {}));
|
|
@@ -149,7 +149,7 @@ var NotificationActions;
|
|
|
149
149
|
NotificationActions["GroupPaymentPaid"] = "groupPayment.paid";
|
|
150
150
|
NotificationActions["GroupPaymentCancelled"] = "groupPayment.cancelled";
|
|
151
151
|
NotificationActions["GroupPaymentAmountChanged"] = "groupPayment.amountChanged";
|
|
152
|
-
})(NotificationActions
|
|
152
|
+
})(NotificationActions = exports.NotificationActions || (exports.NotificationActions = {}));
|
|
153
153
|
var NotificationActionsFilter;
|
|
154
154
|
(function (NotificationActionsFilter) {
|
|
155
155
|
NotificationActionsFilter["EventCreated"] = "eventCreated";
|
|
@@ -168,7 +168,7 @@ var NotificationActionsFilter;
|
|
|
168
168
|
NotificationActionsFilter["Offers"] = "offers";
|
|
169
169
|
NotificationActionsFilter["ThemeClaims"] = "themeClaims";
|
|
170
170
|
NotificationActionsFilter["Permissions"] = "permissions";
|
|
171
|
-
})(NotificationActionsFilter
|
|
171
|
+
})(NotificationActionsFilter = exports.NotificationActionsFilter || (exports.NotificationActionsFilter = {}));
|
|
172
172
|
exports.notificationByFilter = {
|
|
173
173
|
[NotificationActionsFilter.EventCreated]: [
|
|
174
174
|
NotificationActions.PerformanceCreate,
|
package/models/Offer/types.d.ts
CHANGED
|
@@ -4,6 +4,18 @@ import { Descendant } from '../../helpers/slate';
|
|
|
4
4
|
import { CreatedOn } from '../../helpers/types';
|
|
5
5
|
import { GroupBasicData } from '../Group/types';
|
|
6
6
|
import { UserBasicData } from '../User/types';
|
|
7
|
+
export declare enum OfferHistoryAction {
|
|
8
|
+
Created = "created",
|
|
9
|
+
Remove = "remove",
|
|
10
|
+
EditLocality = "edit_locality",
|
|
11
|
+
EditDescription = "edit_description",
|
|
12
|
+
EditDeadline = "edit_deadline",
|
|
13
|
+
SelectApplicant = "select_applicant",
|
|
14
|
+
CloseSelection = "close_selection",
|
|
15
|
+
ReopenSelection = "reopen_selection",
|
|
16
|
+
NewApplicant = "new_applicant",
|
|
17
|
+
RemoveApplicant = "remove_applicant"
|
|
18
|
+
}
|
|
7
19
|
export declare enum OfferType {
|
|
8
20
|
Group = "group",
|
|
9
21
|
Event = "event"
|
package/models/Offer/types.js
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OfferType = void 0;
|
|
3
|
+
exports.OfferType = exports.OfferHistoryAction = void 0;
|
|
4
|
+
var OfferHistoryAction;
|
|
5
|
+
(function (OfferHistoryAction) {
|
|
6
|
+
OfferHistoryAction["Created"] = "created";
|
|
7
|
+
OfferHistoryAction["Remove"] = "remove";
|
|
8
|
+
OfferHistoryAction["EditLocality"] = "edit_locality";
|
|
9
|
+
OfferHistoryAction["EditDescription"] = "edit_description";
|
|
10
|
+
OfferHistoryAction["EditDeadline"] = "edit_deadline";
|
|
11
|
+
OfferHistoryAction["SelectApplicant"] = "select_applicant";
|
|
12
|
+
OfferHistoryAction["CloseSelection"] = "close_selection";
|
|
13
|
+
OfferHistoryAction["ReopenSelection"] = "reopen_selection";
|
|
14
|
+
OfferHistoryAction["NewApplicant"] = "new_applicant";
|
|
15
|
+
OfferHistoryAction["RemoveApplicant"] = "remove_applicant";
|
|
16
|
+
})(OfferHistoryAction = exports.OfferHistoryAction || (exports.OfferHistoryAction = {}));
|
|
4
17
|
var OfferType;
|
|
5
18
|
(function (OfferType) {
|
|
6
19
|
OfferType["Group"] = "group";
|
|
7
20
|
OfferType["Event"] = "event";
|
|
8
|
-
})(OfferType
|
|
21
|
+
})(OfferType = exports.OfferType || (exports.OfferType = {}));
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PARTNERSHIP_COMMUNICATION_TABLE = void 0;
|
|
4
|
-
exports.rowToPartnershipCommunicationData = rowToPartnershipCommunicationData;
|
|
3
|
+
exports.rowToPartnershipCommunicationData = exports.PARTNERSHIP_COMMUNICATION_TABLE = void 0;
|
|
5
4
|
exports.PARTNERSHIP_COMMUNICATION_TABLE = 'partnership_communication';
|
|
6
5
|
function rowToPartnershipCommunicationData(row) {
|
|
7
6
|
return {
|
|
@@ -23,3 +22,4 @@ function rowToPartnershipCommunicationData(row) {
|
|
|
23
22
|
deletedAt: row.deletedAt,
|
|
24
23
|
};
|
|
25
24
|
}
|
|
25
|
+
exports.rowToPartnershipCommunicationData = rowToPartnershipCommunicationData;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { GroupBasicData } from '../../Group/types';
|
|
2
|
-
import { DocumentModel } from '../../Model';
|
|
3
2
|
import { PartnershipGroupData } from './types';
|
|
4
3
|
/**
|
|
5
4
|
* Modelo plain-object para un enlace partnership↔group. Los datos básicos del
|
|
@@ -10,7 +9,7 @@ export default class PartnershipGroup {
|
|
|
10
9
|
id: string;
|
|
11
10
|
exists: boolean;
|
|
12
11
|
private _data;
|
|
13
|
-
constructor(
|
|
12
|
+
constructor(data: PartnershipGroupData);
|
|
14
13
|
get data(): PartnershipGroupData;
|
|
15
14
|
get partnershipId(): string;
|
|
16
15
|
get linkedAt(): string;
|
|
@@ -1,26 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const isDocumentModel = (value) => 'data' in value && typeof value.data === 'function';
|
|
4
3
|
/**
|
|
5
4
|
* Modelo plain-object para un enlace partnership↔group. Los datos básicos del
|
|
6
5
|
* grupo provienen del JOIN a `group` (ver `./supabase.ts`); este modelo solo
|
|
7
6
|
* añade los metadatos del enlace (`linkedAt`/`linkedBy`).
|
|
8
7
|
*/
|
|
9
8
|
class PartnershipGroup {
|
|
10
|
-
constructor(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
this.id = input.id;
|
|
14
|
-
this._data = {
|
|
15
|
-
...data,
|
|
16
|
-
id: input.id,
|
|
17
|
-
partnershipId: data.partnershipId ?? input.ref.path.split('/')[1] ?? '',
|
|
18
|
-
};
|
|
19
|
-
this.exists = input.exists;
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
this.id = input.id;
|
|
23
|
-
this._data = input;
|
|
9
|
+
constructor(data) {
|
|
10
|
+
this.id = data.id;
|
|
11
|
+
this._data = data;
|
|
24
12
|
this.exists = true;
|
|
25
13
|
}
|
|
26
14
|
get data() {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PARTNERSHIP_GROUP_TABLE = void 0;
|
|
4
|
-
exports.rowToPartnershipGroupData = rowToPartnershipGroupData;
|
|
3
|
+
exports.rowToPartnershipGroupData = exports.PARTNERSHIP_GROUP_TABLE = void 0;
|
|
5
4
|
exports.PARTNERSHIP_GROUP_TABLE = 'partnership_group';
|
|
6
5
|
/**
|
|
7
6
|
* Combina la fila de enlace `partnership_group` con la fila del grupo
|
|
@@ -23,3 +22,4 @@ function rowToPartnershipGroupData(link, group) {
|
|
|
23
22
|
musicStyle: group.musicStyle,
|
|
24
23
|
};
|
|
25
24
|
}
|
|
25
|
+
exports.rowToPartnershipGroupData = rowToPartnershipGroupData;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PARTNERSHIP_PARTNER_TABLE = void 0;
|
|
4
|
-
exports.rowToPartnershipPartnerData = rowToPartnershipPartnerData;
|
|
3
|
+
exports.rowToPartnershipPartnerData = exports.PARTNERSHIP_PARTNER_TABLE = void 0;
|
|
5
4
|
exports.PARTNERSHIP_PARTNER_TABLE = 'partnership_partner';
|
|
6
5
|
function rowToPartnershipPartnerData(row) {
|
|
7
6
|
return {
|
|
@@ -36,3 +35,4 @@ function rowToPartnershipPartnerData(row) {
|
|
|
36
35
|
deletedBy: row.deletedBy,
|
|
37
36
|
};
|
|
38
37
|
}
|
|
38
|
+
exports.rowToPartnershipPartnerData = rowToPartnershipPartnerData;
|
|
@@ -6,4 +6,4 @@ var PartnerStatus;
|
|
|
6
6
|
PartnerStatus["Active"] = "active";
|
|
7
7
|
PartnerStatus["Pending"] = "pending";
|
|
8
8
|
PartnerStatus["Inactive"] = "inactive";
|
|
9
|
-
})(PartnerStatus
|
|
9
|
+
})(PartnerStatus = exports.PartnerStatus || (exports.PartnerStatus = {}));
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PARTNERSHIP_PAYMENT_HISTORY_TABLE = exports.PARTNERSHIP_PAYMENT_TABLE = void 0;
|
|
4
|
-
exports.rowToPartnershipPaymentData = rowToPartnershipPaymentData;
|
|
5
|
-
exports.historyRowToStatusItem = historyRowToStatusItem;
|
|
3
|
+
exports.historyRowToStatusItem = exports.rowToPartnershipPaymentData = exports.PARTNERSHIP_PAYMENT_HISTORY_TABLE = exports.PARTNERSHIP_PAYMENT_TABLE = void 0;
|
|
6
4
|
exports.PARTNERSHIP_PAYMENT_TABLE = 'partnership_payment';
|
|
7
5
|
exports.PARTNERSHIP_PAYMENT_HISTORY_TABLE = 'partnership_payment_history';
|
|
8
6
|
/**
|
|
@@ -31,6 +29,7 @@ function rowToPartnershipPaymentData(row, statusHistory = []) {
|
|
|
31
29
|
receiptFilePath: row.receiptFilePath,
|
|
32
30
|
};
|
|
33
31
|
}
|
|
32
|
+
exports.rowToPartnershipPaymentData = rowToPartnershipPaymentData;
|
|
34
33
|
function historyRowToStatusItem(row) {
|
|
35
34
|
return {
|
|
36
35
|
status: row.status,
|
|
@@ -38,3 +37,4 @@ function historyRowToStatusItem(row) {
|
|
|
38
37
|
changedBy: row.changed_by,
|
|
39
38
|
};
|
|
40
39
|
}
|
|
40
|
+
exports.historyRowToStatusItem = historyRowToStatusItem;
|
|
@@ -7,11 +7,11 @@ var PaymentMethod;
|
|
|
7
7
|
PaymentMethod["Transfer"] = "TRANSFER";
|
|
8
8
|
PaymentMethod["SEPA"] = "SEPA";
|
|
9
9
|
PaymentMethod["Bizum"] = "BIZUM";
|
|
10
|
-
})(PaymentMethod
|
|
10
|
+
})(PaymentMethod = exports.PaymentMethod || (exports.PaymentMethod = {}));
|
|
11
11
|
var PaymentStatus;
|
|
12
12
|
(function (PaymentStatus) {
|
|
13
13
|
PaymentStatus["Pending"] = "pending";
|
|
14
14
|
PaymentStatus["Charged"] = "charged";
|
|
15
15
|
PaymentStatus["Returned"] = "returned";
|
|
16
16
|
PaymentStatus["Canceled"] = "canceled";
|
|
17
|
-
})(PaymentStatus
|
|
17
|
+
})(PaymentStatus = exports.PaymentStatus || (exports.PaymentStatus = {}));
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PARTNERSHIP_PLAN_TABLE = void 0;
|
|
4
|
-
exports.rowToPartnershipPlanData = rowToPartnershipPlanData;
|
|
3
|
+
exports.rowToPartnershipPlanData = exports.PARTNERSHIP_PLAN_TABLE = void 0;
|
|
5
4
|
exports.PARTNERSHIP_PLAN_TABLE = 'partnership_plan';
|
|
6
5
|
function rowToPartnershipPlanData(row) {
|
|
7
6
|
return {
|
|
@@ -20,3 +19,4 @@ function rowToPartnershipPlanData(row) {
|
|
|
20
19
|
deletedBy: row.deletedBy,
|
|
21
20
|
};
|
|
22
21
|
}
|
|
22
|
+
exports.rowToPartnershipPlanData = rowToPartnershipPlanData;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PARTNERSHIP_SEPA_PAYMENT_GROUP_TABLE = void 0;
|
|
4
|
-
exports.rowToPartnershipSepaPaymentGroupData = rowToPartnershipSepaPaymentGroupData;
|
|
3
|
+
exports.rowToPartnershipSepaPaymentGroupData = exports.PARTNERSHIP_SEPA_PAYMENT_GROUP_TABLE = void 0;
|
|
5
4
|
exports.PARTNERSHIP_SEPA_PAYMENT_GROUP_TABLE = 'partnership_sepa_payment_group';
|
|
6
5
|
function rowToPartnershipSepaPaymentGroupData(row) {
|
|
7
6
|
return {
|
|
@@ -16,3 +15,4 @@ function rowToPartnershipSepaPaymentGroupData(row) {
|
|
|
16
15
|
editedBy: row.editedBy,
|
|
17
16
|
};
|
|
18
17
|
}
|
|
18
|
+
exports.rowToPartnershipSepaPaymentGroupData = rowToPartnershipSepaPaymentGroupData;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PARTNERSHIP_SUBSCRIPTION_TABLE = void 0;
|
|
4
|
-
exports.rowToPartnershipSubscriptionData = rowToPartnershipSubscriptionData;
|
|
3
|
+
exports.rowToPartnershipSubscriptionData = exports.PARTNERSHIP_SUBSCRIPTION_TABLE = void 0;
|
|
5
4
|
exports.PARTNERSHIP_SUBSCRIPTION_TABLE = 'partnership_subscription';
|
|
6
5
|
function rowToPartnershipSubscriptionData(row) {
|
|
7
6
|
return {
|
|
@@ -21,3 +20,4 @@ function rowToPartnershipSubscriptionData(row) {
|
|
|
21
20
|
deletedBy: row.deletedBy,
|
|
22
21
|
};
|
|
23
22
|
}
|
|
23
|
+
exports.rowToPartnershipSubscriptionData = rowToPartnershipSubscriptionData;
|
|
@@ -15,7 +15,6 @@ export default class Partnership extends PartnershipBasic<PartnershipData> {
|
|
|
15
15
|
get paymentMethodsConfig(): PartnershipPaymentMethodsConfig | null;
|
|
16
16
|
get communicationsConfig(): PartnershipCommunicationsConfig | null;
|
|
17
17
|
get glissandooAdminUrl(): string;
|
|
18
|
-
getGlissandooAdminUrl(adminHost: string): string;
|
|
19
18
|
get createdAt(): FirebaseFirestore.Timestamp;
|
|
20
19
|
get createdBy(): FirebaseFirestore.DocumentReference<FirebaseFirestore.DocumentData, FirebaseFirestore.DocumentData>;
|
|
21
20
|
get editedAt(): FirebaseFirestore.Timestamp | null;
|
|
@@ -4,7 +4,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const collections_1 = require("../../helpers/collections");
|
|
7
|
-
const externalUrls_1 = require("../../helpers/externalUrls");
|
|
8
7
|
const glissandooAdmin_1 = require("../../helpers/glissandooAdmin");
|
|
9
8
|
const types_1 = require("../../helpers/types");
|
|
10
9
|
const lang_1 = require("../../lang");
|
|
@@ -53,9 +52,6 @@ class Partnership extends basic_1.default {
|
|
|
53
52
|
get glissandooAdminUrl() {
|
|
54
53
|
return (0, glissandooAdmin_1.getGlissandooAdminEntityURL)(collections_1.CollectionNames.Partnership, this.id);
|
|
55
54
|
}
|
|
56
|
-
getGlissandooAdminUrl(adminHost) {
|
|
57
|
-
return (0, externalUrls_1.buildAdminEntityUrl)(adminHost, collections_1.CollectionNames.Partnership, this.id);
|
|
58
|
-
}
|
|
59
55
|
get createdAt() {
|
|
60
56
|
return this.data.createdAt;
|
|
61
57
|
}
|
|
@@ -5,4 +5,4 @@ var PartnershipRoles;
|
|
|
5
5
|
(function (PartnershipRoles) {
|
|
6
6
|
PartnershipRoles["Admin"] = "admin";
|
|
7
7
|
PartnershipRoles["Partner"] = "partner";
|
|
8
|
-
})(PartnershipRoles
|
|
8
|
+
})(PartnershipRoles = exports.PartnershipRoles || (exports.PartnershipRoles = {}));
|