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