@glissandoo/lib 1.115.0 → 1.116.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 +1 -3
  2. package/functions/customer.d.ts +0 -4
  3. package/functions/event.js +1 -1
  4. package/functions/eventPlayer.js +1 -1
  5. package/functions/eventRepertory.d.ts +0 -2
  6. package/functions/eventRepertory.js +1 -1
  7. package/functions/groupRepertory.d.ts +0 -110
  8. package/functions/index.d.ts +0 -30
  9. package/functions/index.js +1 -31
  10. package/functions/misc.d.ts +0 -6
  11. package/functions/regions.js +1 -31
  12. package/helpers/appScenes.js +1 -1
  13. package/helpers/auth.d.ts +9 -2
  14. package/helpers/auth.js +14 -33
  15. package/helpers/badges.js +1 -1
  16. package/helpers/collections.js +2 -2
  17. package/helpers/communicationTemplate/index.d.ts +2 -3
  18. package/helpers/communicationTemplate/index.js +5 -5
  19. package/helpers/dlinks.js +1 -1
  20. package/helpers/errors.d.ts +0 -1
  21. package/helpers/errors.js +1 -2
  22. package/helpers/glissandooAdmin.d.ts +3 -0
  23. package/helpers/glissandooAdmin.js +6 -0
  24. package/helpers/instruments/index.d.ts +0 -17
  25. package/helpers/instruments/index.js +1 -5
  26. package/helpers/instruments/lists.d.ts +3 -3
  27. package/helpers/instruments/lists.js +5 -5
  28. package/helpers/musicStyles/index.d.ts +4 -22
  29. package/helpers/musicStyles/index.js +35 -114
  30. package/helpers/notifications/index.js +1 -1
  31. package/helpers/objects.d.ts +1 -5
  32. package/helpers/objects.js +6 -7
  33. package/helpers/plans.js +2 -2
  34. package/helpers/rates.d.ts +1 -1
  35. package/helpers/slate.d.ts +5 -64
  36. package/helpers/slate.js +1 -7
  37. package/helpers/ts-extras/array-includes.js +2 -1
  38. package/helpers/ts-extras/as-mutable.js +2 -1
  39. package/helpers/ts-extras/assert-error.js +2 -1
  40. package/helpers/ts-extras/index.js +1 -1
  41. package/helpers/ts-extras/is-defined.js +2 -1
  42. package/helpers/ts-extras/is-empty.js +2 -1
  43. package/helpers/ts-extras/is-infinite.js +2 -1
  44. package/helpers/ts-extras/is-present.js +2 -1
  45. package/helpers/ts-extras/object-entries.d.ts +1 -1
  46. package/helpers/ts-extras/object-from-entries.d.ts +1 -1
  47. package/helpers/ts-extras/object-has-own.js +2 -1
  48. package/helpers/ts-extras/object-keys.d.ts +1 -1
  49. package/helpers/ts-extras/object-keys.js +1 -0
  50. package/helpers/ts-extras/set-has.js +2 -1
  51. package/helpers/types.d.ts +0 -26
  52. package/helpers/types.js +5 -25
  53. package/lang/ca.json +91 -325
  54. package/lang/de.json +91 -325
  55. package/lang/en.json +91 -325
  56. package/lang/es.json +91 -325
  57. package/lang/eu.json +91 -325
  58. package/lang/fr.json +91 -325
  59. package/lang/gl.json +91 -325
  60. package/lang/index.js +2 -3
  61. package/lang/it.json +91 -325
  62. package/lang/nl.json +91 -325
  63. package/lang/pt.json +91 -325
  64. package/models/Communication/types.d.ts +16 -0
  65. package/models/Communication/types.js +9 -3
  66. package/models/Counters/Group/Analytics/types.js +1 -1
  67. package/models/Customer/index.d.ts +1 -1
  68. package/models/Customer/index.js +3 -3
  69. package/models/Customer/types.js +1 -1
  70. package/models/Evento/Player/types.js +3 -3
  71. package/models/Evento/Repertory/types.d.ts +1 -2
  72. package/models/Evento/index.d.ts +2 -3
  73. package/models/Evento/index.js +4 -5
  74. package/models/Evento/types.d.ts +31 -2
  75. package/models/Evento/types.js +39 -8
  76. package/models/Federation/index.d.ts +1 -1
  77. package/models/Federation/index.js +3 -3
  78. package/models/Group/Analytics/types.js +1 -1
  79. package/models/Group/Player/types.js +1 -1
  80. package/models/Group/Repertory/File/Section/index.d.ts +3 -3
  81. package/models/Group/Repertory/File/Section/index.js +2 -3
  82. package/models/Group/Repertory/File/Section/types.d.ts +0 -7
  83. package/models/Group/Repertory/File/Section/types.js +1 -1
  84. package/models/Group/Repertory/File/index.d.ts +2 -4
  85. package/models/Group/Repertory/File/index.js +4 -4
  86. package/models/Group/Repertory/FilePath/index.d.ts +4 -3
  87. package/models/Group/Repertory/index.d.ts +4 -12
  88. package/models/Group/Repertory/index.js +0 -9
  89. package/models/Group/Repertory/types.d.ts +32 -21
  90. package/models/Group/Repertory/types.js +18 -8
  91. package/models/Group/index.d.ts +13 -15
  92. package/models/Group/index.js +15 -16
  93. package/models/Group/types.d.ts +66 -6
  94. package/models/Group/types.js +50 -8
  95. package/models/Instrument/{fromRecord.d.ts → group.d.ts} +5 -4
  96. package/models/Instrument/{fromRecord.js → group.js} +10 -10
  97. package/models/Instrument/index.d.ts +0 -2
  98. package/models/Instrument/index.js +1 -38
  99. package/models/Inventory/Item/types.js +2 -2
  100. package/models/Inventory/types.js +1 -1
  101. package/models/Notification/types.js +2 -2
  102. package/models/Offer/types.d.ts +12 -0
  103. package/models/Offer/types.js +15 -2
  104. package/models/Partnership/Partner/types.js +1 -1
  105. package/models/Partnership/Payment/types.js +2 -2
  106. package/models/Partnership/index.d.ts +1 -1
  107. package/models/Partnership/index.js +3 -3
  108. package/models/Partnership/types.js +1 -1
  109. package/models/Repertory/types.d.ts +0 -12
  110. package/models/Repertory/types.js +2 -2
  111. package/models/User/Group/index.js +2 -1
  112. package/models/User/index.d.ts +1 -1
  113. package/models/User/index.js +3 -3
  114. package/models/User/types.d.ts +1 -2
  115. package/models/User/types.js +7 -7
  116. package/models/WebhookEvent/types.js +1 -1
  117. package/package.json +20 -28
  118. package/types/firestore.d.ts +1 -0
  119. package/types/firestore.js +1 -1
  120. package/types/supabase/generated.d.ts +545 -3113
  121. package/types/supabase/generated.js +0 -9
  122. package/types/supabase/generated.ts +581 -3080
  123. package/types/supabase/index.d.ts +19 -155
  124. package/types/supabase/index.js +0 -15
  125. package/types/supabase/index.ts +21 -288
  126. package/types/supabase/overwrites/comm.d.ts +18 -0
  127. package/types/supabase/overwrites/comm.ts +18 -0
  128. package/types/supabase/overwrites/comm_history.d.ts +10 -0
  129. package/types/supabase/overwrites/comm_history.ts +10 -0
  130. package/types/supabase/overwrites/{tables/event/index.d.ts → event.d.ts} +1 -1
  131. package/types/supabase/overwrites/{tables/event/index.ts → event.ts} +1 -1
  132. package/types/supabase/overwrites/event_history.d.ts +10 -0
  133. package/types/supabase/overwrites/event_history.ts +10 -0
  134. package/types/supabase/overwrites/{tables/group/index.d.ts → group.d.ts} +5 -2
  135. package/types/supabase/overwrites/{tables/group/index.ts → group.ts} +6 -2
  136. package/types/supabase/overwrites/group_history.d.ts +9 -0
  137. package/types/supabase/overwrites/group_history.ts +9 -0
  138. package/types/supabase/overwrites/index.d.ts +1 -1
  139. package/types/supabase/overwrites/index.ts +1 -1
  140. package/types/supabase/overwrites/{tables/offer/index.d.ts → offer.d.ts} +2 -6
  141. package/types/supabase/overwrites/{tables/offer/index.ts → offer.ts} +2 -7
  142. package/types/supabase/overwrites/offer_history.d.ts +10 -0
  143. package/types/supabase/overwrites/offer_history.ts +10 -0
  144. package/types/supabase/overwrites/repertoire.d.ts +12 -0
  145. package/types/supabase/overwrites/repertoire.ts +12 -0
  146. package/types/supabase/overwrites/repertoire_history.d.ts +10 -0
  147. package/types/supabase/overwrites/repertoire_history.ts +10 -0
  148. package/functions/composer.d.ts +0 -13
  149. package/functions/composerComposition.d.ts +0 -102
  150. package/functions/composerNotification.d.ts +0 -38
  151. package/functions/composerPayout.d.ts +0 -20
  152. package/helpers/catalogBridge.d.ts +0 -121
  153. package/helpers/catalogBridge.js +0 -95
  154. package/helpers/compositionCategories/genres.d.ts +0 -922
  155. package/helpers/compositionCategories/genres.js +0 -940
  156. package/helpers/compositionCategories/index.d.ts +0 -2
  157. package/helpers/compositionCategories/index.js +0 -18
  158. package/helpers/compositionCategories/styles.d.ts +0 -181
  159. package/helpers/compositionCategories/styles.js +0 -197
  160. package/helpers/compositionSoloistOffstageParts/index.d.ts +0 -34
  161. package/helpers/compositionSoloistOffstageParts/index.js +0 -117
  162. package/helpers/currency.d.ts +0 -19
  163. package/helpers/currency.js +0 -85
  164. package/helpers/currencyConversion.d.ts +0 -45
  165. package/helpers/currencyConversion.js +0 -119
  166. package/helpers/dataStructures/trees/index.d.ts +0 -12
  167. package/helpers/dataStructures/trees/index.js +0 -71
  168. package/helpers/dataStructures/trees/types.d.ts +0 -14
  169. package/helpers/dataStructures/trees/types.js +0 -5
  170. package/helpers/externalUrls.d.ts +0 -12
  171. package/helpers/externalUrls.js +0 -40
  172. package/models/CompositionGenre/index.d.ts +0 -9
  173. package/models/CompositionGenre/index.js +0 -16
  174. package/models/CompositionStyle/index.d.ts +0 -9
  175. package/models/CompositionStyle/index.js +0 -16
  176. package/models/supabase/Comm/index.d.ts +0 -24
  177. package/models/supabase/Comm/index.js +0 -68
  178. package/models/supabase/Comm/types.d.ts +0 -6
  179. package/models/supabase/CommHistory/index.d.ts +0 -22
  180. package/models/supabase/CommHistory/index.js +0 -37
  181. package/models/supabase/CommHistory/types.d.ts +0 -11
  182. package/models/supabase/CommHistory/types.js +0 -9
  183. package/models/supabase/Composer/Composition/Acquisition/index.d.ts +0 -4
  184. package/models/supabase/Composer/Composition/Acquisition/index.js +0 -9
  185. package/models/supabase/Composer/Composition/Acquisition/types.d.ts +0 -36
  186. package/models/supabase/Composer/Composition/Favorite/index.d.ts +0 -4
  187. package/models/supabase/Composer/Composition/Favorite/index.js +0 -9
  188. package/models/supabase/Composer/Composition/Favorite/types.d.ts +0 -6
  189. package/models/supabase/Composer/Composition/View/index.d.ts +0 -4
  190. package/models/supabase/Composer/Composition/View/index.js +0 -9
  191. package/models/supabase/Composer/Composition/View/types.d.ts +0 -6
  192. package/models/supabase/Composer/Composition/index.d.ts +0 -5284
  193. package/models/supabase/Composer/Composition/index.js +0 -166
  194. package/models/supabase/Composer/Composition/types.d.ts +0 -96
  195. package/models/supabase/Composer/Composition/types.js +0 -32
  196. package/models/supabase/Composer/Notification/index.d.ts +0 -4
  197. package/models/supabase/Composer/Notification/index.js +0 -9
  198. package/models/supabase/Composer/Notification/types.d.ts +0 -39
  199. package/models/supabase/Composer/Notification/types.js +0 -27
  200. package/models/supabase/Composer/Payout/index.d.ts +0 -4
  201. package/models/supabase/Composer/Payout/index.js +0 -9
  202. package/models/supabase/Composer/Payout/status.d.ts +0 -1
  203. package/models/supabase/Composer/Payout/types.d.ts +0 -5
  204. package/models/supabase/Composer/PerformanceAttendance/types.d.ts +0 -4
  205. package/models/supabase/Composer/index.d.ts +0 -78
  206. package/models/supabase/Composer/index.js +0 -105
  207. package/models/supabase/Composer/types.d.ts +0 -6
  208. package/models/supabase/Composer/types.js +0 -2
  209. package/models/supabase/EventHistory/index.d.ts +0 -22
  210. package/models/supabase/EventHistory/index.js +0 -37
  211. package/models/supabase/EventHistory/types.d.ts +0 -36
  212. package/models/supabase/EventHistory/types.js +0 -34
  213. package/models/supabase/GroupHistory/index.d.ts +0 -21
  214. package/models/supabase/GroupHistory/index.js +0 -34
  215. package/models/supabase/GroupHistory/types.d.ts +0 -27
  216. package/models/supabase/GroupHistory/types.js +0 -25
  217. package/models/supabase/Model/index.d.ts +0 -10
  218. package/models/supabase/Model/index.js +0 -21
  219. package/models/supabase/OfferHistory/index.d.ts +0 -22
  220. package/models/supabase/OfferHistory/index.js +0 -37
  221. package/models/supabase/OfferHistory/types.d.ts +0 -18
  222. package/models/supabase/OfferHistory/types.js +0 -16
  223. package/models/supabase/Repertoire/index.d.ts +0 -16
  224. package/models/supabase/Repertoire/index.js +0 -43
  225. package/models/supabase/Repertoire/types.d.ts +0 -6
  226. package/models/supabase/Repertoire/types.js +0 -2
  227. package/models/supabase/RepertoireHistory/index.d.ts +0 -22
  228. package/models/supabase/RepertoireHistory/index.js +0 -37
  229. package/models/supabase/RepertoireHistory/types.d.ts +0 -21
  230. package/models/supabase/RepertoireHistory/types.js +0 -19
  231. package/models/supabase/User/Group/index.d.ts +0 -11
  232. package/models/supabase/User/Group/index.js +0 -30
  233. package/models/supabase/User/Group/types.d.ts +0 -6
  234. package/models/supabase/User/Group/types.js +0 -2
  235. package/models/supabase/User/index.d.ts +0 -13
  236. package/models/supabase/User/index.js +0 -37
  237. package/models/supabase/User/types.d.ts +0 -6
  238. package/models/supabase/User/types.js +0 -2
  239. package/types/supabase/catalog.d.ts +0 -46
  240. package/types/supabase/catalog.js +0 -2
  241. package/types/supabase/catalog.ts +0 -67
  242. package/types/supabase/composerMetrics.d.ts +0 -27
  243. package/types/supabase/composerMetrics.js +0 -2
  244. package/types/supabase/composerMetrics.ts +0 -26
  245. package/types/supabase/overwrites/tables/comm/model.d.ts +0 -4
  246. package/types/supabase/overwrites/tables/comm/model.js +0 -2
  247. package/types/supabase/overwrites/tables/comm/model.ts +0 -4
  248. package/types/supabase/overwrites/tables/comm_history/index.d.ts +0 -7
  249. package/types/supabase/overwrites/tables/comm_history/index.js +0 -2
  250. package/types/supabase/overwrites/tables/comm_history/index.ts +0 -9
  251. package/types/supabase/overwrites/tables/comm_history/model.d.ts +0 -10
  252. package/types/supabase/overwrites/tables/comm_history/model.js +0 -2
  253. package/types/supabase/overwrites/tables/comm_history/model.ts +0 -13
  254. package/types/supabase/overwrites/tables/common/index.js +0 -2
  255. package/types/supabase/overwrites/tables/composer/index.d.ts +0 -9
  256. package/types/supabase/overwrites/tables/composer/index.js +0 -2
  257. package/types/supabase/overwrites/tables/composer/index.ts +0 -10
  258. package/types/supabase/overwrites/tables/composer/model.d.ts +0 -12
  259. package/types/supabase/overwrites/tables/composer/model.js +0 -2
  260. package/types/supabase/overwrites/tables/composer/model.ts +0 -15
  261. package/types/supabase/overwrites/tables/composer/publicModel.d.ts +0 -11
  262. package/types/supabase/overwrites/tables/composer/publicModel.js +0 -2
  263. package/types/supabase/overwrites/tables/composer/publicModel.ts +0 -15
  264. package/types/supabase/overwrites/tables/composerComposition/index.d.ts +0 -18
  265. package/types/supabase/overwrites/tables/composerComposition/index.js +0 -2
  266. package/types/supabase/overwrites/tables/composerComposition/index.ts +0 -24
  267. package/types/supabase/overwrites/tables/composerComposition/model.d.ts +0 -9
  268. package/types/supabase/overwrites/tables/composerComposition/model.js +0 -2
  269. package/types/supabase/overwrites/tables/composerComposition/model.ts +0 -26
  270. package/types/supabase/overwrites/tables/composerComposition/publicModel.d.ts +0 -9
  271. package/types/supabase/overwrites/tables/composerComposition/publicModel.js +0 -2
  272. package/types/supabase/overwrites/tables/composerComposition/publicModel.ts +0 -37
  273. package/types/supabase/overwrites/tables/composerNotification/index.d.ts +0 -19
  274. package/types/supabase/overwrites/tables/composerNotification/index.js +0 -2
  275. package/types/supabase/overwrites/tables/composerNotification/index.ts +0 -25
  276. package/types/supabase/overwrites/tables/composerOwnedTransaction/model.d.ts +0 -2
  277. package/types/supabase/overwrites/tables/composerOwnedTransaction/model.js +0 -2
  278. package/types/supabase/overwrites/tables/composerOwnedTransaction/model.ts +0 -3
  279. package/types/supabase/overwrites/tables/composerPayout/index.d.ts +0 -7
  280. package/types/supabase/overwrites/tables/composerPayout/index.js +0 -2
  281. package/types/supabase/overwrites/tables/composerPayout/index.ts +0 -8
  282. package/types/supabase/overwrites/tables/compositionAcquisition/index.d.ts +0 -4
  283. package/types/supabase/overwrites/tables/compositionAcquisition/index.js +0 -2
  284. package/types/supabase/overwrites/tables/compositionAcquisition/index.ts +0 -8
  285. package/types/supabase/overwrites/tables/compositionAcquisition/model.d.ts +0 -6
  286. package/types/supabase/overwrites/tables/compositionAcquisition/model.js +0 -2
  287. package/types/supabase/overwrites/tables/compositionAcquisition/model.ts +0 -11
  288. package/types/supabase/overwrites/tables/compositionFavorite/index.d.ts +0 -1
  289. package/types/supabase/overwrites/tables/compositionFavorite/index.js +0 -2
  290. package/types/supabase/overwrites/tables/compositionFavorite/index.ts +0 -2
  291. package/types/supabase/overwrites/tables/compositionFavorite/model.d.ts +0 -1
  292. package/types/supabase/overwrites/tables/compositionFavorite/model.js +0 -2
  293. package/types/supabase/overwrites/tables/compositionFavorite/model.ts +0 -1
  294. package/types/supabase/overwrites/tables/compositionView/index.d.ts +0 -1
  295. package/types/supabase/overwrites/tables/compositionView/index.js +0 -2
  296. package/types/supabase/overwrites/tables/compositionView/index.ts +0 -2
  297. package/types/supabase/overwrites/tables/compositionView/model.d.ts +0 -1
  298. package/types/supabase/overwrites/tables/compositionView/model.js +0 -2
  299. package/types/supabase/overwrites/tables/compositionView/model.ts +0 -1
  300. package/types/supabase/overwrites/tables/currencyExchangeRate/index.d.ts +0 -16
  301. package/types/supabase/overwrites/tables/currencyExchangeRate/index.js +0 -2
  302. package/types/supabase/overwrites/tables/currencyExchangeRate/index.ts +0 -18
  303. package/types/supabase/overwrites/tables/event/index.js +0 -2
  304. package/types/supabase/overwrites/tables/event_history/index.d.ts +0 -7
  305. package/types/supabase/overwrites/tables/event_history/index.js +0 -2
  306. package/types/supabase/overwrites/tables/event_history/index.ts +0 -9
  307. package/types/supabase/overwrites/tables/event_history/model.d.ts +0 -10
  308. package/types/supabase/overwrites/tables/event_history/model.js +0 -2
  309. package/types/supabase/overwrites/tables/event_history/model.ts +0 -13
  310. package/types/supabase/overwrites/tables/group/index.js +0 -2
  311. package/types/supabase/overwrites/tables/group_history/index.d.ts +0 -7
  312. package/types/supabase/overwrites/tables/group_history/index.js +0 -2
  313. package/types/supabase/overwrites/tables/group_history/index.ts +0 -9
  314. package/types/supabase/overwrites/tables/group_history/model.d.ts +0 -10
  315. package/types/supabase/overwrites/tables/group_history/model.js +0 -2
  316. package/types/supabase/overwrites/tables/group_history/model.ts +0 -13
  317. package/types/supabase/overwrites/tables/offer/index.js +0 -2
  318. package/types/supabase/overwrites/tables/offer_history/index.d.ts +0 -7
  319. package/types/supabase/overwrites/tables/offer_history/index.js +0 -2
  320. package/types/supabase/overwrites/tables/offer_history/index.ts +0 -9
  321. package/types/supabase/overwrites/tables/offer_history/model.d.ts +0 -10
  322. package/types/supabase/overwrites/tables/offer_history/model.js +0 -2
  323. package/types/supabase/overwrites/tables/offer_history/model.ts +0 -13
  324. package/types/supabase/overwrites/tables/repertoire/model.d.ts +0 -7
  325. package/types/supabase/overwrites/tables/repertoire/model.js +0 -2
  326. package/types/supabase/overwrites/tables/repertoire/model.ts +0 -7
  327. package/types/supabase/overwrites/tables/repertoire_history/index.d.ts +0 -7
  328. package/types/supabase/overwrites/tables/repertoire_history/index.js +0 -2
  329. package/types/supabase/overwrites/tables/repertoire_history/index.ts +0 -9
  330. package/types/supabase/overwrites/tables/repertoire_history/model.d.ts +0 -10
  331. package/types/supabase/overwrites/tables/repertoire_history/model.js +0 -2
  332. package/types/supabase/overwrites/tables/repertoire_history/model.ts +0 -13
  333. package/types/supabase/overwrites/tables/user/index.d.ts +0 -11
  334. package/types/supabase/overwrites/tables/user/index.js +0 -2
  335. package/types/supabase/overwrites/tables/user/index.ts +0 -13
  336. /package/{functions/composer.js → types/supabase/overwrites/comm.js} +0 -0
  337. /package/{functions/composerComposition.js → types/supabase/overwrites/comm_history.js} +0 -0
  338. /package/{functions/composerNotification.js → types/supabase/overwrites/event.js} +0 -0
  339. /package/{functions/composerPayout.js → types/supabase/overwrites/event_history.js} +0 -0
  340. /package/{models/supabase/Comm/types.js → types/supabase/overwrites/group.js} +0 -0
  341. /package/{models/supabase/Composer/Composition/Acquisition/types.js → types/supabase/overwrites/group_history.js} +0 -0
  342. /package/{models/supabase/Composer/Composition/Favorite/types.js → types/supabase/overwrites/offer.js} +0 -0
  343. /package/{models/supabase/Composer/Composition/View/types.js → types/supabase/overwrites/offer_history.js} +0 -0
  344. /package/{models/supabase/Composer/Payout/status.js → types/supabase/overwrites/repertoire.js} +0 -0
  345. /package/{models/supabase/Composer/Payout/types.js → types/supabase/overwrites/repertoire_history.js} +0 -0
  346. /package/types/supabase/overwrites/{tables/common/index.d.ts → utils.d.ts} +0 -0
  347. /package/{models/supabase/Composer/PerformanceAttendance/types.js → types/supabase/overwrites/utils.js} +0 -0
  348. /package/types/supabase/overwrites/{tables/common/index.ts → utils.ts} +0 -0
