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