@glissandoo/lib 1.125.0-dev.228.1 → 1.125.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (371) 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.js +1 -1
  13. package/helpers/auth.d.ts +9 -2
  14. package/helpers/auth.js +14 -33
  15. package/helpers/badges.js +1 -1
  16. package/helpers/collections.js +2 -2
  17. package/helpers/communicationTemplate/index.d.ts +2 -3
  18. package/helpers/communicationTemplate/index.js +5 -5
  19. package/helpers/currency.d.ts +0 -19
  20. package/helpers/currency.js +2 -71
  21. package/helpers/dlinks.js +1 -1
  22. package/helpers/errors.d.ts +0 -1
  23. package/helpers/errors.js +1 -2
  24. package/helpers/instruments/index.d.ts +0 -17
  25. package/helpers/instruments/index.js +1 -5
  26. package/helpers/instruments/lists.d.ts +3 -3
  27. package/helpers/instruments/lists.js +5 -5
  28. package/helpers/musicStyles/index.d.ts +4 -22
  29. package/helpers/musicStyles/index.js +35 -114
  30. package/helpers/notifications/index.js +1 -1
  31. package/helpers/objects.d.ts +1 -5
  32. package/helpers/objects.js +6 -7
  33. package/helpers/paymentForecast.js +2 -1
  34. package/helpers/payoutRules.js +4 -3
  35. package/helpers/plans.js +2 -2
  36. package/helpers/rates.d.ts +1 -1
  37. package/helpers/slate.d.ts +5 -64
  38. package/helpers/slate.js +1 -7
  39. package/helpers/ts-extras/array-includes.js +2 -1
  40. package/helpers/ts-extras/as-mutable.js +2 -1
  41. package/helpers/ts-extras/assert-error.js +2 -1
  42. package/helpers/ts-extras/index.js +1 -1
  43. package/helpers/ts-extras/is-defined.js +2 -1
  44. package/helpers/ts-extras/is-empty.js +2 -1
  45. package/helpers/ts-extras/is-infinite.js +2 -1
  46. package/helpers/ts-extras/is-present.js +2 -1
  47. package/helpers/ts-extras/object-entries.d.ts +1 -1
  48. package/helpers/ts-extras/object-from-entries.d.ts +1 -1
  49. package/helpers/ts-extras/object-has-own.js +2 -1
  50. package/helpers/ts-extras/object-keys.d.ts +1 -1
  51. package/helpers/ts-extras/object-keys.js +1 -0
  52. package/helpers/ts-extras/set-has.js +2 -1
  53. package/helpers/types.d.ts +0 -26
  54. package/helpers/types.js +6 -26
  55. package/lang/ca.json +91 -325
  56. package/lang/de.json +91 -325
  57. package/lang/en.json +91 -325
  58. package/lang/es.json +91 -325
  59. package/lang/eu.json +91 -325
  60. package/lang/fr.json +91 -325
  61. package/lang/gl.json +91 -325
  62. package/lang/index.js +2 -3
  63. package/lang/it.json +91 -325
  64. package/lang/nl.json +91 -325
  65. package/lang/pt.json +91 -325
  66. package/models/Communication/types.d.ts +16 -0
  67. package/models/Communication/types.js +9 -3
  68. package/models/Counters/Group/Analytics/types.js +1 -1
  69. package/models/Customer/index.d.ts +1 -1
  70. package/models/Customer/index.js +3 -3
  71. package/models/Customer/types.js +1 -1
  72. package/models/Evento/Player/types.js +3 -3
  73. package/models/Evento/Repertory/types.d.ts +1 -2
  74. package/models/Evento/index.d.ts +2 -3
  75. package/models/Evento/index.js +4 -5
  76. package/models/Evento/types.d.ts +34 -3
  77. package/models/Evento/types.js +41 -9
  78. package/models/Federation/index.d.ts +1 -1
  79. package/models/Federation/index.js +3 -3
  80. package/models/Group/Analytics/types.js +1 -1
  81. package/models/Group/Payment/supabase.js +3 -3
  82. package/models/Group/Payment/types.js +5 -5
  83. package/models/Group/Player/types.js +1 -1
  84. package/models/Group/Repertory/File/Section/index.d.ts +3 -3
  85. package/models/Group/Repertory/File/Section/index.js +2 -3
  86. package/models/Group/Repertory/File/Section/types.d.ts +0 -7
  87. package/models/Group/Repertory/File/Section/types.js +1 -1
  88. package/models/Group/Repertory/File/index.d.ts +2 -4
  89. package/models/Group/Repertory/File/index.js +4 -4
  90. package/models/Group/Repertory/FilePath/index.d.ts +4 -3
  91. package/models/Group/Repertory/index.d.ts +4 -12
  92. package/models/Group/Repertory/index.js +0 -9
  93. package/models/Group/Repertory/types.d.ts +32 -21
  94. package/models/Group/Repertory/types.js +18 -8
  95. package/models/Group/index.d.ts +2 -7
  96. package/models/Group/index.js +0 -14
  97. package/models/Group/types.d.ts +21 -2
  98. package/models/Group/types.js +33 -14
  99. package/models/Instrument/index.d.ts +0 -2
  100. package/models/Instrument/index.js +1 -38
  101. package/models/Inventory/Item/types.js +2 -2
  102. package/models/Inventory/types.js +1 -1
  103. package/models/Notification/types.js +2 -2
  104. package/models/Offer/types.d.ts +12 -0
  105. package/models/Offer/types.js +15 -2
  106. package/models/Partnership/Communication/supabase.js +2 -2
  107. package/models/Partnership/Group/index.d.ts +1 -2
  108. package/models/Partnership/Group/index.js +3 -15
  109. package/models/Partnership/Group/supabase.js +2 -2
  110. package/models/Partnership/Partner/supabase.js +2 -2
  111. package/models/Partnership/Partner/types.js +1 -1
  112. package/models/Partnership/Payment/supabase.js +3 -3
  113. package/models/Partnership/Payment/types.js +2 -2
  114. package/models/Partnership/Plan/supabase.js +2 -2
  115. package/models/Partnership/SepaPaymentGroup/supabase.js +2 -2
  116. package/models/Partnership/Subscription/supabase.js +2 -2
  117. package/models/Partnership/index.d.ts +0 -1
  118. package/models/Partnership/index.js +0 -4
  119. package/models/Partnership/types.js +1 -1
  120. package/models/Repertory/types.d.ts +0 -12
  121. package/models/Repertory/types.js +2 -2
  122. package/models/User/Group/index.js +2 -1
  123. package/models/User/index.d.ts +1 -1
  124. package/models/User/index.js +3 -3
  125. package/models/User/types.d.ts +1 -2
  126. package/models/User/types.js +8 -8
  127. package/models/WebhookEvent/types.js +1 -1
  128. package/package.json +13 -15
  129. package/types/firestore.d.ts +1 -0
  130. package/types/firestore.js +1 -1
  131. package/types/payoutRule.js +3 -3
  132. package/types/supabase/generated.d.ts +1371 -3801
  133. package/types/supabase/generated.js +0 -9
  134. package/types/supabase/generated.ts +1413 -3774
  135. package/types/supabase/index.d.ts +22 -91
  136. package/types/supabase/index.js +0 -15
  137. package/types/supabase/index.ts +54 -209
  138. package/types/supabase/overwrites/comm.d.ts +18 -0
  139. package/types/supabase/overwrites/comm.ts +18 -0
  140. package/types/supabase/overwrites/comm_history.d.ts +10 -0
  141. package/types/supabase/overwrites/comm_history.ts +10 -0
  142. package/types/supabase/overwrites/{tables/event/index.d.ts → event.d.ts} +1 -1
  143. package/types/supabase/overwrites/{tables/event/index.ts → event.ts} +1 -1
  144. package/types/supabase/overwrites/{tables/eventPlayer/index.d.ts → eventPlayer.d.ts} +1 -1
  145. package/types/supabase/overwrites/{tables/eventPlayer/index.ts → eventPlayer.ts} +1 -1
  146. package/types/supabase/overwrites/event_history.d.ts +10 -0
  147. package/types/supabase/overwrites/event_history.ts +10 -0
  148. package/types/supabase/overwrites/{tables/group/index.d.ts → group.d.ts} +5 -2
  149. package/types/supabase/overwrites/{tables/group/index.ts → group.ts} +6 -2
  150. package/types/supabase/overwrites/{tables/groupPlayer/index.d.ts → groupPlayer.d.ts} +1 -1
  151. package/types/supabase/overwrites/{tables/groupPlayer/index.ts → groupPlayer.ts} +1 -1
  152. package/types/supabase/overwrites/group_history.d.ts +9 -0
  153. package/types/supabase/overwrites/group_history.ts +9 -0
  154. package/types/supabase/overwrites/index.d.ts +1 -1
  155. package/types/supabase/overwrites/index.ts +1 -1
  156. package/types/supabase/overwrites/{tables/offer/index.d.ts → offer.d.ts} +2 -6
  157. package/types/supabase/overwrites/{tables/offer/index.ts → offer.ts} +2 -7
  158. package/types/supabase/overwrites/offer_history.d.ts +10 -0
  159. package/types/supabase/overwrites/offer_history.ts +10 -0
  160. package/types/supabase/overwrites/{tables/publicApiGroupModel/index.d.ts → publicApiGroupModel.d.ts} +2 -2
  161. package/types/supabase/overwrites/{tables/publicApiGroupModel/index.ts → publicApiGroupModel.ts} +2 -2
  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/types/supabase/publicApi.d.ts +1 -11
  167. package/types/supabase/publicApi.ts +3 -15
  168. package/functions/composer.d.ts +0 -13
  169. package/functions/composerComposition.d.ts +0 -102
  170. package/functions/composerNotification.d.ts +0 -38
  171. package/functions/composerPayout.d.ts +0 -20
  172. package/helpers/catalogBridge.d.ts +0 -121
  173. package/helpers/catalogBridge.js +0 -95
  174. package/helpers/compositionCategories/genres.d.ts +0 -922
  175. package/helpers/compositionCategories/genres.js +0 -940
  176. package/helpers/compositionCategories/index.d.ts +0 -2
  177. package/helpers/compositionCategories/index.js +0 -18
  178. package/helpers/compositionCategories/styles.d.ts +0 -181
  179. package/helpers/compositionCategories/styles.js +0 -197
  180. package/helpers/compositionSoloistOffstageParts/index.d.ts +0 -34
  181. package/helpers/compositionSoloistOffstageParts/index.js +0 -117
  182. package/helpers/currencyConversion.d.ts +0 -45
  183. package/helpers/currencyConversion.js +0 -119
  184. package/helpers/dataStructures/trees/index.d.ts +0 -12
  185. package/helpers/dataStructures/trees/index.js +0 -71
  186. package/helpers/dataStructures/trees/types.d.ts +0 -14
  187. package/helpers/dataStructures/trees/types.js +0 -5
  188. package/helpers/externalUrls.d.ts +0 -12
  189. package/helpers/externalUrls.js +0 -40
  190. package/models/CompositionGenre/index.d.ts +0 -9
  191. package/models/CompositionGenre/index.js +0 -16
  192. package/models/CompositionStyle/index.d.ts +0 -9
  193. package/models/CompositionStyle/index.js +0 -16
  194. package/models/Instrument/fromRecord.d.ts +0 -11
  195. package/models/Instrument/fromRecord.js +0 -33
  196. package/models/supabase/Comm/index.d.ts +0 -24
  197. package/models/supabase/Comm/index.js +0 -68
  198. package/models/supabase/Comm/types.d.ts +0 -6
  199. package/models/supabase/CommHistory/index.d.ts +0 -22
  200. package/models/supabase/CommHistory/index.js +0 -37
  201. package/models/supabase/CommHistory/types.d.ts +0 -11
  202. package/models/supabase/CommHistory/types.js +0 -9
  203. package/models/supabase/Composer/Composition/Acquisition/index.d.ts +0 -4
  204. package/models/supabase/Composer/Composition/Acquisition/index.js +0 -9
  205. package/models/supabase/Composer/Composition/Acquisition/types.d.ts +0 -42
  206. package/models/supabase/Composer/Composition/Favorite/index.d.ts +0 -4
  207. package/models/supabase/Composer/Composition/Favorite/index.js +0 -9
  208. package/models/supabase/Composer/Composition/Favorite/types.d.ts +0 -6
  209. package/models/supabase/Composer/Composition/View/index.d.ts +0 -4
  210. package/models/supabase/Composer/Composition/View/index.js +0 -9
  211. package/models/supabase/Composer/Composition/View/types.d.ts +0 -6
  212. package/models/supabase/Composer/Composition/index.d.ts +0 -5284
  213. package/models/supabase/Composer/Composition/index.js +0 -166
  214. package/models/supabase/Composer/Composition/types.d.ts +0 -96
  215. package/models/supabase/Composer/Composition/types.js +0 -32
  216. package/models/supabase/Composer/Notification/index.d.ts +0 -4
  217. package/models/supabase/Composer/Notification/index.js +0 -9
  218. package/models/supabase/Composer/Notification/types.d.ts +0 -39
  219. package/models/supabase/Composer/Notification/types.js +0 -27
  220. package/models/supabase/Composer/Payout/index.d.ts +0 -4
  221. package/models/supabase/Composer/Payout/index.js +0 -9
  222. package/models/supabase/Composer/Payout/status.d.ts +0 -1
  223. package/models/supabase/Composer/Payout/types.d.ts +0 -5
  224. package/models/supabase/Composer/PerformanceAttendance/types.d.ts +0 -4
  225. package/models/supabase/Composer/index.d.ts +0 -78
  226. package/models/supabase/Composer/index.js +0 -105
  227. package/models/supabase/Composer/types.d.ts +0 -6
  228. package/models/supabase/EventHistory/index.d.ts +0 -22
  229. package/models/supabase/EventHistory/index.js +0 -37
  230. package/models/supabase/EventHistory/types.d.ts +0 -39
  231. package/models/supabase/EventHistory/types.js +0 -37
  232. package/models/supabase/GroupHistory/index.d.ts +0 -21
  233. package/models/supabase/GroupHistory/index.js +0 -34
  234. package/models/supabase/GroupHistory/types.d.ts +0 -27
  235. package/models/supabase/GroupHistory/types.js +0 -25
  236. package/models/supabase/Model/index.d.ts +0 -10
  237. package/models/supabase/Model/index.js +0 -21
  238. package/models/supabase/OfferHistory/index.d.ts +0 -22
  239. package/models/supabase/OfferHistory/index.js +0 -37
  240. package/models/supabase/OfferHistory/types.d.ts +0 -18
  241. package/models/supabase/OfferHistory/types.js +0 -16
  242. package/models/supabase/Repertoire/index.d.ts +0 -16
  243. package/models/supabase/Repertoire/index.js +0 -43
  244. package/models/supabase/Repertoire/types.d.ts +0 -6
  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 -1
  252. package/models/supabase/User/index.d.ts +0 -13
  253. package/models/supabase/User/index.js +0 -37
  254. package/models/supabase/User/types.d.ts +0 -6
  255. package/models/supabase/User/types.js +0 -2
  256. package/types/supabase/catalog.d.ts +0 -46
  257. package/types/supabase/catalog.js +0 -2
  258. package/types/supabase/catalog.ts +0 -67
  259. package/types/supabase/composerMetrics.d.ts +0 -27
  260. package/types/supabase/composerMetrics.js +0 -2
  261. package/types/supabase/composerMetrics.ts +0 -26
  262. package/types/supabase/overwrites/tables/comm/model.d.ts +0 -4
  263. package/types/supabase/overwrites/tables/comm/model.js +0 -2
  264. package/types/supabase/overwrites/tables/comm/model.ts +0 -4
  265. package/types/supabase/overwrites/tables/comm_history/index.d.ts +0 -7
  266. package/types/supabase/overwrites/tables/comm_history/index.js +0 -2
  267. package/types/supabase/overwrites/tables/comm_history/index.ts +0 -9
  268. package/types/supabase/overwrites/tables/comm_history/model.d.ts +0 -10
  269. package/types/supabase/overwrites/tables/comm_history/model.js +0 -2
  270. package/types/supabase/overwrites/tables/comm_history/model.ts +0 -13
  271. package/types/supabase/overwrites/tables/common/index.js +0 -2
  272. package/types/supabase/overwrites/tables/composer/index.d.ts +0 -9
  273. package/types/supabase/overwrites/tables/composer/index.js +0 -2
  274. package/types/supabase/overwrites/tables/composer/index.ts +0 -10
  275. package/types/supabase/overwrites/tables/composer/model.d.ts +0 -12
  276. package/types/supabase/overwrites/tables/composer/model.js +0 -2
  277. package/types/supabase/overwrites/tables/composer/model.ts +0 -15
  278. package/types/supabase/overwrites/tables/composer/publicModel.d.ts +0 -11
  279. package/types/supabase/overwrites/tables/composer/publicModel.js +0 -2
  280. package/types/supabase/overwrites/tables/composer/publicModel.ts +0 -15
  281. package/types/supabase/overwrites/tables/composerComposition/index.d.ts +0 -18
  282. package/types/supabase/overwrites/tables/composerComposition/index.js +0 -2
  283. package/types/supabase/overwrites/tables/composerComposition/index.ts +0 -24
  284. package/types/supabase/overwrites/tables/composerComposition/model.d.ts +0 -9
  285. package/types/supabase/overwrites/tables/composerComposition/model.js +0 -2
  286. package/types/supabase/overwrites/tables/composerComposition/model.ts +0 -26
  287. package/types/supabase/overwrites/tables/composerComposition/publicModel.d.ts +0 -9
  288. package/types/supabase/overwrites/tables/composerComposition/publicModel.js +0 -2
  289. package/types/supabase/overwrites/tables/composerComposition/publicModel.ts +0 -37
  290. package/types/supabase/overwrites/tables/composerNotification/index.d.ts +0 -19
  291. package/types/supabase/overwrites/tables/composerNotification/index.js +0 -2
  292. package/types/supabase/overwrites/tables/composerNotification/index.ts +0 -25
  293. package/types/supabase/overwrites/tables/composerOwnedTransaction/model.d.ts +0 -2
  294. package/types/supabase/overwrites/tables/composerOwnedTransaction/model.js +0 -2
  295. package/types/supabase/overwrites/tables/composerOwnedTransaction/model.ts +0 -3
  296. package/types/supabase/overwrites/tables/composerPayout/index.d.ts +0 -7
  297. package/types/supabase/overwrites/tables/composerPayout/index.js +0 -2
  298. package/types/supabase/overwrites/tables/composerPayout/index.ts +0 -8
  299. package/types/supabase/overwrites/tables/compositionAcquisition/index.d.ts +0 -4
  300. package/types/supabase/overwrites/tables/compositionAcquisition/index.js +0 -2
  301. package/types/supabase/overwrites/tables/compositionAcquisition/index.ts +0 -8
  302. package/types/supabase/overwrites/tables/compositionAcquisition/model.d.ts +0 -6
  303. package/types/supabase/overwrites/tables/compositionAcquisition/model.js +0 -2
  304. package/types/supabase/overwrites/tables/compositionAcquisition/model.ts +0 -11
  305. package/types/supabase/overwrites/tables/compositionFavorite/index.d.ts +0 -1
  306. package/types/supabase/overwrites/tables/compositionFavorite/index.js +0 -2
  307. package/types/supabase/overwrites/tables/compositionFavorite/index.ts +0 -2
  308. package/types/supabase/overwrites/tables/compositionFavorite/model.d.ts +0 -1
  309. package/types/supabase/overwrites/tables/compositionFavorite/model.js +0 -2
  310. package/types/supabase/overwrites/tables/compositionFavorite/model.ts +0 -1
  311. package/types/supabase/overwrites/tables/compositionView/index.d.ts +0 -1
  312. package/types/supabase/overwrites/tables/compositionView/index.js +0 -2
  313. package/types/supabase/overwrites/tables/compositionView/index.ts +0 -2
  314. package/types/supabase/overwrites/tables/compositionView/model.d.ts +0 -1
  315. package/types/supabase/overwrites/tables/compositionView/model.js +0 -2
  316. package/types/supabase/overwrites/tables/compositionView/model.ts +0 -1
  317. package/types/supabase/overwrites/tables/currencyExchangeRate/index.d.ts +0 -16
  318. package/types/supabase/overwrites/tables/currencyExchangeRate/index.js +0 -2
  319. package/types/supabase/overwrites/tables/currencyExchangeRate/index.ts +0 -18
  320. package/types/supabase/overwrites/tables/event/index.js +0 -2
  321. package/types/supabase/overwrites/tables/eventPlayer/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/groupPlayer/index.js +0 -2
  330. package/types/supabase/overwrites/tables/group_history/index.d.ts +0 -7
  331. package/types/supabase/overwrites/tables/group_history/index.js +0 -2
  332. package/types/supabase/overwrites/tables/group_history/index.ts +0 -9
  333. package/types/supabase/overwrites/tables/group_history/model.d.ts +0 -10
  334. package/types/supabase/overwrites/tables/group_history/model.js +0 -2
  335. package/types/supabase/overwrites/tables/group_history/model.ts +0 -13
  336. package/types/supabase/overwrites/tables/offer/index.js +0 -2
  337. package/types/supabase/overwrites/tables/offer_history/index.d.ts +0 -7
  338. package/types/supabase/overwrites/tables/offer_history/index.js +0 -2
  339. package/types/supabase/overwrites/tables/offer_history/index.ts +0 -9
  340. package/types/supabase/overwrites/tables/offer_history/model.d.ts +0 -10
  341. package/types/supabase/overwrites/tables/offer_history/model.js +0 -2
  342. package/types/supabase/overwrites/tables/offer_history/model.ts +0 -13
  343. package/types/supabase/overwrites/tables/publicApiGroupModel/index.js +0 -2
  344. package/types/supabase/overwrites/tables/repertoire/model.d.ts +0 -7
  345. package/types/supabase/overwrites/tables/repertoire/model.js +0 -2
  346. package/types/supabase/overwrites/tables/repertoire/model.ts +0 -7
  347. package/types/supabase/overwrites/tables/repertoire_history/index.d.ts +0 -7
  348. package/types/supabase/overwrites/tables/repertoire_history/index.js +0 -2
  349. package/types/supabase/overwrites/tables/repertoire_history/index.ts +0 -9
  350. package/types/supabase/overwrites/tables/repertoire_history/model.d.ts +0 -10
  351. package/types/supabase/overwrites/tables/repertoire_history/model.js +0 -2
  352. package/types/supabase/overwrites/tables/repertoire_history/model.ts +0 -13
  353. package/types/supabase/overwrites/tables/user/index.d.ts +0 -11
  354. package/types/supabase/overwrites/tables/user/index.js +0 -2
  355. package/types/supabase/overwrites/tables/user/index.ts +0 -13
  356. /package/{functions/composer.js → types/supabase/overwrites/comm.js} +0 -0
  357. /package/{functions/composerComposition.js → types/supabase/overwrites/comm_history.js} +0 -0
  358. /package/{functions/composerNotification.js → types/supabase/overwrites/event.js} +0 -0
  359. /package/{functions/composerPayout.js → types/supabase/overwrites/eventPlayer.js} +0 -0
  360. /package/{models/supabase/Comm/types.js → types/supabase/overwrites/event_history.js} +0 -0
  361. /package/{models/supabase/Composer/Composition/Acquisition/types.js → types/supabase/overwrites/group.js} +0 -0
  362. /package/{models/supabase/Composer/Composition/Favorite/types.js → types/supabase/overwrites/groupPlayer.js} +0 -0
  363. /package/{models/supabase/Composer/Composition/View/types.js → types/supabase/overwrites/group_history.js} +0 -0
  364. /package/{models/supabase/Composer/Payout/status.js → types/supabase/overwrites/offer.js} +0 -0
  365. /package/{models/supabase/Composer/Payout/types.js → types/supabase/overwrites/offer_history.js} +0 -0
  366. /package/{models/supabase/Composer/PerformanceAttendance/types.js → types/supabase/overwrites/publicApiGroupModel.js} +0 -0
  367. /package/{models/supabase/Composer/types.js → types/supabase/overwrites/repertoire.js} +0 -0
  368. /package/{models/supabase/Repertoire/types.js → types/supabase/overwrites/repertoire_history.js} +0 -0
  369. /package/types/supabase/overwrites/{tables/common/index.d.ts → utils.d.ts} +0 -0
  370. /package/{models/supabase/User/Group/types.js → types/supabase/overwrites/utils.js} +0 -0
  371. /package/types/supabase/overwrites/{tables/common/index.ts → utils.ts} +0 -0
