@glissandoo/lib 1.123.2 → 1.123.3
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/package.json +1 -1
- package/types/firestore.ts +1998 -0
- package/types/messagebirdChatWidget.ts +20 -0
- package/types/minVersion.ts +4 -0
- package/types/payoutRule.ts +132 -0
- package/types/supabase/generated.ts +1682 -0
- package/types/supabase/index.ts +36 -0
- package/types/supabase/overwrites/comm.ts +18 -0
- package/types/supabase/overwrites/comm_history.ts +10 -0
- package/types/supabase/overwrites/event.ts +28 -0
- package/types/supabase/overwrites/event_history.ts +10 -0
- package/types/supabase/overwrites/group.ts +49 -0
- package/types/supabase/overwrites/group_history.ts +9 -0
- package/types/supabase/overwrites/index.ts +7 -0
- package/types/supabase/overwrites/offer.ts +15 -0
- package/types/supabase/overwrites/offer_history.ts +10 -0
- package/types/supabase/overwrites/repertoire.ts +12 -0
- package/types/supabase/overwrites/repertoire_history.ts +10 -0
- package/types/supabase/overwrites/utils.ts +4 -0
- package/.firebaserc +0 -7
- package/.husky/pre-commit +0 -4
- package/README.md +0 -70
- package/scripts/setHusky.js +0 -11
- package/supabase/.dev.env +0 -1
- package/supabase/.prod.env +0 -1
- package/supabase/.sample.env +0 -2
- package/supabase/README.md +0 -126
- package/supabase/config.toml +0 -68
- package/supabase/migrations/20231117044943_remote_schema.sql +0 -228
- package/supabase/migrations/20231117124947_event_selection_mode_closed_at_nullable.sql +0 -1
- package/supabase/migrations/20231121002132_remote_schema.sql +0 -31
- package/supabase/migrations/20231121004031_references_nullable.sql +0 -3
- package/supabase/migrations/20231121014339_updated_at_trigger.sql +0 -13
- package/supabase/migrations/20231122111241_remote_schema.sql +0 -25
- package/supabase/migrations/20231124151424_snake_case_to_camel_case.sql +0 -105
- package/supabase/migrations/20231129133721_add_columns_for_sites.sql +0 -11
- package/supabase/migrations/20231129142806_promoter_can_be_null.sql +0 -3
- package/supabase/migrations/20231130125327_group_location_latlon.sql +0 -3
- package/supabase/migrations/20231130150154_error_solvings.sql +0 -9
- package/supabase/migrations/20240405115914_new_columns.sql +0 -9
- package/supabase/migrations/20240405121956_init_offer.sql +0 -81
- package/supabase/migrations/20240503032440_add_columns_to_offer.sql +0 -11
- package/supabase/migrations/20240503101641_add_column_createdOn.sql +0 -19
- package/supabase/migrations/20240506035104_add_groupInfo_to_offer.sql +0 -10
- package/supabase/migrations/20240510110328_add_relationships_to_offer.sql +0 -9
- package/supabase/migrations/20240514100316_offers_public.sql +0 -9
- package/supabase/migrations/20260506013030_add_user_mirror.sql +0 -50
- package/supabase/migrations/20260506013031_add_user_group_mirror.sql +0 -31
- package/supabase/migrations/20260529000000_init_group_payment.sql +0 -79
- package/supabase/migrations/20260529120000_group_payment_realtime.sql +0 -19
- package/supabase/migrations/20260529130000_group_payment_anon_read.sql +0 -16
- package/supabase/migrations/20260601000000_group_payment_concept_norm.sql +0 -20
- package/supabase/migrations/20260605000000_init_partnership_domain.sql +0 -333
- package/supabase/migrations/20260605000100_partnership_recurring_rpc.sql +0 -62
- package/supabase/migrations/20260606000000_partnership_payer.sql +0 -83
- package/supabase/migrations/20260607000000_partnership_partner_number_not_unique.sql +0 -10
- package/supabase/migrations/20260608000000_partnership_payment_method_bizum.sql +0 -2
- package/supabase/migrations/20260609000000_partnership_payment_sepa_end_to_end.sql +0 -13
- package/supabase/migrations/20260617000000_partnership_portal_query_indexes.sql +0 -23
- package/supabase/migrations/20260618000000_partnership_communication_attachments.sql +0 -5
- package/supabase/migrations/20260701000000_partnership_recurring_rpc_drop_ambiguous.sql +0 -29
- package/supabase/migrations/20260713191700_add_personal_calendar_feed.sql +0 -506
- package/supabase/migrations/20260714193734_add_pending_calendar_invitations.sql +0 -403
- package/supabase/migrations/20260714205623_add_event_datetime_end_backfill.sql +0 -64
- package/supabase/migrations/20260729161126_remove_calendar_event_history_dependency.sql +0 -19
- package/supabase/migrations/20260729161202_reconcile_production_remote_schema.sql +0 -135
- package/supabase/migrations/20260804120000_add_calendar_feed_token_cipher.sql +0 -9
- package/supabase/migrations/20260805120000_replace_usergroup_with_group_playerids.sql +0 -363
- package/supabase/seed.sql +0 -2973
- /package/{lib/functions → functions}/auth.d.ts +0 -0
- /package/{lib/functions → functions}/auth.js +0 -0
- /package/{lib/functions → functions}/calendarFeed.d.ts +0 -0
- /package/{lib/functions → functions}/calendarFeed.js +0 -0
- /package/{lib/functions → functions}/communication.d.ts +0 -0
- /package/{lib/functions → functions}/communication.js +0 -0
- /package/{lib/functions → functions}/communicationComment.d.ts +0 -0
- /package/{lib/functions → functions}/communicationComment.js +0 -0
- /package/{lib/functions → functions}/customer.d.ts +0 -0
- /package/{lib/functions → functions}/customer.js +0 -0
- /package/{lib/functions → functions}/customerGroup.d.ts +0 -0
- /package/{lib/functions → functions}/customerGroup.js +0 -0
- /package/{lib/functions → functions}/event.d.ts +0 -0
- /package/{lib/functions → functions}/event.js +0 -0
- /package/{lib/functions → functions}/eventPlayer.d.ts +0 -0
- /package/{lib/functions → functions}/eventPlayer.js +0 -0
- /package/{lib/functions → functions}/eventRepertory.d.ts +0 -0
- /package/{lib/functions → functions}/eventRepertory.js +0 -0
- /package/{lib/functions → functions}/eventoPayout.d.ts +0 -0
- /package/{lib/functions → functions}/eventoPayout.js +0 -0
- /package/{lib/functions → functions}/federation.d.ts +0 -0
- /package/{lib/functions → functions}/federation.js +0 -0
- /package/{lib/functions → functions}/federationPartnership.d.ts +0 -0
- /package/{lib/functions → functions}/federationPartnership.js +0 -0
- /package/{lib/functions → functions}/group.d.ts +0 -0
- /package/{lib/functions → functions}/group.js +0 -0
- /package/{lib/functions → functions}/groupEventStage.d.ts +0 -0
- /package/{lib/functions → functions}/groupEventStage.js +0 -0
- /package/{lib/functions → functions}/groupModule.d.ts +0 -0
- /package/{lib/functions → functions}/groupModule.js +0 -0
- /package/{lib/functions → functions}/groupPayment.d.ts +0 -0
- /package/{lib/functions → functions}/groupPayment.js +0 -0
- /package/{lib/functions → functions}/groupPayoutRule.d.ts +0 -0
- /package/{lib/functions → functions}/groupPayoutRule.js +0 -0
- /package/{lib/functions → functions}/groupPlayer.d.ts +0 -0
- /package/{lib/functions → functions}/groupPlayer.js +0 -0
- /package/{lib/functions → functions}/groupRepertory.d.ts +0 -0
- /package/{lib/functions → functions}/groupRepertory.js +0 -0
- /package/{lib/functions → functions}/index.d.ts +0 -0
- /package/{lib/functions → functions}/index.js +0 -0
- /package/{lib/functions → functions}/inventory.d.ts +0 -0
- /package/{lib/functions → functions}/inventory.js +0 -0
- /package/{lib/functions → functions}/inventoryItem.d.ts +0 -0
- /package/{lib/functions → functions}/inventoryItem.js +0 -0
- /package/{lib/functions → functions}/jwt.d.ts +0 -0
- /package/{lib/functions → functions}/jwt.js +0 -0
- /package/{lib/functions → functions}/misc.d.ts +0 -0
- /package/{lib/functions → functions}/misc.js +0 -0
- /package/{lib/functions → functions}/notification.d.ts +0 -0
- /package/{lib/functions → functions}/notification.js +0 -0
- /package/{lib/functions → functions}/offer.d.ts +0 -0
- /package/{lib/functions → functions}/offer.js +0 -0
- /package/{lib/functions → functions}/offerApplicant.d.ts +0 -0
- /package/{lib/functions → functions}/offerApplicant.js +0 -0
- /package/{lib/functions → functions}/partnership.d.ts +0 -0
- /package/{lib/functions → functions}/partnership.js +0 -0
- /package/{lib/functions → functions}/partnershipCommunication.d.ts +0 -0
- /package/{lib/functions → functions}/partnershipCommunication.js +0 -0
- /package/{lib/functions → functions}/partnershipGroup.d.ts +0 -0
- /package/{lib/functions → functions}/partnershipGroup.js +0 -0
- /package/{lib/functions → functions}/partnershipPartner.d.ts +0 -0
- /package/{lib/functions → functions}/partnershipPartner.js +0 -0
- /package/{lib/functions → functions}/partnershipPayment.d.ts +0 -0
- /package/{lib/functions → functions}/partnershipPayment.js +0 -0
- /package/{lib/functions → functions}/partnershipPlan.d.ts +0 -0
- /package/{lib/functions → functions}/partnershipPlan.js +0 -0
- /package/{lib/functions → functions}/partnershipSepaPaymentGroup.d.ts +0 -0
- /package/{lib/functions → functions}/partnershipSepaPaymentGroup.js +0 -0
- /package/{lib/functions → functions}/partnershipSubscription.d.ts +0 -0
- /package/{lib/functions → functions}/partnershipSubscription.js +0 -0
- /package/{lib/functions → functions}/regions.d.ts +0 -0
- /package/{lib/functions → functions}/regions.js +0 -0
- /package/{lib/functions → functions}/subscription.d.ts +0 -0
- /package/{lib/functions → functions}/subscription.js +0 -0
- /package/{lib/functions → functions}/user.d.ts +0 -0
- /package/{lib/functions → functions}/user.js +0 -0
- /package/{lib/functions → functions}/userNotification.d.ts +0 -0
- /package/{lib/functions → functions}/userNotification.js +0 -0
- /package/{lib/helpers → helpers}/appScenes.d.ts +0 -0
- /package/{lib/helpers → helpers}/appScenes.js +0 -0
- /package/{lib/helpers → helpers}/audios.d.ts +0 -0
- /package/{lib/helpers → helpers}/audios.js +0 -0
- /package/{lib/helpers → helpers}/auth.d.ts +0 -0
- /package/{lib/helpers → helpers}/auth.js +0 -0
- /package/{lib/helpers → helpers}/badges.d.ts +0 -0
- /package/{lib/helpers → helpers}/badges.js +0 -0
- /package/{lib/helpers → helpers}/collections.d.ts +0 -0
- /package/{lib/helpers → helpers}/collections.js +0 -0
- /package/{lib/helpers → helpers}/communicationTemplate/index.d.ts +0 -0
- /package/{lib/helpers → helpers}/communicationTemplate/index.js +0 -0
- /package/{lib/helpers → helpers}/communicationTemplate/newGroup.d.ts +0 -0
- /package/{lib/helpers → helpers}/communicationTemplate/newGroup.js +0 -0
- /package/{lib/helpers → helpers}/communicationTemplate/newMember.d.ts +0 -0
- /package/{lib/helpers → helpers}/communicationTemplate/newMember.js +0 -0
- /package/{lib/helpers → helpers}/countries.d.ts +0 -0
- /package/{lib/helpers → helpers}/countries.js +0 -0
- /package/{lib/helpers → helpers}/currency.d.ts +0 -0
- /package/{lib/helpers → helpers}/currency.js +0 -0
- /package/{lib/helpers → helpers}/dlinks.d.ts +0 -0
- /package/{lib/helpers → helpers}/dlinks.js +0 -0
- /package/{lib/helpers → helpers}/errors.d.ts +0 -0
- /package/{lib/helpers → helpers}/errors.js +0 -0
- /package/{lib/helpers → helpers}/fileSections/index.d.ts +0 -0
- /package/{lib/helpers → helpers}/fileSections/index.js +0 -0
- /package/{lib/helpers → helpers}/fileSections/orders.d.ts +0 -0
- /package/{lib/helpers → helpers}/fileSections/orders.js +0 -0
- /package/{lib/helpers → helpers}/glissandooAdmin.d.ts +0 -0
- /package/{lib/helpers → helpers}/glissandooAdmin.js +0 -0
- /package/{lib/helpers → helpers}/instruments/index.d.ts +0 -0
- /package/{lib/helpers → helpers}/instruments/index.js +0 -0
- /package/{lib/helpers → helpers}/instruments/lists.d.ts +0 -0
- /package/{lib/helpers → helpers}/instruments/lists.js +0 -0
- /package/{lib/helpers → helpers}/instruments/orders.d.ts +0 -0
- /package/{lib/helpers → helpers}/instruments/orders.js +0 -0
- /package/{lib/helpers → helpers}/musicStyles/index.d.ts +0 -0
- /package/{lib/helpers → helpers}/musicStyles/index.js +0 -0
- /package/{lib/helpers → helpers}/musicStyles/orders.d.ts +0 -0
- /package/{lib/helpers → helpers}/musicStyles/orders.js +0 -0
- /package/{lib/helpers → helpers}/notifications/index.d.ts +0 -0
- /package/{lib/helpers → helpers}/notifications/index.js +0 -0
- /package/{lib/helpers → helpers}/notifications/placeholders.d.ts +0 -0
- /package/{lib/helpers → helpers}/notifications/placeholders.js +0 -0
- /package/{lib/helpers → helpers}/objects.d.ts +0 -0
- /package/{lib/helpers → helpers}/objects.js +0 -0
- /package/{lib/helpers → helpers}/paymentForecast.d.ts +0 -0
- /package/{lib/helpers → helpers}/paymentForecast.js +0 -0
- /package/{lib/helpers → helpers}/payoutRules.d.ts +0 -0
- /package/{lib/helpers → helpers}/payoutRules.js +0 -0
- /package/{lib/helpers → helpers}/plans.d.ts +0 -0
- /package/{lib/helpers → helpers}/plans.js +0 -0
- /package/{lib/helpers → helpers}/rates.d.ts +0 -0
- /package/{lib/helpers → helpers}/rates.js +0 -0
- /package/{lib/helpers → helpers}/reasons.d.ts +0 -0
- /package/{lib/helpers → helpers}/reasons.js +0 -0
- /package/{lib/helpers → helpers}/slate.d.ts +0 -0
- /package/{lib/helpers → helpers}/slate.js +0 -0
- /package/{lib/helpers → helpers}/styles.d.ts +0 -0
- /package/{lib/helpers → helpers}/styles.js +0 -0
- /package/{lib/helpers → helpers}/ts-extras/array-includes.d.ts +0 -0
- /package/{lib/helpers → helpers}/ts-extras/array-includes.js +0 -0
- /package/{lib/helpers → helpers}/ts-extras/as-mutable.d.ts +0 -0
- /package/{lib/helpers → helpers}/ts-extras/as-mutable.js +0 -0
- /package/{lib/helpers → helpers}/ts-extras/assert-error.d.ts +0 -0
- /package/{lib/helpers → helpers}/ts-extras/assert-error.js +0 -0
- /package/{lib/helpers → helpers}/ts-extras/index.d.ts +0 -0
- /package/{lib/helpers → helpers}/ts-extras/index.js +0 -0
- /package/{lib/helpers → helpers}/ts-extras/is-defined.d.ts +0 -0
- /package/{lib/helpers → helpers}/ts-extras/is-defined.js +0 -0
- /package/{lib/helpers → helpers}/ts-extras/is-empty.d.ts +0 -0
- /package/{lib/helpers → helpers}/ts-extras/is-empty.js +0 -0
- /package/{lib/helpers → helpers}/ts-extras/is-finite.d.ts +0 -0
- /package/{lib/helpers → helpers}/ts-extras/is-finite.js +0 -0
- /package/{lib/helpers → helpers}/ts-extras/is-infinite.d.ts +0 -0
- /package/{lib/helpers → helpers}/ts-extras/is-infinite.js +0 -0
- /package/{lib/helpers → helpers}/ts-extras/is-integer.d.ts +0 -0
- /package/{lib/helpers → helpers}/ts-extras/is-integer.js +0 -0
- /package/{lib/helpers → helpers}/ts-extras/is-present.d.ts +0 -0
- /package/{lib/helpers → helpers}/ts-extras/is-present.js +0 -0
- /package/{lib/helpers → helpers}/ts-extras/is-safe-integer.d.ts +0 -0
- /package/{lib/helpers → helpers}/ts-extras/is-safe-integer.js +0 -0
- /package/{lib/helpers → helpers}/ts-extras/object-entries.d.ts +0 -0
- /package/{lib/helpers → helpers}/ts-extras/object-entries.js +0 -0
- /package/{lib/helpers → helpers}/ts-extras/object-from-entries.d.ts +0 -0
- /package/{lib/helpers → helpers}/ts-extras/object-from-entries.js +0 -0
- /package/{lib/helpers → helpers}/ts-extras/object-has-own.d.ts +0 -0
- /package/{lib/helpers → helpers}/ts-extras/object-has-own.js +0 -0
- /package/{lib/helpers → helpers}/ts-extras/object-keys.d.ts +0 -0
- /package/{lib/helpers → helpers}/ts-extras/object-keys.js +0 -0
- /package/{lib/helpers → helpers}/ts-extras/set-has.d.ts +0 -0
- /package/{lib/helpers → helpers}/ts-extras/set-has.js +0 -0
- /package/{lib/helpers → helpers}/types.d.ts +0 -0
- /package/{lib/helpers → helpers}/types.js +0 -0
- /package/{lib/helpers → helpers}/utils.d.ts +0 -0
- /package/{lib/helpers → helpers}/utils.js +0 -0
- /package/{lib/index.d.ts → index.d.ts} +0 -0
- /package/{lib/index.js → index.js} +0 -0
- /package/{lib/lang → lang}/ca.json +0 -0
- /package/{lib/lang → lang}/de.json +0 -0
- /package/{lib/lang → lang}/en.json +0 -0
- /package/{lib/lang → lang}/es.json +0 -0
- /package/{lib/lang → lang}/eu.json +0 -0
- /package/{lib/lang → lang}/fr.json +0 -0
- /package/{lib/lang → lang}/gl.json +0 -0
- /package/{lib/lang → lang}/index.d.ts +0 -0
- /package/{lib/lang → lang}/index.js +0 -0
- /package/{lib/lang → lang}/it.json +0 -0
- /package/{lib/lang → lang}/nl.json +0 -0
- /package/{lib/lang → lang}/pt.json +0 -0
- /package/{lib/models → models}/Communication/Comment/index.d.ts +0 -0
- /package/{lib/models → models}/Communication/Comment/index.js +0 -0
- /package/{lib/models → models}/Communication/Comment/types.d.ts +0 -0
- /package/{lib/models → models}/Communication/Comment/types.js +0 -0
- /package/{lib/models → models}/Communication/index.d.ts +0 -0
- /package/{lib/models → models}/Communication/index.js +0 -0
- /package/{lib/models → models}/Communication/types.d.ts +0 -0
- /package/{lib/models → models}/Communication/types.js +0 -0
- /package/{lib/models → models}/Counters/Group/Analytics/index.d.ts +0 -0
- /package/{lib/models → models}/Counters/Group/Analytics/index.js +0 -0
- /package/{lib/models → models}/Counters/Group/Analytics/types.d.ts +0 -0
- /package/{lib/models → models}/Counters/Group/Analytics/types.js +0 -0
- /package/{lib/models → models}/Counters/Group/index.d.ts +0 -0
- /package/{lib/models → models}/Counters/Group/index.js +0 -0
- /package/{lib/models → models}/Counters/Group/types.d.ts +0 -0
- /package/{lib/models → models}/Counters/Group/types.js +0 -0
- /package/{lib/models → models}/Counters/event.d.ts +0 -0
- /package/{lib/models → models}/Counters/event.js +0 -0
- /package/{lib/models → models}/Counters/index.d.ts +0 -0
- /package/{lib/models → models}/Counters/index.js +0 -0
- /package/{lib/models → models}/Counters/types.d.ts +0 -0
- /package/{lib/models → models}/Counters/types.js +0 -0
- /package/{lib/models → models}/Customer/Group/index.d.ts +0 -0
- /package/{lib/models → models}/Customer/Group/index.js +0 -0
- /package/{lib/models → models}/Customer/Group/types.d.ts +0 -0
- /package/{lib/models → models}/Customer/Group/types.js +0 -0
- /package/{lib/models → models}/Customer/basic.d.ts +0 -0
- /package/{lib/models → models}/Customer/basic.js +0 -0
- /package/{lib/models → models}/Customer/index.d.ts +0 -0
- /package/{lib/models → models}/Customer/index.js +0 -0
- /package/{lib/models → models}/Customer/types.d.ts +0 -0
- /package/{lib/models → models}/Customer/types.js +0 -0
- /package/{lib/models → models}/Evento/Player/basic.d.ts +0 -0
- /package/{lib/models → models}/Evento/Player/basic.js +0 -0
- /package/{lib/models → models}/Evento/Player/index.d.ts +0 -0
- /package/{lib/models → models}/Evento/Player/index.js +0 -0
- /package/{lib/models → models}/Evento/Player/types.d.ts +0 -0
- /package/{lib/models → models}/Evento/Player/types.js +0 -0
- /package/{lib/models → models}/Evento/Repertory/index.d.ts +0 -0
- /package/{lib/models → models}/Evento/Repertory/index.js +0 -0
- /package/{lib/models → models}/Evento/Repertory/types.d.ts +0 -0
- /package/{lib/models → models}/Evento/Repertory/types.js +0 -0
- /package/{lib/models → models}/Evento/basic.d.ts +0 -0
- /package/{lib/models → models}/Evento/basic.js +0 -0
- /package/{lib/models → models}/Evento/index.d.ts +0 -0
- /package/{lib/models → models}/Evento/index.js +0 -0
- /package/{lib/models → models}/Evento/promoter.d.ts +0 -0
- /package/{lib/models → models}/Evento/promoter.js +0 -0
- /package/{lib/models → models}/Evento/tiny.d.ts +0 -0
- /package/{lib/models → models}/Evento/tiny.js +0 -0
- /package/{lib/models → models}/Evento/types.d.ts +0 -0
- /package/{lib/models → models}/Evento/types.js +0 -0
- /package/{lib/models → models}/Federation/Partnership/index.d.ts +0 -0
- /package/{lib/models → models}/Federation/Partnership/index.js +0 -0
- /package/{lib/models → models}/Federation/Partnership/types.d.ts +0 -0
- /package/{lib/models → models}/Federation/Partnership/types.js +0 -0
- /package/{lib/models → models}/Federation/index.d.ts +0 -0
- /package/{lib/models → models}/Federation/index.js +0 -0
- /package/{lib/models → models}/Federation/types.d.ts +0 -0
- /package/{lib/models → models}/Federation/types.js +0 -0
- /package/{lib/models → models}/Group/Analytics/index.d.ts +0 -0
- /package/{lib/models → models}/Group/Analytics/index.js +0 -0
- /package/{lib/models → models}/Group/Analytics/types.d.ts +0 -0
- /package/{lib/models → models}/Group/Analytics/types.js +0 -0
- /package/{lib/models → models}/Group/Event/index.d.ts +0 -0
- /package/{lib/models → models}/Group/Event/index.js +0 -0
- /package/{lib/models → models}/Group/Event/types.d.ts +0 -0
- /package/{lib/models → models}/Group/Event/types.js +0 -0
- /package/{lib/models → models}/Group/Payment/index.d.ts +0 -0
- /package/{lib/models → models}/Group/Payment/index.js +0 -0
- /package/{lib/models → models}/Group/Payment/supabase.d.ts +0 -0
- /package/{lib/models → models}/Group/Payment/supabase.js +0 -0
- /package/{lib/models → models}/Group/Payment/types.d.ts +0 -0
- /package/{lib/models → models}/Group/Payment/types.js +0 -0
- /package/{lib/models → models}/Group/Player/Event/index.d.ts +0 -0
- /package/{lib/models → models}/Group/Player/Event/index.js +0 -0
- /package/{lib/models → models}/Group/Player/Event/types.d.ts +0 -0
- /package/{lib/models → models}/Group/Player/Event/types.js +0 -0
- /package/{lib/models → models}/Group/Player/Log/index.d.ts +0 -0
- /package/{lib/models → models}/Group/Player/Log/index.js +0 -0
- /package/{lib/models → models}/Group/Player/Log/types.d.ts +0 -0
- /package/{lib/models → models}/Group/Player/Log/types.js +0 -0
- /package/{lib/models → models}/Group/Player/index.d.ts +0 -0
- /package/{lib/models → models}/Group/Player/index.js +0 -0
- /package/{lib/models → models}/Group/Player/types.d.ts +0 -0
- /package/{lib/models → models}/Group/Player/types.js +0 -0
- /package/{lib/models → models}/Group/Repertory/File/Section/index.d.ts +0 -0
- /package/{lib/models → models}/Group/Repertory/File/Section/index.js +0 -0
- /package/{lib/models → models}/Group/Repertory/File/Section/types.d.ts +0 -0
- /package/{lib/models → models}/Group/Repertory/File/Section/types.js +0 -0
- /package/{lib/models → models}/Group/Repertory/File/index.d.ts +0 -0
- /package/{lib/models → models}/Group/Repertory/File/index.js +0 -0
- /package/{lib/models → models}/Group/Repertory/File/types.d.ts +0 -0
- /package/{lib/models → models}/Group/Repertory/File/types.js +0 -0
- /package/{lib/models → models}/Group/Repertory/FilePath/index.d.ts +0 -0
- /package/{lib/models → models}/Group/Repertory/FilePath/index.js +0 -0
- /package/{lib/models → models}/Group/Repertory/index.d.ts +0 -0
- /package/{lib/models → models}/Group/Repertory/index.js +0 -0
- /package/{lib/models → models}/Group/Repertory/types.d.ts +0 -0
- /package/{lib/models → models}/Group/Repertory/types.js +0 -0
- /package/{lib/models → models}/Group/StageTemplate/index.d.ts +0 -0
- /package/{lib/models → models}/Group/StageTemplate/index.js +0 -0
- /package/{lib/models → models}/Group/StageTemplate/types.d.ts +0 -0
- /package/{lib/models → models}/Group/StageTemplate/types.js +0 -0
- /package/{lib/models → models}/Group/basic.d.ts +0 -0
- /package/{lib/models → models}/Group/basic.js +0 -0
- /package/{lib/models → models}/Group/index.d.ts +0 -0
- /package/{lib/models → models}/Group/index.js +0 -0
- /package/{lib/models → models}/Group/types.d.ts +0 -0
- /package/{lib/models → models}/Group/types.js +0 -0
- /package/{lib/models → models}/Instrument/group.d.ts +0 -0
- /package/{lib/models → models}/Instrument/group.js +0 -0
- /package/{lib/models → models}/Instrument/index.d.ts +0 -0
- /package/{lib/models → models}/Instrument/index.js +0 -0
- /package/{lib/models → models}/Inventory/Item/index.d.ts +0 -0
- /package/{lib/models → models}/Inventory/Item/index.js +0 -0
- /package/{lib/models → models}/Inventory/Item/types.d.ts +0 -0
- /package/{lib/models → models}/Inventory/Item/types.js +0 -0
- /package/{lib/models → models}/Inventory/index.d.ts +0 -0
- /package/{lib/models → models}/Inventory/index.js +0 -0
- /package/{lib/models → models}/Inventory/types.d.ts +0 -0
- /package/{lib/models → models}/Inventory/types.js +0 -0
- /package/{lib/models → models}/Metrics/index.d.ts +0 -0
- /package/{lib/models → models}/Metrics/index.js +0 -0
- /package/{lib/models → models}/Metrics/types.d.ts +0 -0
- /package/{lib/models → models}/Metrics/types.js +0 -0
- /package/{lib/models → models}/Model/index.d.ts +0 -0
- /package/{lib/models → models}/Model/index.js +0 -0
- /package/{lib/models → models}/Model/lang.d.ts +0 -0
- /package/{lib/models → models}/Model/lang.js +0 -0
- /package/{lib/models → models}/MusicStyle/index.d.ts +0 -0
- /package/{lib/models → models}/MusicStyle/index.js +0 -0
- /package/{lib/models → models}/Notification/index.d.ts +0 -0
- /package/{lib/models → models}/Notification/index.js +0 -0
- /package/{lib/models → models}/Notification/types.d.ts +0 -0
- /package/{lib/models → models}/Notification/types.js +0 -0
- /package/{lib/models → models}/Offer/Applicant/index.d.ts +0 -0
- /package/{lib/models → models}/Offer/Applicant/index.js +0 -0
- /package/{lib/models → models}/Offer/Applicant/types.d.ts +0 -0
- /package/{lib/models → models}/Offer/Applicant/types.js +0 -0
- /package/{lib/models → models}/Offer/index.d.ts +0 -0
- /package/{lib/models → models}/Offer/index.js +0 -0
- /package/{lib/models → models}/Offer/types.d.ts +0 -0
- /package/{lib/models → models}/Offer/types.js +0 -0
- /package/{lib/models → models}/Partnership/Communication/index.d.ts +0 -0
- /package/{lib/models → models}/Partnership/Communication/index.js +0 -0
- /package/{lib/models → models}/Partnership/Communication/supabase.d.ts +0 -0
- /package/{lib/models → models}/Partnership/Communication/supabase.js +0 -0
- /package/{lib/models → models}/Partnership/Communication/types.d.ts +0 -0
- /package/{lib/models → models}/Partnership/Communication/types.js +0 -0
- /package/{lib/models → models}/Partnership/Group/index.d.ts +0 -0
- /package/{lib/models → models}/Partnership/Group/index.js +0 -0
- /package/{lib/models → models}/Partnership/Group/supabase.d.ts +0 -0
- /package/{lib/models → models}/Partnership/Group/supabase.js +0 -0
- /package/{lib/models → models}/Partnership/Group/types.d.ts +0 -0
- /package/{lib/models → models}/Partnership/Group/types.js +0 -0
- /package/{lib/models → models}/Partnership/Partner/index.d.ts +0 -0
- /package/{lib/models → models}/Partnership/Partner/index.js +0 -0
- /package/{lib/models → models}/Partnership/Partner/supabase.d.ts +0 -0
- /package/{lib/models → models}/Partnership/Partner/supabase.js +0 -0
- /package/{lib/models → models}/Partnership/Partner/types.d.ts +0 -0
- /package/{lib/models → models}/Partnership/Partner/types.js +0 -0
- /package/{lib/models → models}/Partnership/Payment/index.d.ts +0 -0
- /package/{lib/models → models}/Partnership/Payment/index.js +0 -0
- /package/{lib/models → models}/Partnership/Payment/supabase.d.ts +0 -0
- /package/{lib/models → models}/Partnership/Payment/supabase.js +0 -0
- /package/{lib/models → models}/Partnership/Payment/types.d.ts +0 -0
- /package/{lib/models → models}/Partnership/Payment/types.js +0 -0
- /package/{lib/models → models}/Partnership/Plan/index.d.ts +0 -0
- /package/{lib/models → models}/Partnership/Plan/index.js +0 -0
- /package/{lib/models → models}/Partnership/Plan/supabase.d.ts +0 -0
- /package/{lib/models → models}/Partnership/Plan/supabase.js +0 -0
- /package/{lib/models → models}/Partnership/Plan/types.d.ts +0 -0
- /package/{lib/models → models}/Partnership/Plan/types.js +0 -0
- /package/{lib/models → models}/Partnership/SepaPaymentGroup/index.d.ts +0 -0
- /package/{lib/models → models}/Partnership/SepaPaymentGroup/index.js +0 -0
- /package/{lib/models → models}/Partnership/SepaPaymentGroup/supabase.d.ts +0 -0
- /package/{lib/models → models}/Partnership/SepaPaymentGroup/supabase.js +0 -0
- /package/{lib/models → models}/Partnership/SepaPaymentGroup/types.d.ts +0 -0
- /package/{lib/models → models}/Partnership/SepaPaymentGroup/types.js +0 -0
- /package/{lib/models → models}/Partnership/Subscription/index.d.ts +0 -0
- /package/{lib/models → models}/Partnership/Subscription/index.js +0 -0
- /package/{lib/models → models}/Partnership/Subscription/supabase.d.ts +0 -0
- /package/{lib/models → models}/Partnership/Subscription/supabase.js +0 -0
- /package/{lib/models → models}/Partnership/Subscription/types.d.ts +0 -0
- /package/{lib/models → models}/Partnership/Subscription/types.js +0 -0
- /package/{lib/models → models}/Partnership/basic.d.ts +0 -0
- /package/{lib/models → models}/Partnership/basic.js +0 -0
- /package/{lib/models → models}/Partnership/index.d.ts +0 -0
- /package/{lib/models → models}/Partnership/index.js +0 -0
- /package/{lib/models → models}/Partnership/types.d.ts +0 -0
- /package/{lib/models → models}/Partnership/types.js +0 -0
- /package/{lib/models → models}/Player/basic.d.ts +0 -0
- /package/{lib/models → models}/Player/basic.js +0 -0
- /package/{lib/models → models}/Player/types.d.ts +0 -0
- /package/{lib/models → models}/Player/types.js +0 -0
- /package/{lib/models → models}/Repertory/basic.d.ts +0 -0
- /package/{lib/models → models}/Repertory/basic.js +0 -0
- /package/{lib/models → models}/Repertory/types.d.ts +0 -0
- /package/{lib/models → models}/Repertory/types.js +0 -0
- /package/{lib/models → models}/User/Group/index.d.ts +0 -0
- /package/{lib/models → models}/User/Group/index.js +0 -0
- /package/{lib/models → models}/User/Group/types.d.ts +0 -0
- /package/{lib/models → models}/User/Group/types.js +0 -0
- /package/{lib/models → models}/User/Notification/index.d.ts +0 -0
- /package/{lib/models → models}/User/Notification/index.js +0 -0
- /package/{lib/models → models}/User/Notification/types.d.ts +0 -0
- /package/{lib/models → models}/User/Notification/types.js +0 -0
- /package/{lib/models → models}/User/OfferAlarm/index.d.ts +0 -0
- /package/{lib/models → models}/User/OfferAlarm/index.js +0 -0
- /package/{lib/models → models}/User/OfferAlarm/types.d.ts +0 -0
- /package/{lib/models → models}/User/OfferAlarm/types.js +0 -0
- /package/{lib/models → models}/User/Partnership/index.d.ts +0 -0
- /package/{lib/models → models}/User/Partnership/index.js +0 -0
- /package/{lib/models → models}/User/Partnership/types.d.ts +0 -0
- /package/{lib/models → models}/User/Partnership/types.js +0 -0
- /package/{lib/models → models}/User/basic.d.ts +0 -0
- /package/{lib/models → models}/User/basic.js +0 -0
- /package/{lib/models → models}/User/extended.d.ts +0 -0
- /package/{lib/models → models}/User/extended.js +0 -0
- /package/{lib/models → models}/User/index.d.ts +0 -0
- /package/{lib/models → models}/User/index.js +0 -0
- /package/{lib/models → models}/User/types.d.ts +0 -0
- /package/{lib/models → models}/User/types.js +0 -0
- /package/{lib/models → models}/WebhookEvent/index.d.ts +0 -0
- /package/{lib/models → models}/WebhookEvent/index.js +0 -0
- /package/{lib/models → models}/WebhookEvent/types.d.ts +0 -0
- /package/{lib/models → models}/WebhookEvent/types.js +0 -0
- /package/{lib/types → types}/firestore.d.ts +0 -0
- /package/{lib/types → types}/firestore.js +0 -0
- /package/{lib/types → types}/messagebirdChatWidget.d.ts +0 -0
- /package/{lib/types → types}/messagebirdChatWidget.js +0 -0
- /package/{lib/types → types}/minVersion.d.ts +0 -0
- /package/{lib/types → types}/minVersion.js +0 -0
- /package/{lib/types → types}/payoutRule.d.ts +0 -0
- /package/{lib/types → types}/payoutRule.js +0 -0
- /package/{lib/types → types}/supabase/generated.d.ts +0 -0
- /package/{lib/types → types}/supabase/generated.js +0 -0
- /package/{lib/types → types}/supabase/index.d.ts +0 -0
- /package/{lib/types → types}/supabase/index.js +0 -0
- /package/{lib/types → types}/supabase/overwrites/comm.d.ts +0 -0
- /package/{lib/types → types}/supabase/overwrites/comm.js +0 -0
- /package/{lib/types → types}/supabase/overwrites/comm_history.d.ts +0 -0
- /package/{lib/types → types}/supabase/overwrites/comm_history.js +0 -0
- /package/{lib/types → types}/supabase/overwrites/event.d.ts +0 -0
- /package/{lib/types → types}/supabase/overwrites/event.js +0 -0
- /package/{lib/types → types}/supabase/overwrites/event_history.d.ts +0 -0
- /package/{lib/types → types}/supabase/overwrites/event_history.js +0 -0
- /package/{lib/types → types}/supabase/overwrites/group.d.ts +0 -0
- /package/{lib/types → types}/supabase/overwrites/group.js +0 -0
- /package/{lib/types → types}/supabase/overwrites/group_history.d.ts +0 -0
- /package/{lib/types → types}/supabase/overwrites/group_history.js +0 -0
- /package/{lib/types → types}/supabase/overwrites/index.d.ts +0 -0
- /package/{lib/types → types}/supabase/overwrites/index.js +0 -0
- /package/{lib/types → types}/supabase/overwrites/offer.d.ts +0 -0
- /package/{lib/types → types}/supabase/overwrites/offer.js +0 -0
- /package/{lib/types → types}/supabase/overwrites/offer_history.d.ts +0 -0
- /package/{lib/types → types}/supabase/overwrites/offer_history.js +0 -0
- /package/{lib/types → types}/supabase/overwrites/repertoire.d.ts +0 -0
- /package/{lib/types → types}/supabase/overwrites/repertoire.js +0 -0
- /package/{lib/types → types}/supabase/overwrites/repertoire_history.d.ts +0 -0
- /package/{lib/types → types}/supabase/overwrites/repertoire_history.js +0 -0
- /package/{lib/types → types}/supabase/overwrites/utils.d.ts +0 -0
- /package/{lib/types → types}/supabase/overwrites/utils.js +0 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { MergeDeep } from 'type-fest';
|
|
2
|
+
import { Database as DatabaseGenerated } from './generated';
|
|
3
|
+
import { Overwrite } from './overwrites';
|
|
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<
|
|
16
|
+
DatabaseGenerated,
|
|
17
|
+
{
|
|
18
|
+
public: {
|
|
19
|
+
Tables: {
|
|
20
|
+
group: Overwrite<GroupOverwrite, 'configSites' | 'socialNetworks'>;
|
|
21
|
+
event: Overwrite<EventOverwrite, 'repeat' | 'stage'>;
|
|
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'>,
|
|
28
|
+
'prev_value' | 'value'
|
|
29
|
+
>;
|
|
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'>;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
>;
|
|
@@ -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,28 @@
|
|
|
1
|
+
import { EventData } from '../../../models/Evento/types';
|
|
2
|
+
|
|
3
|
+
export interface EventRepeatType {
|
|
4
|
+
period: NonNullable<EventData['repeat']>['period'];
|
|
5
|
+
untilAt: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export type EventRepeat = EventRepeatType | null;
|
|
9
|
+
|
|
10
|
+
export interface EventResponseDeadline {
|
|
11
|
+
option: EventData['responseDeadline']['option'];
|
|
12
|
+
customAt: string | null;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface EventRollcallHistory {
|
|
16
|
+
changedAt: string;
|
|
17
|
+
changedBy: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface EventOverwrite {
|
|
21
|
+
descriptionSlate: EventData['descriptionSlate'];
|
|
22
|
+
players: EventData['players'];
|
|
23
|
+
repeat: EventRepeat;
|
|
24
|
+
repertory: EventData['repertory'];
|
|
25
|
+
responseDeadline: EventResponseDeadline;
|
|
26
|
+
rollCallHistory: EventRollcallHistory[];
|
|
27
|
+
stage: EventData['stage'];
|
|
28
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { GroupBasicData, GroupData } from '../../../models/Group/types';
|
|
2
|
+
import { Location } from './utils';
|
|
3
|
+
|
|
4
|
+
export interface GroupAddress {
|
|
5
|
+
address: string;
|
|
6
|
+
location: Location | null;
|
|
7
|
+
default: boolean;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface GroupOnboardingMessage {
|
|
11
|
+
type: string;
|
|
12
|
+
createdAt: string;
|
|
13
|
+
via: string;
|
|
14
|
+
to: string[];
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface GroupTemplateData {
|
|
18
|
+
title: string;
|
|
19
|
+
playerIds: string[];
|
|
20
|
+
updatedAt?: string;
|
|
21
|
+
updatedBy?: string;
|
|
22
|
+
createdAt: string;
|
|
23
|
+
owner: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type GroupSocialNetworks = NonNullable<GroupData['socialNetworks']> | null;
|
|
27
|
+
|
|
28
|
+
export type GroupTemplates = Record<string, GroupTemplateData>;
|
|
29
|
+
|
|
30
|
+
export type GroupVisitedDashboardAt = Record<string, string>;
|
|
31
|
+
|
|
32
|
+
export type GroupBasic = Omit<GroupBasicData, 'location'> & {
|
|
33
|
+
location: Location;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export interface GroupOverwrite {
|
|
37
|
+
addresses: GroupAddress[];
|
|
38
|
+
config: GroupData['config'];
|
|
39
|
+
configSites: GroupData['configSites'];
|
|
40
|
+
instruments: GroupData['instruments'];
|
|
41
|
+
metadata: GroupData['metadata'];
|
|
42
|
+
onboardingMessages: GroupOnboardingMessage[];
|
|
43
|
+
players: GroupData['players'];
|
|
44
|
+
repertoireTags: GroupData['repertoireTags'];
|
|
45
|
+
satisfactionIndex: GroupData['satisfactionIndex'];
|
|
46
|
+
socialNetworks: GroupSocialNetworks;
|
|
47
|
+
templates: GroupTemplates;
|
|
48
|
+
visitedDashboardAt: GroupVisitedDashboardAt;
|
|
49
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DefaultInstrumentId } from '../../../helpers/instruments';
|
|
2
|
+
import { GroupBasic } from './group';
|
|
3
|
+
|
|
4
|
+
export interface OfferApplicantBasicData {
|
|
5
|
+
appliedAt: string;
|
|
6
|
+
selectedAt: string | null;
|
|
7
|
+
discardedAt: string | null;
|
|
8
|
+
message: string | null;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface OfferOverwrite {
|
|
12
|
+
instrument: DefaultInstrumentId;
|
|
13
|
+
applicants: Record<string, OfferApplicantBasicData>;
|
|
14
|
+
groupInfo: GroupBasic;
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface RepertoireOverwrite {
|
|
2
|
+
id: string;
|
|
3
|
+
group_id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
compositor: string | null;
|
|
6
|
+
tags: string[];
|
|
7
|
+
events: string[];
|
|
8
|
+
owner_id: string;
|
|
9
|
+
created_at: string;
|
|
10
|
+
visibility: string;
|
|
11
|
+
last_event_datetime: string | null;
|
|
12
|
+
}
|
package/.firebaserc
DELETED
package/.husky/pre-commit
DELETED
package/README.md
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
# Glissandoo Library
|
|
2
|
-
|
|
3
|
-
## What is this repository for?
|
|
4
|
-
|
|
5
|
-
- This repo contains a common model codebase that all Glissandoo projects can use.
|
|
6
|
-
|
|
7
|
-
## Configuration
|
|
8
|
-
|
|
9
|
-
- This project should work with any Node.js version >= 12 and uses NPM to manage dependencies.
|
|
10
|
-
- To install Node.js, we recommend using NVM, which is a Node.js version manager, and can be installed with the following command:
|
|
11
|
-
|
|
12
|
-
```bash
|
|
13
|
-
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
- Once installed, restart your terminal and you will be able to use the following command to install the desired Node.js version:
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
nvm install {version}
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
- To activate a certain Node.js version, you can use the following command:
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
nvm use {version}
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
- Then, install dependencies with the following command:
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
npm install
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
## Developing locally
|
|
35
|
-
|
|
36
|
-
### 0. (Optional) Create a VS Code workspace including lib:
|
|
37
|
-
|
|
38
|
-
- Open your existing project with VS Code. Then, in the upper left menu, go to File > Add Folder to Workspace, and choose the lib repo folder.
|
|
39
|
-
|
|
40
|
-
- Then, in the same menu as before, go to File > Save Workspace As... and save your workspace wherever you like.
|
|
41
|
-
|
|
42
|
-
- Now, you will be able to work in both your current project and the lib repo in the same workspace.
|
|
43
|
-
|
|
44
|
-
### 1. NPM-Link lib to your project:
|
|
45
|
-
|
|
46
|
-
- There is a way to link your local lib project to your current project, so any changes made to your local lib repo will automatically be reflected in your current project.
|
|
47
|
-
|
|
48
|
-
- To do this, open a terminal and go to the lib repo folder. Then, run the following command:
|
|
49
|
-
|
|
50
|
-
```bash
|
|
51
|
-
npm run link
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
This will create a symlink to your lib repo globally.
|
|
55
|
-
|
|
56
|
-
- Now, to tell your project to use the symlink, go to your project folder and run the following command:
|
|
57
|
-
|
|
58
|
-
```bash
|
|
59
|
-
npm link @glissandoo/lib
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
- Now, your project will use the ts-compiled folder of the lib repo as its dependency, but there is one more step left.
|
|
63
|
-
|
|
64
|
-
- Since we use TypeScript, we would need to compile lib for every change we made to it, but we can automate this process by opening a terminal, going into the lib repo folder and keeping the following command running:
|
|
65
|
-
|
|
66
|
-
```bash
|
|
67
|
-
npm run build:watch
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
This will compile lib for every change you make to it, so that changes automatically get reflected in your current project.
|
package/scripts/setHusky.js
DELETED
package/supabase/.dev.env
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
SUPABASE_DB_PASSWORD=hPqPnsF0QPfOJc9f
|
package/supabase/.prod.env
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
SUPABASE_DB_PASSWORD=OQ9vRUfB328QdojG
|
package/supabase/.sample.env
DELETED
package/supabase/README.md
DELETED
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
## Run emulator
|
|
2
|
-
|
|
3
|
-
To run the emulator, make sure Docker is running and use the following command:
|
|
4
|
-
|
|
5
|
-
```bash
|
|
6
|
-
supabase start
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
## Check emulator status
|
|
10
|
-
|
|
11
|
-
To check the status of the emulator containers, use the following command:
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
supabase status
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Stop emulator
|
|
18
|
-
|
|
19
|
-
To stop the emulator, DO NOT stop Docker containers directly, but use the following command instead:
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
supabase stop
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## Create migrations
|
|
26
|
-
|
|
27
|
-
To modify our database structure, we need to create a migration file. To do so, we can use the following command:
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
supabase migration new <migration_name>
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
This will create a new migration file in the `supabase/migrations` folder.
|
|
34
|
-
|
|
35
|
-
Then, we have two options:
|
|
36
|
-
|
|
37
|
-
1. We can modify the migration file directly writing SQL code, or
|
|
38
|
-
|
|
39
|
-
2. We can use the Supabase Studio to modify the database structure and then run the following command to generate a migration file:
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
supabase db diff -f <migration_name>
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
After we have the migration file ready, we can run the following command to apply the migration to our local database:
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
supabase migration up
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
Or restart the database applying all migrations and seed again, with:
|
|
52
|
-
|
|
53
|
-
```bash
|
|
54
|
-
supabase db reset
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
## Push migrations to remote
|
|
58
|
-
|
|
59
|
-
Normally, this will be done by a CI/CD pipeline, but we can do it manually with the following commands:
|
|
60
|
-
|
|
61
|
-
```bash
|
|
62
|
-
supabase link --project-ref <project-id>
|
|
63
|
-
supabase db push
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
## Pull changes from remote
|
|
67
|
-
|
|
68
|
-
We may change the database structure from the remote Supabase Studio directly, so we need to pull those changes to our local database. To do so, we can run the following command:
|
|
69
|
-
|
|
70
|
-
```bash
|
|
71
|
-
supabase db pull
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
## Update seed.sql
|
|
75
|
-
|
|
76
|
-
To update the database seed:
|
|
77
|
-
|
|
78
|
-
1. Create filtered tables in the remote db you want to use to get the data for seeding.
|
|
79
|
-
|
|
80
|
-
```sql
|
|
81
|
-
CREATE TABLE public.users_filtered AS
|
|
82
|
-
SELECT * FROM public.users WHERE id IN ('1', '2', '3', '4', '5', '6', '7', '8', '9', '10');
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
2. Export the data from the filtered tables to a csv file.
|
|
86
|
-
3. Run the emulator as always with the old data, remove all rows and import the csv files in the Local Supabase Studio.
|
|
87
|
-
|
|
88
|
-
```bash
|
|
89
|
-
supabase start
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
4. Then, run the following command to dump the data from the emulator to the seed.sql file:
|
|
93
|
-
|
|
94
|
-
```bash
|
|
95
|
-
supabase db dump -f supabase/seed.sql --data-only --local
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
## Generate types
|
|
99
|
-
|
|
100
|
-
It is important to generate the types before executing `tsc` so we can find type errors in CI/CD pipelines.
|
|
101
|
-
Nevertheless, we may also want to do it locally, so we have an script written in package.json to generate the types from the database schema. To run it, we can run the following command:
|
|
102
|
-
|
|
103
|
-
```bash
|
|
104
|
-
npm run supabase:local:types
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
The personal calendar-feed schema is defined by
|
|
108
|
-
`20260713191700_add_personal_calendar_feed.sql`, with pending invitation support
|
|
109
|
-
added by `20260714193734_add_pending_calendar_invitations.sql`. The
|
|
110
|
-
`20260729161126_remove_calendar_event_history_dependency.sql` migration keeps
|
|
111
|
-
decline tombstones on the mirrored event update path, so the release does not
|
|
112
|
-
depend on the Composer-era event-history trigger.
|
|
113
|
-
|
|
114
|
-
Together these migrations create the private bearer-token configuration,
|
|
115
|
-
pending/tentative preferences, 90-day per-user cancellation tombstones, event
|
|
116
|
-
revision tracking, feed revision tracking for user-language changes, and
|
|
117
|
-
service-role-only query functions used by Firebase. Group membership for feed
|
|
118
|
-
visibility is read from `"group"."playerIds"`, so existing users must be
|
|
119
|
-
backfilled before enabling feeds. Validate the migrations with a local database
|
|
120
|
-
reset, regenerate `src/types/supabase/generated.ts`, and run the library build
|
|
121
|
-
before building Functions. The public endpoint and management API are documented
|
|
122
|
-
in `../../functions/README.md`.
|
|
123
|
-
|
|
124
|
-
The local seed derives minimal `user` rows and unions event players into each
|
|
125
|
-
promoter group's `playerIds` from its event fixtures, so calendar event
|
|
126
|
-
visibility can be exercised immediately after `supabase db reset`.
|
package/supabase/config.toml
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
# A string used to distinguish different Supabase projects on the same host. Defaults to the working
|
|
2
|
-
# directory name when running `supabase init`.
|
|
3
|
-
project_id = "glissandoo"
|
|
4
|
-
|
|
5
|
-
[api]
|
|
6
|
-
port = 54321
|
|
7
|
-
schemas = ["public", "storage", "graphql_public"]
|
|
8
|
-
extra_search_path = ["public", "extensions"]
|
|
9
|
-
max_rows = 1000
|
|
10
|
-
|
|
11
|
-
[db]
|
|
12
|
-
# Port to use for the local database URL.
|
|
13
|
-
port = 54322
|
|
14
|
-
# The database major version to use. This has to be the same as your remote database's. Run `SHOW
|
|
15
|
-
# server_version;` on the remote database to check.
|
|
16
|
-
major_version = 15
|
|
17
|
-
|
|
18
|
-
[studio]
|
|
19
|
-
# Port to use for Supabase Studio.
|
|
20
|
-
port = 54323
|
|
21
|
-
|
|
22
|
-
# Email testing server. Emails sent with the local dev setup are not actually sent - rather, they
|
|
23
|
-
# are monitored, and you can view the emails that would have been sent from the web interface.
|
|
24
|
-
[inbucket]
|
|
25
|
-
# Port to use for the email testing server web interface.
|
|
26
|
-
port = 54324
|
|
27
|
-
smtp_port = 54325
|
|
28
|
-
pop3_port = 54326
|
|
29
|
-
|
|
30
|
-
[storage]
|
|
31
|
-
# The maximum file size allowed (e.g. "5MB", "500KB").
|
|
32
|
-
file_size_limit = "50MiB"
|
|
33
|
-
|
|
34
|
-
[auth]
|
|
35
|
-
# The base URL of your website. Used as an allow-list for redirects and for constructing URLs used
|
|
36
|
-
# in emails.
|
|
37
|
-
site_url = "http://localhost:3000"
|
|
38
|
-
# A list of *exact* URLs that auth providers are permitted to redirect to post authentication.
|
|
39
|
-
additional_redirect_urls = []
|
|
40
|
-
# How long tokens are valid for, in seconds. Defaults to 3600 (1 hour), maximum 604,800 seconds (one
|
|
41
|
-
# week).
|
|
42
|
-
jwt_expiry = 3600
|
|
43
|
-
# Allow/disallow new user signups to your project.
|
|
44
|
-
enable_signup = true
|
|
45
|
-
|
|
46
|
-
[auth.email]
|
|
47
|
-
# Allow/disallow new user signups via email to your project.
|
|
48
|
-
enable_signup = true
|
|
49
|
-
# If enabled, a user will be required to confirm any email change on both the old, and new email
|
|
50
|
-
# addresses. If disabled, only the new email is required to confirm.
|
|
51
|
-
double_confirm_changes = true
|
|
52
|
-
# If enabled, users need to confirm their email address before signing in.
|
|
53
|
-
enable_confirmations = true
|
|
54
|
-
|
|
55
|
-
max_frequency = "1m0s"
|
|
56
|
-
|
|
57
|
-
# Use an external OAuth provider. The full list of providers are: `apple`, `azure`, `bitbucket`,
|
|
58
|
-
# `discord`, `facebook`, `github`, `gitlab`, `google`, `keycloak`, `linkedin`, `notion`, `twitch`,
|
|
59
|
-
# `twitter`, `slack`, `spotify`, `workos`, `zoom`.
|
|
60
|
-
[auth.external.apple]
|
|
61
|
-
enabled = false
|
|
62
|
-
client_id = ""
|
|
63
|
-
secret = ""
|
|
64
|
-
# Overrides the default auth redirectUrl.
|
|
65
|
-
redirect_uri = ""
|
|
66
|
-
# Overrides the default auth provider URL. Used to support self-hosted gitlab, single-tenant Azure,
|
|
67
|
-
# or any other third-party OIDC providers.
|
|
68
|
-
url = ""
|