@glissandoo/lib 1.114.0 → 1.115.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 (348) hide show
  1. package/functions/auth.d.ts +3 -1
  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 +4 -0
  7. package/functions/event.js +1 -1
  8. package/functions/eventPlayer.js +1 -1
  9. package/functions/eventRepertory.d.ts +2 -0
  10. package/functions/eventRepertory.js +1 -1
  11. package/functions/groupRepertory.d.ts +110 -0
  12. package/functions/index.d.ts +30 -0
  13. package/functions/index.js +31 -1
  14. package/functions/misc.d.ts +6 -0
  15. package/functions/regions.js +31 -1
  16. package/helpers/appScenes.js +1 -1
  17. package/helpers/auth.d.ts +2 -9
  18. package/helpers/auth.js +33 -14
  19. package/helpers/badges.js +1 -1
  20. package/helpers/catalogBridge.d.ts +121 -0
  21. package/helpers/catalogBridge.js +95 -0
  22. package/helpers/collections.js +2 -2
  23. package/helpers/communicationTemplate/index.d.ts +3 -2
  24. package/helpers/communicationTemplate/index.js +5 -5
  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 +19 -0
  34. package/helpers/currency.js +85 -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 +1 -1
  42. package/helpers/errors.d.ts +1 -0
  43. package/helpers/errors.js +2 -1
  44. package/helpers/externalUrls.d.ts +12 -0
  45. package/helpers/externalUrls.js +40 -0
  46. package/helpers/instruments/index.d.ts +17 -0
  47. package/helpers/instruments/index.js +5 -1
  48. package/helpers/instruments/lists.d.ts +3 -3
  49. package/helpers/instruments/lists.js +5 -5
  50. package/helpers/musicStyles/index.d.ts +22 -4
  51. package/helpers/musicStyles/index.js +114 -35
  52. package/helpers/notifications/index.js +1 -1
  53. package/helpers/objects.d.ts +5 -1
  54. package/helpers/objects.js +7 -6
  55. package/helpers/plans.js +2 -2
  56. package/helpers/rates.d.ts +1 -1
  57. package/helpers/slate.d.ts +64 -5
  58. package/helpers/slate.js +7 -1
  59. package/helpers/ts-extras/array-includes.js +1 -2
  60. package/helpers/ts-extras/as-mutable.js +1 -2
  61. package/helpers/ts-extras/assert-error.js +1 -2
  62. package/helpers/ts-extras/index.js +1 -1
  63. package/helpers/ts-extras/is-defined.js +1 -2
  64. package/helpers/ts-extras/is-empty.js +1 -2
  65. package/helpers/ts-extras/is-infinite.js +1 -2
  66. package/helpers/ts-extras/is-present.js +1 -2
  67. package/helpers/ts-extras/object-entries.d.ts +1 -1
  68. package/helpers/ts-extras/object-from-entries.d.ts +1 -1
  69. package/helpers/ts-extras/object-has-own.js +1 -2
  70. package/helpers/ts-extras/object-keys.d.ts +1 -1
  71. package/helpers/ts-extras/object-keys.js +0 -1
  72. package/helpers/ts-extras/set-has.js +1 -2
  73. package/helpers/types.d.ts +26 -0
  74. package/helpers/types.js +25 -5
  75. package/lang/ca.json +325 -91
  76. package/lang/de.json +325 -91
  77. package/lang/en.json +325 -91
  78. package/lang/es.json +325 -91
  79. package/lang/eu.json +325 -91
  80. package/lang/fr.json +325 -91
  81. package/lang/gl.json +325 -91
  82. package/lang/index.js +3 -2
  83. package/lang/it.json +325 -91
  84. package/lang/nl.json +325 -91
  85. package/lang/pt.json +325 -91
  86. package/models/Communication/types.d.ts +0 -16
  87. package/models/Communication/types.js +3 -9
  88. package/models/CompositionGenre/index.d.ts +9 -0
  89. package/models/CompositionGenre/index.js +16 -0
  90. package/models/CompositionStyle/index.d.ts +9 -0
  91. package/models/CompositionStyle/index.js +16 -0
  92. package/models/Counters/Group/Analytics/types.js +1 -1
  93. package/models/Customer/index.d.ts +1 -1
  94. package/models/Customer/index.js +3 -3
  95. package/models/Customer/types.js +1 -1
  96. package/models/Evento/Player/types.js +3 -3
  97. package/models/Evento/Repertory/types.d.ts +2 -1
  98. package/models/Evento/index.d.ts +3 -2
  99. package/models/Evento/index.js +5 -4
  100. package/models/Evento/types.d.ts +2 -31
  101. package/models/Evento/types.js +8 -39
  102. package/models/Federation/index.d.ts +1 -1
  103. package/models/Federation/index.js +3 -3
  104. package/models/Group/Analytics/types.js +1 -1
  105. package/models/Group/Player/types.js +1 -1
  106. package/models/Group/Repertory/File/Section/index.d.ts +3 -3
  107. package/models/Group/Repertory/File/Section/index.js +3 -2
  108. package/models/Group/Repertory/File/Section/types.d.ts +7 -0
  109. package/models/Group/Repertory/File/Section/types.js +1 -1
  110. package/models/Group/Repertory/File/index.d.ts +4 -2
  111. package/models/Group/Repertory/File/index.js +4 -4
  112. package/models/Group/Repertory/FilePath/index.d.ts +3 -4
  113. package/models/Group/Repertory/index.d.ts +12 -4
  114. package/models/Group/Repertory/index.js +9 -0
  115. package/models/Group/Repertory/types.d.ts +21 -32
  116. package/models/Group/Repertory/types.js +8 -18
  117. package/models/Group/index.d.ts +15 -17
  118. package/models/Group/index.js +16 -15
  119. package/models/Group/types.d.ts +6 -66
  120. package/models/Group/types.js +8 -50
  121. package/models/Instrument/{group.d.ts → fromRecord.d.ts} +4 -5
  122. package/models/Instrument/{group.js → fromRecord.js} +10 -10
  123. package/models/Instrument/index.d.ts +2 -0
  124. package/models/Instrument/index.js +38 -1
  125. package/models/Inventory/Item/types.js +2 -2
  126. package/models/Inventory/types.js +1 -1
  127. package/models/Notification/types.js +2 -2
  128. package/models/Offer/types.d.ts +0 -12
  129. package/models/Offer/types.js +2 -15
  130. package/models/Partnership/Partner/types.js +1 -1
  131. package/models/Partnership/Payment/types.js +2 -2
  132. package/models/Partnership/index.d.ts +1 -1
  133. package/models/Partnership/index.js +3 -3
  134. package/models/Partnership/types.js +1 -1
  135. package/models/Repertory/types.d.ts +12 -0
  136. package/models/Repertory/types.js +2 -2
  137. package/models/User/Group/index.js +1 -2
  138. package/models/User/index.d.ts +1 -1
  139. package/models/User/index.js +3 -3
  140. package/models/User/types.d.ts +2 -1
  141. package/models/User/types.js +7 -7
  142. package/models/WebhookEvent/types.js +1 -1
  143. package/models/supabase/Comm/index.d.ts +24 -0
  144. package/models/supabase/Comm/index.js +68 -0
  145. package/models/supabase/Comm/types.d.ts +6 -0
  146. package/models/supabase/CommHistory/index.d.ts +22 -0
  147. package/models/supabase/CommHistory/index.js +37 -0
  148. package/models/supabase/CommHistory/types.d.ts +11 -0
  149. package/models/supabase/CommHistory/types.js +9 -0
  150. package/models/supabase/Composer/Composition/Acquisition/index.d.ts +4 -0
  151. package/models/supabase/Composer/Composition/Acquisition/index.js +9 -0
  152. package/models/supabase/Composer/Composition/Acquisition/types.d.ts +36 -0
  153. package/models/supabase/Composer/Composition/Favorite/index.d.ts +4 -0
  154. package/models/supabase/Composer/Composition/Favorite/index.js +9 -0
  155. package/models/supabase/Composer/Composition/Favorite/types.d.ts +6 -0
  156. package/models/supabase/Composer/Composition/View/index.d.ts +4 -0
  157. package/models/supabase/Composer/Composition/View/index.js +9 -0
  158. package/models/supabase/Composer/Composition/View/types.d.ts +6 -0
  159. package/models/supabase/Composer/Composition/index.d.ts +5284 -0
  160. package/models/supabase/Composer/Composition/index.js +166 -0
  161. package/models/supabase/Composer/Composition/types.d.ts +96 -0
  162. package/models/supabase/Composer/Composition/types.js +32 -0
  163. package/models/supabase/Composer/Notification/index.d.ts +4 -0
  164. package/models/supabase/Composer/Notification/index.js +9 -0
  165. package/models/supabase/Composer/Notification/types.d.ts +39 -0
  166. package/models/supabase/Composer/Notification/types.js +27 -0
  167. package/models/supabase/Composer/Payout/index.d.ts +4 -0
  168. package/models/supabase/Composer/Payout/index.js +9 -0
  169. package/models/supabase/Composer/Payout/status.d.ts +1 -0
  170. package/models/supabase/Composer/Payout/types.d.ts +5 -0
  171. package/models/supabase/Composer/PerformanceAttendance/types.d.ts +4 -0
  172. package/models/supabase/Composer/index.d.ts +78 -0
  173. package/models/supabase/Composer/index.js +105 -0
  174. package/models/supabase/Composer/types.d.ts +6 -0
  175. package/models/supabase/Composer/types.js +2 -0
  176. package/models/supabase/EventHistory/index.d.ts +22 -0
  177. package/models/supabase/EventHistory/index.js +37 -0
  178. package/models/supabase/EventHistory/types.d.ts +36 -0
  179. package/models/supabase/EventHistory/types.js +34 -0
  180. package/models/supabase/GroupHistory/index.d.ts +21 -0
  181. package/models/supabase/GroupHistory/index.js +34 -0
  182. package/models/supabase/GroupHistory/types.d.ts +27 -0
  183. package/models/supabase/GroupHistory/types.js +25 -0
  184. package/models/supabase/Model/index.d.ts +10 -0
  185. package/models/supabase/Model/index.js +21 -0
  186. package/models/supabase/OfferHistory/index.d.ts +22 -0
  187. package/models/supabase/OfferHistory/index.js +37 -0
  188. package/models/supabase/OfferHistory/types.d.ts +18 -0
  189. package/models/supabase/OfferHistory/types.js +16 -0
  190. package/models/supabase/Repertoire/index.d.ts +16 -0
  191. package/models/supabase/Repertoire/index.js +43 -0
  192. package/models/supabase/Repertoire/types.d.ts +6 -0
  193. package/models/supabase/Repertoire/types.js +2 -0
  194. package/models/supabase/RepertoireHistory/index.d.ts +22 -0
  195. package/models/supabase/RepertoireHistory/index.js +37 -0
  196. package/models/supabase/RepertoireHistory/types.d.ts +21 -0
  197. package/models/supabase/RepertoireHistory/types.js +19 -0
  198. package/models/supabase/User/Group/index.d.ts +11 -0
  199. package/models/supabase/User/Group/index.js +30 -0
  200. package/models/supabase/User/Group/types.d.ts +6 -0
  201. package/models/supabase/User/Group/types.js +2 -0
  202. package/models/supabase/User/index.d.ts +13 -0
  203. package/models/supabase/User/index.js +37 -0
  204. package/models/supabase/User/types.d.ts +6 -0
  205. package/models/supabase/User/types.js +2 -0
  206. package/package.json +28 -20
  207. package/types/firestore.d.ts +0 -1
  208. package/types/firestore.js +1 -1
  209. package/types/supabase/catalog.d.ts +46 -0
  210. package/types/supabase/catalog.js +2 -0
  211. package/types/supabase/catalog.ts +67 -0
  212. package/types/supabase/composerMetrics.d.ts +27 -0
  213. package/types/supabase/composerMetrics.js +2 -0
  214. package/types/supabase/composerMetrics.ts +26 -0
  215. package/types/supabase/generated.d.ts +3158 -451
  216. package/types/supabase/generated.js +13 -0
  217. package/types/supabase/generated.ts +3116 -496
  218. package/types/supabase/index.d.ts +155 -19
  219. package/types/supabase/index.js +15 -0
  220. package/types/supabase/index.ts +288 -21
  221. package/types/supabase/overwrites/index.d.ts +1 -1
  222. package/types/supabase/overwrites/index.ts +1 -1
  223. package/types/supabase/overwrites/tables/comm/model.d.ts +4 -0
  224. package/types/supabase/overwrites/tables/comm/model.js +2 -0
  225. package/types/supabase/overwrites/tables/comm/model.ts +4 -0
  226. package/types/supabase/overwrites/tables/comm_history/index.d.ts +7 -0
  227. package/types/supabase/overwrites/tables/comm_history/index.js +2 -0
  228. package/types/supabase/overwrites/tables/comm_history/index.ts +9 -0
  229. package/types/supabase/overwrites/tables/comm_history/model.d.ts +10 -0
  230. package/types/supabase/overwrites/tables/comm_history/model.js +2 -0
  231. package/types/supabase/overwrites/tables/comm_history/model.ts +13 -0
  232. package/types/supabase/overwrites/tables/common/index.js +2 -0
  233. package/types/supabase/overwrites/tables/composer/index.d.ts +9 -0
  234. package/types/supabase/overwrites/tables/composer/index.js +2 -0
  235. package/types/supabase/overwrites/tables/composer/index.ts +10 -0
  236. package/types/supabase/overwrites/tables/composer/model.d.ts +12 -0
  237. package/types/supabase/overwrites/tables/composer/model.js +2 -0
  238. package/types/supabase/overwrites/tables/composer/model.ts +15 -0
  239. package/types/supabase/overwrites/tables/composer/publicModel.d.ts +11 -0
  240. package/types/supabase/overwrites/tables/composer/publicModel.js +2 -0
  241. package/types/supabase/overwrites/tables/composer/publicModel.ts +15 -0
  242. package/types/supabase/overwrites/tables/composerComposition/index.d.ts +18 -0
  243. package/types/supabase/overwrites/tables/composerComposition/index.js +2 -0
  244. package/types/supabase/overwrites/tables/composerComposition/index.ts +24 -0
  245. package/types/supabase/overwrites/tables/composerComposition/model.d.ts +9 -0
  246. package/types/supabase/overwrites/tables/composerComposition/model.js +2 -0
  247. package/types/supabase/overwrites/tables/composerComposition/model.ts +26 -0
  248. package/types/supabase/overwrites/tables/composerComposition/publicModel.d.ts +9 -0
  249. package/types/supabase/overwrites/tables/composerComposition/publicModel.js +2 -0
  250. package/types/supabase/overwrites/tables/composerComposition/publicModel.ts +37 -0
  251. package/types/supabase/overwrites/tables/composerNotification/index.d.ts +19 -0
  252. package/types/supabase/overwrites/tables/composerNotification/index.js +2 -0
  253. package/types/supabase/overwrites/tables/composerNotification/index.ts +25 -0
  254. package/types/supabase/overwrites/tables/composerOwnedTransaction/model.d.ts +2 -0
  255. package/types/supabase/overwrites/tables/composerOwnedTransaction/model.js +2 -0
  256. package/types/supabase/overwrites/tables/composerOwnedTransaction/model.ts +3 -0
  257. package/types/supabase/overwrites/tables/composerPayout/index.d.ts +7 -0
  258. package/types/supabase/overwrites/tables/composerPayout/index.js +2 -0
  259. package/types/supabase/overwrites/tables/composerPayout/index.ts +8 -0
  260. package/types/supabase/overwrites/tables/compositionAcquisition/index.d.ts +4 -0
  261. package/types/supabase/overwrites/tables/compositionAcquisition/index.js +2 -0
  262. package/types/supabase/overwrites/tables/compositionAcquisition/index.ts +8 -0
  263. package/types/supabase/overwrites/tables/compositionAcquisition/model.d.ts +6 -0
  264. package/types/supabase/overwrites/tables/compositionAcquisition/model.js +2 -0
  265. package/types/supabase/overwrites/tables/compositionAcquisition/model.ts +11 -0
  266. package/types/supabase/overwrites/tables/compositionFavorite/index.d.ts +1 -0
  267. package/types/supabase/overwrites/tables/compositionFavorite/index.js +2 -0
  268. package/types/supabase/overwrites/tables/compositionFavorite/index.ts +2 -0
  269. package/types/supabase/overwrites/tables/compositionFavorite/model.d.ts +1 -0
  270. package/types/supabase/overwrites/tables/compositionFavorite/model.js +2 -0
  271. package/types/supabase/overwrites/tables/compositionFavorite/model.ts +1 -0
  272. package/types/supabase/overwrites/tables/compositionView/index.d.ts +1 -0
  273. package/types/supabase/overwrites/tables/compositionView/index.js +2 -0
  274. package/types/supabase/overwrites/tables/compositionView/index.ts +2 -0
  275. package/types/supabase/overwrites/tables/compositionView/model.d.ts +1 -0
  276. package/types/supabase/overwrites/tables/compositionView/model.js +2 -0
  277. package/types/supabase/overwrites/tables/compositionView/model.ts +1 -0
  278. package/types/supabase/overwrites/tables/currencyExchangeRate/index.d.ts +16 -0
  279. package/types/supabase/overwrites/tables/currencyExchangeRate/index.js +2 -0
  280. package/types/supabase/overwrites/tables/currencyExchangeRate/index.ts +18 -0
  281. package/types/supabase/overwrites/{event.d.ts → tables/event/index.d.ts} +1 -1
  282. package/types/supabase/overwrites/tables/event/index.js +2 -0
  283. package/types/supabase/overwrites/{event.ts → tables/event/index.ts} +1 -1
  284. package/types/supabase/overwrites/tables/event_history/index.d.ts +7 -0
  285. package/types/supabase/overwrites/tables/event_history/index.js +2 -0
  286. package/types/supabase/overwrites/tables/event_history/index.ts +9 -0
  287. package/types/supabase/overwrites/tables/event_history/model.d.ts +10 -0
  288. package/types/supabase/overwrites/tables/event_history/model.js +2 -0
  289. package/types/supabase/overwrites/tables/event_history/model.ts +13 -0
  290. package/types/supabase/overwrites/{group.d.ts → tables/group/index.d.ts} +2 -5
  291. package/types/supabase/overwrites/tables/group/index.js +2 -0
  292. package/types/supabase/overwrites/{group.ts → tables/group/index.ts} +2 -6
  293. package/types/supabase/overwrites/tables/group_history/index.d.ts +7 -0
  294. package/types/supabase/overwrites/tables/group_history/index.js +2 -0
  295. package/types/supabase/overwrites/tables/group_history/index.ts +9 -0
  296. package/types/supabase/overwrites/tables/group_history/model.d.ts +10 -0
  297. package/types/supabase/overwrites/tables/group_history/model.js +2 -0
  298. package/types/supabase/overwrites/tables/group_history/model.ts +13 -0
  299. package/types/supabase/overwrites/{offer.d.ts → tables/offer/index.d.ts} +6 -2
  300. package/types/supabase/overwrites/tables/offer/index.js +2 -0
  301. package/types/supabase/overwrites/{offer.ts → tables/offer/index.ts} +7 -2
  302. package/types/supabase/overwrites/tables/offer_history/index.d.ts +7 -0
  303. package/types/supabase/overwrites/tables/offer_history/index.js +2 -0
  304. package/types/supabase/overwrites/tables/offer_history/index.ts +9 -0
  305. package/types/supabase/overwrites/tables/offer_history/model.d.ts +10 -0
  306. package/types/supabase/overwrites/tables/offer_history/model.js +2 -0
  307. package/types/supabase/overwrites/tables/offer_history/model.ts +13 -0
  308. package/types/supabase/overwrites/tables/repertoire/model.d.ts +7 -0
  309. package/types/supabase/overwrites/tables/repertoire/model.js +2 -0
  310. package/types/supabase/overwrites/tables/repertoire/model.ts +7 -0
  311. package/types/supabase/overwrites/tables/repertoire_history/index.d.ts +7 -0
  312. package/types/supabase/overwrites/tables/repertoire_history/index.js +2 -0
  313. package/types/supabase/overwrites/tables/repertoire_history/index.ts +9 -0
  314. package/types/supabase/overwrites/tables/repertoire_history/model.d.ts +10 -0
  315. package/types/supabase/overwrites/tables/repertoire_history/model.js +2 -0
  316. package/types/supabase/overwrites/tables/repertoire_history/model.ts +13 -0
  317. package/types/supabase/overwrites/tables/user/index.d.ts +11 -0
  318. package/types/supabase/overwrites/tables/user/index.js +2 -0
  319. package/types/supabase/overwrites/tables/user/index.ts +13 -0
  320. package/helpers/glissandooAdmin.d.ts +0 -3
  321. package/helpers/glissandooAdmin.js +0 -6
  322. package/types/supabase/overwrites/comm.d.ts +0 -18
  323. package/types/supabase/overwrites/comm.ts +0 -18
  324. package/types/supabase/overwrites/comm_history.d.ts +0 -10
  325. package/types/supabase/overwrites/comm_history.ts +0 -10
  326. package/types/supabase/overwrites/event_history.d.ts +0 -10
  327. package/types/supabase/overwrites/event_history.ts +0 -10
  328. package/types/supabase/overwrites/group_history.d.ts +0 -9
  329. package/types/supabase/overwrites/group_history.ts +0 -9
  330. package/types/supabase/overwrites/offer_history.d.ts +0 -10
  331. package/types/supabase/overwrites/offer_history.ts +0 -10
  332. package/types/supabase/overwrites/repertoire.d.ts +0 -12
  333. package/types/supabase/overwrites/repertoire.ts +0 -12
  334. package/types/supabase/overwrites/repertoire_history.d.ts +0 -10
  335. package/types/supabase/overwrites/repertoire_history.ts +0 -10
  336. /package/{types/supabase/overwrites/comm.js → functions/composer.js} +0 -0
  337. /package/{types/supabase/overwrites/comm_history.js → functions/composerComposition.js} +0 -0
  338. /package/{types/supabase/overwrites/event.js → functions/composerNotification.js} +0 -0
  339. /package/{types/supabase/overwrites/event_history.js → functions/composerPayout.js} +0 -0
  340. /package/{types/supabase/overwrites/group.js → models/supabase/Comm/types.js} +0 -0
  341. /package/{types/supabase/overwrites/group_history.js → models/supabase/Composer/Composition/Acquisition/types.js} +0 -0
  342. /package/{types/supabase/overwrites/offer.js → models/supabase/Composer/Composition/Favorite/types.js} +0 -0
  343. /package/{types/supabase/overwrites/offer_history.js → models/supabase/Composer/Composition/View/types.js} +0 -0
  344. /package/{types/supabase/overwrites/repertoire.js → models/supabase/Composer/Payout/status.js} +0 -0
  345. /package/{types/supabase/overwrites/repertoire_history.js → models/supabase/Composer/Payout/types.js} +0 -0
  346. /package/{types/supabase/overwrites/utils.js → models/supabase/Composer/PerformanceAttendance/types.js} +0 -0
  347. /package/types/supabase/overwrites/{utils.d.ts → tables/common/index.d.ts} +0 -0
  348. /package/types/supabase/overwrites/{utils.ts → tables/common/index.ts} +0 -0
