@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.
Files changed (521) hide show
  1. package/package.json +1 -1
  2. package/types/firestore.ts +1998 -0
  3. package/types/messagebirdChatWidget.ts +20 -0
  4. package/types/minVersion.ts +4 -0
  5. package/types/payoutRule.ts +132 -0
  6. package/types/supabase/generated.ts +1682 -0
  7. package/types/supabase/index.ts +36 -0
  8. package/types/supabase/overwrites/comm.ts +18 -0
  9. package/types/supabase/overwrites/comm_history.ts +10 -0
  10. package/types/supabase/overwrites/event.ts +28 -0
  11. package/types/supabase/overwrites/event_history.ts +10 -0
  12. package/types/supabase/overwrites/group.ts +49 -0
  13. package/types/supabase/overwrites/group_history.ts +9 -0
  14. package/types/supabase/overwrites/index.ts +7 -0
  15. package/types/supabase/overwrites/offer.ts +15 -0
  16. package/types/supabase/overwrites/offer_history.ts +10 -0
  17. package/types/supabase/overwrites/repertoire.ts +12 -0
  18. package/types/supabase/overwrites/repertoire_history.ts +10 -0
  19. package/types/supabase/overwrites/utils.ts +4 -0
  20. package/.firebaserc +0 -7
  21. package/.husky/pre-commit +0 -4
  22. package/README.md +0 -70
  23. package/scripts/setHusky.js +0 -11
  24. package/supabase/.dev.env +0 -1
  25. package/supabase/.prod.env +0 -1
  26. package/supabase/.sample.env +0 -2
  27. package/supabase/README.md +0 -126
  28. package/supabase/config.toml +0 -68
  29. package/supabase/migrations/20231117044943_remote_schema.sql +0 -228
  30. package/supabase/migrations/20231117124947_event_selection_mode_closed_at_nullable.sql +0 -1
  31. package/supabase/migrations/20231121002132_remote_schema.sql +0 -31
  32. package/supabase/migrations/20231121004031_references_nullable.sql +0 -3
  33. package/supabase/migrations/20231121014339_updated_at_trigger.sql +0 -13
  34. package/supabase/migrations/20231122111241_remote_schema.sql +0 -25
  35. package/supabase/migrations/20231124151424_snake_case_to_camel_case.sql +0 -105
  36. package/supabase/migrations/20231129133721_add_columns_for_sites.sql +0 -11
  37. package/supabase/migrations/20231129142806_promoter_can_be_null.sql +0 -3
  38. package/supabase/migrations/20231130125327_group_location_latlon.sql +0 -3
  39. package/supabase/migrations/20231130150154_error_solvings.sql +0 -9
  40. package/supabase/migrations/20240405115914_new_columns.sql +0 -9
  41. package/supabase/migrations/20240405121956_init_offer.sql +0 -81
  42. package/supabase/migrations/20240503032440_add_columns_to_offer.sql +0 -11
  43. package/supabase/migrations/20240503101641_add_column_createdOn.sql +0 -19
  44. package/supabase/migrations/20240506035104_add_groupInfo_to_offer.sql +0 -10
  45. package/supabase/migrations/20240510110328_add_relationships_to_offer.sql +0 -9
  46. package/supabase/migrations/20240514100316_offers_public.sql +0 -9
  47. package/supabase/migrations/20260506013030_add_user_mirror.sql +0 -50
  48. package/supabase/migrations/20260506013031_add_user_group_mirror.sql +0 -31
  49. package/supabase/migrations/20260529000000_init_group_payment.sql +0 -79
  50. package/supabase/migrations/20260529120000_group_payment_realtime.sql +0 -19
  51. package/supabase/migrations/20260529130000_group_payment_anon_read.sql +0 -16
  52. package/supabase/migrations/20260601000000_group_payment_concept_norm.sql +0 -20
  53. package/supabase/migrations/20260605000000_init_partnership_domain.sql +0 -333
  54. package/supabase/migrations/20260605000100_partnership_recurring_rpc.sql +0 -62
  55. package/supabase/migrations/20260606000000_partnership_payer.sql +0 -83
  56. package/supabase/migrations/20260607000000_partnership_partner_number_not_unique.sql +0 -10
  57. package/supabase/migrations/20260608000000_partnership_payment_method_bizum.sql +0 -2
  58. package/supabase/migrations/20260609000000_partnership_payment_sepa_end_to_end.sql +0 -13
  59. package/supabase/migrations/20260617000000_partnership_portal_query_indexes.sql +0 -23
  60. package/supabase/migrations/20260618000000_partnership_communication_attachments.sql +0 -5
  61. package/supabase/migrations/20260701000000_partnership_recurring_rpc_drop_ambiguous.sql +0 -29
  62. package/supabase/migrations/20260713191700_add_personal_calendar_feed.sql +0 -506
  63. package/supabase/migrations/20260714193734_add_pending_calendar_invitations.sql +0 -403
  64. package/supabase/migrations/20260714205623_add_event_datetime_end_backfill.sql +0 -64
  65. package/supabase/migrations/20260729161126_remove_calendar_event_history_dependency.sql +0 -19
  66. package/supabase/migrations/20260729161202_reconcile_production_remote_schema.sql +0 -135
  67. package/supabase/migrations/20260804120000_add_calendar_feed_token_cipher.sql +0 -9
  68. package/supabase/migrations/20260805120000_replace_usergroup_with_group_playerids.sql +0 -363
  69. package/supabase/seed.sql +0 -2973
  70. /package/{lib/functions → functions}/auth.d.ts +0 -0
  71. /package/{lib/functions → functions}/auth.js +0 -0
  72. /package/{lib/functions → functions}/calendarFeed.d.ts +0 -0
  73. /package/{lib/functions → functions}/calendarFeed.js +0 -0
  74. /package/{lib/functions → functions}/communication.d.ts +0 -0
  75. /package/{lib/functions → functions}/communication.js +0 -0
  76. /package/{lib/functions → functions}/communicationComment.d.ts +0 -0
  77. /package/{lib/functions → functions}/communicationComment.js +0 -0
  78. /package/{lib/functions → functions}/customer.d.ts +0 -0
  79. /package/{lib/functions → functions}/customer.js +0 -0
  80. /package/{lib/functions → functions}/customerGroup.d.ts +0 -0
  81. /package/{lib/functions → functions}/customerGroup.js +0 -0
  82. /package/{lib/functions → functions}/event.d.ts +0 -0
  83. /package/{lib/functions → functions}/event.js +0 -0
  84. /package/{lib/functions → functions}/eventPlayer.d.ts +0 -0
  85. /package/{lib/functions → functions}/eventPlayer.js +0 -0
  86. /package/{lib/functions → functions}/eventRepertory.d.ts +0 -0
  87. /package/{lib/functions → functions}/eventRepertory.js +0 -0
  88. /package/{lib/functions → functions}/eventoPayout.d.ts +0 -0
  89. /package/{lib/functions → functions}/eventoPayout.js +0 -0
  90. /package/{lib/functions → functions}/federation.d.ts +0 -0
  91. /package/{lib/functions → functions}/federation.js +0 -0
  92. /package/{lib/functions → functions}/federationPartnership.d.ts +0 -0
  93. /package/{lib/functions → functions}/federationPartnership.js +0 -0
  94. /package/{lib/functions → functions}/group.d.ts +0 -0
  95. /package/{lib/functions → functions}/group.js +0 -0
  96. /package/{lib/functions → functions}/groupEventStage.d.ts +0 -0
  97. /package/{lib/functions → functions}/groupEventStage.js +0 -0
  98. /package/{lib/functions → functions}/groupModule.d.ts +0 -0
  99. /package/{lib/functions → functions}/groupModule.js +0 -0
  100. /package/{lib/functions → functions}/groupPayment.d.ts +0 -0
  101. /package/{lib/functions → functions}/groupPayment.js +0 -0
  102. /package/{lib/functions → functions}/groupPayoutRule.d.ts +0 -0
  103. /package/{lib/functions → functions}/groupPayoutRule.js +0 -0
  104. /package/{lib/functions → functions}/groupPlayer.d.ts +0 -0
  105. /package/{lib/functions → functions}/groupPlayer.js +0 -0
  106. /package/{lib/functions → functions}/groupRepertory.d.ts +0 -0
  107. /package/{lib/functions → functions}/groupRepertory.js +0 -0
  108. /package/{lib/functions → functions}/index.d.ts +0 -0
  109. /package/{lib/functions → functions}/index.js +0 -0
  110. /package/{lib/functions → functions}/inventory.d.ts +0 -0
  111. /package/{lib/functions → functions}/inventory.js +0 -0
  112. /package/{lib/functions → functions}/inventoryItem.d.ts +0 -0
  113. /package/{lib/functions → functions}/inventoryItem.js +0 -0
  114. /package/{lib/functions → functions}/jwt.d.ts +0 -0
  115. /package/{lib/functions → functions}/jwt.js +0 -0
  116. /package/{lib/functions → functions}/misc.d.ts +0 -0
  117. /package/{lib/functions → functions}/misc.js +0 -0
  118. /package/{lib/functions → functions}/notification.d.ts +0 -0
  119. /package/{lib/functions → functions}/notification.js +0 -0
  120. /package/{lib/functions → functions}/offer.d.ts +0 -0
  121. /package/{lib/functions → functions}/offer.js +0 -0
  122. /package/{lib/functions → functions}/offerApplicant.d.ts +0 -0
  123. /package/{lib/functions → functions}/offerApplicant.js +0 -0
  124. /package/{lib/functions → functions}/partnership.d.ts +0 -0
  125. /package/{lib/functions → functions}/partnership.js +0 -0
  126. /package/{lib/functions → functions}/partnershipCommunication.d.ts +0 -0
  127. /package/{lib/functions → functions}/partnershipCommunication.js +0 -0
  128. /package/{lib/functions → functions}/partnershipGroup.d.ts +0 -0
  129. /package/{lib/functions → functions}/partnershipGroup.js +0 -0
  130. /package/{lib/functions → functions}/partnershipPartner.d.ts +0 -0
  131. /package/{lib/functions → functions}/partnershipPartner.js +0 -0
  132. /package/{lib/functions → functions}/partnershipPayment.d.ts +0 -0
  133. /package/{lib/functions → functions}/partnershipPayment.js +0 -0
  134. /package/{lib/functions → functions}/partnershipPlan.d.ts +0 -0
  135. /package/{lib/functions → functions}/partnershipPlan.js +0 -0
  136. /package/{lib/functions → functions}/partnershipSepaPaymentGroup.d.ts +0 -0
  137. /package/{lib/functions → functions}/partnershipSepaPaymentGroup.js +0 -0
  138. /package/{lib/functions → functions}/partnershipSubscription.d.ts +0 -0
  139. /package/{lib/functions → functions}/partnershipSubscription.js +0 -0
  140. /package/{lib/functions → functions}/regions.d.ts +0 -0
  141. /package/{lib/functions → functions}/regions.js +0 -0
  142. /package/{lib/functions → functions}/subscription.d.ts +0 -0
  143. /package/{lib/functions → functions}/subscription.js +0 -0
  144. /package/{lib/functions → functions}/user.d.ts +0 -0
  145. /package/{lib/functions → functions}/user.js +0 -0
  146. /package/{lib/functions → functions}/userNotification.d.ts +0 -0
  147. /package/{lib/functions → functions}/userNotification.js +0 -0
  148. /package/{lib/helpers → helpers}/appScenes.d.ts +0 -0
  149. /package/{lib/helpers → helpers}/appScenes.js +0 -0
  150. /package/{lib/helpers → helpers}/audios.d.ts +0 -0
  151. /package/{lib/helpers → helpers}/audios.js +0 -0
  152. /package/{lib/helpers → helpers}/auth.d.ts +0 -0
  153. /package/{lib/helpers → helpers}/auth.js +0 -0
  154. /package/{lib/helpers → helpers}/badges.d.ts +0 -0
  155. /package/{lib/helpers → helpers}/badges.js +0 -0
  156. /package/{lib/helpers → helpers}/collections.d.ts +0 -0
  157. /package/{lib/helpers → helpers}/collections.js +0 -0
  158. /package/{lib/helpers → helpers}/communicationTemplate/index.d.ts +0 -0
  159. /package/{lib/helpers → helpers}/communicationTemplate/index.js +0 -0
  160. /package/{lib/helpers → helpers}/communicationTemplate/newGroup.d.ts +0 -0
  161. /package/{lib/helpers → helpers}/communicationTemplate/newGroup.js +0 -0
  162. /package/{lib/helpers → helpers}/communicationTemplate/newMember.d.ts +0 -0
  163. /package/{lib/helpers → helpers}/communicationTemplate/newMember.js +0 -0
  164. /package/{lib/helpers → helpers}/countries.d.ts +0 -0
  165. /package/{lib/helpers → helpers}/countries.js +0 -0
  166. /package/{lib/helpers → helpers}/currency.d.ts +0 -0
  167. /package/{lib/helpers → helpers}/currency.js +0 -0
  168. /package/{lib/helpers → helpers}/dlinks.d.ts +0 -0
  169. /package/{lib/helpers → helpers}/dlinks.js +0 -0
  170. /package/{lib/helpers → helpers}/errors.d.ts +0 -0
  171. /package/{lib/helpers → helpers}/errors.js +0 -0
  172. /package/{lib/helpers → helpers}/fileSections/index.d.ts +0 -0
  173. /package/{lib/helpers → helpers}/fileSections/index.js +0 -0
  174. /package/{lib/helpers → helpers}/fileSections/orders.d.ts +0 -0
  175. /package/{lib/helpers → helpers}/fileSections/orders.js +0 -0
  176. /package/{lib/helpers → helpers}/glissandooAdmin.d.ts +0 -0
  177. /package/{lib/helpers → helpers}/glissandooAdmin.js +0 -0
  178. /package/{lib/helpers → helpers}/instruments/index.d.ts +0 -0
  179. /package/{lib/helpers → helpers}/instruments/index.js +0 -0
  180. /package/{lib/helpers → helpers}/instruments/lists.d.ts +0 -0
  181. /package/{lib/helpers → helpers}/instruments/lists.js +0 -0
  182. /package/{lib/helpers → helpers}/instruments/orders.d.ts +0 -0
  183. /package/{lib/helpers → helpers}/instruments/orders.js +0 -0
  184. /package/{lib/helpers → helpers}/musicStyles/index.d.ts +0 -0
  185. /package/{lib/helpers → helpers}/musicStyles/index.js +0 -0
  186. /package/{lib/helpers → helpers}/musicStyles/orders.d.ts +0 -0
  187. /package/{lib/helpers → helpers}/musicStyles/orders.js +0 -0
  188. /package/{lib/helpers → helpers}/notifications/index.d.ts +0 -0
  189. /package/{lib/helpers → helpers}/notifications/index.js +0 -0
  190. /package/{lib/helpers → helpers}/notifications/placeholders.d.ts +0 -0
  191. /package/{lib/helpers → helpers}/notifications/placeholders.js +0 -0
  192. /package/{lib/helpers → helpers}/objects.d.ts +0 -0
  193. /package/{lib/helpers → helpers}/objects.js +0 -0
  194. /package/{lib/helpers → helpers}/paymentForecast.d.ts +0 -0
  195. /package/{lib/helpers → helpers}/paymentForecast.js +0 -0
  196. /package/{lib/helpers → helpers}/payoutRules.d.ts +0 -0
  197. /package/{lib/helpers → helpers}/payoutRules.js +0 -0
  198. /package/{lib/helpers → helpers}/plans.d.ts +0 -0
  199. /package/{lib/helpers → helpers}/plans.js +0 -0
  200. /package/{lib/helpers → helpers}/rates.d.ts +0 -0
  201. /package/{lib/helpers → helpers}/rates.js +0 -0
  202. /package/{lib/helpers → helpers}/reasons.d.ts +0 -0
  203. /package/{lib/helpers → helpers}/reasons.js +0 -0
  204. /package/{lib/helpers → helpers}/slate.d.ts +0 -0
  205. /package/{lib/helpers → helpers}/slate.js +0 -0
  206. /package/{lib/helpers → helpers}/styles.d.ts +0 -0
  207. /package/{lib/helpers → helpers}/styles.js +0 -0
  208. /package/{lib/helpers → helpers}/ts-extras/array-includes.d.ts +0 -0
  209. /package/{lib/helpers → helpers}/ts-extras/array-includes.js +0 -0
  210. /package/{lib/helpers → helpers}/ts-extras/as-mutable.d.ts +0 -0
  211. /package/{lib/helpers → helpers}/ts-extras/as-mutable.js +0 -0
  212. /package/{lib/helpers → helpers}/ts-extras/assert-error.d.ts +0 -0
  213. /package/{lib/helpers → helpers}/ts-extras/assert-error.js +0 -0
  214. /package/{lib/helpers → helpers}/ts-extras/index.d.ts +0 -0
  215. /package/{lib/helpers → helpers}/ts-extras/index.js +0 -0
  216. /package/{lib/helpers → helpers}/ts-extras/is-defined.d.ts +0 -0
  217. /package/{lib/helpers → helpers}/ts-extras/is-defined.js +0 -0
  218. /package/{lib/helpers → helpers}/ts-extras/is-empty.d.ts +0 -0
  219. /package/{lib/helpers → helpers}/ts-extras/is-empty.js +0 -0
  220. /package/{lib/helpers → helpers}/ts-extras/is-finite.d.ts +0 -0
  221. /package/{lib/helpers → helpers}/ts-extras/is-finite.js +0 -0
  222. /package/{lib/helpers → helpers}/ts-extras/is-infinite.d.ts +0 -0
  223. /package/{lib/helpers → helpers}/ts-extras/is-infinite.js +0 -0
  224. /package/{lib/helpers → helpers}/ts-extras/is-integer.d.ts +0 -0
  225. /package/{lib/helpers → helpers}/ts-extras/is-integer.js +0 -0
  226. /package/{lib/helpers → helpers}/ts-extras/is-present.d.ts +0 -0
  227. /package/{lib/helpers → helpers}/ts-extras/is-present.js +0 -0
  228. /package/{lib/helpers → helpers}/ts-extras/is-safe-integer.d.ts +0 -0
  229. /package/{lib/helpers → helpers}/ts-extras/is-safe-integer.js +0 -0
  230. /package/{lib/helpers → helpers}/ts-extras/object-entries.d.ts +0 -0
  231. /package/{lib/helpers → helpers}/ts-extras/object-entries.js +0 -0
  232. /package/{lib/helpers → helpers}/ts-extras/object-from-entries.d.ts +0 -0
  233. /package/{lib/helpers → helpers}/ts-extras/object-from-entries.js +0 -0
  234. /package/{lib/helpers → helpers}/ts-extras/object-has-own.d.ts +0 -0
  235. /package/{lib/helpers → helpers}/ts-extras/object-has-own.js +0 -0
  236. /package/{lib/helpers → helpers}/ts-extras/object-keys.d.ts +0 -0
  237. /package/{lib/helpers → helpers}/ts-extras/object-keys.js +0 -0
  238. /package/{lib/helpers → helpers}/ts-extras/set-has.d.ts +0 -0
  239. /package/{lib/helpers → helpers}/ts-extras/set-has.js +0 -0
  240. /package/{lib/helpers → helpers}/types.d.ts +0 -0
  241. /package/{lib/helpers → helpers}/types.js +0 -0
  242. /package/{lib/helpers → helpers}/utils.d.ts +0 -0
  243. /package/{lib/helpers → helpers}/utils.js +0 -0
  244. /package/{lib/index.d.ts → index.d.ts} +0 -0
  245. /package/{lib/index.js → index.js} +0 -0
  246. /package/{lib/lang → lang}/ca.json +0 -0
  247. /package/{lib/lang → lang}/de.json +0 -0
  248. /package/{lib/lang → lang}/en.json +0 -0
  249. /package/{lib/lang → lang}/es.json +0 -0
  250. /package/{lib/lang → lang}/eu.json +0 -0
  251. /package/{lib/lang → lang}/fr.json +0 -0
  252. /package/{lib/lang → lang}/gl.json +0 -0
  253. /package/{lib/lang → lang}/index.d.ts +0 -0
  254. /package/{lib/lang → lang}/index.js +0 -0
  255. /package/{lib/lang → lang}/it.json +0 -0
  256. /package/{lib/lang → lang}/nl.json +0 -0
  257. /package/{lib/lang → lang}/pt.json +0 -0
  258. /package/{lib/models → models}/Communication/Comment/index.d.ts +0 -0
  259. /package/{lib/models → models}/Communication/Comment/index.js +0 -0
  260. /package/{lib/models → models}/Communication/Comment/types.d.ts +0 -0
  261. /package/{lib/models → models}/Communication/Comment/types.js +0 -0
  262. /package/{lib/models → models}/Communication/index.d.ts +0 -0
  263. /package/{lib/models → models}/Communication/index.js +0 -0
  264. /package/{lib/models → models}/Communication/types.d.ts +0 -0
  265. /package/{lib/models → models}/Communication/types.js +0 -0
  266. /package/{lib/models → models}/Counters/Group/Analytics/index.d.ts +0 -0
  267. /package/{lib/models → models}/Counters/Group/Analytics/index.js +0 -0
  268. /package/{lib/models → models}/Counters/Group/Analytics/types.d.ts +0 -0
  269. /package/{lib/models → models}/Counters/Group/Analytics/types.js +0 -0
  270. /package/{lib/models → models}/Counters/Group/index.d.ts +0 -0
  271. /package/{lib/models → models}/Counters/Group/index.js +0 -0
  272. /package/{lib/models → models}/Counters/Group/types.d.ts +0 -0
  273. /package/{lib/models → models}/Counters/Group/types.js +0 -0
  274. /package/{lib/models → models}/Counters/event.d.ts +0 -0
  275. /package/{lib/models → models}/Counters/event.js +0 -0
  276. /package/{lib/models → models}/Counters/index.d.ts +0 -0
  277. /package/{lib/models → models}/Counters/index.js +0 -0
  278. /package/{lib/models → models}/Counters/types.d.ts +0 -0
  279. /package/{lib/models → models}/Counters/types.js +0 -0
  280. /package/{lib/models → models}/Customer/Group/index.d.ts +0 -0
  281. /package/{lib/models → models}/Customer/Group/index.js +0 -0
  282. /package/{lib/models → models}/Customer/Group/types.d.ts +0 -0
  283. /package/{lib/models → models}/Customer/Group/types.js +0 -0
  284. /package/{lib/models → models}/Customer/basic.d.ts +0 -0
  285. /package/{lib/models → models}/Customer/basic.js +0 -0
  286. /package/{lib/models → models}/Customer/index.d.ts +0 -0
  287. /package/{lib/models → models}/Customer/index.js +0 -0
  288. /package/{lib/models → models}/Customer/types.d.ts +0 -0
  289. /package/{lib/models → models}/Customer/types.js +0 -0
  290. /package/{lib/models → models}/Evento/Player/basic.d.ts +0 -0
  291. /package/{lib/models → models}/Evento/Player/basic.js +0 -0
  292. /package/{lib/models → models}/Evento/Player/index.d.ts +0 -0
  293. /package/{lib/models → models}/Evento/Player/index.js +0 -0
  294. /package/{lib/models → models}/Evento/Player/types.d.ts +0 -0
  295. /package/{lib/models → models}/Evento/Player/types.js +0 -0
  296. /package/{lib/models → models}/Evento/Repertory/index.d.ts +0 -0
  297. /package/{lib/models → models}/Evento/Repertory/index.js +0 -0
  298. /package/{lib/models → models}/Evento/Repertory/types.d.ts +0 -0
  299. /package/{lib/models → models}/Evento/Repertory/types.js +0 -0
  300. /package/{lib/models → models}/Evento/basic.d.ts +0 -0
  301. /package/{lib/models → models}/Evento/basic.js +0 -0
  302. /package/{lib/models → models}/Evento/index.d.ts +0 -0
  303. /package/{lib/models → models}/Evento/index.js +0 -0
  304. /package/{lib/models → models}/Evento/promoter.d.ts +0 -0
  305. /package/{lib/models → models}/Evento/promoter.js +0 -0
  306. /package/{lib/models → models}/Evento/tiny.d.ts +0 -0
  307. /package/{lib/models → models}/Evento/tiny.js +0 -0
  308. /package/{lib/models → models}/Evento/types.d.ts +0 -0
  309. /package/{lib/models → models}/Evento/types.js +0 -0
  310. /package/{lib/models → models}/Federation/Partnership/index.d.ts +0 -0
  311. /package/{lib/models → models}/Federation/Partnership/index.js +0 -0
  312. /package/{lib/models → models}/Federation/Partnership/types.d.ts +0 -0
  313. /package/{lib/models → models}/Federation/Partnership/types.js +0 -0
  314. /package/{lib/models → models}/Federation/index.d.ts +0 -0
  315. /package/{lib/models → models}/Federation/index.js +0 -0
  316. /package/{lib/models → models}/Federation/types.d.ts +0 -0
  317. /package/{lib/models → models}/Federation/types.js +0 -0
  318. /package/{lib/models → models}/Group/Analytics/index.d.ts +0 -0
  319. /package/{lib/models → models}/Group/Analytics/index.js +0 -0
  320. /package/{lib/models → models}/Group/Analytics/types.d.ts +0 -0
  321. /package/{lib/models → models}/Group/Analytics/types.js +0 -0
  322. /package/{lib/models → models}/Group/Event/index.d.ts +0 -0
  323. /package/{lib/models → models}/Group/Event/index.js +0 -0
  324. /package/{lib/models → models}/Group/Event/types.d.ts +0 -0
  325. /package/{lib/models → models}/Group/Event/types.js +0 -0
  326. /package/{lib/models → models}/Group/Payment/index.d.ts +0 -0
  327. /package/{lib/models → models}/Group/Payment/index.js +0 -0
  328. /package/{lib/models → models}/Group/Payment/supabase.d.ts +0 -0
  329. /package/{lib/models → models}/Group/Payment/supabase.js +0 -0
  330. /package/{lib/models → models}/Group/Payment/types.d.ts +0 -0
  331. /package/{lib/models → models}/Group/Payment/types.js +0 -0
  332. /package/{lib/models → models}/Group/Player/Event/index.d.ts +0 -0
  333. /package/{lib/models → models}/Group/Player/Event/index.js +0 -0
  334. /package/{lib/models → models}/Group/Player/Event/types.d.ts +0 -0
  335. /package/{lib/models → models}/Group/Player/Event/types.js +0 -0
  336. /package/{lib/models → models}/Group/Player/Log/index.d.ts +0 -0
  337. /package/{lib/models → models}/Group/Player/Log/index.js +0 -0
  338. /package/{lib/models → models}/Group/Player/Log/types.d.ts +0 -0
  339. /package/{lib/models → models}/Group/Player/Log/types.js +0 -0
  340. /package/{lib/models → models}/Group/Player/index.d.ts +0 -0
  341. /package/{lib/models → models}/Group/Player/index.js +0 -0
  342. /package/{lib/models → models}/Group/Player/types.d.ts +0 -0
  343. /package/{lib/models → models}/Group/Player/types.js +0 -0
  344. /package/{lib/models → models}/Group/Repertory/File/Section/index.d.ts +0 -0
  345. /package/{lib/models → models}/Group/Repertory/File/Section/index.js +0 -0
  346. /package/{lib/models → models}/Group/Repertory/File/Section/types.d.ts +0 -0
  347. /package/{lib/models → models}/Group/Repertory/File/Section/types.js +0 -0
  348. /package/{lib/models → models}/Group/Repertory/File/index.d.ts +0 -0
  349. /package/{lib/models → models}/Group/Repertory/File/index.js +0 -0
  350. /package/{lib/models → models}/Group/Repertory/File/types.d.ts +0 -0
  351. /package/{lib/models → models}/Group/Repertory/File/types.js +0 -0
  352. /package/{lib/models → models}/Group/Repertory/FilePath/index.d.ts +0 -0
  353. /package/{lib/models → models}/Group/Repertory/FilePath/index.js +0 -0
  354. /package/{lib/models → models}/Group/Repertory/index.d.ts +0 -0
  355. /package/{lib/models → models}/Group/Repertory/index.js +0 -0
  356. /package/{lib/models → models}/Group/Repertory/types.d.ts +0 -0
  357. /package/{lib/models → models}/Group/Repertory/types.js +0 -0
  358. /package/{lib/models → models}/Group/StageTemplate/index.d.ts +0 -0
  359. /package/{lib/models → models}/Group/StageTemplate/index.js +0 -0
  360. /package/{lib/models → models}/Group/StageTemplate/types.d.ts +0 -0
  361. /package/{lib/models → models}/Group/StageTemplate/types.js +0 -0
  362. /package/{lib/models → models}/Group/basic.d.ts +0 -0
  363. /package/{lib/models → models}/Group/basic.js +0 -0
  364. /package/{lib/models → models}/Group/index.d.ts +0 -0
  365. /package/{lib/models → models}/Group/index.js +0 -0
  366. /package/{lib/models → models}/Group/types.d.ts +0 -0
  367. /package/{lib/models → models}/Group/types.js +0 -0
  368. /package/{lib/models → models}/Instrument/group.d.ts +0 -0
  369. /package/{lib/models → models}/Instrument/group.js +0 -0
  370. /package/{lib/models → models}/Instrument/index.d.ts +0 -0
  371. /package/{lib/models → models}/Instrument/index.js +0 -0
  372. /package/{lib/models → models}/Inventory/Item/index.d.ts +0 -0
  373. /package/{lib/models → models}/Inventory/Item/index.js +0 -0
  374. /package/{lib/models → models}/Inventory/Item/types.d.ts +0 -0
  375. /package/{lib/models → models}/Inventory/Item/types.js +0 -0
  376. /package/{lib/models → models}/Inventory/index.d.ts +0 -0
  377. /package/{lib/models → models}/Inventory/index.js +0 -0
  378. /package/{lib/models → models}/Inventory/types.d.ts +0 -0
  379. /package/{lib/models → models}/Inventory/types.js +0 -0
  380. /package/{lib/models → models}/Metrics/index.d.ts +0 -0
  381. /package/{lib/models → models}/Metrics/index.js +0 -0
  382. /package/{lib/models → models}/Metrics/types.d.ts +0 -0
  383. /package/{lib/models → models}/Metrics/types.js +0 -0
  384. /package/{lib/models → models}/Model/index.d.ts +0 -0
  385. /package/{lib/models → models}/Model/index.js +0 -0
  386. /package/{lib/models → models}/Model/lang.d.ts +0 -0
  387. /package/{lib/models → models}/Model/lang.js +0 -0
  388. /package/{lib/models → models}/MusicStyle/index.d.ts +0 -0
  389. /package/{lib/models → models}/MusicStyle/index.js +0 -0
  390. /package/{lib/models → models}/Notification/index.d.ts +0 -0
  391. /package/{lib/models → models}/Notification/index.js +0 -0
  392. /package/{lib/models → models}/Notification/types.d.ts +0 -0
  393. /package/{lib/models → models}/Notification/types.js +0 -0
  394. /package/{lib/models → models}/Offer/Applicant/index.d.ts +0 -0
  395. /package/{lib/models → models}/Offer/Applicant/index.js +0 -0
  396. /package/{lib/models → models}/Offer/Applicant/types.d.ts +0 -0
  397. /package/{lib/models → models}/Offer/Applicant/types.js +0 -0
  398. /package/{lib/models → models}/Offer/index.d.ts +0 -0
  399. /package/{lib/models → models}/Offer/index.js +0 -0
  400. /package/{lib/models → models}/Offer/types.d.ts +0 -0
  401. /package/{lib/models → models}/Offer/types.js +0 -0
  402. /package/{lib/models → models}/Partnership/Communication/index.d.ts +0 -0
  403. /package/{lib/models → models}/Partnership/Communication/index.js +0 -0
  404. /package/{lib/models → models}/Partnership/Communication/supabase.d.ts +0 -0
  405. /package/{lib/models → models}/Partnership/Communication/supabase.js +0 -0
  406. /package/{lib/models → models}/Partnership/Communication/types.d.ts +0 -0
  407. /package/{lib/models → models}/Partnership/Communication/types.js +0 -0
  408. /package/{lib/models → models}/Partnership/Group/index.d.ts +0 -0
  409. /package/{lib/models → models}/Partnership/Group/index.js +0 -0
  410. /package/{lib/models → models}/Partnership/Group/supabase.d.ts +0 -0
  411. /package/{lib/models → models}/Partnership/Group/supabase.js +0 -0
  412. /package/{lib/models → models}/Partnership/Group/types.d.ts +0 -0
  413. /package/{lib/models → models}/Partnership/Group/types.js +0 -0
  414. /package/{lib/models → models}/Partnership/Partner/index.d.ts +0 -0
  415. /package/{lib/models → models}/Partnership/Partner/index.js +0 -0
  416. /package/{lib/models → models}/Partnership/Partner/supabase.d.ts +0 -0
  417. /package/{lib/models → models}/Partnership/Partner/supabase.js +0 -0
  418. /package/{lib/models → models}/Partnership/Partner/types.d.ts +0 -0
  419. /package/{lib/models → models}/Partnership/Partner/types.js +0 -0
  420. /package/{lib/models → models}/Partnership/Payment/index.d.ts +0 -0
  421. /package/{lib/models → models}/Partnership/Payment/index.js +0 -0
  422. /package/{lib/models → models}/Partnership/Payment/supabase.d.ts +0 -0
  423. /package/{lib/models → models}/Partnership/Payment/supabase.js +0 -0
  424. /package/{lib/models → models}/Partnership/Payment/types.d.ts +0 -0
  425. /package/{lib/models → models}/Partnership/Payment/types.js +0 -0
  426. /package/{lib/models → models}/Partnership/Plan/index.d.ts +0 -0
  427. /package/{lib/models → models}/Partnership/Plan/index.js +0 -0
  428. /package/{lib/models → models}/Partnership/Plan/supabase.d.ts +0 -0
  429. /package/{lib/models → models}/Partnership/Plan/supabase.js +0 -0
  430. /package/{lib/models → models}/Partnership/Plan/types.d.ts +0 -0
  431. /package/{lib/models → models}/Partnership/Plan/types.js +0 -0
  432. /package/{lib/models → models}/Partnership/SepaPaymentGroup/index.d.ts +0 -0
  433. /package/{lib/models → models}/Partnership/SepaPaymentGroup/index.js +0 -0
  434. /package/{lib/models → models}/Partnership/SepaPaymentGroup/supabase.d.ts +0 -0
  435. /package/{lib/models → models}/Partnership/SepaPaymentGroup/supabase.js +0 -0
  436. /package/{lib/models → models}/Partnership/SepaPaymentGroup/types.d.ts +0 -0
  437. /package/{lib/models → models}/Partnership/SepaPaymentGroup/types.js +0 -0
  438. /package/{lib/models → models}/Partnership/Subscription/index.d.ts +0 -0
  439. /package/{lib/models → models}/Partnership/Subscription/index.js +0 -0
  440. /package/{lib/models → models}/Partnership/Subscription/supabase.d.ts +0 -0
  441. /package/{lib/models → models}/Partnership/Subscription/supabase.js +0 -0
  442. /package/{lib/models → models}/Partnership/Subscription/types.d.ts +0 -0
  443. /package/{lib/models → models}/Partnership/Subscription/types.js +0 -0
  444. /package/{lib/models → models}/Partnership/basic.d.ts +0 -0
  445. /package/{lib/models → models}/Partnership/basic.js +0 -0
  446. /package/{lib/models → models}/Partnership/index.d.ts +0 -0
  447. /package/{lib/models → models}/Partnership/index.js +0 -0
  448. /package/{lib/models → models}/Partnership/types.d.ts +0 -0
  449. /package/{lib/models → models}/Partnership/types.js +0 -0
  450. /package/{lib/models → models}/Player/basic.d.ts +0 -0
  451. /package/{lib/models → models}/Player/basic.js +0 -0
  452. /package/{lib/models → models}/Player/types.d.ts +0 -0
  453. /package/{lib/models → models}/Player/types.js +0 -0
  454. /package/{lib/models → models}/Repertory/basic.d.ts +0 -0
  455. /package/{lib/models → models}/Repertory/basic.js +0 -0
  456. /package/{lib/models → models}/Repertory/types.d.ts +0 -0
  457. /package/{lib/models → models}/Repertory/types.js +0 -0
  458. /package/{lib/models → models}/User/Group/index.d.ts +0 -0
  459. /package/{lib/models → models}/User/Group/index.js +0 -0
  460. /package/{lib/models → models}/User/Group/types.d.ts +0 -0
  461. /package/{lib/models → models}/User/Group/types.js +0 -0
  462. /package/{lib/models → models}/User/Notification/index.d.ts +0 -0
  463. /package/{lib/models → models}/User/Notification/index.js +0 -0
  464. /package/{lib/models → models}/User/Notification/types.d.ts +0 -0
  465. /package/{lib/models → models}/User/Notification/types.js +0 -0
  466. /package/{lib/models → models}/User/OfferAlarm/index.d.ts +0 -0
  467. /package/{lib/models → models}/User/OfferAlarm/index.js +0 -0
  468. /package/{lib/models → models}/User/OfferAlarm/types.d.ts +0 -0
  469. /package/{lib/models → models}/User/OfferAlarm/types.js +0 -0
  470. /package/{lib/models → models}/User/Partnership/index.d.ts +0 -0
  471. /package/{lib/models → models}/User/Partnership/index.js +0 -0
  472. /package/{lib/models → models}/User/Partnership/types.d.ts +0 -0
  473. /package/{lib/models → models}/User/Partnership/types.js +0 -0
  474. /package/{lib/models → models}/User/basic.d.ts +0 -0
  475. /package/{lib/models → models}/User/basic.js +0 -0
  476. /package/{lib/models → models}/User/extended.d.ts +0 -0
  477. /package/{lib/models → models}/User/extended.js +0 -0
  478. /package/{lib/models → models}/User/index.d.ts +0 -0
  479. /package/{lib/models → models}/User/index.js +0 -0
  480. /package/{lib/models → models}/User/types.d.ts +0 -0
  481. /package/{lib/models → models}/User/types.js +0 -0
  482. /package/{lib/models → models}/WebhookEvent/index.d.ts +0 -0
  483. /package/{lib/models → models}/WebhookEvent/index.js +0 -0
  484. /package/{lib/models → models}/WebhookEvent/types.d.ts +0 -0
  485. /package/{lib/models → models}/WebhookEvent/types.js +0 -0
  486. /package/{lib/types → types}/firestore.d.ts +0 -0
  487. /package/{lib/types → types}/firestore.js +0 -0
  488. /package/{lib/types → types}/messagebirdChatWidget.d.ts +0 -0
  489. /package/{lib/types → types}/messagebirdChatWidget.js +0 -0
  490. /package/{lib/types → types}/minVersion.d.ts +0 -0
  491. /package/{lib/types → types}/minVersion.js +0 -0
  492. /package/{lib/types → types}/payoutRule.d.ts +0 -0
  493. /package/{lib/types → types}/payoutRule.js +0 -0
  494. /package/{lib/types → types}/supabase/generated.d.ts +0 -0
  495. /package/{lib/types → types}/supabase/generated.js +0 -0
  496. /package/{lib/types → types}/supabase/index.d.ts +0 -0
  497. /package/{lib/types → types}/supabase/index.js +0 -0
  498. /package/{lib/types → types}/supabase/overwrites/comm.d.ts +0 -0
  499. /package/{lib/types → types}/supabase/overwrites/comm.js +0 -0
  500. /package/{lib/types → types}/supabase/overwrites/comm_history.d.ts +0 -0
  501. /package/{lib/types → types}/supabase/overwrites/comm_history.js +0 -0
  502. /package/{lib/types → types}/supabase/overwrites/event.d.ts +0 -0
  503. /package/{lib/types → types}/supabase/overwrites/event.js +0 -0
  504. /package/{lib/types → types}/supabase/overwrites/event_history.d.ts +0 -0
  505. /package/{lib/types → types}/supabase/overwrites/event_history.js +0 -0
  506. /package/{lib/types → types}/supabase/overwrites/group.d.ts +0 -0
  507. /package/{lib/types → types}/supabase/overwrites/group.js +0 -0
  508. /package/{lib/types → types}/supabase/overwrites/group_history.d.ts +0 -0
  509. /package/{lib/types → types}/supabase/overwrites/group_history.js +0 -0
  510. /package/{lib/types → types}/supabase/overwrites/index.d.ts +0 -0
  511. /package/{lib/types → types}/supabase/overwrites/index.js +0 -0
  512. /package/{lib/types → types}/supabase/overwrites/offer.d.ts +0 -0
  513. /package/{lib/types → types}/supabase/overwrites/offer.js +0 -0
  514. /package/{lib/types → types}/supabase/overwrites/offer_history.d.ts +0 -0
  515. /package/{lib/types → types}/supabase/overwrites/offer_history.js +0 -0
  516. /package/{lib/types → types}/supabase/overwrites/repertoire.d.ts +0 -0
  517. /package/{lib/types → types}/supabase/overwrites/repertoire.js +0 -0
  518. /package/{lib/types → types}/supabase/overwrites/repertoire_history.d.ts +0 -0
  519. /package/{lib/types → types}/supabase/overwrites/repertoire_history.js +0 -0
  520. /package/{lib/types → types}/supabase/overwrites/utils.d.ts +0 -0
  521. /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,10 @@
