@glissandoo/lib 1.123.3 → 1.124.0-dev.220.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (360) hide show
  1. package/functions/auth.d.ts +3 -1
  2. package/functions/composer.d.ts +13 -0
  3. package/functions/composerComposition.d.ts +102 -0
  4. package/functions/composerNotification.d.ts +38 -0
  5. package/functions/composerPayout.d.ts +20 -0
  6. package/functions/customer.d.ts +4 -0
  7. package/functions/event.js +1 -1
  8. package/functions/eventPlayer.js +1 -1
  9. package/functions/eventRepertory.d.ts +2 -0
  10. package/functions/eventRepertory.js +1 -1
  11. package/functions/groupRepertory.d.ts +110 -0
  12. package/functions/index.d.ts +30 -0
  13. package/functions/index.js +31 -1
  14. package/functions/misc.d.ts +6 -0
  15. package/functions/regions.js +31 -1
  16. package/helpers/appScenes.js +1 -1
  17. package/helpers/auth.d.ts +2 -9
  18. package/helpers/auth.js +33 -14
  19. package/helpers/badges.js +1 -1
  20. package/helpers/catalogBridge.d.ts +121 -0
  21. package/helpers/catalogBridge.js +95 -0
  22. package/helpers/collections.js +2 -2
  23. package/helpers/communicationTemplate/index.d.ts +3 -2
  24. package/helpers/communicationTemplate/index.js +5 -5
  25. package/helpers/compositionCategories/genres.d.ts +922 -0
  26. package/helpers/compositionCategories/genres.js +940 -0
  27. package/helpers/compositionCategories/index.d.ts +2 -0
  28. package/helpers/compositionCategories/index.js +18 -0
  29. package/helpers/compositionCategories/styles.d.ts +181 -0
  30. package/helpers/compositionCategories/styles.js +197 -0
  31. package/helpers/compositionSoloistOffstageParts/index.d.ts +34 -0
  32. package/helpers/compositionSoloistOffstageParts/index.js +117 -0
  33. package/helpers/currency.d.ts +19 -0
  34. package/helpers/currency.js +71 -2
  35. package/helpers/currencyConversion.d.ts +45 -0
  36. package/helpers/currencyConversion.js +119 -0
  37. package/helpers/dataStructures/trees/index.d.ts +12 -0
  38. package/helpers/dataStructures/trees/index.js +71 -0
  39. package/helpers/dataStructures/trees/types.d.ts +14 -0
  40. package/helpers/dataStructures/trees/types.js +5 -0
  41. package/helpers/dlinks.js +1 -1
  42. package/helpers/errors.d.ts +1 -0
  43. package/helpers/errors.js +2 -1
  44. package/helpers/externalUrls.d.ts +12 -0
  45. package/helpers/externalUrls.js +40 -0
  46. package/helpers/instruments/index.d.ts +17 -0
  47. package/helpers/instruments/index.js +5 -1
  48. package/helpers/instruments/lists.d.ts +3 -3
  49. package/helpers/instruments/lists.js +5 -5
  50. package/helpers/musicStyles/index.d.ts +22 -4
  51. package/helpers/musicStyles/index.js +114 -35
  52. package/helpers/notifications/index.js +1 -1
  53. package/helpers/objects.d.ts +5 -1
  54. package/helpers/objects.js +7 -6
  55. package/helpers/paymentForecast.js +1 -2
  56. package/helpers/payoutRules.js +3 -4
  57. package/helpers/plans.js +2 -2
  58. package/helpers/rates.d.ts +1 -1
  59. package/helpers/slate.d.ts +64 -5
  60. package/helpers/slate.js +7 -1
  61. package/helpers/ts-extras/array-includes.js +1 -2
  62. package/helpers/ts-extras/as-mutable.js +1 -2
  63. package/helpers/ts-extras/assert-error.js +1 -2
  64. package/helpers/ts-extras/index.js +1 -1
  65. package/helpers/ts-extras/is-defined.js +1 -2
  66. package/helpers/ts-extras/is-empty.js +1 -2
  67. package/helpers/ts-extras/is-infinite.js +1 -2
  68. package/helpers/ts-extras/is-present.js +1 -2
  69. package/helpers/ts-extras/object-entries.d.ts +1 -1
  70. package/helpers/ts-extras/object-from-entries.d.ts +1 -1
  71. package/helpers/ts-extras/object-has-own.js +1 -2
  72. package/helpers/ts-extras/object-keys.d.ts +1 -1
  73. package/helpers/ts-extras/object-keys.js +0 -1
  74. package/helpers/ts-extras/set-has.js +1 -2
  75. package/helpers/types.d.ts +26 -0
  76. package/helpers/types.js +26 -6
  77. package/lang/ca.json +325 -91
  78. package/lang/de.json +325 -91
  79. package/lang/en.json +325 -91
  80. package/lang/es.json +325 -91
  81. package/lang/eu.json +325 -91
  82. package/lang/fr.json +325 -91
  83. package/lang/gl.json +325 -91
  84. package/lang/index.js +3 -2
  85. package/lang/it.json +325 -91
  86. package/lang/nl.json +325 -91
  87. package/lang/pt.json +325 -91
  88. package/models/Communication/types.d.ts +0 -16
  89. package/models/Communication/types.js +3 -9
  90. package/models/CompositionGenre/index.d.ts +9 -0
  91. package/models/CompositionGenre/index.js +16 -0
  92. package/models/CompositionStyle/index.d.ts +9 -0
  93. package/models/CompositionStyle/index.js +16 -0
  94. package/models/Counters/Group/Analytics/types.js +1 -1
  95. package/models/Customer/index.d.ts +1 -1
  96. package/models/Customer/index.js +3 -3
  97. package/models/Customer/types.js +1 -1
  98. package/models/Evento/Player/types.js +3 -3
  99. package/models/Evento/Repertory/types.d.ts +2 -1
  100. package/models/Evento/index.d.ts +3 -2
  101. package/models/Evento/index.js +5 -4
  102. package/models/Evento/types.d.ts +3 -34
  103. package/models/Evento/types.js +9 -41
  104. package/models/Federation/index.d.ts +1 -1
  105. package/models/Federation/index.js +3 -3
  106. package/models/Group/Analytics/types.js +1 -1
  107. package/models/Group/Payment/supabase.js +3 -3
  108. package/models/Group/Payment/types.js +5 -5
  109. package/models/Group/Player/types.js +1 -1
  110. package/models/Group/Repertory/File/Section/index.d.ts +3 -3
  111. package/models/Group/Repertory/File/Section/index.js +3 -2
  112. package/models/Group/Repertory/File/Section/types.d.ts +7 -0
  113. package/models/Group/Repertory/File/Section/types.js +1 -1
  114. package/models/Group/Repertory/File/index.d.ts +4 -2
  115. package/models/Group/Repertory/File/index.js +4 -4
  116. package/models/Group/Repertory/FilePath/index.d.ts +3 -4
  117. package/models/Group/Repertory/index.d.ts +12 -4
  118. package/models/Group/Repertory/index.js +9 -0
  119. package/models/Group/Repertory/types.d.ts +21 -32
  120. package/models/Group/Repertory/types.js +8 -18
  121. package/models/Group/index.d.ts +7 -2
  122. package/models/Group/index.js +14 -0
  123. package/models/Group/types.d.ts +2 -21
  124. package/models/Group/types.js +14 -33
  125. package/models/Instrument/fromRecord.d.ts +11 -0
  126. package/models/Instrument/fromRecord.js +33 -0
  127. package/models/Instrument/index.d.ts +2 -0
  128. package/models/Instrument/index.js +38 -1
  129. package/models/Inventory/Item/types.js +2 -2
  130. package/models/Inventory/types.js +1 -1
  131. package/models/Notification/types.js +2 -2
  132. package/models/Offer/types.d.ts +0 -12
  133. package/models/Offer/types.js +2 -15
  134. package/models/Partnership/Communication/supabase.js +2 -2
  135. package/models/Partnership/Group/index.d.ts +2 -1
  136. package/models/Partnership/Group/index.js +15 -3
  137. package/models/Partnership/Group/supabase.js +2 -2
  138. package/models/Partnership/Partner/supabase.js +2 -2
  139. package/models/Partnership/Partner/types.js +1 -1
  140. package/models/Partnership/Payment/supabase.js +3 -3
  141. package/models/Partnership/Payment/types.js +2 -2
  142. package/models/Partnership/Plan/supabase.js +2 -2
  143. package/models/Partnership/SepaPaymentGroup/supabase.js +2 -2
  144. package/models/Partnership/Subscription/supabase.js +2 -2
  145. package/models/Partnership/index.d.ts +1 -0
  146. package/models/Partnership/index.js +4 -0
  147. package/models/Partnership/types.js +1 -1
  148. package/models/Repertory/types.d.ts +12 -0
  149. package/models/Repertory/types.js +2 -2
  150. package/models/User/Group/index.js +1 -2
  151. package/models/User/index.d.ts +1 -1
  152. package/models/User/index.js +3 -3
  153. package/models/User/types.d.ts +2 -1
  154. package/models/User/types.js +8 -8
  155. package/models/WebhookEvent/types.js +1 -1
  156. package/models/supabase/Comm/index.d.ts +24 -0
  157. package/models/supabase/Comm/index.js +68 -0
  158. package/models/supabase/Comm/types.d.ts +6 -0
  159. package/models/supabase/CommHistory/index.d.ts +22 -0
  160. package/models/supabase/CommHistory/index.js +37 -0
  161. package/models/supabase/CommHistory/types.d.ts +11 -0
  162. package/models/supabase/CommHistory/types.js +9 -0
  163. package/models/supabase/Composer/Composition/Acquisition/index.d.ts +4 -0
  164. package/models/supabase/Composer/Composition/Acquisition/index.js +9 -0
  165. package/models/supabase/Composer/Composition/Acquisition/types.d.ts +36 -0
  166. package/models/supabase/Composer/Composition/Favorite/index.d.ts +4 -0
  167. package/models/supabase/Composer/Composition/Favorite/index.js +9 -0
  168. package/models/supabase/Composer/Composition/Favorite/types.d.ts +6 -0
  169. package/models/supabase/Composer/Composition/View/index.d.ts +4 -0
  170. package/models/supabase/Composer/Composition/View/index.js +9 -0
  171. package/models/supabase/Composer/Composition/View/types.d.ts +6 -0
  172. package/models/supabase/Composer/Composition/index.d.ts +5284 -0
  173. package/models/supabase/Composer/Composition/index.js +166 -0
  174. package/models/supabase/Composer/Composition/types.d.ts +96 -0
  175. package/models/supabase/Composer/Composition/types.js +32 -0
  176. package/models/supabase/Composer/Notification/index.d.ts +4 -0
  177. package/models/supabase/Composer/Notification/index.js +9 -0
  178. package/models/supabase/Composer/Notification/types.d.ts +39 -0
  179. package/models/supabase/Composer/Notification/types.js +27 -0
  180. package/models/supabase/Composer/Payout/index.d.ts +4 -0
  181. package/models/supabase/Composer/Payout/index.js +9 -0
  182. package/models/supabase/Composer/Payout/status.d.ts +1 -0
  183. package/models/supabase/Composer/Payout/types.d.ts +5 -0
  184. package/models/supabase/Composer/PerformanceAttendance/types.d.ts +4 -0
  185. package/models/supabase/Composer/index.d.ts +78 -0
  186. package/models/supabase/Composer/index.js +105 -0
  187. package/models/supabase/Composer/types.d.ts +6 -0
  188. package/models/supabase/Composer/types.js +2 -0
  189. package/models/supabase/EventHistory/index.d.ts +22 -0
  190. package/models/supabase/EventHistory/index.js +37 -0
  191. package/models/supabase/EventHistory/types.d.ts +39 -0
  192. package/models/supabase/EventHistory/types.js +37 -0
  193. package/models/supabase/GroupHistory/index.d.ts +21 -0
  194. package/models/supabase/GroupHistory/index.js +34 -0
  195. package/models/supabase/GroupHistory/types.d.ts +27 -0
  196. package/models/supabase/GroupHistory/types.js +25 -0
  197. package/models/supabase/Model/index.d.ts +10 -0
  198. package/models/supabase/Model/index.js +21 -0
  199. package/models/supabase/OfferHistory/index.d.ts +22 -0
  200. package/models/supabase/OfferHistory/index.js +37 -0
  201. package/models/supabase/OfferHistory/types.d.ts +18 -0
  202. package/models/supabase/OfferHistory/types.js +16 -0
  203. package/models/supabase/Repertoire/index.d.ts +16 -0
  204. package/models/supabase/Repertoire/index.js +43 -0
  205. package/models/supabase/Repertoire/types.d.ts +6 -0
  206. package/models/supabase/Repertoire/types.js +2 -0
  207. package/models/supabase/RepertoireHistory/index.d.ts +22 -0
  208. package/models/supabase/RepertoireHistory/index.js +37 -0
  209. package/models/supabase/RepertoireHistory/types.d.ts +21 -0
  210. package/models/supabase/RepertoireHistory/types.js +19 -0
  211. package/models/supabase/User/Group/index.d.ts +11 -0
  212. package/models/supabase/User/Group/index.js +30 -0
  213. package/models/supabase/User/Group/types.d.ts +6 -0
  214. package/models/supabase/User/Group/types.js +2 -0
  215. package/models/supabase/User/index.d.ts +13 -0
  216. package/models/supabase/User/index.js +37 -0
  217. package/models/supabase/User/types.d.ts +6 -0
  218. package/models/supabase/User/types.js +2 -0
  219. package/package.json +15 -13
  220. package/types/firestore.d.ts +0 -1
  221. package/types/firestore.js +1 -1
  222. package/types/payoutRule.js +3 -3
  223. package/types/supabase/catalog.d.ts +46 -0
  224. package/types/supabase/catalog.js +2 -0
  225. package/types/supabase/catalog.ts +67 -0
  226. package/types/supabase/composerMetrics.d.ts +27 -0
  227. package/types/supabase/composerMetrics.js +2 -0
  228. package/types/supabase/composerMetrics.ts +26 -0
  229. package/types/supabase/generated.d.ts +3518 -1055
  230. package/types/supabase/generated.js +9 -0
  231. package/types/supabase/generated.ts +3476 -1082
  232. package/types/supabase/index.d.ts +159 -19
  233. package/types/supabase/index.js +15 -0
  234. package/types/supabase/index.ts +292 -21
  235. package/types/supabase/overwrites/index.d.ts +1 -1
  236. package/types/supabase/overwrites/index.ts +1 -1
  237. package/types/supabase/overwrites/tables/comm/model.d.ts +4 -0
  238. package/types/supabase/overwrites/tables/comm/model.js +2 -0
  239. package/types/supabase/overwrites/tables/comm/model.ts +4 -0
  240. package/types/supabase/overwrites/tables/comm_history/index.d.ts +7 -0
  241. package/types/supabase/overwrites/tables/comm_history/index.js +2 -0
  242. package/types/supabase/overwrites/tables/comm_history/index.ts +9 -0
  243. package/types/supabase/overwrites/tables/comm_history/model.d.ts +10 -0
  244. package/types/supabase/overwrites/tables/comm_history/model.js +2 -0
  245. package/types/supabase/overwrites/tables/comm_history/model.ts +13 -0
  246. package/types/supabase/overwrites/tables/common/index.js +2 -0
  247. package/types/supabase/overwrites/tables/composer/index.d.ts +9 -0
  248. package/types/supabase/overwrites/tables/composer/index.js +2 -0
  249. package/types/supabase/overwrites/tables/composer/index.ts +10 -0
  250. package/types/supabase/overwrites/tables/composer/model.d.ts +12 -0
  251. package/types/supabase/overwrites/tables/composer/model.js +2 -0
  252. package/types/supabase/overwrites/tables/composer/model.ts +15 -0
  253. package/types/supabase/overwrites/tables/composer/publicModel.d.ts +11 -0
  254. package/types/supabase/overwrites/tables/composer/publicModel.js +2 -0
  255. package/types/supabase/overwrites/tables/composer/publicModel.ts +15 -0
  256. package/types/supabase/overwrites/tables/composerComposition/index.d.ts +18 -0
  257. package/types/supabase/overwrites/tables/composerComposition/index.js +2 -0
  258. package/types/supabase/overwrites/tables/composerComposition/index.ts +24 -0
  259. package/types/supabase/overwrites/tables/composerComposition/model.d.ts +9 -0
  260. package/types/supabase/overwrites/tables/composerComposition/model.js +2 -0
  261. package/types/supabase/overwrites/tables/composerComposition/model.ts +26 -0
  262. package/types/supabase/overwrites/tables/composerComposition/publicModel.d.ts +9 -0
  263. package/types/supabase/overwrites/tables/composerComposition/publicModel.js +2 -0
  264. package/types/supabase/overwrites/tables/composerComposition/publicModel.ts +37 -0
  265. package/types/supabase/overwrites/tables/composerNotification/index.d.ts +19 -0
  266. package/types/supabase/overwrites/tables/composerNotification/index.js +2 -0
  267. package/types/supabase/overwrites/tables/composerNotification/index.ts +25 -0
  268. package/types/supabase/overwrites/tables/composerOwnedTransaction/model.d.ts +2 -0
  269. package/types/supabase/overwrites/tables/composerOwnedTransaction/model.js +2 -0
  270. package/types/supabase/overwrites/tables/composerOwnedTransaction/model.ts +3 -0
  271. package/types/supabase/overwrites/tables/composerPayout/index.d.ts +7 -0
  272. package/types/supabase/overwrites/tables/composerPayout/index.js +2 -0
  273. package/types/supabase/overwrites/tables/composerPayout/index.ts +8 -0
  274. package/types/supabase/overwrites/tables/compositionAcquisition/index.d.ts +4 -0
  275. package/types/supabase/overwrites/tables/compositionAcquisition/index.js +2 -0
  276. package/types/supabase/overwrites/tables/compositionAcquisition/index.ts +8 -0
  277. package/types/supabase/overwrites/tables/compositionAcquisition/model.d.ts +6 -0
  278. package/types/supabase/overwrites/tables/compositionAcquisition/model.js +2 -0
  279. package/types/supabase/overwrites/tables/compositionAcquisition/model.ts +11 -0
  280. package/types/supabase/overwrites/tables/compositionFavorite/index.d.ts +1 -0
  281. package/types/supabase/overwrites/tables/compositionFavorite/index.js +2 -0
  282. package/types/supabase/overwrites/tables/compositionFavorite/index.ts +2 -0
  283. package/types/supabase/overwrites/tables/compositionFavorite/model.d.ts +1 -0
  284. package/types/supabase/overwrites/tables/compositionFavorite/model.js +2 -0
  285. package/types/supabase/overwrites/tables/compositionFavorite/model.ts +1 -0
  286. package/types/supabase/overwrites/tables/compositionView/index.d.ts +1 -0
  287. package/types/supabase/overwrites/tables/compositionView/index.js +2 -0
  288. package/types/supabase/overwrites/tables/compositionView/index.ts +2 -0
  289. package/types/supabase/overwrites/tables/compositionView/model.d.ts +1 -0
  290. package/types/supabase/overwrites/tables/compositionView/model.js +2 -0
  291. package/types/supabase/overwrites/tables/compositionView/model.ts +1 -0
  292. package/types/supabase/overwrites/tables/currencyExchangeRate/index.d.ts +16 -0
  293. package/types/supabase/overwrites/tables/currencyExchangeRate/index.js +2 -0
  294. package/types/supabase/overwrites/tables/currencyExchangeRate/index.ts +18 -0
  295. package/types/supabase/overwrites/{event.d.ts → tables/event/index.d.ts} +1 -1
  296. package/types/supabase/overwrites/tables/event/index.js +2 -0
  297. package/types/supabase/overwrites/{event.ts → tables/event/index.ts} +1 -1
  298. package/types/supabase/overwrites/tables/event_history/index.d.ts +7 -0
  299. package/types/supabase/overwrites/tables/event_history/index.js +2 -0
  300. package/types/supabase/overwrites/tables/event_history/index.ts +9 -0
  301. package/types/supabase/overwrites/tables/event_history/model.d.ts +10 -0
  302. package/types/supabase/overwrites/tables/event_history/model.js +2 -0
  303. package/types/supabase/overwrites/tables/event_history/model.ts +13 -0
  304. package/types/supabase/overwrites/{group.d.ts → tables/group/index.d.ts} +2 -5
  305. package/types/supabase/overwrites/tables/group/index.js +2 -0
  306. package/types/supabase/overwrites/{group.ts → tables/group/index.ts} +2 -6
  307. package/types/supabase/overwrites/tables/group_history/index.d.ts +7 -0
  308. package/types/supabase/overwrites/tables/group_history/index.js +2 -0
  309. package/types/supabase/overwrites/tables/group_history/index.ts +9 -0
  310. package/types/supabase/overwrites/tables/group_history/model.d.ts +10 -0
  311. package/types/supabase/overwrites/tables/group_history/model.js +2 -0
  312. package/types/supabase/overwrites/tables/group_history/model.ts +13 -0
  313. package/types/supabase/overwrites/{offer.d.ts → tables/offer/index.d.ts} +6 -2
  314. package/types/supabase/overwrites/tables/offer/index.js +2 -0
  315. package/types/supabase/overwrites/{offer.ts → tables/offer/index.ts} +7 -2
  316. package/types/supabase/overwrites/tables/offer_history/index.d.ts +7 -0
  317. package/types/supabase/overwrites/tables/offer_history/index.js +2 -0
  318. package/types/supabase/overwrites/tables/offer_history/index.ts +9 -0
  319. package/types/supabase/overwrites/tables/offer_history/model.d.ts +10 -0
  320. package/types/supabase/overwrites/tables/offer_history/model.js +2 -0
  321. package/types/supabase/overwrites/tables/offer_history/model.ts +13 -0
  322. package/types/supabase/overwrites/tables/repertoire/model.d.ts +7 -0
  323. package/types/supabase/overwrites/tables/repertoire/model.js +2 -0
  324. package/types/supabase/overwrites/tables/repertoire/model.ts +7 -0
  325. package/types/supabase/overwrites/tables/repertoire_history/index.d.ts +7 -0
  326. package/types/supabase/overwrites/tables/repertoire_history/index.js +2 -0
  327. package/types/supabase/overwrites/tables/repertoire_history/index.ts +9 -0
  328. package/types/supabase/overwrites/tables/repertoire_history/model.d.ts +10 -0
  329. package/types/supabase/overwrites/tables/repertoire_history/model.js +2 -0
  330. package/types/supabase/overwrites/tables/repertoire_history/model.ts +13 -0
  331. package/types/supabase/overwrites/tables/user/index.d.ts +11 -0
  332. package/types/supabase/overwrites/tables/user/index.js +2 -0
  333. package/types/supabase/overwrites/tables/user/index.ts +13 -0
  334. package/types/supabase/overwrites/comm.d.ts +0 -18
  335. package/types/supabase/overwrites/comm.ts +0 -18
  336. package/types/supabase/overwrites/comm_history.d.ts +0 -10
  337. package/types/supabase/overwrites/comm_history.ts +0 -10
  338. package/types/supabase/overwrites/event_history.d.ts +0 -10
  339. package/types/supabase/overwrites/event_history.ts +0 -10
  340. package/types/supabase/overwrites/group_history.d.ts +0 -9
  341. package/types/supabase/overwrites/group_history.ts +0 -9
  342. package/types/supabase/overwrites/offer_history.d.ts +0 -10
  343. package/types/supabase/overwrites/offer_history.ts +0 -10
  344. package/types/supabase/overwrites/repertoire.d.ts +0 -12
  345. package/types/supabase/overwrites/repertoire.ts +0 -12
  346. package/types/supabase/overwrites/repertoire_history.d.ts +0 -10
  347. package/types/supabase/overwrites/repertoire_history.ts +0 -10
  348. /package/{types/supabase/overwrites/comm.js → functions/composer.js} +0 -0
  349. /package/{types/supabase/overwrites/comm_history.js → functions/composerComposition.js} +0 -0
  350. /package/{types/supabase/overwrites/event.js → functions/composerNotification.js} +0 -0
  351. /package/{types/supabase/overwrites/event_history.js → functions/composerPayout.js} +0 -0
  352. /package/{types/supabase/overwrites/group.js → models/supabase/Comm/types.js} +0 -0
  353. /package/{types/supabase/overwrites/group_history.js → models/supabase/Composer/Composition/Acquisition/types.js} +0 -0
  354. /package/{types/supabase/overwrites/offer.js → models/supabase/Composer/Composition/Favorite/types.js} +0 -0
  355. /package/{types/supabase/overwrites/offer_history.js → models/supabase/Composer/Composition/View/types.js} +0 -0
  356. /package/{types/supabase/overwrites/repertoire.js → models/supabase/Composer/Payout/status.js} +0 -0
  357. /package/{types/supabase/overwrites/repertoire_history.js → models/supabase/Composer/Payout/types.js} +0 -0
  358. /package/{types/supabase/overwrites/utils.js → models/supabase/Composer/PerformanceAttendance/types.js} +0 -0
  359. /package/types/supabase/overwrites/{utils.d.ts → tables/common/index.d.ts} +0 -0
  360. /package/types/supabase/overwrites/{utils.ts → tables/common/index.ts} +0 -0
