@liorian/sdk 0.28.0-alpha.56010ca

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 (362) hide show
  1. package/README.md +483 -0
  2. package/package.json +94 -0
  3. package/schemas/module.schema.json +818 -0
  4. package/src/application/index.ts +3 -0
  5. package/src/application/module-instance.ts +36 -0
  6. package/src/application/service/auth-api-service.ts +291 -0
  7. package/src/application/service/auth-user.service.ts +108 -0
  8. package/src/application/service/index.ts +12 -0
  9. package/src/application/service/module-activation-api.service.ts +105 -0
  10. package/src/application/service/notifications-api-service.ts +38 -0
  11. package/src/application/service/notifications-push.service.ts +299 -0
  12. package/src/application/service/notifications-socket-service.ts +76 -0
  13. package/src/application/service/organizations-api-service.ts +104 -0
  14. package/src/application/service/otp-api-service.ts +11 -0
  15. package/src/application/service/storage-api-service.ts +77 -0
  16. package/src/application/service/storefront-api.service.ts +72 -0
  17. package/src/application/service/user-preferences-api.service.ts +57 -0
  18. package/src/domain/config/app.config.ts +35 -0
  19. package/src/domain/config/auth.config.ts +30 -0
  20. package/src/domain/config/index.ts +4 -0
  21. package/src/domain/config/logo.config.ts +17 -0
  22. package/src/domain/entities/activities.interface.ts +18 -0
  23. package/src/domain/entities/catalog.interface.ts +96 -0
  24. package/src/domain/entities/index.ts +13 -0
  25. package/src/domain/entities/media.ts +22 -0
  26. package/src/domain/entities/module-activation.interface.ts +173 -0
  27. package/src/domain/entities/module.interface.ts +101 -0
  28. package/src/domain/entities/notification.interface.ts +23 -0
  29. package/src/domain/entities/objectable.type.ts +3 -0
  30. package/src/domain/entities/organization.interface.ts +81 -0
  31. package/src/domain/entities/user-auth.interface.ts +17 -0
  32. package/src/domain/entities/user-phone.interface.ts +11 -0
  33. package/src/domain/entities/user-profile.interface.ts +23 -0
  34. package/src/domain/entities/user.interface.ts +79 -0
  35. package/src/domain/enums/coloring.enum.ts +6 -0
  36. package/src/domain/enums/domains.enum.ts +282 -0
  37. package/src/domain/enums/index.ts +8 -0
  38. package/src/domain/enums/module-category.enum.ts +57 -0
  39. package/src/domain/enums/module.enum.ts +97 -0
  40. package/src/domain/enums/routine.enum.ts +12 -0
  41. package/src/domain/enums/user-profile.enum.ts +25 -0
  42. package/src/domain/enums/user-status.enum.ts +7 -0
  43. package/src/domain/index.ts +6 -0
  44. package/src/domain/typing/auth-caches.ts +12 -0
  45. package/src/domain/typing/auth-oauth.types.ts +172 -0
  46. package/src/domain/typing/devise.ts +2 -0
  47. package/src/domain/typing/index.ts +10 -0
  48. package/src/domain/typing/response.ts +30 -0
  49. package/src/domain/typing/routine.types.ts +113 -0
  50. package/src/domain/typing/session.interface.ts +28 -0
  51. package/src/domain/typing/statisticals.ts +11 -0
  52. package/src/domain/typing/user-media-upload.ts +9 -0
  53. package/src/domain/typing/values.ts +6 -0
  54. package/src/index.tsx +168 -0
  55. package/src/infrastructure/capabilities/cache-storage/capability.ts +129 -0
  56. package/src/infrastructure/capabilities/cache-storage/enum.ts +5 -0
  57. package/src/infrastructure/capabilities/cache-storage/index.ts +4 -0
  58. package/src/infrastructure/capabilities/cache-storage/types.ts +13 -0
  59. package/src/infrastructure/capabilities/index.ts +3 -0
  60. package/src/infrastructure/capabilities/stackable/capability.ts +55 -0
  61. package/src/infrastructure/capabilities/stackable/index.ts +3 -0
  62. package/src/infrastructure/capabilities/stackable/types.ts +24 -0
  63. package/src/infrastructure/common-classname.constant.ts +4 -0
  64. package/src/infrastructure/data/countries.ts +208 -0
  65. package/src/infrastructure/data/gender.ts +5 -0
  66. package/src/infrastructure/data/index.ts +3 -0
  67. package/src/infrastructure/dataset/index.ts +3 -0
  68. package/src/infrastructure/dataset/sign-in.dataset.ts +21 -0
  69. package/src/infrastructure/dataset/sign-up.dataset.ts +64 -0
  70. package/src/infrastructure/hooks/index.ts +10 -0
  71. package/src/infrastructure/hooks/use-activity-lock-draft.ts +69 -0
  72. package/src/infrastructure/hooks/use-auth.ts +24 -0
  73. package/src/infrastructure/hooks/use-elastic-interaction.ts +180 -0
  74. package/src/infrastructure/hooks/use-is-desktop.ts +25 -0
  75. package/src/infrastructure/hooks/use-is-tauri.ts +17 -0
  76. package/src/infrastructure/hooks/use-mobile.ts +19 -0
  77. package/src/infrastructure/hooks/use-notifications.ts +128 -0
  78. package/src/infrastructure/hooks/use-recent-colors.ts +113 -0
  79. package/src/infrastructure/hooks/use-recent-modules.ts +76 -0
  80. package/src/infrastructure/index.tsx +11 -0
  81. package/src/infrastructure/library/design-system.ts +95 -0
  82. package/src/infrastructure/library/index.tsx +5 -0
  83. package/src/infrastructure/library/motion-utils.ts +77 -0
  84. package/src/infrastructure/library/motion.tsx +31 -0
  85. package/src/infrastructure/library/scroll-progress.tsx +93 -0
  86. package/src/infrastructure/providers/auth-guard.provider.tsx +47 -0
  87. package/src/infrastructure/providers/auth.provider.tsx +168 -0
  88. package/src/infrastructure/providers/index.tsx +8 -0
  89. package/src/infrastructure/providers/module-usage.provider.tsx +95 -0
  90. package/src/infrastructure/providers/modules-guard.provider.tsx +64 -0
  91. package/src/infrastructure/providers/modules-routines.provider.tsx +33 -0
  92. package/src/infrastructure/providers/modules-switcher.provider.tsx +25 -0
  93. package/src/infrastructure/providers/query.provider.tsx +27 -0
  94. package/src/infrastructure/routines/__tests__/routine.test.ts +368 -0
  95. package/src/infrastructure/routines/index.tsx +3 -0
  96. package/src/infrastructure/routines/routine.hook.ts +121 -0
  97. package/src/infrastructure/routines/routine.ts +283 -0
  98. package/src/infrastructure/routines/routine.tsx +283 -0
  99. package/src/infrastructure/stores/activity-lock.store.ts +22 -0
  100. package/src/infrastructure/stores/auth-user-connected.store.ts +24 -0
  101. package/src/infrastructure/stores/dataset.store.ts +106 -0
  102. package/src/infrastructure/stores/index.ts +6 -0
  103. package/src/infrastructure/stores/module.store.ts +266 -0
  104. package/src/infrastructure/stores/upload.store.ts +198 -0
  105. package/src/infrastructure/utilities/access-label.util.ts +158 -0
  106. package/src/infrastructure/utilities/activities.util.tsx +54 -0
  107. package/src/infrastructure/utilities/activity-lock.service.ts +263 -0
  108. package/src/infrastructure/utilities/activity-tracker.service.ts +205 -0
  109. package/src/infrastructure/utilities/api-service.ts +237 -0
  110. package/src/infrastructure/utilities/auth-logout.util.ts +23 -0
  111. package/src/infrastructure/utilities/classname.util.ts +7 -0
  112. package/src/infrastructure/utilities/encryption.service.ts +125 -0
  113. package/src/infrastructure/utilities/form-snapshot.service.ts +304 -0
  114. package/src/infrastructure/utilities/format.util.ts +40 -0
  115. package/src/infrastructure/utilities/index.tsx +23 -0
  116. package/src/infrastructure/utilities/media-label.service.ts +47 -0
  117. package/src/infrastructure/utilities/modules.ts +11 -0
  118. package/src/infrastructure/utilities/permission.util.ts +22 -0
  119. package/src/infrastructure/utilities/push-permission.util.ts +43 -0
  120. package/src/infrastructure/utilities/route-access.ts +38 -0
  121. package/src/infrastructure/utilities/socket-service.ts +123 -0
  122. package/src/infrastructure/utilities/sso-auth.util.ts +188 -0
  123. package/src/infrastructure/utilities/stringable.util.ts +16 -0
  124. package/src/infrastructure/utilities/strings.util.ts +18 -0
  125. package/src/infrastructure/utilities/tauri.util.ts +15 -0
  126. package/src/infrastructure/utilities/utils.ts +6 -0
  127. package/src/infrastructure/utilities/values.ts +5 -0
  128. package/src/presentation/8starlabs-ui/button.tsx +94 -0
  129. package/src/presentation/8starlabs-ui/flip-clock.tsx +368 -0
  130. package/src/presentation/8starlabs-ui/heatmap.tsx +430 -0
  131. package/src/presentation/8starlabs-ui/hooks/index.tsx +2 -0
  132. package/src/presentation/8starlabs-ui/hooks/use-mobile.ts +21 -0
  133. package/src/presentation/8starlabs-ui/index.tsx +20 -0
  134. package/src/presentation/8starlabs-ui/json-viewer.tsx +972 -0
  135. package/src/presentation/8starlabs-ui/marquee.tsx +134 -0
  136. package/src/presentation/8starlabs-ui/partition-bar.tsx +198 -0
  137. package/src/presentation/8starlabs-ui/scroll-fade.tsx +158 -0
  138. package/src/presentation/8starlabs-ui/status-indicator.tsx +86 -0
  139. package/src/presentation/8starlabs-ui/system-banner.tsx +50 -0
  140. package/src/presentation/8starlabs-ui/timeline.tsx +576 -0
  141. package/src/presentation/8starlabs-ui/transport-badge.tsx +249 -0
  142. package/src/presentation/8starlabs-ui/ui/copy-button.tsx +60 -0
  143. package/src/presentation/8starlabs-ui/ui/index.tsx +2 -0
  144. package/src/presentation/analytics-section.tsx +85 -0
  145. package/src/presentation/app-sidebar.tsx +234 -0
  146. package/src/presentation/charts/area-widget.chart-skeleton.tsx +61 -0
  147. package/src/presentation/charts/area-widget.chart.tsx +128 -0
  148. package/src/presentation/charts/chart-widgets.types.ts +81 -0
  149. package/src/presentation/charts/index.tsx +16 -0
  150. package/src/presentation/charts/line-widget.chart-skeleton.tsx +64 -0
  151. package/src/presentation/charts/line-widget.chart.tsx +105 -0
  152. package/src/presentation/charts/pie-widget.chart-skeleton.tsx +56 -0
  153. package/src/presentation/charts/pie-widget.chart.tsx +168 -0
  154. package/src/presentation/charts/radar-widget.chart-skeleton.tsx +67 -0
  155. package/src/presentation/charts/radar-widget.chart.tsx +80 -0
  156. package/src/presentation/charts/radial-stacked-widget.chart-skeleton.tsx +66 -0
  157. package/src/presentation/charts/radial-stacked-widget.chart.tsx +120 -0
  158. package/src/presentation/charts/radial-widget.chart-skeleton.tsx +61 -0
  159. package/src/presentation/charts/radial-widget.chart.tsx +87 -0
  160. package/src/presentation/charts/tooltip-widget.chart-skeleton.tsx +64 -0
  161. package/src/presentation/charts/tooltip-widget.chart.tsx +89 -0
  162. package/src/presentation/components/activity-actions.tsx +20 -0
  163. package/src/presentation/components/activity-container.tsx +55 -0
  164. package/src/presentation/components/activity-content.tsx +20 -0
  165. package/src/presentation/components/activity-descriptor-parser.tsx +37 -0
  166. package/src/presentation/components/activity-header.tsx +20 -0
  167. package/src/presentation/components/activity-loader.tsx +19 -0
  168. package/src/presentation/components/activity-title.tsx +32 -0
  169. package/src/presentation/components/activity.tsx +22 -0
  170. package/src/presentation/components/auth/index.tsx +4 -0
  171. package/src/presentation/components/auth/sso-callback.view.tsx +44 -0
  172. package/src/presentation/components/auth/sso-disconnect.view.tsx +41 -0
  173. package/src/presentation/components/auth/sso-sign-in.view.tsx +29 -0
  174. package/src/presentation/components/auth-lock-screen.tsx +309 -0
  175. package/src/presentation/components/auth-session.view.tsx +17 -0
  176. package/src/presentation/components/data-table.tsx +814 -0
  177. package/src/presentation/components/dynamic-icon.tsx +16 -0
  178. package/src/presentation/components/floating-upload.tsx +291 -0
  179. package/src/presentation/components/index.tsx +40 -0
  180. package/src/presentation/components/local-time.tsx +170 -0
  181. package/src/presentation/components/markdown-parser.tsx +201 -0
  182. package/src/presentation/components/message-scroller.tsx +131 -0
  183. package/src/presentation/components/module-first-access-config.view.tsx +181 -0
  184. package/src/presentation/components/module-first-access-pending.view.tsx +38 -0
  185. package/src/presentation/components/module-guard.tsx +34 -0
  186. package/src/presentation/components/modules-first-access.guard.tsx +88 -0
  187. package/src/presentation/components/modules-guard-forbidden.tsx +46 -0
  188. package/src/presentation/components/notification-details.modal.tsx +145 -0
  189. package/src/presentation/components/notification-item.tsx +127 -0
  190. package/src/presentation/components/notifications-popover.tsx +128 -0
  191. package/src/presentation/components/push-notifications.provider.tsx +65 -0
  192. package/src/presentation/components/upload-progress-dialog.tsx +140 -0
  193. package/src/presentation/components/waiting-bar.tsx +22 -0
  194. package/src/presentation/components/waiting-section.tsx +15 -0
  195. package/src/presentation/components/waiting.tsx +14 -0
  196. package/src/presentation/data-grid/data-grid-empty.tsx +24 -0
  197. package/src/presentation/data-grid/data-grid-search-engine.tsx +32 -0
  198. package/src/presentation/data-grid/data-grid.tsx +892 -0
  199. package/src/presentation/data-grid/index.tsx +4 -0
  200. package/src/presentation/form-screen.tsx +95 -0
  201. package/src/presentation/icons/custom.tsx +20 -0
  202. package/src/presentation/icons/glyphIcons.tsx +53 -0
  203. package/src/presentation/icons/icons.enum.ts +4 -0
  204. package/src/presentation/icons/icons.util.ts +6 -0
  205. package/src/presentation/icons/index.tsx +8 -0
  206. package/src/presentation/icons/lucide.tsx +17 -0
  207. package/src/presentation/icons/remix.tsx +33 -0
  208. package/src/presentation/icons/types.ts +27 -0
  209. package/src/presentation/index.tsx +45 -0
  210. package/src/presentation/modals/components/ModalBox.tsx +74 -0
  211. package/src/presentation/modals/components/ModalPortal.tsx +31 -0
  212. package/src/presentation/modals/components/ModalStepper.tsx +319 -0
  213. package/src/presentation/modals/components/ModalWrapper.tsx +65 -0
  214. package/src/presentation/modals/components/index.tsx +5 -0
  215. package/src/presentation/modals/hooks/index.ts +2 -0
  216. package/src/presentation/modals/hooks/useModal.ts +38 -0
  217. package/src/presentation/modals/index.tsx +5 -0
  218. package/src/presentation/modals/stores/index.ts +2 -0
  219. package/src/presentation/modals/stores/useModalStore.ts +90 -0
  220. package/src/presentation/modals/types/index.ts +2 -0
  221. package/src/presentation/modals/types/modal.type.ts +33 -0
  222. package/src/presentation/module-menubar.tsx +300 -0
  223. package/src/presentation/module-widget.tsx +233 -0
  224. package/src/presentation/nav-documents.tsx +89 -0
  225. package/src/presentation/nav-main.tsx +62 -0
  226. package/src/presentation/nav-secondary.tsx +41 -0
  227. package/src/presentation/nav-user.tsx +109 -0
  228. package/src/presentation/permission-action-badge.tsx +35 -0
  229. package/src/presentation/reui/index.tsx +3 -0
  230. package/src/presentation/reui/stepper.tsx +508 -0
  231. package/src/presentation/reui/timeline.tsx +226 -0
  232. package/src/presentation/sheets/index.tsx +2 -0
  233. package/src/presentation/sheets/legacy-sheet-header.tsx +0 -0
  234. package/src/presentation/sheets/legacy-sheet.tsx +37 -0
  235. package/src/presentation/size.enum.ts +19 -0
  236. package/src/presentation/system/index.tsx +3 -0
  237. package/src/presentation/system/logo.theme.tsx +21 -0
  238. package/src/presentation/system/types.ts +10 -0
  239. package/src/presentation/theme/index.tsx +6 -0
  240. package/src/presentation/theme/prefer-color-scheme.tsx +50 -0
  241. package/src/presentation/theme/switch-color-scheme.tsx +16 -0
  242. package/src/presentation/theme/theme-switcher-button.tsx +20 -0
  243. package/src/presentation/theme/theme.enum.ts +4 -0
  244. package/src/presentation/theme/theme.store.ts +87 -0
  245. package/src/presentation/themes/index.tsx +2 -0
  246. package/src/presentation/themes/katon/dashboard-layout.tsx +1080 -0
  247. package/src/presentation/themes/katon/edge-section.tsx +19 -0
  248. package/src/presentation/themes/katon/header-menubar.tsx +270 -0
  249. package/src/presentation/themes/katon/header-modules-available.tsx +44 -0
  250. package/src/presentation/themes/katon/header-modules-recents.tsx +52 -0
  251. package/src/presentation/themes/katon/header-modules-store.tsx +25 -0
  252. package/src/presentation/themes/katon/header-options.tsx +13 -0
  253. package/src/presentation/themes/katon/header-organization-select.tsx +146 -0
  254. package/src/presentation/themes/katon/header-routines.tsx +74 -0
  255. package/src/presentation/themes/katon/header-tasks-connected-user.tsx +150 -0
  256. package/src/presentation/themes/katon/index.tsx +16 -0
  257. package/src/presentation/themes/katon/main-wrapper.tsx +34 -0
  258. package/src/presentation/themes/katon/module-item-link.tsx +32 -0
  259. package/src/presentation/themes/katon/view-frame.tsx +25 -0
  260. package/src/presentation/themes/katon/view-helmet.tsx +53 -0
  261. package/src/presentation/themes/katon/view-status.tsx +32 -0
  262. package/src/presentation/themes/katon/view-wrapper.tsx +15 -0
  263. package/src/presentation/themes/katon/view.tsx +42 -0
  264. package/src/presentation/ui/accordion-multiselect.tsx +206 -0
  265. package/src/presentation/ui/accordion.tsx +81 -0
  266. package/src/presentation/ui/alert-dialog.tsx +199 -0
  267. package/src/presentation/ui/alert.tsx +76 -0
  268. package/src/presentation/ui/aspect-ratio.tsx +11 -0
  269. package/src/presentation/ui/attachment.tsx +204 -0
  270. package/src/presentation/ui/avatar.tsx +112 -0
  271. package/src/presentation/ui/badge.tsx +49 -0
  272. package/src/presentation/ui/breadcrumb.tsx +122 -0
  273. package/src/presentation/ui/bubble.tsx +125 -0
  274. package/src/presentation/ui/button-group.tsx +83 -0
  275. package/src/presentation/ui/button.tsx +87 -0
  276. package/src/presentation/ui/calendar.tsx +222 -0
  277. package/src/presentation/ui/card.tsx +106 -0
  278. package/src/presentation/ui/carousel.tsx +242 -0
  279. package/src/presentation/ui/chart.tsx +373 -0
  280. package/src/presentation/ui/checkbox.tsx +33 -0
  281. package/src/presentation/ui/clickable.tsx +58 -0
  282. package/src/presentation/ui/collapsible.tsx +33 -0
  283. package/src/presentation/ui/color-swatch-selector.tsx +81 -0
  284. package/src/presentation/ui/combobox.tsx +299 -0
  285. package/src/presentation/ui/command.tsx +195 -0
  286. package/src/presentation/ui/context-menu.tsx +263 -0
  287. package/src/presentation/ui/dialog.tsx +168 -0
  288. package/src/presentation/ui/direction.tsx +22 -0
  289. package/src/presentation/ui/drawer.tsx +134 -0
  290. package/src/presentation/ui/dropdown-menu.tsx +269 -0
  291. package/src/presentation/ui/empty.tsx +104 -0
  292. package/src/presentation/ui/field.tsx +238 -0
  293. package/src/presentation/ui/granularity-selector.tsx +58 -0
  294. package/src/presentation/ui/hover-card.tsx +44 -0
  295. package/src/presentation/ui/index.tsx +74 -0
  296. package/src/presentation/ui/input-group.tsx +156 -0
  297. package/src/presentation/ui/input-otp.tsx +87 -0
  298. package/src/presentation/ui/input.tsx +19 -0
  299. package/src/presentation/ui/item.tsx +196 -0
  300. package/src/presentation/ui/kpi-card.tsx +203 -0
  301. package/src/presentation/ui/label-selector.tsx +100 -0
  302. package/src/presentation/ui/label.tsx +24 -0
  303. package/src/presentation/ui/legacy-birth-date-input.tsx +43 -0
  304. package/src/presentation/ui/legacy-color-picker/index.tsx +42 -0
  305. package/src/presentation/ui/legacy-color-picker/legacy-color-picker.content.tsx +37 -0
  306. package/src/presentation/ui/legacy-color-picker/legacy-color-picker.context.tsx +42 -0
  307. package/src/presentation/ui/legacy-color-picker/legacy-color-picker.hex-input.tsx +97 -0
  308. package/src/presentation/ui/legacy-color-picker/legacy-color-picker.picker.tsx +266 -0
  309. package/src/presentation/ui/legacy-color-picker/legacy-color-picker.presets.ts +22 -0
  310. package/src/presentation/ui/legacy-color-picker/legacy-color-picker.quick-list.tsx +49 -0
  311. package/src/presentation/ui/legacy-color-picker/legacy-color-picker.recent.tsx +43 -0
  312. package/src/presentation/ui/legacy-color-picker/legacy-color-picker.swatches.tsx +111 -0
  313. package/src/presentation/ui/legacy-color-picker/legacy-color-picker.trigger.tsx +128 -0
  314. package/src/presentation/ui/legacy-color-picker/legacy-color-picker.tsx +110 -0
  315. package/src/presentation/ui/legacy-color-picker/legacy-color-picker.types.ts +1 -0
  316. package/src/presentation/ui/legacy-color-picker/legacy-color-picker.utils.ts +114 -0
  317. package/src/presentation/ui/legacy-country-input.tsx +171 -0
  318. package/src/presentation/ui/legacy-gender-input.tsx +22 -0
  319. package/src/presentation/ui/legacy-input.tsx +106 -0
  320. package/src/presentation/ui/legacy-phone-input.tsx +213 -0
  321. package/src/presentation/ui/legacy-select-input.tsx +114 -0
  322. package/src/presentation/ui/legacy-text-area.tsx +111 -0
  323. package/src/presentation/ui/list-items.tsx +59 -0
  324. package/src/presentation/ui/marker.tsx +69 -0
  325. package/src/presentation/ui/media-player/index.tsx +12 -0
  326. package/src/presentation/ui/media-player/media-player.context.tsx +36 -0
  327. package/src/presentation/ui/media-player/media-player.tsx +167 -0
  328. package/src/presentation/ui/media-player/player-controls.tsx +207 -0
  329. package/src/presentation/ui/media-player/players/audio-player.tsx +78 -0
  330. package/src/presentation/ui/media-player/players/index.tsx +4 -0
  331. package/src/presentation/ui/media-player/players/video-player.tsx +193 -0
  332. package/src/presentation/ui/media-player/players/voice-note-player.tsx +108 -0
  333. package/src/presentation/ui/media-player/use-media-player.hook.ts +263 -0
  334. package/src/presentation/ui/menubar.tsx +281 -0
  335. package/src/presentation/ui/message.tsx +92 -0
  336. package/src/presentation/ui/navigation-menu.tsx +172 -0
  337. package/src/presentation/ui/pagination.tsx +129 -0
  338. package/src/presentation/ui/popover.tsx +89 -0
  339. package/src/presentation/ui/progress.tsx +31 -0
  340. package/src/presentation/ui/resizable.tsx +50 -0
  341. package/src/presentation/ui/select.tsx +192 -0
  342. package/src/presentation/ui/separator.tsx +28 -0
  343. package/src/presentation/ui/sheet.tsx +147 -0
  344. package/src/presentation/ui/sidebar.tsx +702 -0
  345. package/src/presentation/ui/skeleton.tsx +13 -0
  346. package/src/presentation/ui/slide-to-confirm.tsx +129 -0
  347. package/src/presentation/ui/slider.tsx +59 -0
  348. package/src/presentation/ui/sonner.tsx +58 -0
  349. package/src/presentation/ui/switch.tsx +33 -0
  350. package/src/presentation/ui/table.tsx +116 -0
  351. package/src/presentation/ui/tabs.tsx +90 -0
  352. package/src/presentation/ui/text-gradient.tsx +84 -0
  353. package/src/presentation/ui/textarea.tsx +18 -0
  354. package/src/presentation/ui/timeline-steps.tsx +235 -0
  355. package/src/presentation/ui/toggle-group.tsx +89 -0
  356. package/src/presentation/ui/toggle.tsx +47 -0
  357. package/src/presentation/ui/tooltip.tsx +57 -0
  358. package/src/presentation/uploading/index.tsx +3 -0
  359. package/src/presentation/uploading/media-upload-field.tsx +152 -0
  360. package/src/presentation/uploading/storage-media.tsx +210 -0
  361. package/src/styles.css +403 -0
  362. package/src/themes.css +1038 -0
