@glissandoo/lib 1.115.0 → 1.116.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/functions/auth.d.ts +1 -3
- package/functions/customer.d.ts +0 -4
- package/functions/event.js +1 -1
- package/functions/eventPlayer.js +1 -1
- package/functions/eventRepertory.d.ts +0 -2
- package/functions/eventRepertory.js +1 -1
- package/functions/groupRepertory.d.ts +0 -110
- package/functions/index.d.ts +0 -30
- package/functions/index.js +1 -31
- package/functions/misc.d.ts +0 -6
- package/functions/regions.js +1 -31
- package/helpers/appScenes.js +1 -1
- package/helpers/auth.d.ts +9 -2
- package/helpers/auth.js +14 -33
- package/helpers/badges.js +1 -1
- package/helpers/collections.js +2 -2
- package/helpers/communicationTemplate/index.d.ts +2 -3
- package/helpers/communicationTemplate/index.js +5 -5
- package/helpers/dlinks.js +1 -1
- package/helpers/errors.d.ts +0 -1
- package/helpers/errors.js +1 -2
- package/helpers/glissandooAdmin.d.ts +3 -0
- package/helpers/glissandooAdmin.js +6 -0
- package/helpers/instruments/index.d.ts +0 -17
- package/helpers/instruments/index.js +1 -5
- package/helpers/instruments/lists.d.ts +3 -3
- package/helpers/instruments/lists.js +5 -5
- package/helpers/musicStyles/index.d.ts +4 -22
- package/helpers/musicStyles/index.js +35 -114
- package/helpers/notifications/index.js +1 -1
- package/helpers/objects.d.ts +1 -5
- package/helpers/objects.js +6 -7
- package/helpers/plans.js +2 -2
- package/helpers/rates.d.ts +1 -1
- package/helpers/slate.d.ts +5 -64
- package/helpers/slate.js +1 -7
- package/helpers/ts-extras/array-includes.js +2 -1
- package/helpers/ts-extras/as-mutable.js +2 -1
- package/helpers/ts-extras/assert-error.js +2 -1
- package/helpers/ts-extras/index.js +1 -1
- package/helpers/ts-extras/is-defined.js +2 -1
- package/helpers/ts-extras/is-empty.js +2 -1
- package/helpers/ts-extras/is-infinite.js +2 -1
- package/helpers/ts-extras/is-present.js +2 -1
- package/helpers/ts-extras/object-entries.d.ts +1 -1
- package/helpers/ts-extras/object-from-entries.d.ts +1 -1
- package/helpers/ts-extras/object-has-own.js +2 -1
- package/helpers/ts-extras/object-keys.d.ts +1 -1
- package/helpers/ts-extras/object-keys.js +1 -0
- package/helpers/ts-extras/set-has.js +2 -1
- package/helpers/types.d.ts +0 -26
- package/helpers/types.js +5 -25
- package/lang/ca.json +91 -325
- package/lang/de.json +91 -325
- package/lang/en.json +91 -325
- package/lang/es.json +91 -325
- package/lang/eu.json +91 -325
- package/lang/fr.json +91 -325
- package/lang/gl.json +91 -325
- package/lang/index.js +2 -3
- package/lang/it.json +91 -325
- package/lang/nl.json +91 -325
- package/lang/pt.json +91 -325
- package/models/Communication/types.d.ts +16 -0
- package/models/Communication/types.js +9 -3
- package/models/Counters/Group/Analytics/types.js +1 -1
- package/models/Customer/index.d.ts +1 -1
- package/models/Customer/index.js +3 -3
- package/models/Customer/types.js +1 -1
- package/models/Evento/Player/types.js +3 -3
- package/models/Evento/Repertory/types.d.ts +1 -2
- package/models/Evento/index.d.ts +2 -3
- package/models/Evento/index.js +4 -5
- package/models/Evento/types.d.ts +31 -2
- package/models/Evento/types.js +39 -8
- package/models/Federation/index.d.ts +1 -1
- package/models/Federation/index.js +3 -3
- package/models/Group/Analytics/types.js +1 -1
- package/models/Group/Player/types.js +1 -1
- package/models/Group/Repertory/File/Section/index.d.ts +3 -3
- package/models/Group/Repertory/File/Section/index.js +2 -3
- package/models/Group/Repertory/File/Section/types.d.ts +0 -7
- package/models/Group/Repertory/File/Section/types.js +1 -1
- package/models/Group/Repertory/File/index.d.ts +2 -4
- package/models/Group/Repertory/File/index.js +4 -4
- package/models/Group/Repertory/FilePath/index.d.ts +4 -3
- package/models/Group/Repertory/index.d.ts +4 -12
- package/models/Group/Repertory/index.js +0 -9
- package/models/Group/Repertory/types.d.ts +32 -21
- package/models/Group/Repertory/types.js +18 -8
- package/models/Group/index.d.ts +13 -15
- package/models/Group/index.js +15 -16
- package/models/Group/types.d.ts +66 -6
- package/models/Group/types.js +50 -8
- package/models/Instrument/{fromRecord.d.ts → group.d.ts} +5 -4
- package/models/Instrument/{fromRecord.js → group.js} +10 -10
- package/models/Instrument/index.d.ts +0 -2
- package/models/Instrument/index.js +1 -38
- package/models/Inventory/Item/types.js +2 -2
- package/models/Inventory/types.js +1 -1
- package/models/Notification/types.js +2 -2
- package/models/Offer/types.d.ts +12 -0
- package/models/Offer/types.js +15 -2
- package/models/Partnership/Partner/types.js +1 -1
- package/models/Partnership/Payment/types.js +2 -2
- package/models/Partnership/index.d.ts +1 -1
- package/models/Partnership/index.js +3 -3
- package/models/Partnership/types.js +1 -1
- package/models/Repertory/types.d.ts +0 -12
- package/models/Repertory/types.js +2 -2
- package/models/User/Group/index.js +2 -1
- package/models/User/index.d.ts +1 -1
- package/models/User/index.js +3 -3
- package/models/User/types.d.ts +1 -2
- package/models/User/types.js +7 -7
- package/models/WebhookEvent/types.js +1 -1
- package/package.json +20 -28
- package/types/firestore.d.ts +1 -0
- package/types/firestore.js +1 -1
- package/types/supabase/generated.d.ts +545 -3113
- package/types/supabase/generated.js +0 -9
- package/types/supabase/generated.ts +581 -3080
- package/types/supabase/index.d.ts +19 -155
- package/types/supabase/index.js +0 -15
- package/types/supabase/index.ts +21 -288
- package/types/supabase/overwrites/comm.d.ts +18 -0
- package/types/supabase/overwrites/comm.ts +18 -0
- package/types/supabase/overwrites/comm_history.d.ts +10 -0
- package/types/supabase/overwrites/comm_history.ts +10 -0
- package/types/supabase/overwrites/{tables/event/index.d.ts → event.d.ts} +1 -1
- package/types/supabase/overwrites/{tables/event/index.ts → event.ts} +1 -1
- package/types/supabase/overwrites/event_history.d.ts +10 -0
- package/types/supabase/overwrites/event_history.ts +10 -0
- package/types/supabase/overwrites/{tables/group/index.d.ts → group.d.ts} +5 -2
- package/types/supabase/overwrites/{tables/group/index.ts → group.ts} +6 -2
- package/types/supabase/overwrites/group_history.d.ts +9 -0
- package/types/supabase/overwrites/group_history.ts +9 -0
- package/types/supabase/overwrites/index.d.ts +1 -1
- package/types/supabase/overwrites/index.ts +1 -1
- package/types/supabase/overwrites/{tables/offer/index.d.ts → offer.d.ts} +2 -6
- package/types/supabase/overwrites/{tables/offer/index.ts → offer.ts} +2 -7
- package/types/supabase/overwrites/offer_history.d.ts +10 -0
- package/types/supabase/overwrites/offer_history.ts +10 -0
- package/types/supabase/overwrites/repertoire.d.ts +12 -0
- package/types/supabase/overwrites/repertoire.ts +12 -0
- package/types/supabase/overwrites/repertoire_history.d.ts +10 -0
- package/types/supabase/overwrites/repertoire_history.ts +10 -0
- package/functions/composer.d.ts +0 -13
- package/functions/composerComposition.d.ts +0 -102
- package/functions/composerNotification.d.ts +0 -38
- package/functions/composerPayout.d.ts +0 -20
- package/helpers/catalogBridge.d.ts +0 -121
- package/helpers/catalogBridge.js +0 -95
- package/helpers/compositionCategories/genres.d.ts +0 -922
- package/helpers/compositionCategories/genres.js +0 -940
- package/helpers/compositionCategories/index.d.ts +0 -2
- package/helpers/compositionCategories/index.js +0 -18
- package/helpers/compositionCategories/styles.d.ts +0 -181
- package/helpers/compositionCategories/styles.js +0 -197
- package/helpers/compositionSoloistOffstageParts/index.d.ts +0 -34
- package/helpers/compositionSoloistOffstageParts/index.js +0 -117
- package/helpers/currency.d.ts +0 -19
- package/helpers/currency.js +0 -85
- package/helpers/currencyConversion.d.ts +0 -45
- package/helpers/currencyConversion.js +0 -119
- package/helpers/dataStructures/trees/index.d.ts +0 -12
- package/helpers/dataStructures/trees/index.js +0 -71
- package/helpers/dataStructures/trees/types.d.ts +0 -14
- package/helpers/dataStructures/trees/types.js +0 -5
- package/helpers/externalUrls.d.ts +0 -12
- package/helpers/externalUrls.js +0 -40
- package/models/CompositionGenre/index.d.ts +0 -9
- package/models/CompositionGenre/index.js +0 -16
- package/models/CompositionStyle/index.d.ts +0 -9
- package/models/CompositionStyle/index.js +0 -16
- package/models/supabase/Comm/index.d.ts +0 -24
- package/models/supabase/Comm/index.js +0 -68
- package/models/supabase/Comm/types.d.ts +0 -6
- package/models/supabase/CommHistory/index.d.ts +0 -22
- package/models/supabase/CommHistory/index.js +0 -37
- package/models/supabase/CommHistory/types.d.ts +0 -11
- package/models/supabase/CommHistory/types.js +0 -9
- package/models/supabase/Composer/Composition/Acquisition/index.d.ts +0 -4
- package/models/supabase/Composer/Composition/Acquisition/index.js +0 -9
- package/models/supabase/Composer/Composition/Acquisition/types.d.ts +0 -36
- package/models/supabase/Composer/Composition/Favorite/index.d.ts +0 -4
- package/models/supabase/Composer/Composition/Favorite/index.js +0 -9
- package/models/supabase/Composer/Composition/Favorite/types.d.ts +0 -6
- package/models/supabase/Composer/Composition/View/index.d.ts +0 -4
- package/models/supabase/Composer/Composition/View/index.js +0 -9
- package/models/supabase/Composer/Composition/View/types.d.ts +0 -6
- package/models/supabase/Composer/Composition/index.d.ts +0 -5284
- package/models/supabase/Composer/Composition/index.js +0 -166
- package/models/supabase/Composer/Composition/types.d.ts +0 -96
- package/models/supabase/Composer/Composition/types.js +0 -32
- package/models/supabase/Composer/Notification/index.d.ts +0 -4
- package/models/supabase/Composer/Notification/index.js +0 -9
- package/models/supabase/Composer/Notification/types.d.ts +0 -39
- package/models/supabase/Composer/Notification/types.js +0 -27
- package/models/supabase/Composer/Payout/index.d.ts +0 -4
- package/models/supabase/Composer/Payout/index.js +0 -9
- package/models/supabase/Composer/Payout/status.d.ts +0 -1
- package/models/supabase/Composer/Payout/types.d.ts +0 -5
- package/models/supabase/Composer/PerformanceAttendance/types.d.ts +0 -4
- package/models/supabase/Composer/index.d.ts +0 -78
- package/models/supabase/Composer/index.js +0 -105
- package/models/supabase/Composer/types.d.ts +0 -6
- package/models/supabase/Composer/types.js +0 -2
- package/models/supabase/EventHistory/index.d.ts +0 -22
- package/models/supabase/EventHistory/index.js +0 -37
- package/models/supabase/EventHistory/types.d.ts +0 -36
- package/models/supabase/EventHistory/types.js +0 -34
- package/models/supabase/GroupHistory/index.d.ts +0 -21
- package/models/supabase/GroupHistory/index.js +0 -34
- package/models/supabase/GroupHistory/types.d.ts +0 -27
- package/models/supabase/GroupHistory/types.js +0 -25
- package/models/supabase/Model/index.d.ts +0 -10
- package/models/supabase/Model/index.js +0 -21
- package/models/supabase/OfferHistory/index.d.ts +0 -22
- package/models/supabase/OfferHistory/index.js +0 -37
- package/models/supabase/OfferHistory/types.d.ts +0 -18
- package/models/supabase/OfferHistory/types.js +0 -16
- package/models/supabase/Repertoire/index.d.ts +0 -16
- package/models/supabase/Repertoire/index.js +0 -43
- package/models/supabase/Repertoire/types.d.ts +0 -6
- package/models/supabase/Repertoire/types.js +0 -2
- package/models/supabase/RepertoireHistory/index.d.ts +0 -22
- package/models/supabase/RepertoireHistory/index.js +0 -37
- package/models/supabase/RepertoireHistory/types.d.ts +0 -21
- package/models/supabase/RepertoireHistory/types.js +0 -19
- package/models/supabase/User/Group/index.d.ts +0 -11
- package/models/supabase/User/Group/index.js +0 -30
- package/models/supabase/User/Group/types.d.ts +0 -6
- package/models/supabase/User/Group/types.js +0 -2
- package/models/supabase/User/index.d.ts +0 -13
- package/models/supabase/User/index.js +0 -37
- package/models/supabase/User/types.d.ts +0 -6
- package/models/supabase/User/types.js +0 -2
- package/types/supabase/catalog.d.ts +0 -46
- package/types/supabase/catalog.js +0 -2
- package/types/supabase/catalog.ts +0 -67
- package/types/supabase/composerMetrics.d.ts +0 -27
- package/types/supabase/composerMetrics.js +0 -2
- package/types/supabase/composerMetrics.ts +0 -26
- package/types/supabase/overwrites/tables/comm/model.d.ts +0 -4
- package/types/supabase/overwrites/tables/comm/model.js +0 -2
- package/types/supabase/overwrites/tables/comm/model.ts +0 -4
- package/types/supabase/overwrites/tables/comm_history/index.d.ts +0 -7
- package/types/supabase/overwrites/tables/comm_history/index.js +0 -2
- package/types/supabase/overwrites/tables/comm_history/index.ts +0 -9
- package/types/supabase/overwrites/tables/comm_history/model.d.ts +0 -10
- package/types/supabase/overwrites/tables/comm_history/model.js +0 -2
- package/types/supabase/overwrites/tables/comm_history/model.ts +0 -13
- package/types/supabase/overwrites/tables/common/index.js +0 -2
- package/types/supabase/overwrites/tables/composer/index.d.ts +0 -9
- package/types/supabase/overwrites/tables/composer/index.js +0 -2
- package/types/supabase/overwrites/tables/composer/index.ts +0 -10
- package/types/supabase/overwrites/tables/composer/model.d.ts +0 -12
- package/types/supabase/overwrites/tables/composer/model.js +0 -2
- package/types/supabase/overwrites/tables/composer/model.ts +0 -15
- package/types/supabase/overwrites/tables/composer/publicModel.d.ts +0 -11
- package/types/supabase/overwrites/tables/composer/publicModel.js +0 -2
- package/types/supabase/overwrites/tables/composer/publicModel.ts +0 -15
- package/types/supabase/overwrites/tables/composerComposition/index.d.ts +0 -18
- package/types/supabase/overwrites/tables/composerComposition/index.js +0 -2
- package/types/supabase/overwrites/tables/composerComposition/index.ts +0 -24
- package/types/supabase/overwrites/tables/composerComposition/model.d.ts +0 -9
- package/types/supabase/overwrites/tables/composerComposition/model.js +0 -2
- package/types/supabase/overwrites/tables/composerComposition/model.ts +0 -26
- package/types/supabase/overwrites/tables/composerComposition/publicModel.d.ts +0 -9
- package/types/supabase/overwrites/tables/composerComposition/publicModel.js +0 -2
- package/types/supabase/overwrites/tables/composerComposition/publicModel.ts +0 -37
- package/types/supabase/overwrites/tables/composerNotification/index.d.ts +0 -19
- package/types/supabase/overwrites/tables/composerNotification/index.js +0 -2
- package/types/supabase/overwrites/tables/composerNotification/index.ts +0 -25
- package/types/supabase/overwrites/tables/composerOwnedTransaction/model.d.ts +0 -2
- package/types/supabase/overwrites/tables/composerOwnedTransaction/model.js +0 -2
- package/types/supabase/overwrites/tables/composerOwnedTransaction/model.ts +0 -3
- package/types/supabase/overwrites/tables/composerPayout/index.d.ts +0 -7
- package/types/supabase/overwrites/tables/composerPayout/index.js +0 -2
- package/types/supabase/overwrites/tables/composerPayout/index.ts +0 -8
- package/types/supabase/overwrites/tables/compositionAcquisition/index.d.ts +0 -4
- package/types/supabase/overwrites/tables/compositionAcquisition/index.js +0 -2
- package/types/supabase/overwrites/tables/compositionAcquisition/index.ts +0 -8
- package/types/supabase/overwrites/tables/compositionAcquisition/model.d.ts +0 -6
- package/types/supabase/overwrites/tables/compositionAcquisition/model.js +0 -2
- package/types/supabase/overwrites/tables/compositionAcquisition/model.ts +0 -11
- package/types/supabase/overwrites/tables/compositionFavorite/index.d.ts +0 -1
- package/types/supabase/overwrites/tables/compositionFavorite/index.js +0 -2
- package/types/supabase/overwrites/tables/compositionFavorite/index.ts +0 -2
- package/types/supabase/overwrites/tables/compositionFavorite/model.d.ts +0 -1
- package/types/supabase/overwrites/tables/compositionFavorite/model.js +0 -2
- package/types/supabase/overwrites/tables/compositionFavorite/model.ts +0 -1
- package/types/supabase/overwrites/tables/compositionView/index.d.ts +0 -1
- package/types/supabase/overwrites/tables/compositionView/index.js +0 -2
- package/types/supabase/overwrites/tables/compositionView/index.ts +0 -2
- package/types/supabase/overwrites/tables/compositionView/model.d.ts +0 -1
- package/types/supabase/overwrites/tables/compositionView/model.js +0 -2
- package/types/supabase/overwrites/tables/compositionView/model.ts +0 -1
- package/types/supabase/overwrites/tables/currencyExchangeRate/index.d.ts +0 -16
- package/types/supabase/overwrites/tables/currencyExchangeRate/index.js +0 -2
- package/types/supabase/overwrites/tables/currencyExchangeRate/index.ts +0 -18
- package/types/supabase/overwrites/tables/event/index.js +0 -2
- package/types/supabase/overwrites/tables/event_history/index.d.ts +0 -7
- package/types/supabase/overwrites/tables/event_history/index.js +0 -2
- package/types/supabase/overwrites/tables/event_history/index.ts +0 -9
- package/types/supabase/overwrites/tables/event_history/model.d.ts +0 -10
- package/types/supabase/overwrites/tables/event_history/model.js +0 -2
- package/types/supabase/overwrites/tables/event_history/model.ts +0 -13
- package/types/supabase/overwrites/tables/group/index.js +0 -2
- package/types/supabase/overwrites/tables/group_history/index.d.ts +0 -7
- package/types/supabase/overwrites/tables/group_history/index.js +0 -2
- package/types/supabase/overwrites/tables/group_history/index.ts +0 -9
- package/types/supabase/overwrites/tables/group_history/model.d.ts +0 -10
- package/types/supabase/overwrites/tables/group_history/model.js +0 -2
- package/types/supabase/overwrites/tables/group_history/model.ts +0 -13
- package/types/supabase/overwrites/tables/offer/index.js +0 -2
- package/types/supabase/overwrites/tables/offer_history/index.d.ts +0 -7
- package/types/supabase/overwrites/tables/offer_history/index.js +0 -2
- package/types/supabase/overwrites/tables/offer_history/index.ts +0 -9
- package/types/supabase/overwrites/tables/offer_history/model.d.ts +0 -10
- package/types/supabase/overwrites/tables/offer_history/model.js +0 -2
- package/types/supabase/overwrites/tables/offer_history/model.ts +0 -13
- package/types/supabase/overwrites/tables/repertoire/model.d.ts +0 -7
- package/types/supabase/overwrites/tables/repertoire/model.js +0 -2
- package/types/supabase/overwrites/tables/repertoire/model.ts +0 -7
- package/types/supabase/overwrites/tables/repertoire_history/index.d.ts +0 -7
- package/types/supabase/overwrites/tables/repertoire_history/index.js +0 -2
- package/types/supabase/overwrites/tables/repertoire_history/index.ts +0 -9
- package/types/supabase/overwrites/tables/repertoire_history/model.d.ts +0 -10
- package/types/supabase/overwrites/tables/repertoire_history/model.js +0 -2
- package/types/supabase/overwrites/tables/repertoire_history/model.ts +0 -13
- package/types/supabase/overwrites/tables/user/index.d.ts +0 -11
- package/types/supabase/overwrites/tables/user/index.js +0 -2
- package/types/supabase/overwrites/tables/user/index.ts +0 -13
- /package/{functions/composer.js → types/supabase/overwrites/comm.js} +0 -0
- /package/{functions/composerComposition.js → types/supabase/overwrites/comm_history.js} +0 -0
- /package/{functions/composerNotification.js → types/supabase/overwrites/event.js} +0 -0
- /package/{functions/composerPayout.js → types/supabase/overwrites/event_history.js} +0 -0
- /package/{models/supabase/Comm/types.js → types/supabase/overwrites/group.js} +0 -0
- /package/{models/supabase/Composer/Composition/Acquisition/types.js → types/supabase/overwrites/group_history.js} +0 -0
- /package/{models/supabase/Composer/Composition/Favorite/types.js → types/supabase/overwrites/offer.js} +0 -0
- /package/{models/supabase/Composer/Composition/View/types.js → types/supabase/overwrites/offer_history.js} +0 -0
- /package/{models/supabase/Composer/Payout/status.js → types/supabase/overwrites/repertoire.js} +0 -0
- /package/{models/supabase/Composer/Payout/types.js → types/supabase/overwrites/repertoire_history.js} +0 -0
- /package/types/supabase/overwrites/{tables/common/index.d.ts → utils.d.ts} +0 -0
- /package/{models/supabase/Composer/PerformanceAttendance/types.js → types/supabase/overwrites/utils.js} +0 -0
- /package/types/supabase/overwrites/{tables/common/index.ts → utils.ts} +0 -0
|
@@ -1,165 +1,29 @@
|
|
|
1
1
|
import { MergeDeep } from 'type-fest';
|
|
2
2
|
import { Database as DatabaseGenerated } from './generated';
|
|
3
3
|
import { Overwrite } from './overwrites';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
import { ComposerPublicModelOverwrite } from './overwrites/tables/composer/publicModel';
|
|
16
|
-
import { ComposerCompositionPublicModelOverwrite } from './overwrites/tables/composerComposition/publicModel';
|
|
17
|
-
import { CompositionAcquisitionOverwrite } from './overwrites/tables/compositionAcquisition';
|
|
18
|
-
import { CompositionAcquisitionModelOverwrite } from './overwrites/tables/compositionAcquisition/model';
|
|
19
|
-
import { ComposerOwnedTransactionModelOverwrite } from './overwrites/tables/composerOwnedTransaction/model';
|
|
20
|
-
import { ComposerPayoutOverwrite } from './overwrites/tables/composerPayout';
|
|
21
|
-
import { CurrencyExchangeRateTable } from './overwrites/tables/currencyExchangeRate';
|
|
22
|
-
import { ComposerCompositionOverwrite } from './overwrites/tables/composerComposition';
|
|
23
|
-
import { ComposerNotificationOverwrite } from './overwrites/tables/composerNotification';
|
|
24
|
-
import { CompositionFavoriteOverwrite } from './overwrites/tables/compositionFavorite';
|
|
25
|
-
import { CompositionFavoriteModelOverwrite } from './overwrites/tables/compositionFavorite/model';
|
|
26
|
-
import { CompositionViewOverwrite } from './overwrites/tables/compositionView';
|
|
27
|
-
import { CompositionViewModelOverwrite } from './overwrites/tables/compositionView/model';
|
|
28
|
-
import { CatalogCompositionBrowseFunction, CatalogCompositionFacetsFunction } from './catalog';
|
|
29
|
-
import { ComposerBalanceFunction, ComposerExploreMetricsFunction } from './composerMetrics';
|
|
30
|
-
import { EventHistoryModelOverwrite } from './overwrites/tables/event_history/model';
|
|
31
|
-
import { CommHistoryModelOverwrite } from './overwrites/tables/comm_history/model';
|
|
32
|
-
import { GroupHistoryModelOverwrite } from './overwrites/tables/group_history/model';
|
|
33
|
-
import { OfferHistoryModelOverwrite } from './overwrites/tables/offer_history/model';
|
|
34
|
-
import { RepertoireHistoryModelOverwrite } from './overwrites/tables/repertoire_history/model';
|
|
35
|
-
import { CommModelOverwrite } from './overwrites/tables/comm/model';
|
|
36
|
-
import { RepertoireModelOverwrite } from './overwrites/tables/repertoire/model';
|
|
37
|
-
import { UserOverwrite } from './overwrites/tables/user';
|
|
38
|
-
type SimplifyTableRecord<T extends Record<string, {
|
|
39
|
-
Row: object;
|
|
40
|
-
Insert?: object;
|
|
41
|
-
Update?: object;
|
|
42
|
-
Relationships: unknown;
|
|
43
|
-
}>> = {
|
|
44
|
-
[K in keyof T]: {
|
|
45
|
-
Row: {
|
|
46
|
-
[F in keyof T[K]['Row']]: T[K]['Row'][F];
|
|
47
|
-
};
|
|
48
|
-
Insert: T[K] extends {
|
|
49
|
-
Insert: object;
|
|
50
|
-
} ? {
|
|
51
|
-
[F in keyof T[K]['Insert']]: T[K]['Insert'][F];
|
|
52
|
-
} : never;
|
|
53
|
-
Update: T[K] extends {
|
|
54
|
-
Update: object;
|
|
55
|
-
} ? {
|
|
56
|
-
[F in keyof T[K]['Update']]: T[K]['Update'][F];
|
|
57
|
-
} : never;
|
|
58
|
-
Relationships: T[K]['Relationships'];
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
type DatabaseMerged = MergeDeep<DatabaseGenerated, {
|
|
4
|
+
import { CommOverwrite } from './overwrites/comm';
|
|
5
|
+
import { CommHistory } from './overwrites/comm_history';
|
|
6
|
+
import { EventOverwrite } from './overwrites/event';
|
|
7
|
+
import { EventHistory } from './overwrites/event_history';
|
|
8
|
+
import { GroupOverwrite } from './overwrites/group';
|
|
9
|
+
import { GroupHistory } from './overwrites/group_history';
|
|
10
|
+
import { OfferOverwrite } from './overwrites/offer';
|
|
11
|
+
import { OfferHistory } from './overwrites/offer_history';
|
|
12
|
+
import { RepertoireOverwrite } from './overwrites/repertoire';
|
|
13
|
+
import { RepertoireHistory } from './overwrites/repertoire_history';
|
|
14
|
+
export type Database = MergeDeep<DatabaseGenerated, {
|
|
62
15
|
public: {
|
|
63
16
|
Tables: {
|
|
64
17
|
group: Overwrite<GroupOverwrite, 'configSites' | 'socialNetworks'>;
|
|
65
18
|
event: Overwrite<EventOverwrite, 'repeat' | 'stage'>;
|
|
66
|
-
offer: Overwrite<OfferOverwrite
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
compositionView: Overwrite<CompositionViewOverwrite>;
|
|
75
|
-
user: Overwrite<UserOverwrite>;
|
|
76
|
-
repertoire: Overwrite<RepertoireModelOverwrite, 'source_composition'>;
|
|
77
|
-
event_history: Overwrite<EventHistoryOverwrite, 'prev_value' | 'value'>;
|
|
78
|
-
repertoire_history: Overwrite<RepertoireHistoryOverwrite, 'prev_value' | 'value'>;
|
|
79
|
-
group_history: Overwrite<GroupHistoryOverwrite, 'prev_value' | 'value'>;
|
|
80
|
-
offer_history: Overwrite<OfferHistoryOverwrite, 'prev_value' | 'value'>;
|
|
81
|
-
comm_history: Overwrite<CommHistoryOverwrite, 'prev_value' | 'value'>;
|
|
82
|
-
};
|
|
83
|
-
Views: {
|
|
84
|
-
composerModel: Overwrite<ComposerModelOverwrite>;
|
|
85
|
-
composerCompositionModel: Overwrite<ComposerCompositionModelOverwrite, 'description' | 'cover' | 'samples' | 'files' | 'products' | 'filesPath' | 'highlightedParts' | 'instrumentationIds' | 'genresIds' | 'stylesIds'>;
|
|
86
|
-
composerCompositionPublicModel: Overwrite<ComposerCompositionPublicModelOverwrite>;
|
|
87
|
-
composerPublicModel: Overwrite<ComposerPublicModelOverwrite>;
|
|
88
|
-
compositionAcquisitionModel: Overwrite<CompositionAcquisitionModelOverwrite, 'acquiredProducts'>;
|
|
89
|
-
composerOwnedTransactionModel: Overwrite<ComposerOwnedTransactionModelOverwrite, 'acquiredProducts'>;
|
|
90
|
-
compositionFavoriteModel: Overwrite<CompositionFavoriteModelOverwrite>;
|
|
91
|
-
compositionViewModel: Overwrite<CompositionViewModelOverwrite>;
|
|
92
|
-
commModel: Overwrite<CommModelOverwrite>;
|
|
93
|
-
repertoireModel: Overwrite<RepertoireModelOverwrite, 'source_composition'>;
|
|
94
|
-
repertoire_historyModel: Overwrite<RepertoireHistoryModelOverwrite, 'prev_value' | 'value'>;
|
|
95
|
-
event_historyModel: Overwrite<EventHistoryModelOverwrite, 'prev_value' | 'value'>;
|
|
96
|
-
group_historyModel: Overwrite<GroupHistoryModelOverwrite, 'prev_value' | 'value'>;
|
|
97
|
-
offer_historyModel: Overwrite<OfferHistoryModelOverwrite, 'prev_value' | 'value'>;
|
|
98
|
-
comm_historyModel: Overwrite<CommHistoryModelOverwrite, 'prev_value' | 'value'>;
|
|
99
|
-
};
|
|
100
|
-
Functions: {
|
|
101
|
-
catalogCompositionBrowse: CatalogCompositionBrowseFunction;
|
|
102
|
-
catalogCompositionFacets: CatalogCompositionFacetsFunction;
|
|
103
|
-
get_composer_balance: ComposerBalanceFunction;
|
|
104
|
-
get_composer_explore_metrics: ComposerExploreMetricsFunction;
|
|
19
|
+
offer: Overwrite<OfferOverwrite>;
|
|
20
|
+
repertoire: Overwrite<RepertoireOverwrite>;
|
|
21
|
+
comm: Overwrite<CommOverwrite>;
|
|
22
|
+
event_history: Overwrite<Omit<EventHistory, 'id'>, 'prev_value' | 'value'>;
|
|
23
|
+
repertoire_history: Overwrite<Omit<RepertoireHistory, 'id'>, 'prev_value' | 'value'>;
|
|
24
|
+
group_history: Overwrite<Omit<GroupHistory, 'id'>, 'prev_value' | 'value'>;
|
|
25
|
+
offer_history: Overwrite<Omit<OfferHistory, 'id'>, 'prev_value' | 'value'>;
|
|
26
|
+
comm_history: Overwrite<Omit<CommHistory, 'id'>, 'prev_value' | 'value'>;
|
|
105
27
|
};
|
|
106
28
|
};
|
|
107
29
|
}>;
|
|
108
|
-
export type Database = Omit<DatabaseMerged, 'public'> & {
|
|
109
|
-
public: Omit<DatabaseMerged['public'], 'Tables' | 'Views'> & {
|
|
110
|
-
Tables: SimplifyTableRecord<DatabaseMerged['public']['Tables']>;
|
|
111
|
-
Views: SimplifyTableRecord<DatabaseMerged['public']['Views']>;
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
type DatabaseWithoutInternals = Omit<Database, '__InternalSupabase'>;
|
|
115
|
-
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, 'public'>];
|
|
116
|
-
export type RelationName = keyof (DefaultSchema['Tables'] & DefaultSchema['Views']);
|
|
117
|
-
export type IsRelationName<T extends RelationName> = T;
|
|
118
|
-
export type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema['Tables'] & DefaultSchema['Views']) | {
|
|
119
|
-
schema: keyof DatabaseWithoutInternals;
|
|
120
|
-
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
121
|
-
schema: keyof DatabaseWithoutInternals;
|
|
122
|
-
} ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Views']) : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
123
|
-
schema: keyof DatabaseWithoutInternals;
|
|
124
|
-
} ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Views'])[TableName] extends {
|
|
125
|
-
Row: infer R;
|
|
126
|
-
} ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema['Tables'] & DefaultSchema['Views']) ? (DefaultSchema['Tables'] & DefaultSchema['Views'])[DefaultSchemaTableNameOrOptions] extends {
|
|
127
|
-
Row: infer R;
|
|
128
|
-
} ? R : never : never;
|
|
129
|
-
export type TablesInsert<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema['Tables'] | {
|
|
130
|
-
schema: keyof DatabaseWithoutInternals;
|
|
131
|
-
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
132
|
-
schema: keyof DatabaseWithoutInternals;
|
|
133
|
-
} ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
134
|
-
schema: keyof DatabaseWithoutInternals;
|
|
135
|
-
} ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'][TableName] extends {
|
|
136
|
-
Insert: infer I;
|
|
137
|
-
} ? I : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema['Tables'] ? DefaultSchema['Tables'][DefaultSchemaTableNameOrOptions] extends {
|
|
138
|
-
Insert: infer I;
|
|
139
|
-
} ? I : never : never;
|
|
140
|
-
export type TablesUpdate<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema['Tables'] | {
|
|
141
|
-
schema: keyof DatabaseWithoutInternals;
|
|
142
|
-
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
143
|
-
schema: keyof DatabaseWithoutInternals;
|
|
144
|
-
} ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
145
|
-
schema: keyof DatabaseWithoutInternals;
|
|
146
|
-
} ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'][TableName] extends {
|
|
147
|
-
Update: infer U;
|
|
148
|
-
} ? U : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema['Tables'] ? DefaultSchema['Tables'][DefaultSchemaTableNameOrOptions] extends {
|
|
149
|
-
Update: infer U;
|
|
150
|
-
} ? U : never : never;
|
|
151
|
-
export type Enums<DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema['Enums'] | {
|
|
152
|
-
schema: keyof DatabaseWithoutInternals;
|
|
153
|
-
}, EnumName extends DefaultSchemaEnumNameOrOptions extends {
|
|
154
|
-
schema: keyof DatabaseWithoutInternals;
|
|
155
|
-
} ? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions['schema']]['Enums'] : never = never> = DefaultSchemaEnumNameOrOptions extends {
|
|
156
|
-
schema: keyof DatabaseWithoutInternals;
|
|
157
|
-
} ? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions['schema']]['Enums'][EnumName] : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema['Enums'] ? DefaultSchema['Enums'][DefaultSchemaEnumNameOrOptions] : never;
|
|
158
|
-
export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof DefaultSchema['CompositeTypes'] | {
|
|
159
|
-
schema: keyof DatabaseWithoutInternals;
|
|
160
|
-
}, CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
|
161
|
-
schema: keyof DatabaseWithoutInternals;
|
|
162
|
-
} ? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions['schema']]['CompositeTypes'] : never = never> = PublicCompositeTypeNameOrOptions extends {
|
|
163
|
-
schema: keyof DatabaseWithoutInternals;
|
|
164
|
-
} ? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions['schema']]['CompositeTypes'][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema['CompositeTypes'] ? DefaultSchema['CompositeTypes'][PublicCompositeTypeNameOrOptions] : never;
|
|
165
|
-
export * from './generated';
|
package/types/supabase/index.js
CHANGED
|
@@ -1,17 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./generated"), exports);
|
package/types/supabase/index.ts
CHANGED
|
@@ -1,303 +1,36 @@
|
|
|
1
1
|
import { MergeDeep } from 'type-fest';
|
|
2
2
|
import { Database as DatabaseGenerated } from './generated';
|
|
3
3
|
import { Overwrite } from './overwrites';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import { ComposerCompositionPublicModelOverwrite } from './overwrites/tables/composerComposition/publicModel';
|
|
17
|
-
import { CompositionAcquisitionOverwrite } from './overwrites/tables/compositionAcquisition';
|
|
18
|
-
import { CompositionAcquisitionModelOverwrite } from './overwrites/tables/compositionAcquisition/model';
|
|
19
|
-
import { ComposerOwnedTransactionModelOverwrite } from './overwrites/tables/composerOwnedTransaction/model';
|
|
20
|
-
import { ComposerPayoutOverwrite } from './overwrites/tables/composerPayout';
|
|
21
|
-
import { CurrencyExchangeRateTable } from './overwrites/tables/currencyExchangeRate';
|
|
22
|
-
import { ComposerCompositionOverwrite } from './overwrites/tables/composerComposition';
|
|
23
|
-
import { ComposerNotificationOverwrite } from './overwrites/tables/composerNotification';
|
|
24
|
-
import { CompositionFavoriteOverwrite } from './overwrites/tables/compositionFavorite';
|
|
25
|
-
import { CompositionFavoriteModelOverwrite } from './overwrites/tables/compositionFavorite/model';
|
|
26
|
-
import { CompositionViewOverwrite } from './overwrites/tables/compositionView';
|
|
27
|
-
import { CompositionViewModelOverwrite } from './overwrites/tables/compositionView/model';
|
|
28
|
-
import { CatalogCompositionBrowseFunction, CatalogCompositionFacetsFunction } from './catalog';
|
|
29
|
-
import { ComposerBalanceFunction, ComposerExploreMetricsFunction } from './composerMetrics';
|
|
30
|
-
import { EventHistoryModelOverwrite } from './overwrites/tables/event_history/model';
|
|
31
|
-
import { CommHistoryModelOverwrite } from './overwrites/tables/comm_history/model';
|
|
32
|
-
import { GroupHistoryModelOverwrite } from './overwrites/tables/group_history/model';
|
|
33
|
-
import { OfferHistoryModelOverwrite } from './overwrites/tables/offer_history/model';
|
|
34
|
-
import { RepertoireHistoryModelOverwrite } from './overwrites/tables/repertoire_history/model';
|
|
35
|
-
import { CommModelOverwrite } from './overwrites/tables/comm/model';
|
|
36
|
-
import { RepertoireModelOverwrite } from './overwrites/tables/repertoire/model';
|
|
37
|
-
import { UserOverwrite } from './overwrites/tables/user';
|
|
38
|
-
|
|
39
|
-
// MergeDeep produces complex conditional types that don't satisfy SupabaseClient's
|
|
40
|
-
// GenericSchema constraint (Record<string, GenericTable>). SimplifyTableRecord resolves
|
|
41
|
-
// these back into plain mapped types that TypeScript can verify structurally.
|
|
42
|
-
type SimplifyTableRecord<
|
|
43
|
-
T extends Record<
|
|
44
|
-
string,
|
|
45
|
-
{ Row: object; Insert?: object; Update?: object; Relationships: unknown }
|
|
46
|
-
>,
|
|
47
|
-
> = {
|
|
48
|
-
[K in keyof T]: {
|
|
49
|
-
Row: { [F in keyof T[K]['Row']]: T[K]['Row'][F] };
|
|
50
|
-
Insert: T[K] extends { Insert: object }
|
|
51
|
-
? { [F in keyof T[K]['Insert']]: T[K]['Insert'][F] }
|
|
52
|
-
: never;
|
|
53
|
-
Update: T[K] extends { Update: object }
|
|
54
|
-
? { [F in keyof T[K]['Update']]: T[K]['Update'][F] }
|
|
55
|
-
: never;
|
|
56
|
-
Relationships: T[K]['Relationships'];
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
// Internal merged type — correct semantics but complex structural type
|
|
61
|
-
type DatabaseMerged = MergeDeep<
|
|
4
|
+
import { CommOverwrite } from './overwrites/comm';
|
|
5
|
+
import { CommHistory } from './overwrites/comm_history';
|
|
6
|
+
import { EventOverwrite } from './overwrites/event';
|
|
7
|
+
import { EventHistory } from './overwrites/event_history';
|
|
8
|
+
import { GroupOverwrite } from './overwrites/group';
|
|
9
|
+
import { GroupHistory } from './overwrites/group_history';
|
|
10
|
+
import { OfferOverwrite } from './overwrites/offer';
|
|
11
|
+
import { OfferHistory } from './overwrites/offer_history';
|
|
12
|
+
import { RepertoireOverwrite } from './overwrites/repertoire';
|
|
13
|
+
import { RepertoireHistory } from './overwrites/repertoire_history';
|
|
14
|
+
|
|
15
|
+
export type Database = MergeDeep<
|
|
62
16
|
DatabaseGenerated,
|
|
63
17
|
{
|
|
64
18
|
public: {
|
|
65
19
|
Tables: {
|
|
66
20
|
group: Overwrite<GroupOverwrite, 'configSites' | 'socialNetworks'>;
|
|
67
21
|
event: Overwrite<EventOverwrite, 'repeat' | 'stage'>;
|
|
68
|
-
offer: Overwrite<OfferOverwrite
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
| 'samples'
|
|
75
|
-
| 'files'
|
|
76
|
-
| 'products'
|
|
77
|
-
| 'filesPath'
|
|
78
|
-
| 'highlightedParts'
|
|
79
|
-
| 'instrumentationIds'
|
|
80
|
-
| 'genresIds'
|
|
81
|
-
| 'stylesIds'
|
|
82
|
-
>;
|
|
83
|
-
compositionAcquisition: Overwrite<
|
|
84
|
-
CompositionAcquisitionOverwrite,
|
|
85
|
-
| 'acquiredProducts'
|
|
86
|
-
| 'buyerPriceCents'
|
|
87
|
-
| 'buyerVatCents'
|
|
88
|
-
| 'buyerCurrency'
|
|
89
|
-
| 'basePriceCents'
|
|
90
|
-
| 'baseVatCents'
|
|
91
|
-
| 'baseNetEarningsCents'
|
|
92
|
-
| 'baseCurrency'
|
|
93
|
-
| 'exchangeRate'
|
|
94
|
-
| 'exchangeRateDate'
|
|
95
|
-
| 'exchangeRateSource'
|
|
96
|
-
>;
|
|
97
|
-
composerPayout: Overwrite<
|
|
98
|
-
ComposerPayoutOverwrite,
|
|
99
|
-
'id' | 'created_at' | 'completed_at' | 'observations' | 'status'
|
|
100
|
-
>;
|
|
101
|
-
currencyExchangeRate: CurrencyExchangeRateTable;
|
|
102
|
-
composerNotification: Overwrite<
|
|
103
|
-
ComposerNotificationOverwrite,
|
|
104
|
-
| 'id'
|
|
105
|
-
| 'params'
|
|
106
|
-
| 'metadata'
|
|
107
|
-
| 'actionUrl'
|
|
108
|
-
| 'readAt'
|
|
109
|
-
| 'archivedAt'
|
|
110
|
-
| 'emailStatus'
|
|
111
|
-
| 'emailSentAt'
|
|
112
|
-
| 'emailError'
|
|
113
|
-
| 'dedupeKey'
|
|
114
|
-
| 'createdAt'
|
|
115
|
-
>;
|
|
116
|
-
compositionFavorite: Overwrite<CompositionFavoriteOverwrite>;
|
|
117
|
-
compositionView: Overwrite<CompositionViewOverwrite>;
|
|
118
|
-
user: Overwrite<UserOverwrite>;
|
|
119
|
-
repertoire: Overwrite<RepertoireModelOverwrite, 'source_composition'>;
|
|
120
|
-
event_history: Overwrite<EventHistoryOverwrite, 'prev_value' | 'value'>;
|
|
121
|
-
repertoire_history: Overwrite<RepertoireHistoryOverwrite, 'prev_value' | 'value'>;
|
|
122
|
-
group_history: Overwrite<GroupHistoryOverwrite, 'prev_value' | 'value'>;
|
|
123
|
-
offer_history: Overwrite<OfferHistoryOverwrite, 'prev_value' | 'value'>;
|
|
124
|
-
comm_history: Overwrite<CommHistoryOverwrite, 'prev_value' | 'value'>;
|
|
125
|
-
};
|
|
126
|
-
Views: {
|
|
127
|
-
composerModel: Overwrite<ComposerModelOverwrite>;
|
|
128
|
-
composerCompositionModel: Overwrite<
|
|
129
|
-
ComposerCompositionModelOverwrite,
|
|
130
|
-
| 'description'
|
|
131
|
-
| 'cover'
|
|
132
|
-
| 'samples'
|
|
133
|
-
| 'files'
|
|
134
|
-
| 'products'
|
|
135
|
-
| 'filesPath'
|
|
136
|
-
| 'highlightedParts'
|
|
137
|
-
| 'instrumentationIds'
|
|
138
|
-
| 'genresIds'
|
|
139
|
-
| 'stylesIds'
|
|
140
|
-
>;
|
|
141
|
-
composerCompositionPublicModel: Overwrite<ComposerCompositionPublicModelOverwrite>;
|
|
142
|
-
composerPublicModel: Overwrite<ComposerPublicModelOverwrite>;
|
|
143
|
-
compositionAcquisitionModel: Overwrite<
|
|
144
|
-
CompositionAcquisitionModelOverwrite,
|
|
145
|
-
'acquiredProducts'
|
|
146
|
-
>;
|
|
147
|
-
composerOwnedTransactionModel: Overwrite<
|
|
148
|
-
ComposerOwnedTransactionModelOverwrite,
|
|
149
|
-
'acquiredProducts'
|
|
150
|
-
>;
|
|
151
|
-
compositionFavoriteModel: Overwrite<CompositionFavoriteModelOverwrite>;
|
|
152
|
-
compositionViewModel: Overwrite<CompositionViewModelOverwrite>;
|
|
153
|
-
commModel: Overwrite<CommModelOverwrite>;
|
|
154
|
-
repertoireModel: Overwrite<RepertoireModelOverwrite, 'source_composition'>;
|
|
155
|
-
repertoire_historyModel: Overwrite<
|
|
156
|
-
RepertoireHistoryModelOverwrite,
|
|
22
|
+
offer: Overwrite<OfferOverwrite>;
|
|
23
|
+
repertoire: Overwrite<RepertoireOverwrite>;
|
|
24
|
+
comm: Overwrite<CommOverwrite>;
|
|
25
|
+
event_history: Overwrite<Omit<EventHistory, 'id'>, 'prev_value' | 'value'>;
|
|
26
|
+
repertoire_history: Overwrite<
|
|
27
|
+
Omit<RepertoireHistory, 'id'>,
|
|
157
28
|
'prev_value' | 'value'
|
|
158
29
|
>;
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
comm_historyModel: Overwrite<CommHistoryModelOverwrite, 'prev_value' | 'value'>;
|
|
163
|
-
};
|
|
164
|
-
Functions: {
|
|
165
|
-
catalogCompositionBrowse: CatalogCompositionBrowseFunction;
|
|
166
|
-
catalogCompositionFacets: CatalogCompositionFacetsFunction;
|
|
167
|
-
get_composer_balance: ComposerBalanceFunction;
|
|
168
|
-
get_composer_explore_metrics: ComposerExploreMetricsFunction;
|
|
30
|
+
group_history: Overwrite<Omit<GroupHistory, 'id'>, 'prev_value' | 'value'>;
|
|
31
|
+
offer_history: Overwrite<Omit<OfferHistory, 'id'>, 'prev_value' | 'value'>;
|
|
32
|
+
comm_history: Overwrite<Omit<CommHistory, 'id'>, 'prev_value' | 'value'>;
|
|
169
33
|
};
|
|
170
34
|
};
|
|
171
35
|
}
|
|
172
36
|
>;
|
|
173
|
-
|
|
174
|
-
// Simplified Database type — structurally identical to DatabaseMerged but produces
|
|
175
|
-
// plain mapped types that satisfy SupabaseClient<Database> generics
|
|
176
|
-
export type Database = Omit<DatabaseMerged, 'public'> & {
|
|
177
|
-
public: Omit<DatabaseMerged['public'], 'Tables' | 'Views'> & {
|
|
178
|
-
Tables: SimplifyTableRecord<DatabaseMerged['public']['Tables']>;
|
|
179
|
-
Views: SimplifyTableRecord<DatabaseMerged['public']['Views']>;
|
|
180
|
-
};
|
|
181
|
-
};
|
|
182
|
-
|
|
183
|
-
type DatabaseWithoutInternals = Omit<Database, '__InternalSupabase'>;
|
|
184
|
-
|
|
185
|
-
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, 'public'>];
|
|
186
|
-
|
|
187
|
-
export type RelationName = keyof (DefaultSchema['Tables'] & DefaultSchema['Views']);
|
|
188
|
-
export type IsRelationName<T extends RelationName> = T;
|
|
189
|
-
|
|
190
|
-
export type Tables<
|
|
191
|
-
DefaultSchemaTableNameOrOptions extends
|
|
192
|
-
| keyof (DefaultSchema['Tables'] & DefaultSchema['Views'])
|
|
193
|
-
| { schema: keyof DatabaseWithoutInternals },
|
|
194
|
-
TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
195
|
-
schema: keyof DatabaseWithoutInternals;
|
|
196
|
-
}
|
|
197
|
-
? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'] &
|
|
198
|
-
DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Views'])
|
|
199
|
-
: never = never,
|
|
200
|
-
> = DefaultSchemaTableNameOrOptions extends {
|
|
201
|
-
schema: keyof DatabaseWithoutInternals;
|
|
202
|
-
}
|
|
203
|
-
? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'] &
|
|
204
|
-
DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Views'])[TableName] extends {
|
|
205
|
-
Row: infer R;
|
|
206
|
-
}
|
|
207
|
-
? R
|
|
208
|
-
: never
|
|
209
|
-
: DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema['Tables'] &
|
|
210
|
-
DefaultSchema['Views'])
|
|
211
|
-
? (DefaultSchema['Tables'] &
|
|
212
|
-
DefaultSchema['Views'])[DefaultSchemaTableNameOrOptions] extends {
|
|
213
|
-
Row: infer R;
|
|
214
|
-
}
|
|
215
|
-
? R
|
|
216
|
-
: never
|
|
217
|
-
: never;
|
|
218
|
-
|
|
219
|
-
export type TablesInsert<
|
|
220
|
-
DefaultSchemaTableNameOrOptions extends
|
|
221
|
-
| keyof DefaultSchema['Tables']
|
|
222
|
-
| { schema: keyof DatabaseWithoutInternals },
|
|
223
|
-
TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
224
|
-
schema: keyof DatabaseWithoutInternals;
|
|
225
|
-
}
|
|
226
|
-
? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables']
|
|
227
|
-
: never = never,
|
|
228
|
-
> = DefaultSchemaTableNameOrOptions extends {
|
|
229
|
-
schema: keyof DatabaseWithoutInternals;
|
|
230
|
-
}
|
|
231
|
-
? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'][TableName] extends {
|
|
232
|
-
Insert: infer I;
|
|
233
|
-
}
|
|
234
|
-
? I
|
|
235
|
-
: never
|
|
236
|
-
: DefaultSchemaTableNameOrOptions extends keyof DefaultSchema['Tables']
|
|
237
|
-
? DefaultSchema['Tables'][DefaultSchemaTableNameOrOptions] extends {
|
|
238
|
-
Insert: infer I;
|
|
239
|
-
}
|
|
240
|
-
? I
|
|
241
|
-
: never
|
|
242
|
-
: never;
|
|
243
|
-
|
|
244
|
-
export type TablesUpdate<
|
|
245
|
-
DefaultSchemaTableNameOrOptions extends
|
|
246
|
-
| keyof DefaultSchema['Tables']
|
|
247
|
-
| { schema: keyof DatabaseWithoutInternals },
|
|
248
|
-
TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
249
|
-
schema: keyof DatabaseWithoutInternals;
|
|
250
|
-
}
|
|
251
|
-
? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables']
|
|
252
|
-
: never = never,
|
|
253
|
-
> = DefaultSchemaTableNameOrOptions extends {
|
|
254
|
-
schema: keyof DatabaseWithoutInternals;
|
|
255
|
-
}
|
|
256
|
-
? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'][TableName] extends {
|
|
257
|
-
Update: infer U;
|
|
258
|
-
}
|
|
259
|
-
? U
|
|
260
|
-
: never
|
|
261
|
-
: DefaultSchemaTableNameOrOptions extends keyof DefaultSchema['Tables']
|
|
262
|
-
? DefaultSchema['Tables'][DefaultSchemaTableNameOrOptions] extends {
|
|
263
|
-
Update: infer U;
|
|
264
|
-
}
|
|
265
|
-
? U
|
|
266
|
-
: never
|
|
267
|
-
: never;
|
|
268
|
-
|
|
269
|
-
export type Enums<
|
|
270
|
-
DefaultSchemaEnumNameOrOptions extends
|
|
271
|
-
| keyof DefaultSchema['Enums']
|
|
272
|
-
| { schema: keyof DatabaseWithoutInternals },
|
|
273
|
-
EnumName extends DefaultSchemaEnumNameOrOptions extends {
|
|
274
|
-
schema: keyof DatabaseWithoutInternals;
|
|
275
|
-
}
|
|
276
|
-
? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions['schema']]['Enums']
|
|
277
|
-
: never = never,
|
|
278
|
-
> = DefaultSchemaEnumNameOrOptions extends {
|
|
279
|
-
schema: keyof DatabaseWithoutInternals;
|
|
280
|
-
}
|
|
281
|
-
? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions['schema']]['Enums'][EnumName]
|
|
282
|
-
: DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema['Enums']
|
|
283
|
-
? DefaultSchema['Enums'][DefaultSchemaEnumNameOrOptions]
|
|
284
|
-
: never;
|
|
285
|
-
|
|
286
|
-
export type CompositeTypes<
|
|
287
|
-
PublicCompositeTypeNameOrOptions extends
|
|
288
|
-
| keyof DefaultSchema['CompositeTypes']
|
|
289
|
-
| { schema: keyof DatabaseWithoutInternals },
|
|
290
|
-
CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
|
291
|
-
schema: keyof DatabaseWithoutInternals;
|
|
292
|
-
}
|
|
293
|
-
? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions['schema']]['CompositeTypes']
|
|
294
|
-
: never = never,
|
|
295
|
-
> = PublicCompositeTypeNameOrOptions extends {
|
|
296
|
-
schema: keyof DatabaseWithoutInternals;
|
|
297
|
-
}
|
|
298
|
-
? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions['schema']]['CompositeTypes'][CompositeTypeName]
|
|
299
|
-
: PublicCompositeTypeNameOrOptions extends keyof DefaultSchema['CompositeTypes']
|
|
300
|
-
? DefaultSchema['CompositeTypes'][PublicCompositeTypeNameOrOptions]
|
|
301
|
-
: never;
|
|
302
|
-
|
|
303
|
-
export * from './generated';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface CommOverwrite {
|
|
2
|
+
id: string;
|
|
3
|
+
group_id: string;
|
|
4
|
+
owner_id: string;
|
|
5
|
+
title: string;
|
|
6
|
+
type: string;
|
|
7
|
+
comments_count: number;
|
|
8
|
+
block_answers: boolean;
|
|
9
|
+
template_id: string | null;
|
|
10
|
+
server_template: string | null;
|
|
11
|
+
server: boolean;
|
|
12
|
+
recipients: string[];
|
|
13
|
+
deleted_at: string | null;
|
|
14
|
+
deleted_by: string | null;
|
|
15
|
+
edited_at: string | null;
|
|
16
|
+
edited_by: string | null;
|
|
17
|
+
created_at: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface CommOverwrite {
|
|
2
|
+
id: string;
|
|
3
|
+
group_id: string;
|
|
4
|
+
owner_id: string;
|
|
5
|
+
title: string;
|
|
6
|
+
type: string;
|
|
7
|
+
comments_count: number;
|
|
8
|
+
block_answers: boolean;
|
|
9
|
+
template_id: string | null;
|
|
10
|
+
server_template: string | null;
|
|
11
|
+
server: boolean;
|
|
12
|
+
recipients: string[];
|
|
13
|
+
deleted_at: string | null;
|
|
14
|
+
deleted_by: string | null;
|
|
15
|
+
edited_at: string | null;
|
|
16
|
+
edited_by: string | null;
|
|
17
|
+
created_at: string;
|
|
18
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GroupData } from '
|
|
2
|
-
import { Location } from '
|
|
1
|
+
import { GroupBasicData, GroupData } from '../../../models/Group/types';
|
|
2
|
+
import { Location } from './utils';
|
|
3
3
|
export interface GroupAddress {
|
|
4
4
|
address: string;
|
|
5
5
|
location: Location | null;
|
|
@@ -22,6 +22,9 @@ export interface GroupTemplateData {
|
|
|
22
22
|
export type GroupSocialNetworks = NonNullable<GroupData['socialNetworks']> | null;
|
|
23
23
|
export type GroupTemplates = Record<string, GroupTemplateData>;
|
|
24
24
|
export type GroupVisitedDashboardAt = Record<string, string>;
|
|
25
|
+
export type GroupBasic = Omit<GroupBasicData, 'location'> & {
|
|
26
|
+
location: Location;
|
|
27
|
+
};
|
|
25
28
|
export interface GroupOverwrite {
|
|
26
29
|
addresses: GroupAddress[];
|
|
27
30
|
config: GroupData['config'];
|