@@ -1,45 +0,0 @@
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;
@@ -1,119 +0,0 @@
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;
@@ -1,12 +0,0 @@
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;
@@ -1,71 +0,0 @@
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;
@@ -1,14 +0,0 @@
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>;
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.defineTable = void 0;
4
- const defineTable = (table) => table;
5
- exports.defineTable = defineTable;
@@ -1,12 +0,0 @@
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;
@@ -1,40 +0,0 @@
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,9 +0,0 @@
1
- import { LanguagesTypes } from '../../lang';
2
- import { CompositionGenreTreeKey } from '../../helpers/compositionCategories';
3
- export default class CompositionGenre {
4
- id: CompositionGenreTreeKey;
5
- private lang;
6
- private treeNode;
7
- constructor(id: CompositionGenreTreeKey, lang?: LanguagesTypes);
8
- get name(): string;
9
- }
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const lang_1 = require("../../lang");
4
- const compositionCategories_1 = require("../../helpers/compositionCategories");
5
- class CompositionGenre {
6
- constructor(id, lang = lang_1.defaultLocale) {
7
- this.id = id;
8
- this.lang = lang;
9
- this.treeNode = compositionCategories_1.compositionGenresTree[id];
10
- }
11
- get name() {
12
- const translation = (0, lang_1.getTranslation)(this.treeNode.labelKey, this.lang);
13
- return translation || this.treeNode.labelKey;
14
- }
15
- }
16
- exports.default = CompositionGenre;
@@ -1,9 +0,0 @@
1
- import { CompositionStyleTreeKey } from '../../helpers/compositionCategories';
2
- import { LanguagesTypes } from '../../lang';
3
- export default class CompositionStyle {
4
- id: CompositionStyleTreeKey;
5
- private lang;
6
- private treeNode;
7
- constructor(id: CompositionStyleTreeKey, lang?: LanguagesTypes);
8
- get name(): string;
9
- }
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const compositionCategories_1 = require("../../helpers/compositionCategories");
4
- const lang_1 = require("../../lang");
5
- class CompositionStyle {
6
- constructor(id, lang = lang_1.defaultLocale) {
7
- this.id = id;
8
- this.lang = lang;
9
- this.treeNode = compositionCategories_1.compositionStylesTree[id];
10
- }
11
- get name() {
12
- const translation = (0, lang_1.getTranslation)(this.treeNode.labelKey, this.lang);
13
- return translation || this.treeNode.labelKey;
14
- }
15
- }
16
- exports.default = CompositionStyle;
@@ -1,24 +0,0 @@
1
- import { LanguagesTypes } from '../../../lang';
2
- import ModelFromSupabaseWithLang from '../Model';
3
- import { CommModelData } from './types';
4
- export default class Comm extends ModelFromSupabaseWithLang<CommModelData> {
5
- constructor(data: CommModelData, lang?: LanguagesTypes);
6
- get isActive(): boolean;
7
- get isDeleted(): boolean;
8
- get id(): string;
9
- get blockAnswers(): boolean;
10
- get commentsCount(): number;
11
- get createdAt(): string;
12
- get editedAt(): string | null;
13
- get editedBy(): string | null;
14
- get groupId(): string;
15
- get ownerId(): string;
16
- get recipients(): string[];
17
- get server(): boolean;
18
- get serverTemplate(): string | null;
19
- get templateId(): string | null;
20
- get title(): string;
21
- get type(): string;
22
- get deletedAt(): string | null;
23
- get deletedBy(): string | null;
24
- }
@@ -1,68 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const lang_1 = require("../../../lang");
7
- const Model_1 = __importDefault(require("../Model"));
8
- const lodash_1 = require("lodash");
9
- class Comm extends Model_1.default {
10
- constructor(data, lang = lang_1.defaultLocale) {
11
- super(data, lang);
12
- }
13
- get isActive() {
14
- return !this.deletedAt;
15
- }
16
- get isDeleted() {
17
- return !(0, lodash_1.isNull)(this.deletedAt);
18
- }
19
- get id() {
20
- return this.data.id;
21
- }
22
- get blockAnswers() {
23
- return this.data.block_answers;
24
- }
25
- get commentsCount() {
26
- return this.data.comments_count;
27
- }
28
- get createdAt() {
29
- return this.data.created_at;
30
- }
31
- get editedAt() {
32
- return this.data.edited_at;
33
- }
34
- get editedBy() {
35
- return this.data.edited_by;
36
- }
37
- get groupId() {
38
- return this.data.group_id;
39
- }
40
- get ownerId() {
41
- return this.data.owner_id;
42
- }
43
- get recipients() {
44
- return this.data.recipients;
45
- }
46
- get server() {
47
- return this.data.server;
48
- }
49
- get serverTemplate() {
50
- return this.data.server_template;
51
- }
52
- get templateId() {
53
- return this.data.template_id;
54
- }
55
- get title() {
56
- return this.data.title;
57
- }
58
- get type() {
59
- return this.data.type;
60
- }
61
- get deletedAt() {
62
- return this.data.deleted_at;
63
- }
64
- get deletedBy() {
65
- return this.data.deleted_by;
66
- }
67
- }
68
- exports.default = Comm;
@@ -1,6 +0,0 @@
1
- import { IsRelationName, Tables, TablesInsert, TablesUpdate } from '../../../types/supabase';
2
- type tableName = IsRelationName<'comm'>;
3
- export type CommInsertData = TablesInsert<`${tableName}`>;
4
- export type CommUpdateData = TablesUpdate<`${tableName}`>;
5
- export type CommModelData = Tables<`${tableName}Model`>;
6
- export {};
@@ -1,22 +0,0 @@
1
- import { LanguagesTypes } from '../../../lang';
2
- import ModelFromSupabaseWithLang from '../Model';
3
- import { CommHistoryModelData } from './types';
4
- export default class CommHistory extends ModelFromSupabaseWithLang<CommHistoryModelData> {
5
- constructor(data: CommHistoryModelData, lang?: LanguagesTypes);
6
- get id(): number;
7
- get value(): {
8
- [x: string]: unknown;
9
- } | {
10
- [x: string]: unknown;
11
- } | null;
12
- get prevValue(): {
13
- [x: string]: unknown;
14
- } | {
15
- [x: string]: unknown;
16
- } | null;
17
- get action(): import("./types").CommHistoryAction;
18
- get commId(): string;
19
- get createdAt(): string;
20
- get groupId(): string;
21
- get userId(): string;
22
- }
@@ -1,37 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const lang_1 = require("../../../lang");
7
- const Model_1 = __importDefault(require("../Model"));
8
- class CommHistory extends Model_1.default {
9
- constructor(data, lang = lang_1.defaultLocale) {
10
- super(data, lang);
11
- }
12
- get id() {
13
- return this.data.id;
14
- }
15
- get value() {
16
- return this.data.value;
17
- }
18
- get prevValue() {
19
- return this.data.prev_value;
20
- }
21
- get action() {
22
- return this.data.action;
23
- }
24
- get commId() {
25
- return this.data.comm_id;
26
- }
27
- get createdAt() {
28
- return this.data.created_at;
29
- }
30
- get groupId() {
31
- return this.data.group_id;
32
- }
33
- get userId() {
34
- return this.data.user_id;
35
- }
36
- }
37
- exports.default = CommHistory;
@@ -1,11 +0,0 @@
1
- import { IsRelationName, Tables, TablesInsert, TablesUpdate } from '../../../types/supabase';
2
- export declare enum CommHistoryAction {
3
- Created = "created",
4
- Remove = "remove",
5
- AddComment = "add_comment"
6
- }
7
- type tableName = IsRelationName<'comm_history'>;
8
- export type CommHistoryInsertData = TablesInsert<`${tableName}`>;
9
- export type CommHistoryUpdateData = TablesUpdate<`${tableName}`>;
10
- export type CommHistoryModelData = Tables<`${tableName}Model`>;
11
- export {};
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CommHistoryAction = void 0;
4
- var CommHistoryAction;
5
- (function (CommHistoryAction) {
6
- CommHistoryAction["Created"] = "created";
7
- CommHistoryAction["Remove"] = "remove";
8
- CommHistoryAction["AddComment"] = "add_comment";
9
- })(CommHistoryAction || (exports.CommHistoryAction = CommHistoryAction = {}));
@@ -1,4 +0,0 @@
1
- import ModelFromSupabaseWithLang from '../../../Model';
2
- import { CompositionAcquisitionModelData } from './types';
3
- export default class CompositionAcquisition extends ModelFromSupabaseWithLang<CompositionAcquisitionModelData> {
4
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const Model_1 = __importDefault(require("../../../Model"));
7
- class CompositionAcquisition extends Model_1.default {
8
- }
9
- exports.default = CompositionAcquisition;
@@ -1,36 +0,0 @@
1
- import { IsRelationName, Tables, TablesInsert, TablesUpdate } from '../../../../../types/supabase';
2
- import { MarketplaceCurrencyCode } from '../../../../../helpers/currencyConversion';
3
- import { ComposerCompositionProductType } from '../types';
4
- export interface AcquiredProduct {
5
- acquiredAt: string;
6
- amountPaid?: number;
7
- currency?: MarketplaceCurrencyCode | (string & {});
8
- buyerAmountCents?: number;
9
- buyerCurrency?: MarketplaceCurrencyCode | (string & {});
10
- baseAmountCents?: number;
11
- baseCurrency?: MarketplaceCurrencyCode | (string & {});
12
- stripeSessionId?: string;
13
- stripePaymentIntentId?: string;
14
- refundStatus?: 'none' | 'partial' | 'refunded';
15
- refundedAt?: string;
16
- refundedCents?: number;
17
- stripeRefundId?: string | null;
18
- }
19
- export type AcquiredProductsMap = Partial<Record<ComposerCompositionProductType, AcquiredProduct>>;
20
- export interface CompositionAcquisitionCurrencyFields {
21
- buyerPriceCents: number | null;
22
- buyerVatCents: number | null;
23
- buyerCurrency: string | null;
24
- basePriceCents: number | null;
25
- baseVatCents: number | null;
26
- baseNetEarningsCents: number | null;
27
- baseCurrency: string | null;
28
- exchangeRate: number | null;
29
- exchangeRateDate: string | null;
30
- exchangeRateSource: string | null;
31
- }
32
- type tableName = IsRelationName<'compositionAcquisition'>;
33
- export type CompositionAcquisitionModelData = Tables<`${tableName}Model`>;
34
- export type CompositionAcquisitionInsertData = TablesInsert<`${tableName}`>;
35
- export type CompositionAcquisitionUpdateData = TablesUpdate<`${tableName}`>;
36
- export {};
@@ -1,4 +0,0 @@
1
- import ModelFromSupabaseWithLang from '../../../Model';
2
- import { CompositionFavoriteModelData } from './types';
3
- export default class CompositionFavorite extends ModelFromSupabaseWithLang<CompositionFavoriteModelData> {
4
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const Model_1 = __importDefault(require("../../../Model"));
7
- class CompositionFavorite extends Model_1.default {
8
- }
9
- exports.default = CompositionFavorite;
@@ -1,6 +0,0 @@
1
- import { IsRelationName, Tables, TablesInsert, TablesUpdate } from '../../../../../types/supabase';
2
- type tableName = IsRelationName<'compositionFavorite'>;
3
- export type CompositionFavoriteModelData = Tables<`${tableName}`>;
4
- export type CompositionFavoriteInsertData = TablesInsert<`${tableName}`>;
5
- export type CompositionFavoriteUpdateData = TablesUpdate<`${tableName}`>;
6
- export {};
@@ -1,4 +0,0 @@
1
- import ModelFromSupabaseWithLang from '../../../Model';
2
- import { CompositionViewModelData } from './types';
3
- export default class CompositionView extends ModelFromSupabaseWithLang<CompositionViewModelData> {
4
- }