@@ -1,14 +1,24 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AcquisitionStatus = exports.GroupRepertoireVisibility = void 0;
3
+ exports.GroupRepertoireVisibility = exports.RepertoireHistoryAction = void 0;
4
+ var RepertoireHistoryAction;
5
+ (function (RepertoireHistoryAction) {
6
+ RepertoireHistoryAction["Created"] = "created";
7
+ RepertoireHistoryAction["Deleted"] = "deleted";
8
+ RepertoireHistoryAction["PlayerPlay"] = "player_play";
9
+ RepertoireHistoryAction["PlayerView"] = "player_view";
10
+ RepertoireHistoryAction["PlayerDownload"] = "player_download";
11
+ RepertoireHistoryAction["PlayerDownloadAll"] = "player_download_all";
12
+ RepertoireHistoryAction["PlayerClaim"] = "player_claim";
13
+ RepertoireHistoryAction["RemovedClaim"] = "removed_claim";
14
+ RepertoireHistoryAction["EditTitle"] = "edit_title";
15
+ RepertoireHistoryAction["EditTags"] = "edit_tags";
16
+ RepertoireHistoryAction["EditVisibility"] = "edit_visibility";
17
+ RepertoireHistoryAction["EditCompositor"] = "edit_compositor";
18
+ RepertoireHistoryAction["EditFile"] = "edit_file";
19
+ })(RepertoireHistoryAction = exports.RepertoireHistoryAction || (exports.RepertoireHistoryAction = {}));
4
20
  var GroupRepertoireVisibility;
