@carlonicora/nextjs-jsonapi 1.5.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (282) hide show
  1. package/dist/{ApiResponseInterface-DDI7QQPR.d.ts → ApiResponseInterface-CfcC7pPC.d.mts} +11 -2
  2. package/dist/{ApiResponseInterface-BHN5D9r5.d.mts → ApiResponseInterface-DTBJaV5R.d.ts} +11 -2
  3. package/dist/AuthComponent-hxOPs9o8.d.mts +11 -0
  4. package/dist/AuthComponent-hxOPs9o8.d.ts +11 -0
  5. package/dist/{BlockNoteEditor-G6AK2NWA.js → BlockNoteEditor-7FM7B737.js} +19 -22
  6. package/dist/BlockNoteEditor-7FM7B737.js.map +1 -0
  7. package/dist/{BlockNoteEditor-AIEEQM6A.mjs → BlockNoteEditor-RVL76ZAS.mjs} +11 -14
  8. package/dist/BlockNoteEditor-RVL76ZAS.mjs.map +1 -0
  9. package/dist/JsonApiRequest-KOKGVPBI.js +25 -0
  10. package/dist/{JsonApiRequest-UJ7FGIVI.js.map → JsonApiRequest-KOKGVPBI.js.map} +1 -1
  11. package/dist/{JsonApiRequest-6UR7DIAR.mjs → JsonApiRequest-VCCRO732.mjs} +2 -2
  12. package/dist/chunk-2Z56AS2S.js +2723 -0
  13. package/dist/chunk-2Z56AS2S.js.map +1 -0
  14. package/dist/chunk-37NJZ2VD.mjs +637 -0
  15. package/dist/chunk-37NJZ2VD.mjs.map +1 -0
  16. package/dist/{chunk-2K3Q24UF.js → chunk-3ZPK4QOB.js} +24 -14
  17. package/dist/chunk-3ZPK4QOB.js.map +1 -0
  18. package/dist/chunk-AGWQ75PQ.js +142 -0
  19. package/dist/chunk-AGWQ75PQ.js.map +1 -0
  20. package/dist/{chunk-32HM6MDD.js → chunk-CSM6AIAP.js} +1 -1
  21. package/dist/{chunk-32HM6MDD.js.map → chunk-CSM6AIAP.js.map} +1 -1
  22. package/dist/{chunk-IKBA4AHN.mjs → chunk-F4Y3GZG4.mjs} +3 -3
  23. package/dist/{chunk-YF5XQZDR.mjs → chunk-F5UNXZ3J.mjs} +1 -1
  24. package/dist/chunk-F5UNXZ3J.mjs.map +1 -0
  25. package/dist/chunk-IGOWVLJH.mjs +142 -0
  26. package/dist/chunk-IGOWVLJH.mjs.map +1 -0
  27. package/dist/{chunk-HAG77QBV.mjs → chunk-K4W5QXL5.mjs} +1 -1
  28. package/dist/chunk-KFL5ZFM4.mjs +2723 -0
  29. package/dist/chunk-KFL5ZFM4.mjs.map +1 -0
  30. package/dist/{chunk-HR4H2FP7.mjs → chunk-KJ4ETLJB.mjs} +24 -14
  31. package/dist/chunk-KJ4ETLJB.mjs.map +1 -0
  32. package/dist/chunk-LOSPCUCF.js +637 -0
  33. package/dist/chunk-LOSPCUCF.js.map +1 -0
  34. package/dist/{chunk-VET55IZO.js → chunk-SVX7E6RR.js} +10293 -7536
  35. package/dist/chunk-SVX7E6RR.js.map +1 -0
  36. package/dist/{chunk-EFJEWLRL.js → chunk-YUO55Q5A.js} +1 -1
  37. package/dist/chunk-YUO55Q5A.js.map +1 -0
  38. package/dist/chunk-ZQTFZKLJ.mjs +12089 -0
  39. package/dist/chunk-ZQTFZKLJ.mjs.map +1 -0
  40. package/dist/{chunk-PMXG5WBC.js → chunk-ZUEEIQHW.js} +3 -3
  41. package/dist/{chunk-PMXG5WBC.js.map → chunk-ZUEEIQHW.js.map} +1 -1
  42. package/dist/client/index.d.mts +161 -11
  43. package/dist/client/index.d.ts +161 -11
  44. package/dist/client/index.js +74 -11
  45. package/dist/client/index.js.map +1 -1
  46. package/dist/client/index.mjs +73 -10
  47. package/dist/components/index.d.mts +763 -11
  48. package/dist/components/index.d.ts +763 -11
  49. package/dist/components/index.js +465 -11
  50. package/dist/components/index.js.map +1 -1
  51. package/dist/components/index.mjs +466 -12
  52. package/dist/config-B43zxEvn.d.mts +69 -0
  53. package/dist/config-D2OUrI_G.d.ts +69 -0
  54. package/dist/content.fields-Ck5lkQ5d.d.mts +47 -0
  55. package/dist/content.fields-Ck5lkQ5d.d.ts +47 -0
  56. package/dist/{content.interface-CR2aBeAW.d.ts → content.interface-Bs8a7uW6.d.mts} +2 -3
  57. package/dist/{content.interface-FpLfsaRm.d.mts → content.interface-UtsJ-mzs.d.ts} +2 -3
  58. package/dist/contexts/index.d.mts +13 -6
  59. package/dist/contexts/index.d.ts +13 -6
  60. package/dist/contexts/index.js +10 -11
  61. package/dist/contexts/index.js.map +1 -1
  62. package/dist/contexts/index.mjs +9 -10
  63. package/dist/core/index.d.mts +539 -8
  64. package/dist/core/index.d.ts +539 -8
  65. package/dist/core/index.js +104 -2
  66. package/dist/core/index.js.map +1 -1
  67. package/dist/core/index.mjs +105 -3
  68. package/dist/index.d.mts +131 -70
  69. package/dist/index.d.ts +131 -70
  70. package/dist/index.js +97 -7
  71. package/dist/index.js.map +1 -1
  72. package/dist/index.mjs +118 -28
  73. package/dist/notification.interface-BdcwkuQE.d.mts +228 -0
  74. package/dist/notification.interface-BdcwkuQE.d.ts +228 -0
  75. package/dist/request-GBLBPYFM.js +8 -0
  76. package/dist/request-GBLBPYFM.js.map +1 -0
  77. package/dist/request-XABCMU25.mjs +8 -0
  78. package/dist/{AbstractService-wLid8dB0.d.ts → s3.interface-D7ttGatc.d.ts} +36 -26
  79. package/dist/{AbstractService-BsY6W3Ej.d.mts → s3.interface-DlaMDRTn.d.mts} +36 -26
  80. package/dist/server/index.d.mts +299 -4
  81. package/dist/server/index.d.ts +299 -4
  82. package/dist/server/index.js +215 -5
  83. package/dist/server/index.js.map +1 -1
  84. package/dist/server/index.mjs +214 -4
  85. package/dist/server/index.mjs.map +1 -1
  86. package/dist/token-2UWQJY5T.js +8 -0
  87. package/dist/token-2UWQJY5T.js.map +1 -0
  88. package/dist/token-EOK3N45S.mjs +8 -0
  89. package/dist/{useSocket-BV6yMdWS.d.ts → useSocket-8vwK_R_c.d.ts} +1 -1
  90. package/dist/{useSocket-L-An7_Mr.d.mts → useSocket-BWJUXuOl.d.mts} +1 -1
  91. package/package.json +12 -52
  92. package/src/client/JsonApiClient.ts +248 -0
  93. package/src/client/config.ts +78 -0
  94. package/src/client/index.ts +6 -1
  95. package/src/components/containers/TabsContainer.tsx +1 -1
  96. package/src/components/editors/BlockNoteEditor.tsx +3 -1
  97. package/src/components/index.ts +4 -0
  98. package/src/components/navigations/Breadcrumb.tsx +1 -1
  99. package/src/components/navigations/Header.tsx +2 -2
  100. package/src/contexts/CommonContext.tsx +1 -1
  101. package/src/contexts/SocketContext.tsx +1 -1
  102. package/src/contexts/index.ts +3 -0
  103. package/src/core/abstracts/ClientAbstractService.ts +255 -0
  104. package/src/core/abstracts/ServerAbstractService.ts +180 -0
  105. package/src/core/abstracts/index.ts +2 -0
  106. package/src/core/index.ts +32 -3
  107. package/src/discord/config.ts +15 -0
  108. package/src/discord/index.ts +1 -0
  109. package/src/features/auth/components/details/LandingComponent.tsx +2 -2
  110. package/src/features/auth/components/forms/AcceptInvitation.tsx +1 -1
  111. package/src/features/auth/components/forms/ActivateAccount.tsx +1 -1
  112. package/src/features/auth/components/forms/Cookies.tsx +2 -1
  113. package/src/features/auth/components/forms/ForgotPassword.tsx +1 -1
  114. package/src/features/auth/components/forms/Login.tsx +1 -1
  115. package/src/features/auth/components/forms/Logout.tsx +1 -1
  116. package/src/features/auth/components/forms/RefreshUser.tsx +2 -1
  117. package/src/features/auth/components/forms/Register.tsx +1 -1
  118. package/src/features/auth/components/forms/ResetPassword.tsx +1 -1
  119. package/src/features/auth/data/auth.service.ts +1 -1
  120. package/src/features/auth/data/index.ts +0 -1
  121. package/src/features/auth/utils/AuthCookies.ts +1 -1
  122. package/src/features/company/components/forms/CompanyConfigurationEditor.tsx +4 -2
  123. package/src/features/company/components/forms/CompanyDeleter.tsx +2 -1
  124. package/src/features/company/components/forms/CompanyEditor.tsx +6 -3
  125. package/src/features/company/components/forms/CompanyLicense.tsx +4 -2
  126. package/src/features/company/components/lists/CompaniesList.tsx +2 -1
  127. package/src/features/company/data/index.ts +0 -1
  128. package/src/features/content/components/lists/ContentsListById.tsx +2 -1
  129. package/src/features/content/components/lists/RelevantContentsList.tsx +2 -1
  130. package/src/features/content/data/index.ts +0 -1
  131. package/src/features/feature/data/index.ts +0 -1
  132. package/src/features/notification/components/lists/NotificationsList.tsx +2 -1
  133. package/src/features/notification/contexts/NotificationContext.tsx +2 -1
  134. package/src/features/notification/data/index.ts +0 -1
  135. package/src/features/push/data/index.ts +0 -1
  136. package/src/features/role/components/forms/RemoveUserFromRole.tsx +4 -2
  137. package/src/features/role/components/forms/UserRoleAdd.tsx +2 -1
  138. package/src/features/role/components/lists/RolesList.tsx +2 -1
  139. package/src/features/role/components/lists/UserRolesList.tsx +2 -1
  140. package/src/features/role/data/index.ts +0 -1
  141. package/src/features/s3/data/index.ts +0 -1
  142. package/src/features/user/components/forms/RoleUserAdd.tsx +4 -2
  143. package/src/features/user/components/forms/UserDeleter.tsx +2 -1
  144. package/src/features/user/components/forms/UserEditor.tsx +6 -3
  145. package/src/features/user/components/forms/UserMultiSelect.tsx +2 -1
  146. package/src/features/user/components/forms/UserReactivator.tsx +2 -1
  147. package/src/features/user/components/forms/UserResentInvitationEmail.tsx +2 -1
  148. package/src/features/user/components/forms/UserSelector.tsx +2 -1
  149. package/src/features/user/components/lists/AdminUsersList.tsx +2 -1
  150. package/src/features/user/components/lists/CompanyUsersList.tsx +2 -1
  151. package/src/features/user/components/lists/RelevantUsersList.tsx +2 -1
  152. package/src/features/user/components/lists/RoleUsersList.tsx +2 -1
  153. package/src/features/user/components/lists/UsersListByContentIds.tsx +2 -1
  154. package/src/features/user/data/index.ts +0 -1
  155. package/src/features/user/hooks/useUserSearch.ts +2 -1
  156. package/src/hooks/useDataListRetriever.ts +4 -4
  157. package/src/hooks/usePageTracker.ts +1 -1
  158. package/src/hooks/usePushNotifications.ts +3 -2
  159. package/src/hooks/useSocket.ts +1 -1
  160. package/src/index.ts +7 -2
  161. package/src/roles/config.ts +0 -15
  162. package/src/roles/index.ts +1 -9
  163. package/src/server/JsonApiServer.ts +249 -0
  164. package/src/server/cache.ts +1 -1
  165. package/src/server/index.ts +13 -0
  166. package/src/server/request.ts +32 -18
  167. package/src/server/token.ts +1 -1
  168. package/dist/ApiData-DPKNfY-9.d.mts +0 -10
  169. package/dist/ApiData-DPKNfY-9.d.ts +0 -10
  170. package/dist/ApiDataInterface-DPP8s46n.d.mts +0 -21
  171. package/dist/ApiDataInterface-DPP8s46n.d.ts +0 -21
  172. package/dist/AuthComponent-B_Ps2Vb9.d.ts +0 -78
  173. package/dist/AuthComponent-CxnGgvoh.d.mts +0 -78
  174. package/dist/BlockNoteEditor-AIEEQM6A.mjs.map +0 -1
  175. package/dist/BlockNoteEditor-G6AK2NWA.js.map +0 -1
  176. package/dist/JsonApiRequest-UJ7FGIVI.js +0 -25
  177. package/dist/atoms/index.d.mts +0 -12
  178. package/dist/atoms/index.d.ts +0 -12
  179. package/dist/atoms/index.js +0 -9
  180. package/dist/atoms/index.js.map +0 -1
  181. package/dist/atoms/index.mjs +0 -9
  182. package/dist/chunk-2K3Q24UF.js.map +0 -1
  183. package/dist/chunk-3FBCC4G3.js +0 -8
  184. package/dist/chunk-3FBCC4G3.js.map +0 -1
  185. package/dist/chunk-3UELCPIN.js +0 -46
  186. package/dist/chunk-3UELCPIN.js.map +0 -1
  187. package/dist/chunk-5IET37O4.js +0 -4210
  188. package/dist/chunk-5IET37O4.js.map +0 -1
  189. package/dist/chunk-AYHKQWHH.js +0 -68
  190. package/dist/chunk-AYHKQWHH.js.map +0 -1
  191. package/dist/chunk-DEYKTLA3.js +0 -1131
  192. package/dist/chunk-DEYKTLA3.js.map +0 -1
  193. package/dist/chunk-EFJEWLRL.js.map +0 -1
  194. package/dist/chunk-FMBQZAIP.mjs +0 -490
  195. package/dist/chunk-FMBQZAIP.mjs.map +0 -1
  196. package/dist/chunk-HR4H2FP7.mjs.map +0 -1
  197. package/dist/chunk-J7YDGYSW.mjs +0 -9332
  198. package/dist/chunk-J7YDGYSW.mjs.map +0 -1
  199. package/dist/chunk-JGFWIT2E.mjs +0 -1131
  200. package/dist/chunk-JGFWIT2E.mjs.map +0 -1
  201. package/dist/chunk-P2F54I7Q.mjs +0 -4210
  202. package/dist/chunk-P2F54I7Q.mjs.map +0 -1
  203. package/dist/chunk-Q2N6SQYW.mjs +0 -8
  204. package/dist/chunk-Q2N6SQYW.mjs.map +0 -1
  205. package/dist/chunk-Q4FXESVT.js +0 -490
  206. package/dist/chunk-Q4FXESVT.js.map +0 -1
  207. package/dist/chunk-SM63SZCP.mjs +0 -68
  208. package/dist/chunk-SM63SZCP.mjs.map +0 -1
  209. package/dist/chunk-SZZYEG3P.mjs +0 -46
  210. package/dist/chunk-SZZYEG3P.mjs.map +0 -1
  211. package/dist/chunk-VET55IZO.js.map +0 -1
  212. package/dist/chunk-YF5XQZDR.mjs.map +0 -1
  213. package/dist/config-BmnK65TD.d.mts +0 -35
  214. package/dist/config-BmnK65TD.d.ts +0 -35
  215. package/dist/config-DQeAo9Kf.d.mts +0 -49
  216. package/dist/config-DQeAo9Kf.d.ts +0 -49
  217. package/dist/content.fields-cHPdM8GJ.d.mts +0 -27
  218. package/dist/content.fields-cHPdM8GJ.d.ts +0 -27
  219. package/dist/d3.link.interface-ClC4Irqp.d.mts +0 -21
  220. package/dist/d3.link.interface-ClC4Irqp.d.ts +0 -21
  221. package/dist/features/index.d.mts +0 -477
  222. package/dist/features/index.d.ts +0 -477
  223. package/dist/features/index.js +0 -108
  224. package/dist/features/index.js.map +0 -1
  225. package/dist/features/index.mjs +0 -108
  226. package/dist/hooks/index.d.mts +0 -69
  227. package/dist/hooks/index.d.ts +0 -69
  228. package/dist/hooks/index.js +0 -55
  229. package/dist/hooks/index.js.map +0 -1
  230. package/dist/hooks/index.mjs +0 -55
  231. package/dist/hooks/index.mjs.map +0 -1
  232. package/dist/interfaces/index.d.mts +0 -4
  233. package/dist/interfaces/index.d.ts +0 -4
  234. package/dist/interfaces/index.js +0 -2
  235. package/dist/interfaces/index.js.map +0 -1
  236. package/dist/interfaces/index.mjs +0 -2
  237. package/dist/interfaces/index.mjs.map +0 -1
  238. package/dist/notification.interface-B2BrLoDA.d.mts +0 -14
  239. package/dist/notification.interface-DlZLnAfg.d.ts +0 -14
  240. package/dist/permissions/index.d.mts +0 -41
  241. package/dist/permissions/index.d.ts +0 -41
  242. package/dist/permissions/index.js +0 -14
  243. package/dist/permissions/index.js.map +0 -1
  244. package/dist/permissions/index.mjs +0 -14
  245. package/dist/permissions/index.mjs.map +0 -1
  246. package/dist/request-7FE3LJLV.mjs +0 -9
  247. package/dist/request-7FE3LJLV.mjs.map +0 -1
  248. package/dist/request-QFS7NEIE.js +0 -9
  249. package/dist/request-QFS7NEIE.js.map +0 -1
  250. package/dist/roles/index.d.mts +0 -39
  251. package/dist/roles/index.d.ts +0 -39
  252. package/dist/roles/index.js +0 -18
  253. package/dist/roles/index.js.map +0 -1
  254. package/dist/roles/index.mjs +0 -18
  255. package/dist/roles/index.mjs.map +0 -1
  256. package/dist/shadcnui/index.d.mts +0 -698
  257. package/dist/shadcnui/index.d.ts +0 -698
  258. package/dist/shadcnui/index.js +0 -468
  259. package/dist/shadcnui/index.js.map +0 -1
  260. package/dist/shadcnui/index.mjs +0 -467
  261. package/dist/shadcnui/index.mjs.map +0 -1
  262. package/dist/token-IJSPOMW6.mjs +0 -9
  263. package/dist/token-IJSPOMW6.mjs.map +0 -1
  264. package/dist/token-UYE7CV6X.js +0 -9
  265. package/dist/token-UYE7CV6X.js.map +0 -1
  266. package/dist/types-B2QRyqyK.d.ts +0 -39
  267. package/dist/types-CgvNmxTd.d.mts +0 -39
  268. package/dist/types-t2PyXhDu.d.mts +0 -116
  269. package/dist/types-t2PyXhDu.d.ts +0 -116
  270. package/dist/user.interface-CooB1R79.d.mts +0 -85
  271. package/dist/user.interface-KnIT9pVY.d.ts +0 -85
  272. package/dist/utils/index.d.mts +0 -224
  273. package/dist/utils/index.d.ts +0 -224
  274. package/dist/utils/index.js +0 -46
  275. package/dist/utils/index.js.map +0 -1
  276. package/dist/utils/index.mjs +0 -46
  277. package/dist/utils/index.mjs.map +0 -1
  278. /package/dist/{JsonApiRequest-6UR7DIAR.mjs.map → JsonApiRequest-VCCRO732.mjs.map} +0 -0
  279. /package/dist/{chunk-IKBA4AHN.mjs.map → chunk-F4Y3GZG4.mjs.map} +0 -0
  280. /package/dist/{chunk-HAG77QBV.mjs.map → chunk-K4W5QXL5.mjs.map} +0 -0
  281. /package/dist/{atoms/index.mjs.map → request-XABCMU25.mjs.map} +0 -0
  282. /package/dist/{features/index.mjs.map → token-EOK3N45S.mjs.map} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/server/token.ts"],"sourcesContent":["\"use server\";\n\n/**\n * Get the authentication token from cookies (server-side)\n */\nexport async function getServerToken(): Promise<string | undefined> {\n const { cookies } = await import(\"next/headers\");\n const cookieStore = await cookies();\n return cookieStore.get(\"token\")?.value;\n}\n"],"mappings":";;;;;AAKA,eAAsB,iBAA8C;AAClE,QAAM,EAAE,QAAQ,IAAI,MAAM,OAAO,cAAc;AAC/C,QAAM,cAAc,MAAM,QAAQ;AAClC,SAAO,YAAY,IAAI,OAAO,GAAG;AACnC;AAJsB;","names":[]}
