@glissandoo/lib 1.124.0-dev.222.1 → 1.124.1

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