@glissandoo/lib 1.114.1 → 1.115.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/functions/auth.d.ts +3 -1
- package/functions/composer.d.ts +13 -0
- package/functions/composerComposition.d.ts +102 -0
- package/functions/composerNotification.d.ts +38 -0
- package/functions/composerPayout.d.ts +20 -0
- package/functions/customer.d.ts +4 -0
- package/functions/event.js +1 -1
- package/functions/eventPlayer.js +1 -1
- package/functions/eventRepertory.d.ts +2 -0
- package/functions/eventRepertory.js +1 -1
- package/functions/groupRepertory.d.ts +110 -0
- package/functions/index.d.ts +30 -0
- package/functions/index.js +31 -1
- package/functions/misc.d.ts +6 -0
- package/functions/regions.js +31 -1
- package/helpers/appScenes.js +1 -1
- package/helpers/auth.d.ts +2 -9
- package/helpers/auth.js +33 -14
- package/helpers/badges.js +1 -1
- package/helpers/catalogBridge.d.ts +121 -0
- package/helpers/catalogBridge.js +95 -0
- package/helpers/collections.js +2 -2
- package/helpers/communicationTemplate/index.d.ts +3 -2
- package/helpers/communicationTemplate/index.js +5 -5
- package/helpers/compositionCategories/genres.d.ts +922 -0
- package/helpers/compositionCategories/genres.js +940 -0
- package/helpers/compositionCategories/index.d.ts +2 -0
- package/helpers/compositionCategories/index.js +18 -0
- package/helpers/compositionCategories/styles.d.ts +181 -0
- package/helpers/compositionCategories/styles.js +197 -0
- package/helpers/compositionSoloistOffstageParts/index.d.ts +34 -0
- package/helpers/compositionSoloistOffstageParts/index.js +117 -0
- package/helpers/currency.d.ts +19 -0
- package/helpers/currency.js +85 -0
- package/helpers/currencyConversion.d.ts +45 -0
- package/helpers/currencyConversion.js +119 -0
- package/helpers/dataStructures/trees/index.d.ts +12 -0
- package/helpers/dataStructures/trees/index.js +71 -0
- package/helpers/dataStructures/trees/types.d.ts +14 -0
- package/helpers/dataStructures/trees/types.js +5 -0
- package/helpers/dlinks.js +1 -1
- package/helpers/errors.d.ts +1 -0
- package/helpers/errors.js +2 -1
- package/helpers/externalUrls.d.ts +12 -0
- package/helpers/externalUrls.js +40 -0
- package/helpers/instruments/index.d.ts +17 -0
- package/helpers/instruments/index.js +5 -1
- package/helpers/instruments/lists.d.ts +3 -3
- package/helpers/instruments/lists.js +5 -5
- package/helpers/musicStyles/index.d.ts +22 -4
- package/helpers/musicStyles/index.js +114 -35
- package/helpers/notifications/index.js +1 -1
- package/helpers/objects.d.ts +5 -1
- package/helpers/objects.js +7 -6
- package/helpers/plans.js +2 -2
- package/helpers/rates.d.ts +1 -1
- package/helpers/slate.d.ts +64 -5
- package/helpers/slate.js +7 -1
- package/helpers/ts-extras/array-includes.js +1 -2
- package/helpers/ts-extras/as-mutable.js +1 -2
- package/helpers/ts-extras/assert-error.js +1 -2
- package/helpers/ts-extras/index.js +1 -1
- package/helpers/ts-extras/is-defined.js +1 -2
- package/helpers/ts-extras/is-empty.js +1 -2
- package/helpers/ts-extras/is-infinite.js +1 -2
- package/helpers/ts-extras/is-present.js +1 -2
- package/helpers/ts-extras/object-entries.d.ts +1 -1
- package/helpers/ts-extras/object-from-entries.d.ts +1 -1
- package/helpers/ts-extras/object-has-own.js +1 -2
- package/helpers/ts-extras/object-keys.d.ts +1 -1
- package/helpers/ts-extras/object-keys.js +0 -1
- package/helpers/ts-extras/set-has.js +1 -2
- package/helpers/types.d.ts +26 -0
- package/helpers/types.js +25 -5
- package/lang/ca.json +325 -91
- package/lang/de.json +325 -91
- package/lang/en.json +325 -91
- package/lang/es.json +325 -91
- package/lang/eu.json +325 -91
- package/lang/fr.json +325 -91
- package/lang/gl.json +325 -91
- package/lang/index.js +3 -2
- package/lang/it.json +325 -91
- package/lang/nl.json +325 -91
- package/lang/pt.json +325 -91
- package/models/Communication/types.d.ts +0 -16
- package/models/Communication/types.js +3 -9
- package/models/CompositionGenre/index.d.ts +9 -0
- package/models/CompositionGenre/index.js +16 -0
- package/models/CompositionStyle/index.d.ts +9 -0
- package/models/CompositionStyle/index.js +16 -0
- package/models/Counters/Group/Analytics/types.js +1 -1
- package/models/Customer/index.d.ts +1 -1
- package/models/Customer/index.js +3 -3
- package/models/Customer/types.js +1 -1
- package/models/Evento/Player/types.js +3 -3
- package/models/Evento/Repertory/types.d.ts +2 -1
- package/models/Evento/index.d.ts +3 -2
- package/models/Evento/index.js +5 -4
- package/models/Evento/types.d.ts +2 -31
- package/models/Evento/types.js +8 -39
- package/models/Federation/index.d.ts +1 -1
- package/models/Federation/index.js +3 -3
- package/models/Group/Analytics/types.js +1 -1
- package/models/Group/Player/types.js +1 -1
- package/models/Group/Repertory/File/Section/index.d.ts +3 -3
- package/models/Group/Repertory/File/Section/index.js +3 -2
- package/models/Group/Repertory/File/Section/types.d.ts +7 -0
- package/models/Group/Repertory/File/Section/types.js +1 -1
- package/models/Group/Repertory/File/index.d.ts +4 -2
- package/models/Group/Repertory/File/index.js +4 -4
- package/models/Group/Repertory/FilePath/index.d.ts +3 -4
- package/models/Group/Repertory/index.d.ts +12 -4
- package/models/Group/Repertory/index.js +9 -0
- package/models/Group/Repertory/types.d.ts +21 -32
- package/models/Group/Repertory/types.js +8 -18
- package/models/Group/index.d.ts +15 -13
- package/models/Group/index.js +16 -15
- package/models/Group/types.d.ts +6 -66
- package/models/Group/types.js +8 -50
- package/models/Instrument/{group.d.ts → fromRecord.d.ts} +4 -5
- package/models/Instrument/{group.js → fromRecord.js} +10 -10
- package/models/Instrument/index.d.ts +2 -0
- package/models/Instrument/index.js +38 -1
- package/models/Inventory/Item/types.js +2 -2
- package/models/Inventory/types.js +1 -1
- package/models/Notification/types.js +2 -2
- package/models/Offer/types.d.ts +0 -12
- package/models/Offer/types.js +2 -15
- package/models/Partnership/Partner/types.js +1 -1
- package/models/Partnership/Payment/types.js +2 -2
- package/models/Partnership/index.d.ts +1 -1
- package/models/Partnership/index.js +3 -3
- package/models/Partnership/types.js +1 -1
- package/models/Repertory/types.d.ts +12 -0
- package/models/Repertory/types.js +2 -2
- package/models/User/Group/index.js +1 -2
- package/models/User/index.d.ts +1 -1
- package/models/User/index.js +3 -3
- package/models/User/types.d.ts +2 -1
- package/models/User/types.js +7 -7
- package/models/WebhookEvent/types.js +1 -1
- package/models/supabase/Comm/index.d.ts +24 -0
- package/models/supabase/Comm/index.js +68 -0
- package/models/supabase/Comm/types.d.ts +6 -0
- package/models/supabase/CommHistory/index.d.ts +22 -0
- package/models/supabase/CommHistory/index.js +37 -0
- package/models/supabase/CommHistory/types.d.ts +11 -0
- package/models/supabase/CommHistory/types.js +9 -0
- package/models/supabase/Composer/Composition/Acquisition/index.d.ts +4 -0
- package/models/supabase/Composer/Composition/Acquisition/index.js +9 -0
- package/models/supabase/Composer/Composition/Acquisition/types.d.ts +36 -0
- package/models/supabase/Composer/Composition/Favorite/index.d.ts +4 -0
- package/models/supabase/Composer/Composition/Favorite/index.js +9 -0
- package/models/supabase/Composer/Composition/Favorite/types.d.ts +6 -0
- package/models/supabase/Composer/Composition/View/index.d.ts +4 -0
- package/models/supabase/Composer/Composition/View/index.js +9 -0
- package/models/supabase/Composer/Composition/View/types.d.ts +6 -0
- package/models/supabase/Composer/Composition/index.d.ts +5284 -0
- package/models/supabase/Composer/Composition/index.js +166 -0
- package/models/supabase/Composer/Composition/types.d.ts +96 -0
- package/models/supabase/Composer/Composition/types.js +32 -0
- package/models/supabase/Composer/Notification/index.d.ts +4 -0
- package/models/supabase/Composer/Notification/index.js +9 -0
- package/models/supabase/Composer/Notification/types.d.ts +39 -0
- package/models/supabase/Composer/Notification/types.js +27 -0
- package/models/supabase/Composer/Payout/index.d.ts +4 -0
- package/models/supabase/Composer/Payout/index.js +9 -0
- package/models/supabase/Composer/Payout/status.d.ts +1 -0
- package/models/supabase/Composer/Payout/types.d.ts +5 -0
- package/models/supabase/Composer/PerformanceAttendance/types.d.ts +4 -0
- package/models/supabase/Composer/index.d.ts +78 -0
- package/models/supabase/Composer/index.js +105 -0
- package/models/supabase/Composer/types.d.ts +6 -0
- package/models/supabase/Composer/types.js +2 -0
- package/models/supabase/EventHistory/index.d.ts +22 -0
- package/models/supabase/EventHistory/index.js +37 -0
- package/models/supabase/EventHistory/types.d.ts +36 -0
- package/models/supabase/EventHistory/types.js +34 -0
- package/models/supabase/GroupHistory/index.d.ts +21 -0
- package/models/supabase/GroupHistory/index.js +34 -0
- package/models/supabase/GroupHistory/types.d.ts +27 -0
- package/models/supabase/GroupHistory/types.js +25 -0
- package/models/supabase/Model/index.d.ts +10 -0
- package/models/supabase/Model/index.js +21 -0
- package/models/supabase/OfferHistory/index.d.ts +22 -0
- package/models/supabase/OfferHistory/index.js +37 -0
- package/models/supabase/OfferHistory/types.d.ts +18 -0
- package/models/supabase/OfferHistory/types.js +16 -0
- package/models/supabase/Repertoire/index.d.ts +16 -0
- package/models/supabase/Repertoire/index.js +43 -0
- package/models/supabase/Repertoire/types.d.ts +6 -0
- package/models/supabase/Repertoire/types.js +2 -0
- package/models/supabase/RepertoireHistory/index.d.ts +22 -0
- package/models/supabase/RepertoireHistory/index.js +37 -0
- package/models/supabase/RepertoireHistory/types.d.ts +21 -0
- package/models/supabase/RepertoireHistory/types.js +19 -0
- package/models/supabase/User/Group/index.d.ts +11 -0
- package/models/supabase/User/Group/index.js +30 -0
- package/models/supabase/User/Group/types.d.ts +6 -0
- package/models/supabase/User/Group/types.js +2 -0
- package/models/supabase/User/index.d.ts +13 -0
- package/models/supabase/User/index.js +37 -0
- package/models/supabase/User/types.d.ts +6 -0
- package/models/supabase/User/types.js +2 -0
- package/package.json +28 -20
- package/types/firestore.d.ts +0 -1
- package/types/firestore.js +1 -1
- package/types/supabase/catalog.d.ts +46 -0
- package/types/supabase/catalog.js +2 -0
- package/types/supabase/catalog.ts +67 -0
- package/types/supabase/composerMetrics.d.ts +27 -0
- package/types/supabase/composerMetrics.js +2 -0
- package/types/supabase/composerMetrics.ts +26 -0
- package/types/supabase/generated.d.ts +3158 -451
- package/types/supabase/generated.js +13 -0
- package/types/supabase/generated.ts +3116 -496
- package/types/supabase/index.d.ts +155 -19
- package/types/supabase/index.js +15 -0
- package/types/supabase/index.ts +288 -21
- package/types/supabase/overwrites/index.d.ts +1 -1
- package/types/supabase/overwrites/index.ts +1 -1
- package/types/supabase/overwrites/tables/comm/model.d.ts +4 -0
- package/types/supabase/overwrites/tables/comm/model.js +2 -0
- package/types/supabase/overwrites/tables/comm/model.ts +4 -0
- package/types/supabase/overwrites/tables/comm_history/index.d.ts +7 -0
- package/types/supabase/overwrites/tables/comm_history/index.js +2 -0
- package/types/supabase/overwrites/tables/comm_history/index.ts +9 -0
- package/types/supabase/overwrites/tables/comm_history/model.d.ts +10 -0
- package/types/supabase/overwrites/tables/comm_history/model.js +2 -0
- package/types/supabase/overwrites/tables/comm_history/model.ts +13 -0
- package/types/supabase/overwrites/tables/common/index.js +2 -0
- package/types/supabase/overwrites/tables/composer/index.d.ts +9 -0
- package/types/supabase/overwrites/tables/composer/index.js +2 -0
- package/types/supabase/overwrites/tables/composer/index.ts +10 -0
- package/types/supabase/overwrites/tables/composer/model.d.ts +12 -0
- package/types/supabase/overwrites/tables/composer/model.js +2 -0
- package/types/supabase/overwrites/tables/composer/model.ts +15 -0
- package/types/supabase/overwrites/tables/composer/publicModel.d.ts +11 -0
- package/types/supabase/overwrites/tables/composer/publicModel.js +2 -0
- package/types/supabase/overwrites/tables/composer/publicModel.ts +15 -0
- package/types/supabase/overwrites/tables/composerComposition/index.d.ts +18 -0
- package/types/supabase/overwrites/tables/composerComposition/index.js +2 -0
- package/types/supabase/overwrites/tables/composerComposition/index.ts +24 -0
- package/types/supabase/overwrites/tables/composerComposition/model.d.ts +9 -0
- package/types/supabase/overwrites/tables/composerComposition/model.js +2 -0
- package/types/supabase/overwrites/tables/composerComposition/model.ts +26 -0
- package/types/supabase/overwrites/tables/composerComposition/publicModel.d.ts +9 -0
- package/types/supabase/overwrites/tables/composerComposition/publicModel.js +2 -0
- package/types/supabase/overwrites/tables/composerComposition/publicModel.ts +37 -0
- package/types/supabase/overwrites/tables/composerNotification/index.d.ts +19 -0
- package/types/supabase/overwrites/tables/composerNotification/index.js +2 -0
- package/types/supabase/overwrites/tables/composerNotification/index.ts +25 -0
- package/types/supabase/overwrites/tables/composerOwnedTransaction/model.d.ts +2 -0
- package/types/supabase/overwrites/tables/composerOwnedTransaction/model.js +2 -0
- package/types/supabase/overwrites/tables/composerOwnedTransaction/model.ts +3 -0
- package/types/supabase/overwrites/tables/composerPayout/index.d.ts +7 -0
- package/types/supabase/overwrites/tables/composerPayout/index.js +2 -0
- package/types/supabase/overwrites/tables/composerPayout/index.ts +8 -0
- package/types/supabase/overwrites/tables/compositionAcquisition/index.d.ts +4 -0
- package/types/supabase/overwrites/tables/compositionAcquisition/index.js +2 -0
- package/types/supabase/overwrites/tables/compositionAcquisition/index.ts +8 -0
- package/types/supabase/overwrites/tables/compositionAcquisition/model.d.ts +6 -0
- package/types/supabase/overwrites/tables/compositionAcquisition/model.js +2 -0
- package/types/supabase/overwrites/tables/compositionAcquisition/model.ts +11 -0
- package/types/supabase/overwrites/tables/compositionFavorite/index.d.ts +1 -0
- package/types/supabase/overwrites/tables/compositionFavorite/index.js +2 -0
- package/types/supabase/overwrites/tables/compositionFavorite/index.ts +2 -0
- package/types/supabase/overwrites/tables/compositionFavorite/model.d.ts +1 -0
- package/types/supabase/overwrites/tables/compositionFavorite/model.js +2 -0
- package/types/supabase/overwrites/tables/compositionFavorite/model.ts +1 -0
- package/types/supabase/overwrites/tables/compositionView/index.d.ts +1 -0
- package/types/supabase/overwrites/tables/compositionView/index.js +2 -0
- package/types/supabase/overwrites/tables/compositionView/index.ts +2 -0
- package/types/supabase/overwrites/tables/compositionView/model.d.ts +1 -0
- package/types/supabase/overwrites/tables/compositionView/model.js +2 -0
- package/types/supabase/overwrites/tables/compositionView/model.ts +1 -0
- package/types/supabase/overwrites/tables/currencyExchangeRate/index.d.ts +16 -0
- package/types/supabase/overwrites/tables/currencyExchangeRate/index.js +2 -0
- package/types/supabase/overwrites/tables/currencyExchangeRate/index.ts +18 -0
- package/types/supabase/overwrites/{event.d.ts → tables/event/index.d.ts} +1 -1
- package/types/supabase/overwrites/tables/event/index.js +2 -0
- package/types/supabase/overwrites/{event.ts → tables/event/index.ts} +1 -1
- package/types/supabase/overwrites/tables/event_history/index.d.ts +7 -0
- package/types/supabase/overwrites/tables/event_history/index.js +2 -0
- package/types/supabase/overwrites/tables/event_history/index.ts +9 -0
- package/types/supabase/overwrites/tables/event_history/model.d.ts +10 -0
- package/types/supabase/overwrites/tables/event_history/model.js +2 -0
- package/types/supabase/overwrites/tables/event_history/model.ts +13 -0
- package/types/supabase/overwrites/{group.d.ts → tables/group/index.d.ts} +2 -5
- package/types/supabase/overwrites/tables/group/index.js +2 -0
- package/types/supabase/overwrites/{group.ts → tables/group/index.ts} +2 -6
- package/types/supabase/overwrites/tables/group_history/index.d.ts +7 -0
- package/types/supabase/overwrites/tables/group_history/index.js +2 -0
- package/types/supabase/overwrites/tables/group_history/index.ts +9 -0
- package/types/supabase/overwrites/tables/group_history/model.d.ts +10 -0
- package/types/supabase/overwrites/tables/group_history/model.js +2 -0
- package/types/supabase/overwrites/tables/group_history/model.ts +13 -0
- package/types/supabase/overwrites/{offer.d.ts → tables/offer/index.d.ts} +6 -2
- package/types/supabase/overwrites/tables/offer/index.js +2 -0
- package/types/supabase/overwrites/{offer.ts → tables/offer/index.ts} +7 -2
- package/types/supabase/overwrites/tables/offer_history/index.d.ts +7 -0
- package/types/supabase/overwrites/tables/offer_history/index.js +2 -0
- package/types/supabase/overwrites/tables/offer_history/index.ts +9 -0
- package/types/supabase/overwrites/tables/offer_history/model.d.ts +10 -0
- package/types/supabase/overwrites/tables/offer_history/model.js +2 -0
- package/types/supabase/overwrites/tables/offer_history/model.ts +13 -0
- package/types/supabase/overwrites/tables/repertoire/model.d.ts +7 -0
- package/types/supabase/overwrites/tables/repertoire/model.js +2 -0
- package/types/supabase/overwrites/tables/repertoire/model.ts +7 -0
- package/types/supabase/overwrites/tables/repertoire_history/index.d.ts +7 -0
- package/types/supabase/overwrites/tables/repertoire_history/index.js +2 -0
- package/types/supabase/overwrites/tables/repertoire_history/index.ts +9 -0
- package/types/supabase/overwrites/tables/repertoire_history/model.d.ts +10 -0
- package/types/supabase/overwrites/tables/repertoire_history/model.js +2 -0
- package/types/supabase/overwrites/tables/repertoire_history/model.ts +13 -0
- package/types/supabase/overwrites/tables/user/index.d.ts +11 -0
- package/types/supabase/overwrites/tables/user/index.js +2 -0
- package/types/supabase/overwrites/tables/user/index.ts +13 -0
- package/helpers/glissandooAdmin.d.ts +0 -3
- package/helpers/glissandooAdmin.js +0 -6
- package/types/supabase/overwrites/comm.d.ts +0 -18
- package/types/supabase/overwrites/comm.ts +0 -18
- package/types/supabase/overwrites/comm_history.d.ts +0 -10
- package/types/supabase/overwrites/comm_history.ts +0 -10
- package/types/supabase/overwrites/event_history.d.ts +0 -10
- package/types/supabase/overwrites/event_history.ts +0 -10
- package/types/supabase/overwrites/group_history.d.ts +0 -9
- package/types/supabase/overwrites/group_history.ts +0 -9
- package/types/supabase/overwrites/offer_history.d.ts +0 -10
- package/types/supabase/overwrites/offer_history.ts +0 -10
- package/types/supabase/overwrites/repertoire.d.ts +0 -12
- package/types/supabase/overwrites/repertoire.ts +0 -12
- package/types/supabase/overwrites/repertoire_history.d.ts +0 -10
- package/types/supabase/overwrites/repertoire_history.ts +0 -10
- /package/{types/supabase/overwrites/comm.js → functions/composer.js} +0 -0
- /package/{types/supabase/overwrites/comm_history.js → functions/composerComposition.js} +0 -0
- /package/{types/supabase/overwrites/event.js → functions/composerNotification.js} +0 -0
- /package/{types/supabase/overwrites/event_history.js → functions/composerPayout.js} +0 -0
- /package/{types/supabase/overwrites/group.js → models/supabase/Comm/types.js} +0 -0
- /package/{types/supabase/overwrites/group_history.js → models/supabase/Composer/Composition/Acquisition/types.js} +0 -0
- /package/{types/supabase/overwrites/offer.js → models/supabase/Composer/Composition/Favorite/types.js} +0 -0
- /package/{types/supabase/overwrites/offer_history.js → models/supabase/Composer/Composition/View/types.js} +0 -0
- /package/{types/supabase/overwrites/repertoire.js → models/supabase/Composer/Payout/status.js} +0 -0
- /package/{types/supabase/overwrites/repertoire_history.js → models/supabase/Composer/Payout/types.js} +0 -0
- /package/{types/supabase/overwrites/utils.js → models/supabase/Composer/PerformanceAttendance/types.js} +0 -0
- /package/types/supabase/overwrites/{utils.d.ts → tables/common/index.d.ts} +0 -0
- /package/types/supabase/overwrites/{utils.ts → tables/common/index.ts} +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InstrumentsRecord } from '../../../../../helpers/instruments';
|
|
2
|
+
import { Descendant } from '../../../../../helpers/slate';
|
|
3
|
+
import { SocialNetworksRecord, RepertoireTagsRecord } from '../../../../../helpers/types';
|
|
4
|
+
|
|
5
|
+
export interface ComposerOverwrite {
|
|
6
|
+
description: Descendant[] | null;
|
|
7
|
+
instruments: InstrumentsRecord;
|
|
8
|
+
repertoireTags: RepertoireTagsRecord;
|
|
9
|
+
socialNetworks: SocialNetworksRecord;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { InstrumentsRecord } from '../../../../../helpers/instruments';
|
|
2
|
+
import { Descendant } from '../../../../../helpers/slate';
|
|
3
|
+
import { SocialNetworksRecord, RepertoireTagsRecord } from '../../../../../helpers/types';
|
|
4
|
+
import { Database } from '../../../generated';
|
|
5
|
+
type ComposerRow = Omit<Database['public']['Tables']['composer']['Row'], 'description' | 'instruments' | 'repertoireTags' | 'socialNetworks'>;
|
|
6
|
+
export interface ComposerModelOverwrite extends ComposerRow {
|
|
7
|
+
description: Descendant[] | null;
|
|
8
|
+
instruments: InstrumentsRecord;
|
|
9
|
+
repertoireTags: RepertoireTagsRecord;
|
|
10
|
+
socialNetworks: SocialNetworksRecord;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { InstrumentsRecord } from '../../../../../helpers/instruments';
|
|
2
|
+
import { Descendant } from '../../../../../helpers/slate';
|
|
3
|
+
import { SocialNetworksRecord, RepertoireTagsRecord } from '../../../../../helpers/types';
|
|
4
|
+
import { Database } from '../../../generated';
|
|
5
|
+
|
|
6
|
+
type ComposerRow = Omit<
|
|
7
|
+
Database['public']['Tables']['composer']['Row'],
|
|
8
|
+
'description' | 'instruments' | 'repertoireTags' | 'socialNetworks'
|
|
9
|
+
>;
|
|
10
|
+
export interface ComposerModelOverwrite extends ComposerRow {
|
|
11
|
+
description: Descendant[] | null;
|
|
12
|
+
instruments: InstrumentsRecord;
|
|
13
|
+
repertoireTags: RepertoireTagsRecord;
|
|
14
|
+
socialNetworks: SocialNetworksRecord;
|
|
15
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { InstrumentsRecord } from '../../../../../helpers/instruments';
|
|
2
|
+
import { Descendant } from '../../../../../helpers/slate';
|
|
3
|
+
import { SocialNetworksRecord } from '../../../../../helpers/types';
|
|
4
|
+
import { Database } from '../../../generated';
|
|
5
|
+
type ComposerPublicModelRow = Omit<Database['public']['Views']['composerPublicModel']['Row'], 'description' | 'instruments' | 'socialNetworks'>;
|
|
6
|
+
export interface ComposerPublicModelOverwrite extends ComposerPublicModelRow {
|
|
7
|
+
description: Descendant[] | null;
|
|
8
|
+
instruments: InstrumentsRecord;
|
|
9
|
+
socialNetworks: SocialNetworksRecord;
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { InstrumentsRecord } from '../../../../../helpers/instruments';
|
|
2
|
+
import { Descendant } from '../../../../../helpers/slate';
|
|
3
|
+
import { SocialNetworksRecord } from '../../../../../helpers/types';
|
|
4
|
+
import { Database } from '../../../generated';
|
|
5
|
+
|
|
6
|
+
type ComposerPublicModelRow = Omit<
|
|
7
|
+
Database['public']['Views']['composerPublicModel']['Row'],
|
|
8
|
+
'description' | 'instruments' | 'socialNetworks'
|
|
9
|
+
>;
|
|
10
|
+
|
|
11
|
+
export interface ComposerPublicModelOverwrite extends ComposerPublicModelRow {
|
|
12
|
+
description: Descendant[] | null;
|
|
13
|
+
instruments: InstrumentsRecord;
|
|
14
|
+
socialNetworks: SocialNetworksRecord;
|
|
15
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CompositionGenreId } from '../../../../../helpers/compositionCategories/genres';
|
|
2
|
+
import { CompositionStyleId } from '../../../../../helpers/compositionCategories/styles';
|
|
3
|
+
import { MusicStyleId } from '../../../../../helpers/musicStyles';
|
|
4
|
+
import { Descendant } from '../../../../../helpers/slate';
|
|
5
|
+
import { GroupRepertoryData } from '../../../../../models/Group/Repertory/types';
|
|
6
|
+
import { ComposerCompositionCover, ComposerCompositionSample, ComposerCompositionProducts, ComposerCompositionHighlightedPart } from '../../../../../models/supabase/Composer/Composition/types';
|
|
7
|
+
export interface ComposerCompositionOverwrite {
|
|
8
|
+
description: Descendant[];
|
|
9
|
+
cover: ComposerCompositionCover | null;
|
|
10
|
+
samples: Record<string, ComposerCompositionSample>;
|
|
11
|
+
files: GroupRepertoryData['files'];
|
|
12
|
+
filesPath: GroupRepertoryData['filesPath'];
|
|
13
|
+
products: ComposerCompositionProducts;
|
|
14
|
+
highlightedParts: ComposerCompositionHighlightedPart[];
|
|
15
|
+
instrumentationIds: MusicStyleId[];
|
|
16
|
+
genresIds: CompositionGenreId[];
|
|
17
|
+
stylesIds: CompositionStyleId[];
|
|
18
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CompositionGenreId } from '../../../../../helpers/compositionCategories/genres';
|
|
2
|
+
import { CompositionStyleId } from '../../../../../helpers/compositionCategories/styles';
|
|
3
|
+
import { MusicStyleId } from '../../../../../helpers/musicStyles';
|
|
4
|
+
import { Descendant } from '../../../../../helpers/slate';
|
|
5
|
+
import { GroupRepertoryData } from '../../../../../models/Group/Repertory/types';
|
|
6
|
+
import {
|
|
7
|
+
ComposerCompositionCover,
|
|
8
|
+
ComposerCompositionSample,
|
|
9
|
+
ComposerCompositionProducts,
|
|
10
|
+
ComposerCompositionHighlightedPart,
|
|
11
|
+
} from '../../../../../models/supabase/Composer/Composition/types';
|
|
12
|
+
|
|
13
|
+
export interface ComposerCompositionOverwrite {
|
|
14
|
+
description: Descendant[];
|
|
15
|
+
cover: ComposerCompositionCover | null;
|
|
16
|
+
samples: Record<string, ComposerCompositionSample>;
|
|
17
|
+
files: GroupRepertoryData['files'];
|
|
18
|
+
filesPath: GroupRepertoryData['filesPath'];
|
|
19
|
+
products: ComposerCompositionProducts;
|
|
20
|
+
highlightedParts: ComposerCompositionHighlightedPart[];
|
|
21
|
+
instrumentationIds: MusicStyleId[];
|
|
22
|
+
genresIds: CompositionGenreId[];
|
|
23
|
+
stylesIds: CompositionStyleId[];
|
|
24
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Database } from '../../../generated';
|
|
2
|
+
import { ComposerCompositionOverwrite } from '.';
|
|
3
|
+
type ComposerCompositionRowCommonColumns = Omit<Database['public']['Tables']['composerComposition']['Row'], 'description' | 'cover' | 'media' | 'samples' | 'files' | 'filesPath' | 'products' | 'highlightedParts' | 'instrumentationIds' | 'genresIds' | 'stylesIds'>;
|
|
4
|
+
type ComposerCompositionModelRow = Database['public']['Views']['composerCompositionModel']['Row'];
|
|
5
|
+
export interface ComposerCompositionModelOverwrite extends ComposerCompositionRowCommonColumns, ComposerCompositionOverwrite {
|
|
6
|
+
arrangerName: ComposerCompositionModelRow['arrangerName'];
|
|
7
|
+
composerName: ComposerCompositionModelRow['composerName'];
|
|
8
|
+
}
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Database } from '../../../generated';
|
|
2
|
+
import { ComposerCompositionOverwrite } from '.';
|
|
3
|
+
|
|
4
|
+
type ComposerCompositionRowCommonColumns = Omit<
|
|
5
|
+
Database['public']['Tables']['composerComposition']['Row'],
|
|
6
|
+
| 'description'
|
|
7
|
+
| 'cover'
|
|
8
|
+
| 'media'
|
|
9
|
+
| 'samples'
|
|
10
|
+
| 'files'
|
|
11
|
+
| 'filesPath'
|
|
12
|
+
| 'products'
|
|
13
|
+
| 'highlightedParts'
|
|
14
|
+
| 'instrumentationIds'
|
|
15
|
+
| 'genresIds'
|
|
16
|
+
| 'stylesIds'
|
|
17
|
+
>;
|
|
18
|
+
|
|
19
|
+
type ComposerCompositionModelRow = Database['public']['Views']['composerCompositionModel']['Row'];
|
|
20
|
+
|
|
21
|
+
export interface ComposerCompositionModelOverwrite
|
|
22
|
+
extends ComposerCompositionRowCommonColumns,
|
|
23
|
+
ComposerCompositionOverwrite {
|
|
24
|
+
arrangerName: ComposerCompositionModelRow['arrangerName'];
|
|
25
|
+
composerName: ComposerCompositionModelRow['composerName'];
|
|
26
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { GroupRepertoireFile } from '../../../../../models/Group/Repertory/types';
|
|
2
|
+
import { Database } from '../../../generated';
|
|
3
|
+
import { ComposerCompositionOverwrite } from '.';
|
|
4
|
+
type ComposerCompositionPublicModelRow = Omit<Database['public']['Views']['composerCompositionPublicModel']['Row'], 'description' | 'cover' | 'samples' | 'files' | 'products' | 'highlightedParts' | 'instrumentationIds' | 'genresIds' | 'stylesIds'>;
|
|
5
|
+
type PublicCompositionFile = Pick<GroupRepertoireFile, 'sections' | 'pageCount' | 'filetype' | 'isEncrypted'>;
|
|
6
|
+
export interface ComposerCompositionPublicModelOverwrite extends ComposerCompositionPublicModelRow, Pick<ComposerCompositionOverwrite, 'description' | 'cover' | 'samples' | 'products' | 'highlightedParts' | 'instrumentationIds' | 'genresIds' | 'stylesIds'> {
|
|
7
|
+
files: Record<string, PublicCompositionFile>;
|
|
8
|
+
}
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { GroupRepertoireFile } from '../../../../../models/Group/Repertory/types';
|
|
2
|
+
import { Database } from '../../../generated';
|
|
3
|
+
import { ComposerCompositionOverwrite } from '.';
|
|
4
|
+
|
|
5
|
+
type ComposerCompositionPublicModelRow = Omit<
|
|
6
|
+
Database['public']['Views']['composerCompositionPublicModel']['Row'],
|
|
7
|
+
| 'description'
|
|
8
|
+
| 'cover'
|
|
9
|
+
| 'samples'
|
|
10
|
+
| 'files'
|
|
11
|
+
| 'products'
|
|
12
|
+
| 'highlightedParts'
|
|
13
|
+
| 'instrumentationIds'
|
|
14
|
+
| 'genresIds'
|
|
15
|
+
| 'stylesIds'
|
|
16
|
+
>;
|
|
17
|
+
|
|
18
|
+
type PublicCompositionFile = Pick<
|
|
19
|
+
GroupRepertoireFile,
|
|
20
|
+
'sections' | 'pageCount' | 'filetype' | 'isEncrypted'
|
|
21
|
+
>;
|
|
22
|
+
|
|
23
|
+
export interface ComposerCompositionPublicModelOverwrite
|
|
24
|
+
extends ComposerCompositionPublicModelRow,
|
|
25
|
+
Pick<
|
|
26
|
+
ComposerCompositionOverwrite,
|
|
27
|
+
| 'description'
|
|
28
|
+
| 'cover'
|
|
29
|
+
| 'samples'
|
|
30
|
+
| 'products'
|
|
31
|
+
| 'highlightedParts'
|
|
32
|
+
| 'instrumentationIds'
|
|
33
|
+
| 'genresIds'
|
|
34
|
+
| 'stylesIds'
|
|
35
|
+
> {
|
|
36
|
+
files: Record<string, PublicCompositionFile>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ComposerNotificationEmailStatus, ComposerNotificationMetadata, ComposerNotificationParams, ComposerNotificationType } from '../../../../../models/supabase/Composer/Notification/types';
|
|
2
|
+
export interface ComposerNotificationOverwrite {
|
|
3
|
+
id: string;
|
|
4
|
+
composerId: string;
|
|
5
|
+
userId: string;
|
|
6
|
+
type: ComposerNotificationType;
|
|
7
|
+
titleKey: string;
|
|
8
|
+
bodyKey: string;
|
|
9
|
+
params: ComposerNotificationParams;
|
|
10
|
+
metadata: ComposerNotificationMetadata;
|
|
11
|
+
actionUrl: string | null;
|
|
12
|
+
readAt: string | null;
|
|
13
|
+
archivedAt: string | null;
|
|
14
|
+
emailStatus: ComposerNotificationEmailStatus;
|
|
15
|
+
emailSentAt: string | null;
|
|
16
|
+
emailError: string | null;
|
|
17
|
+
dedupeKey: string | null;
|
|
18
|
+
createdAt: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ComposerNotificationEmailStatus,
|
|
3
|
+
ComposerNotificationMetadata,
|
|
4
|
+
ComposerNotificationParams,
|
|
5
|
+
ComposerNotificationType,
|
|
6
|
+
} from '../../../../../models/supabase/Composer/Notification/types';
|
|
7
|
+
|
|
8
|
+
export interface ComposerNotificationOverwrite {
|
|
9
|
+
id: string;
|
|
10
|
+
composerId: string;
|
|
11
|
+
userId: string;
|
|
12
|
+
type: ComposerNotificationType;
|
|
13
|
+
titleKey: string;
|
|
14
|
+
bodyKey: string;
|
|
15
|
+
params: ComposerNotificationParams;
|
|
16
|
+
metadata: ComposerNotificationMetadata;
|
|
17
|
+
actionUrl: string | null;
|
|
18
|
+
readAt: string | null;
|
|
19
|
+
archivedAt: string | null;
|
|
20
|
+
emailStatus: ComposerNotificationEmailStatus;
|
|
21
|
+
emailSentAt: string | null;
|
|
22
|
+
emailError: string | null;
|
|
23
|
+
dedupeKey: string | null;
|
|
24
|
+
createdAt: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Database } from '../../../generated';
|
|
2
|
+
import { ComposerPayoutStatus } from '../../../../../models/supabase/Composer/Payout/status';
|
|
3
|
+
type ComposerPayoutRow = Database['public']['Tables']['composerPayout']['Row'];
|
|
4
|
+
export interface ComposerPayoutOverwrite extends Omit<ComposerPayoutRow, 'status'> {
|
|
5
|
+
status: ComposerPayoutStatus;
|
|
6
|
+
}
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Database } from '../../../generated';
|
|
2
|
+
import { ComposerPayoutStatus } from '../../../../../models/supabase/Composer/Payout/status';
|
|
3
|
+
|
|
4
|
+
type ComposerPayoutRow = Database['public']['Tables']['composerPayout']['Row'];
|
|
5
|
+
|
|
6
|
+
export interface ComposerPayoutOverwrite extends Omit<ComposerPayoutRow, 'status'> {
|
|
7
|
+
status: ComposerPayoutStatus;
|
|
8
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { AcquiredProductsMap, CompositionAcquisitionCurrencyFields } from '../../../../../models/supabase/Composer/Composition/Acquisition/types';
|
|
2
|
+
export interface CompositionAcquisitionOverwrite extends CompositionAcquisitionCurrencyFields {
|
|
3
|
+
acquiredProducts: AcquiredProductsMap;
|
|
4
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AcquiredProductsMap,
|
|
3
|
+
CompositionAcquisitionCurrencyFields,
|
|
4
|
+
} from '../../../../../models/supabase/Composer/Composition/Acquisition/types';
|
|
5
|
+
|
|
6
|
+
export interface CompositionAcquisitionOverwrite extends CompositionAcquisitionCurrencyFields {
|
|
7
|
+
acquiredProducts: AcquiredProductsMap;
|
|
8
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CompositionAcquisitionOverwrite } from '.';
|
|
2
|
+
import { ComposerCompositionCover, ComposerCompositionProducts } from '../../../../../models/supabase/Composer/Composition/types';
|
|
3
|
+
export interface CompositionAcquisitionModelOverwrite extends CompositionAcquisitionOverwrite {
|
|
4
|
+
compositionCover: ComposerCompositionCover | null;
|
|
5
|
+
compositionProducts: ComposerCompositionProducts | null;
|
|
6
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CompositionAcquisitionOverwrite } from '.';
|
|
2
|
+
import {
|
|
3
|
+
ComposerCompositionCover,
|
|
4
|
+
ComposerCompositionProducts,
|
|
5
|
+
} from '../../../../../models/supabase/Composer/Composition/types';
|
|
6
|
+
|
|
7
|
+
// Model views add joined composition fields from composerComposition.
|
|
8
|
+
export interface CompositionAcquisitionModelOverwrite extends CompositionAcquisitionOverwrite {
|
|
9
|
+
compositionCover: ComposerCompositionCover | null;
|
|
10
|
+
compositionProducts: ComposerCompositionProducts | null;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type CompositionFavoriteOverwrite = Record<never, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type CompositionFavoriteModelOverwrite = Record<never, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type CompositionFavoriteModelOverwrite = Record<never, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type CompositionViewOverwrite = Record<never, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type CompositionViewModelOverwrite = Record<never, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type CompositionViewModelOverwrite = Record<never, never>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface CurrencyExchangeRateOverwrite {
|
|
2
|
+
id: string;
|
|
3
|
+
baseCurrency: string;
|
|
4
|
+
targetCurrency: string;
|
|
5
|
+
rate: number;
|
|
6
|
+
rateDate: string;
|
|
7
|
+
provider: string;
|
|
8
|
+
fetchedAt: string;
|
|
9
|
+
created_at: string;
|
|
10
|
+
}
|
|
11
|
+
export interface CurrencyExchangeRateTable {
|
|
12
|
+
Row: CurrencyExchangeRateOverwrite;
|
|
13
|
+
Insert: Omit<CurrencyExchangeRateOverwrite, 'id' | 'created_at' | 'fetchedAt'> & Partial<Pick<CurrencyExchangeRateOverwrite, 'id' | 'created_at' | 'fetchedAt'>>;
|
|
14
|
+
Update: Partial<CurrencyExchangeRateOverwrite>;
|
|
15
|
+
Relationships: [];
|
|
16
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface CurrencyExchangeRateOverwrite {
|
|
2
|
+
id: string;
|
|
3
|
+
baseCurrency: string;
|
|
4
|
+
targetCurrency: string;
|
|
5
|
+
rate: number;
|
|
6
|
+
rateDate: string;
|
|
7
|
+
provider: string;
|
|
8
|
+
fetchedAt: string;
|
|
9
|
+
created_at: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface CurrencyExchangeRateTable {
|
|
13
|
+
Row: CurrencyExchangeRateOverwrite;
|
|
14
|
+
Insert: Omit<CurrencyExchangeRateOverwrite, 'id' | 'created_at' | 'fetchedAt'> &
|
|
15
|
+
Partial<Pick<CurrencyExchangeRateOverwrite, 'id' | 'created_at' | 'fetchedAt'>>;
|
|
16
|
+
Update: Partial<CurrencyExchangeRateOverwrite>;
|
|
17
|
+
Relationships: [];
|
|
18
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EventHistoryAction } from '../../../../../models/supabase/EventHistory/types';
|
|
2
|
+
export type EventHistoryValue = Record<string, unknown>;
|
|
3
|
+
export interface EventHistoryOverwrite {
|
|
4
|
+
action: EventHistoryAction;
|
|
5
|
+
value: EventHistoryValue | null;
|
|
6
|
+
prev_value: EventHistoryValue | null;
|
|
7
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EventHistoryAction } from '../../../../../models/supabase/EventHistory/types';
|
|
2
|
+
|
|
3
|
+
export type EventHistoryValue = Record<string, unknown>;
|
|
4
|
+
|
|
5
|
+
export interface EventHistoryOverwrite {
|
|
6
|
+
action: EventHistoryAction;
|
|
7
|
+
value: EventHistoryValue | null;
|
|
8
|
+
prev_value: EventHistoryValue | null;
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EventHistoryValue } from '.';
|
|
2
|
+
import { EventHistoryAction } from '../../../../../models/supabase/EventHistory/types';
|
|
3
|
+
import { Database } from '../../../generated';
|
|
4
|
+
type EventHistoryRow = Omit<Database['public']['Tables']['event_history']['Row'], 'value' | 'prev_value'>;
|
|
5
|
+
export interface EventHistoryModelOverwrite extends EventHistoryRow {
|
|
6
|
+
action: EventHistoryAction;
|
|
7
|
+
value: EventHistoryValue | null;
|
|
8
|
+
prev_value: EventHistoryValue | null;
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EventHistoryValue } from '.';
|
|
2
|
+
import { EventHistoryAction } from '../../../../../models/supabase/EventHistory/types';
|
|
3
|
+
import { Database } from '../../../generated';
|
|
4
|
+
|
|
5
|
+
type EventHistoryRow = Omit<
|
|
6
|
+
Database['public']['Tables']['event_history']['Row'],
|
|
7
|
+
'value' | 'prev_value'
|
|
8
|
+
>;
|
|
9
|
+
export interface EventHistoryModelOverwrite extends EventHistoryRow {
|
|
10
|
+
action: EventHistoryAction;
|
|
11
|
+
value: EventHistoryValue | null;
|
|
12
|
+
prev_value: EventHistoryValue | null;
|
|
13
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Location } from '
|
|
1
|
+
import { GroupData } from '../../../../../models/Group/types';
|
|
2
|
+
import { Location } from '../common';
|
|
3
3
|
export interface GroupAddress {
|
|
4
4
|
address: string;
|
|
5
5
|
location: Location | null;
|
|
@@ -22,9 +22,6 @@ 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
|
-
};
|
|
28
25
|
export interface GroupOverwrite {
|
|
29
26
|
addresses: GroupAddress[];
|
|
30
27
|
config: GroupData['config'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Location } from '
|
|
1
|
+
import { GroupData } from '../../../../../models/Group/types';
|
|
2
|
+
import { Location } from '../common';
|
|
3
3
|
|
|
4
4
|
export interface GroupAddress {
|
|
5
5
|
address: string;
|
|
@@ -29,10 +29,6 @@ export type GroupTemplates = Record<string, GroupTemplateData>;
|
|
|
29
29
|
|
|
30
30
|
export type GroupVisitedDashboardAt = Record<string, string>;
|
|
31
31
|
|
|
32
|
-
export type GroupBasic = Omit<GroupBasicData, 'location'> & {
|
|
33
|
-
location: Location;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
32
|
export interface GroupOverwrite {
|
|
37
33
|
addresses: GroupAddress[];
|
|
38
34
|
config: GroupData['config'];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GroupHistoryAction } from '../../../../../models/supabase/GroupHistory/types';
|
|
2
|
+
export type GroupHistoryValue = Record<string, unknown>;
|
|
3
|
+
export interface GroupHistoryOverwrite {
|
|
4
|
+
action: GroupHistoryAction;
|
|
5
|
+
value: GroupHistoryValue | null;
|
|
6
|
+
prev_value: GroupHistoryValue | null;
|
|
7
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { GroupHistoryAction } from '../../../../../models/supabase/GroupHistory/types';
|
|
2
|
+
|
|
3
|
+
export type GroupHistoryValue = Record<string, unknown>;
|
|
4
|
+
|
|
5
|
+
export interface GroupHistoryOverwrite {
|
|
6
|
+
action: GroupHistoryAction;
|
|
7
|
+
value: GroupHistoryValue | null;
|
|
8
|
+
prev_value: GroupHistoryValue | null;
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GroupHistoryValue } from '.';
|
|
2
|
+
import { GroupHistoryAction } from '../../../../../models/supabase/GroupHistory/types';
|
|
3
|
+
import { Database } from '../../../generated';
|
|
4
|
+
type GroupHistoryRow = Omit<Database['public']['Tables']['group_history']['Row'], 'value' | 'prev_value'>;
|
|
5
|
+
export interface GroupHistoryModelOverwrite extends GroupHistoryRow {
|
|
6
|
+
action: GroupHistoryAction;
|
|
7
|
+
value: GroupHistoryValue | null;
|
|
8
|
+
prev_value: GroupHistoryValue | null;
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { GroupHistoryValue } from '.';
|
|
2
|
+
import { GroupHistoryAction } from '../../../../../models/supabase/GroupHistory/types';
|
|
3
|
+
import { Database } from '../../../generated';
|
|
4
|
+
|
|
5
|
+
type GroupHistoryRow = Omit<
|
|
6
|
+
Database['public']['Tables']['group_history']['Row'],
|
|
7
|
+
'value' | 'prev_value'
|
|
8
|
+
>;
|
|
9
|
+
export interface GroupHistoryModelOverwrite extends GroupHistoryRow {
|
|
10
|
+
action: GroupHistoryAction;
|
|
11
|
+
value: GroupHistoryValue | null;
|
|
12
|
+
prev_value: GroupHistoryValue | null;
|
|
13
|
+
}
|