@glissandoo/lib 1.61.0 → 1.61.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/functions/auth.js +2 -1
  2. package/functions/communication.js +2 -1
  3. package/functions/communicationComment.js +2 -1
  4. package/functions/customer.js +2 -1
  5. package/functions/customerGroup.js +2 -1
  6. package/functions/event.js +5 -2
  7. package/functions/eventPlayer.js +5 -2
  8. package/functions/eventRepertory.js +2 -1
  9. package/functions/federation.js +2 -1
  10. package/functions/federationPartnership.js +2 -1
  11. package/functions/group.js +2 -1
  12. package/functions/groupPlayer.js +2 -1
  13. package/functions/groupRepertory.js +2 -1
  14. package/functions/index.js +5 -2
  15. package/functions/jwt.js +2 -1
  16. package/functions/misc.js +2 -1
  17. package/functions/notification.js +2 -1
  18. package/functions/partner.js +2 -1
  19. package/functions/partnership.js +2 -1
  20. package/functions/partnershipGroup.js +2 -1
  21. package/functions/partnershipPlan.js +2 -1
  22. package/functions/regions.js +128 -124
  23. package/functions/subscription.js +2 -1
  24. package/functions/user.js +2 -1
  25. package/helpers/appScenes.js +5 -2
  26. package/helpers/audios.js +9 -5
  27. package/helpers/auth.js +9 -5
  28. package/helpers/badges.js +19 -10
  29. package/helpers/collections.js +5 -2
  30. package/helpers/countries.js +4 -1
  31. package/helpers/dlinks.js +5 -2
  32. package/helpers/errors.js +5 -2
  33. package/helpers/fileSections/index.js +8 -5
  34. package/helpers/fileSections/orders.js +16 -11
  35. package/helpers/glissandooAdmin.js +6 -2
  36. package/helpers/instruments/index.js +6 -3
  37. package/helpers/instruments/lists.js +19 -11
  38. package/helpers/musicStyles/index.js +36 -29
  39. package/helpers/musicStyles/orders.js +179 -174
  40. package/helpers/notifications/index.js +122 -119
  41. package/helpers/notifications/placeholders.js +26 -18
  42. package/helpers/objects.js +23 -15
  43. package/helpers/payments.js +8 -5
  44. package/helpers/plans.js +9 -6
  45. package/helpers/rates.js +6 -2
  46. package/helpers/reasons.js +21 -17
  47. package/helpers/slate.js +12 -5
  48. package/helpers/styles.js +4 -1
  49. package/helpers/ts-extras/array-includes.js +5 -1
  50. package/helpers/ts-extras/as-mutable.js +5 -1
  51. package/helpers/ts-extras/assert-error.js +5 -1
  52. package/helpers/ts-extras/index.js +33 -15
  53. package/helpers/ts-extras/is-defined.js +5 -1
  54. package/helpers/ts-extras/is-empty.js +5 -1
  55. package/helpers/ts-extras/is-finite.js +4 -1
  56. package/helpers/ts-extras/is-infinite.js +5 -1
  57. package/helpers/ts-extras/is-integer.js +4 -1
  58. package/helpers/ts-extras/is-present.js +5 -1
  59. package/helpers/ts-extras/is-safe-integer.js +4 -1
  60. package/helpers/ts-extras/object-entries.js +4 -1
  61. package/helpers/ts-extras/object-from-entries.js +4 -1
  62. package/helpers/ts-extras/object-has-own.js +5 -1
  63. package/helpers/ts-extras/object-keys.js +4 -1
  64. package/helpers/ts-extras/set-has.js +5 -1
  65. package/helpers/types.js +5 -2
  66. package/helpers/utils.d.ts +1 -0
  67. package/helpers/utils.js +23 -8
  68. package/lang/index.js +51 -42
  69. package/models/Communication/Comment/index.js +12 -5
  70. package/models/Communication/Comment/types.js +2 -1
  71. package/models/Communication/index.js +21 -15
  72. package/models/Communication/types.js +7 -4
  73. package/models/Counters/Group/Analytics/index.js +12 -5
  74. package/models/Counters/Group/Analytics/types.js +5 -2
  75. package/models/Counters/Group/index.js +8 -2
  76. package/models/Counters/Group/types.js +2 -1
  77. package/models/Counters/event.js +8 -2
  78. package/models/Counters/index.js +8 -2
  79. package/models/Counters/types.js +2 -1
  80. package/models/Customer/Group/index.js +14 -7
  81. package/models/Customer/Group/types.js +2 -1
  82. package/models/Customer/basic.js +10 -4
  83. package/models/Customer/index.js +11 -5
  84. package/models/Customer/types.js +5 -2
  85. package/models/Evento/Player/basic.js +11 -10
  86. package/models/Evento/Player/index.js +19 -12
  87. package/models/Evento/Player/types.js +7 -4
  88. package/models/Evento/Repertory/index.js +10 -3
  89. package/models/Evento/Repertory/types.js +2 -1
  90. package/models/Evento/basic.js +18 -12
  91. package/models/Evento/index.js +38 -32
  92. package/models/Evento/promoter.js +8 -2
  93. package/models/Evento/tiny.js +9 -9
  94. package/models/Evento/types.js +17 -14
  95. package/models/Federation/Partnership/index.js +10 -3
  96. package/models/Federation/Partnership/types.js +2 -1
  97. package/models/Federation/index.js +13 -7
  98. package/models/Federation/types.js +2 -1
  99. package/models/Group/Analytics/index.js +12 -5
  100. package/models/Group/Analytics/types.js +5 -2
  101. package/models/Group/Event/index.js +12 -6
  102. package/models/Group/Event/types.js +2 -1
  103. package/models/Group/Player/Event/index.js +18 -11
  104. package/models/Group/Player/Event/types.js +2 -1
  105. package/models/Group/Player/Log/index.js +8 -2
  106. package/models/Group/Player/Log/types.js +2 -1
  107. package/models/Group/Player/index.js +25 -18
  108. package/models/Group/Player/types.js +5 -2
  109. package/models/Group/Repertory/File/Section/index.js +16 -12
  110. package/models/Group/Repertory/File/Section/types.js +5 -2
  111. package/models/Group/Repertory/File/index.js +12 -11
  112. package/models/Group/Repertory/File/types.js +2 -1
  113. package/models/Group/Repertory/FilePath/index.js +15 -12
  114. package/models/Group/Repertory/index.js +32 -25
  115. package/models/Group/Repertory/types.js +5 -2
  116. package/models/Group/StageTemplate/index.js +8 -2
  117. package/models/Group/StageTemplate/types.js +2 -1
  118. package/models/Group/basic.js +11 -5
  119. package/models/Group/index.js +47 -41
  120. package/models/Group/types.js +17 -14
  121. package/models/Instrument/group.js +11 -6
  122. package/models/Instrument/index.js +9 -8
  123. package/models/Metrics/index.js +16 -10
  124. package/models/Metrics/types.js +2 -1
  125. package/models/Model/index.js +6 -7
  126. package/models/Model/lang.js +10 -5
  127. package/models/MusicStyle/index.js +10 -9
  128. package/models/Notification/index.js +8 -2
  129. package/models/Notification/types.js +5 -2
  130. package/models/Partner/basic.js +12 -6
  131. package/models/Partner/index.js +10 -4
  132. package/models/Partner/tiny.js +8 -2
  133. package/models/Partner/types.js +5 -2
  134. package/models/Partnership/Group/index.js +12 -5
  135. package/models/Partnership/Group/types.js +2 -1
  136. package/models/Partnership/Partner/Subscription/index.js +15 -8
  137. package/models/Partnership/Partner/Subscription/types.js +5 -2
  138. package/models/Partnership/Partner/index.js +10 -3
  139. package/models/Partnership/Partner/types.js +2 -1
  140. package/models/Partnership/Payment/index.js +8 -2
  141. package/models/Partnership/Payment/types.js +2 -1
  142. package/models/Partnership/Plan/basic.js +18 -12
  143. package/models/Partnership/Plan/index.js +10 -3
  144. package/models/Partnership/Plan/types.js +5 -2
  145. package/models/Partnership/basic.js +10 -4
  146. package/models/Partnership/index.js +11 -5
  147. package/models/Partnership/types.js +7 -4
  148. package/models/Payment/basic.js +13 -7
  149. package/models/Payment/index.js +8 -2
  150. package/models/Payment/types.js +7 -4
  151. package/models/Player/basic.js +10 -4
  152. package/models/Player/types.js +2 -1
  153. package/models/Repertory/basic.js +8 -2
  154. package/models/Repertory/types.js +2 -1
  155. package/models/User/Group/index.js +15 -8
  156. package/models/User/Group/types.js +2 -1
  157. package/models/User/Notification/index.d.ts +1 -1
  158. package/models/User/Notification/index.js +21 -16
  159. package/models/User/Notification/types.js +2 -1
  160. package/models/User/basic.js +10 -4
  161. package/models/User/index.js +24 -18
  162. package/models/User/types.js +15 -12
  163. package/models/WebhookEvent/index.js +8 -2
  164. package/models/WebhookEvent/types.js +5 -2
  165. package/package.json +1 -1
  166. package/types/firestore.js +5 -2
  167. package/types/messagebirdChatWidget.js +2 -1