@@ -1,35 +0,0 @@
1
- import { ComponentType } from 'react';
2
-
3
- interface I18nRouter {
4
- push: (href: string) => void;
5
- replace: (href: string) => void;
6
- back: () => void;
7
- forward: () => void;
8
- refresh: () => void;
9
- prefetch: (href: string) => void;
10
- }
11
- type UseRouterHook = () => I18nRouter;
12
- type UseTranslationsHook = (namespace?: string) => (key: string, values?: Record<string, any>) => string;
13
- type UseLocaleHook = () => string;
14
- type UseDateFnsLocaleHook = () => any;
15
- type LinkComponent = ComponentType<{
16
- href: string;
17
- children: React.ReactNode;
18
- [key: string]: any;
19
- }>;
20
- interface I18nConfig {
21
- useRouter: UseRouterHook;
22
- useTranslations: UseTranslationsHook;
23
- useLocale?: UseLocaleHook;
24
- useDateFnsLocale?: UseDateFnsLocaleHook;
25
- Link: LinkComponent;
26
- usePathname: () => string;
27
- }
28
- declare function configureI18n(config: I18nConfig): void;
29
- declare function useI18nRouter(): I18nRouter;
30
- declare function useI18nTranslations(namespace?: string): (key: string, values?: Record<string, any>) => string;
31
- declare function getI18nLink(): LinkComponent;
32
- declare function useI18nLocale(): string;
33
- declare function useI18nDateFnsLocale(): any;
34
-
35
- export { type I18nConfig as I, type LinkComponent as L, type UseDateFnsLocaleHook as U, useI18nLocale as a, useI18nRouter as b, configureI18n as c, useI18nTranslations as d, type I18nRouter as e, type UseLocaleHook as f, getI18nLink as g, type UseRouterHook as h, type UseTranslationsHook as i, useI18nDateFnsLocale as u };
@@ -1,35 +0,0 @@
1
- import { ComponentType } from 'react';
2
-
3
- interface I18nRouter {
4
- push: (href: string) => void;
5
- replace: (href: string) => void;
6
- back: () => void;
7
- forward: () => void;
8
- refresh: () => void;
9
- prefetch: (href: string) => void;
10
- }
11
- type UseRouterHook = () => I18nRouter;
12
- type UseTranslationsHook = (namespace?: string) => (key: string, values?: Record<string, any>) => string;
13
- type UseLocaleHook = () => string;
14
- type UseDateFnsLocaleHook = () => any;
15
- type LinkComponent = ComponentType<{
16
- href: string;
17
- children: React.ReactNode;
18
- [key: string]: any;
19
- }>;
20
- interface I18nConfig {
21
- useRouter: UseRouterHook;
22
- useTranslations: UseTranslationsHook;
23
- useLocale?: UseLocaleHook;
24
- useDateFnsLocale?: UseDateFnsLocaleHook;
25
- Link: LinkComponent;
26
- usePathname: () => string;
27
- }
28
- declare function configureI18n(config: I18nConfig): void;
29
- declare function useI18nRouter(): I18nRouter;
30
- declare function useI18nTranslations(namespace?: string): (key: string, values?: Record<string, any>) => string;
31
- declare function getI18nLink(): LinkComponent;
32
- declare function useI18nLocale(): string;
33
- declare function useI18nDateFnsLocale(): any;
34
-
35
- export { type I18nConfig as I, type LinkComponent as L, type UseDateFnsLocaleHook as U, useI18nLocale as a, useI18nRouter as b, configureI18n as c, useI18nTranslations as d, type I18nRouter as e, type UseLocaleHook as f, getI18nLink as g, type UseRouterHook as h, type UseTranslationsHook as i, useI18nDateFnsLocale as u };
@@ -1,49 +0,0 @@
1
- /**
2
- * Token parameters for authentication cookie management
3
- */
4
- interface TokenParams {
5
- token?: string;
6
- refreshToken?: string;
7
- userId?: string;
8
- companyId?: string;
9
- licenseExpirationDate?: Date;
10
- roles?: string[];
11
- features?: string[];
12
- modules?: {
13
- id: string;
14
- permissions: {
15
- create: boolean | string;
16
- read: boolean | string;
17
- update: boolean | string;
18
- delete: boolean | string;
19
- };
20
- }[];
21
- }
22
- /**
23
- * Token handler interface for dependency injection
24
- * Apps must provide implementations of these functions via configureAuth()
25
- */
26
- interface TokenHandler {
27
- updateToken: (params: TokenParams) => Promise<void>;
28
- removeToken: () => Promise<void>;
29
- }
30
- /**
31
- * Configure authentication token handling
32
- * Call this at app startup to provide Server Actions for cookie management
33
- *
34
- * @example
35
- * ```typescript
36
- * import { configureAuth } from "@carlonicora/nextjs-jsonapi/features";
37
- * import { updateToken, removeToken } from "@/features/auth/utils/AuthCookies";
38
- *
39
- * configureAuth({ updateToken, removeToken });
40
- * ```
41
- */
42
- declare function configureAuth(handler: TokenHandler): void;
43
- /**
44
- * Internal getter for AuthService to access the token handler
45
- * @internal
46
- */
47
- declare function getTokenHandler(): TokenHandler | null;
48
-
49
- export { type TokenHandler as T, type TokenParams as a, configureAuth as c, getTokenHandler as g };
@@ -1,49 +0,0 @@
1
- /**
2
- * Token parameters for authentication cookie management
3
- */
4
- interface TokenParams {
5
- token?: string;
6
- refreshToken?: string;
7
- userId?: string;
8
- companyId?: string;
9
- licenseExpirationDate?: Date;
10
- roles?: string[];
11
- features?: string[];
12
- modules?: {
13
- id: string;
14
- permissions: {
15
- create: boolean | string;
16
- read: boolean | string;
17
- update: boolean | string;
18
- delete: boolean | string;
19
- };
20
- }[];
21
- }
22
- /**
23
- * Token handler interface for dependency injection
24
- * Apps must provide implementations of these functions via configureAuth()
25
- */
26
- interface TokenHandler {
27
- updateToken: (params: TokenParams) => Promise<void>;
28
- removeToken: () => Promise<void>;
29
- }
30
- /**
31
- * Configure authentication token handling
32
- * Call this at app startup to provide Server Actions for cookie management
33
- *
34
- * @example
35
- * ```typescript
36
- * import { configureAuth } from "@carlonicora/nextjs-jsonapi/features";
37
- * import { updateToken, removeToken } from "@/features/auth/utils/AuthCookies";
38
- *
39
- * configureAuth({ updateToken, removeToken });
40
- * ```
41
- */
42
- declare function configureAuth(handler: TokenHandler): void;
43
- /**
44
- * Internal getter for AuthService to access the token handler
45
- * @internal
46
- */
47
- declare function getTokenHandler(): TokenHandler | null;
48
-
49
- export { type TokenHandler as T, type TokenParams as a, configureAuth as c, getTokenHandler as g };
@@ -1,27 +0,0 @@
1
- declare enum RoleFields {
2
- roleId = "roleId",
3
- name = "name",
4
- description = "description",
5
- createdAt = "createdAt",
6
- updatedAt = "updatedAt"
7
- }
8
-
9
- declare enum UserFields {
10
- userId = "userId",
11
- name = "name",
12
- email = "email",
13
- relevance = "relevance",
14
- createdAt = "createdAt",
15
- updatedAt = "updatedAt"
16
- }
17
-
18
- declare enum ContentFields {
19
- contentId = "contentId",
20
- name = "name",
21
- relevance = "relevance",
22
- authors = "authors",
23
- createdAt = "createdAt",
24
- updatedAt = "updatedAt"
25
- }
26
-
27
- export { ContentFields as C, RoleFields as R, UserFields as U };
@@ -1,27 +0,0 @@
1
- declare enum RoleFields {
2
- roleId = "roleId",
3
- name = "name",
4
- description = "description",
5
- createdAt = "createdAt",
6
- updatedAt = "updatedAt"
7
- }
8
-
9
- declare enum UserFields {
10
- userId = "userId",
11
- name = "name",
12
- email = "email",
13
- relevance = "relevance",
14
- createdAt = "createdAt",
15
- updatedAt = "updatedAt"
16
- }
17
-
18
- declare enum ContentFields {
19
- contentId = "contentId",
20
- name = "name",
21
- relevance = "relevance",
22
- authors = "authors",
23
- createdAt = "createdAt",
24
- updatedAt = "updatedAt"
25
- }
26
-
27
- export { ContentFields as C, RoleFields as R, UserFields as U };
@@ -1,21 +0,0 @@
1
- import { SimulationLinkDatum } from 'd3';
2
- import { LucideIcon } from 'lucide-react';
3
-
4
- interface D3Node extends d3.SimulationNodeDatum {
5
- id: string;
6
- name: string;
7
- instanceType: string;
8
- relationshipType?: string;
9
- isBrowsableNode?: boolean;
10
- icon?: LucideIcon;
11
- visible?: boolean;
12
- washedOut?: boolean;
13
- }
14
-
15
- interface D3Link extends SimulationLinkDatum<D3Node> {
16
- source: string | D3Node;
17
- target: string | D3Node;
18
- relationshipType?: string;
19
- }
20
-
21
- export type { D3Link as D, D3Node as a };
@@ -1,21 +0,0 @@
1
- import { SimulationLinkDatum } from 'd3';
2
- import { LucideIcon } from 'lucide-react';
3
-
4
- interface D3Node extends d3.SimulationNodeDatum {
5
- id: string;
6
- name: string;
7
- instanceType: string;
8
- relationshipType?: string;
9
- isBrowsableNode?: boolean;
10
- icon?: LucideIcon;
11
- visible?: boolean;
12
- washedOut?: boolean;
13
- }
14
-
15
- interface D3Link extends SimulationLinkDatum<D3Node> {
16
- source: string | D3Node;
17
- target: string | D3Node;
18
- relationshipType?: string;
19
- }
20
-
21
- export type { D3Link as D, D3Node as a };