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