1
+ export interface CommHistory {
2
+ id: string;
3
+ comm_id: string;
4
+ user_id: string;
5
+ group_id: string;
6
+ action: string;
7
+ created_at: string;
8
+ value: Record<string, unknown> | null;
9
+ prev_value: Record<string, unknown> | null;
10
+ }
@@ -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,10 @@
1
+ export interface EventHistory {
2
+ id: string;
3
+ event_id: string;
4
+ user_id: string;
5
+ group_id: string;
6
+ action: string;
7
+ created_at: string;
8
+ value: Record<string, unknown> | null;
9
+ prev_value: Record<string, unknown> | null;
10
+ }
@@ -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,9 @@
1
+ export interface GroupHistory {
2
+ id: string;
3
+ user_id: string;
4
+ group_id: string;
5
+ action: string;
6
+ created_at: string;
7
+ value: Record<string, unknown> | null;
8
+ prev_value: Record<string, unknown> | null;
9
+ }
@@ -0,0 +1,7 @@
1
+ import { SetOptional } from 'type-fest';
2
+
3
+ export type Overwrite<T, OptionalKeysInInsert extends keyof T | never = never> = {
4
+ Row: T;
5
+ Insert: [OptionalKeysInInsert] extends [never] ? T : SetOptional<T, OptionalKeysInInsert>;
6
+ Update: Partial<T>;
7
+ };
@@ -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,10 @@
1
+ export interface OfferHistory {
2
+ id: string;
3
+ offer_id: string;
4
+ user_id: string;
5
+ group_id: string;
6
+ action: string;
7
+ created_at: string;
8
+ value: Record<string, unknown> | null;
9
+ prev_value: Record<string, unknown> | null;
10
+ }
@@ -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
+ }
@@ -0,0 +1,10 @@
1
+ export interface RepertoireHistory {
2
+ id: string;
3
+ theme_id: string;
4
+ user_id: string;
5
+ group_id: string;
6
+ action: string;
7
+ created_at: string;
8
+ value: Record<string, unknown> | null;
9
+ prev_value: Record<string, unknown> | null;
10
+ }
@@ -0,0 +1,4 @@
1
+ export type Location = {
2
+ latitude: number;
3
+ longitude: number;
4
+ };
package/.firebaserc DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "projects": {
3
- "default": "glissandoo-dev-78ed4",
4
- "production": "glissandoo-6eb90",
5
- "dev": "glissandoo-dev-78ed4"
6
- }
7
- }
package/.husky/pre-commit DELETED
@@ -1,4 +0,0 @@
1
- #!/bin/sh
2
- . "$(dirname "$0")/_/husky.sh"
3
-
4
- npx lint-staged --no-stash
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.
@@ -1,11 +0,0 @@
1
- const isProduction = process.env.NODE_ENV === 'production';
2
- const isCi = process.env.CI !== undefined;
3
-
4
- const main = async () => {
5
- if (!isCi && !isProduction) {
6
- const husky = await import('husky');
7
- husky.install();
8
- }
9
- };
10
-
11
- main();
package/supabase/.dev.env DELETED
@@ -1 +0,0 @@
1
- SUPABASE_DB_PASSWORD=hPqPnsF0QPfOJc9f
@@ -1 +0,0 @@
1
- SUPABASE_DB_PASSWORD=OQ9vRUfB328QdojG
@@ -1,2 +0,0 @@
1
- SUPABASE_PROJECT_REF=sample_project_ref
2
- SUPABASE_DB_PASSWORD=sample_password
@@ -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`.
@@ -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 = ""