@@ -1,10 +1,30 @@
1
1
  export type Json = string | number | boolean | null | { [key: string]: Json | undefined } | Json[];
2
2
 
3
3
  export type Database = {
4
- // Allows to automatically instantiate createClient with right options
5
- // instead of createClient<Database, { PostgrestVersion: 'XX' }>(URL, KEY)
6
- __InternalSupabase: {
7
- PostgrestVersion: '12.2.3 (519615d)';
4
+ graphql_public: {
5
+ Tables: {
6
+ [_ in never]: never;
7
+ };
8
+ Views: {
9
+ [_ in never]: never;
10
+ };
11
+ Functions: {
12
+ graphql: {
13
+ Args: {
14
+ extensions?: Json;
15
+ operationName?: string;
16
+ query?: string;
17
+ variables?: Json;
18
+ };
19
+ Returns: Json;
20
+ };
21
+ };
22
+ Enums: {
23
+ [_ in never]: never;
24
+ };
25
+ CompositeTypes: {
26
+ [_ in never]: never;
27
+ };
8
28
  };
9
29
  public: {
10
30
  Tables: {
@@ -76,7 +96,7 @@ export type Database = {
76
96
  isOneToOne: false;
77
97
  referencedRelation: 'calendar_feed';
78
98
  referencedColumns: ['user_id'];
79
- }
99
+ },
80
100
  ];
81
101
  };
82
102
  calendar_feed: {
@@ -123,7 +143,7 @@ export type Database = {
123
143
  isOneToOne: true;
124
144
  referencedRelation: 'user';
125
145
  referencedColumns: ['userId'];
126
- }
146
+ },
127
147
  ];
128
148
  };
129
149
  comm: {
@@ -216,1328 +236,3692 @@ export type Database = {
216
236
  };
217
237
  Relationships: [];
218
238
  };
219
- event: {
239
+ composer: {
220
240
  Row: {
221
- activeInvitationLink: boolean;
222
- calendarSequence: number;
223
- coverURL: string | null;
241
+ artisticEmail: string | null;
242
+ artisticName: string;
243
+ country: string | null;
224
244
  createdAt: string;
225
- createdOn: Database['public']['Enums']['created_on'] | null;
226
- datetime: string;
227
- datetimeEnd: string;
245
+ currency: string | null;
228
246
  deletedAt: string | null;
229
- deletedBy: string | null;
230
- description: string | null;
231
- descriptionSlate: Json[];
232
- displayName: string | null;
247
+ description: Json[] | null;
233
248
  id: string;
234
- invitationLink: string | null;
249
+ instruments: Json;
235
250
  locality: string | null;
236
- location: unknown;
237
- location_lonlat: Database['public']['CompositeTypes']['lonlat'];
238
- maxAttendance: number | null;
239
- notifyAt: string;
240
- online: boolean;
241
- owner: string | null;
242
- playerIds: string[];
243
- players: Json;
244
- promoter: string | null;
245
- relEvents: string[];
246
- repeat: Json | null;
247
- repertory: Json;
248
- repertoryIds: string[];
249
- responseDeadline: Json;
250
- responseDeadlineAt: string;
251
- rollCalledAt: string | null;
252
- rollCalledBy: string | null;
253
- rollCallHistory: Json[];
254
- rollCallReminderAt: string | null;
255
- selectionMode: Database['public']['Enums']['event_selection_mode'] | null;
256
- selectionModeClosedAt: string | null;
257
- shortDynamicLink: string | null;
258
- sites: boolean;
259
- stage: Json | null;
260
- stageTemplateId: string | null;
261
- templateId: string | null;
262
- timezone: string;
263
- type: Database['public']['Enums']['event_type'];
251
+ location: Database['public']['CompositeTypes']['lonlat'] | null;
252
+ photoURL: string;
253
+ repertoireTags: Json;
254
+ socialNetworks: Json;
264
255
  updatedAt: string;
265
- videoURL: string | null;
256
+ userId: string;
257
+ username: string;
258
+ visibility: boolean;
266
259
  };
267
260
  Insert: {
268
- activeInvitationLink: boolean;
269
- calendarSequence?: number;
270
- coverURL?: string | null;
261
+ artisticEmail?: string | null;
262
+ artisticName: string;
263
+ country?: string | null;
271
264
  createdAt?: string;
272
- createdOn?: Database['public']['Enums']['created_on'] | null;
273
- datetime: string;
274
- datetimeEnd: string;
265
+ currency?: string | null;
275
266
  deletedAt?: string | null;
276
- deletedBy?: string | null;
277
- description?: string | null;
278
- descriptionSlate: Json[];
279
- displayName?: string | null;
280
- id: string;
281
- invitationLink?: string | null;
267
+ description?: Json[] | null;
268
+ id?: string;
269
+ instruments: Json;
282
270
  locality?: string | null;
283
- location: unknown;
284
- location_lonlat?: Database['public']['CompositeTypes']['lonlat'];
285
- maxAttendance?: number | null;
286
- notifyAt: string;
287
- online: boolean;
288
- owner?: string | null;
289
- playerIds: string[];
290
- players: Json;
291
- promoter?: string | null;
292
- relEvents: string[];
293
- repeat?: Json | null;
294
- repertory: Json;
295
- repertoryIds: string[];
296
- responseDeadline: Json;
297
- responseDeadlineAt: string;
298
- rollCalledAt?: string | null;
299
- rollCalledBy?: string | null;
300
- rollCallHistory: Json[];
301
- rollCallReminderAt?: string | null;
302
- selectionMode?: Database['public']['Enums']['event_selection_mode'] | null;
303
- selectionModeClosedAt?: string | null;
304
- shortDynamicLink?: string | null;
305
- sites?: boolean;
306
- stage?: Json | null;
307
- stageTemplateId?: string | null;
308
- templateId?: string | null;
309
- timezone: string;
310
- type: Database['public']['Enums']['event_type'];
271
+ location?: Database['public']['CompositeTypes']['lonlat'] | null;
272
+ photoURL: string;
273
+ repertoireTags: Json;
274
+ socialNetworks: Json;
311
275
  updatedAt?: string;
312
- videoURL?: string | null;
276
+ userId: string;
277
+ username: string;
278
+ visibility?: boolean;
313
279
  };
314
280
  Update: {
315
- activeInvitationLink?: boolean;
316
- calendarSequence?: number;
317
- coverURL?: string | null;
281
+ artisticEmail?: string | null;
282
+ artisticName?: string;
283
+ country?: string | null;
318
284
  createdAt?: string;
319
- createdOn?: Database['public']['Enums']['created_on'] | null;
320
- datetime?: string;
321
- datetimeEnd?: string;
285
+ currency?: string | null;
322
286
  deletedAt?: string | null;
323
- deletedBy?: string | null;
324
- description?: string | null;
325
- descriptionSlate?: Json[];
326
- displayName?: string | null;
287
+ description?: Json[] | null;
327
288
  id?: string;
328
- invitationLink?: string | null;
289
+ instruments?: Json;
329
290
  locality?: string | null;
330
- location?: unknown;
331
- location_lonlat?: Database['public']['CompositeTypes']['lonlat'];
332
- maxAttendance?: number | null;
333
- notifyAt?: string;
334
- online?: boolean;
335
- owner?: string | null;
336
- playerIds?: string[];
337
- players?: Json;
338
- promoter?: string | null;
339
- relEvents?: string[];
340
- repeat?: Json | null;
341
- repertory?: Json;
342
- repertoryIds?: string[];
343
- responseDeadline?: Json;
344
- responseDeadlineAt?: string;
345
- rollCalledAt?: string | null;
346
- rollCalledBy?: string | null;
347
- rollCallHistory?: Json[];
348
- rollCallReminderAt?: string | null;
349
- selectionMode?: Database['public']['Enums']['event_selection_mode'] | null;
350
- selectionModeClosedAt?: string | null;
351
- shortDynamicLink?: string | null;
352
- sites?: boolean;
353
- stage?: Json | null;
354
- stageTemplateId?: string | null;
355
- templateId?: string | null;
356
- timezone?: string;
357
- type?: Database['public']['Enums']['event_type'];
291
+ location?: Database['public']['CompositeTypes']['lonlat'] | null;
292
+ photoURL?: string;
293
+ repertoireTags?: Json;
294
+ socialNetworks?: Json;
358
295
  updatedAt?: string;
359
- videoURL?: string | null;
296
+ userId?: string;
297
+ username?: string;
298
+ visibility?: boolean;
299
+ };
300
+ Relationships: [];
301
+ };
302
+ composerComposition: {
303
+ Row: {
304
+ catalogueNumber: string | null;
305
+ century: number | null;
306
+ cover: Json | null;
307
+ createdAt: string;
308
+ deletedAt: string | null;
309
+ description: Json[];
310
+ difficulty: number | null;
311
+ duration: number | null;
312
+ externalComposerName: string | null;
313
+ files: Json;
314
+ filesPath: Json;
315
+ genresIds: string[];
316
+ highlightedParts: Json;
317
+ id: string;
318
+ instrumentationIds: string[];
319
+ products: Json;
320
+ publisher: string | null;
321
+ samples: Json;
322
+ stylesIds: string[];
323
+ subtitle: string | null;
324
+ title: string;
325
+ updatedAt: string;
326
+ uploaderComposerId: string;
327
+ uploaderComposerRole: Database['public']['Enums']['composerroleincomposition'];
328
+ visibility: boolean;
329
+ year: number | null;
330
+ };
331
+ Insert: {
332
+ catalogueNumber?: string | null;
333
+ century?: number | null;
334
+ cover?: Json | null;
335
+ createdAt?: string;
336
+ deletedAt?: string | null;
337
+ description?: Json[];
338
+ difficulty?: number | null;
339
+ duration?: number | null;
340
+ externalComposerName?: string | null;
341
+ files?: Json;
342
+ filesPath?: Json;
343
+ genresIds?: string[];
344
+ highlightedParts?: Json;
345
+ id?: string;
346
+ instrumentationIds?: string[];
347
+ products?: Json;
348
+ publisher?: string | null;
349
+ samples?: Json;
350
+ stylesIds?: string[];
351
+ subtitle?: string | null;
352
+ title: string;
353
+ updatedAt?: string;
354
+ uploaderComposerId: string;
355
+ uploaderComposerRole: Database['public']['Enums']['composerroleincomposition'];
356
+ visibility?: boolean;
357
+ year?: number | null;
358
+ };
359
+ Update: {
360
+ catalogueNumber?: string | null;
361
+ century?: number | null;
362
+ cover?: Json | null;
363
+ createdAt?: string;
364
+ deletedAt?: string | null;
365
+ description?: Json[];
366
+ difficulty?: number | null;
367
+ duration?: number | null;
368
+ externalComposerName?: string | null;
369
+ files?: Json;
370
+ filesPath?: Json;
371
+ genresIds?: string[];
372
+ highlightedParts?: Json;
373
+ id?: string;
374
+ instrumentationIds?: string[];
375
+ products?: Json;
376
+ publisher?: string | null;
377
+ samples?: Json;
378
+ stylesIds?: string[];
379
+ subtitle?: string | null;
380
+ title?: string;
381
+ updatedAt?: string;
382
+ uploaderComposerId?: string;
383
+ uploaderComposerRole?: Database['public']['Enums']['composerroleincomposition'];
384
+ visibility?: boolean;
385
+ year?: number | null;
360
386
  };
361
387
  Relationships: [
362
388
  {
363
- foreignKeyName: 'event_promoter_group_id_fkey';
364
- columns: ['promoter'];
389
+ foreignKeyName: 'composerComposition_uploaderComposerId_fkey';
390
+ columns: ['uploaderComposerId'];
365
391
  isOneToOne: false;
366
- referencedRelation: 'group';
392
+ referencedRelation: 'composer';
393
+ referencedColumns: ['id'];
394
+ },
395
+ {
396
+ foreignKeyName: 'composerComposition_uploaderComposerId_fkey';
397
+ columns: ['uploaderComposerId'];
398
+ isOneToOne: false;
399
+ referencedRelation: 'composerModel';
367
400
  referencedColumns: ['id'];
368
- }
401
+ },
402
+ {
403
+ foreignKeyName: 'composerComposition_uploaderComposerId_fkey';
404
+ columns: ['uploaderComposerId'];
405
+ isOneToOne: false;
406
+ referencedRelation: 'composerPublicModel';
407
+ referencedColumns: ['id'];
408
+ },
369
409
  ];
370
410
  };