5
21
  (function (GroupRepertoireVisibility) {
6
22
  GroupRepertoireVisibility["Always"] = "always";
7
23
  GroupRepertoireVisibility["ByEvent"] = "byEvent";
8
- })(GroupRepertoireVisibility || (exports.GroupRepertoireVisibility = GroupRepertoireVisibility = {}));
9
- var AcquisitionStatus;
10
- (function (AcquisitionStatus) {
11
- AcquisitionStatus["Preparing"] = "preparing";
12
- AcquisitionStatus["ActionsNeeded"] = "actionsNeeded";
13
- AcquisitionStatus["Ready"] = "ready";
14
- })(AcquisitionStatus || (exports.AcquisitionStatus = AcquisitionStatus = {}));
24
+ })(GroupRepertoireVisibility = exports.GroupRepertoireVisibility || (exports.GroupRepertoireVisibility = {}));
@@ -1,5 +1,4 @@
1
1
  import { DocumentReference } from '@google-cloud/firestore';
2
- import { CustomInstrumentId } from '../../helpers/instruments';
3
2
  import { PlansGroup } from '../../helpers/plans';
4
3
  import { LanguagesTypes } from '../../lang';
5
4
  import { GroupPayoutRuleEntry } from '../../types/payoutRule';
@@ -18,10 +17,8 @@ export default class Group extends GroupBasic<GroupData> {
18
17
  get addressDefault(): import("./types").GroupAddressData | undefined;
19
18
  get activeInvitationLink(): boolean;
20
19
  get invitationLink(): string;
21
- getInvitationLink(landingHost: string): string;
22
20
  get invitationEmails(): string[];
23
21
  get shortDynamicLink(): string;
24
- getShortDynamicLink(appHost: string): string;
25
22
  get admins(): string[];
26
23
  get adminPermissions(): Record<string, AdminPermissions[]>;
27
24
  permissionsByAdmin(userId: string): AdminPermissions[];
@@ -92,20 +89,18 @@ export default class Group extends GroupBasic<GroupData> {
92
89
  getRepertoireTagName(id: string): string | null;
93
90
  get trialEndAt(): Date;
94
91
  get glissandooAdminUrl(): string;
95
- getGlissandooAdminUrl(adminHost: string): string;
96
92
  get createdOn(): import("../../helpers/types").CreatedOn;
97
93
  get instruments(): import("./types").GroupInstruments;
98
94
  get instrumentsList(): AGroupInstrument[];
99
95
  get instrumentsIds(): (import("../../helpers/instruments").DefaultInstrumentId | `customInstrument-${string}`)[];
100
- get customInstruments(): Record<CustomInstrumentId, CustomGroupInstrument>;
96
+ get customInstruments(): Record<`customInstrument-${string}`, CustomGroupInstrument>;
101
97
  get customInstrumentsList(): Pick<CustomGroupInstrument & {
102
98
  id: `customInstrument-${string}`;
103
- }, "id" | "name" | "icon" | "basedOnInstrument">[];
99
+ }, "name" | "id" | "icon" | "basedOnInstrument">[];
104
100
  get customInstrumentsIds(): `customInstrument-${string}`[];
105
101
  get visitedDashboardAt(): Record<string, FirebaseFirestore.Timestamp>;
106
102
  get onboardingMessages(): import("./types").GroupOnboardingMessage[];
107
103
  get rollcallLink(): string;
108
- getRollcallLink(landingHost: string): string;
109
104
  get subscriptionId(): string | null;
110
105
  get questions(): Record<string, import("./types").GroupEventQuestion>;
111
106
  get questionsList(): {
@@ -7,7 +7,6 @@ const date_fns_1 = require("date-fns");
7
7
  const lodash_1 = require("lodash");
8
8
  const collections_1 = require("../../helpers/collections");
9
9
  const currency_1 = require("../../helpers/currency");
10
- const externalUrls_1 = require("../../helpers/externalUrls");
11
10
  const glissandooAdmin_1 = require("../../helpers/glissandooAdmin");
12
11
  const orders_1 = require("../../helpers/instruments/orders");
13
12
  const objects_1 = require("../../helpers/objects");
@@ -59,19 +58,12 @@ class Group extends basic_1.default {
59
58
  }
60
59
  return `${link}?lang=${this.lang}`;
61
60
  }
62
- getInvitationLink(landingHost) {
63
- const link = (0, externalUrls_1.buildGroupInvitationUrl)(landingHost, this.id);
64
- return lang_1.LanguagesTypes.ES === this.lang ? link : `${link}?lang=${this.lang}`;
65
- }
66
61
  get invitationEmails() {
67
62
  return this.data.invitationEmails || [];
68
63
  }
69
64
  get shortDynamicLink() {
70
65
  return `https://app.glissandoo.com/group/${this.username}`;
71
66
  }
72
- getShortDynamicLink(appHost) {
73
- return (0, externalUrls_1.buildGroupShortDynamicUrl)(appHost, this.username);
74
- }
75
67
  get admins() {
76
68
  return this.data.administrators || [];
77
69
  }
@@ -256,9 +248,6 @@ class Group extends basic_1.default {
256
248
  get glissandooAdminUrl() {
257
249
  return (0, glissandooAdmin_1.getGlissandooAdminEntityURL)(collections_1.CollectionNames.Group, this.id);
258
250
  }
259
- getGlissandooAdminUrl(adminHost) {
260
- return (0, externalUrls_1.buildAdminEntityUrl)(adminHost, collections_1.CollectionNames.Group, this.id);
261
- }
262
251
  get createdOn() {
263
252
  return this.data.createdOn;
264
253
  }
@@ -289,9 +278,6 @@ class Group extends basic_1.default {
289
278
  get rollcallLink() {
290
279
  return `https://glissandoo.com/rollcall/${this.id}`;
291
280
  }
292
- getRollcallLink(landingHost) {
293
- return (0, externalUrls_1.buildRollcallUrl)(landingHost, this.id);
294
- }
295
281
  get subscriptionId() {
296
282
  return this.data.subscriptionId || null;
297
283
  }
@@ -7,7 +7,27 @@ import { GroupPayoutRuleEntry } from '../../types/payoutRule';
7
7
  import { EventPlayerStatus } from '../Evento/Player/types';
8
8
  import { EventType } from '../Evento/types';
9
9
  import { PlayerBasicData } from '../Player/types';
10
- export { GroupHistoryAction } from '../supabase/GroupHistory/types';
10
+ export declare enum GroupHistoryAction {
11
+ Created = "created",
12
+ Deleted = "deleted",
13
+ MemberAdd = "member_add",
14
+ MemberJoin = "member_join",
15
+ MemberLeave = "member_leave",
16
+ MemberRemove = "member_remove",
17
+ MemberInstrumentChange = "member_instrument_change",
18
+ MemberPermissionsChange = "member_permissions_change",
19
+ TemplateCreated = "template_created",
20
+ TemplateDeleted = "template_deleted",
21
+ TemplateEdited = "template_edited",
22
+ EditInstruments = "edit_instruments",
23
+ EditName = "edit_name",
24
+ EditLocation = "edit_location",
25
+ EditMusicStyle = "edit_music_style",
26
+ EditUsername = "edit_username",
27
+ EditPhoto = "edit_photo",
28
+ LinkFakeAccount = "link_fake_account",
29
+ EditFakeAccountInfo = "edit_fake_account_info"
30
+ }
11
31
  export declare enum GroupCustomFieldType {
12
32
  TEXT = "text",
13
33
  NUMBER = "number",
@@ -51,7 +71,6 @@ export declare enum AdminPermissions {
51
71
  Rollcall = "rollcall",
52
72
  Members = "members",
53
73
  Repertoire = "repertoire",
54
- Purchase = "purchase",
55
74
  Communications = "communications",
56
75
  Offers = "offers",
57
76
  Billing = "billing",
@@ -1,8 +1,28 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GroupRepertoireTagDefault = exports.GroupRepertoireTagReserved = exports.SocialNetwork = exports.GroupModulePlan = exports.GroupModuleId = exports.GroupStatus = exports.GroupConfigShowAttendanceToMembers = exports.GroupConfigSitesKey = exports.GroupConfigKey = exports.AdminPermissions = exports.GroupCustomFieldType = exports.GroupHistoryAction = void 0;
4
- var types_1 = require("../supabase/GroupHistory/types");
5
- Object.defineProperty(exports, "GroupHistoryAction", { enumerable: true, get: function () { return types_1.GroupHistoryAction; } });
4
+ var GroupHistoryAction;
5
+ (function (GroupHistoryAction) {
6
+ GroupHistoryAction["Created"] = "created";
7
+ GroupHistoryAction["Deleted"] = "deleted";
8
+ GroupHistoryAction["MemberAdd"] = "member_add";
9
+ GroupHistoryAction["MemberJoin"] = "member_join";
10
+ GroupHistoryAction["MemberLeave"] = "member_leave";
11
+ GroupHistoryAction["MemberRemove"] = "member_remove";
12
+ GroupHistoryAction["MemberInstrumentChange"] = "member_instrument_change";
13
+ GroupHistoryAction["MemberPermissionsChange"] = "member_permissions_change";
14
+ GroupHistoryAction["TemplateCreated"] = "template_created";
15
+ GroupHistoryAction["TemplateDeleted"] = "template_deleted";
16
+ GroupHistoryAction["TemplateEdited"] = "template_edited";
17
+ GroupHistoryAction["EditInstruments"] = "edit_instruments";
18
+ GroupHistoryAction["EditName"] = "edit_name";
19
+ GroupHistoryAction["EditLocation"] = "edit_location";
20
+ GroupHistoryAction["EditMusicStyle"] = "edit_music_style";
21
+ GroupHistoryAction["EditUsername"] = "edit_username";
22
+ GroupHistoryAction["EditPhoto"] = "edit_photo";
23
+ GroupHistoryAction["LinkFakeAccount"] = "link_fake_account";
24
+ GroupHistoryAction["EditFakeAccountInfo"] = "edit_fake_account_info";
25
+ })(GroupHistoryAction = exports.GroupHistoryAction || (exports.GroupHistoryAction = {}));
6
26
  // types/CustomFields.ts
7
27
  var GroupCustomFieldType;
8
28
  (function (GroupCustomFieldType) {
@@ -14,7 +34,7 @@ var GroupCustomFieldType;
14
34
  GroupCustomFieldType["PHONE"] = "phone";
15
35
  GroupCustomFieldType["LINK"] = "link";
16
36
  GroupCustomFieldType["PARAGRAPH"] = "paragraph";
17
- })(GroupCustomFieldType || (exports.GroupCustomFieldType = GroupCustomFieldType = {}));
37
+ })(GroupCustomFieldType = exports.GroupCustomFieldType || (exports.GroupCustomFieldType = {}));
18
38
  var AdminPermissions;
19
39
  (function (AdminPermissions) {
20
40
  AdminPermissions["Owner"] = "owner";
@@ -22,39 +42,38 @@ var AdminPermissions;
22
42
  AdminPermissions["Rollcall"] = "rollcall";
23
43
  AdminPermissions["Members"] = "members";
24
44
  AdminPermissions["Repertoire"] = "repertoire";
25
- AdminPermissions["Purchase"] = "purchase";
26
45
  AdminPermissions["Communications"] = "communications";
27
46
  AdminPermissions["Offers"] = "offers";
28
47
  AdminPermissions["Billing"] = "billing";
29
48
  AdminPermissions["Inventory"] = "inventory";
30
- })(AdminPermissions || (exports.AdminPermissions = AdminPermissions = {}));
49
+ })(AdminPermissions = exports.AdminPermissions || (exports.AdminPermissions = {}));
31
50
  var GroupConfigKey;
32
51
  (function (GroupConfigKey) {
33
52
  GroupConfigKey["IncludesMembersToEventsWhenJoined"] = "includesMembersToEventsWhenJoined";
34
53
  GroupConfigKey["AllowEditInstruments"] = "allowEditInstruments";
35
54
  GroupConfigKey["ShowAttendanceToMembers"] = "showAttendanceToMembers";
36
55
  GroupConfigKey["AllowVerifyGeoLoc"] = "allowVerifyGeoLoc";
37
- })(GroupConfigKey || (exports.GroupConfigKey = GroupConfigKey = {}));
56
+ })(GroupConfigKey = exports.GroupConfigKey || (exports.GroupConfigKey = {}));
38
57
  var GroupConfigSitesKey;
