@glissandoo/lib 1.123.3 → 1.124.0-dev.220.1

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