371
- event_history: {
411
+ composerNotification: {
372
412
  Row: {
373
- action: string;
374
- created_at: string;
375
- event_id: string;
376
- group_id: string;
377
- id: number;
378
- prev_value: Json | null;
379
- user_id: string;
380
- value: Json | null;
413
+ actionUrl: string | null;
414
+ archivedAt: string | null;
415
+ bodyKey: string;
416
+ composerId: string;
417
+ createdAt: string;
418
+ dedupeKey: string | null;
419
+ emailError: string | null;
420
+ emailSentAt: string | null;
421
+ emailStatus: string;
422
+ id: string;
423
+ metadata: Json;
424
+ params: Json;
425
+ readAt: string | null;
426
+ titleKey: string;
427
+ type: string;
428
+ userId: string;
381
429
  };
382
430
  Insert: {
383
- action: string;
384
- created_at: string;
385
- event_id: string;
386
- group_id: string;
387
- id?: number;
388
- prev_value?: Json | null;
389
- user_id: string;
390
- value?: Json | null;
431
+ actionUrl?: string | null;
432
+ archivedAt?: string | null;
433
+ bodyKey: string;
434
+ composerId: string;
435
+ createdAt?: string;
436
+ dedupeKey?: string | null;
437
+ emailError?: string | null;
438
+ emailSentAt?: string | null;
439
+ emailStatus?: string;
440
+ id?: string;
441
+ metadata?: Json;
442
+ params?: Json;
443
+ readAt?: string | null;
444
+ titleKey: string;
445
+ type: string;
446
+ userId: string;
391
447
  };
392
448
  Update: {
393
- action?: string;
394
- created_at?: string;
395
- event_id?: string;
396
- group_id?: string;
397
- id?: number;
398
- prev_value?: Json | null;
399
- user_id?: string;
400
- value?: Json | null;
449
+ actionUrl?: string | null;
450
+ archivedAt?: string | null;
451
+ bodyKey?: string;
452
+ composerId?: string;
453
+ createdAt?: string;
454
+ dedupeKey?: string | null;
455
+ emailError?: string | null;
456
+ emailSentAt?: string | null;
457
+ emailStatus?: string;
458
+ id?: string;
459
+ metadata?: Json;
460
+ params?: Json;
461
+ readAt?: string | null;
462
+ titleKey?: string;
463
+ type?: string;
464
+ userId?: string;
401
465
  };
402
- Relationships: [];
466
+ Relationships: [
467
+ {
468
+ foreignKeyName: 'composerNotification_composerId_fkey';
469
+ columns: ['composerId'];
470
+ isOneToOne: false;
471
+ referencedRelation: 'composer';
472
+ referencedColumns: ['id'];
473
+ },
474
+ {
475
+ foreignKeyName: 'composerNotification_composerId_fkey';
476
+ columns: ['composerId'];
477
+ isOneToOne: false;
478
+ referencedRelation: 'composerModel';
479
+ referencedColumns: ['id'];
480
+ },
481
+ {
482
+ foreignKeyName: 'composerNotification_composerId_fkey';
483
+ columns: ['composerId'];
484
+ isOneToOne: false;
485
+ referencedRelation: 'composerPublicModel';
486
+ referencedColumns: ['id'];
487
+ },
488
+ ];
403
489
  };
404
- group: {
490
+ composerNotificationSetting: {
405
491
  Row: {
406
- activeInvitationLink: boolean;
407
- addresses: Json[];
408
- administrators: string[];
409
- config: Json;
410
- configSites: Json;
411
- country: string;
492
+ composerId: string;
412
493
  createdAt: string;
413
- createdOn: Database['public']['Enums']['created_on'];
414
- customerId: string | null;
415
- deletedAt: string | null;
416
- deletedBy: string | null;
417
- description: string | null;
418
- displayName: string;
419
- id: string;
420
- instruments: Json;
421
- intercomId: string | null;
422
- invitationEmails: string[];
423
- invitationLink: string | null;
424
- locality: string;
425
- location: unknown;
426
- location_lonlat: Database['public']['CompositeTypes']['lonlat'];
427
- metadata: Json;
428
- musicStyle: string;
429
- onboardingMessages: Json[];
430
- owner: string | null;
431
- partnershipId: string | null;
432
- photoURL: string;
433
- planId: Database['public']['Enums']['group_plan'];
434
- playerIds: string[];
435
- players: Json;
436
- repertoireTags: Json;
437
- rollcallLink: string | null;
438
- satisfactionIndex: Json;
439
- shortDynamicLink: string | null;
440
- socialNetworks: Json | null;
441
- status: Database['public']['Enums']['group_status'];
442
- subscriptionId: string | null;
443
- templates: Json;
444
- trialEndAt: string | null;
494
+ payoutsDashboard: boolean;
495
+ payoutsEmail: boolean;
496
+ performancesDashboard: boolean;
497
+ performancesEmail: boolean;
498
+ salesDashboard: boolean;
499
+ salesEmail: boolean;
500
+ summariesDashboard: boolean;
501
+ summariesEmail: boolean;
502
+ systemDashboard: boolean;
503
+ systemEmail: boolean;
445
504
  updatedAt: string;
446
- username: string;
447
- visitedDashboardAt: Json;
448
505
  };
449
506
  Insert: {
450
- activeInvitationLink: boolean;
451
- addresses: Json[];
452
- administrators: string[];
453
- config: Json;
454
- configSites?: Json;
455
- country: string;
507
+ composerId: string;
456
508
  createdAt?: string;
457
- createdOn: Database['public']['Enums']['created_on'];
458
- customerId?: string | null;
459
- deletedAt?: string | null;
460
- deletedBy?: string | null;
461
- description?: string | null;
462
- displayName: string;
463
- id: string;
464
- instruments: Json;
465
- intercomId?: string | null;
466
- invitationEmails: string[];
467
- invitationLink?: string | null;
468
- locality: string;
469
- location: unknown;
470
- location_lonlat?: Database['public']['CompositeTypes']['lonlat'];
471
- metadata: Json;
472
- musicStyle: string;
473
- onboardingMessages: Json[];
474
- owner?: string | null;
475
- partnershipId?: string | null;
476
- photoURL: string;
477
- planId: Database['public']['Enums']['group_plan'];
478
- playerIds: string[];
479
- players: Json;
480
- repertoireTags: Json;
481
- rollcallLink?: string | null;
482
- satisfactionIndex: Json;
483
- shortDynamicLink?: string | null;
484
- socialNetworks?: Json | null;
485
- status: Database['public']['Enums']['group_status'];
486
- subscriptionId?: string | null;
487
- templates: Json;
488
- trialEndAt?: string | null;
509
+ payoutsDashboard?: boolean;
510
+ payoutsEmail?: boolean;
511
+ performancesDashboard?: boolean;
512
+ performancesEmail?: boolean;
513
+ salesDashboard?: boolean;
514
+ salesEmail?: boolean;
515
+ summariesDashboard?: boolean;
516
+ summariesEmail?: boolean;
517
+ systemDashboard?: boolean;
518
+ systemEmail?: boolean;
489
519
  updatedAt?: string;
490
- username: string;
491
- visitedDashboardAt: Json;
492
520
  };
493
521
  Update: {
494
- activeInvitationLink?: boolean;
495
- addresses?: Json[];
496
- administrators?: string[];
497
- config?: Json;
498
- configSites?: Json;
499
- country?: string;
522
+ composerId?: string;
500
523
  createdAt?: string;
501
- createdOn?: Database['public']['Enums']['created_on'];
502
- customerId?: string | null;
503
- deletedAt?: string | null;
504
- deletedBy?: string | null;
505
- description?: string | null;
506
- displayName?: string;
507
- id?: string;
508
- instruments?: Json;
509
- intercomId?: string | null;
510
- invitationEmails?: string[];
511
- invitationLink?: string | null;
512
- locality?: string;
513
- location?: unknown;
514
- location_lonlat?: Database['public']['CompositeTypes']['lonlat'];
515
- metadata?: Json;
516
- musicStyle?: string;
517
- onboardingMessages?: Json[];
518
- owner?: string | null;
519
- partnershipId?: string | null;
520
- photoURL?: string;
521
- planId?: Database['public']['Enums']['group_plan'];
522
- playerIds?: string[];
523
- players?: Json;
524
- repertoireTags?: Json;
525
- rollcallLink?: string | null;
526
- satisfactionIndex?: Json;
527
- shortDynamicLink?: string | null;
528
- socialNetworks?: Json | null;
529
- status?: Database['public']['Enums']['group_status'];
530
- subscriptionId?: string | null;
531
- templates?: Json;
532
- trialEndAt?: string | null;
524
+ payoutsDashboard?: boolean;
525
+ payoutsEmail?: boolean;
526
+ performancesDashboard?: boolean;
527
+ performancesEmail?: boolean;
528
+ salesDashboard?: boolean;
529
+ salesEmail?: boolean;
530
+ summariesDashboard?: boolean;
531
+ summariesEmail?: boolean;
532
+ systemDashboard?: boolean;
533
+ systemEmail?: boolean;
533
534
  updatedAt?: string;
534
- username?: string;
535
- visitedDashboardAt?: Json;
536
535
  };
537
- Relationships: [];
536
+ Relationships: [
537
+ {
538
+ foreignKeyName: 'composerNotificationSetting_composerId_fkey';
539
+ columns: ['composerId'];
540
+ isOneToOne: true;
541
+ referencedRelation: 'composer';
542
+ referencedColumns: ['id'];
543
+ },
544
+ {
545
+ foreignKeyName: 'composerNotificationSetting_composerId_fkey';
546
+ columns: ['composerId'];
547
+ isOneToOne: true;
548
+ referencedRelation: 'composerModel';
549
+ referencedColumns: ['id'];
550
+ },
551
+ {
552
+ foreignKeyName: 'composerNotificationSetting_composerId_fkey';
553
+ columns: ['composerId'];
554
+ isOneToOne: true;
555
+ referencedRelation: 'composerPublicModel';
556
+ referencedColumns: ['id'];
557
+ },
558
+ ];
538
559
  };
539
- group_history: {
560
+ composerPayout: {
540
561
  Row: {
541
- action: string;
562
+ amountCents: number;
563
+ completed_at: string | null;
564
+ composerId: string;
542
565
  created_at: string;
543
- group_id: string;
544
- id: number;
545
- prev_value: Json | null;
546
- user_id: string;
547
- value: Json | null;
566
+ currency: string;
567
+ id: string;
568
+ observations: string | null;
569
+ status: string;
548
570
  };
549
571
  Insert: {
550
- action: string;
551
- created_at: string;
552
- group_id: string;
553
- id?: number;
554
- prev_value?: Json | null;
555
- user_id: string;
556
- value?: Json | null;
572
+ amountCents: number;
573
+ completed_at?: string | null;
574
+ composerId: string;
575
+ created_at?: string;
576
+ currency: string;
577
+ id?: string;
578
+ observations?: string | null;
579
+ status?: string;
557
580
  };
558
581
  Update: {
559
- action?: string;
582
+ amountCents?: number;
583
+ completed_at?: string | null;
584
+ composerId?: string;
560
585
  created_at?: string;
561
- group_id?: string;
562
- id?: number;
563
- prev_value?: Json | null;
564
- user_id?: string;
565
- value?: Json | null;
586
+ currency?: string;
587
+ id?: string;
588
+ observations?: string | null;
589
+ status?: string;
566
590
  };
567
- Relationships: [];
591
+ Relationships: [
592
+ {
593
+ foreignKeyName: 'composerPayout_composerId_fkey';
594
+ columns: ['composerId'];
595
+ isOneToOne: false;
596
+ referencedRelation: 'composer';
597
+ referencedColumns: ['id'];
598
+ },
599
+ {
600
+ foreignKeyName: 'composerPayout_composerId_fkey';
601
+ columns: ['composerId'];
602
+ isOneToOne: false;
603
+ referencedRelation: 'composerModel';
604
+ referencedColumns: ['id'];
605
+ },
606
+ {
607
+ foreignKeyName: 'composerPayout_composerId_fkey';
608
+ columns: ['composerId'];
609
+ isOneToOne: false;
610
+ referencedRelation: 'composerPublicModel';
611
+ referencedColumns: ['id'];
612
+ },
613
+ ];
568
614
  };
569
- group_payment: {
615
+ composerPerformanceAttendance: {
570
616
  Row: {
571
- appliedRules: Json;
572
- assignedTo: string;
573
- baseAmount: number | null;
574
- concept: string;
575
- conceptNorm: string | null;
617
+ companions: number;
618
+ composerArtisticName: string;
619
+ composerContactEmail: string | null;
620
+ composerId: string;
621
+ composerPhotoURL: string | null;
576
622
  createdAt: string;
577
- createdBy: string;
578
- currency: string;
579
- editedBy: string | null;
580
- eventId: string | null;
623
+ eventId: string;
581
624
  groupId: string;
582
- id: string;
583
- note: string | null;
584
- paidAt: string | null;
585
- paidBy: string | null;
586
- paymentMethod: Database['public']['Enums']['group_payment_method'] | null;
587
- playerId: string | null;
588
- status: Database['public']['Enums']['group_payment_status'];
589
- totalAmount: number | null;
590
- type: Database['public']['Enums']['group_payment_type'];
591
625
  updatedAt: string;
592
626
  };
593
627
  Insert: {
594
- appliedRules?: Json;
595
- assignedTo: string;
596
- baseAmount?: number | null;
597
- concept: string;
598
- conceptNorm?: string | null;
628
+ companions?: number;
629
+ composerArtisticName: string;
630
+ composerContactEmail?: string | null;
631
+ composerId: string;
632
+ composerPhotoURL?: string | null;
599
633
  createdAt?: string;
600
- createdBy: string;
601
- currency?: string;
602
- editedBy?: string | null;
603
- eventId?: string | null;
634
+ eventId: string;
604
635
  groupId: string;
605
- id?: string;
606
- note?: string | null;
607
- paidAt?: string | null;
608
- paidBy?: string | null;
609
- paymentMethod?: Database['public']['Enums']['group_payment_method'] | null;
610
- playerId?: string | null;
611
- status: Database['public']['Enums']['group_payment_status'];
612
- totalAmount?: number | null;
613
- type: Database['public']['Enums']['group_payment_type'];
614
636
  updatedAt?: string;
615
637
  };
616
638
  Update: {
617
- appliedRules?: Json;
618
- assignedTo?: string;
619
- baseAmount?: number | null;
620
- concept?: string;
621
- conceptNorm?: string | null;
639
+ companions?: number;
640
+ composerArtisticName?: string;
641
+ composerContactEmail?: string | null;
642
+ composerId?: string;
643
+ composerPhotoURL?: string | null;
622
644
  createdAt?: string;
623
- createdBy?: string;
624
- currency?: string;
625
- editedBy?: string | null;
626
- eventId?: string | null;
645
+ eventId?: string;
627
646
  groupId?: string;
628
- id?: string;
629
- note?: string | null;
630
- paidAt?: string | null;
631
- paidBy?: string | null;
632
- paymentMethod?: Database['public']['Enums']['group_payment_method'] | null;
633
- playerId?: string | null;
634
- status?: Database['public']['Enums']['group_payment_status'];
635
- totalAmount?: number | null;
636
- type?: Database['public']['Enums']['group_payment_type'];
637
647
  updatedAt?: string;
638
648
  };
639
- Relationships: [];
649
+ Relationships: [
650
+ {
651
+ foreignKeyName: 'composerPerformanceAttendance_composerId_fkey';
652
+ columns: ['composerId'];
653
+ isOneToOne: false;
654
+ referencedRelation: 'composer';
655
+ referencedColumns: ['id'];
656
+ },
657
+ {
658
+ foreignKeyName: 'composerPerformanceAttendance_composerId_fkey';
659
+ columns: ['composerId'];
660
+ isOneToOne: false;
661
+ referencedRelation: 'composerModel';
662
+ referencedColumns: ['id'];
663
+ },
664
+ {
665
+ foreignKeyName: 'composerPerformanceAttendance_composerId_fkey';
666
+ columns: ['composerId'];
667
+ isOneToOne: false;
668
+ referencedRelation: 'composerPublicModel';
669
+ referencedColumns: ['id'];
670
+ },
671
+ ];
640
672
  };
641
- group_payment_history: {
673
+ compositionAcquisition: {
642
674
  Row: {
643
- action: Database['public']['Enums']['group_payment_history_action'];
644
- changed_at: string;
645
- changed_by: string;
675
+ acquiredByGroupCountrySnapshot: string | null;
676
+ acquiredByGroupId: string;
677
+ acquiredByGroupMusicStyleSnapshot: string | null;
678
+ acquiredByGroupNameSnapshot: string | null;
679
+ acquiredByGroupPhotoURLSnapshot: string | null;
680
+ acquiredByUserId: string;
681
+ acquiredProducts: Json;
682
+ baseCurrency: string | null;
683
+ baseNetEarningsCents: number | null;
684
+ basePriceCents: number | null;
685
+ baseVatCents: number | null;
686
+ buyerCurrency: string | null;
687
+ buyerPriceCents: number | null;
688
+ buyerVatCents: number | null;
689
+ compositionId: string;
690
+ created_at: string;
691
+ currency: string | null;
692
+ customerId: string;
693
+ exchangeRate: number | null;
694
+ exchangeRateDate: string | null;
695
+ exchangeRateSource: string | null;
646
696
  id: string;
647
- new_value: string | null;
648
- old_value: string | null;
649
- payment_id: string;
697
+ netEarningsCents: number | null;
698
+ priceCents: number | null;
699
+ refundedAt: string | null;
700
+ refundedCents: number;
701
+ refundStatus: string;
702
+ stripePaymentIntentId: string | null;
703
+ stripeRefundId: string | null;
704
+ stripeSessionId: string | null;
705
+ updated_at: string;
706
+ vatCents: number | null;
650
707
  };
651
708
  Insert: {
652
- action: Database['public']['Enums']['group_payment_history_action'];
653
- changed_at?: string;
654
- changed_by: string;
709
+ acquiredByGroupCountrySnapshot?: string | null;
710
+ acquiredByGroupId: string;
711
+ acquiredByGroupMusicStyleSnapshot?: string | null;
712
+ acquiredByGroupNameSnapshot?: string | null;
713
+ acquiredByGroupPhotoURLSnapshot?: string | null;
714
+ acquiredByUserId: string;
715
+ acquiredProducts?: Json;
716
+ baseCurrency?: string | null;
717
+ baseNetEarningsCents?: number | null;
718
+ basePriceCents?: number | null;
719
+ baseVatCents?: number | null;
720
+ buyerCurrency?: string | null;
721
+ buyerPriceCents?: number | null;
722
+ buyerVatCents?: number | null;
723
+ compositionId: string;
724
+ created_at?: string;
725
+ currency?: string | null;
726
+ customerId: string;
727
+ exchangeRate?: number | null;
728
+ exchangeRateDate?: string | null;
729
+ exchangeRateSource?: string | null;
655
730
  id?: string;
656
- new_value?: string | null;
657
- old_value?: string | null;
658
- payment_id: string;
731
+ netEarningsCents?: number | null;
732
+ priceCents?: number | null;
733
+ refundedAt?: string | null;
734
+ refundedCents?: number;
735
+ refundStatus?: string;
736
+ stripePaymentIntentId?: string | null;
737
+ stripeRefundId?: string | null;
738
+ stripeSessionId?: string | null;
739
+ updated_at?: string;
740
+ vatCents?: number | null;
659
741
  };
660
742
  Update: {
661
- action?: Database['public']['Enums']['group_payment_history_action'];
662
- changed_at?: string;
663
- changed_by?: string;
743
+ acquiredByGroupCountrySnapshot?: string | null;
744
+ acquiredByGroupId?: string;
745
+ acquiredByGroupMusicStyleSnapshot?: string | null;
746
+ acquiredByGroupNameSnapshot?: string | null;
747
+ acquiredByGroupPhotoURLSnapshot?: string | null;
748
+ acquiredByUserId?: string;
749
+ acquiredProducts?: Json;
750
+ baseCurrency?: string | null;
751
+ baseNetEarningsCents?: number | null;
752
+ basePriceCents?: number | null;
753
+ baseVatCents?: number | null;
754
+ buyerCurrency?: string | null;
755
+ buyerPriceCents?: number | null;
756
+ buyerVatCents?: number | null;
757
+ compositionId?: string;
758
+ created_at?: string;
759
+ currency?: string | null;
760
+ customerId?: string;
761
+ exchangeRate?: number | null;
762
+ exchangeRateDate?: string | null;
763
+ exchangeRateSource?: string | null;
664
764
  id?: string;
665
- new_value?: string | null;
666
- old_value?: string | null;
667
- payment_id?: string;
765
+ netEarningsCents?: number | null;
766
+ priceCents?: number | null;
767
+ refundedAt?: string | null;
768
+ refundedCents?: number;
769
+ refundStatus?: string;
770
+ stripePaymentIntentId?: string | null;
771
+ stripeRefundId?: string | null;
772
+ stripeSessionId?: string | null;
773
+ updated_at?: string;
774
+ vatCents?: number | null;
668
775
  };
669
776
  Relationships: [
670
777
  {
671
- foreignKeyName: 'group_payment_history_payment_id_fkey';
672
- columns: ['payment_id'];
778
+ foreignKeyName: 'compositionAcquisition_compositionId_fkey';
779
+ columns: ['compositionId'];
673
780
  isOneToOne: false;
674
- referencedRelation: 'group_payment';
781
+ referencedRelation: 'composerComposition';
782
+ referencedColumns: ['id'];
783
+ },
784
+ {
785
+ foreignKeyName: 'compositionAcquisition_compositionId_fkey';
786
+ columns: ['compositionId'];
787
+ isOneToOne: false;
788
+ referencedRelation: 'composerCompositionModel';
789
+ referencedColumns: ['id'];
790
+ },
791
+ {
792
+ foreignKeyName: 'compositionAcquisition_compositionId_fkey';
793
+ columns: ['compositionId'];
794
+ isOneToOne: false;
795
+ referencedRelation: 'composerCompositionPublicModel';
675
796
  referencedColumns: ['id'];
676
- }
797
+ },
798
+ {
799
+ foreignKeyName: 'compositionAcquisition_compositionId_fkey';
800
+ columns: ['compositionId'];
801
+ isOneToOne: false;
802
+ referencedRelation: 'composerOwnedCompositionMetricsModel';
803
+ referencedColumns: ['compositionId'];
804
+ },
805
+ {
806
+ foreignKeyName: 'compositionAcquisition_compositionId_fkey';
807
+ columns: ['compositionId'];
808
+ isOneToOne: false;
809
+ referencedRelation: 'composerOwnedCompositionProductBreakdownModel';
810
+ referencedColumns: ['compositionId'];
811
+ },
677
812
  ];
678
813
  };
679
- offer: {
814
+ compositionFavorite: {
680
815
  Row: {
681
- applicants: Json;
682
- applicantsIds: string[];
683
- country: string;
684
- createdAt: string;
685
- createdBy: string;
686
- createdOn: Database['public']['Enums']['created_on'];
687
- deadlineAt: string | null;
688
- deletedAt: string | null;
689
- deletedBy: string | null;
690
- description: string;
691
- eventId: string | null;
816
+ compositionId: string;
817
+ created_at: string;
692
818
  groupId: string;
693
- groupInfo: Json;
694
819
  id: string;
695
- instrument: string;
696
- locality: string;
697
- location: unknown;
698
- location_lonlat: Database['public']['CompositeTypes']['lonlat'];
699
- selectionClosedAt: string | null;
700
- selectionClosedBy: string | null;
701
- timezone: string;
702
- title: string;
703
- type: Database['public']['Enums']['offer_type'];
704
- updatedAt: string;
705
- updatedBy: string;
820
+ userId: string;
706
821
  };
707
822
  Insert: {
708
- applicants: Json;
709
- applicantsIds: string[];
710
- country: string;
711
- createdAt: string;
712
- createdBy: string;
713
- createdOn: Database['public']['Enums']['created_on'];
714
- deadlineAt?: string | null;
715
- deletedAt?: string | null;
716
- deletedBy?: string | null;
717
- description: string;
718
- eventId?: string | null;
823
+ compositionId: string;
824
+ created_at?: string;
719
825
  groupId: string;
720
- groupInfo?: Json;
721
- id: string;
722
- instrument: string;
723
- locality: string;
724
- location: unknown;
725
- location_lonlat?: Database['public']['CompositeTypes']['lonlat'];
726
- selectionClosedAt?: string | null;
727
- selectionClosedBy?: string | null;
728
- timezone: string;
729
- title: string;
730
- type: Database['public']['Enums']['offer_type'];
731
- updatedAt: string;
732
- updatedBy: string;
826
+ id?: string;
827
+ userId: string;
733
828
  };
734
829
  Update: {
735
- applicants?: Json;
736
- applicantsIds?: string[];
737
- country?: string;
738
- createdAt?: string;
739
- createdBy?: string;
740
- createdOn?: Database['public']['Enums']['created_on'];
741
- deadlineAt?: string | null;
742
- deletedAt?: string | null;
743
- deletedBy?: string | null;
744
- description?: string;
745
- eventId?: string | null;
830
+ compositionId?: string;
831
+ created_at?: string;
746
832
  groupId?: string;
747
- groupInfo?: Json;
748
833
  id?: string;
749
- instrument?: string;
750
- locality?: string;
751
- location?: unknown;
752
- location_lonlat?: Database['public']['CompositeTypes']['lonlat'];
753
- selectionClosedAt?: string | null;
754
- selectionClosedBy?: string | null;
755
- timezone?: string;
756
- title?: string;
757
- type?: Database['public']['Enums']['offer_type'];
758
- updatedAt?: string;
759
- updatedBy?: string;
834
+ userId?: string;
760
835
  };
761
836
  Relationships: [
762
837
  {
763
- foreignKeyName: 'public_offer_eventId_fkey';
764
- columns: ['eventId'];
838
+ foreignKeyName: 'compositionFavorite_compositionId_fkey';
839
+ columns: ['compositionId'];
765
840
  isOneToOne: false;
766
- referencedRelation: 'event';
841
+ referencedRelation: 'composerComposition';
767
842
  referencedColumns: ['id'];
768
843
  },
769
844
  {
770
- foreignKeyName: 'public_offer_groupId_fkey';
771
- columns: ['groupId'];
845
+ foreignKeyName: 'compositionFavorite_compositionId_fkey';
846
+ columns: ['compositionId'];
772
847
  isOneToOne: false;
773
- referencedRelation: 'group';
848
+ referencedRelation: 'composerCompositionModel';
849
+ referencedColumns: ['id'];
850
+ },
851
+ {
852
+ foreignKeyName: 'compositionFavorite_compositionId_fkey';
853
+ columns: ['compositionId'];
854
+ isOneToOne: false;
855
+ referencedRelation: 'composerCompositionPublicModel';
774
856
  referencedColumns: ['id'];
775
- }
857
+ },
858
+ {
859
+ foreignKeyName: 'compositionFavorite_compositionId_fkey';
860
+ columns: ['compositionId'];
861
+ isOneToOne: false;
862
+ referencedRelation: 'composerOwnedCompositionMetricsModel';
863
+ referencedColumns: ['compositionId'];
864
+ },
865
+ {
866
+ foreignKeyName: 'compositionFavorite_compositionId_fkey';
867
+ columns: ['compositionId'];
868
+ isOneToOne: false;
869
+ referencedRelation: 'composerOwnedCompositionProductBreakdownModel';
870
+ referencedColumns: ['compositionId'];
871
+ },
776
872
  ];
777
873
  };
778
- offer_history: {
874
+ compositionView: {
779
875
  Row: {
780
- action: string;
781
- created_at: string;
782
- group_id: string;
783
- id: number;
784
- offer_id: string;
785
- prev_value: Json | null;
786
- user_id: string;
787
- value: Json | null;
788
- };
789
- Insert: {
790
- action: string;
876
+ compositionId: string;
791
877
  created_at: string;
792
- group_id: string;
793
- id?: number;
794
- offer_id: string;
795
- prev_value?: Json | null;
796
- user_id: string;
797
- value?: Json | null;
798
- };
799
- Update: {
800
- action?: string;
801
- created_at?: string;
802
- group_id?: string;
803
- id?: number;
804
- offer_id?: string;
805
- prev_value?: Json | null;
806
- user_id?: string;
807
- value?: Json | null;
808
- };
809
- Relationships: [];
810
- };
811
- partnership_communication: {
812
- Row: {
813
- attachments: Json;
814
- createdAt: string;
815
- deletedAt: string | null;
878
+ groupId: string;
816
879
  id: string;
817
- imagesPath: string[];
818
- imageURL: string | null;
819
- message: Json;
820
- messageHtml: string;
821
- ownerId: string;
822
- ownerName: string;
823
- partnershipId: string;
824
- recipients: string[];
825
- recipientsCount: number;
826
- scheduledAt: string | null;
827
- status: Database['public']['Enums']['partnership_communication_status'];
828
- title: string;
829
880
  };
830
881
  Insert: {
831
- attachments?: Json;
832
- createdAt?: string;
833
- deletedAt?: string | null;
882
+ compositionId: string;
883
+ created_at?: string;
884
+ groupId: string;
834
885
  id?: string;
835
- imagesPath?: string[];
836
- imageURL?: string | null;
837
- message?: Json;
838
- messageHtml?: string;
839
- ownerId: string;
840
- ownerName: string;
841
- partnershipId: string;
842
- recipients?: string[];
843
- recipientsCount?: number;
844
- scheduledAt?: string | null;
845
- status: Database['public']['Enums']['partnership_communication_status'];
846
- title: string;
847
886
  };
848
887
  Update: {
849
- attachments?: Json;
850
- createdAt?: string;
851
- deletedAt?: string | null;
888
+ compositionId?: string;
889
+ created_at?: string;
890
+ groupId?: string;
852
891
  id?: string;
853
- imagesPath?: string[];
854
- imageURL?: string | null;
855
- message?: Json;
856
- messageHtml?: string;
857
- ownerId?: string;
858
- ownerName?: string;
859
- partnershipId?: string;
860
- recipients?: string[];
861
- recipientsCount?: number;
862
- scheduledAt?: string | null;
863
- status?: Database['public']['Enums']['partnership_communication_status'];
864
- title?: string;
865
892
  };
866
- Relationships: [];
893
+ Relationships: [
894
+ {
895
+ foreignKeyName: 'compositionView_compositionId_fkey';
896
+ columns: ['compositionId'];
897
+ isOneToOne: false;
898
+ referencedRelation: 'composerComposition';
899
+ referencedColumns: ['id'];
900
+ },
901
+ {
902
+ foreignKeyName: 'compositionView_compositionId_fkey';
903
+ columns: ['compositionId'];
904
+ isOneToOne: false;
905
+ referencedRelation: 'composerCompositionModel';
906
+ referencedColumns: ['id'];
907
+ },
908
+ {
909
+ foreignKeyName: 'compositionView_compositionId_fkey';
910
+ columns: ['compositionId'];
911
+ isOneToOne: false;
912
+ referencedRelation: 'composerCompositionPublicModel';
913
+ referencedColumns: ['id'];
914
+ },
915
+ {
916
+ foreignKeyName: 'compositionView_compositionId_fkey';
917
+ columns: ['compositionId'];
918
+ isOneToOne: false;
919
+ referencedRelation: 'composerOwnedCompositionMetricsModel';
920
+ referencedColumns: ['compositionId'];
921
+ },
922
+ {
923
+ foreignKeyName: 'compositionView_compositionId_fkey';
924
+ columns: ['compositionId'];
925
+ isOneToOne: false;
926
+ referencedRelation: 'composerOwnedCompositionProductBreakdownModel';
927
+ referencedColumns: ['compositionId'];
928
+ },
929
+ ];
867
930
  };
868
- partnership_group: {
931
+ compositionViewDaily: {
869
932
  Row: {
933
+ compositionId: string;
934
+ count: number;
935
+ date: string;
870
936
  groupId: string;
871
- linkedAt: string;
872
- linkedBy: string | null;
873
- partnershipId: string;
937
+ id: string;
874
938
  };
875
939
  Insert: {
940
+ compositionId: string;
941
+ count?: number;
942
+ date: string;
876
943
  groupId: string;
877
- linkedAt?: string;
878
- linkedBy?: string | null;
879
- partnershipId: string;
944
+ id?: string;
880
945
  };
881
946
  Update: {
947
+ compositionId?: string;
948
+ count?: number;
949
+ date?: string;
882
950
  groupId?: string;
883
- linkedAt?: string;
884
- linkedBy?: string | null;
885
- partnershipId?: string;
951
+ id?: string;
886
952
  };
887
953
  Relationships: [
888
954
  {
889
- foreignKeyName: 'partnership_group_group_id_fkey';
890
- columns: ['groupId'];
955
+ foreignKeyName: 'compositionViewDaily_compositionId_fkey';
956
+ columns: ['compositionId'];
891
957
  isOneToOne: false;
892
- referencedRelation: 'group';
958
+ referencedRelation: 'composerComposition';
959
+ referencedColumns: ['id'];
960
+ },
961
+ {
962
+ foreignKeyName: 'compositionViewDaily_compositionId_fkey';
963
+ columns: ['compositionId'];
964
+ isOneToOne: false;
965
+ referencedRelation: 'composerCompositionModel';
966
+ referencedColumns: ['id'];
967
+ },
968
+ {
969
+ foreignKeyName: 'compositionViewDaily_compositionId_fkey';
970
+ columns: ['compositionId'];
971
+ isOneToOne: false;
972
+ referencedRelation: 'composerCompositionPublicModel';
893
973
  referencedColumns: ['id'];
894
- }
974
+ },
975
+ {
976
+ foreignKeyName: 'compositionViewDaily_compositionId_fkey';
977
+ columns: ['compositionId'];
978
+ isOneToOne: false;
979
+ referencedRelation: 'composerOwnedCompositionMetricsModel';
980
+ referencedColumns: ['compositionId'];
981
+ },
982
+ {
983
+ foreignKeyName: 'compositionViewDaily_compositionId_fkey';
984
+ columns: ['compositionId'];
985
+ isOneToOne: false;
986
+ referencedRelation: 'composerOwnedCompositionProductBreakdownModel';
987
+ referencedColumns: ['compositionId'];
988
+ },
895
989
  ];
896
990
  };
897
- partnership_partner: {
991
+ currencyExchangeRate: {
898
992
  Row: {
899
- acceptedAt: string | null;
900
- acceptedBy: string | null;
901
- acceptsCommunications: boolean;
902
- address: Json | null;
903
- birthDate: string | null;
993
+ baseCurrency: string;
994
+ created_at: string;
995
+ fetchedAt: string;
996
+ id: string;
997
+ provider: string;
998
+ rate: number;
999
+ rateDate: string;
1000
+ targetCurrency: string;
1001
+ };
1002
+ Insert: {
1003
+ baseCurrency: string;
1004
+ created_at?: string;
1005
+ fetchedAt?: string;
1006
+ id?: string;
1007
+ provider: string;
1008
+ rate: number;
1009
+ rateDate: string;
1010
+ targetCurrency: string;
1011
+ };
1012
+ Update: {
1013
+ baseCurrency?: string;
1014
+ created_at?: string;
1015
+ fetchedAt?: string;
1016
+ id?: string;
1017
+ provider?: string;
1018
+ rate?: number;
1019
+ rateDate?: string;
1020
+ targetCurrency?: string;
1021
+ };
1022
+ Relationships: [];
1023
+ };
1024
+ event: {
1025
+ Row: {
1026
+ activeInvitationLink: boolean;
1027
+ calendarSequence: number;
1028
+ coverURL: string | null;
904
1029
  createdAt: string;
905
- createdBy: string;
906
- customFields: Json;
1030
+ createdOn: Database['public']['Enums']['created_on'];
1031
+ datetime: string;
1032
+ datetimeEnd: string;
907
1033
  deletedAt: string | null;
908
1034
  deletedBy: string | null;
909
- editedBy: string | null;
910
- email: string | null;
911
- groupIds: string[];
1035
+ description: string | null;
1036
+ descriptionSlate: Json[];
1037
+ displayName: string | null;
912
1038
  id: string;
913
- lastname: string;
914
- name: string;
915
- NIF: string | null;
916
- partnerNumber: number;
917
- partnershipId: string;
918
- payerId: string | null;
919
- paymentMethod: Database['public']['Enums']['partnership_payment_method'] | null;
920
- phone: string | null;
921
- photoURL: string;
922
- sepaMandate: Json | null;
923
- status: Database['public']['Enums']['partnership_partner_status'];
924
- subscriptionIds: string[];
925
- subscriptions: Json;
926
- tagIds: string[];
1039
+ invitationLink: string | null;
1040
+ locality: string | null;
1041
+ location: unknown;
1042
+ location_lonlat: Database['public']['CompositeTypes']['lonlat'];
1043
+ maxAttendance: number | null;
1044
+ notifyAt: string;
1045
+ online: boolean;
1046
+ owner: string | null;
1047
+ playerIds: string[];
1048
+ players: Json;
1049
+ promoter: string | null;
1050
+ relEvents: string[];
1051
+ repeat: Json | null;
1052
+ repertory: Json;
1053
+ repertoryIds: string[];
1054
+ responseDeadline: Json;
1055
+ responseDeadlineAt: string;
1056
+ rollCalledAt: string | null;
1057
+ rollCalledBy: string | null;
1058
+ rollCallHistory: Json[];
1059
+ rollCallReminderAt: string | null;
1060
+ selectionMode: Database['public']['Enums']['event_selection_mode'] | null;
1061
+ selectionModeClosedAt: string | null;
1062
+ shortDynamicLink: string | null;
1063
+ sites: boolean;
1064
+ stage: Json | null;
1065
+ stageTemplateId: string | null;
1066
+ templateId: string | null;
1067
+ timezone: string;
1068
+ type: Database['public']['Enums']['event_type'];
927
1069
  updatedAt: string;
928
- userId: string | null;
1070
+ videoURL: string | null;
929
1071
  };
930
1072
  Insert: {
931
- acceptedAt?: string | null;
932
- acceptedBy?: string | null;
933
- acceptsCommunications?: boolean;
934
- address?: Json | null;
935
- birthDate?: string | null;
1073
+ activeInvitationLink: boolean;
1074
+ calendarSequence?: number;
1075
+ coverURL?: string | null;
936
1076
  createdAt?: string;
937
- createdBy: string;
938
- customFields?: Json;
1077
+ createdOn: Database['public']['Enums']['created_on'];
1078
+ datetime: string;
1079
+ datetimeEnd: string;
939
1080
  deletedAt?: string | null;
940
1081
  deletedBy?: string | null;
941
- editedBy?: string | null;
942
- email?: string | null;
943
- groupIds?: string[];
944
- id?: string;
945
- lastname?: string;
946
- name: string;
947
- NIF?: string | null;
948
- partnerNumber: number;
949
- partnershipId: string;
950
- payerId?: string | null;
951
- paymentMethod?:
952
- | Database['public']['Enums']['partnership_payment_method']
953
- | null;
954
- phone?: string | null;
955
- photoURL?: string;
956
- sepaMandate?: Json | null;
957
- status?: Database['public']['Enums']['partnership_partner_status'];
958
- subscriptionIds?: string[];
959
- subscriptions?: Json;
960
- tagIds?: string[];
1082
+ description?: string | null;
1083
+ descriptionSlate: Json[];
1084
+ displayName?: string | null;
1085
+ id: string;
1086
+ invitationLink?: string | null;
1087
+ locality?: string | null;
1088
+ location: unknown;
1089
+ location_lonlat?: Database['public']['CompositeTypes']['lonlat'];
1090
+ maxAttendance?: number | null;
1091
+ notifyAt: string;
1092
+ online: boolean;
1093
+ owner?: string | null;
1094
+ playerIds: string[];
1095
+ players: Json;
1096
+ promoter?: string | null;
1097
+ relEvents: string[];
1098
+ repeat?: Json | null;
1099
+ repertory: Json;
1100
+ repertoryIds: string[];
1101
+ responseDeadline: Json;
1102
+ responseDeadlineAt: string;
1103
+ rollCalledAt?: string | null;
1104
+ rollCalledBy?: string | null;
1105
+ rollCallHistory: Json[];
1106
+ rollCallReminderAt?: string | null;
1107
+ selectionMode?: Database['public']['Enums']['event_selection_mode'] | null;
1108
+ selectionModeClosedAt?: string | null;
1109
+ shortDynamicLink?: string | null;
1110
+ sites?: boolean;
1111
+ stage?: Json | null;
1112
+ stageTemplateId?: string | null;
1113
+ templateId?: string | null;
1114
+ timezone: string;
1115
+ type: Database['public']['Enums']['event_type'];
961
1116
  updatedAt?: string;
962
- userId?: string | null;
1117
+ videoURL?: string | null;
963
1118
  };
964
1119
  Update: {
965
- acceptedAt?: string | null;
966
- acceptedBy?: string | null;
967
- acceptsCommunications?: boolean;
968
- address?: Json | null;
969
- birthDate?: string | null;
1120
+ activeInvitationLink?: boolean;
1121
+ calendarSequence?: number;
1122
+ coverURL?: string | null;
970
1123
  createdAt?: string;
971
- createdBy?: string;
972
- customFields?: Json;
1124
+ createdOn?: Database['public']['Enums']['created_on'];
1125
+ datetime?: string;
1126
+ datetimeEnd?: string;
973
1127
  deletedAt?: string | null;
974
1128
  deletedBy?: string | null;
975
- editedBy?: string | null;
976
- email?: string | null;
977
- groupIds?: string[];
1129
+ description?: string | null;
1130
+ descriptionSlate?: Json[];
1131
+ displayName?: string | null;
978
1132
  id?: string;
979
- lastname?: string;
980
- name?: string;
981
- NIF?: string | null;
982
- partnerNumber?: number;
983
- partnershipId?: string;
984
- payerId?: string | null;
985
- paymentMethod?:
986
- | Database['public']['Enums']['partnership_payment_method']
987
- | null;
988
- phone?: string | null;
989
- photoURL?: string;
990
- sepaMandate?: Json | null;
991
- status?: Database['public']['Enums']['partnership_partner_status'];
992
- subscriptionIds?: string[];
993
- subscriptions?: Json;
994
- tagIds?: string[];
1133
+ invitationLink?: string | null;
1134
+ locality?: string | null;
1135
+ location?: unknown;
1136
+ location_lonlat?: Database['public']['CompositeTypes']['lonlat'];
1137
+ maxAttendance?: number | null;
1138
+ notifyAt?: string;
1139
+ online?: boolean;
1140
+ owner?: string | null;
1141
+ playerIds?: string[];
1142
+ players?: Json;
1143
+ promoter?: string | null;
1144
+ relEvents?: string[];
1145
+ repeat?: Json | null;
1146
+ repertory?: Json;
1147
+ repertoryIds?: string[];
1148
+ responseDeadline?: Json;
1149
+ responseDeadlineAt?: string;
1150
+ rollCalledAt?: string | null;
1151
+ rollCalledBy?: string | null;
1152
+ rollCallHistory?: Json[];
1153
+ rollCallReminderAt?: string | null;
1154
+ selectionMode?: Database['public']['Enums']['event_selection_mode'] | null;
1155
+ selectionModeClosedAt?: string | null;
1156
+ shortDynamicLink?: string | null;
1157
+ sites?: boolean;
1158
+ stage?: Json | null;
1159
+ stageTemplateId?: string | null;
1160
+ templateId?: string | null;
1161
+ timezone?: string;
1162
+ type?: Database['public']['Enums']['event_type'];
995
1163
  updatedAt?: string;
996
- userId?: string | null;
1164
+ videoURL?: string | null;
997
1165
  };
998
1166
  Relationships: [
999
1167
  {
1000
- foreignKeyName: 'partnership_partner_payer_id_fkey';
1001
- columns: ['payerId'];
1168
+ foreignKeyName: 'event_promoter_group_id_fkey';
1169
+ columns: ['promoter'];
1002
1170
  isOneToOne: false;
1003
- referencedRelation: 'partnership_partner';
1171
+ referencedRelation: 'group';
1004
1172
  referencedColumns: ['id'];
1005
- }
1173
+ },
1006
1174
  ];
1007
1175
  };
1008
- partnership_payment: {
1176
+ event_history: {
1009
1177
  Row: {
1010
- amount: number;
1011
- createdAt: string;
1012
- createdBy: string | null;
1013
- dueDate: string;
1014
- editedBy: string | null;
1015
- id: string;
1016
- partnerId: string;
1017
- partnershipId: string;
1018
- payerId: string | null;
1019
- paymentMethod: Database['public']['Enums']['partnership_payment_method'] | null;
1020
- receiptFilePath: string | null;
1021
- sepaEndToEndId: string | null;
1022
- sepaPaymentGroupId: string | null;
1023
- status: Database['public']['Enums']['partnership_payment_status'];
1024
- subscriptionId: string | null;
1025
- title: string;
1026
- updatedAt: string;
1178
+ action: string;
1179
+ created_at: string;
1180
+ event_id: string;
1181
+ group_id: string;
1182
+ id: number;
1183
+ prev_value: Json | null;
1184
+ user_id: string;
1185
+ value: Json | null;
1027
1186
  };
1028
1187
  Insert: {
1029
- amount: number;
1030
- createdAt?: string;
1031
- createdBy?: string | null;
1032
- dueDate: string;
1033
- editedBy?: string | null;
1188
+ action: string;
1189
+ created_at: string;
1190
+ event_id: string;
1191
+ group_id: string;
1192
+ id?: number;
1193
+ prev_value?: Json | null;
1194
+ user_id: string;
1195
+ value?: Json | null;
1196
+ };
1197
+ Update: {
1198
+ action?: string;
1199
+ created_at?: string;
1200
+ event_id?: string;
1201
+ group_id?: string;
1202
+ id?: number;
1203
+ prev_value?: Json | null;
1204
+ user_id?: string;
1205
+ value?: Json | null;
1206
+ };
1207
+ Relationships: [];
1208
+ };
1209
+ group: {
1210
+ Row: {
1211
+ activeInvitationLink: boolean;
1212
+ addresses: Json[];
1213
+ administrators: string[];
1214
+ config: Json;
1215
+ configSites: Json;
1216
+ country: string;
1217
+ createdAt: string;
1218
+ createdOn: Database['public']['Enums']['created_on'];
1219
+ customerDisplayName: string | null;
1220
+ customerId: string | null;
1221
+ deletedAt: string | null;
1222
+ deletedBy: string | null;
1223
+ description: string | null;
1224
+ displayName: string;
1225
+ id: string;
1226
+ instruments: Json;
1227
+ intercomId: string | null;
1228
+ invitationEmails: string[];
1229
+ invitationLink: string | null;
1230
+ locality: string;
1231
+ location: unknown;
1232
+ location_lonlat: Database['public']['CompositeTypes']['lonlat'];
1233
+ metadata: Json;
1234
+ musicStyle: string;
1235
+ onboardingMessages: Json[];
1236
+ owner: string | null;
1237
+ partnershipId: string | null;
1238
+ photoURL: string;
1239
+ planId: Database['public']['Enums']['group_plan'];
1240
+ playerIds: string[];
1241
+ players: Json;
1242
+ repertoireTags: Json;
1243
+ rollcallLink: string | null;
1244
+ satisfactionIndex: Json;
1245
+ shortDynamicLink: string | null;
1246
+ socialNetworks: Json | null;
1247
+ status: Database['public']['Enums']['group_status'];
1248
+ subscriptionId: string | null;
1249
+ templates: Json;
1250
+ trialEndAt: string | null;
1251
+ updatedAt: string;
1252
+ username: string;
1253
+ visitedDashboardAt: Json;
1254
+ };
1255
+ Insert: {
1256
+ activeInvitationLink: boolean;
1257
+ addresses: Json[];
1258
+ administrators: string[];
1259
+ config: Json;
1260
+ configSites?: Json;
1261
+ country: string;
1262
+ createdAt?: string;
1263
+ createdOn: Database['public']['Enums']['created_on'];
1264
+ customerDisplayName?: string | null;
1265
+ customerId?: string | null;
1266
+ deletedAt?: string | null;
1267
+ deletedBy?: string | null;
1268
+ description?: string | null;
1269
+ displayName: string;
1270
+ id: string;
1271
+ instruments: Json;
1272
+ intercomId?: string | null;
1273
+ invitationEmails: string[];
1274
+ invitationLink?: string | null;
1275
+ locality: string;
1276
+ location: unknown;
1277
+ location_lonlat?: Database['public']['CompositeTypes']['lonlat'];
1278
+ metadata: Json;
1279
+ musicStyle: string;
1280
+ onboardingMessages: Json[];
1281
+ owner?: string | null;
1282
+ partnershipId?: string | null;
1283
+ photoURL: string;
1284
+ planId: Database['public']['Enums']['group_plan'];
1285
+ playerIds: string[];
1286
+ players: Json;
1287
+ repertoireTags: Json;
1288
+ rollcallLink?: string | null;
1289
+ satisfactionIndex: Json;
1290
+ shortDynamicLink?: string | null;
1291
+ socialNetworks?: Json | null;
1292
+ status: Database['public']['Enums']['group_status'];
1293
+ subscriptionId?: string | null;
1294
+ templates: Json;
1295
+ trialEndAt?: string | null;
1296
+ updatedAt?: string;
1297
+ username: string;
1298
+ visitedDashboardAt: Json;
1299
+ };
1300
+ Update: {
1301
+ activeInvitationLink?: boolean;
1302
+ addresses?: Json[];
1303
+ administrators?: string[];
1304
+ config?: Json;
1305
+ configSites?: Json;
1306
+ country?: string;
1307
+ createdAt?: string;
1308
+ createdOn?: Database['public']['Enums']['created_on'];
1309
+ customerDisplayName?: string | null;
1310
+ customerId?: string | null;
1311
+ deletedAt?: string | null;
1312
+ deletedBy?: string | null;
1313
+ description?: string | null;
1314
+ displayName?: string;
1034
1315
  id?: string;
1035
- partnerId: string;
1036
- partnershipId: string;
1037
- payerId?: string | null;
1038
- paymentMethod?:
1039
- | Database['public']['Enums']['partnership_payment_method']
1040
- | null;
1041
- receiptFilePath?: string | null;
1042
- sepaEndToEndId?: string | null;
1043
- sepaPaymentGroupId?: string | null;
1044
- status?: Database['public']['Enums']['partnership_payment_status'];
1316
+ instruments?: Json;
1317
+ intercomId?: string | null;
1318
+ invitationEmails?: string[];
1319
+ invitationLink?: string | null;
1320
+ locality?: string;
1321
+ location?: unknown;
1322
+ location_lonlat?: Database['public']['CompositeTypes']['lonlat'];
1323
+ metadata?: Json;
1324
+ musicStyle?: string;
1325
+ onboardingMessages?: Json[];
1326
+ owner?: string | null;
1327
+ partnershipId?: string | null;
1328
+ photoURL?: string;
1329
+ planId?: Database['public']['Enums']['group_plan'];
1330
+ playerIds?: string[];
1331
+ players?: Json;
1332
+ repertoireTags?: Json;
1333
+ rollcallLink?: string | null;
1334
+ satisfactionIndex?: Json;
1335
+ shortDynamicLink?: string | null;
1336
+ socialNetworks?: Json | null;
1337
+ status?: Database['public']['Enums']['group_status'];
1045
1338
  subscriptionId?: string | null;
1046
- title: string;
1339
+ templates?: Json;
1340
+ trialEndAt?: string | null;
1047
1341
  updatedAt?: string;
1342
+ username?: string;
1343
+ visitedDashboardAt?: Json;
1344
+ };
1345
+ Relationships: [];
1346
+ };
1347
+ group_history: {
1348
+ Row: {
1349
+ action: string;
1350
+ created_at: string;
1351
+ group_id: string;
1352
+ id: number;
1353
+ prev_value: Json | null;
1354
+ user_id: string;
1355
+ value: Json | null;
1356
+ };
1357
+ Insert: {
1358
+ action: string;
1359
+ created_at: string;
1360
+ group_id: string;
1361
+ id?: number;
1362
+ prev_value?: Json | null;
1363
+ user_id: string;
1364
+ value?: Json | null;
1048
1365
  };
1049
1366
  Update: {
1050
- amount?: number;
1367
+ action?: string;
1368
+ created_at?: string;
1369
+ group_id?: string;
1370
+ id?: number;
1371
+ prev_value?: Json | null;
1372
+ user_id?: string;
1373
+ value?: Json | null;
1374
+ };
1375
+ Relationships: [];
1376
+ };
1377
+ group_payment: {
1378
+ Row: {
1379
+ appliedRules: Json;
1380
+ assignedTo: string;
1381
+ baseAmount: number | null;
1382
+ concept: string;
1383
+ conceptNorm: string | null;
1384
+ createdAt: string;
1385
+ createdBy: string;
1386
+ currency: string;
1387
+ editedBy: string | null;
1388
+ eventId: string | null;
1389
+ groupId: string;
1390
+ id: string;
1391
+ note: string | null;
1392
+ paidAt: string | null;
1393
+ paidBy: string | null;
1394
+ paymentMethod: Database['public']['Enums']['group_payment_method'] | null;
1395
+ playerId: string | null;
1396
+ status: Database['public']['Enums']['group_payment_status'];
1397
+ totalAmount: number | null;
1398
+ type: Database['public']['Enums']['group_payment_type'];
1399
+ updatedAt: string;
1400
+ };
1401
+ Insert: {
1402
+ appliedRules?: Json;
1403
+ assignedTo: string;
1404
+ baseAmount?: number | null;
1405
+ concept: string;
1406
+ conceptNorm?: string | null;
1051
1407
  createdAt?: string;
1052
- createdBy?: string | null;
1053
- dueDate?: string;
1408
+ createdBy: string;
1409
+ currency?: string;
1410
+ editedBy?: string | null;
1411
+ eventId?: string | null;
1412
+ groupId: string;
1413
+ id?: string;
1414
+ note?: string | null;
1415
+ paidAt?: string | null;
1416
+ paidBy?: string | null;
1417
+ paymentMethod?: Database['public']['Enums']['group_payment_method'] | null;
1418
+ playerId?: string | null;
1419
+ status: Database['public']['Enums']['group_payment_status'];
1420
+ totalAmount?: number | null;
1421
+ type: Database['public']['Enums']['group_payment_type'];
1422
+ updatedAt?: string;
1423
+ };
1424
+ Update: {
1425
+ appliedRules?: Json;
1426
+ assignedTo?: string;
1427
+ baseAmount?: number | null;
1428
+ concept?: string;
1429
+ conceptNorm?: string | null;
1430
+ createdAt?: string;
1431
+ createdBy?: string;
1432
+ currency?: string;
1054
1433
  editedBy?: string | null;
1434
+ eventId?: string | null;
1435
+ groupId?: string;
1436
+ id?: string;
1437
+ note?: string | null;
1438
+ paidAt?: string | null;
1439
+ paidBy?: string | null;
1440
+ paymentMethod?: Database['public']['Enums']['group_payment_method'] | null;
1441
+ playerId?: string | null;
1442
+ status?: Database['public']['Enums']['group_payment_status'];
1443
+ totalAmount?: number | null;
1444
+ type?: Database['public']['Enums']['group_payment_type'];
1445
+ updatedAt?: string;
1446
+ };
1447
+ Relationships: [];
1448
+ };
1449
+ group_payment_history: {
1450
+ Row: {
1451
+ action: Database['public']['Enums']['group_payment_history_action'];
1452
+ changed_at: string;
1453
+ changed_by: string;
1454
+ id: string;
1455
+ new_value: string | null;
1456
+ old_value: string | null;
1457
+ payment_id: string;
1458
+ };
1459
+ Insert: {
1460
+ action: Database['public']['Enums']['group_payment_history_action'];
1461
+ changed_at?: string;
1462
+ changed_by: string;
1463
+ id?: string;
1464
+ new_value?: string | null;
1465
+ old_value?: string | null;
1466
+ payment_id: string;
1467
+ };
1468
+ Update: {
1469
+ action?: Database['public']['Enums']['group_payment_history_action'];
1470
+ changed_at?: string;
1471
+ changed_by?: string;
1472
+ id?: string;
1473
+ new_value?: string | null;
1474
+ old_value?: string | null;
1475
+ payment_id?: string;
1476
+ };
1477
+ Relationships: [
1478
+ {
1479
+ foreignKeyName: 'group_payment_history_payment_id_fkey';
1480
+ columns: ['payment_id'];
1481
+ isOneToOne: false;
1482
+ referencedRelation: 'group_payment';
1483
+ referencedColumns: ['id'];
1484
+ },
1485
+ ];
1486
+ };
1487
+ offer: {
1488
+ Row: {
1489
+ applicants: Json;
1490
+ applicantsIds: string[];
1491
+ country: string;
1492
+ createdAt: string;
1493
+ createdBy: string;
1494
+ createdOn: Database['public']['Enums']['created_on'];
1495
+ deadlineAt: string | null;
1496
+ deletedAt: string | null;
1497
+ deletedBy: string | null;
1498
+ description: string;
1499
+ eventId: string | null;
1500
+ groupId: string;
1501
+ groupInfo: Json;
1502
+ id: string;
1503
+ instrument: string;
1504
+ locality: string;
1505
+ location: unknown;
1506
+ location_lonlat: Database['public']['CompositeTypes']['lonlat'];
1507
+ selectionClosedAt: string | null;
1508
+ selectionClosedBy: string | null;
1509
+ timezone: string;
1510
+ title: string;
1511
+ type: Database['public']['Enums']['offer_type'];
1512
+ updatedAt: string;
1513
+ updatedBy: string;
1514
+ };
1515
+ Insert: {
1516
+ applicants: Json;
1517
+ applicantsIds: string[];
1518
+ country: string;
1519
+ createdAt: string;
1520
+ createdBy: string;
1521
+ createdOn: Database['public']['Enums']['created_on'];
1522
+ deadlineAt?: string | null;
1523
+ deletedAt?: string | null;
1524
+ deletedBy?: string | null;
1525
+ description: string;
1526
+ eventId?: string | null;
1527
+ groupId: string;
1528
+ groupInfo?: Json;
1529
+ id: string;
1530
+ instrument: string;
1531
+ locality: string;
1532
+ location: unknown;
1533
+ location_lonlat?: Database['public']['CompositeTypes']['lonlat'];
1534
+ selectionClosedAt?: string | null;
1535
+ selectionClosedBy?: string | null;
1536
+ timezone: string;
1537
+ title: string;
1538
+ type: Database['public']['Enums']['offer_type'];
1539
+ updatedAt: string;
1540
+ updatedBy: string;
1541
+ };
1542
+ Update: {
1543
+ applicants?: Json;
1544
+ applicantsIds?: string[];
1545
+ country?: string;
1546
+ createdAt?: string;
1547
+ createdBy?: string;
1548
+ createdOn?: Database['public']['Enums']['created_on'];
1549
+ deadlineAt?: string | null;
1550
+ deletedAt?: string | null;
1551
+ deletedBy?: string | null;
1552
+ description?: string;
1553
+ eventId?: string | null;
1554
+ groupId?: string;
1555
+ groupInfo?: Json;
1556
+ id?: string;
1557
+ instrument?: string;
1558
+ locality?: string;
1559
+ location?: unknown;
1560
+ location_lonlat?: Database['public']['CompositeTypes']['lonlat'];
1561
+ selectionClosedAt?: string | null;
1562
+ selectionClosedBy?: string | null;
1563
+ timezone?: string;
1564
+ title?: string;
1565
+ type?: Database['public']['Enums']['offer_type'];
1566
+ updatedAt?: string;
1567
+ updatedBy?: string;
1568
+ };
1569
+ Relationships: [
1570
+ {
1571
+ foreignKeyName: 'public_offer_eventId_fkey';
1572
+ columns: ['eventId'];
1573
+ isOneToOne: false;
1574
+ referencedRelation: 'event';
1575
+ referencedColumns: ['id'];
1576
+ },
1577
+ {
1578
+ foreignKeyName: 'public_offer_groupId_fkey';
1579
+ columns: ['groupId'];
1580
+ isOneToOne: false;
1581
+ referencedRelation: 'group';
1582
+ referencedColumns: ['id'];
1583
+ },
1584
+ ];
1585
+ };
1586
+ offer_history: {
1587
+ Row: {
1588
+ action: string;
1589
+ created_at: string;
1590
+ group_id: string;
1591
+ id: number;
1592
+ offer_id: string;
1593
+ prev_value: Json | null;
1594
+ user_id: string;
1595
+ value: Json | null;
1596
+ };
1597
+ Insert: {
1598
+ action: string;
1599
+ created_at: string;
1600
+ group_id: string;
1601
+ id?: number;
1602
+ offer_id: string;
1603
+ prev_value?: Json | null;
1604
+ user_id: string;
1605
+ value?: Json | null;
1606
+ };
1607
+ Update: {
1608
+ action?: string;
1609
+ created_at?: string;
1610
+ group_id?: string;
1611
+ id?: number;
1612
+ offer_id?: string;
1613
+ prev_value?: Json | null;
1614
+ user_id?: string;
1615
+ value?: Json | null;
1616
+ };
1617
+ Relationships: [];
1618
+ };
1619
+ partnership_communication: {
1620
+ Row: {
1621
+ attachments: Json;
1622
+ createdAt: string;
1623
+ deletedAt: string | null;
1624
+ id: string;
1625
+ imagesPath: string[];
1626
+ imageURL: string | null;
1627
+ message: Json;
1628
+ messageHtml: string;
1629
+ ownerId: string;
1630
+ ownerName: string;
1631
+ partnershipId: string;
1632
+ recipients: string[];
1633
+ recipientsCount: number;
1634
+ scheduledAt: string | null;
1635
+ status: Database['public']['Enums']['partnership_communication_status'];
1636
+ title: string;
1637
+ };
1638
+ Insert: {
1639
+ attachments?: Json;
1640
+ createdAt?: string;
1641
+ deletedAt?: string | null;
1642
+ id?: string;
1643
+ imagesPath?: string[];
1644
+ imageURL?: string | null;
1645
+ message?: Json;
1646
+ messageHtml?: string;
1647
+ ownerId: string;
1648
+ ownerName: string;
1649
+ partnershipId: string;
1650
+ recipients?: string[];
1651
+ recipientsCount?: number;
1652
+ scheduledAt?: string | null;
1653
+ status: Database['public']['Enums']['partnership_communication_status'];
1654
+ title: string;
1655
+ };
1656
+ Update: {
1657
+ attachments?: Json;
1658
+ createdAt?: string;
1659
+ deletedAt?: string | null;
1660
+ id?: string;
1661
+ imagesPath?: string[];
1662
+ imageURL?: string | null;
1663
+ message?: Json;
1664
+ messageHtml?: string;
1665
+ ownerId?: string;
1666
+ ownerName?: string;
1667
+ partnershipId?: string;
1668
+ recipients?: string[];
1669
+ recipientsCount?: number;
1670
+ scheduledAt?: string | null;
1671
+ status?: Database['public']['Enums']['partnership_communication_status'];
1672
+ title?: string;
1673
+ };
1674
+ Relationships: [];
1675
+ };
1676
+ partnership_group: {
1677
+ Row: {
1678
+ groupId: string;
1679
+ linkedAt: string;
1680
+ linkedBy: string | null;
1681
+ partnershipId: string;
1682
+ };
1683
+ Insert: {
1684
+ groupId: string;
1685
+ linkedAt?: string;
1686
+ linkedBy?: string | null;
1687
+ partnershipId: string;
1688
+ };
1689
+ Update: {
1690
+ groupId?: string;
1691
+ linkedAt?: string;
1692
+ linkedBy?: string | null;
1693
+ partnershipId?: string;
1694
+ };
1695
+ Relationships: [
1696
+ {
1697
+ foreignKeyName: 'partnership_group_group_id_fkey';
1698
+ columns: ['groupId'];
1699
+ isOneToOne: false;
1700
+ referencedRelation: 'group';
1701
+ referencedColumns: ['id'];
1702
+ },
1703
+ ];
1704
+ };
1705
+ partnership_partner: {
1706
+ Row: {
1707
+ acceptedAt: string | null;
1708
+ acceptedBy: string | null;
1709
+ acceptsCommunications: boolean;
1710
+ address: Json | null;
1711
+ birthDate: string | null;
1712
+ createdAt: string;
1713
+ createdBy: string;
1714
+ customFields: Json;
1715
+ deletedAt: string | null;
1716
+ deletedBy: string | null;
1717
+ editedBy: string | null;
1718
+ email: string | null;
1719
+ groupIds: string[];
1720
+ id: string;
1721
+ lastname: string;
1722
+ name: string;
1723
+ NIF: string | null;
1724
+ partnerNumber: number;
1725
+ partnershipId: string;
1726
+ payerId: string | null;
1727
+ paymentMethod: Database['public']['Enums']['partnership_payment_method'] | null;
1728
+ phone: string | null;
1729
+ photoURL: string;
1730
+ sepaMandate: Json | null;
1731
+ status: Database['public']['Enums']['partnership_partner_status'];
1732
+ subscriptionIds: string[];
1733
+ subscriptions: Json;
1734
+ tagIds: string[];
1735
+ updatedAt: string;
1736
+ userId: string | null;
1737
+ };
1738
+ Insert: {
1739
+ acceptedAt?: string | null;
1740
+ acceptedBy?: string | null;
1741
+ acceptsCommunications?: boolean;
1742
+ address?: Json | null;
1743
+ birthDate?: string | null;
1744
+ createdAt?: string;
1745
+ createdBy: string;
1746
+ customFields?: Json;
1747
+ deletedAt?: string | null;
1748
+ deletedBy?: string | null;
1749
+ editedBy?: string | null;
1750
+ email?: string | null;
1751
+ groupIds?: string[];
1752
+ id?: string;
1753
+ lastname?: string;
1754
+ name: string;
1755
+ NIF?: string | null;
1756
+ partnerNumber: number;
1757
+ partnershipId: string;
1758
+ payerId?: string | null;
1759
+ paymentMethod?:
1760
+ | Database['public']['Enums']['partnership_payment_method']
1761
+ | null;
1762
+ phone?: string | null;
1763
+ photoURL?: string;
1764
+ sepaMandate?: Json | null;
1765
+ status?: Database['public']['Enums']['partnership_partner_status'];
1766
+ subscriptionIds?: string[];
1767
+ subscriptions?: Json;
1768
+ tagIds?: string[];
1769
+ updatedAt?: string;
1770
+ userId?: string | null;
1771
+ };
1772
+ Update: {
1773
+ acceptedAt?: string | null;
1774
+ acceptedBy?: string | null;
1775
+ acceptsCommunications?: boolean;
1776
+ address?: Json | null;
1777
+ birthDate?: string | null;
1778
+ createdAt?: string;
1779
+ createdBy?: string;
1780
+ customFields?: Json;
1781
+ deletedAt?: string | null;
1782
+ deletedBy?: string | null;
1783
+ editedBy?: string | null;
1784
+ email?: string | null;
1785
+ groupIds?: string[];
1786
+ id?: string;
1787
+ lastname?: string;
1788
+ name?: string;
1789
+ NIF?: string | null;
1790
+ partnerNumber?: number;
1791
+ partnershipId?: string;
1792
+ payerId?: string | null;
1793
+ paymentMethod?:
1794
+ | Database['public']['Enums']['partnership_payment_method']
1795
+ | null;
1796
+ phone?: string | null;
1797
+ photoURL?: string;
1798
+ sepaMandate?: Json | null;
1799
+ status?: Database['public']['Enums']['partnership_partner_status'];
1800
+ subscriptionIds?: string[];
1801
+ subscriptions?: Json;
1802
+ tagIds?: string[];
1803
+ updatedAt?: string;
1804
+ userId?: string | null;
1805
+ };
1806
+ Relationships: [
1807
+ {
1808
+ foreignKeyName: 'partnership_partner_payer_id_fkey';
1809
+ columns: ['payerId'];
1810
+ isOneToOne: false;
1811
+ referencedRelation: 'partnership_partner';
1812
+ referencedColumns: ['id'];
1813
+ },
1814
+ ];
1815
+ };
1816
+ partnership_payment: {
1817
+ Row: {
1818
+ amount: number;
1819
+ createdAt: string;
1820
+ createdBy: string | null;
1821
+ dueDate: string;
1822
+ editedBy: string | null;
1823
+ id: string;
1824
+ partnerId: string;
1825
+ partnershipId: string;
1826
+ payerId: string | null;
1827
+ paymentMethod: Database['public']['Enums']['partnership_payment_method'] | null;
1828
+ receiptFilePath: string | null;
1829
+ sepaEndToEndId: string | null;
1830
+ sepaPaymentGroupId: string | null;
1831
+ status: Database['public']['Enums']['partnership_payment_status'];
1832
+ subscriptionId: string | null;
1833
+ title: string;
1834
+ updatedAt: string;
1835
+ };
1836
+ Insert: {
1837
+ amount: number;
1838
+ createdAt?: string;
1839
+ createdBy?: string | null;
1840
+ dueDate: string;
1841
+ editedBy?: string | null;
1842
+ id?: string;
1843
+ partnerId: string;
1844
+ partnershipId: string;
1845
+ payerId?: string | null;
1846
+ paymentMethod?:
1847
+ | Database['public']['Enums']['partnership_payment_method']
1848
+ | null;
1849
+ receiptFilePath?: string | null;
1850
+ sepaEndToEndId?: string | null;
1851
+ sepaPaymentGroupId?: string | null;
1852
+ status?: Database['public']['Enums']['partnership_payment_status'];
1853
+ subscriptionId?: string | null;
1854
+ title: string;
1855
+ updatedAt?: string;
1856
+ };
1857
+ Update: {
1858
+ amount?: number;
1859
+ createdAt?: string;
1860
+ createdBy?: string | null;
1861
+ dueDate?: string;
1862
+ editedBy?: string | null;
1863
+ id?: string;
1864
+ partnerId?: string;
1865
+ partnershipId?: string;
1866
+ payerId?: string | null;
1867
+ paymentMethod?:
1868
+ | Database['public']['Enums']['partnership_payment_method']
1869
+ | null;
1870
+ receiptFilePath?: string | null;
1871
+ sepaEndToEndId?: string | null;
1872
+ sepaPaymentGroupId?: string | null;
1873
+ status?: Database['public']['Enums']['partnership_payment_status'];
1874
+ subscriptionId?: string | null;
1875
+ title?: string;
1876
+ updatedAt?: string;
1877
+ };
1878
+ Relationships: [
1879
+ {
1880
+ foreignKeyName: 'partnership_payment_payer_id_fkey';
1881
+ columns: ['payerId'];
1882
+ isOneToOne: false;
1883
+ referencedRelation: 'partnership_partner';
1884
+ referencedColumns: ['id'];
1885
+ },
1886
+ {
1887
+ foreignKeyName: 'partnership_payment_sepa_group_id_fkey';
1888
+ columns: ['sepaPaymentGroupId'];
1889
+ isOneToOne: false;
1890
+ referencedRelation: 'partnership_sepa_payment_group';
1891
+ referencedColumns: ['id'];
1892
+ },
1893
+ {
1894
+ foreignKeyName: 'partnership_payment_subscription_id_fkey';
1895
+ columns: ['subscriptionId'];
1896
+ isOneToOne: false;
1897
+ referencedRelation: 'partnership_subscription';
1898
+ referencedColumns: ['id'];
1899
+ },
1900
+ ];
1901
+ };
1902
+ partnership_payment_history: {
1903
+ Row: {
1904
+ changed_at: string;
1905
+ changed_by: string;
1906
+ id: string;
1907
+ payment_id: string;
1908
+ status: Database['public']['Enums']['partnership_payment_status'];
1909
+ };
1910
+ Insert: {
1911
+ changed_at?: string;
1912
+ changed_by: string;
1913
+ id?: string;
1914
+ payment_id: string;
1915
+ status: Database['public']['Enums']['partnership_payment_status'];
1916
+ };
1917
+ Update: {
1918
+ changed_at?: string;
1919
+ changed_by?: string;
1920
+ id?: string;
1921
+ payment_id?: string;
1922
+ status?: Database['public']['Enums']['partnership_payment_status'];
1923
+ };
1924
+ Relationships: [
1925
+ {
1926
+ foreignKeyName: 'partnership_payment_history_payment_id_fkey';
1927
+ columns: ['payment_id'];
1928
+ isOneToOne: false;
1929
+ referencedRelation: 'partnership_payment';
1930
+ referencedColumns: ['id'];
1931
+ },
1932
+ ];
1933
+ };
1934
+ partnership_plan: {
1935
+ Row: {
1936
+ createdAt: string;
1937
+ createdBy: string;
1938
+ deletedAt: string | null;
1939
+ deletedBy: string | null;
1940
+ description: string;
1941
+ editedBy: string | null;
1942
+ id: string;
1943
+ name: string;
1944
+ partnershipId: string;
1945
+ price: number;
1946
+ schedule: Json;
1947
+ subscriptionsCount: number;
1948
+ updatedAt: string;
1949
+ };
1950
+ Insert: {
1951
+ createdAt?: string;
1952
+ createdBy: string;
1953
+ deletedAt?: string | null;
1954
+ deletedBy?: string | null;
1955
+ description?: string;
1956
+ editedBy?: string | null;
1957
+ id?: string;
1958
+ name: string;
1959
+ partnershipId: string;
1960
+ price: number;
1961
+ schedule: Json;
1962
+ subscriptionsCount?: number;
1963
+ updatedAt?: string;
1964
+ };
1965
+ Update: {
1966
+ createdAt?: string;
1967
+ createdBy?: string;
1968
+ deletedAt?: string | null;
1969
+ deletedBy?: string | null;
1970
+ description?: string;
1971
+ editedBy?: string | null;
1972
+ id?: string;
1973
+ name?: string;
1974
+ partnershipId?: string;
1975
+ price?: number;
1976
+ schedule?: Json;
1977
+ subscriptionsCount?: number;
1978
+ updatedAt?: string;
1979
+ };
1980
+ Relationships: [];
1981
+ };
1982
+ partnership_sepa_payment_group: {
1983
+ Row: {
1984
+ createdAt: string;
1985
+ createdBy: string;
1986
+ creditorInfo: Json;
1987
+ editedBy: string | null;
1988
+ filePath: string | null;
1989
+ id: string;
1990
+ partnershipId: string;
1991
+ paymentsIds: string[];
1992
+ updatedAt: string;
1993
+ };
1994
+ Insert: {
1995
+ createdAt?: string;
1996
+ createdBy: string;
1997
+ creditorInfo: Json;
1998
+ editedBy?: string | null;
1999
+ filePath?: string | null;
2000
+ id?: string;
2001
+ partnershipId: string;
2002
+ paymentsIds?: string[];
2003
+ updatedAt?: string;
2004
+ };
2005
+ Update: {
2006
+ createdAt?: string;
2007
+ createdBy?: string;
2008
+ creditorInfo?: Json;
2009
+ editedBy?: string | null;
2010
+ filePath?: string | null;
2011
+ id?: string;
2012
+ partnershipId?: string;
2013
+ paymentsIds?: string[];
2014
+ updatedAt?: string;
2015
+ };
2016
+ Relationships: [];
2017
+ };
2018
+ partnership_subscription: {
2019
+ Row: {
2020
+ createdAt: string;
2021
+ createdBy: string;
2022
+ deletedAt: string | null;
2023
+ deletedBy: string | null;
2024
+ editedBy: string | null;
2025
+ endDate: string | null;
2026
+ id: string;
2027
+ nextPaymentDate: string | null;
2028
+ partnerId: string;
2029
+ partnerInfo: Json;
2030
+ partnershipId: string;
2031
+ planId: string;
2032
+ planInfo: Json;
2033
+ updatedAt: string;
2034
+ };
2035
+ Insert: {
2036
+ createdAt?: string;
2037
+ createdBy: string;
2038
+ deletedAt?: string | null;
2039
+ deletedBy?: string | null;
2040
+ editedBy?: string | null;
2041
+ endDate?: string | null;
2042
+ id?: string;
2043
+ nextPaymentDate?: string | null;
2044
+ partnerId: string;
2045
+ partnerInfo: Json;
2046
+ partnershipId: string;
2047
+ planId: string;
2048
+ planInfo: Json;
2049
+ updatedAt?: string;
2050
+ };
2051
+ Update: {
2052
+ createdAt?: string;
2053
+ createdBy?: string;
2054
+ deletedAt?: string | null;
2055
+ deletedBy?: string | null;
2056
+ editedBy?: string | null;
2057
+ endDate?: string | null;
2058
+ id?: string;
2059
+ nextPaymentDate?: string | null;
2060
+ partnerId?: string;
2061
+ partnerInfo?: Json;
2062
+ partnershipId?: string;
2063
+ planId?: string;
2064
+ planInfo?: Json;
2065
+ updatedAt?: string;
2066
+ };
2067
+ Relationships: [
2068
+ {
2069
+ foreignKeyName: 'partnership_subscription_plan_id_fkey';
2070
+ columns: ['planId'];
2071
+ isOneToOne: false;
2072
+ referencedRelation: 'partnership_plan';
2073
+ referencedColumns: ['id'];
2074
+ },
2075
+ ];
2076
+ };
2077
+ repertoire: {
2078
+ Row: {
2079
+ compositor: string | null;
2080
+ created_at: string;
2081
+ events: string[];
2082
+ group_id: string;
2083
+ id: string;
2084
+ last_event_datetime: string | null;
2085
+ owner_id: string;
2086
+ source_composition: Json | null;
2087
+ tags: string[];
2088
+ title: string;
2089
+ visibility: string;
2090
+ };
2091
+ Insert: {
2092
+ compositor?: string | null;
2093
+ created_at?: string;
2094
+ events: string[];
2095
+ group_id: string;
2096
+ id: string;
2097
+ last_event_datetime?: string | null;
2098
+ owner_id: string;
2099
+ source_composition?: Json | null;
2100
+ tags: string[];
2101
+ title: string;
2102
+ visibility: string;
2103
+ };
2104
+ Update: {
2105
+ compositor?: string | null;
2106
+ created_at?: string;
2107
+ events?: string[];
2108
+ group_id?: string;
2109
+ id?: string;
2110
+ last_event_datetime?: string | null;
2111
+ owner_id?: string;
2112
+ source_composition?: Json | null;
2113
+ tags?: string[];
2114
+ title?: string;
2115
+ visibility?: string;
2116
+ };
2117
+ Relationships: [];
2118
+ };
2119
+ repertoire_history: {
2120
+ Row: {
2121
+ action: string;
2122
+ created_at: string;
2123
+ group_id: string;
2124
+ id: number;
2125
+ prev_value: Json | null;
2126
+ theme_id: string;
2127
+ user_id: string;
2128
+ value: Json | null;
2129
+ };
2130
+ Insert: {
2131
+ action: string;
2132
+ created_at: string;
2133
+ group_id: string;
2134
+ id?: number;
2135
+ prev_value?: Json | null;
2136
+ theme_id: string;
2137
+ user_id: string;
2138
+ value?: Json | null;
2139
+ };
2140
+ Update: {
2141
+ action?: string;
2142
+ created_at?: string;
2143
+ group_id?: string;
2144
+ id?: number;
2145
+ prev_value?: Json | null;
2146
+ theme_id?: string;
2147
+ user_id?: string;
2148
+ value?: Json | null;
2149
+ };
2150
+ Relationships: [];
2151
+ };
2152
+ user: {
2153
+ Row: {
2154
+ analyticsEnabled: boolean;
2155
+ appConfig: Json;
2156
+ createdAt: string | null;
2157
+ customerIds: string[];
2158
+ dashboardConfig: Json;
2159
+ deletedAt: string | null;
2160
+ description: string | null;
2161
+ devices: Json;
2162
+ displayName: string | null;
2163
+ email: string | null;
2164
+ emailSettings: Json;
2165
+ fakeUser: boolean;
2166
+ federationId: string | null;
2167
+ groupInvites: string[];
2168
+ groups: string[];
2169
+ groupsAdmin: string[];
2170
+ language: string | null;
2171
+ lastAppLoginAt: string | null;
2172
+ lastBiweeklyEmailAt: string | null;
2173
+ lastname: string | null;
2174
+ lastWebLoginAt: string | null;
2175
+ locality: string | null;
2176
+ name: string | null;
2177
+ notificationSettings: Json;
2178
+ partnershipIds: string[];
2179
+ photoURL: string | null;
2180
+ rawData: Json;
2181
+ role: string | null;
2182
+ updatedAt: string;
2183
+ userId: string;
2184
+ username: string | null;
2185
+ whatsNew: Json;
2186
+ };
2187
+ Insert: {
2188
+ analyticsEnabled?: boolean;
2189
+ appConfig?: Json;
2190
+ createdAt?: string | null;
2191
+ customerIds?: string[];
2192
+ dashboardConfig?: Json;
2193
+ deletedAt?: string | null;
2194
+ description?: string | null;
2195
+ devices?: Json;
2196
+ displayName?: string | null;
2197
+ email?: string | null;
2198
+ emailSettings?: Json;
2199
+ fakeUser?: boolean;
2200
+ federationId?: string | null;
2201
+ groupInvites?: string[];
2202
+ groups?: string[];
2203
+ groupsAdmin?: string[];
2204
+ language?: string | null;
2205
+ lastAppLoginAt?: string | null;
2206
+ lastBiweeklyEmailAt?: string | null;
2207
+ lastname?: string | null;
2208
+ lastWebLoginAt?: string | null;
2209
+ locality?: string | null;
2210
+ name?: string | null;
2211
+ notificationSettings?: Json;
2212
+ partnershipIds?: string[];
2213
+ photoURL?: string | null;
2214
+ rawData?: Json;
2215
+ role?: string | null;
2216
+ updatedAt?: string;
2217
+ userId: string;
2218
+ username?: string | null;
2219
+ whatsNew?: Json;
2220
+ };
2221
+ Update: {
2222
+ analyticsEnabled?: boolean;
2223
+ appConfig?: Json;
2224
+ createdAt?: string | null;
2225
+ customerIds?: string[];
2226
+ dashboardConfig?: Json;
2227
+ deletedAt?: string | null;
2228
+ description?: string | null;
2229
+ devices?: Json;
2230
+ displayName?: string | null;
2231
+ email?: string | null;
2232
+ emailSettings?: Json;
2233
+ fakeUser?: boolean;
2234
+ federationId?: string | null;
2235
+ groupInvites?: string[];
2236
+ groups?: string[];
2237
+ groupsAdmin?: string[];
2238
+ language?: string | null;
2239
+ lastAppLoginAt?: string | null;
2240
+ lastBiweeklyEmailAt?: string | null;
2241
+ lastname?: string | null;
2242
+ lastWebLoginAt?: string | null;
2243
+ locality?: string | null;
2244
+ name?: string | null;
2245
+ notificationSettings?: Json;
2246
+ partnershipIds?: string[];
2247
+ photoURL?: string | null;
2248
+ rawData?: Json;
2249
+ role?: string | null;
2250
+ updatedAt?: string;
2251
+ userId?: string;
2252
+ username?: string | null;
2253
+ whatsNew?: Json;
2254
+ };
2255
+ Relationships: [];
2256
+ };
2257
+ userGroup: {
2258
+ Row: {
2259
+ groupId: string;
2260
+ instruments: string[];
2261
+ isAdmin: boolean;
2262
+ joinedAt: string | null;
2263
+ mainInstrument: string | null;
2264
+ permissions: string[];
2265
+ role: string;
2266
+ updatedAt: string;
2267
+ userId: string;
2268
+ };
2269
+ Insert: {
2270
+ groupId: string;
2271
+ instruments?: string[];
2272
+ isAdmin?: boolean;
2273
+ joinedAt?: string | null;
2274
+ mainInstrument?: string | null;
2275
+ permissions?: string[];
2276
+ role: string;
2277
+ updatedAt?: string;
2278
+ userId: string;
2279
+ };
2280
+ Update: {
2281
+ groupId?: string;
2282
+ instruments?: string[];
2283
+ isAdmin?: boolean;
2284
+ joinedAt?: string | null;
2285
+ mainInstrument?: string | null;
2286
+ permissions?: string[];
2287
+ role?: string;
2288
+ updatedAt?: string;
2289
+ userId?: string;
2290
+ };
2291
+ Relationships: [];
2292
+ };
2293
+ };
2294
+ Views: {
2295
+ comm_historyModel: {
2296
+ Row: {
2297
+ action: string | null;
2298
+ comm_id: string | null;
2299
+ created_at: string | null;
2300
+ group_id: string | null;
2301
+ id: number | null;
2302
+ prev_value: Json | null;
2303
+ user_id: string | null;
2304
+ value: Json | null;
2305
+ };
2306
+ Insert: {
2307
+ action?: string | null;
2308
+ comm_id?: string | null;
2309
+ created_at?: string | null;
2310
+ group_id?: string | null;
2311
+ id?: number | null;
2312
+ prev_value?: Json | null;
2313
+ user_id?: string | null;
2314
+ value?: Json | null;
2315
+ };
2316
+ Update: {
2317
+ action?: string | null;
2318
+ comm_id?: string | null;
2319
+ created_at?: string | null;
2320
+ group_id?: string | null;
2321
+ id?: number | null;
2322
+ prev_value?: Json | null;
2323
+ user_id?: string | null;
2324
+ value?: Json | null;
2325
+ };
2326
+ Relationships: [];
2327
+ };
2328
+ commModel: {
2329
+ Row: {
2330
+ block_answers: boolean | null;
2331
+ comments_count: number | null;
2332
+ created_at: string | null;
2333
+ deleted_at: string | null;
2334
+ deleted_by: string | null;
2335
+ edited_at: string | null;
2336
+ edited_by: string | null;
2337
+ group_id: string | null;
2338
+ id: string | null;
2339
+ owner_id: string | null;
2340
+ recipients: string[] | null;
2341
+ server: boolean | null;
2342
+ server_template: string | null;
2343
+ template_id: string | null;
2344
+ title: string | null;
2345
+ type: string | null;
2346
+ };
2347
+ Insert: {
2348
+ block_answers?: boolean | null;
2349
+ comments_count?: number | null;
2350
+ created_at?: string | null;
2351
+ deleted_at?: string | null;
2352
+ deleted_by?: string | null;
2353
+ edited_at?: string | null;
2354
+ edited_by?: string | null;
2355
+ group_id?: string | null;
2356
+ id?: string | null;
2357
+ owner_id?: string | null;
2358
+ recipients?: string[] | null;
2359
+ server?: boolean | null;
2360
+ server_template?: string | null;
2361
+ template_id?: string | null;
2362
+ title?: string | null;
2363
+ type?: string | null;
2364
+ };
2365
+ Update: {
2366
+ block_answers?: boolean | null;
2367
+ comments_count?: number | null;
2368
+ created_at?: string | null;
2369
+ deleted_at?: string | null;
2370
+ deleted_by?: string | null;
2371
+ edited_at?: string | null;
2372
+ edited_by?: string | null;
2373
+ group_id?: string | null;
2374
+ id?: string | null;
2375
+ owner_id?: string | null;
2376
+ recipients?: string[] | null;
2377
+ server?: boolean | null;
2378
+ server_template?: string | null;
2379
+ template_id?: string | null;
2380
+ title?: string | null;
2381
+ type?: string | null;
2382
+ };
2383
+ Relationships: [];
2384
+ };
2385
+ composerCompositionModel: {
2386
+ Row: {
2387
+ arrangerName: string | null;
2388
+ catalogueNumber: string | null;
2389
+ century: number | null;
2390
+ composerName: string | null;
2391
+ cover: Json | null;
2392
+ createdAt: string | null;
2393
+ deletedAt: string | null;
2394
+ description: Json[] | null;
2395
+ difficulty: number | null;
2396
+ duration: number | null;
2397
+ externalComposerName: string | null;
2398
+ files: Json | null;
2399
+ filesPath: Json | null;
2400
+ genresIds: string[] | null;
2401
+ highlightedParts: Json | null;
2402
+ id: string | null;
2403
+ instrumentationIds: string[] | null;
2404
+ products: Json | null;
2405
+ publisher: string | null;
2406
+ samples: Json | null;
2407
+ stylesIds: string[] | null;
2408
+ subtitle: string | null;
2409
+ title: string | null;
2410
+ updatedAt: string | null;
2411
+ uploaderComposerArtisticName: string | null;
2412
+ uploaderComposerId: string | null;
2413
+ uploaderComposerRole:
2414
+ | Database['public']['Enums']['composerroleincomposition']
2415
+ | null;
2416
+ visibility: boolean | null;
2417
+ year: number | null;
2418
+ };
2419
+ Relationships: [
2420
+ {
2421
+ foreignKeyName: 'composerComposition_uploaderComposerId_fkey';
2422
+ columns: ['uploaderComposerId'];
2423
+ isOneToOne: false;
2424
+ referencedRelation: 'composer';
2425
+ referencedColumns: ['id'];
2426
+ },
2427
+ {
2428
+ foreignKeyName: 'composerComposition_uploaderComposerId_fkey';
2429
+ columns: ['uploaderComposerId'];
2430
+ isOneToOne: false;
2431
+ referencedRelation: 'composerModel';
2432
+ referencedColumns: ['id'];
2433
+ },
2434
+ {
2435
+ foreignKeyName: 'composerComposition_uploaderComposerId_fkey';
2436
+ columns: ['uploaderComposerId'];
2437
+ isOneToOne: false;
2438
+ referencedRelation: 'composerPublicModel';
2439
+ referencedColumns: ['id'];
2440
+ },
2441
+ ];
2442
+ };
2443
+ composerCompositionPublicModel: {
2444
+ Row: {
2445
+ arrangerName: string | null;
2446
+ catalogueNumber: string | null;
2447
+ century: number | null;
2448
+ composerArtisticName: string | null;
2449
+ composerName: string | null;
2450
+ composerPhotoURL: string | null;
2451
+ compositionDateSortEnd: number | null;
2452
+ compositionDateSortStart: number | null;
2453
+ cover: Json | null;
2454
+ createdAt: string | null;
2455
+ deletedAt: string | null;
2456
+ description: Json[] | null;
2457
+ difficulty: number | null;
2458
+ displayPrice: number | null;
2459
+ duration: number | null;
2460
+ externalComposerName: string | null;
2461
+ files: Json | null;
2462
+ genresIds: string[] | null;
2463
+ highlightedParts: Json | null;
2464
+ id: string | null;
2465
+ instrumentationIds: string[] | null;
2466
+ products: Json | null;
2467
+ publisher: string | null;
2468
+ samples: Json | null;
2469
+ stylesIds: string[] | null;
2470
+ subtitle: string | null;
2471
+ title: string | null;
2472
+ updatedAt: string | null;
2473
+ uploaderComposerArtisticName: string | null;
2474
+ uploaderComposerId: string | null;
2475
+ uploaderComposerRole:
2476
+ | Database['public']['Enums']['composerroleincomposition']
2477
+ | null;
2478
+ visibility: boolean | null;
2479
+ year: number | null;
2480
+ };
2481
+ Relationships: [
2482
+ {
2483
+ foreignKeyName: 'composerComposition_uploaderComposerId_fkey';
2484
+ columns: ['uploaderComposerId'];
2485
+ isOneToOne: false;
2486
+ referencedRelation: 'composer';
2487
+ referencedColumns: ['id'];
2488
+ },
2489
+ {
2490
+ foreignKeyName: 'composerComposition_uploaderComposerId_fkey';
2491
+ columns: ['uploaderComposerId'];
2492
+ isOneToOne: false;
2493
+ referencedRelation: 'composerModel';
2494
+ referencedColumns: ['id'];
2495
+ },
2496
+ {
2497
+ foreignKeyName: 'composerComposition_uploaderComposerId_fkey';
2498
+ columns: ['uploaderComposerId'];
2499
+ isOneToOne: false;
2500
+ referencedRelation: 'composerPublicModel';
2501
+ referencedColumns: ['id'];
2502
+ },
2503
+ ];
2504
+ };
2505
+ composerModel: {
2506
+ Row: {
2507
+ artisticEmail: string | null;
2508
+ artisticName: string | null;
2509
+ country: string | null;
2510
+ createdAt: string | null;
2511
+ currency: string | null;
2512
+ deletedAt: string | null;
2513
+ description: Json[] | null;
2514
+ id: string | null;
2515
+ instruments: Json | null;
2516
+ locality: string | null;
2517
+ location: Database['public']['CompositeTypes']['lonlat'] | null;
2518
+ location_geography: unknown;
2519
+ photoURL: string | null;
2520
+ repertoireTags: Json | null;
2521
+ socialNetworks: Json | null;
2522
+ updatedAt: string | null;
2523
+ userId: string | null;
2524
+ username: string | null;
2525
+ visibility: boolean | null;
2526
+ };
2527
+ Insert: {
2528
+ artisticEmail?: string | null;
2529
+ artisticName?: string | null;
2530
+ country?: string | null;
2531
+ createdAt?: string | null;
2532
+ currency?: string | null;
2533
+ deletedAt?: string | null;
2534
+ description?: Json[] | null;
2535
+ id?: string | null;
2536
+ instruments?: Json | null;
2537
+ locality?: string | null;
2538
+ location?: Database['public']['CompositeTypes']['lonlat'] | null;
2539
+ location_geography?: never;
2540
+ photoURL?: string | null;
2541
+ repertoireTags?: Json | null;
2542
+ socialNetworks?: Json | null;
2543
+ updatedAt?: string | null;
2544
+ userId?: string | null;
2545
+ username?: string | null;
2546
+ visibility?: boolean | null;
2547
+ };
2548
+ Update: {
2549
+ artisticEmail?: string | null;
2550
+ artisticName?: string | null;
2551
+ country?: string | null;
2552
+ createdAt?: string | null;
2553
+ currency?: string | null;
2554
+ deletedAt?: string | null;
2555
+ description?: Json[] | null;
2556
+ id?: string | null;
2557
+ instruments?: Json | null;
2558
+ locality?: string | null;
2559
+ location?: Database['public']['CompositeTypes']['lonlat'] | null;
2560
+ location_geography?: never;
2561
+ photoURL?: string | null;
2562
+ repertoireTags?: Json | null;
2563
+ socialNetworks?: Json | null;
2564
+ updatedAt?: string | null;
2565
+ userId?: string | null;
2566
+ username?: string | null;
2567
+ visibility?: boolean | null;
2568
+ };
2569
+ Relationships: [];
2570
+ };
2571
+ composerOwnedActivityModel: {
2572
+ Row: {
2573
+ activityType: string | null;
2574
+ actorId: string | null;
2575
+ actorName: string | null;
2576
+ actorPhotoURL: string | null;
2577
+ clientName: string | null;
2578
+ compositionId: string | null;
2579
+ compositionTitle: string | null;
2580
+ country: string | null;
2581
+ createdAt: string | null;
2582
+ thumbnailUrl: string | null;
2583
+ };
2584
+ Relationships: [];
2585
+ };
2586
+ composerOwnedAnalyticsTimeSeriesModel: {
2587
+ Row: {
2588
+ acquisitions: number | null;
2589
+ date: string | null;
2590
+ revenue: number | null;
2591
+ views: number | null;
2592
+ };
2593
+ Relationships: [];
2594
+ };
2595
+ composerOwnedBalanceModel: {
2596
+ Row: {
2597
+ availableCents: number | null;
2598
+ composerId: string | null;
2599
+ totalEarnedCents: number | null;
2600
+ totalPaidOutCents: number | null;
2601
+ };
2602
+ Relationships: [];
2603
+ };
2604
+ composerOwnedCompositionMetricsModel: {
2605
+ Row: {
2606
+ acquisitionsCount: number | null;
2607
+ compositionId: string | null;
2608
+ favoritesCount: number | null;
2609
+ groupsTargetedCount: number | null;
2610
+ revenueTotal: number | null;
2611
+ viewsCount: number | null;
2612
+ };
2613
+ Relationships: [];
2614
+ };
2615
+ composerOwnedCompositionProductBreakdownModel: {
2616
+ Row: {
2617
+ acquisitionCount: number | null;
2618
+ compositionId: string | null;
2619
+ productType: string | null;
2620
+ revenue: number | null;
2621
+ };
2622
+ Relationships: [];
2623
+ };
2624
+ composerOwnedGeographyModel: {
2625
+ Row: {
2626
+ acquisitionCount: number | null;
2627
+ country: string | null;
2628
+ revenueTotal: number | null;
2629
+ viewCount: number | null;
2630
+ };
2631
+ Relationships: [];
2632
+ };
2633
+ composerOwnedTransactionModel: {
2634
+ Row: {
2635
+ acquiredByCustomerName: string | null;
2636
+ acquiredByGroupCountry: string | null;
2637
+ acquiredByGroupCountrySnapshot: string | null;
2638
+ acquiredByGroupId: string | null;
2639
+ acquiredByGroupMusicStyle: string | null;
2640
+ acquiredByGroupMusicStyleSnapshot: string | null;
2641
+ acquiredByGroupName: string | null;
2642
+ acquiredByGroupNameSnapshot: string | null;
2643
+ acquiredByGroupPhotoURL: string | null;
2644
+ acquiredByGroupPhotoURLSnapshot: string | null;
2645
+ acquiredByUserId: string | null;
2646
+ acquiredProducts: Json | null;
2647
+ baseCurrency: string | null;
2648
+ baseNetEarningsCents: number | null;
2649
+ basePriceCents: number | null;
2650
+ baseVatCents: number | null;
2651
+ buyerCurrency: string | null;
2652
+ buyerPriceCents: number | null;
2653
+ buyerVatCents: number | null;
2654
+ compositionArrangerName: string | null;
2655
+ compositionComposerName: string | null;
2656
+ compositionCover: Json | null;
2657
+ compositionId: string | null;
2658
+ compositionProducts: Json | null;
2659
+ compositionTitle: string | null;
2660
+ compositionUploaderComposerArtisticName: string | null;
2661
+ created_at: string | null;
2662
+ currency: string | null;
2663
+ customerId: string | null;
2664
+ exchangeRate: number | null;
2665
+ exchangeRateDate: string | null;
2666
+ exchangeRateSource: string | null;
2667
+ id: string | null;
2668
+ netEarningsCents: number | null;
2669
+ priceCents: number | null;
2670
+ refundedAt: string | null;
2671
+ refundedCents: number | null;
2672
+ refundStatus: string | null;
2673
+ stripePaymentIntentId: string | null;
2674
+ stripeRefundId: string | null;
2675
+ stripeSessionId: string | null;
2676
+ updated_at: string | null;
2677
+ vatCents: number | null;
2678
+ };
2679
+ Relationships: [
2680
+ {
2681
+ foreignKeyName: 'compositionAcquisition_compositionId_fkey';
2682
+ columns: ['compositionId'];
2683
+ isOneToOne: false;
2684
+ referencedRelation: 'composerComposition';
2685
+ referencedColumns: ['id'];
2686
+ },
2687
+ {
2688
+ foreignKeyName: 'compositionAcquisition_compositionId_fkey';
2689
+ columns: ['compositionId'];
2690
+ isOneToOne: false;
2691
+ referencedRelation: 'composerCompositionModel';
2692
+ referencedColumns: ['id'];
2693
+ },
2694
+ {
2695
+ foreignKeyName: 'compositionAcquisition_compositionId_fkey';
2696
+ columns: ['compositionId'];
2697
+ isOneToOne: false;
2698
+ referencedRelation: 'composerCompositionPublicModel';
2699
+ referencedColumns: ['id'];
2700
+ },
2701
+ {
2702
+ foreignKeyName: 'compositionAcquisition_compositionId_fkey';
2703
+ columns: ['compositionId'];
2704
+ isOneToOne: false;
2705
+ referencedRelation: 'composerOwnedCompositionMetricsModel';
2706
+ referencedColumns: ['compositionId'];
2707
+ },
2708
+ {
2709
+ foreignKeyName: 'compositionAcquisition_compositionId_fkey';
2710
+ columns: ['compositionId'];
2711
+ isOneToOne: false;
2712
+ referencedRelation: 'composerOwnedCompositionProductBreakdownModel';
2713
+ referencedColumns: ['compositionId'];
2714
+ },
2715
+ ];
2716
+ };
2717
+ composerPublicModel: {
2718
+ Row: {
2719
+ artisticName: string | null;
2720
+ country: string | null;
2721
+ createdAt: string | null;
2722
+ description: Json[] | null;
2723
+ id: string | null;
2724
+ instruments: Json | null;
2725
+ locality: string | null;
2726
+ photoURL: string | null;
2727
+ socialNetworks: Json | null;
2728
+ updatedAt: string | null;
2729
+ username: string | null;
2730
+ visibility: boolean | null;
2731
+ };
2732
+ Insert: {
2733
+ artisticName?: string | null;
2734
+ country?: string | null;
2735
+ createdAt?: string | null;
2736
+ description?: Json[] | null;
2737
+ id?: string | null;
2738
+ instruments?: Json | null;
2739
+ locality?: string | null;
2740
+ photoURL?: string | null;
2741
+ socialNetworks?: Json | null;
2742
+ updatedAt?: string | null;
2743
+ username?: string | null;
2744
+ visibility?: boolean | null;
2745
+ };
2746
+ Update: {
2747
+ artisticName?: string | null;
2748
+ country?: string | null;
2749
+ createdAt?: string | null;
2750
+ description?: Json[] | null;
2751
+ id?: string | null;
2752
+ instruments?: Json | null;
2753
+ locality?: string | null;
2754
+ photoURL?: string | null;
2755
+ socialNetworks?: Json | null;
2756
+ updatedAt?: string | null;
2757
+ username?: string | null;
2758
+ visibility?: boolean | null;
2759
+ };
2760
+ Relationships: [];
2761
+ };
2762
+ compositionAcquisitionModel: {
2763
+ Row: {
2764
+ acquiredByCustomerName: string | null;
2765
+ acquiredByGroupCountry: string | null;
2766
+ acquiredByGroupCountrySnapshot: string | null;
2767
+ acquiredByGroupId: string | null;
2768
+ acquiredByGroupMusicStyle: string | null;
2769
+ acquiredByGroupMusicStyleSnapshot: string | null;
2770
+ acquiredByGroupName: string | null;
2771
+ acquiredByGroupNameSnapshot: string | null;
2772
+ acquiredByGroupPhotoURL: string | null;
2773
+ acquiredByGroupPhotoURLSnapshot: string | null;
2774
+ acquiredByUserId: string | null;
2775
+ acquiredProducts: Json | null;
2776
+ baseCurrency: string | null;
2777
+ baseNetEarningsCents: number | null;
2778
+ basePriceCents: number | null;
2779
+ baseVatCents: number | null;
2780
+ buyerCurrency: string | null;
2781
+ buyerPriceCents: number | null;
2782
+ buyerVatCents: number | null;
2783
+ compositionArrangerName: string | null;
2784
+ compositionComposerName: string | null;
2785
+ compositionCover: Json | null;
2786
+ compositionId: string | null;
2787
+ compositionProducts: Json | null;
2788
+ compositionTitle: string | null;
2789
+ compositionUploaderComposerArtisticName: string | null;
2790
+ created_at: string | null;
2791
+ currency: string | null;
2792
+ customerId: string | null;
2793
+ exchangeRate: number | null;
2794
+ exchangeRateDate: string | null;
2795
+ exchangeRateSource: string | null;
2796
+ id: string | null;
2797
+ netEarningsCents: number | null;
2798
+ priceCents: number | null;
2799
+ refundedAt: string | null;
2800
+ refundedCents: number | null;
2801
+ refundStatus: string | null;
2802
+ stripePaymentIntentId: string | null;
2803
+ stripeRefundId: string | null;
2804
+ stripeSessionId: string | null;
2805
+ updated_at: string | null;
2806
+ vatCents: number | null;
2807
+ };
2808
+ Relationships: [
2809
+ {
2810
+ foreignKeyName: 'compositionAcquisition_compositionId_fkey';
2811
+ columns: ['compositionId'];
2812
+ isOneToOne: false;
2813
+ referencedRelation: 'composerComposition';
2814
+ referencedColumns: ['id'];
2815
+ },
2816
+ {
2817
+ foreignKeyName: 'compositionAcquisition_compositionId_fkey';
2818
+ columns: ['compositionId'];
2819
+ isOneToOne: false;
2820
+ referencedRelation: 'composerCompositionModel';
2821
+ referencedColumns: ['id'];
2822
+ },
2823
+ {
2824
+ foreignKeyName: 'compositionAcquisition_compositionId_fkey';
2825
+ columns: ['compositionId'];
2826
+ isOneToOne: false;
2827
+ referencedRelation: 'composerCompositionPublicModel';
2828
+ referencedColumns: ['id'];
2829
+ },
2830
+ {
2831
+ foreignKeyName: 'compositionAcquisition_compositionId_fkey';
2832
+ columns: ['compositionId'];
2833
+ isOneToOne: false;
2834
+ referencedRelation: 'composerOwnedCompositionMetricsModel';
2835
+ referencedColumns: ['compositionId'];
2836
+ },
2837
+ {
2838
+ foreignKeyName: 'compositionAcquisition_compositionId_fkey';
2839
+ columns: ['compositionId'];
2840
+ isOneToOne: false;
2841
+ referencedRelation: 'composerOwnedCompositionProductBreakdownModel';
2842
+ referencedColumns: ['compositionId'];
2843
+ },
2844
+ ];
2845
+ };
2846
+ compositionFavoriteModel: {
2847
+ Row: {
2848
+ compositionId: string | null;
2849
+ created_at: string | null;
2850
+ groupId: string | null;
2851
+ id: string | null;
2852
+ userId: string | null;
2853
+ };
2854
+ Insert: {
2855
+ compositionId?: string | null;
2856
+ created_at?: string | null;
2857
+ groupId?: string | null;
2858
+ id?: string | null;
2859
+ userId?: string | null;
2860
+ };
2861
+ Update: {
2862
+ compositionId?: string | null;
2863
+ created_at?: string | null;
2864
+ groupId?: string | null;
2865
+ id?: string | null;
2866
+ userId?: string | null;
2867
+ };
2868
+ Relationships: [
2869
+ {
2870
+ foreignKeyName: 'compositionFavorite_compositionId_fkey';
2871
+ columns: ['compositionId'];
2872
+ isOneToOne: false;
2873
+ referencedRelation: 'composerComposition';
2874
+ referencedColumns: ['id'];
2875
+ },
2876
+ {
2877
+ foreignKeyName: 'compositionFavorite_compositionId_fkey';
2878
+ columns: ['compositionId'];
2879
+ isOneToOne: false;
2880
+ referencedRelation: 'composerCompositionModel';
2881
+ referencedColumns: ['id'];
2882
+ },
2883
+ {
2884
+ foreignKeyName: 'compositionFavorite_compositionId_fkey';
2885
+ columns: ['compositionId'];
2886
+ isOneToOne: false;
2887
+ referencedRelation: 'composerCompositionPublicModel';
2888
+ referencedColumns: ['id'];
2889
+ },
2890
+ {
2891
+ foreignKeyName: 'compositionFavorite_compositionId_fkey';
2892
+ columns: ['compositionId'];
2893
+ isOneToOne: false;
2894
+ referencedRelation: 'composerOwnedCompositionMetricsModel';
2895
+ referencedColumns: ['compositionId'];
2896
+ },
2897
+ {
2898
+ foreignKeyName: 'compositionFavorite_compositionId_fkey';
2899
+ columns: ['compositionId'];
2900
+ isOneToOne: false;
2901
+ referencedRelation: 'composerOwnedCompositionProductBreakdownModel';
2902
+ referencedColumns: ['compositionId'];
2903
+ },
2904
+ ];
2905
+ };
2906
+ compositionViewModel: {
2907
+ Row: {
2908
+ compositionId: string | null;
2909
+ created_at: string | null;
2910
+ groupId: string | null;
2911
+ id: string | null;
2912
+ };
2913
+ Relationships: [];
2914
+ };
2915
+ event_historyModel: {
2916
+ Row: {
2917
+ action: string | null;
2918
+ created_at: string | null;
2919
+ event_id: string | null;
2920
+ group_id: string | null;
2921
+ id: number | null;
2922
+ prev_value: Json | null;
2923
+ user_id: string | null;
2924
+ value: Json | null;
2925
+ };
2926
+ Insert: {
2927
+ action?: string | null;
2928
+ created_at?: string | null;
2929
+ event_id?: string | null;
2930
+ group_id?: string | null;
2931
+ id?: number | null;
2932
+ prev_value?: Json | null;
2933
+ user_id?: string | null;
2934
+ value?: Json | null;
2935
+ };
2936
+ Update: {
2937
+ action?: string | null;
2938
+ created_at?: string | null;
2939
+ event_id?: string | null;
2940
+ group_id?: string | null;
2941
+ id?: number | null;
2942
+ prev_value?: Json | null;
2943
+ user_id?: string | null;
2944
+ value?: Json | null;
2945
+ };
2946
+ Relationships: [];
2947
+ };
2948
+ group_historyModel: {
2949
+ Row: {
2950
+ action: string | null;
2951
+ created_at: string | null;
2952
+ group_id: string | null;
2953
+ id: number | null;
2954
+ prev_value: Json | null;
2955
+ user_id: string | null;
2956
+ value: Json | null;
2957
+ };
2958
+ Insert: {
2959
+ action?: string | null;
2960
+ created_at?: string | null;
2961
+ group_id?: string | null;
2962
+ id?: number | null;
2963
+ prev_value?: Json | null;
2964
+ user_id?: string | null;
2965
+ value?: Json | null;
2966
+ };
2967
+ Update: {
2968
+ action?: string | null;
2969
+ created_at?: string | null;
2970
+ group_id?: string | null;
2971
+ id?: number | null;
2972
+ prev_value?: Json | null;
2973
+ user_id?: string | null;
2974
+ value?: Json | null;
2975
+ };
2976
+ Relationships: [];
2977
+ };
2978
+ offer_historyModel: {
2979
+ Row: {
2980
+ action: string | null;
2981
+ created_at: string | null;
2982
+ group_id: string | null;
2983
+ id: number | null;
2984
+ offer_id: string | null;
2985
+ prev_value: Json | null;
2986
+ user_id: string | null;
2987
+ value: Json | null;
2988
+ };
2989
+ Insert: {
2990
+ action?: string | null;
2991
+ created_at?: string | null;
2992
+ group_id?: string | null;
2993
+ id?: number | null;
2994
+ offer_id?: string | null;
2995
+ prev_value?: Json | null;
2996
+ user_id?: string | null;
2997
+ value?: Json | null;
2998
+ };
2999
+ Update: {
3000
+ action?: string | null;
3001
+ created_at?: string | null;
3002
+ group_id?: string | null;
3003
+ id?: number | null;
3004
+ offer_id?: string | null;
3005
+ prev_value?: Json | null;
3006
+ user_id?: string | null;
3007
+ value?: Json | null;
3008
+ };
3009
+ Relationships: [];
3010
+ };
3011
+ repertoire_historyModel: {
3012
+ Row: {
3013
+ action: string | null;
3014
+ created_at: string | null;
3015
+ group_id: string | null;
3016
+ id: number | null;
3017
+ prev_value: Json | null;
3018
+ theme_id: string | null;
3019
+ user_id: string | null;
3020
+ value: Json | null;
3021
+ };
3022
+ Insert: {
3023
+ action?: string | null;
3024
+ created_at?: string | null;
3025
+ group_id?: string | null;
3026
+ id?: number | null;
3027
+ prev_value?: Json | null;
3028
+ theme_id?: string | null;
3029
+ user_id?: string | null;
3030
+ value?: Json | null;
3031
+ };
3032
+ Update: {
3033
+ action?: string | null;
3034
+ created_at?: string | null;
3035
+ group_id?: string | null;
3036
+ id?: number | null;
3037
+ prev_value?: Json | null;
3038
+ theme_id?: string | null;
3039
+ user_id?: string | null;
3040
+ value?: Json | null;
3041
+ };
3042
+ Relationships: [];
3043
+ };
3044
+ repertoireModel: {
3045
+ Row: {
3046
+ compositor: string | null;
3047
+ created_at: string | null;
3048
+ events: string[] | null;
3049
+ group_id: string | null;
3050
+ id: string | null;
3051
+ last_event_datetime: string | null;
3052
+ owner_id: string | null;
3053
+ source_composition: Json | null;
3054
+ tags: string[] | null;
3055
+ title: string | null;
3056
+ visibility: string | null;
3057
+ };
3058
+ Insert: {
3059
+ compositor?: string | null;
3060
+ created_at?: string | null;
3061
+ events?: string[] | null;
3062
+ group_id?: string | null;
3063
+ id?: string | null;
3064
+ last_event_datetime?: string | null;
3065
+ owner_id?: string | null;
3066
+ source_composition?: Json | null;
3067
+ tags?: string[] | null;
3068
+ title?: string | null;
3069
+ visibility?: string | null;
3070
+ };
3071
+ Update: {
3072
+ compositor?: string | null;
3073
+ created_at?: string | null;
3074
+ events?: string[] | null;
3075
+ group_id?: string | null;
3076
+ id?: string | null;
3077
+ last_event_datetime?: string | null;
3078
+ owner_id?: string | null;
3079
+ source_composition?: Json | null;
3080
+ tags?: string[] | null;
3081
+ title?: string | null;
3082
+ visibility?: string | null;
3083
+ };
3084
+ Relationships: [];
3085
+ };
3086
+ };
3087
+ Functions: {
3088
+ backfillEventDatetimeEnds: {
3089
+ Args: { p_apply?: boolean; p_events: Json };
3090
+ Returns: {
3091
+ changed: number;
3092
+ matched: number;
3093
+ mismatched: number;
3094
+ }[];
3095
+ };
3096
+ catalogComposerLocationMatches: {
3097
+ Args: {
3098
+ composerId: string;
3099
+ composerLocationCountries?: string[];
3100
+ composerLocationLatitude?: number;
3101
+ composerLocationLongitude?: number;
3102
+ composerLocationRadiusKm?: number;
3103
+ };
3104
+ Returns: boolean;
3105
+ };
3106
+ catalogCompositionBrowse: {
3107
+ Args: {
3108
+ buyerCurrency?: string;
3109
+ composerId?: string;
3110
+ composerLocationCountries?: string[];
3111
+ composerLocationLatitude?: number;
3112
+ composerLocationLongitude?: number;
3113
+ composerLocationRadiusKm?: number;
3114
+ composerNames?: string[];
3115
+ compositionIds?: string[];
3116
+ difficultyMax?: number;
3117
+ difficultyMin?: number;
3118
+ durationMax?: number;
3119
+ durationMin?: number;
3120
+ genresIds?: string[];
3121
+ instrumentationIds?: string[];
3122
+ limitCount?: number;
3123
+ offsetCount?: number;
3124
+ priceMax?: number;
3125
+ priceMin?: number;
3126
+ searchText?: string;
3127
+ soloistExclude?: Json;
3128
+ soloistInclude?: Json;
3129
+ soloistMode?: string;
3130
+ sortBy?: string;
3131
+ sortDir?: string;
3132
+ stylesIds?: string[];
3133
+ };
3134
+ Returns: {
3135
+ arrangerName: string;
3136
+ catalogueNumber: string;
3137
+ century: number;
3138
+ composerArtisticName: string;
3139
+ composerName: string;
3140
+ composerPhotoURL: string;
3141
+ compositionDateSortEnd: number;
3142
+ compositionDateSortStart: number;
3143
+ cover: Json;
3144
+ createdAt: string;
3145
+ deletedAt: string;
3146
+ description: Json[];
3147
+ difficulty: number;
3148
+ displayPrice: number;
3149
+ duration: number;
3150
+ files: Json;
3151
+ genresIds: string[];
3152
+ highlightedParts: Json;
3153
+ id: string;
3154
+ instrumentationIds: string[];
3155
+ products: Json;
3156
+ publisher: string;
3157
+ samples: Json;
3158
+ stylesIds: string[];
3159
+ subtitle: string;
3160
+ title: string;
3161
+ totalCount: number;
3162
+ uploaderComposerArtisticName: string;
3163
+ uploaderComposerId: string;
3164
+ visibility: boolean;
3165
+ year: number;
3166
+ }[];
3167
+ };
3168
+ catalogCompositionFacets:
3169
+ | {
3170
+ Args: never;
3171
+ Returns: {
3172
+ composers: string[];
3173
+ genresIds: string[];
3174
+ highlightedParts: Json;
3175
+ instrumentationIds: string[];
3176
+ maxDuration: number;
3177
+ maxPrice: number;
3178
+ stylesIds: string[];
3179
+ }[];
3180
+ }
3181
+ | {
3182
+ Args: {
3183
+ buyerCurrency?: string;
3184
+ composerLocationCountries?: string[];
3185
+ composerLocationLatitude?: number;
3186
+ composerLocationLongitude?: number;
3187
+ composerLocationRadiusKm?: number;
3188
+ };
3189
+ Returns: {
3190
+ composers: string[];
3191
+ genresIds: string[];
3192
+ highlightedParts: Json;
3193
+ instrumentationIds: string[];
3194
+ maxDuration: number;
3195
+ maxPrice: number;
3196
+ stylesIds: string[];
3197
+ }[];
3198
+ };
3199
+ catalogConvertCurrencyCents: {
3200
+ Args: {
3201
+ amount_cents: number;
3202
+ base_currency: string;
3203
+ target_currency: string;
3204
+ };
3205
+ Returns: number;
3206
+ };
3207
+ catalogConvertProducts: {
3208
+ Args: { products: Json; target_currency: string };
3209
+ Returns: Json;
3210
+ };
3211
+ catalogDisplayPriceForCurrency: {
3212
+ Args: { products: Json; target_currency: string };
3213
+ Returns: number;
3214
+ };
3215
+ catalogRoundCurrencyCents: {
3216
+ Args: { amount_cents: number; currency: string };
3217
+ Returns: number;
3218
+ };
3219
+ clear_composer_performance_attendance: {
3220
+ Args: { p_composer_id: string; p_event_id: string };
3221
+ Returns: undefined;
3222
+ };
3223
+ composerCompositionTimeSeries: {
3224
+ Args: { compositionId: string; endDate?: string; startDate?: string };
3225
+ Returns: {
3226
+ acquisitions: number;
3227
+ date: string;
3228
+ revenue: number;
3229
+ views: number;
3230
+ }[];
3231
+ };
3232
+ compositionAcquisitionActiveProductCount: {
3233
+ Args: { acquiredProducts: Json; refundStatus: string };
3234
+ Returns: number;
3235
+ };
3236
+ compositionAcquisitionEffectiveNetEarningsCents: {
3237
+ Args: {
3238
+ acquiredProducts: Json;
3239
+ netEarningsCents: number;
3240
+ priceCents: number;
3241
+ refundedCents: number;
3242
+ refundStatus: string;
3243
+ };
3244
+ Returns: number;
3245
+ };
3246
+ compositionAcquisitionHasProductRefunds: {
3247
+ Args: { acquiredProducts: Json };
3248
+ Returns: boolean;
3249
+ };
3250
+ current_composer_id: { Args: never; Returns: string };
3251
+ current_firebase_uid: { Args: never; Returns: string };
3252
+ generate_partnership_recurring_payment: {
3253
+ Args: {
3254
+ p_amount: number;
3255
+ p_due_date: string;
3256
+ p_next_payment_date: string;
3257
+ p_partner_id: string;
3258
+ p_partnership_id: string;
3259
+ p_payer_id?: string;
3260
+ p_payment_method: Database['public']['Enums']['partnership_payment_method'];
3261
+ p_subscription_id: string;
3262
+ p_title: string;
3263
+ };
3264
+ Returns: {
3265
+ created: boolean;
3266
+ payment_id: string;
3267
+ }[];
3268
+ };
3269
+ get_composer_analytics: {
3270
+ Args: { composer_id: string; end_date?: string; start_date?: string };
3271
+ Returns: Json;
3272
+ };
3273
+ get_composer_balance: { Args: { composer_id: string }; Returns: Json };
3274
+ get_composer_explore_metrics: {
3275
+ Args: { composer_id: string };
3276
+ Returns: Json;
3277
+ };
3278
+ get_composer_performances: {
3279
+ Args: { composer_id: string };
3280
+ Returns: {
3281
+ attendance: Json;
3282
+ composer_composition_ids: string[];
3283
+ event_datetime: string;
3284
+ event_datetime_end: string;
3285
+ event_id: string;
3286
+ event_locality: string;
3287
+ event_timezone: string;
3288
+ event_title: string;
3289
+ event_type: string;
3290
+ group_customer_name: string;
3291
+ group_display_name: string;
3292
+ group_id: string;
3293
+ group_photo_url: string;
3294
+ group_username: string;
3295
+ repertoire_themes: Json;
3296
+ }[];
3297
+ };
3298
+ getCalendarFeedEvents: {
3299
+ Args: {
3300
+ p_include_pending: boolean;
3301
+ p_include_tentative: boolean;
3302
+ p_range_end: string;
3303
+ p_range_start: string;
3304
+ p_user_id: string;
3305
+ };
3306
+ Returns: {
3307
+ allDay: boolean;
3308
+ description: string;
3309
+ endsAt: string;
3310
+ eventId: string;
3311
+ eventType: string;
3312
+ groupName: string;
3313
+ language: string;
3314
+ lastModified: string;
3315
+ latitude: number;
3316
+ location: string;
3317
+ longitude: number;
3318
+ participationStatus: string;
3319
+ sequence: number;
3320
+ startsAt: string;
3321
+ status: string;
3322
+ summary: string;
3323
+ timezone: string;
3324
+ url: string;
3325
+ }[];
3326
+ };
3327
+ immutable_unaccent: { Args: { '': string }; Returns: string };
3328
+ resolveCalendarFeed: {
3329
+ Args: { p_token_hash: string };
3330
+ Returns: {
3331
+ includePending: boolean;
3332
+ includeTentative: boolean;
3333
+ userId: string;
3334
+ }[];
3335
+ };
3336
+ set_composer_performance_attendance: {
3337
+ Args: {
3338
+ p_companions: number;
3339
+ p_composer_artistic_name: string;
3340
+ p_composer_contact_email: string;
3341
+ p_composer_id: string;
3342
+ p_composer_photo_url: string;
3343
+ p_event_id: string;
3344
+ p_group_id: string;
3345
+ };
3346
+ Returns: undefined;
3347
+ };
3348
+ set_current_composer_repertoire_tag: {
3349
+ Args: { tag: Json; tag_id: string };
3350
+ Returns: Json;
3351
+ };
3352
+ show_limit: { Args: never; Returns: number };
3353
+ show_trgm: { Args: { '': string }; Returns: string[] };
3354
+ unaccent: { Args: { '': string }; Returns: string };
3355
+ };
3356
+ Enums: {
3357
+ composerroleincomposition: 'COMPOSER' | 'ARRANGER';
3358
+ created_on: 'app' | 'dashboard' | 'auth' | 'web';
3359
+ event_selection_mode: 'open' | 'closed';
3360
+ event_type: 'practice' | 'performance' | 'other';
3361
+ group_payment_history_action: 'status' | 'amount' | 'concept' | 'method';
3362
+ group_payment_method: 'cash' | 'transfer';
3363
+ group_payment_status: 'pending' | 'paid' | 'cancelled';
3364
+ group_payment_type: 'income' | 'expense';
3365
+ group_plan: 'piano' | 'mezzopiano' | 'mezzoforte' | 'forte' | 'fortissimo' | 'tutti';
3366
+ group_plan_period: 'yearly' | 'monthly';
3367
+ group_status: 'premium' | 'trial' | 'inactive' | 'deleted';
3368
+ offer_type: 'group' | 'event';
3369
+ partnership_communication_status: 'sent' | 'scheduled';
3370
+ partnership_partner_status: 'active' | 'pending' | 'inactive';
3371
+ partnership_payment_method: 'CASH' | 'TRANSFER' | 'SEPA' | 'BIZUM';
3372
+ partnership_payment_status: 'pending' | 'charged' | 'returned' | 'canceled';
3373
+ social_network: 'facebook' | 'twitter' | 'instagram' | 'youtube';
3374
+ };
3375
+ CompositeTypes: {
3376
+ lonlat: {
3377
+ longitude: number | null;
3378
+ latitude: number | null;
3379
+ };
3380
+ };
3381
+ };
3382
+ storage: {
3383
+ Tables: {
3384
+ buckets: {
3385
+ Row: {
3386
+ allowed_mime_types: string[] | null;
3387
+ avif_autodetection: boolean | null;
3388
+ created_at: string | null;
3389
+ file_size_limit: number | null;
3390
+ id: string;
3391
+ name: string;
3392
+ owner: string | null;
3393
+ owner_id: string | null;
3394
+ public: boolean | null;
3395
+ type: Database['storage']['Enums']['buckettype'];
3396
+ updated_at: string | null;
3397
+ };
3398
+ Insert: {
3399
+ allowed_mime_types?: string[] | null;
3400
+ avif_autodetection?: boolean | null;
3401
+ created_at?: string | null;
3402
+ file_size_limit?: number | null;
3403
+ id: string;
3404
+ name: string;
3405
+ owner?: string | null;
3406
+ owner_id?: string | null;
3407
+ public?: boolean | null;
3408
+ type?: Database['storage']['Enums']['buckettype'];
3409
+ updated_at?: string | null;
3410
+ };
3411
+ Update: {
3412
+ allowed_mime_types?: string[] | null;
3413
+ avif_autodetection?: boolean | null;
3414
+ created_at?: string | null;
3415
+ file_size_limit?: number | null;
3416
+ id?: string;
3417
+ name?: string;
3418
+ owner?: string | null;
3419
+ owner_id?: string | null;
3420
+ public?: boolean | null;
3421
+ type?: Database['storage']['Enums']['buckettype'];
3422
+ updated_at?: string | null;
3423
+ };
3424
+ Relationships: [];
3425
+ };
3426
+ buckets_analytics: {
3427
+ Row: {
3428
+ created_at: string;
3429
+ deleted_at: string | null;
3430
+ format: string;
3431
+ id: string;
3432
+ name: string;
3433
+ type: Database['storage']['Enums']['buckettype'];
3434
+ updated_at: string;
3435
+ };
3436
+ Insert: {
3437
+ created_at?: string;
3438
+ deleted_at?: string | null;
3439
+ format?: string;
3440
+ id?: string;
3441
+ name: string;
3442
+ type?: Database['storage']['Enums']['buckettype'];
3443
+ updated_at?: string;
3444
+ };
3445
+ Update: {
3446
+ created_at?: string;
3447
+ deleted_at?: string | null;
3448
+ format?: string;
3449
+ id?: string;
3450
+ name?: string;
3451
+ type?: Database['storage']['Enums']['buckettype'];
3452
+ updated_at?: string;
3453
+ };
3454
+ Relationships: [];
3455
+ };
3456
+ buckets_vectors: {
3457
+ Row: {
3458
+ created_at: string;
3459
+ id: string;
3460
+ type: Database['storage']['Enums']['buckettype'];
3461
+ updated_at: string;
3462
+ };
3463
+ Insert: {
3464
+ created_at?: string;
3465
+ id: string;
3466
+ type?: Database['storage']['Enums']['buckettype'];
3467
+ updated_at?: string;
3468
+ };
3469
+ Update: {
3470
+ created_at?: string;
1055
3471
  id?: string;
1056
- partnerId?: string;
1057
- partnershipId?: string;
1058
- payerId?: string | null;
1059
- paymentMethod?:
1060
- | Database['public']['Enums']['partnership_payment_method']
1061
- | null;
1062
- receiptFilePath?: string | null;
1063
- sepaEndToEndId?: string | null;
1064
- sepaPaymentGroupId?: string | null;
1065
- status?: Database['public']['Enums']['partnership_payment_status'];
1066
- subscriptionId?: string | null;
1067
- title?: string;
1068
- updatedAt?: string;
3472
+ type?: Database['storage']['Enums']['buckettype'];
3473
+ updated_at?: string;
1069
3474
  };
1070
- Relationships: [
1071
- {
1072
- foreignKeyName: 'partnership_payment_payer_id_fkey';
1073
- columns: ['payerId'];
1074
- isOneToOne: false;
1075
- referencedRelation: 'partnership_partner';
1076
- referencedColumns: ['id'];
1077
- },
1078
- {
1079
- foreignKeyName: 'partnership_payment_sepa_group_id_fkey';
1080
- columns: ['sepaPaymentGroupId'];
1081
- isOneToOne: false;
1082
- referencedRelation: 'partnership_sepa_payment_group';
1083
- referencedColumns: ['id'];
1084
- },
1085
- {
1086
- foreignKeyName: 'partnership_payment_subscription_id_fkey';
1087
- columns: ['subscriptionId'];
1088
- isOneToOne: false;
1089
- referencedRelation: 'partnership_subscription';
1090
- referencedColumns: ['id'];
1091
- }
1092
- ];
3475
+ Relationships: [];
1093
3476
  };
1094
- partnership_payment_history: {
3477
+ iceberg_namespaces: {
1095
3478
  Row: {
1096
- changed_at: string;
1097
- changed_by: string;
3479
+ bucket_name: string;
3480
+ catalog_id: string;
3481
+ created_at: string;
1098
3482
  id: string;
1099
- payment_id: string;
1100
- status: Database['public']['Enums']['partnership_payment_status'];
3483
+ metadata: Json;
3484
+ name: string;
3485
+ updated_at: string;
1101
3486
  };
1102
3487
  Insert: {
1103
- changed_at?: string;
1104
- changed_by: string;
3488
+ bucket_name: string;
3489
+ catalog_id: string;
3490
+ created_at?: string;
1105
3491
  id?: string;
1106
- payment_id: string;
1107
- status: Database['public']['Enums']['partnership_payment_status'];
3492
+ metadata?: Json;
3493
+ name: string;
3494
+ updated_at?: string;
1108
3495
  };
1109
3496
  Update: {
1110
- changed_at?: string;
1111
- changed_by?: string;
3497
+ bucket_name?: string;
3498
+ catalog_id?: string;
3499
+ created_at?: string;
1112
3500
  id?: string;
1113
- payment_id?: string;
1114
- status?: Database['public']['Enums']['partnership_payment_status'];
3501
+ metadata?: Json;
3502
+ name?: string;
3503
+ updated_at?: string;
1115
3504
  };
1116
3505
  Relationships: [
1117
3506
  {
1118
- foreignKeyName: 'partnership_payment_history_payment_id_fkey';
1119
- columns: ['payment_id'];
3507
+ foreignKeyName: 'iceberg_namespaces_catalog_id_fkey';
3508
+ columns: ['catalog_id'];
1120
3509
  isOneToOne: false;
1121
- referencedRelation: 'partnership_payment';
3510
+ referencedRelation: 'buckets_analytics';
1122
3511
  referencedColumns: ['id'];
1123
- }
3512
+ },
1124
3513
  ];
1125
3514
  };
1126
- partnership_plan: {
3515
+ iceberg_tables: {
1127
3516
  Row: {
1128
- createdAt: string;
1129
- createdBy: string;
1130
- deletedAt: string | null;
1131
- deletedBy: string | null;
1132
- description: string;
1133
- editedBy: string | null;
3517
+ bucket_name: string;
3518
+ catalog_id: string;
3519
+ created_at: string;
1134
3520
  id: string;
3521
+ location: string;
1135
3522
  name: string;
1136
- partnershipId: string;
1137
- price: number;
1138
- schedule: Json;
1139
- subscriptionsCount: number;
1140
- updatedAt: string;
3523
+ namespace_id: string;
3524
+ remote_table_id: string | null;
3525
+ shard_id: string | null;
3526
+ shard_key: string | null;
3527
+ updated_at: string;
1141
3528
  };
1142
3529
  Insert: {
1143
- createdAt?: string;
1144
- createdBy: string;
1145
- deletedAt?: string | null;
1146
- deletedBy?: string | null;
1147
- description?: string;
1148
- editedBy?: string | null;
3530
+ bucket_name: string;
3531
+ catalog_id: string;
3532
+ created_at?: string;
1149
3533
  id?: string;
3534
+ location: string;
1150
3535
  name: string;
1151
- partnershipId: string;
1152
- price: number;
1153
- schedule: Json;
1154
- subscriptionsCount?: number;
1155
- updatedAt?: string;
3536
+ namespace_id: string;
3537
+ remote_table_id?: string | null;
3538
+ shard_id?: string | null;
3539
+ shard_key?: string | null;
3540
+ updated_at?: string;
1156
3541
  };
1157
3542
  Update: {
1158
- createdAt?: string;
1159
- createdBy?: string;
1160
- deletedAt?: string | null;
1161
- deletedBy?: string | null;
1162
- description?: string;
1163
- editedBy?: string | null;
3543
+ bucket_name?: string;
3544
+ catalog_id?: string;
3545
+ created_at?: string;
1164
3546
  id?: string;
3547
+ location?: string;
1165
3548
  name?: string;
1166
- partnershipId?: string;
1167
- price?: number;
1168
- schedule?: Json;
1169
- subscriptionsCount?: number;
1170
- updatedAt?: string;
3549
+ namespace_id?: string;
3550
+ remote_table_id?: string | null;
3551
+ shard_id?: string | null;
3552
+ shard_key?: string | null;
3553
+ updated_at?: string;
1171
3554
  };
1172
- Relationships: [];
3555
+ Relationships: [
3556
+ {
3557
+ foreignKeyName: 'iceberg_tables_catalog_id_fkey';
3558
+ columns: ['catalog_id'];
3559
+ isOneToOne: false;
3560
+ referencedRelation: 'buckets_analytics';
3561
+ referencedColumns: ['id'];
3562
+ },
3563
+ {
3564
+ foreignKeyName: 'iceberg_tables_namespace_id_fkey';
3565
+ columns: ['namespace_id'];
3566
+ isOneToOne: false;
3567
+ referencedRelation: 'iceberg_namespaces';
3568
+ referencedColumns: ['id'];
3569
+ },
3570
+ ];
1173
3571
  };
1174
- partnership_sepa_payment_group: {
3572
+ migrations: {
1175
3573
  Row: {
1176
- createdAt: string;
1177
- createdBy: string;
1178
- creditorInfo: Json;
1179
- editedBy: string | null;
1180
- filePath: string | null;
1181
- id: string;
1182
- partnershipId: string;
1183
- paymentsIds: string[];
1184
- updatedAt: string;
3574
+ executed_at: string | null;
3575
+ hash: string;
3576
+ id: number;
3577
+ name: string;
1185
3578
  };
1186
3579
  Insert: {
1187
- createdAt?: string;
1188
- createdBy: string;
1189
- creditorInfo: Json;
1190
- editedBy?: string | null;
1191
- filePath?: string | null;
1192
- id?: string;
1193
- partnershipId: string;
1194
- paymentsIds?: string[];
1195
- updatedAt?: string;
3580
+ executed_at?: string | null;
3581
+ hash: string;
3582
+ id: number;
3583
+ name: string;
1196
3584
  };
1197
3585
  Update: {
1198
- createdAt?: string;
1199
- createdBy?: string;
1200
- creditorInfo?: Json;
1201
- editedBy?: string | null;
1202
- filePath?: string | null;
1203
- id?: string;
1204
- partnershipId?: string;
1205
- paymentsIds?: string[];
1206
- updatedAt?: string;
3586
+ executed_at?: string | null;
3587
+ hash?: string;
3588
+ id?: number;
3589
+ name?: string;
1207
3590
  };
1208
3591
  Relationships: [];
1209
3592
  };
1210
- partnership_subscription: {
3593
+ objects: {
1211
3594
  Row: {
1212
- createdAt: string;
1213
- createdBy: string;
1214
- deletedAt: string | null;
1215
- deletedBy: string | null;
1216
- editedBy: string | null;
1217
- endDate: string | null;
3595
+ bucket_id: string | null;
3596
+ created_at: string | null;
1218
3597
  id: string;
1219
- nextPaymentDate: string | null;
1220
- partnerId: string;
1221
- partnerInfo: Json;
1222
- partnershipId: string;
1223
- planId: string;
1224
- planInfo: Json;
1225
- updatedAt: string;
3598
+ last_accessed_at: string | null;
3599
+ metadata: Json | null;
3600
+ name: string | null;
3601
+ owner: string | null;
3602
+ owner_id: string | null;
3603
+ path_tokens: string[] | null;
3604
+ updated_at: string | null;
3605
+ user_metadata: Json | null;
3606
+ version: string | null;
1226
3607
  };
1227
3608
  Insert: {
1228
- createdAt?: string;
1229
- createdBy: string;
1230
- deletedAt?: string | null;
1231
- deletedBy?: string | null;
1232
- editedBy?: string | null;
1233
- endDate?: string | null;
3609
+ bucket_id?: string | null;
3610
+ created_at?: string | null;
1234
3611
  id?: string;
1235
- nextPaymentDate?: string | null;
1236
- partnerId: string;
1237
- partnerInfo: Json;
1238
- partnershipId: string;
1239
- planId: string;
1240
- planInfo: Json;
1241
- updatedAt?: string;
3612
+ last_accessed_at?: string | null;
3613
+ metadata?: Json | null;
3614
+ name?: string | null;
3615
+ owner?: string | null;
3616
+ owner_id?: string | null;
3617
+ path_tokens?: string[] | null;
3618
+ updated_at?: string | null;
3619
+ user_metadata?: Json | null;
3620
+ version?: string | null;
1242
3621
  };
1243
3622
  Update: {
1244
- createdAt?: string;
1245
- createdBy?: string;
1246
- deletedAt?: string | null;
1247
- deletedBy?: string | null;
1248
- editedBy?: string | null;
1249
- endDate?: string | null;
3623
+ bucket_id?: string | null;
3624
+ created_at?: string | null;
1250
3625
  id?: string;
1251
- nextPaymentDate?: string | null;
1252
- partnerId?: string;
1253
- partnerInfo?: Json;
1254
- partnershipId?: string;
1255
- planId?: string;
1256
- planInfo?: Json;
1257
- updatedAt?: string;
3626
+ last_accessed_at?: string | null;
3627
+ metadata?: Json | null;
3628
+ name?: string | null;
3629
+ owner?: string | null;
3630
+ owner_id?: string | null;
3631
+ path_tokens?: string[] | null;
3632
+ updated_at?: string | null;
3633
+ user_metadata?: Json | null;
3634
+ version?: string | null;
1258
3635
  };
1259
3636
  Relationships: [
1260
3637
  {
1261
- foreignKeyName: 'partnership_subscription_plan_id_fkey';
1262
- columns: ['planId'];
3638
+ foreignKeyName: 'objects_bucketId_fkey';
3639
+ columns: ['bucket_id'];
1263
3640
  isOneToOne: false;
1264
- referencedRelation: 'partnership_plan';
3641
+ referencedRelation: 'buckets';
1265
3642
  referencedColumns: ['id'];
1266
- }
3643
+ },
1267
3644
  ];
1268
3645
  };
1269
- repertoire: {
3646
+ s3_multipart_uploads: {
1270
3647
  Row: {
1271
- compositor: string | null;
3648
+ bucket_id: string;
1272
3649
  created_at: string;
1273
- events: string[];
1274
- group_id: string;
1275
3650
  id: string;
1276
- last_event_datetime: string | null;
1277
- owner_id: string;
1278
- tags: string[];
1279
- title: string;
1280
- visibility: string;
3651
+ in_progress_size: number;
3652
+ key: string;
3653
+ metadata: Json | null;
3654
+ owner_id: string | null;
3655
+ upload_signature: string;
3656
+ user_metadata: Json | null;
3657
+ version: string;
1281
3658
  };
1282
3659
  Insert: {
1283
- compositor?: string | null;
3660
+ bucket_id: string;
1284
3661
  created_at?: string;
1285
- events: string[];
1286
- group_id: string;
1287
3662
  id: string;
1288
- last_event_datetime?: string | null;
1289
- owner_id: string;
1290
- tags: string[];
1291
- title: string;
1292
- visibility: string;
3663
+ in_progress_size?: number;
3664
+ key: string;
3665
+ metadata?: Json | null;
3666
+ owner_id?: string | null;
3667
+ upload_signature: string;
3668
+ user_metadata?: Json | null;
3669
+ version: string;
1293
3670
  };
1294
3671
  Update: {
1295
- compositor?: string | null;
3672
+ bucket_id?: string;
1296
3673
  created_at?: string;
1297
- events?: string[];
1298
- group_id?: string;
1299
3674
  id?: string;
1300
- last_event_datetime?: string | null;
1301
- owner_id?: string;
1302
- tags?: string[];
1303
- title?: string;
1304
- visibility?: string;
3675
+ in_progress_size?: number;
3676
+ key?: string;
3677
+ metadata?: Json | null;
3678
+ owner_id?: string | null;
3679
+ upload_signature?: string;
3680
+ user_metadata?: Json | null;
3681
+ version?: string;
1305
3682
  };
1306
- Relationships: [];
3683
+ Relationships: [
3684
+ {
3685
+ foreignKeyName: 's3_multipart_uploads_bucket_id_fkey';
3686
+ columns: ['bucket_id'];
3687
+ isOneToOne: false;
3688
+ referencedRelation: 'buckets';
3689
+ referencedColumns: ['id'];
3690
+ },
3691
+ ];
1307
3692
  };
1308
- repertoire_history: {
3693
+ s3_multipart_uploads_parts: {
1309
3694
  Row: {
1310
- action: string;
3695
+ bucket_id: string;
1311
3696
  created_at: string;
1312
- group_id: string;
1313
- id: number;
1314
- prev_value: Json | null;
1315
- theme_id: string;
1316
- user_id: string;
1317
- value: Json | null;
3697
+ etag: string;
3698
+ id: string;
3699
+ key: string;
3700
+ owner_id: string | null;
3701
+ part_number: number;
3702
+ size: number;
3703
+ upload_id: string;
3704
+ version: string;
1318
3705
  };
1319
3706
  Insert: {
1320
- action: string;
1321
- created_at: string;
1322
- group_id: string;
1323
- id?: number;
1324
- prev_value?: Json | null;
1325
- theme_id: string;
1326
- user_id: string;
1327
- value?: Json | null;
3707
+ bucket_id: string;
3708
+ created_at?: string;
3709
+ etag: string;
3710
+ id?: string;
3711
+ key: string;
3712
+ owner_id?: string | null;
3713
+ part_number: number;
3714
+ size?: number;
3715
+ upload_id: string;
3716
+ version: string;
1328
3717
  };
1329
3718
  Update: {
1330
- action?: string;
3719
+ bucket_id?: string;
1331
3720
  created_at?: string;
1332
- group_id?: string;
1333
- id?: number;
1334
- prev_value?: Json | null;
1335
- theme_id?: string;
1336
- user_id?: string;
1337
- value?: Json | null;
3721
+ etag?: string;
3722
+ id?: string;
3723
+ key?: string;
3724
+ owner_id?: string | null;
3725
+ part_number?: number;
3726
+ size?: number;
3727
+ upload_id?: string;
3728
+ version?: string;
1338
3729
  };
1339
- Relationships: [];
3730
+ Relationships: [
3731
+ {
3732
+ foreignKeyName: 's3_multipart_uploads_parts_bucket_id_fkey';
3733
+ columns: ['bucket_id'];
3734
+ isOneToOne: false;
3735
+ referencedRelation: 'buckets';
3736
+ referencedColumns: ['id'];
3737
+ },
3738
+ {
3739
+ foreignKeyName: 's3_multipart_uploads_parts_upload_id_fkey';
3740
+ columns: ['upload_id'];
3741
+ isOneToOne: false;
3742
+ referencedRelation: 's3_multipart_uploads';
3743
+ referencedColumns: ['id'];
3744
+ },
3745
+ ];
1340
3746
  };
1341
- user: {
3747
+ vector_indexes: {
1342
3748
  Row: {
1343
- analyticsEnabled: boolean;
1344
- appConfig: Json;
1345
- createdAt: string | null;
1346
- customerIds: string[];
1347
- dashboardConfig: Json;
1348
- deletedAt: string | null;
1349
- description: string | null;
1350
- devices: Json;
1351
- displayName: string | null;
1352
- email: string | null;
1353
- emailSettings: Json;
1354
- fakeUser: boolean;
1355
- federationId: string | null;
1356
- groupInvites: string[];
1357
- groups: string[];
1358
- groupsAdmin: string[];
1359
- language: string | null;
1360
- lastAppLoginAt: string | null;
1361
- lastBiweeklyEmailAt: string | null;
1362
- lastname: string | null;
1363
- lastWebLoginAt: string | null;
1364
- locality: string | null;
1365
- name: string | null;
1366
- notificationSettings: Json;
1367
- partnershipIds: string[];
1368
- photoURL: string | null;
1369
- rawData: Json;
1370
- role: string | null;
1371
- updatedAt: string;
1372
- userId: string;
1373
- username: string | null;
1374
- whatsNew: Json;
3749
+ bucket_id: string;
3750
+ created_at: string;
3751
+ data_type: string;
3752
+ dimension: number;
3753
+ distance_metric: string;
3754
+ id: string;
3755
+ metadata_configuration: Json | null;
3756
+ name: string;
3757
+ updated_at: string;
1375
3758
  };
1376
3759
  Insert: {
1377
- analyticsEnabled?: boolean;
1378
- appConfig?: Json;
1379
- createdAt?: string | null;
1380
- customerIds?: string[];
1381
- dashboardConfig?: Json;
1382
- deletedAt?: string | null;
1383
- description?: string | null;
1384
- devices?: Json;
1385
- displayName?: string | null;
1386
- email?: string | null;
1387
- emailSettings?: Json;
1388
- fakeUser?: boolean;
1389
- federationId?: string | null;
1390
- groupInvites?: string[];
1391
- groups?: string[];
1392
- groupsAdmin?: string[];
1393
- language?: string | null;
1394
- lastAppLoginAt?: string | null;
1395
- lastBiweeklyEmailAt?: string | null;
1396
- lastname?: string | null;
1397
- lastWebLoginAt?: string | null;
1398
- locality?: string | null;
1399
- name?: string | null;
1400
- notificationSettings?: Json;
1401
- partnershipIds?: string[];
1402
- photoURL?: string | null;
1403
- rawData?: Json;
1404
- role?: string | null;
1405
- updatedAt?: string;
1406
- userId: string;
1407
- username?: string | null;
1408
- whatsNew?: Json;
3760
+ bucket_id: string;
3761
+ created_at?: string;
3762
+ data_type: string;
3763
+ dimension: number;
3764
+ distance_metric: string;
3765
+ id?: string;
3766
+ metadata_configuration?: Json | null;
3767
+ name: string;
3768
+ updated_at?: string;
1409
3769
  };
1410
3770
  Update: {
1411
- analyticsEnabled?: boolean;
1412
- appConfig?: Json;
1413
- createdAt?: string | null;
1414
- customerIds?: string[];
1415
- dashboardConfig?: Json;
1416
- deletedAt?: string | null;
1417
- description?: string | null;
1418
- devices?: Json;
1419
- displayName?: string | null;
1420
- email?: string | null;
1421
- emailSettings?: Json;
1422
- fakeUser?: boolean;
1423
- federationId?: string | null;
1424
- groupInvites?: string[];
1425
- groups?: string[];
1426
- groupsAdmin?: string[];
1427
- language?: string | null;
1428
- lastAppLoginAt?: string | null;
1429
- lastBiweeklyEmailAt?: string | null;
1430
- lastname?: string | null;
1431
- lastWebLoginAt?: string | null;
1432
- locality?: string | null;
1433
- name?: string | null;
1434
- notificationSettings?: Json;
1435
- partnershipIds?: string[];
1436
- photoURL?: string | null;
1437
- rawData?: Json;
1438
- role?: string | null;
1439
- updatedAt?: string;
1440
- userId?: string;
1441
- username?: string | null;
1442
- whatsNew?: Json;
3771
+ bucket_id?: string;
3772
+ created_at?: string;
3773
+ data_type?: string;
3774
+ dimension?: number;
3775
+ distance_metric?: string;
3776
+ id?: string;
3777
+ metadata_configuration?: Json | null;
3778
+ name?: string;
3779
+ updated_at?: string;
1443
3780
  };
1444
- Relationships: [];
3781
+ Relationships: [
3782
+ {
3783
+ foreignKeyName: 'vector_indexes_bucket_id_fkey';
3784
+ columns: ['bucket_id'];
3785
+ isOneToOne: false;
3786
+ referencedRelation: 'buckets_vectors';
3787
+ referencedColumns: ['id'];
3788
+ },
3789
+ ];
1445
3790
  };
1446
3791
  };
1447
3792
  Views: {
1448
3793
  [_ in never]: never;
1449
3794
  };
1450
3795
  Functions: {
1451
- backfillEventDatetimeEnds: {
1452
- Args: { p_apply?: boolean; p_events: Json };
3796
+ allow_any_operation: {
3797
+ Args: { expected_operations: string[] };
3798
+ Returns: boolean;
3799
+ };
3800
+ allow_only_operation: {
3801
+ Args: { expected_operation: string };
3802
+ Returns: boolean;
3803
+ };
3804
+ can_insert_object: {
3805
+ Args: { bucketid: string; metadata: Json; name: string; owner: string };
3806
+ Returns: undefined;
3807
+ };
3808
+ extension: { Args: { name: string }; Returns: string };
3809
+ filename: { Args: { name: string }; Returns: string };
3810
+ foldername: { Args: { name: string }; Returns: string[] };
3811
+ get_common_prefix: {
3812
+ Args: { p_delimiter: string; p_key: string; p_prefix: string };
3813
+ Returns: string;
3814
+ };
3815
+ get_size_by_bucket: {
3816
+ Args: never;
1453
3817
  Returns: {
1454
- changed: number;
1455
- matched: number;
1456
- mismatched: number;
3818
+ bucket_id: string;
3819
+ size: number;
1457
3820
  }[];
1458
3821
  };
1459
- generate_partnership_recurring_payment: {
3822
+ list_multipart_uploads_with_delimiter: {
1460
3823
  Args: {
1461
- p_amount: number;
1462
- p_due_date: string;
1463
- p_next_payment_date: string;
1464
- p_partner_id: string;
1465
- p_partnership_id: string;
1466
- p_payer_id?: string;
1467
- p_payment_method: Database['public']['Enums']['partnership_payment_method'];
1468
- p_subscription_id: string;
1469
- p_title: string;
3824
+ bucket_id: string;
3825
+ delimiter_param: string;
3826
+ max_keys?: number;
3827
+ next_key_token?: string;
3828
+ next_upload_token?: string;
3829
+ prefix_param: string;
1470
3830
  };
1471
3831
  Returns: {
1472
- created: boolean;
1473
- payment_id: string;
3832
+ created_at: string;
3833
+ id: string;
3834
+ key: string;
1474
3835
  }[];
1475
3836
  };
1476
- getCalendarFeedEvents: {
3837
+ list_objects_with_delimiter: {
1477
3838
  Args: {
1478
- p_include_pending: boolean;
1479
- p_include_tentative: boolean;
1480
- p_range_end: string;
1481
- p_range_start: string;
1482
- p_user_id: string;
3839
+ _bucket_id: string;
3840
+ delimiter_param: string;
3841
+ max_keys?: number;
3842
+ next_token?: string;
3843
+ prefix_param: string;
3844
+ sort_order?: string;
3845
+ start_after?: string;
1483
3846
  };
1484
3847
  Returns: {
1485
- allDay: boolean;
1486
- description: string;
1487
- endsAt: string;
1488
- eventId: string;
1489
- eventType: string;
1490
- groupName: string;
1491
- language: string;
1492
- lastModified: string;
1493
- latitude: number;
1494
- location: string;
1495
- longitude: number;
1496
- participationStatus: string;
1497
- sequence: number;
1498
- startsAt: string;
1499
- status: string;
1500
- summary: string;
1501
- timezone: string;
1502
- url: string;
3848
+ created_at: string;
3849
+ id: string;
3850
+ last_accessed_at: string;
3851
+ metadata: Json;
3852
+ name: string;
3853
+ updated_at: string;
1503
3854
  }[];
1504
3855
  };
1505
- immutable_unaccent: { Args: { '': string }; Returns: string };
1506
- resolveCalendarFeed: {
1507
- Args: { p_token_hash: string };
3856
+ operation: { Args: never; Returns: string };
3857
+ search: {
3858
+ Args: {
3859
+ bucketname: string;
3860
+ levels?: number;
3861
+ limits?: number;
3862
+ offsets?: number;
3863
+ prefix: string;
3864
+ search?: string;
3865
+ sortcolumn?: string;
3866
+ sortorder?: string;
3867
+ };
1508
3868
  Returns: {
1509
- includePending: boolean;
1510
- includeTentative: boolean;
1511
- userId: string;
3869
+ created_at: string;
3870
+ id: string;
3871
+ last_accessed_at: string;
3872
+ metadata: Json;
3873
+ name: string;
3874
+ updated_at: string;
3875
+ }[];
3876
+ };
3877
+ search_by_timestamp: {
3878
+ Args: {
3879
+ p_bucket_id: string;
3880
+ p_level: number;
3881
+ p_limit: number;
3882
+ p_prefix: string;
3883
+ p_sort_column: string;
3884
+ p_sort_column_after: string;
3885
+ p_sort_order: string;
3886
+ p_start_after: string;
3887
+ };
3888
+ Returns: {
3889
+ created_at: string;
3890
+ id: string;
3891
+ key: string;
3892
+ last_accessed_at: string;
3893
+ metadata: Json;
3894
+ name: string;
3895
+ updated_at: string;
3896
+ }[];
3897
+ };
3898
+ search_v2: {
3899
+ Args: {
3900
+ bucket_name: string;
3901
+ levels?: number;
3902
+ limits?: number;
3903
+ prefix: string;
3904
+ sort_column?: string;
3905
+ sort_column_after?: string;
3906
+ sort_order?: string;
3907
+ start_after?: string;
3908
+ };
3909
+ Returns: {
3910
+ created_at: string;
3911
+ id: string;
3912
+ key: string;
3913
+ last_accessed_at: string;
3914
+ metadata: Json;
3915
+ name: string;
3916
+ updated_at: string;
1512
3917
  }[];
1513
3918
  };
1514
- show_limit: { Args: never; Returns: number };
1515
- show_trgm: { Args: { '': string }; Returns: string[] };
1516
- unaccent: { Args: { '': string }; Returns: string };
1517
3919
  };
1518
3920
  Enums: {
1519
- created_on: 'app' | 'dashboard' | 'auth' | 'web';
1520
- event_selection_mode: 'open' | 'closed';
1521
- event_type: 'practice' | 'performance' | 'other';
1522
- group_payment_history_action: 'status' | 'amount' | 'concept' | 'method';
1523
- group_payment_method: 'cash' | 'transfer';
1524
- group_payment_status: 'pending' | 'paid' | 'cancelled';
1525
- group_payment_type: 'income' | 'expense';
1526
- group_plan: 'piano' | 'mezzopiano' | 'mezzoforte' | 'forte' | 'fortissimo' | 'tutti';
1527
- group_plan_period: 'yearly' | 'monthly';
1528
- group_status: 'premium' | 'trial' | 'inactive' | 'deleted';
1529
- offer_type: 'group' | 'event';
1530
- partnership_communication_status: 'sent' | 'scheduled';
1531
- partnership_partner_status: 'active' | 'pending' | 'inactive';
1532
- partnership_payment_method: 'CASH' | 'TRANSFER' | 'SEPA' | 'BIZUM';
1533
- partnership_payment_status: 'pending' | 'charged' | 'returned' | 'canceled';
1534
- social_network: 'facebook' | 'twitter' | 'instagram' | 'youtube';
3921
+ buckettype: 'STANDARD' | 'ANALYTICS' | 'VECTOR';
1535
3922
  };
1536
3923
  CompositeTypes: {
1537
- lonlat: {
1538
- longitude: number | null;
1539
- latitude: number | null;
1540
- };
3924
+ [_ in never]: never;
1541
3925
  };
1542
3926
  };
1543
3927
  };
@@ -1555,24 +3939,25 @@ export type Tables<
1555
3939
  }
1556
3940
  ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'] &
1557
3941
  DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Views'])
1558
- : never = never
3942
+ : never = never,
1559
3943
  > = DefaultSchemaTableNameOrOptions extends {
1560
3944
  schema: keyof DatabaseWithoutInternals;
1561
3945
  }
1562
3946
  ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'] &
1563
3947
  DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Views'])[TableName] extends {
1564
3948
  Row: infer R;
1565
- }
3949
+ }
1566
3950
  ? R
1567
3951
  : never
1568
3952
  : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema['Tables'] &
1569
- DefaultSchema['Views'])
1570
- ? (DefaultSchema['Tables'] & DefaultSchema['Views'])[DefaultSchemaTableNameOrOptions] extends {
1571
- Row: infer R;
1572
- }
1573
- ? R
1574
- : never
1575
- : never;
3953
+ DefaultSchema['Views'])
3954
+ ? (DefaultSchema['Tables'] &
3955
+ DefaultSchema['Views'])[DefaultSchemaTableNameOrOptions] extends {
3956
+ Row: infer R;
3957
+ }
3958
+ ? R
3959
+ : never
3960
+ : never;
1576
3961
 
1577
3962
  export type TablesInsert<
1578
3963
  DefaultSchemaTableNameOrOptions extends
@@ -1582,22 +3967,22 @@ export type TablesInsert<
1582
3967
  schema: keyof DatabaseWithoutInternals;
1583
3968
  }
1584
3969
  ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables']
1585
- : never = never
3970
+ : never = never,
1586
3971
  > = DefaultSchemaTableNameOrOptions extends {
1587
3972
  schema: keyof DatabaseWithoutInternals;
1588
3973
  }
1589
3974
  ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'][TableName] extends {
1590
3975
  Insert: infer I;
1591
- }
3976
+ }
1592
3977
  ? I
1593
3978
  : never
1594
3979
  : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema['Tables']
1595
- ? DefaultSchema['Tables'][DefaultSchemaTableNameOrOptions] extends {
1596
- Insert: infer I;
1597
- }
1598
- ? I
1599
- : never
1600
- : never;
3980
+ ? DefaultSchema['Tables'][DefaultSchemaTableNameOrOptions] extends {
3981
+ Insert: infer I;
3982
+ }
3983
+ ? I
3984
+ : never
3985
+ : never;
1601
3986
 
1602
3987
  export type TablesUpdate<
1603
3988
  DefaultSchemaTableNameOrOptions extends
@@ -1607,22 +3992,22 @@ export type TablesUpdate<
1607
3992
  schema: keyof DatabaseWithoutInternals;
1608
3993
  }
1609
3994
  ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables']
1610
- : never = never
3995
+ : never = never,
1611
3996
  > = DefaultSchemaTableNameOrOptions extends {
1612
3997
  schema: keyof DatabaseWithoutInternals;
1613
3998
  }
1614
3999
  ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'][TableName] extends {
1615
4000
  Update: infer U;
1616
- }
4001
+ }
1617
4002
  ? U
1618
4003
  : never
1619
4004
  : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema['Tables']
1620
- ? DefaultSchema['Tables'][DefaultSchemaTableNameOrOptions] extends {
1621
- Update: infer U;
1622
- }
1623
- ? U
1624
- : never
1625
- : never;
4005
+ ? DefaultSchema['Tables'][DefaultSchemaTableNameOrOptions] extends {
4006
+ Update: infer U;
4007
+ }
4008
+ ? U
4009
+ : never
4010
+ : never;
1626
4011
 
1627
4012
  export type Enums<
1628
4013
  DefaultSchemaEnumNameOrOptions extends
@@ -1632,14 +4017,14 @@ export type Enums<
1632
4017
  schema: keyof DatabaseWithoutInternals;
1633
4018
  }