39
58
  (function (GroupConfigSitesKey) {
40
59
  GroupConfigSitesKey["Active"] = "active";
41
60
  GroupConfigSitesKey["ShowMembers"] = "showMembers";
42
61
  GroupConfigSitesKey["ShowEvents"] = "showEvents";
43
- })(GroupConfigSitesKey || (exports.GroupConfigSitesKey = GroupConfigSitesKey = {}));
62
+ })(GroupConfigSitesKey = exports.GroupConfigSitesKey || (exports.GroupConfigSitesKey = {}));
44
63
  var GroupConfigShowAttendanceToMembers;
45
64
  (function (GroupConfigShowAttendanceToMembers) {
46
65
  GroupConfigShowAttendanceToMembers["None"] = "none";
47
66
  GroupConfigShowAttendanceToMembers["OnlyConfirmed"] = "onlyConfirmed";
48
67
  GroupConfigShowAttendanceToMembers["OnlyToSection"] = "onlyToSection";
49
68
  GroupConfigShowAttendanceToMembers["All"] = "all";
50
- })(GroupConfigShowAttendanceToMembers || (exports.GroupConfigShowAttendanceToMembers = GroupConfigShowAttendanceToMembers = {}));
69
+ })(GroupConfigShowAttendanceToMembers = exports.GroupConfigShowAttendanceToMembers || (exports.GroupConfigShowAttendanceToMembers = {}));
51
70
  var GroupStatus;
