@greatapps/common 1.1.525 → 1.1.526

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 (185) hide show
  1. package/dist/components/account/ConfigurationsMyAccountModal.mjs +10 -4
  2. package/dist/components/account/ConfigurationsMyAccountModal.mjs.map +1 -1
  3. package/dist/components/account/hooks/useDisableTwoFactorAuthForm.mjs +3 -1
  4. package/dist/components/account/hooks/useDisableTwoFactorAuthForm.mjs.map +1 -1
  5. package/dist/components/account/sections/ChangeEmailModal.mjs +3 -1
  6. package/dist/components/account/sections/ChangeEmailModal.mjs.map +1 -1
  7. package/dist/components/account/sections/ChangePhoneModal.mjs +3 -1
  8. package/dist/components/account/sections/ChangePhoneModal.mjs.map +1 -1
  9. package/dist/components/account/sections/MyProfileSection.mjs +2 -1
  10. package/dist/components/account/sections/MyProfileSection.mjs.map +1 -1
  11. package/dist/components/account/sections/TokenSection.mjs +72 -0
  12. package/dist/components/account/sections/TokenSection.mjs.map +1 -0
  13. package/dist/components/embeds/ClarityEmbed.mjs +55 -0
  14. package/dist/components/embeds/ClarityEmbed.mjs.map +1 -0
  15. package/dist/components/embeds/EmbedWidgets.mjs +3 -1
  16. package/dist/components/embeds/EmbedWidgets.mjs.map +1 -1
  17. package/dist/components/layouts/AppMobileNavBar.mjs +3 -1
  18. package/dist/components/layouts/AppMobileNavBar.mjs.map +1 -1
  19. package/dist/components/layouts/AppNavBar.mjs +4 -8
  20. package/dist/components/layouts/AppNavBar.mjs.map +1 -1
  21. package/dist/components/layouts/NavBar.mjs +10 -9
  22. package/dist/components/layouts/NavBar.mjs.map +1 -1
  23. package/dist/components/layouts/NotificationsPopover.mjs +5 -2
  24. package/dist/components/layouts/NotificationsPopover.mjs.map +1 -1
  25. package/dist/components/layouts/ProfilePopover.mjs +4 -2
  26. package/dist/components/layouts/ProfilePopover.mjs.map +1 -1
  27. package/dist/components/layouts/SideBarNavigation.mjs +4 -1
  28. package/dist/components/layouts/SideBarNavigation.mjs.map +1 -1
  29. package/dist/components/modals/BuyCreditsModal.mjs +26 -9
  30. package/dist/components/modals/BuyCreditsModal.mjs.map +1 -1
  31. package/dist/components/modals/cards/AddCardModal.mjs +3 -1
  32. package/dist/components/modals/cards/AddCardModal.mjs.map +1 -1
  33. package/dist/components/navigation/CancelledSubscriptionBanner.mjs +1 -1
  34. package/dist/components/navigation/CancelledSubscriptionBanner.mjs.map +1 -1
  35. package/dist/components/navigation/ProjectSelectorPopover.mjs +7 -6
  36. package/dist/components/navigation/ProjectSelectorPopover.mjs.map +1 -1
  37. package/dist/components/navigation/subcomponents/ProjectSelector.mjs +39 -19
  38. package/dist/components/navigation/subcomponents/ProjectSelector.mjs.map +1 -1
  39. package/dist/components/pages/NotFoundPage.mjs +2 -2
  40. package/dist/components/pages/NotFoundPage.mjs.map +1 -1
  41. package/dist/components/ui/buttons/Button.mjs +7 -2
  42. package/dist/components/ui/buttons/Button.mjs.map +1 -1
  43. package/dist/components/ui/data-display/CardItem.mjs +1 -1
  44. package/dist/components/ui/data-display/CardItem.mjs.map +1 -1
  45. package/dist/components/ui/data-display/PaymentInfoCard.mjs +4 -2
  46. package/dist/components/ui/data-display/PaymentInfoCard.mjs.map +1 -1
  47. package/dist/components/ui/data-display/UserAvatar.mjs +6 -2
  48. package/dist/components/ui/data-display/UserAvatar.mjs.map +1 -1
  49. package/dist/components/ui/feedback/DefaultCircularProgress.mjs +4 -1
  50. package/dist/components/ui/feedback/DefaultCircularProgress.mjs.map +1 -1
  51. package/dist/components/ui/feedback/Toast.mjs +7 -2
  52. package/dist/components/ui/feedback/Toast.mjs.map +1 -1
  53. package/dist/components/ui/form/FormField.mjs +1 -1
  54. package/dist/components/ui/form/FormField.mjs.map +1 -1
  55. package/dist/components/ui/form/Select.mjs +1 -1
  56. package/dist/components/ui/form/Select.mjs.map +1 -1
  57. package/dist/components/ui/overlay/Popover.mjs +1 -1
  58. package/dist/components/ui/overlay/Popover.mjs.map +1 -1
  59. package/dist/components/ui/overlay/Sheet.mjs +8 -6
  60. package/dist/components/ui/overlay/Sheet.mjs.map +1 -1
  61. package/dist/components/widgets/ImageUpload/ImageCropModal.mjs +11 -37
  62. package/dist/components/widgets/ImageUpload/ImageCropModal.mjs.map +1 -1
  63. package/dist/components/widgets/ImageUpload/ImageUpload.mjs +2 -1
  64. package/dist/components/widgets/ImageUpload/ImageUpload.mjs.map +1 -1
  65. package/dist/components/widgets/notifications/NotificationCard.mjs +4 -1
  66. package/dist/components/widgets/notifications/NotificationCard.mjs.map +1 -1
  67. package/dist/enums/AccountSectionType.mjs +1 -0
  68. package/dist/enums/AccountSectionType.mjs.map +1 -1
  69. package/dist/hooks/useAuthQueryKey.mjs +23 -0
  70. package/dist/hooks/useAuthQueryKey.mjs.map +1 -0
  71. package/dist/index.mjs +90 -8
  72. package/dist/index.mjs.map +1 -1
  73. package/dist/infra/utils/array.mjs +34 -0
  74. package/dist/infra/utils/array.mjs.map +1 -0
  75. package/dist/modules/accounts/actions/get-account-token.action.mjs +10 -0
  76. package/dist/modules/accounts/actions/get-account-token.action.mjs.map +1 -0
  77. package/dist/modules/accounts/hooks/current-account.hook.mjs +5 -2
  78. package/dist/modules/accounts/hooks/current-account.hook.mjs.map +1 -1
  79. package/dist/modules/accounts/hooks/use-account-token.hook.mjs +15 -0
  80. package/dist/modules/accounts/hooks/use-account-token.hook.mjs.map +1 -0
  81. package/dist/modules/accounts/hooks/useAccountManagement.mjs +19 -9
  82. package/dist/modules/accounts/hooks/useAccountManagement.mjs.map +1 -1
  83. package/dist/modules/accounts/hooks/useCurrencies.mjs +3 -1
  84. package/dist/modules/accounts/hooks/useCurrencies.mjs.map +1 -1
  85. package/dist/modules/accounts/hooks/useTimezones.mjs +3 -1
  86. package/dist/modules/accounts/hooks/useTimezones.mjs.map +1 -1
  87. package/dist/modules/accounts/services/account-token.service.mjs +32 -0
  88. package/dist/modules/accounts/services/account-token.service.mjs.map +1 -0
  89. package/dist/modules/auth/hooks/useUserQuery.mjs +15 -6
  90. package/dist/modules/auth/hooks/useUserQuery.mjs.map +1 -1
  91. package/dist/modules/cards/actions/delete-card.action.mjs +10 -0
  92. package/dist/modules/cards/actions/delete-card.action.mjs.map +1 -0
  93. package/dist/modules/cards/actions/find-card-by-id.action.mjs +10 -0
  94. package/dist/modules/cards/actions/find-card-by-id.action.mjs.map +1 -0
  95. package/dist/modules/cards/actions/set-default-card.action.mjs +10 -0
  96. package/dist/modules/cards/actions/set-default-card.action.mjs.map +1 -0
  97. package/dist/modules/cards/hooks/card-by-id.hook.mjs +22 -0
  98. package/dist/modules/cards/hooks/card-by-id.hook.mjs.map +1 -0
  99. package/dist/modules/cards/hooks/cards.hook.mjs +11 -3
  100. package/dist/modules/cards/hooks/cards.hook.mjs.map +1 -1
  101. package/dist/modules/cards/hooks/create-card.hook.mjs +13 -2
  102. package/dist/modules/cards/hooks/create-card.hook.mjs.map +1 -1
  103. package/dist/modules/cards/hooks/delete-card.hook.mjs +50 -0
  104. package/dist/modules/cards/hooks/delete-card.hook.mjs.map +1 -0
  105. package/dist/modules/cards/hooks/set-default-card.hook.mjs +51 -0
  106. package/dist/modules/cards/hooks/set-default-card.hook.mjs.map +1 -0
  107. package/dist/modules/cards/services/cards.service.mjs +45 -4
  108. package/dist/modules/cards/services/cards.service.mjs.map +1 -1
  109. package/dist/modules/cards/types.mjs +11 -3
  110. package/dist/modules/cards/types.mjs.map +1 -1
  111. package/dist/modules/ia-credits/hooks/ia-credits.hook.mjs +3 -1
  112. package/dist/modules/ia-credits/hooks/ia-credits.hook.mjs.map +1 -1
  113. package/dist/modules/plans/hooks/list-plans.hook.mjs +3 -1
  114. package/dist/modules/plans/hooks/list-plans.hook.mjs.map +1 -1
  115. package/dist/modules/plans/hooks/use-plan-by-id.hook.mjs +4 -2
  116. package/dist/modules/plans/hooks/use-plan-by-id.hook.mjs.map +1 -1
  117. package/dist/modules/plans/services/plans.service.mjs +4 -2
  118. package/dist/modules/plans/services/plans.service.mjs.map +1 -1
  119. package/dist/modules/plans/types/plan.type.mjs.map +1 -1
  120. package/dist/modules/plans/utils/map-api-plan-to-ui.mjs +20 -10
  121. package/dist/modules/plans/utils/map-api-plan-to-ui.mjs.map +1 -1
  122. package/dist/modules/projects/actions/create-project.action.mjs +10 -0
  123. package/dist/modules/projects/actions/create-project.action.mjs.map +1 -0
  124. package/dist/modules/projects/actions/delete-project.action.mjs +10 -0
  125. package/dist/modules/projects/actions/delete-project.action.mjs.map +1 -0
  126. package/dist/modules/projects/actions/find-project.action.mjs +10 -0
  127. package/dist/modules/projects/actions/find-project.action.mjs.map +1 -0
  128. package/dist/modules/projects/actions/list-projects.action.mjs +10 -0
  129. package/dist/modules/projects/actions/list-projects.action.mjs.map +1 -0
  130. package/dist/modules/projects/actions/update-project.action.mjs +10 -0
  131. package/dist/modules/projects/actions/update-project.action.mjs.map +1 -0
  132. package/dist/modules/projects/hooks/add-project-user.hook.mjs +15 -12
  133. package/dist/modules/projects/hooks/add-project-user.hook.mjs.map +1 -1
  134. package/dist/modules/projects/hooks/create-project.hook.mjs +71 -0
  135. package/dist/modules/projects/hooks/create-project.hook.mjs.map +1 -0
  136. package/dist/modules/projects/hooks/delete-project.hook.mjs +53 -0
  137. package/dist/modules/projects/hooks/delete-project.hook.mjs.map +1 -0
  138. package/dist/modules/projects/hooks/find-project.hook.mjs +19 -0
  139. package/dist/modules/projects/hooks/find-project.hook.mjs.map +1 -0
  140. package/dist/modules/projects/hooks/list-all-account-users.hook.mjs +3 -1
  141. package/dist/modules/projects/hooks/list-all-account-users.hook.mjs.map +1 -1
  142. package/dist/modules/projects/hooks/list-available-users.hook.mjs +3 -1
  143. package/dist/modules/projects/hooks/list-available-users.hook.mjs.map +1 -1
  144. package/dist/modules/projects/hooks/list-infinite-projects.hook.mjs +39 -0
  145. package/dist/modules/projects/hooks/list-infinite-projects.hook.mjs.map +1 -0
  146. package/dist/modules/projects/hooks/list-project-users.hook.mjs +3 -1
  147. package/dist/modules/projects/hooks/list-project-users.hook.mjs.map +1 -1
  148. package/dist/modules/projects/hooks/list-projects.hook.mjs +22 -0
  149. package/dist/modules/projects/hooks/list-projects.hook.mjs.map +1 -0
  150. package/dist/modules/projects/hooks/remove-project-user.hook.mjs +15 -12
  151. package/dist/modules/projects/hooks/remove-project-user.hook.mjs.map +1 -1
  152. package/dist/modules/projects/hooks/update-project.hook.mjs +70 -0
  153. package/dist/modules/projects/hooks/update-project.hook.mjs.map +1 -0
  154. package/dist/modules/projects/services/projects.service.mjs +99 -0
  155. package/dist/modules/projects/services/projects.service.mjs.map +1 -0
  156. package/dist/modules/projects/types.mjs +19 -4
  157. package/dist/modules/projects/types.mjs.map +1 -1
  158. package/dist/modules/subscriptions/constants/query-keys.constants.mjs +2 -0
  159. package/dist/modules/subscriptions/constants/query-keys.constants.mjs.map +1 -1
  160. package/dist/modules/subscriptions/hooks/find-active-subscription.hook.mjs +5 -2
  161. package/dist/modules/subscriptions/hooks/find-active-subscription.hook.mjs.map +1 -1
  162. package/dist/modules/subscriptions/hooks/list-subscriptions.hook.mjs +3 -1
  163. package/dist/modules/subscriptions/hooks/list-subscriptions.hook.mjs.map +1 -1
  164. package/dist/modules/subscriptions/hooks/update-subscription-plan.hook.mjs +6 -3
  165. package/dist/modules/subscriptions/hooks/update-subscription-plan.hook.mjs.map +1 -1
  166. package/dist/modules/subscriptions/types/calculate-subscription.type.mjs +29 -2
  167. package/dist/modules/subscriptions/types/calculate-subscription.type.mjs.map +1 -1
  168. package/dist/modules/subscriptions/utils/periodicity.mjs +7 -0
  169. package/dist/modules/subscriptions/utils/periodicity.mjs.map +1 -1
  170. package/dist/modules/users/action/list-messages.action.mjs +14 -2
  171. package/dist/modules/users/action/list-messages.action.mjs.map +1 -1
  172. package/dist/modules/users/hooks/messages.hook.mjs +9 -4
  173. package/dist/modules/users/hooks/messages.hook.mjs.map +1 -1
  174. package/dist/modules/users/services/messages.service.mjs.map +1 -1
  175. package/dist/providers/auth.provider.mjs +6 -4
  176. package/dist/providers/auth.provider.mjs.map +1 -1
  177. package/dist/providers/query.provider.mjs +2 -2
  178. package/dist/providers/query.provider.mjs.map +1 -1
  179. package/dist/providers/whitelabel.provider.mjs +5 -0
  180. package/dist/providers/whitelabel.provider.mjs.map +1 -1
  181. package/dist/server.mjs +14 -0
  182. package/dist/server.mjs.map +1 -1
  183. package/package.json +1 -1
  184. package/dist/components/navigation/types.mjs +0 -1
  185. package/dist/components/navigation/types.mjs.map +0 -1
