@glissandoo/lib 1.121.0 → 1.123.0-dev.210.1

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