@glissandoo/lib 1.123.2 → 1.124.0-dev.219.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 (839) hide show
  1. package/functions/auth.d.ts +22 -0
  2. package/functions/composer.d.ts +13 -0
  3. package/functions/composerComposition.d.ts +102 -0
  4. package/functions/composerNotification.d.ts +38 -0
  5. package/functions/composerPayout.d.ts +20 -0
  6. package/functions/customer.d.ts +102 -0
  7. package/functions/event.js +29 -0
  8. package/functions/eventPlayer.js +13 -0
  9. package/functions/eventRepertory.d.ts +42 -0
  10. package/functions/eventRepertory.js +16 -0
  11. package/functions/groupRepertory.d.ts +250 -0
  12. package/functions/index.d.ts +256 -0
  13. package/functions/index.js +261 -0
  14. package/functions/misc.d.ts +24 -0
  15. package/functions/regions.js +270 -0
  16. package/helpers/appScenes.js +109 -0
  17. package/helpers/auth.d.ts +21 -0
  18. package/helpers/auth.js +43 -0
  19. package/helpers/badges.js +162 -0
  20. package/helpers/catalogBridge.d.ts +121 -0
  21. package/helpers/catalogBridge.js +95 -0
  22. package/helpers/collections.js +49 -0
  23. package/helpers/communicationTemplate/index.d.ts +33 -0
  24. package/helpers/communicationTemplate/index.js +47 -0
  25. package/helpers/compositionCategories/genres.d.ts +922 -0
  26. package/helpers/compositionCategories/genres.js +940 -0
  27. package/helpers/compositionCategories/index.d.ts +2 -0
  28. package/helpers/compositionCategories/index.js +18 -0
  29. package/helpers/compositionCategories/styles.d.ts +181 -0
  30. package/helpers/compositionCategories/styles.js +197 -0
  31. package/helpers/compositionSoloistOffstageParts/index.d.ts +34 -0
  32. package/helpers/compositionSoloistOffstageParts/index.js +117 -0
  33. package/helpers/currency.d.ts +23 -0
  34. package/helpers/currency.js +346 -0
  35. package/helpers/currencyConversion.d.ts +45 -0
  36. package/helpers/currencyConversion.js +119 -0
  37. package/helpers/dataStructures/trees/index.d.ts +12 -0
  38. package/helpers/dataStructures/trees/index.js +71 -0
  39. package/helpers/dataStructures/trees/types.d.ts +14 -0
  40. package/helpers/dataStructures/trees/types.js +5 -0
  41. package/helpers/dlinks.js +12 -0
  42. package/helpers/errors.d.ts +93 -0
  43. package/helpers/errors.js +85 -0
  44. package/helpers/externalUrls.d.ts +12 -0
  45. package/helpers/externalUrls.js +40 -0
  46. package/helpers/instruments/index.d.ts +164 -0
  47. package/helpers/instruments/index.js +344 -0
  48. package/helpers/instruments/lists.d.ts +6 -0
  49. package/helpers/instruments/lists.js +21 -0
  50. package/helpers/musicStyles/index.d.ts +40 -0
  51. package/helpers/musicStyles/index.js +227 -0
  52. package/helpers/notifications/index.js +231 -0
  53. package/helpers/objects.d.ts +15 -0
  54. package/helpers/objects.js +40 -0
  55. package/helpers/paymentForecast.js +57 -0
  56. package/helpers/payoutRules.js +165 -0
  57. package/helpers/plans.js +99 -0
  58. package/helpers/rates.d.ts +13 -0
  59. package/helpers/slate.d.ts +75 -0
  60. package/helpers/slate.js +26 -0
  61. package/helpers/ts-extras/array-includes.js +26 -0
  62. package/helpers/ts-extras/as-mutable.js +20 -0
  63. package/helpers/ts-extras/assert-error.js +37 -0
  64. package/helpers/ts-extras/index.js +33 -0
  65. package/helpers/ts-extras/is-defined.js +21 -0
  66. package/helpers/ts-extras/is-empty.js +6 -0
  67. package/helpers/ts-extras/is-infinite.js +11 -0
  68. package/helpers/ts-extras/is-present.js +21 -0
  69. package/helpers/ts-extras/object-entries.d.ts +23 -0
  70. package/helpers/ts-extras/object-from-entries.d.ts +26 -0
  71. package/helpers/ts-extras/object-has-own.js +25 -0
  72. package/helpers/ts-extras/object-keys.d.ts +21 -0
  73. package/helpers/ts-extras/object-keys.js +23 -0
  74. package/helpers/ts-extras/set-has.js +27 -0
  75. package/helpers/types.d.ts +69 -0
  76. package/helpers/types.js +65 -0
  77. package/lang/ca.json +704 -0
  78. package/lang/de.json +704 -0
  79. package/lang/en.json +704 -0
  80. package/lang/es.json +704 -0
  81. package/lang/eu.json +704 -0
  82. package/lang/fr.json +704 -0
  83. package/lang/gl.json +704 -0
  84. package/lang/index.js +203 -0
  85. package/lang/it.json +704 -0
  86. package/lang/nl.json +704 -0
  87. package/lang/pt.json +704 -0
  88. package/models/Communication/types.d.ts +63 -0
  89. package/models/Communication/types.js +26 -0
  90. package/models/CompositionGenre/index.d.ts +9 -0
  91. package/models/CompositionGenre/index.js +16 -0
  92. package/models/CompositionStyle/index.d.ts +9 -0
  93. package/models/CompositionStyle/index.js +16 -0
  94. package/models/Counters/Group/Analytics/types.js +17 -0
  95. package/models/Customer/index.d.ts +30 -0
  96. package/models/Customer/index.js +79 -0
  97. package/models/Customer/types.js +7 -0
  98. package/models/Evento/Player/types.js +22 -0
  99. package/models/Evento/Repertory/types.d.ts +8 -0
  100. package/models/Evento/index.d.ts +94 -0
  101. package/models/Evento/index.js +256 -0
  102. package/models/Evento/types.d.ts +177 -0
  103. package/models/Evento/types.js +55 -0
  104. package/models/Federation/index.d.ts +28 -0
  105. package/models/Federation/index.js +85 -0
  106. package/models/Group/Analytics/types.js +13 -0
  107. package/models/Group/Payment/supabase.js +46 -0
  108. package/models/Group/Payment/types.js +38 -0
  109. package/models/Group/Player/types.js +9 -0
  110. package/models/Group/Repertory/File/Section/index.d.ts +12 -0
  111. package/models/Group/Repertory/File/Section/index.js +26 -0
  112. package/models/Group/Repertory/File/Section/types.d.ts +12 -0
  113. package/models/Group/Repertory/File/Section/types.js +7 -0
  114. package/models/Group/Repertory/File/index.d.ts +31 -0
  115. package/models/Group/Repertory/File/index.js +81 -0
  116. package/models/Group/Repertory/FilePath/index.d.ts +22 -0
  117. package/models/Group/Repertory/index.d.ts +64 -0
  118. package/models/Group/Repertory/index.js +160 -0
  119. package/models/Group/Repertory/types.d.ts +80 -0
  120. package/models/Group/Repertory/types.js +14 -0
  121. package/models/Group/index.d.ts +145 -0
  122. package/models/Group/index.js +340 -0
  123. package/models/Group/types.d.ts +272 -0
  124. package/models/Group/types.js +90 -0
  125. package/models/Instrument/fromRecord.d.ts +11 -0
  126. package/models/Instrument/fromRecord.js +33 -0
  127. package/models/Instrument/index.d.ts +11 -0
  128. package/models/Instrument/index.js +55 -0
  129. package/models/Inventory/Item/types.js +15 -0
  130. package/models/Inventory/types.js +15 -0
  131. package/models/Notification/types.js +279 -0
  132. package/models/Offer/types.d.ts +57 -0
  133. package/models/Offer/types.js +8 -0
  134. package/models/Partnership/Communication/supabase.js +25 -0
  135. package/models/Partnership/Group/index.d.ts +29 -0
  136. package/models/Partnership/Group/index.js +73 -0
  137. package/models/Partnership/Group/supabase.js +25 -0
  138. package/models/Partnership/Partner/supabase.js +38 -0
  139. package/models/Partnership/Partner/types.js +9 -0
  140. package/models/Partnership/Payment/supabase.js +40 -0
  141. package/models/Partnership/Payment/types.js +17 -0
  142. package/models/Partnership/Plan/supabase.js +22 -0
  143. package/models/Partnership/SepaPaymentGroup/supabase.js +18 -0
  144. package/models/Partnership/Subscription/supabase.js +23 -0
  145. package/models/Partnership/index.d.ts +35 -0
  146. package/models/Partnership/index.js +118 -0
  147. package/models/Partnership/types.js +8 -0
  148. package/models/Repertory/types.d.ts +44 -0
  149. package/models/Repertory/types.js +16 -0
  150. package/models/User/Group/index.js +45 -0
  151. package/models/User/index.d.ts +103 -0
  152. package/models/User/index.js +198 -0
  153. package/models/User/types.d.ts +142 -0
  154. package/models/User/types.js +58 -0
  155. package/models/WebhookEvent/types.js +9 -0
  156. package/models/supabase/Comm/index.d.ts +24 -0
  157. package/models/supabase/Comm/index.js +68 -0
  158. package/models/supabase/Comm/types.d.ts +6 -0
  159. package/models/supabase/CommHistory/index.d.ts +22 -0
  160. package/models/supabase/CommHistory/index.js +37 -0
  161. package/models/supabase/CommHistory/types.d.ts +11 -0
  162. package/models/supabase/CommHistory/types.js +9 -0
  163. package/models/supabase/Composer/Composition/Acquisition/index.d.ts +4 -0
  164. package/models/supabase/Composer/Composition/Acquisition/index.js +9 -0
  165. package/models/supabase/Composer/Composition/Acquisition/types.d.ts +36 -0
  166. package/models/supabase/Composer/Composition/Favorite/index.d.ts +4 -0
  167. package/models/supabase/Composer/Composition/Favorite/index.js +9 -0
  168. package/models/supabase/Composer/Composition/Favorite/types.d.ts +6 -0
  169. package/models/supabase/Composer/Composition/View/index.d.ts +4 -0
  170. package/models/supabase/Composer/Composition/View/index.js +9 -0
  171. package/models/supabase/Composer/Composition/View/types.d.ts +6 -0
  172. package/models/supabase/Composer/Composition/index.d.ts +5284 -0
  173. package/models/supabase/Composer/Composition/index.js +166 -0
  174. package/models/supabase/Composer/Composition/types.d.ts +96 -0
  175. package/models/supabase/Composer/Composition/types.js +32 -0
  176. package/models/supabase/Composer/Notification/index.d.ts +4 -0
  177. package/models/supabase/Composer/Notification/index.js +9 -0
  178. package/models/supabase/Composer/Notification/types.d.ts +39 -0
  179. package/models/supabase/Composer/Notification/types.js +27 -0
  180. package/models/supabase/Composer/Payout/index.d.ts +4 -0
  181. package/models/supabase/Composer/Payout/index.js +9 -0
  182. package/models/supabase/Composer/Payout/status.d.ts +1 -0
  183. package/models/supabase/Composer/Payout/types.d.ts +5 -0
  184. package/models/supabase/Composer/PerformanceAttendance/types.d.ts +4 -0
  185. package/models/supabase/Composer/index.d.ts +78 -0
  186. package/models/supabase/Composer/index.js +105 -0
  187. package/models/supabase/Composer/types.d.ts +6 -0
  188. package/models/supabase/EventHistory/index.d.ts +22 -0
  189. package/models/supabase/EventHistory/index.js +37 -0
  190. package/models/supabase/EventHistory/types.d.ts +39 -0
  191. package/models/supabase/EventHistory/types.js +37 -0
  192. package/models/supabase/GroupHistory/index.d.ts +21 -0
  193. package/models/supabase/GroupHistory/index.js +34 -0
  194. package/models/supabase/GroupHistory/types.d.ts +27 -0
  195. package/models/supabase/GroupHistory/types.js +25 -0
  196. package/models/supabase/Model/index.d.ts +10 -0
  197. package/models/supabase/Model/index.js +21 -0
  198. package/models/supabase/OfferHistory/index.d.ts +22 -0
  199. package/models/supabase/OfferHistory/index.js +37 -0
  200. package/models/supabase/OfferHistory/types.d.ts +18 -0
  201. package/models/supabase/OfferHistory/types.js +16 -0
  202. package/models/supabase/Repertoire/index.d.ts +16 -0
  203. package/models/supabase/Repertoire/index.js +43 -0
  204. package/models/supabase/Repertoire/types.d.ts +6 -0
  205. package/models/supabase/RepertoireHistory/index.d.ts +22 -0
  206. package/models/supabase/RepertoireHistory/index.js +37 -0
  207. package/models/supabase/RepertoireHistory/types.d.ts +21 -0
  208. package/models/supabase/RepertoireHistory/types.js +19 -0
  209. package/models/supabase/User/Group/index.d.ts +11 -0
  210. package/models/supabase/User/Group/index.js +30 -0
  211. package/models/supabase/User/Group/types.d.ts +6 -0
  212. package/models/supabase/User/index.d.ts +13 -0
  213. package/models/supabase/User/index.js +37 -0
  214. package/models/supabase/User/types.d.ts +6 -0
  215. package/package.json +15 -13
  216. package/types/firestore.d.ts +1746 -0
  217. package/types/firestore.js +57 -0
  218. package/types/firestore.ts +1998 -0
  219. package/types/messagebirdChatWidget.js +2 -0
  220. package/types/messagebirdChatWidget.ts +20 -0
  221. package/types/minVersion.js +2 -0
  222. package/types/minVersion.ts +4 -0
  223. package/types/payoutRule.js +34 -0
  224. package/types/payoutRule.ts +132 -0
  225. package/types/supabase/catalog.d.ts +46 -0
  226. package/types/supabase/catalog.js +2 -0
  227. package/types/supabase/catalog.ts +67 -0
  228. package/types/supabase/composerMetrics.d.ts +27 -0
  229. package/types/supabase/composerMetrics.js +2 -0
  230. package/types/supabase/composerMetrics.ts +26 -0
  231. package/types/supabase/generated.d.ts +4092 -0
  232. package/types/supabase/generated.js +34 -0
  233. package/types/supabase/generated.ts +4076 -0
  234. package/types/supabase/index.d.ts +169 -0
  235. package/types/supabase/index.js +17 -0
  236. package/types/supabase/index.ts +307 -0
  237. package/types/supabase/overwrites/index.d.ts +6 -0
  238. package/types/supabase/overwrites/index.js +2 -0
  239. package/types/supabase/overwrites/index.ts +7 -0
  240. package/types/supabase/overwrites/tables/comm/model.d.ts +4 -0
  241. package/types/supabase/overwrites/tables/comm/model.js +2 -0
  242. package/types/supabase/overwrites/tables/comm/model.ts +4 -0
  243. package/types/supabase/overwrites/tables/comm_history/index.d.ts +7 -0
  244. package/types/supabase/overwrites/tables/comm_history/index.js +2 -0
  245. package/types/supabase/overwrites/tables/comm_history/index.ts +9 -0
  246. package/types/supabase/overwrites/tables/comm_history/model.d.ts +10 -0
  247. package/types/supabase/overwrites/tables/comm_history/model.js +2 -0
  248. package/types/supabase/overwrites/tables/comm_history/model.ts +13 -0
  249. package/types/supabase/overwrites/tables/common/index.js +2 -0
  250. package/types/supabase/overwrites/tables/common/index.ts +4 -0
  251. package/types/supabase/overwrites/tables/composer/index.d.ts +9 -0
  252. package/types/supabase/overwrites/tables/composer/index.js +2 -0
  253. package/types/supabase/overwrites/tables/composer/index.ts +10 -0
  254. package/types/supabase/overwrites/tables/composer/model.d.ts +12 -0
  255. package/types/supabase/overwrites/tables/composer/model.js +2 -0
  256. package/types/supabase/overwrites/tables/composer/model.ts +15 -0
  257. package/types/supabase/overwrites/tables/composer/publicModel.d.ts +11 -0
  258. package/types/supabase/overwrites/tables/composer/publicModel.js +2 -0
  259. package/types/supabase/overwrites/tables/composer/publicModel.ts +15 -0
  260. package/types/supabase/overwrites/tables/composerComposition/index.d.ts +18 -0
  261. package/types/supabase/overwrites/tables/composerComposition/index.js +2 -0
  262. package/types/supabase/overwrites/tables/composerComposition/index.ts +24 -0
  263. package/types/supabase/overwrites/tables/composerComposition/model.d.ts +9 -0
  264. package/types/supabase/overwrites/tables/composerComposition/model.js +2 -0
  265. package/types/supabase/overwrites/tables/composerComposition/model.ts +26 -0
  266. package/types/supabase/overwrites/tables/composerComposition/publicModel.d.ts +9 -0
  267. package/types/supabase/overwrites/tables/composerComposition/publicModel.js +2 -0
  268. package/types/supabase/overwrites/tables/composerComposition/publicModel.ts +37 -0
  269. package/types/supabase/overwrites/tables/composerNotification/index.d.ts +19 -0
  270. package/types/supabase/overwrites/tables/composerNotification/index.js +2 -0
  271. package/types/supabase/overwrites/tables/composerNotification/index.ts +25 -0
  272. package/types/supabase/overwrites/tables/composerOwnedTransaction/model.d.ts +2 -0
  273. package/types/supabase/overwrites/tables/composerOwnedTransaction/model.js +2 -0
  274. package/types/supabase/overwrites/tables/composerOwnedTransaction/model.ts +3 -0
  275. package/types/supabase/overwrites/tables/composerPayout/index.d.ts +7 -0
  276. package/types/supabase/overwrites/tables/composerPayout/index.js +2 -0
  277. package/types/supabase/overwrites/tables/composerPayout/index.ts +8 -0
  278. package/types/supabase/overwrites/tables/compositionAcquisition/index.d.ts +4 -0
  279. package/types/supabase/overwrites/tables/compositionAcquisition/index.js +2 -0
  280. package/types/supabase/overwrites/tables/compositionAcquisition/index.ts +8 -0
  281. package/types/supabase/overwrites/tables/compositionAcquisition/model.d.ts +6 -0
  282. package/types/supabase/overwrites/tables/compositionAcquisition/model.js +2 -0
  283. package/types/supabase/overwrites/tables/compositionAcquisition/model.ts +11 -0
  284. package/types/supabase/overwrites/tables/compositionFavorite/index.d.ts +1 -0
  285. package/types/supabase/overwrites/tables/compositionFavorite/index.js +2 -0
  286. package/types/supabase/overwrites/tables/compositionFavorite/index.ts +2 -0
  287. package/types/supabase/overwrites/tables/compositionFavorite/model.d.ts +1 -0
  288. package/types/supabase/overwrites/tables/compositionFavorite/model.js +2 -0
  289. package/types/supabase/overwrites/tables/compositionFavorite/model.ts +1 -0
  290. package/types/supabase/overwrites/tables/compositionView/index.d.ts +1 -0
  291. package/types/supabase/overwrites/tables/compositionView/index.js +2 -0
  292. package/types/supabase/overwrites/tables/compositionView/index.ts +2 -0
  293. package/types/supabase/overwrites/tables/compositionView/model.d.ts +1 -0
  294. package/types/supabase/overwrites/tables/compositionView/model.js +2 -0
  295. package/types/supabase/overwrites/tables/compositionView/model.ts +1 -0
  296. package/types/supabase/overwrites/tables/currencyExchangeRate/index.d.ts +16 -0
  297. package/types/supabase/overwrites/tables/currencyExchangeRate/index.js +2 -0
  298. package/types/supabase/overwrites/tables/currencyExchangeRate/index.ts +18 -0
  299. package/types/supabase/overwrites/tables/event/index.d.ts +23 -0
  300. package/types/supabase/overwrites/tables/event/index.js +2 -0
  301. package/types/supabase/overwrites/tables/event/index.ts +28 -0
  302. package/types/supabase/overwrites/tables/event_history/index.d.ts +7 -0
  303. package/types/supabase/overwrites/tables/event_history/index.js +2 -0
  304. package/types/supabase/overwrites/tables/event_history/index.ts +9 -0
  305. package/types/supabase/overwrites/tables/event_history/model.d.ts +10 -0
  306. package/types/supabase/overwrites/tables/event_history/model.js +2 -0
  307. package/types/supabase/overwrites/tables/event_history/model.ts +13 -0
  308. package/types/supabase/overwrites/tables/group/index.d.ts +38 -0
  309. package/types/supabase/overwrites/tables/group/index.js +2 -0
  310. package/types/supabase/overwrites/tables/group/index.ts +45 -0
  311. package/types/supabase/overwrites/tables/group_history/index.d.ts +7 -0
  312. package/types/supabase/overwrites/tables/group_history/index.js +2 -0
  313. package/types/supabase/overwrites/tables/group_history/index.ts +9 -0
  314. package/types/supabase/overwrites/tables/group_history/model.d.ts +10 -0
  315. package/types/supabase/overwrites/tables/group_history/model.js +2 -0
  316. package/types/supabase/overwrites/tables/group_history/model.ts +13 -0
  317. package/types/supabase/overwrites/tables/offer/index.d.ts +17 -0
  318. package/types/supabase/overwrites/tables/offer/index.js +2 -0
  319. package/types/supabase/overwrites/tables/offer/index.ts +20 -0
  320. package/types/supabase/overwrites/tables/offer_history/index.d.ts +7 -0
  321. package/types/supabase/overwrites/tables/offer_history/index.js +2 -0
  322. package/types/supabase/overwrites/tables/offer_history/index.ts +9 -0
  323. package/types/supabase/overwrites/tables/offer_history/model.d.ts +10 -0
  324. package/types/supabase/overwrites/tables/offer_history/model.js +2 -0
  325. package/types/supabase/overwrites/tables/offer_history/model.ts +13 -0
  326. package/types/supabase/overwrites/tables/repertoire/model.d.ts +7 -0
  327. package/types/supabase/overwrites/tables/repertoire/model.js +2 -0
  328. package/types/supabase/overwrites/tables/repertoire/model.ts +7 -0
  329. package/types/supabase/overwrites/tables/repertoire_history/index.d.ts +7 -0
  330. package/types/supabase/overwrites/tables/repertoire_history/index.js +2 -0
  331. package/types/supabase/overwrites/tables/repertoire_history/index.ts +9 -0
  332. package/types/supabase/overwrites/tables/repertoire_history/model.d.ts +10 -0
  333. package/types/supabase/overwrites/tables/repertoire_history/model.js +2 -0
  334. package/types/supabase/overwrites/tables/repertoire_history/model.ts +13 -0
  335. package/types/supabase/overwrites/tables/user/index.d.ts +11 -0
  336. package/types/supabase/overwrites/tables/user/index.js +2 -0
  337. package/types/supabase/overwrites/tables/user/index.ts +13 -0
  338. package/.firebaserc +0 -7
  339. package/.husky/pre-commit +0 -4
  340. package/README.md +0 -70
  341. package/lib/functions/auth.d.ts +0 -20
  342. package/lib/functions/customer.d.ts +0 -98
  343. package/lib/functions/event.js +0 -29
  344. package/lib/functions/eventPlayer.js +0 -13
  345. package/lib/functions/eventRepertory.d.ts +0 -40
  346. package/lib/functions/eventRepertory.js +0 -16
  347. package/lib/functions/groupRepertory.d.ts +0 -140
  348. package/lib/functions/index.d.ts +0 -226
  349. package/lib/functions/index.js +0 -231
  350. package/lib/functions/misc.d.ts +0 -18
  351. package/lib/functions/regions.js +0 -240
  352. package/lib/helpers/appScenes.js +0 -109
  353. package/lib/helpers/auth.d.ts +0 -28
  354. package/lib/helpers/auth.js +0 -24
  355. package/lib/helpers/badges.js +0 -162
  356. package/lib/helpers/collections.js +0 -49
  357. package/lib/helpers/communicationTemplate/index.d.ts +0 -32
  358. package/lib/helpers/communicationTemplate/index.js +0 -47
  359. package/lib/helpers/currency.d.ts +0 -4
  360. package/lib/helpers/currency.js +0 -277
  361. package/lib/helpers/dlinks.js +0 -12
  362. package/lib/helpers/errors.d.ts +0 -92
  363. package/lib/helpers/errors.js +0 -84
  364. package/lib/helpers/instruments/index.d.ts +0 -147
  365. package/lib/helpers/instruments/index.js +0 -340
  366. package/lib/helpers/instruments/lists.d.ts +0 -6
  367. package/lib/helpers/instruments/lists.js +0 -21
  368. package/lib/helpers/musicStyles/index.d.ts +0 -22
  369. package/lib/helpers/musicStyles/index.js +0 -148
  370. package/lib/helpers/notifications/index.js +0 -231
  371. package/lib/helpers/objects.d.ts +0 -11
  372. package/lib/helpers/objects.js +0 -39
  373. package/lib/helpers/paymentForecast.js +0 -58
  374. package/lib/helpers/payoutRules.js +0 -166
  375. package/lib/helpers/plans.js +0 -99
  376. package/lib/helpers/rates.d.ts +0 -13
  377. package/lib/helpers/slate.d.ts +0 -16
  378. package/lib/helpers/slate.js +0 -20
  379. package/lib/helpers/ts-extras/array-includes.js +0 -27
  380. package/lib/helpers/ts-extras/as-mutable.js +0 -21
  381. package/lib/helpers/ts-extras/assert-error.js +0 -38
  382. package/lib/helpers/ts-extras/index.js +0 -33
  383. package/lib/helpers/ts-extras/is-defined.js +0 -22
  384. package/lib/helpers/ts-extras/is-empty.js +0 -7
  385. package/lib/helpers/ts-extras/is-infinite.js +0 -12
  386. package/lib/helpers/ts-extras/is-present.js +0 -22
  387. package/lib/helpers/ts-extras/object-entries.d.ts +0 -23
  388. package/lib/helpers/ts-extras/object-from-entries.d.ts +0 -26
  389. package/lib/helpers/ts-extras/object-has-own.js +0 -26
  390. package/lib/helpers/ts-extras/object-keys.d.ts +0 -21
  391. package/lib/helpers/ts-extras/object-keys.js +0 -24
  392. package/lib/helpers/ts-extras/set-has.js +0 -28
  393. package/lib/helpers/types.d.ts +0 -43
  394. package/lib/helpers/types.js +0 -45
  395. package/lib/lang/ca.json +0 -470
  396. package/lib/lang/de.json +0 -470
  397. package/lib/lang/en.json +0 -470
  398. package/lib/lang/es.json +0 -470
  399. package/lib/lang/eu.json +0 -470
  400. package/lib/lang/fr.json +0 -470
  401. package/lib/lang/gl.json +0 -470
  402. package/lib/lang/index.js +0 -202
  403. package/lib/lang/it.json +0 -470
  404. package/lib/lang/nl.json +0 -470
  405. package/lib/lang/pt.json +0 -470
  406. package/lib/models/Communication/types.d.ts +0 -79
  407. package/lib/models/Communication/types.js +0 -32
  408. package/lib/models/Counters/Group/Analytics/types.js +0 -17
  409. package/lib/models/Customer/index.d.ts +0 -30
  410. package/lib/models/Customer/index.js +0 -79
  411. package/lib/models/Customer/types.js +0 -7
  412. package/lib/models/Evento/Player/types.js +0 -22
  413. package/lib/models/Evento/Repertory/types.d.ts +0 -7
  414. package/lib/models/Evento/index.d.ts +0 -93
  415. package/lib/models/Evento/index.js +0 -255
  416. package/lib/models/Evento/types.d.ts +0 -208
  417. package/lib/models/Evento/types.js +0 -87
  418. package/lib/models/Federation/index.d.ts +0 -28
  419. package/lib/models/Federation/index.js +0 -85
  420. package/lib/models/Group/Analytics/types.js +0 -13
  421. package/lib/models/Group/Payment/supabase.js +0 -46
  422. package/lib/models/Group/Payment/types.js +0 -38
  423. package/lib/models/Group/Player/types.js +0 -9
  424. package/lib/models/Group/Repertory/File/Section/index.d.ts +0 -12
  425. package/lib/models/Group/Repertory/File/Section/index.js +0 -25
  426. package/lib/models/Group/Repertory/File/Section/types.d.ts +0 -5
  427. package/lib/models/Group/Repertory/File/Section/types.js +0 -7
  428. package/lib/models/Group/Repertory/File/index.d.ts +0 -29
  429. package/lib/models/Group/Repertory/File/index.js +0 -81
  430. package/lib/models/Group/Repertory/FilePath/index.d.ts +0 -23
  431. package/lib/models/Group/Repertory/index.d.ts +0 -56
  432. package/lib/models/Group/Repertory/index.js +0 -151
  433. package/lib/models/Group/Repertory/types.d.ts +0 -91
  434. package/lib/models/Group/Repertory/types.js +0 -24
  435. package/lib/models/Group/index.d.ts +0 -140
  436. package/lib/models/Group/index.js +0 -326
  437. package/lib/models/Group/types.d.ts +0 -291
  438. package/lib/models/Group/types.js +0 -109
  439. package/lib/models/Instrument/index.d.ts +0 -9
  440. package/lib/models/Instrument/index.js +0 -18
  441. package/lib/models/Inventory/Item/types.js +0 -15
  442. package/lib/models/Inventory/types.js +0 -15
  443. package/lib/models/Notification/types.js +0 -279
  444. package/lib/models/Offer/types.d.ts +0 -69
  445. package/lib/models/Offer/types.js +0 -21
  446. package/lib/models/Partnership/Communication/supabase.js +0 -25
  447. package/lib/models/Partnership/Group/index.d.ts +0 -28
  448. package/lib/models/Partnership/Group/index.js +0 -61
  449. package/lib/models/Partnership/Group/supabase.js +0 -25
  450. package/lib/models/Partnership/Partner/supabase.js +0 -38
  451. package/lib/models/Partnership/Partner/types.js +0 -9
  452. package/lib/models/Partnership/Payment/supabase.js +0 -40
  453. package/lib/models/Partnership/Payment/types.js +0 -17
  454. package/lib/models/Partnership/Plan/supabase.js +0 -22
  455. package/lib/models/Partnership/SepaPaymentGroup/supabase.js +0 -18
  456. package/lib/models/Partnership/Subscription/supabase.js +0 -23
  457. package/lib/models/Partnership/index.d.ts +0 -34
  458. package/lib/models/Partnership/index.js +0 -114
  459. package/lib/models/Partnership/types.js +0 -8
  460. package/lib/models/Repertory/types.d.ts +0 -32
  461. package/lib/models/Repertory/types.js +0 -16
  462. package/lib/models/User/Group/index.js +0 -46
  463. package/lib/models/User/index.d.ts +0 -103
  464. package/lib/models/User/index.js +0 -198
  465. package/lib/models/User/types.d.ts +0 -141
  466. package/lib/models/User/types.js +0 -58
  467. package/lib/models/WebhookEvent/types.js +0 -9
  468. package/lib/types/firestore.d.ts +0 -1747
  469. package/lib/types/firestore.js +0 -57
  470. package/lib/types/payoutRule.js +0 -34
  471. package/lib/types/supabase/generated.d.ts +0 -1629
  472. package/lib/types/supabase/generated.js +0 -25
  473. package/lib/types/supabase/index.d.ts +0 -29
  474. package/lib/types/supabase/overwrites/comm.d.ts +0 -18
  475. package/lib/types/supabase/overwrites/comm_history.d.ts +0 -10
  476. package/lib/types/supabase/overwrites/event.d.ts +0 -23
  477. package/lib/types/supabase/overwrites/event_history.d.ts +0 -10
  478. package/lib/types/supabase/overwrites/group.d.ts +0 -41
  479. package/lib/types/supabase/overwrites/group_history.d.ts +0 -9
  480. package/lib/types/supabase/overwrites/index.d.ts +0 -6
  481. package/lib/types/supabase/overwrites/offer.d.ts +0 -13
  482. package/lib/types/supabase/overwrites/offer_history.d.ts +0 -10
  483. package/lib/types/supabase/overwrites/repertoire.d.ts +0 -12
  484. package/lib/types/supabase/overwrites/repertoire_history.d.ts +0 -10
  485. package/scripts/setHusky.js +0 -11
  486. package/supabase/.dev.env +0 -1
  487. package/supabase/.prod.env +0 -1
  488. package/supabase/.sample.env +0 -2
  489. package/supabase/README.md +0 -126
  490. package/supabase/config.toml +0 -68
  491. package/supabase/migrations/20231117044943_remote_schema.sql +0 -228
  492. package/supabase/migrations/20231117124947_event_selection_mode_closed_at_nullable.sql +0 -1
  493. package/supabase/migrations/20231121002132_remote_schema.sql +0 -31
  494. package/supabase/migrations/20231121004031_references_nullable.sql +0 -3
  495. package/supabase/migrations/20231121014339_updated_at_trigger.sql +0 -13
  496. package/supabase/migrations/20231122111241_remote_schema.sql +0 -25
  497. package/supabase/migrations/20231124151424_snake_case_to_camel_case.sql +0 -105
  498. package/supabase/migrations/20231129133721_add_columns_for_sites.sql +0 -11
  499. package/supabase/migrations/20231129142806_promoter_can_be_null.sql +0 -3
  500. package/supabase/migrations/20231130125327_group_location_latlon.sql +0 -3
  501. package/supabase/migrations/20231130150154_error_solvings.sql +0 -9
  502. package/supabase/migrations/20240405115914_new_columns.sql +0 -9
  503. package/supabase/migrations/20240405121956_init_offer.sql +0 -81
  504. package/supabase/migrations/20240503032440_add_columns_to_offer.sql +0 -11
  505. package/supabase/migrations/20240503101641_add_column_createdOn.sql +0 -19
  506. package/supabase/migrations/20240506035104_add_groupInfo_to_offer.sql +0 -10
  507. package/supabase/migrations/20240510110328_add_relationships_to_offer.sql +0 -9
  508. package/supabase/migrations/20240514100316_offers_public.sql +0 -9
  509. package/supabase/migrations/20260506013030_add_user_mirror.sql +0 -50
  510. package/supabase/migrations/20260506013031_add_user_group_mirror.sql +0 -31
  511. package/supabase/migrations/20260529000000_init_group_payment.sql +0 -79
  512. package/supabase/migrations/20260529120000_group_payment_realtime.sql +0 -19
  513. package/supabase/migrations/20260529130000_group_payment_anon_read.sql +0 -16
  514. package/supabase/migrations/20260601000000_group_payment_concept_norm.sql +0 -20
  515. package/supabase/migrations/20260605000000_init_partnership_domain.sql +0 -333
  516. package/supabase/migrations/20260605000100_partnership_recurring_rpc.sql +0 -62
  517. package/supabase/migrations/20260606000000_partnership_payer.sql +0 -83
  518. package/supabase/migrations/20260607000000_partnership_partner_number_not_unique.sql +0 -10
  519. package/supabase/migrations/20260608000000_partnership_payment_method_bizum.sql +0 -2
  520. package/supabase/migrations/20260609000000_partnership_payment_sepa_end_to_end.sql +0 -13
  521. package/supabase/migrations/20260617000000_partnership_portal_query_indexes.sql +0 -23
  522. package/supabase/migrations/20260618000000_partnership_communication_attachments.sql +0 -5
  523. package/supabase/migrations/20260701000000_partnership_recurring_rpc_drop_ambiguous.sql +0 -29
  524. package/supabase/migrations/20260713191700_add_personal_calendar_feed.sql +0 -506
  525. package/supabase/migrations/20260714193734_add_pending_calendar_invitations.sql +0 -403
  526. package/supabase/migrations/20260714205623_add_event_datetime_end_backfill.sql +0 -64
  527. package/supabase/migrations/20260729161126_remove_calendar_event_history_dependency.sql +0 -19
  528. package/supabase/migrations/20260729161202_reconcile_production_remote_schema.sql +0 -135
  529. package/supabase/migrations/20260804120000_add_calendar_feed_token_cipher.sql +0 -9
  530. package/supabase/migrations/20260805120000_replace_usergroup_with_group_playerids.sql +0 -363
  531. package/supabase/seed.sql +0 -2973
  532. /package/{lib/functions → functions}/auth.js +0 -0
  533. /package/{lib/functions → functions}/calendarFeed.d.ts +0 -0
  534. /package/{lib/functions → functions}/calendarFeed.js +0 -0
  535. /package/{lib/functions → functions}/communication.d.ts +0 -0
  536. /package/{lib/functions → functions}/communication.js +0 -0
  537. /package/{lib/functions → functions}/communicationComment.d.ts +0 -0
  538. /package/{lib/functions → functions}/communicationComment.js +0 -0
  539. /package/{lib/functions/customer.js → functions/composer.js} +0 -0
  540. /package/{lib/functions/customerGroup.js → functions/composerComposition.js} +0 -0
  541. /package/{lib/functions/eventoPayout.js → functions/composerNotification.js} +0 -0
  542. /package/{lib/functions/federation.js → functions/composerPayout.js} +0 -0
  543. /package/{lib/functions/federationPartnership.js → functions/customer.js} +0 -0
  544. /package/{lib/functions → functions}/customerGroup.d.ts +0 -0
  545. /package/{lib/functions/group.js → functions/customerGroup.js} +0 -0
  546. /package/{lib/functions → functions}/event.d.ts +0 -0
  547. /package/{lib/functions → functions}/eventPlayer.d.ts +0 -0
  548. /package/{lib/functions → functions}/eventoPayout.d.ts +0 -0
  549. /package/{lib/functions/groupEventStage.js → functions/eventoPayout.js} +0 -0
  550. /package/{lib/functions → functions}/federation.d.ts +0 -0
  551. /package/{lib/functions/groupModule.js → functions/federation.js} +0 -0
  552. /package/{lib/functions → functions}/federationPartnership.d.ts +0 -0
  553. /package/{lib/functions/groupPayment.js → functions/federationPartnership.js} +0 -0
  554. /package/{lib/functions → functions}/group.d.ts +0 -0
  555. /package/{lib/types/supabase/overwrites → functions}/group.js +0 -0
  556. /package/{lib/functions → functions}/groupEventStage.d.ts +0 -0
  557. /package/{lib/functions/groupPayoutRule.js → functions/groupEventStage.js} +0 -0
  558. /package/{lib/functions → functions}/groupModule.d.ts +0 -0
  559. /package/{lib/functions/groupPlayer.js → functions/groupModule.js} +0 -0
  560. /package/{lib/functions → functions}/groupPayment.d.ts +0 -0
  561. /package/{lib/functions/groupRepertory.js → functions/groupPayment.js} +0 -0
  562. /package/{lib/functions → functions}/groupPayoutRule.d.ts +0 -0
  563. /package/{lib/functions/inventory.js → functions/groupPayoutRule.js} +0 -0
  564. /package/{lib/functions → functions}/groupPlayer.d.ts +0 -0
  565. /package/{lib/functions/inventoryItem.js → functions/groupPlayer.js} +0 -0
  566. /package/{lib/functions/jwt.js → functions/groupRepertory.js} +0 -0
  567. /package/{lib/functions → functions}/inventory.d.ts +0 -0
  568. /package/{lib/functions/misc.js → functions/inventory.js} +0 -0
  569. /package/{lib/functions → functions}/inventoryItem.d.ts +0 -0
  570. /package/{lib/functions/notification.js → functions/inventoryItem.js} +0 -0
  571. /package/{lib/functions → functions}/jwt.d.ts +0 -0
  572. /package/{lib/functions/offer.js → functions/jwt.js} +0 -0
  573. /package/{lib/functions/offerApplicant.js → functions/misc.js} +0 -0
  574. /package/{lib/functions → functions}/notification.d.ts +0 -0
  575. /package/{lib/functions/partnership.js → functions/notification.js} +0 -0
  576. /package/{lib/functions → functions}/offer.d.ts +0 -0
  577. /package/{lib/types/supabase/overwrites → functions}/offer.js +0 -0
  578. /package/{lib/functions → functions}/offerApplicant.d.ts +0 -0
  579. /package/{lib/functions/partnershipCommunication.js → functions/offerApplicant.js} +0 -0
  580. /package/{lib/functions → functions}/partnership.d.ts +0 -0
  581. /package/{lib/functions/partnershipGroup.js → functions/partnership.js} +0 -0
  582. /package/{lib/functions → functions}/partnershipCommunication.d.ts +0 -0
  583. /package/{lib/functions/partnershipPartner.js → functions/partnershipCommunication.js} +0 -0
  584. /package/{lib/functions → functions}/partnershipGroup.d.ts +0 -0
  585. /package/{lib/functions/partnershipPayment.js → functions/partnershipGroup.js} +0 -0
  586. /package/{lib/functions → functions}/partnershipPartner.d.ts +0 -0
  587. /package/{lib/functions/partnershipPlan.js → functions/partnershipPartner.js} +0 -0
  588. /package/{lib/functions → functions}/partnershipPayment.d.ts +0 -0
  589. /package/{lib/functions/partnershipSepaPaymentGroup.js → functions/partnershipPayment.js} +0 -0
  590. /package/{lib/functions → functions}/partnershipPlan.d.ts +0 -0
  591. /package/{lib/functions/partnershipSubscription.js → functions/partnershipPlan.js} +0 -0
  592. /package/{lib/functions → functions}/partnershipSepaPaymentGroup.d.ts +0 -0
  593. /package/{lib/functions/subscription.js → functions/partnershipSepaPaymentGroup.js} +0 -0
  594. /package/{lib/functions → functions}/partnershipSubscription.d.ts +0 -0
  595. /package/{lib/functions/user.js → functions/partnershipSubscription.js} +0 -0
  596. /package/{lib/functions → functions}/regions.d.ts +0 -0
  597. /package/{lib/functions → functions}/subscription.d.ts +0 -0
  598. /package/{lib/functions/userNotification.js → functions/subscription.js} +0 -0
  599. /package/{lib/functions → functions}/user.d.ts +0 -0
  600. /package/{lib/models/Communication/Comment/types.js → functions/user.js} +0 -0
  601. /package/{lib/functions → functions}/userNotification.d.ts +0 -0
  602. /package/{lib/models/Counters/Group/types.js → functions/userNotification.js} +0 -0
  603. /package/{lib/helpers → helpers}/appScenes.d.ts +0 -0
  604. /package/{lib/helpers → helpers}/audios.d.ts +0 -0
  605. /package/{lib/helpers → helpers}/audios.js +0 -0
  606. /package/{lib/helpers → helpers}/badges.d.ts +0 -0
  607. /package/{lib/helpers → helpers}/collections.d.ts +0 -0
  608. /package/{lib/helpers → helpers}/communicationTemplate/newGroup.d.ts +0 -0
  609. /package/{lib/helpers → helpers}/communicationTemplate/newGroup.js +0 -0
  610. /package/{lib/helpers → helpers}/communicationTemplate/newMember.d.ts +0 -0
  611. /package/{lib/helpers → helpers}/communicationTemplate/newMember.js +0 -0
  612. /package/{lib/helpers → helpers}/countries.d.ts +0 -0
  613. /package/{lib/helpers → helpers}/countries.js +0 -0
  614. /package/{lib/helpers → helpers}/dlinks.d.ts +0 -0
  615. /package/{lib/helpers → helpers}/fileSections/index.d.ts +0 -0
  616. /package/{lib/helpers → helpers}/fileSections/index.js +0 -0
  617. /package/{lib/helpers → helpers}/fileSections/orders.d.ts +0 -0
  618. /package/{lib/helpers → helpers}/fileSections/orders.js +0 -0
  619. /package/{lib/helpers → helpers}/glissandooAdmin.d.ts +0 -0
  620. /package/{lib/helpers → helpers}/glissandooAdmin.js +0 -0
  621. /package/{lib/helpers → helpers}/instruments/orders.d.ts +0 -0
  622. /package/{lib/helpers → helpers}/instruments/orders.js +0 -0
  623. /package/{lib/helpers → helpers}/musicStyles/orders.d.ts +0 -0
  624. /package/{lib/helpers → helpers}/musicStyles/orders.js +0 -0
  625. /package/{lib/helpers → helpers}/notifications/index.d.ts +0 -0
  626. /package/{lib/helpers → helpers}/notifications/placeholders.d.ts +0 -0
  627. /package/{lib/helpers → helpers}/notifications/placeholders.js +0 -0
  628. /package/{lib/helpers → helpers}/paymentForecast.d.ts +0 -0
  629. /package/{lib/helpers → helpers}/payoutRules.d.ts +0 -0
  630. /package/{lib/helpers → helpers}/plans.d.ts +0 -0
  631. /package/{lib/helpers → helpers}/rates.js +0 -0
  632. /package/{lib/helpers → helpers}/reasons.d.ts +0 -0
  633. /package/{lib/helpers → helpers}/reasons.js +0 -0
  634. /package/{lib/helpers → helpers}/styles.d.ts +0 -0
  635. /package/{lib/helpers → helpers}/styles.js +0 -0
  636. /package/{lib/helpers → helpers}/ts-extras/array-includes.d.ts +0 -0
  637. /package/{lib/helpers → helpers}/ts-extras/as-mutable.d.ts +0 -0
  638. /package/{lib/helpers → helpers}/ts-extras/assert-error.d.ts +0 -0
  639. /package/{lib/helpers → helpers}/ts-extras/index.d.ts +0 -0
  640. /package/{lib/helpers → helpers}/ts-extras/is-defined.d.ts +0 -0
  641. /package/{lib/helpers → helpers}/ts-extras/is-empty.d.ts +0 -0
  642. /package/{lib/helpers → helpers}/ts-extras/is-finite.d.ts +0 -0
  643. /package/{lib/helpers → helpers}/ts-extras/is-finite.js +0 -0
  644. /package/{lib/helpers → helpers}/ts-extras/is-infinite.d.ts +0 -0
  645. /package/{lib/helpers → helpers}/ts-extras/is-integer.d.ts +0 -0
  646. /package/{lib/helpers → helpers}/ts-extras/is-integer.js +0 -0
  647. /package/{lib/helpers → helpers}/ts-extras/is-present.d.ts +0 -0
  648. /package/{lib/helpers → helpers}/ts-extras/is-safe-integer.d.ts +0 -0
  649. /package/{lib/helpers → helpers}/ts-extras/is-safe-integer.js +0 -0
  650. /package/{lib/helpers → helpers}/ts-extras/object-entries.js +0 -0
  651. /package/{lib/helpers → helpers}/ts-extras/object-from-entries.js +0 -0
  652. /package/{lib/helpers → helpers}/ts-extras/object-has-own.d.ts +0 -0
  653. /package/{lib/helpers → helpers}/ts-extras/set-has.d.ts +0 -0
  654. /package/{lib/helpers → helpers}/utils.d.ts +0 -0
  655. /package/{lib/helpers → helpers}/utils.js +0 -0
  656. /package/{lib/index.d.ts → index.d.ts} +0 -0
  657. /package/{lib/index.js → index.js} +0 -0
  658. /package/{lib/lang → lang}/index.d.ts +0 -0
  659. /package/{lib/models → models}/Communication/Comment/index.d.ts +0 -0
  660. /package/{lib/models → models}/Communication/Comment/index.js +0 -0
  661. /package/{lib/models → models}/Communication/Comment/types.d.ts +0 -0
  662. /package/{lib/models/Counters → models/Communication/Comment}/types.js +0 -0
  663. /package/{lib/models → models}/Communication/index.d.ts +0 -0
  664. /package/{lib/models → models}/Communication/index.js +0 -0
  665. /package/{lib/models → models}/Counters/Group/Analytics/index.d.ts +0 -0
  666. /package/{lib/models → models}/Counters/Group/Analytics/index.js +0 -0
  667. /package/{lib/models → models}/Counters/Group/Analytics/types.d.ts +0 -0
  668. /package/{lib/models → models}/Counters/Group/index.d.ts +0 -0
  669. /package/{lib/models → models}/Counters/Group/index.js +0 -0
  670. /package/{lib/models → models}/Counters/Group/types.d.ts +0 -0
  671. /package/{lib/models/Customer → models/Counters}/Group/types.js +0 -0
  672. /package/{lib/models → models}/Counters/event.d.ts +0 -0
  673. /package/{lib/models → models}/Counters/event.js +0 -0
  674. /package/{lib/models → models}/Counters/index.d.ts +0 -0
  675. /package/{lib/models → models}/Counters/index.js +0 -0
  676. /package/{lib/models → models}/Counters/types.d.ts +0 -0
  677. /package/{lib/models/Evento/Repertory → models/Counters}/types.js +0 -0
  678. /package/{lib/models → models}/Customer/Group/index.d.ts +0 -0
  679. /package/{lib/models → models}/Customer/Group/index.js +0 -0
  680. /package/{lib/models → models}/Customer/Group/types.d.ts +0 -0
  681. /package/{lib/models/Federation/Partnership → models/Customer/Group}/types.js +0 -0
  682. /package/{lib/models → models}/Customer/basic.d.ts +0 -0
  683. /package/{lib/models → models}/Customer/basic.js +0 -0
  684. /package/{lib/models → models}/Customer/types.d.ts +0 -0
  685. /package/{lib/models → models}/Evento/Player/basic.d.ts +0 -0
  686. /package/{lib/models → models}/Evento/Player/basic.js +0 -0
  687. /package/{lib/models → models}/Evento/Player/index.d.ts +0 -0
  688. /package/{lib/models → models}/Evento/Player/index.js +0 -0
  689. /package/{lib/models → models}/Evento/Player/types.d.ts +0 -0
  690. /package/{lib/models → models}/Evento/Repertory/index.d.ts +0 -0
  691. /package/{lib/models → models}/Evento/Repertory/index.js +0 -0
  692. /package/{lib/models/Federation → models/Evento/Repertory}/types.js +0 -0
  693. /package/{lib/models → models}/Evento/basic.d.ts +0 -0
  694. /package/{lib/models → models}/Evento/basic.js +0 -0
  695. /package/{lib/models → models}/Evento/promoter.d.ts +0 -0
  696. /package/{lib/models → models}/Evento/promoter.js +0 -0
  697. /package/{lib/models → models}/Evento/tiny.d.ts +0 -0
  698. /package/{lib/models → models}/Evento/tiny.js +0 -0
  699. /package/{lib/models → models}/Federation/Partnership/index.d.ts +0 -0
  700. /package/{lib/models → models}/Federation/Partnership/index.js +0 -0
  701. /package/{lib/models → models}/Federation/Partnership/types.d.ts +0 -0
  702. /package/{lib/models/Group/Event → models/Federation/Partnership}/types.js +0 -0
  703. /package/{lib/models → models}/Federation/types.d.ts +0 -0
  704. /package/{lib/models/Group/Player/Event → models/Federation}/types.js +0 -0
  705. /package/{lib/models → models}/Group/Analytics/index.d.ts +0 -0
  706. /package/{lib/models → models}/Group/Analytics/index.js +0 -0
  707. /package/{lib/models → models}/Group/Analytics/types.d.ts +0 -0
  708. /package/{lib/models → models}/Group/Event/index.d.ts +0 -0
  709. /package/{lib/models → models}/Group/Event/index.js +0 -0
  710. /package/{lib/models → models}/Group/Event/types.d.ts +0 -0
  711. /package/{lib/models/Group/Player/Log → models/Group/Event}/types.js +0 -0
  712. /package/{lib/models → models}/Group/Payment/index.d.ts +0 -0
  713. /package/{lib/models → models}/Group/Payment/index.js +0 -0
  714. /package/{lib/models → models}/Group/Payment/supabase.d.ts +0 -0
  715. /package/{lib/models → models}/Group/Payment/types.d.ts +0 -0
  716. /package/{lib/models → models}/Group/Player/Event/index.d.ts +0 -0
  717. /package/{lib/models → models}/Group/Player/Event/index.js +0 -0
  718. /package/{lib/models → models}/Group/Player/Event/types.d.ts +0 -0
  719. /package/{lib/models/Group/Repertory/File → models/Group/Player/Event}/types.js +0 -0
  720. /package/{lib/models → models}/Group/Player/Log/index.d.ts +0 -0
  721. /package/{lib/models → models}/Group/Player/Log/index.js +0 -0
  722. /package/{lib/models → models}/Group/Player/Log/types.d.ts +0 -0
  723. /package/{lib/models/Group/StageTemplate → models/Group/Player/Log}/types.js +0 -0
  724. /package/{lib/models → models}/Group/Player/index.d.ts +0 -0
  725. /package/{lib/models → models}/Group/Player/index.js +0 -0
  726. /package/{lib/models → models}/Group/Player/types.d.ts +0 -0
  727. /package/{lib/models → models}/Group/Repertory/File/types.d.ts +0 -0
  728. /package/{lib/models/Metrics → models/Group/Repertory/File}/types.js +0 -0
  729. /package/{lib/models → models}/Group/Repertory/FilePath/index.js +0 -0
  730. /package/{lib/models → models}/Group/StageTemplate/index.d.ts +0 -0
  731. /package/{lib/models → models}/Group/StageTemplate/index.js +0 -0
  732. /package/{lib/models → models}/Group/StageTemplate/types.d.ts +0 -0
  733. /package/{lib/models/Offer/Applicant → models/Group/StageTemplate}/types.js +0 -0
  734. /package/{lib/models → models}/Group/basic.d.ts +0 -0
  735. /package/{lib/models → models}/Group/basic.js +0 -0
  736. /package/{lib/models → models}/Instrument/group.d.ts +0 -0
  737. /package/{lib/models → models}/Instrument/group.js +0 -0
  738. /package/{lib/models → models}/Inventory/Item/index.d.ts +0 -0
  739. /package/{lib/models → models}/Inventory/Item/index.js +0 -0
  740. /package/{lib/models → models}/Inventory/Item/types.d.ts +0 -0
  741. /package/{lib/models → models}/Inventory/index.d.ts +0 -0
  742. /package/{lib/models → models}/Inventory/index.js +0 -0
  743. /package/{lib/models → models}/Inventory/types.d.ts +0 -0
  744. /package/{lib/models → models}/Metrics/index.d.ts +0 -0
  745. /package/{lib/models → models}/Metrics/index.js +0 -0
  746. /package/{lib/models → models}/Metrics/types.d.ts +0 -0
  747. /package/{lib/models/Partnership/Communication → models/Metrics}/types.js +0 -0
  748. /package/{lib/models → models}/Model/index.d.ts +0 -0
  749. /package/{lib/models → models}/Model/index.js +0 -0
  750. /package/{lib/models → models}/Model/lang.d.ts +0 -0
  751. /package/{lib/models → models}/Model/lang.js +0 -0
  752. /package/{lib/models → models}/MusicStyle/index.d.ts +0 -0
  753. /package/{lib/models → models}/MusicStyle/index.js +0 -0
  754. /package/{lib/models → models}/Notification/index.d.ts +0 -0
  755. /package/{lib/models → models}/Notification/index.js +0 -0
  756. /package/{lib/models → models}/Notification/types.d.ts +0 -0
  757. /package/{lib/models → models}/Offer/Applicant/index.d.ts +0 -0
  758. /package/{lib/models → models}/Offer/Applicant/index.js +0 -0
  759. /package/{lib/models → models}/Offer/Applicant/types.d.ts +0 -0
  760. /package/{lib/models/Partnership/Group → models/Offer/Applicant}/types.js +0 -0
  761. /package/{lib/models → models}/Offer/index.d.ts +0 -0
  762. /package/{lib/models → models}/Offer/index.js +0 -0
  763. /package/{lib/models → models}/Partnership/Communication/index.d.ts +0 -0
  764. /package/{lib/models → models}/Partnership/Communication/index.js +0 -0
  765. /package/{lib/models → models}/Partnership/Communication/supabase.d.ts +0 -0
  766. /package/{lib/models → models}/Partnership/Communication/types.d.ts +0 -0
  767. /package/{lib/models/Partnership/Plan → models/Partnership/Communication}/types.js +0 -0
  768. /package/{lib/models → models}/Partnership/Group/supabase.d.ts +0 -0
  769. /package/{lib/models → models}/Partnership/Group/types.d.ts +0 -0
  770. /package/{lib/models/Partnership/SepaPaymentGroup → models/Partnership/Group}/types.js +0 -0
  771. /package/{lib/models → models}/Partnership/Partner/index.d.ts +0 -0
  772. /package/{lib/models → models}/Partnership/Partner/index.js +0 -0
  773. /package/{lib/models → models}/Partnership/Partner/supabase.d.ts +0 -0
  774. /package/{lib/models → models}/Partnership/Partner/types.d.ts +0 -0
  775. /package/{lib/models → models}/Partnership/Payment/index.d.ts +0 -0
  776. /package/{lib/models → models}/Partnership/Payment/index.js +0 -0
  777. /package/{lib/models → models}/Partnership/Payment/supabase.d.ts +0 -0
  778. /package/{lib/models → models}/Partnership/Payment/types.d.ts +0 -0
  779. /package/{lib/models → models}/Partnership/Plan/index.d.ts +0 -0
  780. /package/{lib/models → models}/Partnership/Plan/index.js +0 -0
  781. /package/{lib/models → models}/Partnership/Plan/supabase.d.ts +0 -0
  782. /package/{lib/models → models}/Partnership/Plan/types.d.ts +0 -0
  783. /package/{lib/models/Partnership/Subscription → models/Partnership/Plan}/types.js +0 -0
  784. /package/{lib/models → models}/Partnership/SepaPaymentGroup/index.d.ts +0 -0
  785. /package/{lib/models → models}/Partnership/SepaPaymentGroup/index.js +0 -0
  786. /package/{lib/models → models}/Partnership/SepaPaymentGroup/supabase.d.ts +0 -0
  787. /package/{lib/models → models}/Partnership/SepaPaymentGroup/types.d.ts +0 -0
  788. /package/{lib/models/Player → models/Partnership/SepaPaymentGroup}/types.js +0 -0
  789. /package/{lib/models → models}/Partnership/Subscription/index.d.ts +0 -0
  790. /package/{lib/models → models}/Partnership/Subscription/index.js +0 -0
  791. /package/{lib/models → models}/Partnership/Subscription/supabase.d.ts +0 -0
  792. /package/{lib/models → models}/Partnership/Subscription/types.d.ts +0 -0
  793. /package/{lib/models/User/Group → models/Partnership/Subscription}/types.js +0 -0
  794. /package/{lib/models → models}/Partnership/basic.d.ts +0 -0
  795. /package/{lib/models → models}/Partnership/basic.js +0 -0
  796. /package/{lib/models → models}/Partnership/types.d.ts +0 -0
  797. /package/{lib/models → models}/Player/basic.d.ts +0 -0
  798. /package/{lib/models → models}/Player/basic.js +0 -0
  799. /package/{lib/models → models}/Player/types.d.ts +0 -0
  800. /package/{lib/models/User/Notification → models/Player}/types.js +0 -0
  801. /package/{lib/models → models}/Repertory/basic.d.ts +0 -0
  802. /package/{lib/models → models}/Repertory/basic.js +0 -0
  803. /package/{lib/models → models}/User/Group/index.d.ts +0 -0
  804. /package/{lib/models → models}/User/Group/types.d.ts +0 -0
  805. /package/{lib/models/User/OfferAlarm → models/User/Group}/types.js +0 -0
  806. /package/{lib/models → models}/User/Notification/index.d.ts +0 -0
  807. /package/{lib/models → models}/User/Notification/index.js +0 -0
  808. /package/{lib/models → models}/User/Notification/types.d.ts +0 -0
  809. /package/{lib/models/User/Partnership → models/User/Notification}/types.js +0 -0
  810. /package/{lib/models → models}/User/OfferAlarm/index.d.ts +0 -0
  811. /package/{lib/models → models}/User/OfferAlarm/index.js +0 -0
  812. /package/{lib/models → models}/User/OfferAlarm/types.d.ts +0 -0
  813. /package/{lib/types/messagebirdChatWidget.js → models/User/OfferAlarm/types.js} +0 -0
  814. /package/{lib/models → models}/User/Partnership/index.d.ts +0 -0
  815. /package/{lib/models → models}/User/Partnership/index.js +0 -0
  816. /package/{lib/models → models}/User/Partnership/types.d.ts +0 -0
  817. /package/{lib/types/minVersion.js → models/User/Partnership/types.js} +0 -0
  818. /package/{lib/models → models}/User/basic.d.ts +0 -0
  819. /package/{lib/models → models}/User/basic.js +0 -0
  820. /package/{lib/models → models}/User/extended.d.ts +0 -0
  821. /package/{lib/models → models}/User/extended.js +0 -0
  822. /package/{lib/models → models}/WebhookEvent/index.d.ts +0 -0
  823. /package/{lib/models → models}/WebhookEvent/index.js +0 -0
  824. /package/{lib/models → models}/WebhookEvent/types.d.ts +0 -0
  825. /package/{lib/types/supabase/index.js → models/supabase/Comm/types.js} +0 -0
  826. /package/{lib/types/supabase/overwrites/comm.js → models/supabase/Composer/Composition/Acquisition/types.js} +0 -0
  827. /package/{lib/types/supabase/overwrites/comm_history.js → models/supabase/Composer/Composition/Favorite/types.js} +0 -0
  828. /package/{lib/types/supabase/overwrites/event.js → models/supabase/Composer/Composition/View/types.js} +0 -0
  829. /package/{lib/types/supabase/overwrites/event_history.js → models/supabase/Composer/Payout/status.js} +0 -0
  830. /package/{lib/types/supabase/overwrites/group_history.js → models/supabase/Composer/Payout/types.js} +0 -0
  831. /package/{lib/types/supabase/overwrites/index.js → models/supabase/Composer/PerformanceAttendance/types.js} +0 -0
  832. /package/{lib/types/supabase/overwrites/offer_history.js → models/supabase/Composer/types.js} +0 -0
  833. /package/{lib/types/supabase/overwrites/repertoire.js → models/supabase/Repertoire/types.js} +0 -0
  834. /package/{lib/types/supabase/overwrites/repertoire_history.js → models/supabase/User/Group/types.js} +0 -0
  835. /package/{lib/types/supabase/overwrites/utils.js → models/supabase/User/types.js} +0 -0
  836. /package/{lib/types → types}/messagebirdChatWidget.d.ts +0 -0
  837. /package/{lib/types → types}/minVersion.d.ts +0 -0
  838. /package/{lib/types → types}/payoutRule.d.ts +0 -0
  839. /package/{lib/types/supabase/overwrites/utils.d.ts → types/supabase/overwrites/tables/common/index.d.ts} +0 -0