package/dist/server.mjs CHANGED
@@ -15,6 +15,7 @@ import { findWhitelabel } from "./modules/whitelabel/actions/find-whitelabel.act
15
15
  import { validateSessionAction } from "./modules/auth/actions/validate-session.action";
16
16
  import { findUserById } from "./modules/users/action/find-user-by-id.action";
17
17
  import { findCurrentAccount } from "./modules/accounts/actions/find-current-account.action";
18
+ import { getAccountTokenAction } from "./modules/accounts/actions/get-account-token.action";
18
19
  import { listSubscriptionsAction } from "./modules/subscriptions/actions/list-subscriptions.action";
19
20
  import { findPlanByIdAction } from "./modules/plans/actions/find-plan-by-id.action";
20
21
  import { listPlansAction } from "./modules/plans/actions/list-plans.action";
@@ -25,6 +26,12 @@ import { createCardAction } from "./modules/cards/actions/create-card.action";
25
26
  import { resolvePlanExtrasPrices } from "./modules/subscriptions/utils/resolve-plan-extras-prices";
26
27
  import { hasSubscriptionExpired } from "./modules/subscriptions/utils/has-subscription-expired";
27
28
  import { listIaCreditsAction } from "./modules/ia-credits/actions/list-ia-credits.action";
29
+ import { projectsService } from "./modules/projects/services/projects.service";
30
+ import { listProjectsAction } from "./modules/projects/actions/list-projects.action";
31
+ import { findProjectAction } from "./modules/projects/actions/find-project.action";
32
+ import { createProjectAction } from "./modules/projects/actions/create-project.action";
33
+ import { updateProjectAction } from "./modules/projects/actions/update-project.action";
34
+ import { deleteProjectAction } from "./modules/projects/actions/delete-project.action";
28
35
  import { projectUsersService } from "./modules/projects/services/project-users.service";
