@glissandoo/lib 1.124.0-dev.221.1 → 1.124.0

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