1634
4019
  ? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions['schema']]['Enums']
1635
- : never = never
4020
+ : never = never,
1636
4021
  > = DefaultSchemaEnumNameOrOptions extends {
1637
4022
  schema: keyof DatabaseWithoutInternals;
1638
4023
  }
1639
4024
  ? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions['schema']]['Enums'][EnumName]
1640
4025
  : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema['Enums']
1641
- ? DefaultSchema['Enums'][DefaultSchemaEnumNameOrOptions]
1642
- : never;
4026
+ ? DefaultSchema['Enums'][DefaultSchemaEnumNameOrOptions]
4027
+ : never;
1643
4028
 
1644
4029
  export type CompositeTypes<
1645
4030
  PublicCompositeTypeNameOrOptions extends
@@ -1649,18 +4034,22 @@ export type CompositeTypes<
1649
4034
  schema: keyof DatabaseWithoutInternals;
1650
4035
  }
1651
4036
  ? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions['schema']]['CompositeTypes']
1652
- : never = never
4037
+ : never = never,
1653
4038
  > = PublicCompositeTypeNameOrOptions extends {
1654
4039
  schema: keyof DatabaseWithoutInternals;
1655
4040
  }
1656
4041
  ? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions['schema']]['CompositeTypes'][CompositeTypeName]
1657
4042
  : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema['CompositeTypes']
1658
- ? DefaultSchema['CompositeTypes'][PublicCompositeTypeNameOrOptions]
1659
- : never;
4043
+ ? DefaultSchema['CompositeTypes'][PublicCompositeTypeNameOrOptions]
4044
+ : never;
1660
4045
 
1661
4046
  export const Constants = {
4047
+ graphql_public: {
4048
+ Enums: {},
4049
+ },
1662
4050
  public: {
1663
4051
  Enums: {
4052
+ composerroleincomposition: ['COMPOSER', 'ARRANGER'],
1664
4053
  created_on: ['app', 'dashboard', 'auth', 'web'],
1665
4054
  event_selection_mode: ['open', 'closed'],
1666
4055
  event_type: ['practice', 'performance', 'other'],
@@ -1679,4 +4068,9 @@ export const Constants = {
1679
4068
  social_network: ['facebook', 'twitter', 'instagram', 'youtube'],
1680
4069
  },
1681
4070
  },
4071
+ storage: {
4072
+ Enums: {
4073
+ buckettype: ['STANDARD', 'ANALYTICS', 'VECTOR'],
4074
+ },
4075
+ },
1682
4076
  } as const;