52
71
  (function (GroupStatus) {
53
72
  GroupStatus["Premium"] = "premium";
54
73
  GroupStatus["Trial"] = "trial";
55
74
  GroupStatus["Inactive"] = "inactive";
56
75
  GroupStatus["Deleted"] = "deleted";
57
- })(GroupStatus || (exports.GroupStatus = GroupStatus = {}));
76
+ })(GroupStatus = exports.GroupStatus || (exports.GroupStatus = {}));
58
77
  var GroupModuleId;
59
78
  (function (GroupModuleId) {
60
79
  GroupModuleId["Payout"] = "payout";
@@ -62,12 +81,12 @@ var GroupModuleId;
62
81
  GroupModuleId["Vacancies"] = "vacancies";
63
82
  GroupModuleId["Partnership"] = "partnership";
64
83
  GroupModuleId["MusicSchool"] = "musicSchool";
65
- })(GroupModuleId || (exports.GroupModuleId = GroupModuleId = {}));
84
+ })(GroupModuleId = exports.GroupModuleId || (exports.GroupModuleId = {}));
66
85
  var GroupModulePlan;
67
86
  (function (GroupModulePlan) {
68
87
  GroupModulePlan["Free"] = "free";
69
88
  GroupModulePlan["Paid"] = "paid";
70
- })(GroupModulePlan || (exports.GroupModulePlan = GroupModulePlan = {}));
89
+ })(GroupModulePlan = exports.GroupModulePlan || (exports.GroupModulePlan = {}));
71
90
  var SocialNetwork;