@@ -0,0 +1,45 @@
1
+ export declare const MARKETPLACE_CURRENCY_SYMBOL_LOCALES: {
2
+ readonly EUR: "de-DE";
3
+ readonly USD: "en-US";
4
+ readonly GBP: "en-GB";
5
+ readonly CHF: "de-CH";
6
+ readonly CAD: "en-CA";
7
+ readonly AUD: "en-AU";
8
+ readonly JPY: "ja-JP";
9
+ readonly SEK: "sv-SE";
10
+ readonly NOK: "nb-NO";
11
+ readonly DKK: "da-DK";
12
+ };
13
+ export type MarketplaceCurrencyCode = keyof typeof MARKETPLACE_CURRENCY_SYMBOL_LOCALES;
14
+ export declare const MARKETPLACE_CURRENCY_CODES: MarketplaceCurrencyCode[];
15
+ export interface CurrencyExchangeRateSnapshot {
16
+ baseCurrency: MarketplaceCurrencyCode;
17
+ targetCurrency: MarketplaceCurrencyCode;
18
+ rate: number;
19
+ rateDate: string;
20
+ provider: string;
21
+ fetchedAt: string;
22
+ }
23
+ export interface CurrencyDefaultingInput {
24
+ savedCurrency?: string | null;
25
+ country?: string | null;
26
+ locale?: string | null;
27
+ fallbackCurrency?: MarketplaceCurrencyCode;
28
+ }
29
+ export interface CurrencyConversionResult {
30
+ baseAmountCents: number;
31
+ baseCurrency: MarketplaceCurrencyCode;
32
+ convertedAmountCents: number;
33
+ targetCurrency: MarketplaceCurrencyCode;
34
+ rate: number;
35
+ rateDate: string;
36
+ rateProvider: string;
37
+ }
38
+ export declare const MARKETPLACE_CURRENCY_ROUNDING_CENTS: Record<MarketplaceCurrencyCode, number>;
39
+ export declare const isSupportedMarketplaceCurrency: (value: unknown) => value is MarketplaceCurrencyCode;
40
+ export declare const normalizeMarketplaceCurrency: (value: unknown) => MarketplaceCurrencyCode | undefined;
41
+ export declare const getCurrencyForCountry: (country: string | null | undefined) => MarketplaceCurrencyCode | undefined;
42
+ export declare const getDefaultMarketplaceCurrency: ({ savedCurrency, country, locale, fallbackCurrency, }: CurrencyDefaultingInput) => MarketplaceCurrencyCode;
43
+ export declare const roundMarketplaceCurrencyCents: (amountCents: number, currency: MarketplaceCurrencyCode) => number;
44
+ export declare const convertCurrencyCents: (baseAmountCents: number, rate: number, targetCurrency?: MarketplaceCurrencyCode) => number;
45
+ export declare const buildCurrencyConversionResult: (baseAmountCents: number, rateSnapshot: CurrencyExchangeRateSnapshot) => CurrencyConversionResult;
@@ -0,0 +1,119 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildCurrencyConversionResult = exports.convertCurrencyCents = exports.roundMarketplaceCurrencyCents = exports.getDefaultMarketplaceCurrency = exports.getCurrencyForCountry = exports.normalizeMarketplaceCurrency = exports.isSupportedMarketplaceCurrency = exports.MARKETPLACE_CURRENCY_ROUNDING_CENTS = exports.MARKETPLACE_CURRENCY_CODES = exports.MARKETPLACE_CURRENCY_SYMBOL_LOCALES = void 0;
4
+ exports.MARKETPLACE_CURRENCY_SYMBOL_LOCALES = {
5
+ EUR: 'de-DE',
6
+ USD: 'en-US',
7
+ GBP: 'en-GB',
8
+ CHF: 'de-CH',
9
+ CAD: 'en-CA',
10
+ AUD: 'en-AU',
11
+ JPY: 'ja-JP',
12
+ SEK: 'sv-SE',
13
+ NOK: 'nb-NO',
14
+ DKK: 'da-DK',
15
+ };
16
+ exports.MARKETPLACE_CURRENCY_CODES = Object.keys(exports.MARKETPLACE_CURRENCY_SYMBOL_LOCALES);
17
+ exports.MARKETPLACE_CURRENCY_ROUNDING_CENTS = {
18
+ EUR: 50,
19
+ USD: 100,
20
+ GBP: 100,
21
+ CHF: 100,
22
+ CAD: 100,
23
+ AUD: 100,
24
+ JPY: 10000,
25
+ SEK: 100,
26
+ NOK: 100,
27
+ DKK: 100,
28
+ };
29
+ const COUNTRY_CURRENCY_MAP = {
30
+ AD: 'EUR',
31
+ AT: 'EUR',
32
+ AU: 'AUD',
33
+ BE: 'EUR',
34
+ CA: 'CAD',
35
+ CH: 'CHF',
36
+ CY: 'EUR',
37
+ DE: 'EUR',
38
+ DK: 'DKK',
39
+ EE: 'EUR',
40
+ ES: 'EUR',
41
+ FI: 'EUR',
42
+ FR: 'EUR',
43
+ GB: 'GBP',
44
+ GR: 'EUR',
45
+ IE: 'EUR',
46
+ IT: 'EUR',
47
+ JP: 'JPY',
48
+ LT: 'EUR',
49
+ LU: 'EUR',
50
+ LV: 'EUR',
51
+ MT: 'EUR',
52
+ NL: 'EUR',
53
+ NO: 'NOK',
54
+ PT: 'EUR',
55
+ SE: 'SEK',
56
+ SI: 'EUR',
57
+ SK: 'EUR',
58
+ US: 'USD',
59
+ };
60
+ const isSupportedMarketplaceCurrency = (value) => typeof value === 'string' &&
61
+ exports.MARKETPLACE_CURRENCY_CODES.includes(value.trim().toUpperCase());
62
+ exports.isSupportedMarketplaceCurrency = isSupportedMarketplaceCurrency;
63
+ const normalizeMarketplaceCurrency = (value) => (0, exports.isSupportedMarketplaceCurrency)(value)
64
+ ? value.trim().toUpperCase()
65
+ : undefined;
66
+ exports.normalizeMarketplaceCurrency = normalizeMarketplaceCurrency;
67
+ const getCurrencyForCountry = (country) => {
68
+ if (!country)
69
+ return undefined;
70
+ return COUNTRY_CURRENCY_MAP[country.trim().toUpperCase()];
71
+ };
72
+ exports.getCurrencyForCountry = getCurrencyForCountry;
73
+ const getRegionFromLocale = (locale) => {
74
+ if (!locale)
75
+ return undefined;
76
+ const normalized = locale.replace('_', '-');
77
+ const parts = normalized.split('-');
78
+ return parts.find((part) => /^[A-Z]{2}$/.test(part) || /^[a-z]{2}$/.test(part))?.toUpperCase();
79
+ };
80
+ const getDefaultMarketplaceCurrency = ({ savedCurrency, country, locale, fallbackCurrency = 'EUR', }) => {
81
+ const saved = (0, exports.normalizeMarketplaceCurrency)(savedCurrency);
82
+ if (saved)
83
+ return saved;
84
+ const countryCurrency = (0, exports.getCurrencyForCountry)(country);
85
+ if (countryCurrency)
86
+ return countryCurrency;
87
+ const localeRegionCurrency = (0, exports.getCurrencyForCountry)(getRegionFromLocale(locale));
88
+ if (localeRegionCurrency)
89
+ return localeRegionCurrency;
90
+ return fallbackCurrency;
91
+ };
92
+ exports.getDefaultMarketplaceCurrency = getDefaultMarketplaceCurrency;
93
+ const roundMarketplaceCurrencyCents = (amountCents, currency) => {
94
+ const roundedCents = Math.round(amountCents);
95
+ const step = exports.MARKETPLACE_CURRENCY_ROUNDING_CENTS[currency] ?? 1;
96
+ if (roundedCents <= 0 || step <= 1)
97
+ return roundedCents;
98
+ return Math.max(step, Math.round(roundedCents / step) * step);
99
+ };
100
+ exports.roundMarketplaceCurrencyCents = roundMarketplaceCurrencyCents;
101
+ const convertCurrencyCents = (baseAmountCents, rate, targetCurrency) => {
102
+ const converted = baseAmountCents * rate;
103
+ return targetCurrency
104
+ ? (0, exports.roundMarketplaceCurrencyCents)(converted, targetCurrency)
105
+ : Math.round(converted);
106
+ };
107
+ exports.convertCurrencyCents = convertCurrencyCents;
108
+ const buildCurrencyConversionResult = (baseAmountCents, rateSnapshot) => ({
109
+ baseAmountCents,
110
+ baseCurrency: rateSnapshot.baseCurrency,
111
+ convertedAmountCents: rateSnapshot.baseCurrency === rateSnapshot.targetCurrency
112
+ ? baseAmountCents
113
+ : (0, exports.convertCurrencyCents)(baseAmountCents, rateSnapshot.rate, rateSnapshot.targetCurrency),
114
+ targetCurrency: rateSnapshot.targetCurrency,
115
+ rate: rateSnapshot.rate,
116
+ rateDate: rateSnapshot.rateDate,
117
+ rateProvider: rateSnapshot.provider,
118
+ });
119
+ exports.buildCurrencyConversionResult = buildCurrencyConversionResult;
@@ -0,0 +1,12 @@
1
+ import { NodeRow, Table } from './types';
2
+ export declare const roots: <IdType extends string, TableType extends Table<IdType>>(tbl: TableType) => IdType[];
3
+ export declare const childrenOf: <IdType extends string, TableType extends Table<IdType>>(tbl: TableType, parentId: IdType) => IdType[];
4
+ export declare const ancestors: <IdType extends string, TableType extends Table<IdType>>(tbl: TableType, id: IdType) => IdType[];
5
+ export declare const descendants: <IdType extends string, TableType extends Table<IdType>>(tbl: TableType, id: IdType) => IdType[];
6
+ export declare const leafIds: <IdType extends string, TableType extends Table<IdType>>(table: TableType) => IdType[];
7
+ export declare const pathOf: <IdType extends string, TableType extends Table<IdType>>(tbl: TableType, id: IdType) => IdType[];
8
+ export declare function normalizeSelection<IdType extends string, TableType extends Table<IdType>>(tbl: TableType, selectedIds: IdType[] | undefined, options?: {
9
+ includeDescendants?: boolean;
10
+ }): Set<IdType>;
11
+ export declare function makePredicateForProperty<IdType extends string>(key: keyof NodeRow<IdType>, allowed: Set<IdType>): (row: NodeRow<IdType>) => boolean;
12
+ export declare const breadcrumb: <IdType extends string, TableType extends Table<IdType>>(tbl: TableType, id: IdType, resolve: (k: string) => string, sep?: string) => string;
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.breadcrumb = exports.pathOf = exports.leafIds = exports.descendants = exports.ancestors = exports.childrenOf = exports.roots = void 0;
4
+ exports.normalizeSelection = normalizeSelection;
5
+ exports.makePredicateForProperty = makePredicateForProperty;
6
+ const roots = (tbl) => Object.values(tbl)
7
+ .filter((n) => !n.parentId)
8
+ .map((n) => n.id);
9
+ exports.roots = roots;
10
+ const childrenOf = (tbl, parentId) => Object.values(tbl)
11
+ .filter((n) => n.parentId === parentId)
12
+ .sort((a, b) => (a.order ?? 0) - (b.order ?? 0))
13
+ .map((n) => n.id);
14
+ exports.childrenOf = childrenOf;
15
+ const ancestors = (tbl, id) => {
16
+ const out = [];
17
+ let cur = tbl[id];
18
+ while (cur?.parentId) {
19
+ out.unshift(cur.parentId);
20
+ cur = tbl[cur.parentId];
21
+ }
22
+ return out;
23
+ };
24
+ exports.ancestors = ancestors;
25
+ const descendants = (tbl, id) => {
26
+ const out = [];
27
+ const stack = [...(0, exports.childrenOf)(tbl, id)];
28
+ while (stack.length) {
29
+ const x = stack.pop();
30
+ out.push(x);
31
+ stack.push(...(0, exports.childrenOf)(tbl, x));
32
+ }
33
+ return out;
34
+ };
35
+ exports.descendants = descendants;
36
+ const leafIds = (table) => {
37
+ const rows = Object.values(table);
38
+ const parentIds = new Set(rows.map((row) => row.parentId).filter((pid) => !!pid));
39
+ return rows.filter((row) => !parentIds.has(row.id)).map((row) => row.id);
40
+ };
41
+ exports.leafIds = leafIds;
42
+ const pathOf = (tbl, id) => [...(0, exports.ancestors)(tbl, id), id];
43
+ exports.pathOf = pathOf;
44
+ // Expand selection (optionally include descendants)
45
+ function normalizeSelection(tbl, selectedIds, options) {
46
+ const ids = new Set();
47
+ (selectedIds ?? []).forEach((id) => {
48
+ ids.add(id);
49
+ if (options?.includeDescendants) {
50
+ (0, exports.descendants)(tbl, id).forEach((d) => ids.add(d));
51
+ }
52
+ });
53
+ return ids;
54
+ }
55
+ // Predicate to filter array of entities by property
56
+ function makePredicateForProperty(key, allowed) {
57
+ return (row) => {
58
+ if (allowed.size === 0)
59
+ return true;
60
+ const val = row[key];
61
+ if (Array.isArray(val)) {
62
+ return val.some((x) => typeof x === 'string' && allowed.has(x));
63
+ }
64
+ return typeof val === 'string' && allowed.has(val);
65
+ };
66
+ }
67
+ // Build breadcrumb text (resolved labels joined by separator)
68
+ const breadcrumb = (tbl, id, resolve, sep = ' › ') => (0, exports.pathOf)(tbl, id)
69
+ .map((x) => resolve(tbl[x].labelKey))
70
+ .join(sep);
71
+ exports.breadcrumb = breadcrumb;
@@ -0,0 +1,14 @@
1
+ export interface NodeRow<IdType extends string> {
2
+ id: IdType;
3
+ labelKey: string;
4
+ parentId?: IdType;
5
+ order?: number;
6
+ meta?: Record<string, unknown>;
7
+ }
8
+ export type LeafIds<T> = Exclude<keyof T, {
9
+ [K in keyof T]: T[K] extends {
10
+ parentId: infer P;
11
+ } ? P : never;
12
+ }[keyof T]>;
13
+ export declare const defineTable: <IdType extends string, const T extends Record<IdType, NodeRow<IdType>>>(table: T) => T;
14
+ export type Table<IdType extends string, T = NodeRow<IdType>> = Record<IdType, T>;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defineTable = void 0;
4
+ const defineTable = (table) => table;
5
+ exports.defineTable = defineTable;
package/helpers/dlinks.js CHANGED
@@ -9,4 +9,4 @@ var DLinkActions;
9
9
  DLinkActions["Event"] = "event";