@@ -1,26 +1,29 @@
1
- import { EventoFbFunctionsTypes } from '../../functions/event';
2
- import { NotificationActions } from '../../models/Notification/types';
3
- import { UserNotificationSettings } from '../../models/User/types';
4
- import { BadgesTypes } from '../badges';
5
- export const notificationActionsBadges = {
6
- [BadgesTypes.AccPerformances]: {
7
- firstLevel: NotificationActions.BadgeAccPerformancesFirstLevel,
8
- upLevel: NotificationActions.BadgeAccPerformancesUpLevel,
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.userNotificationSettings = exports.notificationMultiplePractice = exports.notificationSinglePractice = exports.notificationPerformance = exports.editScopeToAction = exports.NotificationEventActions = exports.notificationActionsBadges = void 0;
4
+ const event_1 = require("../../functions/event");
5
+ const types_1 = require("../../models/Notification/types");
6
+ const types_2 = require("../../models/User/types");
7
+ const badges_1 = require("../badges");
8
+ exports.notificationActionsBadges = {
9
+ [badges_1.BadgesTypes.AccPerformances]: {
10
+ firstLevel: types_1.NotificationActions.BadgeAccPerformancesFirstLevel,
11
+ upLevel: types_1.NotificationActions.BadgeAccPerformancesUpLevel,
9
12
  },
10
- [BadgesTypes.AccPractices]: {
11
- firstLevel: NotificationActions.BadgeAccPracticesFirstLevel,
12
- upLevel: NotificationActions.BadgeAccPracticesUpLevel,
13
+ [badges_1.BadgesTypes.AccPractices]: {
14
+ firstLevel: types_1.NotificationActions.BadgeAccPracticesFirstLevel,
15
+ upLevel: types_1.NotificationActions.BadgeAccPracticesUpLevel,
13
16
  },
14
- [BadgesTypes.AnswerEvents]: {
15
- firstLevel: NotificationActions.BadgeAnswerEventsFirstLevel,
16
- upLevel: NotificationActions.BadgeAnswerEventsUpLevel,
17
+ [badges_1.BadgesTypes.AnswerEvents]: {
18
+ firstLevel: types_1.NotificationActions.BadgeAnswerEventsFirstLevel,
19
+ upLevel: types_1.NotificationActions.BadgeAnswerEventsUpLevel,
17
20
  },
18
- [BadgesTypes.StrikePractices]: {
19
- firstLevel: NotificationActions.BadgeStrikePracticesFirstLevel,
20
- upLevel: NotificationActions.BadgeStrikePracticesUpLevel,
21
+ [badges_1.BadgesTypes.StrikePractices]: {
22
+ firstLevel: types_1.NotificationActions.BadgeStrikePracticesFirstLevel,
23
+ upLevel: types_1.NotificationActions.BadgeStrikePracticesUpLevel,
21
24
  },
22
25
  };
23
- export var NotificationEventActions;
26
+ var NotificationEventActions;
24
27
  (function (NotificationEventActions) {
25
28
  NotificationEventActions["Create"] = "create";
26
29
  NotificationEventActions["Cancel"] = "cancel";
@@ -48,113 +51,113 @@ export var NotificationEventActions;
48
51
  NotificationEventActions["ReminderDeadlineEndedInSelectionModeOpen"] = "reminderDeadlineEndedInSelectionModeOpenEvent";
49
52
  NotificationEventActions["ReminderDeadlineEndedInSelectionModeClosedOrNotActive"] = "reminderDeadlineEndedInSelectionModeClosedOrNotActiveEvent";
50
53
  NotificationEventActions["ReminderRollcall"] = "reminderRollcall";
51
- })(NotificationEventActions || (NotificationEventActions = {}));
52
- export const editScopeToAction = {
53
- [EventoFbFunctionsTypes.EditScope.Title]: NotificationEventActions.EditTitle,
54
- [EventoFbFunctionsTypes.EditScope.Locality]: NotificationEventActions.EditLocality,
55
- [EventoFbFunctionsTypes.EditScope.Comments]: NotificationEventActions.EditComments,
56
- [EventoFbFunctionsTypes.EditScope.Attendance]: NotificationEventActions.EditAttendance,
57
- [EventoFbFunctionsTypes.EditScope.Stage]: NotificationEventActions.EditStage,
54
+ })(NotificationEventActions = exports.NotificationEventActions || (exports.NotificationEventActions = {}));
55
+ exports.editScopeToAction = {
56
+ [event_1.EventoFbFunctionsTypes.EditScope.Title]: NotificationEventActions.EditTitle,
57
+ [event_1.EventoFbFunctionsTypes.EditScope.Locality]: NotificationEventActions.EditLocality,
58
+ [event_1.EventoFbFunctionsTypes.EditScope.Comments]: NotificationEventActions.EditComments,
59
+ [event_1.EventoFbFunctionsTypes.EditScope.Attendance]: NotificationEventActions.EditAttendance,
60
+ [event_1.EventoFbFunctionsTypes.EditScope.Stage]: NotificationEventActions.EditStage,
58
61
  };
59
- export const notificationPerformance = {
60
- [NotificationEventActions.Cancel]: NotificationActions.PerformanceCancel,
61
- [NotificationEventActions.Create]: NotificationActions.PerformanceCreate,
62
- [NotificationEventActions.EditAttendance]: NotificationActions.PerformanceEditAttendance,
63
- [NotificationEventActions.EditComments]: NotificationActions.PerformanceEditComments,
64
- [NotificationEventActions.EditDatetime]: NotificationActions.PerformanceEditDatetime,
65
- [NotificationEventActions.EditLocality]: NotificationActions.PerformanceEditLocality,
66
- [NotificationEventActions.EditRepertory]: NotificationActions.PerformanceEditRepertory,
67
- [NotificationEventActions.EditTitle]: NotificationActions.PerformanceEditTitle,
68
- [NotificationEventActions.EditStage]: NotificationActions.PerformanceEditStage,
69
- [NotificationEventActions.EditResponseDeadline]: NotificationActions.PerformanceEditResponseDeadline,
70
- [NotificationEventActions.AddPlayers]: NotificationActions.PerformancePlayersAdd,
71
- [NotificationEventActions.RemovePlayers]: NotificationActions.PerformancePlayersRemove,
72
- [NotificationEventActions.ConfirmAssistance]: NotificationActions.PerformanceAssistanceConfirm,
73
- [NotificationEventActions.DeclineAssistance]: NotificationActions.PerformanceAssistanceDecline,
74
- [NotificationEventActions.ConfirmAssistanceByAdmin]: NotificationActions.PerformanceAssistanceConfirmByAdmin,
75
- [NotificationEventActions.DeclineAssistanceByAdmin]: NotificationActions.PerformanceAssistanceDeclineByAdmin,
76
- [NotificationEventActions.ConfirmInterest]: NotificationActions.PerformanceInterestConfirm,
77
- [NotificationEventActions.LoseInterest]: NotificationActions.PerformanceInterestLose,
78
- [NotificationEventActions.SelectionSelected]: NotificationActions.PerformanceSelectionSelect,
79
- [NotificationEventActions.SelectionDeselected]: NotificationActions.PerformanceSelectionDeselect,
80
- [NotificationEventActions.Reminder]: NotificationActions.PerformanceReminder,
81
- [NotificationEventActions.ReminderDatetimeToConfirmed]: NotificationActions.PerformanceReminderDatetimeToConfirmed,
82
- [NotificationEventActions.ReminderDeadlineSoonToPending]: NotificationActions.PerformanceReminderDeadlineSoonToPending,
83
- [NotificationEventActions.ReminderDeadlineEndedInSelectionModeOpen]: NotificationActions.PerformanceReminderDeadlineEndedInSelectionModeOpen,
84
- [NotificationEventActions.ReminderDeadlineEndedInSelectionModeClosedOrNotActive]: NotificationActions.PerformanceReminderDeadlineEndedInSelectionModeClosedOrNotActive,
85
- [NotificationEventActions.ReminderRollcall]: NotificationActions.PerformanceRollCallReminder,
62
+ exports.notificationPerformance = {
63
+ [NotificationEventActions.Cancel]: types_1.NotificationActions.PerformanceCancel,
64
+ [NotificationEventActions.Create]: types_1.NotificationActions.PerformanceCreate,
65
+ [NotificationEventActions.EditAttendance]: types_1.NotificationActions.PerformanceEditAttendance,
66
+ [NotificationEventActions.EditComments]: types_1.NotificationActions.PerformanceEditComments,
67
+ [NotificationEventActions.EditDatetime]: types_1.NotificationActions.PerformanceEditDatetime,
68
+ [NotificationEventActions.EditLocality]: types_1.NotificationActions.PerformanceEditLocality,
69
+ [NotificationEventActions.EditRepertory]: types_1.NotificationActions.PerformanceEditRepertory,
70
+ [NotificationEventActions.EditTitle]: types_1.NotificationActions.PerformanceEditTitle,
71
+ [NotificationEventActions.EditStage]: types_1.NotificationActions.PerformanceEditStage,
72
+ [NotificationEventActions.EditResponseDeadline]: types_1.NotificationActions.PerformanceEditResponseDeadline,
73
+ [NotificationEventActions.AddPlayers]: types_1.NotificationActions.PerformancePlayersAdd,
74
+ [NotificationEventActions.RemovePlayers]: types_1.NotificationActions.PerformancePlayersRemove,
75
+ [NotificationEventActions.ConfirmAssistance]: types_1.NotificationActions.PerformanceAssistanceConfirm,
76
+ [NotificationEventActions.DeclineAssistance]: types_1.NotificationActions.PerformanceAssistanceDecline,
77
+ [NotificationEventActions.ConfirmAssistanceByAdmin]: types_1.NotificationActions.PerformanceAssistanceConfirmByAdmin,
78
+ [NotificationEventActions.DeclineAssistanceByAdmin]: types_1.NotificationActions.PerformanceAssistanceDeclineByAdmin,
79
+ [NotificationEventActions.ConfirmInterest]: types_1.NotificationActions.PerformanceInterestConfirm,
80
+ [NotificationEventActions.LoseInterest]: types_1.NotificationActions.PerformanceInterestLose,
81
+ [NotificationEventActions.SelectionSelected]: types_1.NotificationActions.PerformanceSelectionSelect,
82
+ [NotificationEventActions.SelectionDeselected]: types_1.NotificationActions.PerformanceSelectionDeselect,
83
+ [NotificationEventActions.Reminder]: types_1.NotificationActions.PerformanceReminder,
84
+ [NotificationEventActions.ReminderDatetimeToConfirmed]: types_1.NotificationActions.PerformanceReminderDatetimeToConfirmed,
85
+ [NotificationEventActions.ReminderDeadlineSoonToPending]: types_1.NotificationActions.PerformanceReminderDeadlineSoonToPending,
86
+ [NotificationEventActions.ReminderDeadlineEndedInSelectionModeOpen]: types_1.NotificationActions.PerformanceReminderDeadlineEndedInSelectionModeOpen,
87
+ [NotificationEventActions.ReminderDeadlineEndedInSelectionModeClosedOrNotActive]: types_1.NotificationActions.PerformanceReminderDeadlineEndedInSelectionModeClosedOrNotActive,
88
+ [NotificationEventActions.ReminderRollcall]: types_1.NotificationActions.PerformanceRollCallReminder,
86
89
  };
87
- export const notificationSinglePractice = {
88
- [NotificationEventActions.Cancel]: NotificationActions.PracticeCancel,
89
- [NotificationEventActions.Create]: NotificationActions.PracticeCreate,
90
- [NotificationEventActions.EditAttendance]: NotificationActions.PracticeEditAttendance,
91
- [NotificationEventActions.EditComments]: NotificationActions.PracticeEditComments,
92
- [NotificationEventActions.EditDatetime]: NotificationActions.PracticeEditDatetime,
93
- [NotificationEventActions.EditLocality]: NotificationActions.PracticeEditLocality,
94
- [NotificationEventActions.EditRepertory]: NotificationActions.PracticeEditRepertory,
95
- [NotificationEventActions.EditTitle]: NotificationActions.PracticeEditTitle,
96
- [NotificationEventActions.EditStage]: NotificationActions.PracticeEditStage,
97
- [NotificationEventActions.EditResponseDeadline]: NotificationActions.PracticeEditResponseDeadline,
98
- [NotificationEventActions.AddPlayers]: NotificationActions.PracticePlayersAdd,
99
- [NotificationEventActions.RemovePlayers]: NotificationActions.PracticePlayersRemove,
100
- [NotificationEventActions.ConfirmAssistance]: NotificationActions.PracticeAssistanceConfirm,
101
- [NotificationEventActions.DeclineAssistance]: NotificationActions.PracticeAssistanceDecline,
102
- [NotificationEventActions.ConfirmAssistanceByAdmin]: NotificationActions.PracticeAssistanceConfirmByAdmin,
103
- [NotificationEventActions.DeclineAssistanceByAdmin]: NotificationActions.PracticeAssistanceDeclineByAdmin,
104
- [NotificationEventActions.ConfirmInterest]: NotificationActions.PracticeInterestConfirm,
105
- [NotificationEventActions.LoseInterest]: NotificationActions.PracticeInterestLose,
106
- [NotificationEventActions.SelectionSelected]: NotificationActions.PracticeSelectionSelect,
107
- [NotificationEventActions.SelectionDeselected]: NotificationActions.PracticeSelectionDeselect,
108
- [NotificationEventActions.Reminder]: NotificationActions.PracticeReminder,
109
- [NotificationEventActions.ReminderDatetimeToConfirmed]: NotificationActions.PracticeReminderDatetimeToConfirmed,
110
- [NotificationEventActions.ReminderDeadlineSoonToPending]: NotificationActions.PracticeReminderDeadlineSoonToPending,
111
- [NotificationEventActions.ReminderDeadlineEndedInSelectionModeOpen]: NotificationActions.PracticeReminderDeadlineEndedInSelectionModeOpen,
112
- [NotificationEventActions.ReminderDeadlineEndedInSelectionModeClosedOrNotActive]: NotificationActions.PracticeReminderDeadlineEndedInSelectionModeClosedOrNotActive,
113
- [NotificationEventActions.ReminderRollcall]: NotificationActions.PracticeRollCallReminder,
90
+ exports.notificationSinglePractice = {
91
+ [NotificationEventActions.Cancel]: types_1.NotificationActions.PracticeCancel,
92
+ [NotificationEventActions.Create]: types_1.NotificationActions.PracticeCreate,
93
+ [NotificationEventActions.EditAttendance]: types_1.NotificationActions.PracticeEditAttendance,
94
+ [NotificationEventActions.EditComments]: types_1.NotificationActions.PracticeEditComments,
95
+ [NotificationEventActions.EditDatetime]: types_1.NotificationActions.PracticeEditDatetime,
96
+ [NotificationEventActions.EditLocality]: types_1.NotificationActions.PracticeEditLocality,
97
+ [NotificationEventActions.EditRepertory]: types_1.NotificationActions.PracticeEditRepertory,
98
+ [NotificationEventActions.EditTitle]: types_1.NotificationActions.PracticeEditTitle,
99
+ [NotificationEventActions.EditStage]: types_1.NotificationActions.PracticeEditStage,
100
+ [NotificationEventActions.EditResponseDeadline]: types_1.NotificationActions.PracticeEditResponseDeadline,
101
+ [NotificationEventActions.AddPlayers]: types_1.NotificationActions.PracticePlayersAdd,
102
+ [NotificationEventActions.RemovePlayers]: types_1.NotificationActions.PracticePlayersRemove,
103
+ [NotificationEventActions.ConfirmAssistance]: types_1.NotificationActions.PracticeAssistanceConfirm,
104
+ [NotificationEventActions.DeclineAssistance]: types_1.NotificationActions.PracticeAssistanceDecline,
105
+ [NotificationEventActions.ConfirmAssistanceByAdmin]: types_1.NotificationActions.PracticeAssistanceConfirmByAdmin,
106
+ [NotificationEventActions.DeclineAssistanceByAdmin]: types_1.NotificationActions.PracticeAssistanceDeclineByAdmin,
107
+ [NotificationEventActions.ConfirmInterest]: types_1.NotificationActions.PracticeInterestConfirm,
108
+ [NotificationEventActions.LoseInterest]: types_1.NotificationActions.PracticeInterestLose,
109
+ [NotificationEventActions.SelectionSelected]: types_1.NotificationActions.PracticeSelectionSelect,
110
+ [NotificationEventActions.SelectionDeselected]: types_1.NotificationActions.PracticeSelectionDeselect,
111
+ [NotificationEventActions.Reminder]: types_1.NotificationActions.PracticeReminder,
112
+ [NotificationEventActions.ReminderDatetimeToConfirmed]: types_1.NotificationActions.PracticeReminderDatetimeToConfirmed,
113
+ [NotificationEventActions.ReminderDeadlineSoonToPending]: types_1.NotificationActions.PracticeReminderDeadlineSoonToPending,
114
+ [NotificationEventActions.ReminderDeadlineEndedInSelectionModeOpen]: types_1.NotificationActions.PracticeReminderDeadlineEndedInSelectionModeOpen,
115
+ [NotificationEventActions.ReminderDeadlineEndedInSelectionModeClosedOrNotActive]: types_1.NotificationActions.PracticeReminderDeadlineEndedInSelectionModeClosedOrNotActive,
116
+ [NotificationEventActions.ReminderRollcall]: types_1.NotificationActions.PracticeRollCallReminder,
114
117
  };
115
- export const notificationMultiplePractice = {
116
- [NotificationEventActions.Cancel]: NotificationActions.PracticesCancel,
117
- [NotificationEventActions.Create]: NotificationActions.PracticesCreate,
118
- [NotificationEventActions.EditAttendance]: NotificationActions.PracticesEditAttendance,
119
- [NotificationEventActions.EditComments]: NotificationActions.PracticesEditComments,
120
- [NotificationEventActions.EditDatetime]: NotificationActions.PracticesEditDatetime,
121
- [NotificationEventActions.EditLocality]: NotificationActions.PracticesEditLocality,
122
- [NotificationEventActions.EditRepertory]: NotificationActions.PracticesEditRepertory,
123
- [NotificationEventActions.EditTitle]: NotificationActions.PracticesEditTitle,
124
- [NotificationEventActions.EditStage]: NotificationActions.PracticesEditStage,
125
- [NotificationEventActions.EditResponseDeadline]: NotificationActions.PracticesEditResponseDeadline,
126
- [NotificationEventActions.AddPlayers]: NotificationActions.PracticesPlayersAdd,
127
- [NotificationEventActions.RemovePlayers]: NotificationActions.PracticesPlayersRemove,
128
- [NotificationEventActions.ConfirmAssistance]: NotificationActions.PracticeAssistanceConfirm,
129
- [NotificationEventActions.DeclineAssistance]: NotificationActions.PracticeAssistanceDecline,
130
- [NotificationEventActions.ConfirmAssistanceByAdmin]: NotificationActions.PracticeAssistanceConfirmByAdmin,
131
- [NotificationEventActions.DeclineAssistanceByAdmin]: NotificationActions.PracticeAssistanceDeclineByAdmin,
132
- [NotificationEventActions.ConfirmInterest]: NotificationActions.PracticeInterestConfirm,
133
- [NotificationEventActions.LoseInterest]: NotificationActions.PracticeInterestLose,
134
- [NotificationEventActions.SelectionSelected]: NotificationActions.PracticeSelectionSelect,
135
- [NotificationEventActions.SelectionDeselected]: NotificationActions.PracticeSelectionDeselect,
136
- [NotificationEventActions.Reminder]: NotificationActions.PracticeReminder,
137
- [NotificationEventActions.ReminderDatetimeToConfirmed]: NotificationActions.PracticeReminderDatetimeToConfirmed,
138
- [NotificationEventActions.ReminderDeadlineSoonToPending]: NotificationActions.PracticeReminderDeadlineSoonToPending,
139
- [NotificationEventActions.ReminderDeadlineEndedInSelectionModeOpen]: NotificationActions.PracticeReminderDeadlineEndedInSelectionModeOpen,
140
- [NotificationEventActions.ReminderDeadlineEndedInSelectionModeClosedOrNotActive]: NotificationActions.PracticeReminderDeadlineEndedInSelectionModeClosedOrNotActive,
141
- [NotificationEventActions.ReminderRollcall]: NotificationActions.PracticeRollCallReminder,
118
+ exports.notificationMultiplePractice = {
119
+ [NotificationEventActions.Cancel]: types_1.NotificationActions.PracticesCancel,
120
+ [NotificationEventActions.Create]: types_1.NotificationActions.PracticesCreate,
121
+ [NotificationEventActions.EditAttendance]: types_1.NotificationActions.PracticesEditAttendance,
122
+ [NotificationEventActions.EditComments]: types_1.NotificationActions.PracticesEditComments,
123
+ [NotificationEventActions.EditDatetime]: types_1.NotificationActions.PracticesEditDatetime,
124
+ [NotificationEventActions.EditLocality]: types_1.NotificationActions.PracticesEditLocality,
125
+ [NotificationEventActions.EditRepertory]: types_1.NotificationActions.PracticesEditRepertory,
126
+ [NotificationEventActions.EditTitle]: types_1.NotificationActions.PracticesEditTitle,
127
+ [NotificationEventActions.EditStage]: types_1.NotificationActions.PracticesEditStage,
128
+ [NotificationEventActions.EditResponseDeadline]: types_1.NotificationActions.PracticesEditResponseDeadline,
129
+ [NotificationEventActions.AddPlayers]: types_1.NotificationActions.PracticesPlayersAdd,
130
+ [NotificationEventActions.RemovePlayers]: types_1.NotificationActions.PracticesPlayersRemove,
131
+ [NotificationEventActions.ConfirmAssistance]: types_1.NotificationActions.PracticeAssistanceConfirm,
132
+ [NotificationEventActions.DeclineAssistance]: types_1.NotificationActions.PracticeAssistanceDecline,
133
+ [NotificationEventActions.ConfirmAssistanceByAdmin]: types_1.NotificationActions.PracticeAssistanceConfirmByAdmin,
134
+ [NotificationEventActions.DeclineAssistanceByAdmin]: types_1.NotificationActions.PracticeAssistanceDeclineByAdmin,
135
+ [NotificationEventActions.ConfirmInterest]: types_1.NotificationActions.PracticeInterestConfirm,
136
+ [NotificationEventActions.LoseInterest]: types_1.NotificationActions.PracticeInterestLose,
137
+ [NotificationEventActions.SelectionSelected]: types_1.NotificationActions.PracticeSelectionSelect,
138
+ [NotificationEventActions.SelectionDeselected]: types_1.NotificationActions.PracticeSelectionDeselect,
139
+ [NotificationEventActions.Reminder]: types_1.NotificationActions.PracticeReminder,
140
+ [NotificationEventActions.ReminderDatetimeToConfirmed]: types_1.NotificationActions.PracticeReminderDatetimeToConfirmed,
141
+ [NotificationEventActions.ReminderDeadlineSoonToPending]: types_1.NotificationActions.PracticeReminderDeadlineSoonToPending,
142
+ [NotificationEventActions.ReminderDeadlineEndedInSelectionModeOpen]: types_1.NotificationActions.PracticeReminderDeadlineEndedInSelectionModeOpen,
143
+ [NotificationEventActions.ReminderDeadlineEndedInSelectionModeClosedOrNotActive]: types_1.NotificationActions.PracticeReminderDeadlineEndedInSelectionModeClosedOrNotActive,
144
+ [NotificationEventActions.ReminderRollcall]: types_1.NotificationActions.PracticeRollCallReminder,
142
145
  };
143
- export const userNotificationSettings = {
144
- [UserNotificationSettings.AttendanceConfirmed]: [
145
- NotificationActions.PerformanceAssistanceConfirm,
146
- NotificationActions.PracticeAssistanceConfirm,
146
+ exports.userNotificationSettings = {
147
+ [types_2.UserNotificationSettings.AttendanceConfirmed]: [
148
+ types_1.NotificationActions.PerformanceAssistanceConfirm,
149
+ types_1.NotificationActions.PracticeAssistanceConfirm,
147
150
  ],
148
- [UserNotificationSettings.AttendanceDeclined]: [
149
- NotificationActions.PerformanceAssistanceDecline,
150
- NotificationActions.PracticeAssistanceDecline,
151
+ [types_2.UserNotificationSettings.AttendanceDeclined]: [
152
+ types_1.NotificationActions.PerformanceAssistanceDecline,
153
+ types_1.NotificationActions.PracticeAssistanceDecline,
151
154
  ],
152
- [UserNotificationSettings.InterestConfirmed]: [
153
- NotificationActions.PerformanceInterestConfirm,
154
- NotificationActions.PracticeInterestConfirm,
155
+ [types_2.UserNotificationSettings.InterestConfirmed]: [
156
+ types_1.NotificationActions.PerformanceInterestConfirm,
157
+ types_1.NotificationActions.PracticeInterestConfirm,
155
158
  ],
156
- [UserNotificationSettings.InterestLost]: [
157
- NotificationActions.PerformanceInterestLose,
158
- NotificationActions.PracticeInterestLose,
159
+ [types_2.UserNotificationSettings.InterestLost]: [
160
+ types_1.NotificationActions.PerformanceInterestLose,
161
+ types_1.NotificationActions.PracticeInterestLose,
159
162
  ],
160
163
  };
@@ -1,24 +1,31 @@
1
- import { format } from 'date-fns';
2
- import { utcToZonedTime } from 'date-fns-tz';
3
- import { get, mapValues } from 'lodash';
4
- import { getDateLang } from '../../lang';
5
- import Instrument from '../../models/Instrument';
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
+ exports.replaceKeysNotification = exports.replaceVarsBrackets = void 0;
7
+ const date_fns_1 = require("date-fns");
8
+ const date_fns_tz_1 = require("date-fns-tz");
9
+ const lodash_1 = require("lodash");
10
+ const lang_1 = require("../../lang");
11
+ const Instrument_1 = __importDefault(require("../../models/Instrument"));
6
12
  var PlaceholderType;
7
13
  (function (PlaceholderType) {
8
14
  PlaceholderType["Instrument"] = "instrument";
9
15
  PlaceholderType["Date"] = "date";
10
16
  PlaceholderType["String"] = "string";
11
17
  })(PlaceholderType || (PlaceholderType = {}));
12
- export const replaceVarsBrackets = (string, values) => {
18
+ const replaceVarsBrackets = (string, values) => {
13
19
  const matches = string.match(/[^[\]]+(?=])/g);
14
20
  let replaceString = string;
15
21
  if (matches && matches.length > 0) {
16
22
  matches.forEach((match) => {
17
- replaceString = replaceString.replace(`[${match}]`, get(values, match));
23
+ replaceString = replaceString.replace(`[${match}]`, (0, lodash_1.get)(values, match));
18
24
  });
19
25
  }
20
26
  return replaceString;
21
27
  };
28
+ exports.replaceVarsBrackets = replaceVarsBrackets;
22
29
  const getTypeAndPathFromPlaceholder = (placeholder) => {
23
30
  const placeholderWithoutBrackets = placeholder.slice(1, -1);
24
31
  const [type, key, formatValue] = placeholderWithoutBrackets.split(':');
@@ -34,13 +41,13 @@ const getPropsPathsFromArrayPlaceholderInPath = (path) => {
34
41
  const props = placeholder ? placeholder.slice(1, -1).replace(' ', '').split(',') : [];
35
42
  return props.map((prop) => [...path, prop]);
36
43
  };
37
- export const replaceKeysNotification = (text, values, lang) => {
44
+ const replaceKeysNotification = (text, values, lang) => {
38
45
  const placeholders = text.match(/(\{).+?(\})/g);
39
46
  if (!placeholders || placeholders.length === 0) {
40
47
  return text;
41
48
  }
42
49
  const { extra, ...entityObjects } = values;
43
- const entityArrays = mapValues(entityObjects, (value) => value ? Object.values(value) : undefined);
50
+ const entityArrays = (0, lodash_1.mapValues)(entityObjects, (value) => value ? Object.values(value) : undefined);
44
51
  const newValues = {
45
52
  extra,
46
53
  ...entityArrays,
@@ -50,33 +57,34 @@ export const replaceKeysNotification = (text, values, lang) => {
50
57
  switch (type) {
51
58
  case PlaceholderType.Instrument: {
52
59
  const [instrumentIdPropPath, customInstrumentNamePropPath] = getPropsPathsFromArrayPlaceholderInPath(path);
53
- const customInstrumentName = get(newValues, customInstrumentNamePropPath);
60
+ const customInstrumentName = (0, lodash_1.get)(newValues, customInstrumentNamePropPath);
54
61
  if (customInstrumentName) {
55
62
  return text.replace(placeholder, customInstrumentName.toLowerCase());
56
63
  }
57
- const instrumentId = get(newValues, instrumentIdPropPath);
58
- const instrument = new Instrument(instrumentId, lang);
64
+ const instrumentId = (0, lodash_1.get)(newValues, instrumentIdPropPath);
65
+ const instrument = new Instrument_1.default(instrumentId, lang);
59
66
  if (!instrument)
60
67
  return text;
61
68
  return text.replace(placeholder, instrument.name.toLowerCase());
62
69
  }
63
70
  case PlaceholderType.Date: {
64
71
  const [datetimePropPath, timezonePropPath] = getPropsPathsFromArrayPlaceholderInPath(path);
65
- const datetime = get(newValues, datetimePropPath);
72
+ const datetime = (0, lodash_1.get)(newValues, datetimePropPath);
66
73
  if (!datetime)
67
74
  return text.replace(placeholder, '');
68
- const timezone = get(newValues, timezonePropPath) || 'Europe/Madrid';
69
- const zonedDatetime = utcToZonedTime(datetime.toDate(), timezone);
70
- const dateLang = getDateLang(lang);
71
- const dateFormat = format(zonedDatetime, get(dateLang.format, formatValue), {
75
+ const timezone = (0, lodash_1.get)(newValues, timezonePropPath) || 'Europe/Madrid';
76
+ const zonedDatetime = (0, date_fns_tz_1.utcToZonedTime)(datetime.toDate(), timezone);
77
+ const dateLang = (0, lang_1.getDateLang)(lang);
78
+ const dateFormat = (0, date_fns_1.format)(zonedDatetime, (0, lodash_1.get)(dateLang.format, formatValue), {
72
79
  locale: dateLang.locale,
73
80
  });
74
81
  return text.replace(placeholder, dateFormat);
75
82
  }
76
83
  case PlaceholderType.String:
77
- return text.replace(placeholder, get(newValues, path));
84
+ return text.replace(placeholder, (0, lodash_1.get)(newValues, path));
78
85
  default:
79
86
  return text;
80
87
  }
81
88
  }, text);
82
89
  };
90
+ exports.replaceKeysNotification = replaceKeysNotification;
@@ -1,31 +1,39 @@
1
- import { omit } from 'lodash';
2
- import { objectEntries, objectFromEntries } from './ts-extras';
3
- export const mapToArray = (obj) => {
4
- return objectEntries(obj).map(([key, value]) => ({
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.forEach = exports.filter = exports.map = exports.orderedMapToArray = exports.mapToArray = void 0;
4
+ const lodash_1 = require("lodash");
5
+ const ts_extras_1 = require("./ts-extras");
6
+ const mapToArray = (obj) => {
7
+ return (0, ts_extras_1.objectEntries)(obj).map(([key, value]) => ({
5
8
  ...value,
6
9
  id: key,
7
10
  }));
8
11
  };
9
- export const orderedMapToArray = (obj) => {
10
- return objectEntries(obj)
12
+ exports.mapToArray = mapToArray;
13
+ const orderedMapToArray = (obj) => {
14
+ return (0, ts_extras_1.objectEntries)(obj)
11
15
  .map(([key, value]) => ({
12
16
  ...value,
13
17
  id: key,
14
18
  }))
15
19
  .sort((a, b) => a.order - b.order)
16
- .map((obj) => omit(obj, 'order'));
20
+ .map((obj) => (0, lodash_1.omit)(obj, 'order'));
17
21
  };
18
- export const map = (obj, fn) => {
19
- const entries = objectEntries(obj);
22
+ exports.orderedMapToArray = orderedMapToArray;
23
+ const map = (obj, fn) => {
24
+ const entries = (0, ts_extras_1.objectEntries)(obj);
20
25
  const mappedEntries = entries.map(([key, value], index) => fn(key, value, index));
21
- return objectFromEntries(mappedEntries);
26
+ return (0, ts_extras_1.objectFromEntries)(mappedEntries);
22
27
  };
23
- export const filter = (obj, fn) => {
24
- const entries = objectEntries(obj);
28
+ exports.map = map;
29
+ const filter = (obj, fn) => {
30
+ const entries = (0, ts_extras_1.objectEntries)(obj);
25
31
  const filteredEntries = entries.filter(([key, value], index) => fn(key, value, index));
26
- return objectFromEntries(filteredEntries);
32
+ return (0, ts_extras_1.objectFromEntries)(filteredEntries);
27
33
  };
28
- export const forEach = (obj, fn) => {
29
- const entries = objectEntries(obj);
34
+ exports.filter = filter;
35
+ const forEach = (obj, fn) => {
36
+ const entries = (0, ts_extras_1.objectEntries)(obj);
30
37
  return entries.forEach(([key, value], index) => fn(key, value, index));
31
38
  };
39
+ exports.forEach = forEach;
@@ -1,6 +1,9 @@
1
- import { PaymentStatus } from '../models/Payment/types';
2
- export const paymentStatusErrors = [
3
- PaymentStatus.Error,
4
- PaymentStatus.Chargeback,
5
- PaymentStatus.Canceled,
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paymentStatusErrors = void 0;
4
+ const types_1 = require("../models/Payment/types");
5
+ exports.paymentStatusErrors = [
6
+ types_1.PaymentStatus.Error,
7
+ types_1.PaymentStatus.Chargeback,
8
+ types_1.PaymentStatus.Canceled,
6
9
  ];
package/helpers/plans.js CHANGED
@@ -1,4 +1,7 @@
1
- export var PlansGroup;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.pricesPerPlan = exports.membersPerPlan = exports.PlanPeriod = exports.PlansGroup = void 0;
4
+ var PlansGroup;
2
5
  (function (PlansGroup) {
3
6
  PlansGroup["Piano"] = "piano";
4
7
  PlansGroup["MezzoPiano"] = "mezzopiano";
@@ -6,13 +9,13 @@ export var PlansGroup;
6
9
  PlansGroup["Forte"] = "forte";
7
10
  PlansGroup["Fortissimo"] = "fortissimo";
8
11
  PlansGroup["Tutti"] = "tutti";
9
- })(PlansGroup || (PlansGroup = {}));
10
- export var PlanPeriod;
12
+ })(PlansGroup = exports.PlansGroup || (exports.PlansGroup = {}));
13
+ var PlanPeriod;
11
14
  (function (PlanPeriod) {
12
15
  PlanPeriod["Yearly"] = "yearly";
13
16
  PlanPeriod["Monthly"] = "monthly";
14
- })(PlanPeriod || (PlanPeriod = {}));
15
- export const membersPerPlan = {
17
+ })(PlanPeriod = exports.PlanPeriod || (exports.PlanPeriod = {}));
18
+ exports.membersPerPlan = {
16
19
  [PlansGroup.Piano]: 20,
17
20
  [PlansGroup.MezzoPiano]: 40,
18
21
  [PlansGroup.MezzoForte]: 60,
@@ -20,7 +23,7 @@ export const membersPerPlan = {
20
23
  [PlansGroup.Fortissimo]: 100,
21
24
  [PlansGroup.Tutti]: 1000,
22
25
  };
23
- export const pricesPerPlan = {
26
+ exports.pricesPerPlan = {
24
27
  [PlanPeriod.Monthly]: {
25
28
  [PlansGroup.Piano]: 0,
26
29
  [PlansGroup.MezzoPiano]: 9.9,
package/helpers/rates.js CHANGED
@@ -1,4 +1,7 @@
1
- export const rateSteps = [
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getStepRating = exports.rateSteps = void 0;
4
+ exports.rateSteps = [
2
5
  {
3
6
  id: 'love',
4
7
  emoji: '😍',
@@ -24,4 +27,5 @@ export const rateSteps = [
24
27
  range: [1, 1.74],
25
28
  },
26
29
  ];
27
- export const getStepRating = (rating) => rateSteps.find((step) => rating >= step.range[0] && rating <= step.range[1]);
30
+ const getStepRating = (rating) => exports.rateSteps.find((step) => rating >= step.range[0] && rating <= step.range[1]);
31
+ exports.getStepRating = getStepRating;
@@ -1,27 +1,31 @@
1
- import { EventPlayerReason, EventPlayerStatus } from '../models/Evento/Player/types';
2
- export const reasonEmojis = {
3
- [EventPlayerReason.ArrivingLate]: '⏱',
4
- [EventPlayerReason.LeavingEarly]: '🏃',
5
- [EventPlayerReason.Sick]: '🤒',
6
- [EventPlayerReason.Vacation]: '🏖',
7
- [EventPlayerReason.Other]: '✏️',
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getOptionsByType = exports.reasonEmojis = void 0;
4
+ const types_1 = require("../models/Evento/Player/types");
5
+ exports.reasonEmojis = {
6
+ [types_1.EventPlayerReason.ArrivingLate]: '',
7
+ [types_1.EventPlayerReason.LeavingEarly]: '🏃',
8
+ [types_1.EventPlayerReason.Sick]: '🤒',
9
+ [types_1.EventPlayerReason.Vacation]: '🏖',
10
+ [types_1.EventPlayerReason.Other]: '✏️',
8
11
  };
9
12
  const reasonsByType = {
10
- [EventPlayerStatus.Confirmed]: [
11
- EventPlayerReason.ArrivingLate,
12
- EventPlayerReason.LeavingEarly,
13
- EventPlayerReason.Other,
13
+ [types_1.EventPlayerStatus.Confirmed]: [
14
+ types_1.EventPlayerReason.ArrivingLate,
15
+ types_1.EventPlayerReason.LeavingEarly,
16
+ types_1.EventPlayerReason.Other,
14
17
  ],
15
- [EventPlayerStatus.Declined]: [
16
- EventPlayerReason.Vacation,
17
- EventPlayerReason.Sick,
18
- EventPlayerReason.Other,
18
+ [types_1.EventPlayerStatus.Declined]: [
19
+ types_1.EventPlayerReason.Vacation,
20
+ types_1.EventPlayerReason.Sick,
21
+ types_1.EventPlayerReason.Other,
19
22
  ],
20
23
  };
21
- export const getOptionsByType = (type) => {
24
+ const getOptionsByType = (type) => {
22
25
  const reasons = Object.values(reasonsByType[type] || {});
23
26
  return reasons.map((id) => ({
24
27
  id,
25
- emoji: reasonEmojis[id],
28
+ emoji: exports.reasonEmojis[id],
26
29
  }));
27
30
  };
31
+ exports.getOptionsByType = getOptionsByType;
package/helpers/slate.js CHANGED
@@ -1,13 +1,20 @@
1
- import get from 'lodash/get';
2
- export const serializeSlateBlock = (nodes) => {
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
+ exports.serializeSlateBlock = void 0;
7
+ const get_1 = __importDefault(require("lodash/get"));
8
+ const serializeSlateBlock = (nodes) => {
3
9
  return nodes
4
10
  .map((node) => {
5
- const children = get(node, 'children');
11
+ const children = (0, get_1.default)(node, 'children');
6
12
  if (children) {
7
- return serializeSlateBlock(children);
13
+ return (0, exports.serializeSlateBlock)(children);
8
14
  }
9
- const text = get(node, 'text');
15
+ const text = (0, get_1.default)(node, 'text');
10
16
  return text || '';
11
17
  })
12
18
  .join(' ');
13
19
  };
20
+ exports.serializeSlateBlock = serializeSlateBlock;
package/helpers/styles.js CHANGED
@@ -1,4 +1,7 @@
1
- export const colors = {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.colors = void 0;
4
+ exports.colors = {
2
5
  white: '#FFFFFF',
3
6
  black: '#000000',
4
7
  primary: '#66c94a',
@@ -1,3 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.arrayIncludes = void 0;
1
4
  /**
2
5
  An alternative to `Array#includes()` that properly acts as a type guard.
3
6
 
@@ -18,6 +21,7 @@ if (arrayIncludes(values, valueToCheck)) {
18
21
  @category Improved builtin
19
22
  @category Type guard
20
23
  */
21
- export function arrayIncludes(array, item, fromIndex) {
24
+ function arrayIncludes(array, item, fromIndex) {
22
25
  return array.includes(item, fromIndex);
23
26
  }
27
+ exports.arrayIncludes = arrayIncludes;
@@ -1,3 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.asMutable = void 0;
1
4
  /**
2
5
  Cast the given value to be [`Mutable`](https://github.com/sindresorhus/type-fest/blob/main/source/mutable.d.ts).
3
6
 
@@ -12,6 +15,7 @@ const mutableContext = asMutable((await import('x')).context);
12
15
 
13
16
  @category General
14
17
  */
15
- export function asMutable(value) {
18
+ function asMutable(value) {
16
19
  return value; // eslint-disable-line @typescript-eslint/no-unsafe-return,@typescript-eslint/no-explicit-any
17
20
  }
21
+ exports.asMutable = asMutable;
@@ -1,3 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.assertError = void 0;
1
4
  /**
2
5
  Assert that the given value is an `Error`.
3
6
 
@@ -27,8 +30,9 @@ try {
27
30
 
28
31
  @category Type guard
29
32
  */
30
- export function assertError(value) {
33
+ function assertError(value) {
31
34
  if (!(value instanceof Error || Object.prototype.toString.call(value) === '[object Error]')) {
32
35
  throw new TypeError(`Expected an \`Error\`, got \`${JSON.stringify(value)}\` (${typeof value})`);
33
36
  }
34
37
  }
38
+ exports.assertError = assertError;