72
91
  (function (SocialNetwork) {
73
92
  SocialNetwork["Facebook"] = "facebook";
@@ -75,11 +94,11 @@ var SocialNetwork;
75
94
  SocialNetwork["Instagram"] = "instagram";
76
95
  SocialNetwork["YouTube"] = "youtube";
77
96
  SocialNetwork["Web"] = "web";
78
- })(SocialNetwork || (exports.SocialNetwork = SocialNetwork = {}));
97
+ })(SocialNetwork = exports.SocialNetwork || (exports.SocialNetwork = {}));
79
98
  var GroupRepertoireTagReserved;
80
99
  (function (GroupRepertoireTagReserved) {
81
100
  GroupRepertoireTagReserved["NoTag"] = "$noTag";
82
- })(GroupRepertoireTagReserved || (exports.GroupRepertoireTagReserved = GroupRepertoireTagReserved = {}));
101
+ })(GroupRepertoireTagReserved = exports.GroupRepertoireTagReserved || (exports.GroupRepertoireTagReserved = {}));
83
102
  var GroupRepertoireTagDefault;
84
103
  (function (GroupRepertoireTagDefault) {
85
104
  GroupRepertoireTagDefault["First"] = "repertoireTags.1";
@@ -87,4 +106,4 @@ var GroupRepertoireTagDefault;
87
106
  GroupRepertoireTagDefault["Third"] = "repertoireTags.3";
88
107
  GroupRepertoireTagDefault["Fourth"] = "repertoireTags.4";
89
108
  GroupRepertoireTagDefault["Principal"] = "repertoireTags.principal";
90
- })(GroupRepertoireTagDefault || (exports.GroupRepertoireTagDefault = GroupRepertoireTagDefault = {}));
109
+ })(GroupRepertoireTagDefault = exports.GroupRepertoireTagDefault || (exports.GroupRepertoireTagDefault = {}));
@@ -5,7 +5,5 @@ export default class Instrument {
5
5
  protected lang: LanguagesTypes;
6
6
  constructor(id: InstrumentId, lang?: LanguagesTypes);
7
7
  get name(): string;
8
- get pluralName(): string;
9
- getName(count: number): string;
10
8
  get icon(): string;
11
9
  }
@@ -2,36 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const instruments_1 = require("../../helpers/instruments");
4
4
  const lang_1 = require("../../lang");
5
- const getPluralBlock = (message, selector) => {
6
- const startToken = `${selector} {`;
7
- const start = message.indexOf(startToken);
8
- if (start === -1)
9
- return null;
10
- let depth = 1;
11
- let index = start + startToken.length;
12
- const blockStart = index;
13
- while (index < message.length) {
14
- const character = message[index];
15
- if (character === '{')
16
- depth++;
17
- if (character === '}')
18
- depth--;
19
- if (depth === 0) {
20
- return message.slice(blockStart, index);
21
- }
22
- index++;
23
- }
24
- return null;
25
- };
26
- const formatInstrumentMessage = (message, count, lang) => {
27
- if (!message.includes('{count, plural,'))
28
- return message;
29
- const pluralCategory = new Intl.PluralRules(lang).select(count);
30
- const selectedBlock = getPluralBlock(message, `=${count}`) ||
31
- getPluralBlock(message, pluralCategory) ||
32
- getPluralBlock(message, 'other');
33
- return (selectedBlock || message).replace(/#/g, String(count));
34
- };
35
5
  class Instrument {
36
6
  constructor(id, lang = lang_1.defaultLocale) {
37
7
  this.id = id;
@@ -39,14 +9,7 @@ class Instrument {
39
9
  }
40
10
  get name() {
41
11
  const translation = (0, lang_1.getTranslation)(`instruments.${this.id}`, this.lang);
42
- return translation ? formatInstrumentMessage(translation, 1, this.lang) : this.id;
43
- }
44
- get pluralName() {
45
- return this.getName(2);
46
- }
47
- getName(count) {
48
- const translation = (0, lang_1.getTranslation)(`instruments.${this.id}`, this.lang);
49
- return translation ? formatInstrumentMessage(translation, count, this.lang) : this.id;
12
+ return translation || this.id;
50
13
  }
51
14
  get icon() {
52
15
  return instruments_1.InstrumentIcons[this.id] || 'warning';
@@ -7,9 +7,9 @@ var InventoryItemStatus;
7
7
  InventoryItemStatus["Assigned"] = "assigned";
8
8
  InventoryItemStatus["OnHold"] = "onHold";
9
9
  InventoryItemStatus["Retired"] = "retired";
10
- })(InventoryItemStatus || (exports.InventoryItemStatus = InventoryItemStatus = {}));
10
+ })(InventoryItemStatus = exports.InventoryItemStatus || (exports.InventoryItemStatus = {}));
11
11
  var InventoryItemAssignmentKind;