@@ -0,0 +1,231 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.userNotificationSettings = exports.notificationMultiplePractice = exports.notificationSinglePractice = exports.notificationOther = exports.notificationPerformance = exports.editScopeToAction = exports.NotificationEventActions = exports.notificationActionsBadges = void 0;
4
+ const event_1 = require("../../functions/event");
5
+ const types_1 = require("../../models/Notification/types");
6
+ const types_2 = require("../../models/User/types");
7
+ const badges_1 = require("../badges");
8
+ exports.notificationActionsBadges = {
9
+ [badges_1.BadgesTypes.AccPerformances]: {
10
+ firstLevel: types_1.NotificationActions.BadgeAccPerformancesFirstLevel,
11
+ upLevel: types_1.NotificationActions.BadgeAccPerformancesUpLevel,
12
+ },
13
+ [badges_1.BadgesTypes.AccPractices]: {
14
+ firstLevel: types_1.NotificationActions.BadgeAccPracticesFirstLevel,
15
+ upLevel: types_1.NotificationActions.BadgeAccPracticesUpLevel,
16
+ },
17
+ [badges_1.BadgesTypes.AnswerEvents]: {
18
+ firstLevel: types_1.NotificationActions.BadgeAnswerEventsFirstLevel,
19
+ upLevel: types_1.NotificationActions.BadgeAnswerEventsUpLevel,
20
+ },
21
+ [badges_1.BadgesTypes.StrikePractices]: {
22
+ firstLevel: types_1.NotificationActions.BadgeStrikePracticesFirstLevel,
23
+ upLevel: types_1.NotificationActions.BadgeStrikePracticesUpLevel,
24
+ },
25
+ };
26
+ var NotificationEventActions;
27
+ (function (NotificationEventActions) {
28
+ NotificationEventActions["Create"] = "create";
29
+ NotificationEventActions["Cancel"] = "cancel";
30
+ NotificationEventActions["EditAttendance"] = "editAttendance";
31
+ NotificationEventActions["EditComments"] = "editComments";
32
+ NotificationEventActions["EditDatetime"] = "editDatetime";
33
+ NotificationEventActions["EditLocality"] = "editLocality";
34
+ NotificationEventActions["EditRepertory"] = "editRepertory";
35
+ NotificationEventActions["EditStage"] = "editStage";
36
+ NotificationEventActions["EditTitle"] = "editTitle";
37
+ NotificationEventActions["EditResponseDeadline"] = "editResponseDeadline";
38
+ NotificationEventActions["EditImages"] = "editImages";
39
+ NotificationEventActions["EditAttachments"] = "editAttachments";
40
+ NotificationEventActions["EditQuestions"] = "editQuestions";
41
+ NotificationEventActions["EditReminders"] = "editReminders";
42
+ NotificationEventActions["AddPlayers"] = "addPlayers";
43
+ NotificationEventActions["RemovePlayers"] = "removePlayers";
44
+ NotificationEventActions["ConfirmAssistance"] = "confirmAssistance";
45
+ NotificationEventActions["DeclineAssistance"] = "declineAssistance";
46
+ NotificationEventActions["ConfirmAssistanceByAdmin"] = "confirmAssistanceByAdmin";
47
+ NotificationEventActions["DeclineAssistanceByAdmin"] = "declineAssistanceByAdmin";
48
+ NotificationEventActions["ConfirmInterest"] = "confirmInterest";
49
+ NotificationEventActions["LoseInterest"] = "loseInterest";
50
+ NotificationEventActions["ConfirmInterestByAdmin"] = "confirmInterestByAdmin";
51
+ NotificationEventActions["LoseInterestByAdmin"] = "loseInterestByAdmin";
52
+ NotificationEventActions["SelectionSelected"] = "selectionSelected";
53
+ NotificationEventActions["SelectionDeselected"] = "selectionDeselected";
54
+ NotificationEventActions["Reminder"] = "reminder";
55
+ NotificationEventActions["ReminderDatetimeToConfirmed"] = "reminderDatetimeToConfirmed";
56
+ NotificationEventActions["ReminderDeadlineSoonToPending"] = "reminderDeadlineSoonToPending";
57
+ NotificationEventActions["ReminderDeadlineEndedInSelectionModeOpen"] = "reminderDeadlineEndedInSelectionModeOpenEvent";
58
+ NotificationEventActions["ReminderDeadlineEndedInSelectionModeClosedOrNotActive"] = "reminderDeadlineEndedInSelectionModeClosedOrNotActiveEvent";
59
+ NotificationEventActions["ReminderRollcall"] = "reminderRollcall";
60
+ })(NotificationEventActions || (exports.NotificationEventActions = NotificationEventActions = {}));
61
+ exports.editScopeToAction = {
62
+ [event_1.EventoFbFunctionsTypes.EditScope.Title]: NotificationEventActions.EditTitle,
63
+ [event_1.EventoFbFunctionsTypes.EditScope.Locality]: NotificationEventActions.EditLocality,
64
+ [event_1.EventoFbFunctionsTypes.EditScope.Comments]: NotificationEventActions.EditComments,
65
+ [event_1.EventoFbFunctionsTypes.EditScope.Attendance]: NotificationEventActions.EditAttendance,
66
+ [event_1.EventoFbFunctionsTypes.EditScope.Stage]: NotificationEventActions.EditStage,
67
+ [event_1.EventoFbFunctionsTypes.EditScope.Images]: NotificationEventActions.EditImages,
68
+ [event_1.EventoFbFunctionsTypes.EditScope.Attachments]: NotificationEventActions.EditAttachments,
69
+ [event_1.EventoFbFunctionsTypes.EditScope.Questions]: NotificationEventActions.EditQuestions,
70
+ [event_1.EventoFbFunctionsTypes.EditScope.Reminders]: NotificationEventActions.EditQuestions,
71
+ };
72
+ exports.notificationPerformance = {
73
+ [NotificationEventActions.Cancel]: types_1.NotificationActions.PerformanceCancel,
74
+ [NotificationEventActions.Create]: types_1.NotificationActions.PerformanceCreate,
75
+ [NotificationEventActions.EditAttendance]: types_1.NotificationActions.PerformanceEditAttendance,
76
+ [NotificationEventActions.EditComments]: types_1.NotificationActions.PerformanceEditComments,
77
+ [NotificationEventActions.EditDatetime]: types_1.NotificationActions.PerformanceEditDatetime,
78
+ [NotificationEventActions.EditLocality]: types_1.NotificationActions.PerformanceEditLocality,
79
+ [NotificationEventActions.EditRepertory]: types_1.NotificationActions.PerformanceEditRepertory,
80
+ [NotificationEventActions.EditTitle]: types_1.NotificationActions.PerformanceEditTitle,
81
+ [NotificationEventActions.EditStage]: types_1.NotificationActions.PerformanceEditStage,
82
+ [NotificationEventActions.EditQuestions]: types_1.NotificationActions.PerformanceEditQuestions,
83
+ [NotificationEventActions.EditResponseDeadline]: types_1.NotificationActions.PerformanceEditResponseDeadline,
84
+ [NotificationEventActions.EditImages]: types_1.NotificationActions.PerformanceEditImages,
85
+ [NotificationEventActions.EditAttachments]: types_1.NotificationActions.PerformanceEditAttachments,
86
+ [NotificationEventActions.EditReminders]: types_1.NotificationActions.PerformanceEditReminders,
87
+ [NotificationEventActions.AddPlayers]: types_1.NotificationActions.PerformancePlayersAdd,
88
+ [NotificationEventActions.RemovePlayers]: types_1.NotificationActions.PerformancePlayersRemove,
89
+ [NotificationEventActions.ConfirmAssistance]: types_1.NotificationActions.PerformanceAssistanceConfirm,
90
+ [NotificationEventActions.DeclineAssistance]: types_1.NotificationActions.PerformanceAssistanceDecline,
91
+ [NotificationEventActions.ConfirmAssistanceByAdmin]: types_1.NotificationActions.PerformanceAssistanceConfirmByAdmin,
92
+ [NotificationEventActions.DeclineAssistanceByAdmin]: types_1.NotificationActions.PerformanceAssistanceDeclineByAdmin,
93
+ [NotificationEventActions.ConfirmInterest]: types_1.NotificationActions.PerformanceInterestConfirm,
94
+ [NotificationEventActions.LoseInterest]: types_1.NotificationActions.PerformanceInterestLose,
95
+ [NotificationEventActions.ConfirmInterestByAdmin]: types_1.NotificationActions.PerformanceInterestConfirmByAdmin,
96
+ [NotificationEventActions.LoseInterestByAdmin]: types_1.NotificationActions.PerformanceInterestLoseByAdmin,
97
+ [NotificationEventActions.SelectionSelected]: types_1.NotificationActions.PerformanceSelectionSelect,
98
+ [NotificationEventActions.SelectionDeselected]: types_1.NotificationActions.PerformanceSelectionDeselect,
99
+ [NotificationEventActions.Reminder]: types_1.NotificationActions.PerformanceReminder,
100
+ [NotificationEventActions.ReminderDatetimeToConfirmed]: types_1.NotificationActions.PerformanceReminderDatetimeToConfirmed,
101
+ [NotificationEventActions.ReminderDeadlineSoonToPending]: types_1.NotificationActions.PerformanceReminderDeadlineSoonToPending,
102
+ [NotificationEventActions.ReminderDeadlineEndedInSelectionModeOpen]: types_1.NotificationActions.PerformanceReminderDeadlineEndedInSelectionModeOpen,
103
+ [NotificationEventActions.ReminderDeadlineEndedInSelectionModeClosedOrNotActive]: types_1.NotificationActions.PerformanceReminderDeadlineEndedInSelectionModeClosedOrNotActive,
104
+ [NotificationEventActions.ReminderRollcall]: types_1.NotificationActions.PerformanceRollCallReminder,
105
+ };
106
+ exports.notificationOther = {
107
+ [NotificationEventActions.Cancel]: types_1.NotificationActions.OtherCancel,
108
+ [NotificationEventActions.Create]: types_1.NotificationActions.OtherCreate,
109
+ [NotificationEventActions.EditAttendance]: types_1.NotificationActions.OtherEditAttendance,
110
+ [NotificationEventActions.EditComments]: types_1.NotificationActions.OtherEditComments,
111
+ [NotificationEventActions.EditDatetime]: types_1.NotificationActions.OtherEditDatetime,
112
+ [NotificationEventActions.EditLocality]: types_1.NotificationActions.OtherEditLocality,
113
+ [NotificationEventActions.EditRepertory]: types_1.NotificationActions.OtherEditRepertory,
114
+ [NotificationEventActions.EditTitle]: types_1.NotificationActions.OtherEditTitle,
115
+ [NotificationEventActions.EditStage]: types_1.NotificationActions.OtherEditStage,
116
+ [NotificationEventActions.EditQuestions]: types_1.NotificationActions.OtherEditQuestions,
117
+ [NotificationEventActions.EditResponseDeadline]: types_1.NotificationActions.OtherEditResponseDeadline,
118
+ [NotificationEventActions.EditImages]: types_1.NotificationActions.OtherEditImages,
119
+ [NotificationEventActions.EditAttachments]: types_1.NotificationActions.OtherEditAttachments,
120
+ [NotificationEventActions.EditReminders]: types_1.NotificationActions.OtherEditReminders,
121
+ [NotificationEventActions.AddPlayers]: types_1.NotificationActions.OtherPlayersAdd,
122
+ [NotificationEventActions.RemovePlayers]: types_1.NotificationActions.OtherPlayersRemove,
123
+ [NotificationEventActions.ConfirmAssistance]: types_1.NotificationActions.OtherAssistanceConfirm,
124
+ [NotificationEventActions.DeclineAssistance]: types_1.NotificationActions.OtherAssistanceDecline,
125
+ [NotificationEventActions.ConfirmAssistanceByAdmin]: types_1.NotificationActions.OtherAssistanceConfirmByAdmin,
126
+ [NotificationEventActions.DeclineAssistanceByAdmin]: types_1.NotificationActions.OtherAssistanceDeclineByAdmin,
127
+ [NotificationEventActions.ConfirmInterest]: types_1.NotificationActions.OtherInterestConfirm,
128
+ [NotificationEventActions.LoseInterest]: types_1.NotificationActions.OtherInterestLose,
129
+ [NotificationEventActions.ConfirmInterestByAdmin]: types_1.NotificationActions.OtherInterestConfirmByAdmin,
130
+ [NotificationEventActions.LoseInterestByAdmin]: types_1.NotificationActions.OtherInterestLoseByAdmin,
131
+ [NotificationEventActions.SelectionSelected]: types_1.NotificationActions.OtherSelectionSelect,
132
+ [NotificationEventActions.SelectionDeselected]: types_1.NotificationActions.OtherSelectionDeselect,
133
+ [NotificationEventActions.Reminder]: types_1.NotificationActions.OtherReminder,
134
+ [NotificationEventActions.ReminderDatetimeToConfirmed]: types_1.NotificationActions.OtherReminderDatetimeToConfirmed,
135
+ [NotificationEventActions.ReminderDeadlineSoonToPending]: types_1.NotificationActions.OtherReminderDeadlineSoonToPending,
136
+ [NotificationEventActions.ReminderDeadlineEndedInSelectionModeOpen]: types_1.NotificationActions.OtherReminderDeadlineEndedInSelectionModeOpen,
137
+ [NotificationEventActions.ReminderDeadlineEndedInSelectionModeClosedOrNotActive]: types_1.NotificationActions.OtherReminderDeadlineEndedInSelectionModeClosedOrNotActive,
138
+ [NotificationEventActions.ReminderRollcall]: types_1.NotificationActions.OtherRollCallReminder,
139
+ };
140
+ exports.notificationSinglePractice = {
141
+ [NotificationEventActions.Cancel]: types_1.NotificationActions.PracticeCancel,
142
+ [NotificationEventActions.Create]: types_1.NotificationActions.PracticeCreate,
143
+ [NotificationEventActions.EditAttendance]: types_1.NotificationActions.PracticeEditAttendance,
144
+ [NotificationEventActions.EditComments]: types_1.NotificationActions.PracticeEditComments,
145
+ [NotificationEventActions.EditDatetime]: types_1.NotificationActions.PracticeEditDatetime,
146
+ [NotificationEventActions.EditLocality]: types_1.NotificationActions.PracticeEditLocality,
147
+ [NotificationEventActions.EditRepertory]: types_1.NotificationActions.PracticeEditRepertory,
148
+ [NotificationEventActions.EditTitle]: types_1.NotificationActions.PracticeEditTitle,
149
+ [NotificationEventActions.EditStage]: types_1.NotificationActions.PracticeEditStage,
150
+ [NotificationEventActions.EditResponseDeadline]: types_1.NotificationActions.PracticeEditResponseDeadline,
151
+ [NotificationEventActions.EditImages]: types_1.NotificationActions.PracticeEditImages,
152
+ [NotificationEventActions.EditAttachments]: types_1.NotificationActions.PracticeEditAttachments,
153
+ [NotificationEventActions.EditQuestions]: types_1.NotificationActions.PracticeEditQuestions,
154
+ [NotificationEventActions.EditReminders]: types_1.NotificationActions.PracticeEditReminders,
155
+ [NotificationEventActions.AddPlayers]: types_1.NotificationActions.PracticePlayersAdd,
156
+ [NotificationEventActions.RemovePlayers]: types_1.NotificationActions.PracticePlayersRemove,
157
+ [NotificationEventActions.ConfirmAssistance]: types_1.NotificationActions.PracticeAssistanceConfirm,
158
+ [NotificationEventActions.DeclineAssistance]: types_1.NotificationActions.PracticeAssistanceDecline,
159
+ [NotificationEventActions.ConfirmAssistanceByAdmin]: types_1.NotificationActions.PracticeAssistanceConfirmByAdmin,
160
+ [NotificationEventActions.DeclineAssistanceByAdmin]: types_1.NotificationActions.PracticeAssistanceDeclineByAdmin,
161
+ [NotificationEventActions.ConfirmInterest]: types_1.NotificationActions.PracticeInterestConfirm,
162
+ [NotificationEventActions.LoseInterest]: types_1.NotificationActions.PracticeInterestLose,
163
+ [NotificationEventActions.ConfirmInterestByAdmin]: types_1.NotificationActions.PracticeInterestConfirmByAdmin,
164
+ [NotificationEventActions.LoseInterestByAdmin]: types_1.NotificationActions.PracticeInterestLoseByAdmin,
165
+ [NotificationEventActions.SelectionSelected]: types_1.NotificationActions.PracticeSelectionSelect,
166
+ [NotificationEventActions.SelectionDeselected]: types_1.NotificationActions.PracticeSelectionDeselect,
167
+ [NotificationEventActions.Reminder]: types_1.NotificationActions.PracticeReminder,
168
+ [NotificationEventActions.ReminderDatetimeToConfirmed]: types_1.NotificationActions.PracticeReminderDatetimeToConfirmed,
169
+ [NotificationEventActions.ReminderDeadlineSoonToPending]: types_1.NotificationActions.PracticeReminderDeadlineSoonToPending,
170
+ [NotificationEventActions.ReminderDeadlineEndedInSelectionModeOpen]: types_1.NotificationActions.PracticeReminderDeadlineEndedInSelectionModeOpen,
171
+ [NotificationEventActions.ReminderDeadlineEndedInSelectionModeClosedOrNotActive]: types_1.NotificationActions.PracticeReminderDeadlineEndedInSelectionModeClosedOrNotActive,
172
+ [NotificationEventActions.ReminderRollcall]: types_1.NotificationActions.PracticeRollCallReminder,
173
+ };
174
+ exports.notificationMultiplePractice = {
175
+ [NotificationEventActions.Cancel]: types_1.NotificationActions.PracticesCancel,
176
+ [NotificationEventActions.Create]: types_1.NotificationActions.PracticesCreate,
177
+ [NotificationEventActions.EditAttendance]: types_1.NotificationActions.PracticesEditAttendance,
178
+ [NotificationEventActions.EditComments]: types_1.NotificationActions.PracticesEditComments,
179
+ [NotificationEventActions.EditDatetime]: types_1.NotificationActions.PracticesEditDatetime,
180
+ [NotificationEventActions.EditLocality]: types_1.NotificationActions.PracticesEditLocality,
181
+ [NotificationEventActions.EditRepertory]: types_1.NotificationActions.PracticesEditRepertory,
182
+ [NotificationEventActions.EditTitle]: types_1.NotificationActions.PracticesEditTitle,
183
+ [NotificationEventActions.EditStage]: types_1.NotificationActions.PracticesEditStage,
184
+ [NotificationEventActions.EditResponseDeadline]: types_1.NotificationActions.PracticesEditResponseDeadline,
185
+ [NotificationEventActions.EditImages]: types_1.NotificationActions.PracticesEditImages,
186
+ [NotificationEventActions.EditAttachments]: types_1.NotificationActions.PracticesEditAttachments,
187
+ [NotificationEventActions.EditQuestions]: types_1.NotificationActions.PracticesEditQuestions,
188
+ [NotificationEventActions.EditReminders]: types_1.NotificationActions.PracticesEditReminders,
189
+ [NotificationEventActions.AddPlayers]: types_1.NotificationActions.PracticesPlayersAdd,
190
+ [NotificationEventActions.RemovePlayers]: types_1.NotificationActions.PracticesPlayersRemove,
191
+ [NotificationEventActions.ConfirmAssistance]: types_1.NotificationActions.PracticeAssistanceConfirm,
192
+ [NotificationEventActions.DeclineAssistance]: types_1.NotificationActions.PracticeAssistanceDecline,
193
+ [NotificationEventActions.ConfirmAssistanceByAdmin]: types_1.NotificationActions.PracticeAssistanceConfirmByAdmin,
194
+ [NotificationEventActions.DeclineAssistanceByAdmin]: types_1.NotificationActions.PracticeAssistanceDeclineByAdmin,
195
+ [NotificationEventActions.ConfirmInterest]: types_1.NotificationActions.PracticeInterestConfirm,
196
+ [NotificationEventActions.LoseInterest]: types_1.NotificationActions.PracticeInterestLose,
197
+ [NotificationEventActions.ConfirmInterestByAdmin]: types_1.NotificationActions.PracticeInterestConfirmByAdmin,
198
+ [NotificationEventActions.LoseInterestByAdmin]: types_1.NotificationActions.PracticeInterestLoseByAdmin,
199
+ [NotificationEventActions.SelectionSelected]: types_1.NotificationActions.PracticeSelectionSelect,
200
+ [NotificationEventActions.SelectionDeselected]: types_1.NotificationActions.PracticeSelectionDeselect,
201
+ [NotificationEventActions.Reminder]: types_1.NotificationActions.PracticeReminder,
202
+ [NotificationEventActions.ReminderDatetimeToConfirmed]: types_1.NotificationActions.PracticeReminderDatetimeToConfirmed,
203
+ [NotificationEventActions.ReminderDeadlineSoonToPending]: types_1.NotificationActions.PracticeReminderDeadlineSoonToPending,
204
+ [NotificationEventActions.ReminderDeadlineEndedInSelectionModeOpen]: types_1.NotificationActions.PracticeReminderDeadlineEndedInSelectionModeOpen,
205
+ [NotificationEventActions.ReminderDeadlineEndedInSelectionModeClosedOrNotActive]: types_1.NotificationActions.PracticeReminderDeadlineEndedInSelectionModeClosedOrNotActive,
206
+ [NotificationEventActions.ReminderRollcall]: types_1.NotificationActions.PracticeRollCallReminder,
207
+ };
208
+ exports.userNotificationSettings = {
209
+ [types_2.UserNotificationSettings.AttendanceConfirmed]: [
210
+ types_1.NotificationActions.PerformanceAssistanceConfirm,
211
+ types_1.NotificationActions.PracticeAssistanceConfirm,
212
+ types_1.NotificationActions.OtherAssistanceConfirm,
213
+ ],
214
+ [types_2.UserNotificationSettings.AttendanceDeclined]: [
215
+ types_1.NotificationActions.PerformanceAssistanceDecline,
216
+ types_1.NotificationActions.PracticeAssistanceDecline,
217
+ types_1.NotificationActions.OtherAssistanceDecline,
218
+ ],
219
+ [types_2.UserNotificationSettings.NewMembers]: [
220
+ types_1.NotificationActions.GroupPlayersJoin,
221
+ types_1.NotificationActions.GroupPlayersJoinPlayers,
222
+ ],
223
+ // [UserNotificationSettings.InterestConfirmed]: [
224
+ // NotificationActions.PerformanceInterestConfirm,
225
+ // NotificationActions.PracticeInterestConfirm,
226
+ // ],
227
+ // [UserNotificationSettings.InterestLost]: [
228
+ // NotificationActions.PerformanceInterestLose,
229
+ // NotificationActions.PracticeInterestLose,
230
+ // ],
231
+ };
@@ -0,0 +1,15 @@
1
+ export interface Ordered {
2
+ order: number;
3
+ }
4
+ export declare const mapToArray: <K extends string, V extends object, O extends Record<K, V | undefined>>(obj: O) => (O[`${Exclude<keyof O, symbol>}`] & {
5
+ id: keyof O;
6
+ })[];
7
+ export declare const orderedMapToArray: <K extends string, V extends {
8
+ order: number;
9
+ }, O extends Record<K, V>>(obj: O) => Pick<O[`${Exclude<keyof O, symbol>}`] & {
10
+ id: keyof O;
11
+ }, "id" | Exclude<keyof O[`${Exclude<keyof O, symbol>}`], "order">>[];
12
+ export declare const map: <KIn extends string, VIn, KOut extends string, VOut>(obj: Record<KIn, VIn>, fn: (key: `${KIn}`, value: VIn, index?: number) => [KOut, VOut]) => Record<KOut, VOut>;
13
+ export declare function filter<K extends string, V, S extends V>(obj: Record<K, V>, fn: (key: `${Exclude<K, symbol>}`, value: V, index?: number) => value is S): Record<`${Exclude<K, symbol>}`, S>;
14
+ export declare function filter<K extends string, V>(obj: Record<K, V>, fn: (key: `${Exclude<K, symbol>}`, value: V, index?: number) => unknown): Record<`${Exclude<K, symbol>}`, V>;
15
+ export declare const forEach: <K extends string, V>(obj: Record<K, V>, fn: (key: `${Exclude<K, symbol>}`, value: V, index?: number) => unknown) => void;
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.forEach = exports.map = exports.orderedMapToArray = exports.mapToArray = void 0;
4
+ exports.filter = filter;
5
+ const lodash_1 = require("lodash");
6
+ const ts_extras_1 = require("./ts-extras");
7
+ const mapToArray = (obj) => {
8
+ return (0, ts_extras_1.objectEntries)(obj).map(([key, value]) => ({
9
+ ...value,
10
+ id: key,
11
+ }));
12
+ };
13
+ exports.mapToArray = mapToArray;
14
+ const orderedMapToArray = (obj) => {
15
+ return (0, ts_extras_1.objectEntries)(obj)
16
+ .map(([key, value]) => ({
17
+ ...value,
18
+ id: key,
19
+ }))
20
+ .sort((a, b) => a.order - b.order)
21
+ .map((obj) => (0, lodash_1.omit)(obj, 'order'));
22
+ };
23
+ exports.orderedMapToArray = orderedMapToArray;
24
+ const map = (obj, fn) => {
25
+ const entries = (0, ts_extras_1.objectEntries)(obj);
26
+ const mappedEntries = entries.map(([key, value], index) => fn(key, value, index));
27
+ return (0, ts_extras_1.objectFromEntries)(mappedEntries);
28
+ };
29
+ exports.map = map;
30
+ function filter(obj, fn) {
31
+ const entries = Object.entries(obj);
32
+ // Note: We cast key back to the template literal type for the callback
33
+ const filteredEntries = entries.filter(([key, value], index) => fn(key, value, index));
34
+ return Object.fromEntries(filteredEntries);
35
+ }
36
+ const forEach = (obj, fn) => {
37
+ const entries = (0, ts_extras_1.objectEntries)(obj);
38
+ return entries.forEach(([key, value], index) => fn(key, value, index));
39
+ };
40
+ exports.forEach = forEach;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildEventPaymentForecast = buildEventPaymentForecast;
4
+ const types_1 = require("../models/Evento/Player/types");
5
+ const types_2 = require("../models/Evento/types");
6
+ const payoutRules_1 = require("./payoutRules");
7
+ /**
8
+ * Computes the simulated ("forecast") payment rows shown in the event payments
9
+ * tab for players that don't yet have a real payment.
10
+ *
11
+ * Exclusion rules per player:
12
+ * - The player already has a real payment whose id is NOT in `payout.expenses`
13
+ * (`playerIdsWithNonExpensePayment`).
14
+ * - `status === Declined` or `rollcall === Declined`.
15
+ * - When `selectionMode === Closed`, require `selected === true` (rejects
16
+ * `false` and `null`).
17
+ * - The payout rules engine returns `excluded` (PlayerExclude rule).
18
+ *
19
+ * Returns an empty array when no `payout` is configured for the event.
20
+ */
21
+ function buildEventPaymentForecast({ players, payout, playerIdsWithNonExpensePayment, selectionMode, customFieldsByPlayerId, }) {
22
+ if (!payout)
23
+ return [];
24
+ const requireSelected = selectionMode === types_2.EventSelectionMode.Closed;
25
+ const result = [];
26
+ for (const player of players) {
27
+ if (playerIdsWithNonExpensePayment.has(player.id))
28
+ continue;
29
+ if (player.status === types_1.EventPlayerStatus.Declined)
30
+ continue;
31
+ if (player.rollcall === types_1.EventPlayerStatus.Declined)
32
+ continue;
33
+ if (requireSelected && player.selected !== true)
34
+ continue;
35
+ const input = {
36
+ id: player.id,
37
+ mainInstrument: player.mainInstrument ?? '',
38
+ isGuest: player.isGuest,
39
+ customFields: customFieldsByPlayerId?.get(player.id) ?? {},
40
+ };
41
+ const evaluation = (0, payoutRules_1.evaluateRulesForPlayer)(input, payout.rules ?? [], payout.importByMember);
42
+ if (evaluation.excluded)
43
+ continue;
44
+ result.push({
45
+ playerId: player.id,
46
+ displayName: player.displayName,
47
+ mainInstrument: player.mainInstrument ?? '',
48
+ photoURL: player.photoURL ?? '',
49
+ isGuest: player.isGuest,
50
+ currency: payout.currency,
51
+ baseAmount: evaluation.baseAmount,
52
+ totalAmount: evaluation.finalAmount,
53
+ appliedRules: evaluation.appliedRules,
54
+ });
55
+ }
56
+ return result;
57
+ }
@@ -0,0 +1,165 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.evaluateCondition = evaluateCondition;
4
+ exports.ruleMatchesPlayer = ruleMatchesPlayer;
5
+ exports.evaluateRulesForPlayer = evaluateRulesForPlayer;
6
+ const payoutRule_1 = require("../types/payoutRule");
7
+ function resolveFieldValue(player, field) {
8
+ if (field === 'mainInstrument')
9
+ return player.mainInstrument;
10
+ if (field === 'isGuest')
11
+ return player.isGuest;
12
+ if (field.startsWith('custom.')) {
13
+ const key = field.slice('custom.'.length);
14
+ const v = player.customFields[key];
15
+ return v === undefined ? null : v;
16
+ }
17
+ return null;
18
+ }
19
+ function evaluateCondition(player, condition) {
20
+ const fieldValue = resolveFieldValue(player, condition.field);
21
+ const target = condition.value;
22
+ switch (condition.operator) {
23
+ case payoutRule_1.PayoutRuleConditionOperator.Eq:
24
+ return fieldValue === target;
25
+ case payoutRule_1.PayoutRuleConditionOperator.Neq:
26
+ return fieldValue !== target;
27
+ case payoutRule_1.PayoutRuleConditionOperator.Gt:
28
+ return (typeof fieldValue === 'number' && typeof target === 'number' && fieldValue > target);
29
+ case payoutRule_1.PayoutRuleConditionOperator.Gte:
30
+ return (typeof fieldValue === 'number' && typeof target === 'number' && fieldValue >= target);
31
+ case payoutRule_1.PayoutRuleConditionOperator.Lt:
32
+ return (typeof fieldValue === 'number' && typeof target === 'number' && fieldValue < target);
33
+ case payoutRule_1.PayoutRuleConditionOperator.Lte:
34
+ return (typeof fieldValue === 'number' && typeof target === 'number' && fieldValue <= target);
35
+ case payoutRule_1.PayoutRuleConditionOperator.In:
36
+ return Array.isArray(target) && target.includes(fieldValue);
37
+ case payoutRule_1.PayoutRuleConditionOperator.Nin:
38
+ return Array.isArray(target) && !target.includes(fieldValue);
39
+ default:
40
+ return false;
41
+ }
42
+ }
43
+ function ruleMatchesPlayer(player, rule) {
44
+ if (!rule.conditions || rule.conditions.length === 0)
45
+ return true;
46
+ return rule.conditions.every((c) => evaluateCondition(player, c));
47
+ }
48
+ const PLAYER_EFFECT_TYPES = new Set([
49
+ payoutRule_1.PayoutRuleType.PlayerExclude,
50
+ payoutRule_1.PayoutRuleType.PlayerFixed,
51
+ payoutRule_1.PayoutRuleType.PlayerMultiplier,
52
+ payoutRule_1.PayoutRuleType.PlayerBonus,
53
+ ]);
54
+ function round2(n) {
55
+ return Math.round(n * 100) / 100;
56
+ }
57
+ /**
58
+ * Pure function that evaluates the event payout rules against a single player.
59
+ *
60
+ * Apply order (after sorting rules by `order` asc):
61
+ * 1. `PlayerExclude` — short-circuits with `excluded: true`.
62
+ * 2. `PlayerFixed` — replaces the running amount.
63
+ * 3. `PlayerMultiplier` — multiplies the running amount.
64
+ * 4. `PlayerBonus` — adds a fixed amount.
65
+ *
66
+ * When `baseAmount === null` (importByMember "to be determined"):
67
+ * - Rules that depend on the base (Fixed, Multiplier) keep `runningAmount: null`
68
+ * in their `AppliedRuleEntry` and the result `finalAmount` stays `null`.
69
+ * - `PlayerBonus` is recorded with its `delta` but `runningAmount` stays `null`
70
+ * until the base is set.
71
+ *
72
+ * Non-player rules (`EntityShare`, `DefaultExpense`) are ignored here — they
73
+ * affect the global budget, not the per-player amount.
74
+ */
75
+ function evaluateRulesForPlayer(player, rules, baseAmount) {
76
+ const playerRules = rules
77
+ .filter((r) => PLAYER_EFFECT_TYPES.has(r.effect.type))
78
+ .slice()
79
+ .sort((a, b) => a.order - b.order);
80
+ const appliedRules = [];
81
+ let running = baseAmount;
82
+ let excluded = false;
83
+ let excludedByRuleId = null;
84
+ for (const rule of playerRules) {
85
+ if (!ruleMatchesPlayer(player, rule))
86
+ continue;
87
+ if (rule.effect.type === payoutRule_1.PayoutRuleType.PlayerExclude) {
88
+ excluded = true;
89
+ excludedByRuleId = rule.id;
90
+ appliedRules.push({
91
+ ruleId: rule.id,
92
+ name: rule.name,
93
+ effect: rule.effect,
94
+ delta: null,
95
+ runningAmount: null,
96
+ });
97
+ break;
98
+ }
99
+ if (rule.effect.type === payoutRule_1.PayoutRuleType.PlayerFixed) {
100
+ const next = round2(rule.effect.data.amount);
101
+ const delta = running === null ? null : round2(next - running);
102
+ appliedRules.push({
103
+ ruleId: rule.id,
104
+ name: rule.name,
105
+ effect: rule.effect,
106
+ delta,
107
+ runningAmount: next,
108
+ });
109
+ running = next;
110
+ continue;
111
+ }
112
+ if (rule.effect.type === payoutRule_1.PayoutRuleType.PlayerMultiplier) {
113
+ if (running === null) {
114
+ appliedRules.push({
115
+ ruleId: rule.id,
116
+ name: rule.name,
117
+ effect: rule.effect,
118
+ delta: null,
119
+ runningAmount: null,
120
+ });
121
+ continue;
122
+ }
123
+ const next = round2(running * rule.effect.data.multiplier);
124
+ appliedRules.push({
125
+ ruleId: rule.id,
126
+ name: rule.name,
127
+ effect: rule.effect,
128
+ delta: round2(next - running),
129
+ runningAmount: next,
130
+ });
131
+ running = next;
132
+ continue;
133
+ }
134
+ if (rule.effect.type === payoutRule_1.PayoutRuleType.PlayerBonus) {
135
+ const delta = round2(rule.effect.data.amount);
136
+ if (running === null) {
137
+ appliedRules.push({
138
+ ruleId: rule.id,
139
+ name: rule.name,
140
+ effect: rule.effect,
141
+ delta,
142
+ runningAmount: null,
143
+ });
144
+ continue;
145
+ }
146
+ const next = round2(running + delta);
147
+ appliedRules.push({
148
+ ruleId: rule.id,
149
+ name: rule.name,
150
+ effect: rule.effect,
151
+ delta,
152
+ runningAmount: next,
153
+ });
154
+ running = next;
155
+ continue;
156
+ }
157
+ }
158
+ return {
159
+ excluded,
160
+ excludedByRuleId,
161
+ baseAmount,
162
+ finalAmount: excluded ? null : running,
163
+ appliedRules,
164
+ };
165
+ }
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.planGroupTiers = exports.pricesPerPlan = exports.membersPerPlan = exports.PlanPeriod = exports.PlansGroup = void 0;
4
+ var PlansGroup;
5
+ (function (PlansGroup) {
6
+ PlansGroup["Piano"] = "piano";
7
+ PlansGroup["MezzoPiano"] = "mezzopiano";
8
+ PlansGroup["MezzoForte"] = "mezzoforte";
9
+ PlansGroup["Forte"] = "forte";
10
+ PlansGroup["Fortissimo"] = "fortissimo";
11
+ PlansGroup["Tutti"] = "tutti";
12
+ })(PlansGroup || (exports.PlansGroup = PlansGroup = {}));
13
+ var PlanPeriod;
14
+ (function (PlanPeriod) {
15
+ PlanPeriod["Yearly"] = "yearly";
16
+ PlanPeriod["Monthly"] = "monthly";
17
+ })(PlanPeriod || (exports.PlanPeriod = PlanPeriod = {}));
18
+ exports.membersPerPlan = {
19
+ [PlansGroup.Piano]: 20,
20
+ [PlansGroup.MezzoPiano]: 40,
21
+ [PlansGroup.MezzoForte]: 60,
22
+ [PlansGroup.Forte]: 80,
23
+ [PlansGroup.Fortissimo]: 100,
24
+ [PlansGroup.Tutti]: 1000,
25
+ };
26
+ exports.pricesPerPlan = {
27
+ [PlanPeriod.Monthly]: {
28
+ [PlansGroup.Piano]: 0,
29
+ [PlansGroup.MezzoPiano]: 9.9,
30
+ [PlansGroup.MezzoForte]: 14.9,
31
+ [PlansGroup.Forte]: 19.9,
32
+ [PlansGroup.Fortissimo]: 24.9,
33
+ [PlansGroup.Tutti]: 29.9,
34
+ },
35
+ [PlanPeriod.Yearly]: {
36
+ [PlansGroup.Piano]: 0,
37
+ [PlansGroup.MezzoPiano]: 99,
38
+ [PlansGroup.MezzoForte]: 149,
39
+ [PlansGroup.Forte]: 199,
40
+ [PlansGroup.Fortissimo]: 249,
41
+ [PlansGroup.Tutti]: 299,
42
+ },
43
+ };
44
+ exports.planGroupTiers = [
45
+ {
46
+ min: 0,
47
+ max: exports.membersPerPlan[PlansGroup.Piano],
48
+ monthly: exports.pricesPerPlan[PlanPeriod.Monthly][PlansGroup.Piano],
49
+ yearly: exports.pricesPerPlan[PlanPeriod.Yearly][PlansGroup.Piano],
50
+ label: '0-20',
51
+ name: 'Piano',
52
+ id: PlansGroup.Piano,
53
+ },
54
+ {
55
+ min: 21,
56
+ max: exports.membersPerPlan[PlansGroup.MezzoPiano],
57
+ monthly: exports.pricesPerPlan[PlanPeriod.Monthly][PlansGroup.MezzoPiano],
58
+ yearly: exports.pricesPerPlan[PlanPeriod.Yearly][PlansGroup.MezzoPiano],
59
+ label: '21-40',
60
+ name: 'Mezzopiano',
61
+ id: PlansGroup.MezzoPiano,
62
+ },
63
+ {
64
+ min: 41,
65
+ max: exports.membersPerPlan[PlansGroup.MezzoForte],
66
+ monthly: exports.pricesPerPlan[PlanPeriod.Monthly][PlansGroup.MezzoForte],
67
+ yearly: exports.pricesPerPlan[PlanPeriod.Yearly][PlansGroup.MezzoForte],
68
+ label: '41-60',
69
+ name: 'Mezzoforte',
70
+ id: PlansGroup.MezzoForte,
71
+ },
72
+ {
73
+ min: 61,
74
+ max: exports.membersPerPlan[PlansGroup.Forte],
75
+ monthly: exports.pricesPerPlan[PlanPeriod.Monthly][PlansGroup.Forte],
76
+ yearly: exports.pricesPerPlan[PlanPeriod.Yearly][PlansGroup.Forte],
77
+ label: '61-80',
78
+ name: 'Forte',
79
+ id: PlansGroup.Forte,
80
+ },
81
+ {
82
+ min: 81,
83
+ max: exports.membersPerPlan[PlansGroup.Fortissimo],
84
+ monthly: exports.pricesPerPlan[PlanPeriod.Monthly][PlansGroup.Fortissimo],
85
+ yearly: exports.pricesPerPlan[PlanPeriod.Yearly][PlansGroup.Fortissimo],
86
+ label: '81-100',
87
+ name: 'Fortissimo',
88
+ id: PlansGroup.Fortissimo,
89
+ },
90
+ {
91
+ min: 101,
92
+ max: Infinity,
93
+ monthly: exports.pricesPerPlan[PlanPeriod.Monthly][PlansGroup.Tutti],
94
+ yearly: exports.pricesPerPlan[PlanPeriod.Yearly][PlansGroup.Tutti],
95
+ label: '+100',
96
+ name: 'Tutti',
97
+ id: PlansGroup.Tutti,
98
+ },
99
+ ];
@@ -0,0 +1,13 @@
1
+ import { VoteValue } from '../models/Group/Repertory/types';
2
+ export declare const rateSteps: {
3
+ id: 'love' | 'like' | 'neutral' | 'dislike';
4
+ emoji: string;
5
+ value: VoteValue;
6
+ range: [number, number];
7
+ }[];
8
+ export declare const getStepRating: (rating: number) => {
9
+ id: "love" | "like" | "neutral" | "dislike";
10
+ emoji: string;
11
+ value: VoteValue;
12
+ range: [number, number];
13
+ } | undefined;