29
36
  import { listProjectUsersAction } from "./modules/projects/actions/list-project-users.action";
30
37
  import { listAvailableUsersAction } from "./modules/projects/actions/list-available-users.action";
@@ -76,14 +83,18 @@ export {
76
83
  confirmTwoFactorAction,
77
84
  createAccountUserAction,
78
85
  createCardAction,
86
+ createProjectAction,
79
87
  deleteAccountAction,
80
88
  deleteAccountUserAction,
89
+ deleteProjectAction,
81
90
  disableTwoFactorAction,
82
91
  findCurrentAccount,
83
92
  findPlanByIdAction,
93
+ findProjectAction,
84
94
  findUserById,
85
95
  findWhitelabel,
86
96
  generateTwoFactorAction,
97
+ getAccountTokenAction,
87
98
  getClientInfoFromRequest,
88
99
  getUserContext,
89
100
  hasSubscriptionExpired,
@@ -94,11 +105,13 @@ export {
94
105
  listIaCreditsAction,
95
106
  listPlansAction,
96
107
  listProjectUsersAction,
108
+ listProjectsAction,
97
109
  listSubscriptionsAction,
98
110
  plansService,
99
111
  processImage,
100
112
  processImageAction,
101
113
  projectUsersService,
114
+ projectsService,
102
115
  removeProjectUserAction,
103
116
  requestEmailChangeAction,
104
117
  requestPhoneChangeAction,
@@ -109,6 +122,7 @@ export {
109
122
  twoFactorService,
110
123
  updateAccountAction,
111
124
  updateAccountUserByIdAction,
125
+ updateProjectAction,
112
126
  updateSubscriptionPlanAction,
113
127
  updateUserAction,
114
128
  validateSessionAction,
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/server.ts"],"sourcesContent":["import 'server-only';\r\n\r\n// API Client\r\nexport { ApiClient, api, apiClient } from './infra/api/client';\r\n\r\n// Services\r\nexport { authService } from './modules/auth/services/auth.service';\r\nexport { whitelabelService } from './modules/whitelabel/services/whitelabel.service';\r\nexport { revalidateWhitelabelAction } from './modules/whitelabel/actions/revalidate-whitelabel.action';\r\nexport { assertManagementPermission } from './modules/auth/utils/assert-management-permission';\r\nexport { assertManagementSubscription } from './modules/auth/utils/assert-management-subscription';\r\nexport { assertSubscriptionAddon } from './modules/auth/utils/assert-subscription-addon';\r\nexport { assertPaidSubscription } from './modules/auth/utils/assert-paid-subscription';\r\nexport { subscriptionsService } from './modules/subscriptions/services/subscriptions.service';\r\nexport { plansService } from './modules/plans/services/plans.service';\r\nexport { cardsService } from './modules/cards/services/cards.service';\r\nexport { iaCreditsService } from './modules/ia-credits/services/ia-credits.service';\r\n\r\n// Actions\r\nexport { findWhitelabel } from './modules/whitelabel/actions/find-whitelabel.action';\r\nexport { validateSessionAction } from './modules/auth/actions/validate-session.action';\r\nexport { findUserById } from './modules/users/action/find-user-by-id.action';\r\nexport { findCurrentAccount } from './modules/accounts/actions/find-current-account.action';\r\nexport { listSubscriptionsAction } from './modules/subscriptions/actions/list-subscriptions.action';\r\nexport { findPlanByIdAction } from './modules/plans/actions/find-plan-by-id.action';\r\nexport { listPlansAction } from './modules/plans/actions/list-plans.action';\r\nexport { calculateSubscriptionAction } from './modules/subscriptions/actions/calculate-subscription.action';\r\nexport { updateSubscriptionPlanAction } from './modules/subscriptions/actions/update-subscription-plan.action';\r\nexport { listCardsAction } from './modules/cards/actions/list-cards.action';\r\nexport { createCardAction } from './modules/cards/actions/create-card.action';\r\nexport { resolvePlanExtrasPrices } from './modules/subscriptions/utils/resolve-plan-extras-prices';\r\nexport { hasSubscriptionExpired } from './modules/subscriptions/utils/has-subscription-expired';\r\nexport { listIaCreditsAction } from './modules/ia-credits/actions/list-ia-credits.action';\r\n\r\n// Project Users Services & Actions (server-only)\r\nexport { projectUsersService } from './modules/projects/services/project-users.service';\r\nexport { listProjectUsersAction } from './modules/projects/actions/list-project-users.action';\r\nexport { listAvailableUsersAction } from './modules/projects/actions/list-available-users.action';\r\nexport { addProjectUserAction } from './modules/projects/actions/add-project-user.action';\r\nexport { removeProjectUserAction } from './modules/projects/actions/remove-project-user.action';\r\n\r\n// Account Services & Actions (server-only)\r\nexport { accountService } from './modules/accounts/services/account.service';\r\nexport { twoFactorService } from './modules/accounts/services/two-factor.service';\r\nexport {\r\n listAccountUsersAction,\r\n updateUserAction,\r\n updateAccountAction,\r\n updateAccountUserByIdAction,\r\n deleteAccountUserAction,\r\n deleteAccountAction,\r\n createAccountUserAction,\r\n changePasswordAction,\r\n requestEmailChangeAction,\r\n confirmEmailChangeAction,\r\n requestPhoneChangeAction,\r\n confirmPhoneChangeAction,\r\n generateTwoFactorAction,\r\n confirmTwoFactorAction,\r\n disableTwoFactorAction,\r\n} from './modules/accounts/actions/account-management.action';\r\n\r\n// Server Utils\r\nexport { getClientInfoFromRequest } from './infra/utils/client-info';\r\nexport { getUserContext } from './modules/auth/utils/get-user-context';\r\nexport { buildWlOverride, buildWlOverrideFromJwt } from './modules/auth/utils/build-wl-override';\r\nexport { safeServerAction } from './utils/safeServerAction';\r\n\r\n// Image Processing (server-side)\r\nexport { processImageAction } from './modules/images/actions/process-image.action';\r\nexport { processImage } from './modules/images/services/image-processing.service';\r\nexport type {\r\n ProcessImageInput,\r\n ProcessImageOutput,\r\n ProcessImageActionInput,\r\n ProcessImageActionOutput,\r\n} from './modules/images/types/image.type';\r\n"],"mappings":"AAAA,OAAO;AAGP,SAAS,WAAW,KAAK,iBAAiB;AAG1C,SAAS,mBAAmB;AAC5B,SAAS,yBAAyB;AAClC,SAAS,kCAAkC;AAC3C,SAAS,kCAAkC;AAC3C,SAAS,oCAAoC;AAC7C,SAAS,+BAA+B;AACxC,SAAS,8BAA8B;AACvC,SAAS,4BAA4B;AACrC,SAAS,oBAAoB;AAC7B,SAAS,oBAAoB;AAC7B,SAAS,wBAAwB;AAGjC,SAAS,sBAAsB;AAC/B,SAAS,6BAA6B;AACtC,SAAS,oBAAoB;AAC7B,SAAS,0BAA0B;AACnC,SAAS,+BAA+B;AACxC,SAAS,0BAA0B;AACnC,SAAS,uBAAuB;AAChC,SAAS,mCAAmC;AAC5C,SAAS,oCAAoC;AAC7C,SAAS,uBAAuB;AAChC,SAAS,wBAAwB;AACjC,SAAS,+BAA+B;AACxC,SAAS,8BAA8B;AACvC,SAAS,2BAA2B;AAGpC,SAAS,2BAA2B;AACpC,SAAS,8BAA8B;AACvC,SAAS,gCAAgC;AACzC,SAAS,4BAA4B;AACrC,SAAS,+BAA+B;AAGxC,SAAS,sBAAsB;AAC/B,SAAS,wBAAwB;AACjC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAGP,SAAS,gCAAgC;AACzC,SAAS,sBAAsB;AAC/B,SAAS,iBAAiB,8BAA8B;AACxD,SAAS,wBAAwB;AAGjC,SAAS,0BAA0B;AACnC,SAAS,oBAAoB;","names":[]}
1
+ {"version":3,"sources":["../src/server.ts"],"sourcesContent":["import 'server-only';\r\n\r\n// API Client\r\nexport { ApiClient, api, apiClient } from './infra/api/client';\r\n\r\n// Services\r\nexport { authService } from './modules/auth/services/auth.service';\r\nexport { whitelabelService } from './modules/whitelabel/services/whitelabel.service';\r\nexport { revalidateWhitelabelAction } from './modules/whitelabel/actions/revalidate-whitelabel.action';\r\nexport { assertManagementPermission } from './modules/auth/utils/assert-management-permission';\r\nexport { assertManagementSubscription } from './modules/auth/utils/assert-management-subscription';\r\nexport { assertSubscriptionAddon } from './modules/auth/utils/assert-subscription-addon';\r\nexport { assertPaidSubscription } from './modules/auth/utils/assert-paid-subscription';\r\nexport { subscriptionsService } from './modules/subscriptions/services/subscriptions.service';\r\nexport { plansService } from './modules/plans/services/plans.service';\r\nexport { cardsService } from './modules/cards/services/cards.service';\r\nexport { iaCreditsService } from './modules/ia-credits/services/ia-credits.service';\r\n\r\n// Actions\r\nexport { findWhitelabel } from './modules/whitelabel/actions/find-whitelabel.action';\r\nexport { validateSessionAction } from './modules/auth/actions/validate-session.action';\r\nexport { findUserById } from './modules/users/action/find-user-by-id.action';\r\nexport { findCurrentAccount } from './modules/accounts/actions/find-current-account.action';\r\nexport { getAccountTokenAction } from './modules/accounts/actions/get-account-token.action';\r\nexport { listSubscriptionsAction } from './modules/subscriptions/actions/list-subscriptions.action';\r\nexport { findPlanByIdAction } from './modules/plans/actions/find-plan-by-id.action';\r\nexport { listPlansAction } from './modules/plans/actions/list-plans.action';\r\nexport { calculateSubscriptionAction } from './modules/subscriptions/actions/calculate-subscription.action';\r\nexport { updateSubscriptionPlanAction } from './modules/subscriptions/actions/update-subscription-plan.action';\r\nexport { listCardsAction } from './modules/cards/actions/list-cards.action';\r\nexport { createCardAction } from './modules/cards/actions/create-card.action';\r\nexport { resolvePlanExtrasPrices } from './modules/subscriptions/utils/resolve-plan-extras-prices';\r\nexport { hasSubscriptionExpired } from './modules/subscriptions/utils/has-subscription-expired';\r\nexport { listIaCreditsAction } from './modules/ia-credits/actions/list-ia-credits.action';\r\n\r\n// Project Services & Actions (server-only)\r\nexport { projectsService } from './modules/projects/services/projects.service';\r\nexport { listProjectsAction } from './modules/projects/actions/list-projects.action';\r\nexport { findProjectAction } from './modules/projects/actions/find-project.action';\r\nexport { createProjectAction } from './modules/projects/actions/create-project.action';\r\nexport { updateProjectAction } from './modules/projects/actions/update-project.action';\r\nexport { deleteProjectAction } from './modules/projects/actions/delete-project.action';\r\n\r\n// Project Users Services & Actions (server-only)\r\nexport { projectUsersService } from './modules/projects/services/project-users.service';\r\nexport { listProjectUsersAction } from './modules/projects/actions/list-project-users.action';\r\nexport { listAvailableUsersAction } from './modules/projects/actions/list-available-users.action';\r\nexport { addProjectUserAction } from './modules/projects/actions/add-project-user.action';\r\nexport { removeProjectUserAction } from './modules/projects/actions/remove-project-user.action';\r\n\r\n// Account Services & Actions (server-only)\r\nexport { accountService } from './modules/accounts/services/account.service';\r\nexport { twoFactorService } from './modules/accounts/services/two-factor.service';\r\nexport {\r\n listAccountUsersAction,\r\n updateUserAction,\r\n updateAccountAction,\r\n updateAccountUserByIdAction,\r\n deleteAccountUserAction,\r\n deleteAccountAction,\r\n createAccountUserAction,\r\n changePasswordAction,\r\n requestEmailChangeAction,\r\n confirmEmailChangeAction,\r\n requestPhoneChangeAction,\r\n confirmPhoneChangeAction,\r\n generateTwoFactorAction,\r\n confirmTwoFactorAction,\r\n disableTwoFactorAction,\r\n} from './modules/accounts/actions/account-management.action';\r\n\r\n// Server Utils\r\nexport { getClientInfoFromRequest } from './infra/utils/client-info';\r\nexport { getUserContext } from './modules/auth/utils/get-user-context';\r\nexport { buildWlOverride, buildWlOverrideFromJwt } from './modules/auth/utils/build-wl-override';\r\nexport { safeServerAction } from './utils/safeServerAction';\r\n\r\n// Image Processing (server-side)\r\nexport { processImageAction } from './modules/images/actions/process-image.action';\r\nexport { processImage } from './modules/images/services/image-processing.service';\r\nexport type {\r\n ProcessImageInput,\r\n ProcessImageOutput,\r\n ProcessImageActionInput,\r\n ProcessImageActionOutput,\r\n} from './modules/images/types/image.type';\r\n"],"mappings":"AAAA,OAAO;AAGP,SAAS,WAAW,KAAK,iBAAiB;AAG1C,SAAS,mBAAmB;AAC5B,SAAS,yBAAyB;AAClC,SAAS,kCAAkC;AAC3C,SAAS,kCAAkC;AAC3C,SAAS,oCAAoC;AAC7C,SAAS,+BAA+B;AACxC,SAAS,8BAA8B;AACvC,SAAS,4BAA4B;AACrC,SAAS,oBAAoB;AAC7B,SAAS,oBAAoB;AAC7B,SAAS,wBAAwB;AAGjC,SAAS,sBAAsB;AAC/B,SAAS,6BAA6B;AACtC,SAAS,oBAAoB;AAC7B,SAAS,0BAA0B;AACnC,SAAS,6BAA6B;AACtC,SAAS,+BAA+B;AACxC,SAAS,0BAA0B;AACnC,SAAS,uBAAuB;AAChC,SAAS,mCAAmC;AAC5C,SAAS,oCAAoC;AAC7C,SAAS,uBAAuB;AAChC,SAAS,wBAAwB;AACjC,SAAS,+BAA+B;AACxC,SAAS,8BAA8B;AACvC,SAAS,2BAA2B;AAGpC,SAAS,uBAAuB;AAChC,SAAS,0BAA0B;AACnC,SAAS,yBAAyB;AAClC,SAAS,2BAA2B;AACpC,SAAS,2BAA2B;AACpC,SAAS,2BAA2B;AAGpC,SAAS,2BAA2B;AACpC,SAAS,8BAA8B;AACvC,SAAS,gCAAgC;AACzC,SAAS,4BAA4B;AACrC,SAAS,+BAA+B;AAGxC,SAAS,sBAAsB;AAC/B,SAAS,wBAAwB;AACjC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAGP,SAAS,gCAAgC;AACzC,SAAS,sBAAsB;AAC/B,SAAS,iBAAiB,8BAA8B;AACxD,SAAS,wBAAwB;AAGjC,SAAS,0BAA0B;AACnC,SAAS,oBAAoB;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@greatapps/common",
3
- "version": "1.1.525",
3
+ "version": "1.1.526",
4
4
  "description": "Shared library for GreatApps frontend applications",
5
5
  "main": "./dist/index.mjs",
6
6
  "types": "./src/index.ts",
@@ -1 +0,0 @@
1
- //# sourceMappingURL=types.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}