@@ -0,0 +1,17 @@
1
+ import {UserInterface} from "./user.interface";
2
+ import {OrganizationInterface} from "./organization.interface";
3
+
4
+ export interface UserAuthResponseInterface {
5
+ user: UserInterface;
6
+ token: string;
7
+ device: string;
8
+ organizations: OrganizationInterface[]
9
+ }
10
+
11
+ export interface UserAuthSessionCheckingResponseInterface {
12
+ "id": string;
13
+ "device": string;
14
+ "token": string;
15
+ "userAgent": string;
16
+ "expiredAt": string;
17
+ }
@@ -0,0 +1,11 @@
1
+ export interface UserPhoneInterface {
2
+ id?: string;
3
+ userId: string;
4
+ prefix: string;
5
+ phone: string;
6
+ type?: 'MOBILE' | 'FIX' | 'FAX';
7
+ isDefault?: boolean;
8
+ status?: boolean;
9
+ deletedAt?: Date;
10
+ auditId: string;
11
+ }
@@ -0,0 +1,23 @@
1
+ import type {UserProfileEnum} from "../enums/user-profile.enum";
2
+
3
+ /**
4
+ * Profil d'application cumulable attribué à un utilisateur.
5
+ *
6
+ * `code` identifie l'application cible (CONSOLE, CONNECT, MANAGER, STORE, …).
7
+ * `grantedAt` traçe l'octroi du profil pour l'audit. La présence d'un profil
8
+ * dans `user.profiles[]` autorise l'accès à l'application correspondante.
9
+ */
10
+ export interface UserProfileInterface {
11
+ code: UserProfileEnum;
12
+ grantedAt?: string;
13
+ grantedBy?: string;
14
+ /** Statut d'activation de l'octroi (true par défaut). */
15
+ enabled: boolean;
16
+ }
17
+
18
+ /** Utilisateur enrichi de ses profils cumulables (objet `Connect/Console/Manager/Store`). */
19
+ export interface UserProfiledInterface {
20
+ profiles: UserProfileInterface[];
21
+ /** Profils sélectionnés activement pour la session courante (cumulable). */
22
+ activeProfiles?: UserProfileEnum[];
23
+ }
@@ -0,0 +1,79 @@
1
+ import {UserStatusEnum} from "../enums/user-status.enum";
2
+ import {PaginationWithSearchOptions} from "../typing/response";
3
+ import {UserPhoneInterface} from "./user-phone.interface";
4
+ import {MediaStorageInterface} from "./media";
5
+
6
+ export interface UserDataInterface {
7
+ id?: string;
8
+ firstname?: string;
9
+ lastname?: string;
10
+ country?: string;
11
+ city?: string;
12
+ address?: string;
13
+ gender?: string;
14
+ birthDate?: Date;
15
+ idRectoId?: string;
16
+ idVersoId?: string;
17
+ selfieId?: string;
18
+ }
19
+
20
+ export interface PermissionCapabilityInterface {
21
+ read: boolean;
22
+ create: boolean;
23
+ delete: boolean;
24
+ update: boolean;
25
+ }
26
+
27
+ export type PermissionsCapabilitiesInterface = Record<string, PermissionCapabilityInterface>;
28
+
29
+ export type UserPermissionCapabilities = PermissionsCapabilitiesInterface;
30
+
31
+ export interface RoleInterface {
32
+ id?: string;
33
+ name: string;
34
+ color?: string;
35
+ /** Niveau hiérarchique du rôle : 0.00 (visiteur) à 99.99 (Root) */
36
+ level?: number;
37
+ permissions: PermissionsCapabilitiesInterface;
38
+ status?: boolean;
39
+ deletedAt?: Date;
40
+ organizationId: string;
41
+ }
42
+
43
+ export interface PreferenceInterface {
44
+ id?: string;
45
+ key?: string;
46
+ value?: string;
47
+ userId?: string;
48
+ isEnabled?: boolean;
49
+ createdAt?: Date;
50
+ updatedAt?: Date;
51
+ }
52
+
53
+ export interface UserInterface {
54
+ id?: string;
55
+ email?: string;
56
+ username: string;
57
+ passwordId?: string;
58
+ status?: UserStatusEnum;
59
+ deletedAt?: Date;
60
+ auditId: string;
61
+ // avatarId?: string;
62
+ avatar?: MediaStorageInterface;
63
+ createdAt?: Date;
64
+ updatedAt?: Date;
65
+ userData?: UserDataInterface;
66
+ userPhones?: UserPhoneInterface[];
67
+ roles?: RoleInterface[];
68
+ preferences?: PreferenceInterface[];
69
+ permissions?: Record<string, PermissionCapabilityInterface>;
70
+ }
71
+
72
+ export interface UserFilter {
73
+ username?: string;
74
+ email?: string;
75
+ phone?: string;
76
+ status?: UserStatusEnum;
77
+ }
78
+
79
+ export type GetAllUsersFilterOptions = PaginationWithSearchOptions & UserFilter;
@@ -0,0 +1,6 @@
1
+ export enum TreatmentType {
2
+ Success = "success",
3
+ Error = "error",
4
+ Info = "info",
5
+ Warning = "warning"
6
+ }
@@ -0,0 +1,282 @@
1
+ export enum DomainsEnum {
2
+ User = "User",
3
+ UserDevice = "UserDevice",
4
+ Organization = "Organization",
5
+ OrganizationMember = "OrganizationMember",
6
+ ApiAccessKey = "ApiAccessKey",
7
+
8
+ Role = "Role",
9
+
10
+ Post = "Post",
11
+ PostCategory = "PostCategory",
12
+ PostCollaborator = "PostCollaborator",
13
+
14
+ Contact = "Contact",
15
+ Company = "Company",
16
+ Lead = "Lead",
17
+ Deal = "Deal",
18
+ Activity = "Activity",
19
+ SalesTeam = "SalesTeam",
20
+
21
+ Project = "Project",
22
+ Task = "Task",
23
+ TaskReminder = "TaskReminder",
24
+
25
+ Media = "Media",
26
+ Notification = "Notification",
27
+
28
+ OTP = "OTP",
29
+ PaymentMethod = "PaymentMethod",
30
+ Order = "Order",
31
+ Invoice = "Invoice",
32
+
33
+ UserPreference = "UserPreference",
34
+ OrganizationPreference = "OrganizationPreference",
35
+ UserActivity = "UserActivity",
36
+
37
+ // Stock Module
38
+ Stock = "Stock",
39
+ Product = "Product",
40
+ StockMovement = "StockMovement",
41
+
42
+ // Restaurant Module
43
+ RestaurantDish = "RestaurantDish",
44
+ RestaurantOrder = "RestaurantOrder",
45
+ RestaurantMenu = "RestaurantMenu",
46
+ RestaurantCustomer = "RestaurantCustomer",
47
+ RestaurantSalesSession = "RestaurantSalesSession",
48
+
49
+ // Global Analytics
50
+ Analytics = "Analytics",
51
+
52
+ // Accounting Module
53
+ Accounting = "Accounting",
54
+ AccountingSetting = "AccountingSetting",
55
+ AccountingAccount = "AccountingAccount",
56
+ AccountingJournal = "AccountingJournal",
57
+ AccountingJournalEntry = "AccountingJournalEntry",
58
+ AccountingLedger = "AccountingLedger",
59
+ AccountingTrialBalance = "AccountingTrialBalance",
60
+ AccountingBankAccount = "AccountingBankAccount",
61
+ AccountingTax = "AccountingTax",
62
+ AccountingBudget = "AccountingBudget",
63
+ AccountingClosePeriod = "AccountingClosePeriod",
64
+ AccountingReport = "AccountingReport",
65
+
66
+ // Customer Registry
67
+ Customer = "Customer",
68
+ CustomerModule = "CustomerModule",
69
+ }
70
+
71
+ const a = {
72
+ "OTP": {
73
+ "read": true,
74
+ "create": true,
75
+ "delete": true,
76
+ "update": true
77
+ },
78
+ "Deal": {
79
+ "read": true,
80
+ "create": true,
81
+ "delete": true,
82
+ "update": true
83
+ },
84
+ "Lead": {
85
+ "read": true,
86
+ "create": true,
87
+ "delete": true,
88
+ "update": true
89
+ },
90
+ "Post": {
91
+ "read": true,
92
+ "create": true,
93
+ "delete": true,
94
+ "update": true
95
+ },
96
+ "Role": {
97
+ "read": true,
98
+ "create": true,
99
+ "delete": true,
100
+ "update": true
101
+ },
102
+ "Task": {
103
+ "read": true,
104
+ "create": true,
105
+ "delete": true,
106
+ "update": true
107
+ },
108
+ "User": {
109
+ "read": true,
110
+ "create": true,
111
+ "delete": true,
112
+ "update": true
113
+ },
114
+ "Media": {
115
+ "read": true,
116
+ "create": true,
117
+ "delete": true,
118
+ "update": true
119
+ },
120
+ "Order": {
121
+ "read": true,
122
+ "create": true,
123
+ "delete": true,
124
+ "update": true
125
+ },
126
+ "Stock": {
127
+ "read": true,
128
+ "create": true,
129
+ "delete": true,
130
+ "update": true
131
+ },
132
+ "Company": {
133
+ "read": true,
134
+ "create": true,
135
+ "delete": true,
136
+ "update": true
137
+ },
138
+ "Contact": {
139
+ "read": true,
140
+ "create": true,
141
+ "delete": true,
142
+ "update": true
143
+ },
144
+ "Invoice": {
145
+ "read": true,
146
+ "create": true,
147
+ "delete": true,
148
+ "update": true
149
+ },
150
+ "Product": {
151
+ "read": true,
152
+ "create": true,
153
+ "delete": true,
154
+ "update": true
155
+ },
156
+ "Project": {
157
+ "read": true,
158
+ "create": true,
159
+ "delete": true,
160
+ "update": true
161
+ },
162
+ "Activity": {
163
+ "read": true,
164
+ "create": true,
165
+ "delete": true,
166
+ "update": true
167
+ },
168
+ "Analytics": {
169
+ "read": true,
170
+ "create": true,
171
+ "delete": true,
172
+ "update": true
173
+ },
174
+ "UserDevice": {
175
+ "read": true,
176
+ "create": true,
177
+ "delete": true,
178
+ "update": true
179
+ },
180
+ "ApiAccessKey": {
181
+ "read": true,
182
+ "create": true,
183
+ "delete": true,
184
+ "update": true
185
+ },
186
+ "Notification": {
187
+ "read": true,
188
+ "create": true,
189
+ "delete": true,
190
+ "update": true
191
+ },
192
+ "Organization": {
193
+ "read": true,
194
+ "create": true,
195
+ "delete": true,
196
+ "update": true
197
+ },
198
+ "PostCategory": {
199
+ "read": true,
200
+ "create": true,
201
+ "delete": true,
202
+ "update": true
203
+ },
204
+ "TaskReminder": {
205
+ "read": true,
206
+ "create": true,
207
+ "delete": true,
208
+ "update": true
209
+ },
210
+ "UserActivity": {
211
+ "read": true,
212
+ "create": true,
213
+ "delete": true,
214
+ "update": true
215
+ },
216
+ "PaymentMethod": {
217
+ "read": true,
218
+ "create": true,
219
+ "delete": true,
220
+ "update": true
221
+ },
222
+ "StockMovement": {
223
+ "read": true,
224
+ "create": true,
225
+ "delete": true,
226
+ "update": true
227
+ },
228
+ "RestaurantDish": {
229
+ "read": true,
230
+ "create": true,
231
+ "delete": true,
232
+ "update": true
233
+ },
234
+ "RestaurantMenu": {
235
+ "read": true,
236
+ "create": true,
237
+ "delete": true,
238
+ "update": true
239
+ },
240
+ "UserPreference": {
241
+ "read": true,
242
+ "create": true,
243
+ "delete": true,
244
+ "update": true
245
+ },
246
+ "RestaurantOrder": {
247
+ "read": true,
248
+ "create": true,
249
+ "delete": true,
250
+ "update": true
251
+ },
252
+ "PostCollaborator": {
253
+ "read": true,
254
+ "create": true,
255
+ "delete": true,
256
+ "update": true
257
+ },
258
+ "OrganizationMember": {
259
+ "read": true,
260
+ "create": true,
261
+ "delete": true,
262
+ "update": true
263
+ },
264
+ "RestaurantCustomer": {
265
+ "read": true,
266
+ "create": true,
267
+ "delete": true,
268
+ "update": true
269
+ },
270
+ "OrganizationPreference": {
271
+ "read": true,
272
+ "create": true,
273
+ "delete": true,
274
+ "update": true
275
+ },
276
+ "RestaurantSalesSession": {
277
+ "read": true,
278
+ "create": true,
279
+ "delete": true,
280
+ "update": true
281
+ }
282
+ }
@@ -0,0 +1,8 @@
1
+ // @liorian/sdk/domain/enums — shared enums & related metadata maps.
2
+ export * from "./coloring.enum";
3
+ export * from "./domains.enum";
4
+ export * from "./module-category.enum";
5
+ export * from "./module.enum";
6
+ export * from "./routine.enum";
7
+ export * from "./user-profile.enum";
8
+ export * from "./user-status.enum";
@@ -0,0 +1,57 @@
1
+ import {IconKey} from "../../presentation/icons/types";
2
+
3
+ /**
4
+ * Catégories de modules du Module Store.
5
+ * Chaque module existant ou futur est rattaché à une catégorie pour le filtrage et le regroupement.
6
+ */
7
+ export enum ModuleCategory {
8
+ ADMINISTRATION = 'ADMINISTRATION',
9
+ COMMERCIAL = 'COMMERCIAL',
10
+ FINANCE = 'FINANCE',
11
+ OPERATIONS = 'OPERATIONS',
12
+ COMMUNICATION = 'COMMUNICATION',
13
+ DATA = 'DATA',
14
+ AUTOMATION = 'AUTOMATION',
15
+ SYSTEM = 'SYSTEM',
16
+ }
17
+
18
+ export const MODULE_CATEGORY_LABELS: Record<ModuleCategory, string> = {
19
+ [ModuleCategory.ADMINISTRATION]: 'Administration & Sécurité',
20
+ [ModuleCategory.COMMERCIAL]: 'Commercial & Relation client',
21
+ [ModuleCategory.FINANCE]: 'Finance & Comptabilité',
22
+ [ModuleCategory.OPERATIONS]: 'Opérations & Projets',
23
+ [ModuleCategory.COMMUNICATION]: 'Communication & Contenu',
24
+ [ModuleCategory.DATA]: 'Données & Fichiers',
25
+ [ModuleCategory.AUTOMATION]: 'Automatisation & IA',
26
+ [ModuleCategory.SYSTEM]: 'Système',
27
+ }
28
+
29
+ export const MODULE_CATEGORY_DESCRIPTIONS: Record<ModuleCategory, string> = {
30
+ [ModuleCategory.ADMINISTRATION]: 'Utilisateurs, rôles, organisations, sécurité et journalisation',
31
+ [ModuleCategory.COMMERCIAL]: 'CRM, clients, catalogue, point de vente et e-commerce',
32
+ [ModuleCategory.FINANCE]: 'Comptabilité, facturation, paie et reporting financier',
33
+ [ModuleCategory.OPERATIONS]: 'Projets, tâches, stocks, production et exploitation',
34
+ [ModuleCategory.COMMUNICATION]: 'Messagerie, notifications, blog et calendrier',
35
+ [ModuleCategory.DATA]: 'Stockage, médiathèque, gestion documentaire et import/export',
36
+ [ModuleCategory.AUTOMATION]: 'Workflows, automatisations, intégrations et agents IA',
37
+ [ModuleCategory.SYSTEM]: 'Dashboard, paramètres, intégrations et administration du workspace',
38
+ }
39
+
40
+ export const MODULE_CATEGORY_ICONS: Record<ModuleCategory, IconKey> = {
41
+ [ModuleCategory.ADMINISTRATION]: 'ShieldIcon',
42
+ [ModuleCategory.COMMERCIAL]: 'ContactIcon',
43
+ [ModuleCategory.FINANCE]: 'CalculatorIcon',
44
+ [ModuleCategory.OPERATIONS]: 'FolderKanbanIcon',
45
+ [ModuleCategory.COMMUNICATION]: 'MessageCircleIcon',
46
+ [ModuleCategory.DATA]: 'FolderIcon',
47
+ [ModuleCategory.AUTOMATION]: 'WorkflowIcon',
48
+ [ModuleCategory.SYSTEM]: 'SettingsIcon',
49
+ }
50
+
51
+ export const MODULE_CATEGORY_OPTIONS: { value: ModuleCategory; label: string; description: string; icon: IconKey }[] =
52
+ Object.values(ModuleCategory).map((value) => ({
53
+ value,
54
+ label: MODULE_CATEGORY_LABELS[value],
55
+ description: MODULE_CATEGORY_DESCRIPTIONS[value],
56
+ icon: MODULE_CATEGORY_ICONS[value],
57
+ }))
@@ -0,0 +1,97 @@
1
+ import {IconKey} from "../../presentation/icons/types";
2
+
3
+ export enum ModuleEnum {
4
+ IDENTITY = 'IDENTITY',
5
+ ORGANIZATION = 'ORGANIZATION',
6
+ NOTIFICATION = 'NOTIFICATION',
7
+ MEDIA_LIBRARY = 'MEDIA_LIBRARY',
8
+ OTP = 'OTP',
9
+ CRM = 'CRM',
10
+ PROJECT_MANAGEMENT = 'PROJECT_MANAGEMENT',
11
+ STOCK_MANAGEMENT = 'STOCK_MANAGEMENT',
12
+ BLOGGING = 'BLOGGING',
13
+ BILLING = 'BILLING',
14
+ ACCOUNTING = 'ACCOUNTING',
15
+ CHATING = 'CHATING',
16
+ RESTAURANT = 'RESTAURANT',
17
+ USER_ACTIVITY = 'USER_ACTIVITY',
18
+ CUSTOMER = 'CUSTOMER',
19
+ POS_MANAGEMENT = 'POS_MANAGEMENT',
20
+ ECOMMERCE = 'ECOMMERCE',
21
+ CALENDAR = 'CALENDAR',
22
+ OAUTH = 'OAUTH',
23
+ }
24
+
25
+ export const MODULE_LABELS: Record<ModuleEnum, string> = {
26
+ [ModuleEnum.IDENTITY]: 'Identité',
27
+ [ModuleEnum.ORGANIZATION]: 'Organisation',
28
+ [ModuleEnum.NOTIFICATION]: 'Notifications',
29
+ [ModuleEnum.MEDIA_LIBRARY]: 'Médiathèque',
30
+ [ModuleEnum.OTP]: 'OTP',
31
+ [ModuleEnum.CRM]: 'CRM',
32
+ [ModuleEnum.PROJECT_MANAGEMENT]: 'Gestion de projets',
33
+ [ModuleEnum.STOCK_MANAGEMENT]: 'Gestion des stocks',
34
+ [ModuleEnum.BLOGGING]: 'Blog',
35
+ [ModuleEnum.BILLING]: 'Facturation',
36
+ [ModuleEnum.ACCOUNTING]: 'Comptabilité',
37
+ [ModuleEnum.CHATING]: 'Messagerie',
38
+ [ModuleEnum.RESTAURANT]: 'Restaurant',
39
+ [ModuleEnum.USER_ACTIVITY]: "Journal d'activité",
40
+ [ModuleEnum.CUSTOMER]: 'Registre client',
41
+ [ModuleEnum.POS_MANAGEMENT]: 'Point de vente',
42
+ [ModuleEnum.ECOMMERCE]: 'E-commerce',
43
+ [ModuleEnum.CALENDAR]: 'Calendrier',
44
+ [ModuleEnum.OAUTH]: 'OAuth',
45
+ }
46
+
47
+ export const MODULE_DESCRIPTIONS: Record<ModuleEnum, string> = {
48
+ [ModuleEnum.IDENTITY]: 'Authentification et gestion des utilisateurs',
49
+ [ModuleEnum.ORGANIZATION]: 'Gestion des organisations et de leurs membres',
50
+ [ModuleEnum.NOTIFICATION]: 'Alertes et messages multi-canaux',
51
+ [ModuleEnum.MEDIA_LIBRARY]: 'Stockage et gestion de fichiers',
52
+ [ModuleEnum.OTP]: 'Codes à usage unique (2FA, validation)',
53
+ [ModuleEnum.CRM]: 'Contacts, entreprises et rappels commerciaux',
54
+ [ModuleEnum.PROJECT_MANAGEMENT]: 'Projets, tâches et collaboration',
55
+ [ModuleEnum.STOCK_MANAGEMENT]: 'Inventaire, produits et mouvements',
56
+ [ModuleEnum.BLOGGING]: 'Articles, catégories et publication',
57
+ [ModuleEnum.BILLING]: 'Facturation, commandes et paiements',
58
+ [ModuleEnum.ACCOUNTING]: 'Plan comptable, écritures et rapports',
59
+ [ModuleEnum.CHATING]: 'Messagerie interne',
60
+ [ModuleEnum.RESTAURANT]: 'Carte, commandes et sessions de vente',
61
+ [ModuleEnum.USER_ACTIVITY]: 'Journal d’audit et traçabilité',
62
+ [ModuleEnum.CUSTOMER]: 'Registre central des clients',
63
+ [ModuleEnum.POS_MANAGEMENT]: 'Vente en caisse par client et/ou table',
64
+ [ModuleEnum.ECOMMERCE]: 'Boutique en ligne, produits et commandes',
65
+ [ModuleEnum.CALENDAR]: 'Événements, rendez-vous et planification',
66
+ [ModuleEnum.OAUTH]: 'Authentification OAuth et applications tierces',
67
+ }
68
+
69
+ export const MODULE_ICONS: Record<ModuleEnum, IconKey> = {
70
+ [ModuleEnum.IDENTITY]: 'FingerprintIcon',
71
+ [ModuleEnum.ORGANIZATION]: 'BuildingIcon',
72
+ [ModuleEnum.NOTIFICATION]: 'BellIcon',
73
+ [ModuleEnum.MEDIA_LIBRARY]: 'FolderIcon',
74
+ [ModuleEnum.OTP]: 'KeyRoundIcon',
75
+ [ModuleEnum.CRM]: 'ContactIcon',
76
+ [ModuleEnum.PROJECT_MANAGEMENT]: 'FolderKanbanIcon',
77
+ [ModuleEnum.STOCK_MANAGEMENT]: 'BoxesIcon',
78
+ [ModuleEnum.BLOGGING]: 'PenLineIcon',
79
+ [ModuleEnum.BILLING]: 'CreditCardIcon',
80
+ [ModuleEnum.ACCOUNTING]: 'CalculatorIcon',
81
+ [ModuleEnum.CHATING]: 'MessageCircleIcon',
82
+ [ModuleEnum.RESTAURANT]: 'UtensilsIcon',
83
+ [ModuleEnum.USER_ACTIVITY]: 'HistoryIcon',
84
+ [ModuleEnum.CUSTOMER]: 'UsersIcon',
85
+ [ModuleEnum.POS_MANAGEMENT]: 'ShoppingCartIcon',
86
+ [ModuleEnum.ECOMMERCE]: 'ShoppingBagIcon',
87
+ [ModuleEnum.CALENDAR]: 'CalendarIcon',
88
+ [ModuleEnum.OAUTH]: 'ShieldIcon',
89
+ }
90
+
91
+ export const MODULE_OPTIONS: { value: ModuleEnum; label: string; description: string; icon: IconKey }[] =
92
+ Object.values(ModuleEnum).map((value) => ({
93
+ value,
94
+ label: MODULE_LABELS[value],
95
+ description: MODULE_DESCRIPTIONS[value],
96
+ icon: MODULE_ICONS[value],
97
+ }))
@@ -0,0 +1,12 @@
1
+ export enum RoutineStatusEnum {
2
+ PLAY = "PLAY",
3
+ PAUSE = "PAUSE",
4
+ STOP = "STOP",
5
+ FAIL = "FAIL",
6
+ }
7
+
8
+ export enum RoutineInstanceStatusEnum {
9
+ PLAY = "PLAY",
10
+ PAUSE = "PAUSE",
11
+ STOP = "STOP",
12
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Profils d'application cumulables.
3
+ *
4
+ * Un utilisateur peut porter plusieurs profils simultanément. Cette catégorisation
5
+ * transversale détermine à quelles applications de l'écosystème Liorian il peut
6
+ * accéder (console, connect, manager, store, …) indépendamment des rôles métier
7
+ * propres à chaque application.
8
+ */
9
+ export enum UserProfileEnum {
10
+ MANAGER = 'MANAGER',
11
+ CONSOLE = 'CONSOLE',
12
+ CONNECT = 'CONNECT',
13
+ STORE = 'STORE',
14
+ /** Profil réservé au support/gouvernance transverse. */
15
+ SYSTEM = 'SYSTEM',
16
+ }
17
+
18
+ /** Métadonnées statiques d'un profil (libellé français + cible d'application). */
19
+ export const USER_PROFILE_META: Record<UserProfileEnum, { label: string; application: string }> = {
20
+ [UserProfileEnum.MANAGER]: {label: 'Manager', application: 'frontend/liorian-socle'},
21
+ [UserProfileEnum.CONSOLE]: {label: 'Console', application: 'frontend/liorian-console'},
22
+ [UserProfileEnum.CONNECT]: {label: 'Connect', application: 'frontend/liorian-connect'},
23
+ [UserProfileEnum.STORE]: {label: 'Store', application: 'frontend/liorian-store'},
24
+ [UserProfileEnum.SYSTEM]: {label: 'Système', application: '—'},
25
+ };
@@ -0,0 +1,7 @@
1
+ export enum UserStatusEnum {
2
+ ACTIVE = 'ACTIVE',
3
+ INACTIVE = 'INACTIVE',
4
+ BANNED = 'BANNED',
5
+ SUSPENDED = 'SUSPENDED',
6
+ PENDING = 'PENDING',
7
+ }
@@ -0,0 +1,6 @@
1
+ // @liorian/sdk/domain — shared domain models.
2
+ // Subpaths remain available (e.g. `@liorian/sdk/domain/entities/media`).
3
+ export * from "./config/index";
4
+ export * from "./entities/index";
5
+ export * from "./enums/index";
6
+ export * from "./typing/index";
@@ -0,0 +1,12 @@
1
+ import {UserInterface} from "../entities/user.interface";
2
+ import {StackableEntityType} from "../../infrastructure/capabilities/stackable/types";
3
+ import {OrganizationInterface} from "../entities/organization.interface";
4
+
5
+ export interface AuthCacheInterface extends StackableEntityType{
6
+ user: UserInterface | null;
7
+ token: string | null;
8
+ device: string | null;
9
+ organizations: OrganizationInterface[] | null;
10
+ currentOrganization: OrganizationInterface | null;
11
+ apiKey: string | null;
12
+ }