12
12
  (function (InventoryItemAssignmentKind) {
13
13
  InventoryItemAssignmentKind["Member"] = "member";
14
14
  InventoryItemAssignmentKind["Other"] = "other";
15
- })(InventoryItemAssignmentKind || (exports.InventoryItemAssignmentKind = InventoryItemAssignmentKind = {}));
15
+ })(InventoryItemAssignmentKind = exports.InventoryItemAssignmentKind || (exports.InventoryItemAssignmentKind = {}));
@@ -12,4 +12,4 @@ var InventoryTypeCustomFieldType;
12
12
  InventoryTypeCustomFieldType["ASSIGNABLE"] = "assignable";
13
13
  InventoryTypeCustomFieldType["IMAGES"] = "images";
14
14
  InventoryTypeCustomFieldType["DOCUMENT"] = "document";
15
- })(InventoryTypeCustomFieldType || (exports.InventoryTypeCustomFieldType = InventoryTypeCustomFieldType = {}));
15
+ })(InventoryTypeCustomFieldType = exports.InventoryTypeCustomFieldType || (exports.InventoryTypeCustomFieldType = {}));
@@ -151,7 +151,7 @@ var NotificationActions;
151
151
  NotificationActions["GroupPaymentPaid"] = "groupPayment.paid";
152
152
  NotificationActions["GroupPaymentCancelled"] = "groupPayment.cancelled";
153
153
  NotificationActions["GroupPaymentAmountChanged"] = "groupPayment.amountChanged";
154
- })(NotificationActions || (exports.NotificationActions = NotificationActions = {}));
154
+ })(NotificationActions = exports.NotificationActions || (exports.NotificationActions = {}));
155
155
  var NotificationActionsFilter;