10
10
  DLinkActions["RollCall"] = "rollcall";
11
11
  DLinkActions["Offer"] = "offer";
12
- })(DLinkActions = exports.DLinkActions || (exports.DLinkActions = {}));
12
+ })(DLinkActions || (exports.DLinkActions = DLinkActions = {}));
@@ -29,6 +29,7 @@ export declare enum HttpsErrorMessages {
29
29
  InvalidPartnership = "error.partnership.noValid",
30
30
  InvalidAdminPartnership = "error.partnership.noAdmin",
31
31
  InvalidPartnershipLastAdmin = "error.partnership.lastAdmin",
32
+ InvalidComposer = "error.composer.noValid",
32
33
  PartnershipSepaCreditorInfoMissing = "error.partnership.sepaCreditorInfoMissing",
33
34
  InvalidPartnershipPartner = "error.partnershipPartner.noValid",
34
35
  PartnershipPartnerNotSelf = "error.partnershipPartner.notSelf",
package/helpers/errors.js CHANGED
@@ -30,6 +30,7 @@ var HttpsErrorMessages;
30
30
  HttpsErrorMessages["InvalidPartnership"] = "error.partnership.noValid";
31
31
  HttpsErrorMessages["InvalidAdminPartnership"] = "error.partnership.noAdmin";
32
32
  HttpsErrorMessages["InvalidPartnershipLastAdmin"] = "error.partnership.lastAdmin";
33
+ HttpsErrorMessages["InvalidComposer"] = "error.composer.noValid";
33
34
  HttpsErrorMessages["PartnershipSepaCreditorInfoMissing"] = "error.partnership.sepaCreditorInfoMissing";
34
35
  HttpsErrorMessages["InvalidPartnershipPartner"] = "error.partnershipPartner.noValid";
35
36
  HttpsErrorMessages["PartnershipPartnerNotSelf"] = "error.partnershipPartner.notSelf";
@@ -71,4 +72,4 @@ var HttpsErrorMessages;
71
72
  HttpsErrorMessages["CustomerHasGroups"] = "error.customer.hasGroups";
72
73
  HttpsErrorMessages["GroupPlayerEditInstumentsNotAllowed"] = "error.groupPlayer.editInstrumentsNotAllowed";
73
74
  HttpsErrorMessages["InvalidEmail"] = "error.email.noValid";
74
- })(HttpsErrorMessages = exports.HttpsErrorMessages || (exports.HttpsErrorMessages = {}));
75
+ })(HttpsErrorMessages || (exports.HttpsErrorMessages = HttpsErrorMessages = {}));
@@ -0,0 +1,12 @@
1
+ import { CollectionNames } from './collections';
2
+ export type ExternalUrlParams = Record<string, string | undefined>;
3
+ export declare const normalizeExternalHost: (host: string) => string;
4
+ export declare const buildExternalUrl: (host: string, path?: string) => string;
5
+ export declare const buildExternalUrlWithParams: (host: string, path?: string, params?: ExternalUrlParams) => string;
6
+ export declare const buildAdminEntityUrl: (adminHost: string, entity: CollectionNames, id: string) => string;
7
+ export declare const buildGroupInvitationUrl: (landingHost: string, groupId: string) => string;
8
+ export declare const buildGroupUrl: (landingHost: string, groupId: string) => string;
9
+ export declare const buildGroupShortDynamicUrl: (appHost: string, username: string) => string;
10
+ export declare const buildRollcallUrl: (landingHost: string, groupId: string) => string;
11
+ export declare const buildEventInvitationUrl: (landingHost: string, eventId: string) => string;
12
+ export declare const buildEventUrl: (landingHost: string, eventId: string) => string;
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildEventUrl = exports.buildEventInvitationUrl = exports.buildRollcallUrl = exports.buildGroupShortDynamicUrl = exports.buildGroupUrl = exports.buildGroupInvitationUrl = exports.buildAdminEntityUrl = exports.buildExternalUrlWithParams = exports.buildExternalUrl = exports.normalizeExternalHost = void 0;
4
+ const dlinks_1 = require("./dlinks");
5
+ const normalizeExternalHost = (host) => host.trim().replace(/\/+$/, '');
6
+ exports.normalizeExternalHost = normalizeExternalHost;
7
+ const buildExternalUrl = (host, path = '') => {
8
+ const normalizedHost = (0, exports.normalizeExternalHost)(host);
9
+ if (!path)
10
+ return normalizedHost;
11
+ if (path.startsWith('?') || path.startsWith('#')) {
12
+ return `${normalizedHost}${path}`;
13
+ }
14
+ return `${normalizedHost}/${path.replace(/^\/+/, '')}`;
15
+ };
16
+ exports.buildExternalUrl = buildExternalUrl;
17
+ const buildExternalUrlWithParams = (host, path = '', params = {}) => {
18
+ const url = new URL((0, exports.buildExternalUrl)(host, path));
19
+ Object.entries(params).forEach(([key, value]) => {
20
+ if (value) {
21
+ url.searchParams.set(key, value);
22
+ }
23
+ });
24
+ return url.href;
25
+ };
26
+ exports.buildExternalUrlWithParams = buildExternalUrlWithParams;
27
+ const buildAdminEntityUrl = (adminHost, entity, id) => new URL(`/${entity}s/${id}`, `${(0, exports.normalizeExternalHost)(adminHost)}/`).href;
28
+ exports.buildAdminEntityUrl = buildAdminEntityUrl;
29
+ const buildGroupInvitationUrl = (landingHost, groupId) => (0, exports.buildExternalUrl)(landingHost, `/${dlinks_1.DLinkActions.JoinGroup}/${groupId}`);
30
+ exports.buildGroupInvitationUrl = buildGroupInvitationUrl;
31
+ const buildGroupUrl = (landingHost, groupId) => (0, exports.buildExternalUrl)(landingHost, `/${dlinks_1.DLinkActions.Group}/${groupId}`);
32
+ exports.buildGroupUrl = buildGroupUrl;
33
+ const buildGroupShortDynamicUrl = (appHost, username) => (0, exports.buildExternalUrl)(appHost, `/group/${username}`);
34
+ exports.buildGroupShortDynamicUrl = buildGroupShortDynamicUrl;
35
+ const buildRollcallUrl = (landingHost, groupId) => (0, exports.buildExternalUrl)(landingHost, `/${dlinks_1.DLinkActions.RollCall}/${groupId}`);
36
+ exports.buildRollcallUrl = buildRollcallUrl;
37
+ const buildEventInvitationUrl = (landingHost, eventId) => (0, exports.buildExternalUrl)(landingHost, `/${dlinks_1.DLinkActions.JoinEvent}/${eventId}`);
38
+ exports.buildEventInvitationUrl = buildEventInvitationUrl;
39
+ const buildEventUrl = (landingHost, eventId) => (0, exports.buildExternalUrl)(landingHost, `/${dlinks_1.DLinkActions.Event}/${eventId}`);
40
+ exports.buildEventUrl = buildEventUrl;
@@ -1,3 +1,4 @@
1
+ import { Ordered } from '../objects';
1
2
  export declare enum DefaultInstrumentId {
2
3
  Accordion = "accordion",
3
4
  Agogo = "agogo",
@@ -44,6 +45,7 @@ export declare enum DefaultInstrumentId {
44
45
  DrumSet = "drumSet",
45
46
  Dulzaina = "dulzaina",
46
47
  DulzainaFa = "dulzaina-fa",
48
+ Electronics = "electronics",
47
49
  ElectricGuitar = "electricGuitar",
48
50
  EnglishHorn = "englishHorn",
49
51
  Escort = "escort",
@@ -83,6 +85,7 @@ export declare enum DefaultInstrumentId {
83
85
  MezzoSoprano = "mezzosoproano",
84
86
  Multipercussion = "multipercussion",
85
87
  MusicConductor = "musicConductor",
88
+ Narrator = "narrator",
86
89
  Oboe = "oboe",
87
90
  Oboe1 = "oboe-1",
88
91
  Oboe2 = "oboe-2",
@@ -145,3 +148,17 @@ export declare const getVoicesOf: (id: DefaultInstrumentId) => DefaultInstrument
145
148
  export declare const InstrumentIcons: Record<DefaultInstrumentId, string>;
146
149
  export type CustomInstrumentId = `customInstrument-${string}`;
147
150
  export type InstrumentId = CustomInstrumentId | DefaultInstrumentId;
151
+ export interface CustomInstrument extends Ordered {
152
+ icon: string;
153
+ name: string;
154
+ basedOnInstrument: DefaultInstrumentId;
155
+ }
156
+ export interface ACustomInstrument extends CustomInstrument {
157
+ id: CustomInstrumentId;
158
+ }
159
+ export type DefaultInstrument = Ordered;
160
+ export interface ADefaultInstrument extends DefaultInstrument {
161
+ id: DefaultInstrumentId;
162
+ }
163
+ export type AInstrument = ADefaultInstrument | ACustomInstrument;
164
+ export type InstrumentsRecord = Partial<Record<DefaultInstrumentId, DefaultInstrument>> & Record<CustomInstrumentId, CustomInstrument>;
@@ -48,6 +48,7 @@ var DefaultInstrumentId;
48
48
  DefaultInstrumentId["DrumSet"] = "drumSet";
49
49
  DefaultInstrumentId["Dulzaina"] = "dulzaina";
50
50
  DefaultInstrumentId["DulzainaFa"] = "dulzaina-fa";
51
+ DefaultInstrumentId["Electronics"] = "electronics";
51
52
  DefaultInstrumentId["ElectricGuitar"] = "electricGuitar";
52
53
  DefaultInstrumentId["EnglishHorn"] = "englishHorn";
53
54
  DefaultInstrumentId["Escort"] = "escort";
@@ -87,6 +88,7 @@ var DefaultInstrumentId;
87
88
  DefaultInstrumentId["MezzoSoprano"] = "mezzosoproano";
88
89
  DefaultInstrumentId["Multipercussion"] = "multipercussion";
89
90
  DefaultInstrumentId["MusicConductor"] = "musicConductor";
91
+ DefaultInstrumentId["Narrator"] = "narrator";
90
92
  DefaultInstrumentId["Oboe"] = "oboe";
91
93
  DefaultInstrumentId["Oboe1"] = "oboe-1";
92
94
  DefaultInstrumentId["Oboe2"] = "oboe-2";
@@ -143,7 +145,7 @@ var DefaultInstrumentId;
143
145
  DefaultInstrumentId["Violin1"] = "violin-1";
144
146
  DefaultInstrumentId["Violin2"] = "violin-2";
145
147
  DefaultInstrumentId["Xylophone"] = "xylophone";
146
- })(DefaultInstrumentId = exports.DefaultInstrumentId || (exports.DefaultInstrumentId = {}));
148
+ })(DefaultInstrumentId || (exports.DefaultInstrumentId = DefaultInstrumentId = {}));
147
149
  exports.voicesByInstrument = {
148
150
  [DefaultInstrumentId.Bassoon]: [DefaultInstrumentId.Bassoon1, DefaultInstrumentId.Bassoon2],
149
151
  [DefaultInstrumentId.Cello]: [DefaultInstrumentId.Cello1, DefaultInstrumentId.Cello2],
@@ -242,6 +244,7 @@ exports.InstrumentIcons = {
242
244
  [DefaultInstrumentId.DrumSet]: 'drumSet',
243
245
  [DefaultInstrumentId.Dulzaina]: 'dulzaina',
244
246
  [DefaultInstrumentId.DulzainaFa]: 'dulzaina',
247
+ [DefaultInstrumentId.Electronics]: 'electronics',
245
248
  [DefaultInstrumentId.ElectricGuitar]: 'guitarElectric',
246
249
  [DefaultInstrumentId.EnglishHorn]: 'clarinet',
247
250
  [DefaultInstrumentId.Escort]: 'auxiliar',
@@ -281,6 +284,7 @@ exports.InstrumentIcons = {
281
284
  [DefaultInstrumentId.Mellophone2]: 'frenchHorn',
282
285
  [DefaultInstrumentId.Multipercussion]: 'drumSnare',
283
286
  [DefaultInstrumentId.MusicConductor]: 'bandmastersMace',
287
+ [DefaultInstrumentId.Narrator]: 'narrator',
284
288
  [DefaultInstrumentId.Oboe]: 'oboe',
285
289
  [DefaultInstrumentId.Oboe1]: 'oboe',
286
290
  [DefaultInstrumentId.Oboe2]: 'oboe',
@@ -1,6 +1,6 @@
1
+ import { InstrumentsRecord } from '.';
1
2
  import { LanguagesTypes } from '../../lang';
2
- import Group from '../../models/Group';
3
3
  import Instrument from '../../models/Instrument';
4
- import GroupInstrument from '../../models/Instrument/group';
4
+ import InstrumentFromRecord from '../../models/Instrument/fromRecord';
5
5
  export declare const list: (lang: LanguagesTypes) => Instrument[];
6
- export declare const listWithCustom: (groupInstruments: Group['instruments'], lang: LanguagesTypes) => GroupInstrument[];
6
+ export declare const listWithCustom: (instrumentsRecord: InstrumentsRecord, lang: LanguagesTypes) => InstrumentFromRecord[];
@@ -6,16 +6,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.listWithCustom = exports.list = void 0;
7
7
  const _1 = require(".");
8
8
  const Instrument_1 = __importDefault(require("../../models/Instrument"));
9
- const group_1 = __importDefault(require("../../models/Instrument/group"));
9
+ const fromRecord_1 = __importDefault(require("../../models/Instrument/fromRecord"));
10
10
  const objects_1 = require("../objects");
11
11
  const hideInstruments = [_1.DefaultInstrumentId.DJ, _1.DefaultInstrumentId.Choir];
12
12
  const list = (lang) => Object.values(_1.DefaultInstrumentId)
13
13
  .filter((id) => !hideInstruments.includes(id))
14
14
  .map((id) => new Instrument_1.default(id, lang));
15
15
  exports.list = list;
16
- const listWithCustom = (groupInstruments, lang) => {
17
- const groupInstrumentsIds = (0, objects_1.orderedMapToArray)(groupInstruments).map(({ id }) => id);
18
- const others = Object.values(_1.DefaultInstrumentId).filter((id) => !groupInstrumentsIds.includes(id) && !hideInstruments.includes(id));
19
- return [...groupInstrumentsIds, ...others].map((id) => new group_1.default(id, lang, groupInstruments));
16
+ const listWithCustom = (instrumentsRecord, lang) => {
17
+ const instrumentsIds = (0, objects_1.orderedMapToArray)(instrumentsRecord).map(({ id }) => id);
18
+ const others = Object.values(_1.DefaultInstrumentId).filter((id) => !instrumentsIds.includes(id) && !hideInstruments.includes(id));
19
+ return [...instrumentsIds, ...others].map((id) => new fromRecord_1.default(id, lang, instrumentsRecord));
20
20
  };
21
21
  exports.listWithCustom = listWithCustom;
@@ -5,15 +5,33 @@ export declare enum MusicStyleId {
5
5
  Orchestra = "orquesta-sinfonica",
6
6
  Band = "banda-de-musica",
7
7
  MarchingBand = "marching-band",
8
+ Choir = "coro",
9
+ BrassBand = "brass-band",
8
10
  BigBand = "big-band",
9
- JazzBand = "jazz-band",
11
+ PipeBand = "banda-de-gaitas",
12
+ BandaCornetasYTambores = "banda-cornetas-y-tambores",
13
+ AgrupacionMusical = "agrupacion-musical",
14
+ StringQuartet = "cuarteto-cuerda",
15
+ StringQuintet = "quinteto-cuerda",
16
+ WoodwindQuintet = "quinteto-viento",
17
+ SaxophoneQuartet = "cuarteto-saxofones",
18
+ ClarinetQuartet = "cuarteto-clarinetes",
19
+ BrassQuintet = "quinteto-metales",
20
+ StringEnsemble = "ensemble-cuerda",
21
+ WoodwindEnsemble = "ensemble-madera",
22
+ BrassEnsemble = "ensemble-metales",
23
+ PercussionEnsemble = "ensemble-percusion",
24
+ ChamberGroup = "grupo-de-camara",
10
25
  Colla = "colla",
11
26
  TxistularisBand = "txistularis",
12
- BandaCornetasYTambores = "banda-cornetas-y-tambores",
27
+ Cobla = "cobla",
28
+ Rondalla = "rondalla",
13
29
  Charanga = "charanga",
14
- Choir = "coro",
15
30
  Batucada = "batucada",
16
- AgrupacionMusical = "agrupacion-musical"
31
+ JazzCombo = "jazz-combo",
32
+ JazzBand = "jazz-band",
33
+ RockPopBand = "grupo-rock-pop",
34
+ FlexBand = "flex-band"
17
35
  }
18
36
  export declare const musicStylesIcon: Record<MusicStyleId, DefaultInstrumentId>;
19
37
  export declare const MusicStylesCover: Record<MusicStyleId, string>;