156
156
  (function (NotificationActionsFilter) {
157
157
  NotificationActionsFilter["EventCreated"] = "eventCreated";
@@ -170,7 +170,7 @@ var NotificationActionsFilter;
170
170
  NotificationActionsFilter["Offers"] = "offers";
171
171
  NotificationActionsFilter["ThemeClaims"] = "themeClaims";
172
172
  NotificationActionsFilter["Permissions"] = "permissions";
173
- })(NotificationActionsFilter || (exports.NotificationActionsFilter = NotificationActionsFilter = {}));
173
+ })(NotificationActionsFilter = exports.NotificationActionsFilter || (exports.NotificationActionsFilter = {}));
174
174
  exports.notificationByFilter = {
175
175
  [NotificationActionsFilter.EventCreated]: [
176
176
  NotificationActions.PerformanceCreate,
@@ -4,6 +4,18 @@ import { Descendant } from '../../helpers/slate';
4
4
  import { CreatedOn } from '../../helpers/types';
5
5
  import { GroupBasicData } from '../Group/types';
6
6
  import { UserBasicData } from '../User/types';
7
+ export declare enum OfferHistoryAction {
8
+ Created = "created",
9
+ Remove = "remove",
10
+ EditLocality = "edit_locality",
11
+ EditDescription = "edit_description",
12
+ EditDeadline = "edit_deadline",
13
+ SelectApplicant = "select_applicant",
14
+ CloseSelection = "close_selection",
15
+ ReopenSelection = "reopen_selection",
16
+ NewApplicant = "new_applicant",
17
+ RemoveApplicant = "remove_applicant"
18
+ }
7
19
  export declare enum OfferType {
8
20
  Group = "group",
9
21
  Event = "event"
@@ -1,8 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OfferType = void 0;
3
+ exports.OfferType = exports.OfferHistoryAction = void 0;
4
+ var OfferHistoryAction;
5
+ (function (OfferHistoryAction) {
6
+ OfferHistoryAction["Created"] = "created";
7
+ OfferHistoryAction["Remove"] = "remove";
8
+ OfferHistoryAction["EditLocality"] = "edit_locality";
9
+ OfferHistoryAction["EditDescription"] = "edit_description";
10
+ OfferHistoryAction["EditDeadline"] = "edit_deadline";
11
+ OfferHistoryAction["SelectApplicant"] = "select_applicant";
12
+ OfferHistoryAction["CloseSelection"] = "close_selection";
13
+ OfferHistoryAction["ReopenSelection"] = "reopen_selection";
14
+ OfferHistoryAction["NewApplicant"] = "new_applicant";
15
+ OfferHistoryAction["RemoveApplicant"] = "remove_applicant";
16
+ })(OfferHistoryAction = exports.OfferHistoryAction || (exports.OfferHistoryAction = {}));
4
17
  var OfferType;
5
18
  (function (OfferType) {
6
19
  OfferType["Group"] = "group";
7
20
  OfferType["Event"] = "event";
8
- })(OfferType || (exports.OfferType = OfferType = {}));
21
+ })(OfferType = exports.OfferType || (exports.OfferType = {}));
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PARTNERSHIP_COMMUNICATION_TABLE = void 0;
4
- exports.rowToPartnershipCommunicationData = rowToPartnershipCommunicationData;
3
+ exports.rowToPartnershipCommunicationData = exports.PARTNERSHIP_COMMUNICATION_TABLE = void 0;
5
4
  exports.PARTNERSHIP_COMMUNICATION_TABLE = 'partnership_communication';
6
5
  function rowToPartnershipCommunicationData(row) {
7
6
  return {
@@ -23,3 +22,4 @@ function rowToPartnershipCommunicationData(row) {
23
22
  deletedAt: row.deletedAt,
24
23
  };
25
24
  }
25
+ exports.rowToPartnershipCommunicationData = rowToPartnershipCommunicationData;
@@ -1,5 +1,4 @@
1
1
  import { GroupBasicData } from '../../Group/types';
2
- import { DocumentModel } from '../../Model';
3
2
  import { PartnershipGroupData } from './types';
4
3
  /**
5
4
  * Modelo plain-object para un enlace partnership↔group. Los datos básicos del
@@ -10,7 +9,7 @@ export default class PartnershipGroup {
10
9
  id: string;
11
10
  exists: boolean;
12
11
  private _data;
13
- constructor(input: PartnershipGroupData | DocumentModel);
12
+ constructor(data: PartnershipGroupData);
14
13
  get data(): PartnershipGroupData;
15
14
  get partnershipId(): string;
16
15
  get linkedAt(): string;
@@ -1,26 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const isDocumentModel = (value) => 'data' in value && typeof value.data === 'function';
4
3
  /**
5
4
  * Modelo plain-object para un enlace partnership↔group. Los datos básicos del
6
5
  * grupo provienen del JOIN a `group` (ver `./supabase.ts`); este modelo solo
7
6
  * añade los metadatos del enlace (`linkedAt`/`linkedBy`).
8
7
  */
9
8
  class PartnershipGroup {
10
- constructor(input) {
11
- if (isDocumentModel(input)) {
12
- const data = input.data();
13
- this.id = input.id;
14
- this._data = {
15
- ...data,
16
- id: input.id,
17
- partnershipId: data.partnershipId ?? input.ref.path.split('/')[1] ?? '',
18
- };
19
- this.exists = input.exists;
20
- return;
21
- }
22
- this.id = input.id;
23
- this._data = input;
9
+ constructor(data) {
10
+ this.id = data.id;
11
+ this._data = data;
24
12
  this.exists = true;
25
13
  }
26
14
  get data() {
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PARTNERSHIP_GROUP_TABLE = void 0;
4
- exports.rowToPartnershipGroupData = rowToPartnershipGroupData;
3
+ exports.rowToPartnershipGroupData = exports.PARTNERSHIP_GROUP_TABLE = void 0;
5
4
  exports.PARTNERSHIP_GROUP_TABLE = 'partnership_group';
6
5
  /**
7
6
  * Combina la fila de enlace `partnership_group` con la fila del grupo
@@ -23,3 +22,4 @@ function rowToPartnershipGroupData(link, group) {
23
22
  musicStyle: group.musicStyle,
24
23
  };
25
24
  }
25
+ exports.rowToPartnershipGroupData = rowToPartnershipGroupData;
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PARTNERSHIP_PARTNER_TABLE = void 0;
4
- exports.rowToPartnershipPartnerData = rowToPartnershipPartnerData;
3
+ exports.rowToPartnershipPartnerData = exports.PARTNERSHIP_PARTNER_TABLE = void 0;
5
4
  exports.PARTNERSHIP_PARTNER_TABLE = 'partnership_partner';
6
5
  function rowToPartnershipPartnerData(row) {
7
6
  return {
@@ -36,3 +35,4 @@ function rowToPartnershipPartnerData(row) {
36
35
  deletedBy: row.deletedBy,
37
36
  };
38
37
  }
38
+ exports.rowToPartnershipPartnerData = rowToPartnershipPartnerData;
@@ -6,4 +6,4 @@ var PartnerStatus;
6
6
  PartnerStatus["Active"] = "active";
7
7
  PartnerStatus["Pending"] = "pending";
8
8
  PartnerStatus["Inactive"] = "inactive";
9
- })(PartnerStatus || (exports.PartnerStatus = PartnerStatus = {}));
9
+ })(PartnerStatus = exports.PartnerStatus || (exports.PartnerStatus = {}));
@@ -1,8 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PARTNERSHIP_PAYMENT_HISTORY_TABLE = exports.PARTNERSHIP_PAYMENT_TABLE = void 0;
4
- exports.rowToPartnershipPaymentData = rowToPartnershipPaymentData;
5
- exports.historyRowToStatusItem = historyRowToStatusItem;
3
+ exports.historyRowToStatusItem = exports.rowToPartnershipPaymentData = exports.PARTNERSHIP_PAYMENT_HISTORY_TABLE = exports.PARTNERSHIP_PAYMENT_TABLE = void 0;
6
4
  exports.PARTNERSHIP_PAYMENT_TABLE = 'partnership_payment';
7
5
  exports.PARTNERSHIP_PAYMENT_HISTORY_TABLE = 'partnership_payment_history';
8
6
  /**
@@ -31,6 +29,7 @@ function rowToPartnershipPaymentData(row, statusHistory = []) {
31
29
  receiptFilePath: row.receiptFilePath,
32
30
  };
33
31
  }
32
+ exports.rowToPartnershipPaymentData = rowToPartnershipPaymentData;
34
33
  function historyRowToStatusItem(row) {
35
34
  return {
36
35
  status: row.status,
@@ -38,3 +37,4 @@ function historyRowToStatusItem(row) {
38
37
  changedBy: row.changed_by,
39
38
  };
40
39
  }
40
+ exports.historyRowToStatusItem = historyRowToStatusItem;
@@ -7,11 +7,11 @@ var PaymentMethod;
7
7
  PaymentMethod["Transfer"] = "TRANSFER";
8
8
  PaymentMethod["SEPA"] = "SEPA";
9
9
  PaymentMethod["Bizum"] = "BIZUM";
10
- })(PaymentMethod || (exports.PaymentMethod = PaymentMethod = {}));
10
+ })(PaymentMethod = exports.PaymentMethod || (exports.PaymentMethod = {}));
11
11
  var PaymentStatus;
12
12
  (function (PaymentStatus) {
13
13
  PaymentStatus["Pending"] = "pending";
14
14
  PaymentStatus["Charged"] = "charged";
15
15
  PaymentStatus["Returned"] = "returned";
16
16
  PaymentStatus["Canceled"] = "canceled";
17
- })(PaymentStatus || (exports.PaymentStatus = PaymentStatus = {}));
17
+ })(PaymentStatus = exports.PaymentStatus || (exports.PaymentStatus = {}));
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PARTNERSHIP_PLAN_TABLE = void 0;
4
- exports.rowToPartnershipPlanData = rowToPartnershipPlanData;
3
+ exports.rowToPartnershipPlanData = exports.PARTNERSHIP_PLAN_TABLE = void 0;
5
4
  exports.PARTNERSHIP_PLAN_TABLE = 'partnership_plan';
6
5
  function rowToPartnershipPlanData(row) {
7
6
  return {
@@ -20,3 +19,4 @@ function rowToPartnershipPlanData(row) {
20
19
  deletedBy: row.deletedBy,
21
20
  };
22
21
  }
22
+ exports.rowToPartnershipPlanData = rowToPartnershipPlanData;
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PARTNERSHIP_SEPA_PAYMENT_GROUP_TABLE = void 0;
4
- exports.rowToPartnershipSepaPaymentGroupData = rowToPartnershipSepaPaymentGroupData;
3
+ exports.rowToPartnershipSepaPaymentGroupData = exports.PARTNERSHIP_SEPA_PAYMENT_GROUP_TABLE = void 0;
5
4
  exports.PARTNERSHIP_SEPA_PAYMENT_GROUP_TABLE = 'partnership_sepa_payment_group';
6
5
  function rowToPartnershipSepaPaymentGroupData(row) {
7
6
  return {
@@ -16,3 +15,4 @@ function rowToPartnershipSepaPaymentGroupData(row) {
16
15
  editedBy: row.editedBy,
17
16
  };
18
17
  }
18
+ exports.rowToPartnershipSepaPaymentGroupData = rowToPartnershipSepaPaymentGroupData;
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PARTNERSHIP_SUBSCRIPTION_TABLE = void 0;
4
- exports.rowToPartnershipSubscriptionData = rowToPartnershipSubscriptionData;
3
+ exports.rowToPartnershipSubscriptionData = exports.PARTNERSHIP_SUBSCRIPTION_TABLE = void 0;
5
4
  exports.PARTNERSHIP_SUBSCRIPTION_TABLE = 'partnership_subscription';
6
5
  function rowToPartnershipSubscriptionData(row) {
7
6
  return {
@@ -21,3 +20,4 @@ function rowToPartnershipSubscriptionData(row) {
21
20
  deletedBy: row.deletedBy,
22
21
  };
23
22
  }
23
+ exports.rowToPartnershipSubscriptionData = rowToPartnershipSubscriptionData;
@@ -15,7 +15,6 @@ export default class Partnership extends PartnershipBasic<PartnershipData> {
15
15
  get paymentMethodsConfig(): PartnershipPaymentMethodsConfig | null;
16
16
  get communicationsConfig(): PartnershipCommunicationsConfig | null;
17
17
  get glissandooAdminUrl(): string;
18
- getGlissandooAdminUrl(adminHost: string): string;
19
18
  get createdAt(): FirebaseFirestore.Timestamp;
20
19
  get createdBy(): FirebaseFirestore.DocumentReference<FirebaseFirestore.DocumentData, FirebaseFirestore.DocumentData>;
21
20
  get editedAt(): FirebaseFirestore.Timestamp | null;
@@ -4,7 +4,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const collections_1 = require("../../helpers/collections");
7
- const externalUrls_1 = require("../../helpers/externalUrls");
8
7
  const glissandooAdmin_1 = require("../../helpers/glissandooAdmin");
9
8
  const types_1 = require("../../helpers/types");
10
9
  const lang_1 = require("../../lang");
@@ -53,9 +52,6 @@ class Partnership extends basic_1.default {
53
52
  get glissandooAdminUrl() {
54
53
  return (0, glissandooAdmin_1.getGlissandooAdminEntityURL)(collections_1.CollectionNames.Partnership, this.id);
55
54
  }
56
- getGlissandooAdminUrl(adminHost) {
57
- return (0, externalUrls_1.buildAdminEntityUrl)(adminHost, collections_1.CollectionNames.Partnership, this.id);
58
- }
59
55
  get createdAt() {
60
56
  return this.data.createdAt;
61
57
  }
@@ -5,4 +5,4 @@ var PartnershipRoles;
5
5
  (function (PartnershipRoles) {
6
6
  PartnershipRoles["Admin"] = "admin";
7
7
  PartnershipRoles["Partner"] = "partner";
8
- })(PartnershipRoles || (exports.PartnershipRoles = PartnershipRoles = {}));
8
+ })(PartnershipRoles = exports.PartnershipRoles || (exports.PartnershipRoles = {}));