@carlonicora/nextjs-jsonapi 1.4.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 (317) hide show
  1. package/README.md +208 -127
  2. package/dist/{ApiResponseInterface-DDI7QQPR.d.ts → ApiResponseInterface-CfcC7pPC.d.mts} +11 -2
  3. package/dist/{ApiResponseInterface-BHN5D9r5.d.mts → ApiResponseInterface-DTBJaV5R.d.ts} +11 -2
  4. package/dist/{BlockNoteEditor-QV6ESIQA.js → BlockNoteEditor-7FM7B737.js} +19 -24
  5. package/dist/BlockNoteEditor-7FM7B737.js.map +1 -0
  6. package/dist/{BlockNoteEditor-U2IHUVUF.mjs → BlockNoteEditor-RVL76ZAS.mjs} +11 -16
  7. package/dist/BlockNoteEditor-RVL76ZAS.mjs.map +1 -0
  8. package/dist/JsonApiRequest-KOKGVPBI.js +25 -0
  9. package/dist/{JsonApiRequest-UJ7FGIVI.js.map → JsonApiRequest-KOKGVPBI.js.map} +1 -1
  10. package/dist/{JsonApiRequest-6UR7DIAR.mjs → JsonApiRequest-VCCRO732.mjs} +2 -2
  11. package/dist/chunk-2Z56AS2S.js +2723 -0
  12. package/dist/chunk-2Z56AS2S.js.map +1 -0
  13. package/dist/{chunk-HTLEKZND.mjs → chunk-37NJZ2VD.mjs} +281 -1019
  14. package/dist/chunk-37NJZ2VD.mjs.map +1 -0
  15. package/dist/{chunk-2K3Q24UF.js → chunk-3ZPK4QOB.js} +24 -14
  16. package/dist/chunk-3ZPK4QOB.js.map +1 -0
  17. package/dist/chunk-AGWQ75PQ.js +142 -0
  18. package/dist/chunk-AGWQ75PQ.js.map +1 -0
  19. package/dist/{chunk-32HM6MDD.js → chunk-CSM6AIAP.js} +1 -1
  20. package/dist/{chunk-32HM6MDD.js.map → chunk-CSM6AIAP.js.map} +1 -1
  21. package/dist/{chunk-IKBA4AHN.mjs → chunk-F4Y3GZG4.mjs} +3 -3
  22. package/dist/{chunk-YF5XQZDR.mjs → chunk-F5UNXZ3J.mjs} +1 -1
  23. package/dist/chunk-F5UNXZ3J.mjs.map +1 -0
  24. package/dist/chunk-IGOWVLJH.mjs +142 -0
  25. package/dist/chunk-IGOWVLJH.mjs.map +1 -0
  26. package/dist/{chunk-HAG77QBV.mjs → chunk-K4W5QXL5.mjs} +1 -1
  27. package/dist/chunk-KFL5ZFM4.mjs +2723 -0
  28. package/dist/chunk-KFL5ZFM4.mjs.map +1 -0
  29. package/dist/{chunk-HR4H2FP7.mjs → chunk-KJ4ETLJB.mjs} +24 -14
  30. package/dist/chunk-KJ4ETLJB.mjs.map +1 -0
  31. package/dist/chunk-LOSPCUCF.js +637 -0
  32. package/dist/chunk-LOSPCUCF.js.map +1 -0
  33. package/dist/{chunk-E2HRC2OG.js → chunk-SVX7E6RR.js} +10360 -6256
  34. package/dist/chunk-SVX7E6RR.js.map +1 -0
  35. package/dist/{chunk-EFJEWLRL.js → chunk-YUO55Q5A.js} +1 -1
  36. package/dist/chunk-YUO55Q5A.js.map +1 -0
  37. package/dist/chunk-ZQTFZKLJ.mjs +12089 -0
  38. package/dist/chunk-ZQTFZKLJ.mjs.map +1 -0
  39. package/dist/{chunk-PMXG5WBC.js → chunk-ZUEEIQHW.js} +3 -3
  40. package/dist/{chunk-PMXG5WBC.js.map → chunk-ZUEEIQHW.js.map} +1 -1
  41. package/dist/client/index.d.mts +161 -11
  42. package/dist/client/index.d.ts +161 -11
  43. package/dist/client/index.js +74 -12
  44. package/dist/client/index.js.map +1 -1
  45. package/dist/client/index.mjs +73 -11
  46. package/dist/components/index.d.mts +762 -73
  47. package/dist/components/index.d.ts +762 -73
  48. package/dist/components/index.js +465 -12
  49. package/dist/components/index.js.map +1 -1
  50. package/dist/components/index.mjs +466 -13
  51. package/dist/config-B43zxEvn.d.mts +69 -0
  52. package/dist/config-D2OUrI_G.d.ts +69 -0
  53. package/dist/content.fields-Ck5lkQ5d.d.mts +47 -0
  54. package/dist/content.fields-Ck5lkQ5d.d.ts +47 -0
  55. package/dist/{content.interface-C_PGZMuy.d.ts → content.interface-Bs8a7uW6.d.mts} +2 -3
  56. package/dist/{content.interface-D_WS6CrB.d.mts → content.interface-UtsJ-mzs.d.ts} +2 -3
  57. package/dist/contexts/index.d.mts +13 -6
  58. package/dist/contexts/index.d.ts +13 -6
  59. package/dist/contexts/index.js +10 -12
  60. package/dist/contexts/index.js.map +1 -1
  61. package/dist/contexts/index.mjs +9 -11
  62. package/dist/core/index.d.mts +539 -8
  63. package/dist/core/index.d.ts +539 -8
  64. package/dist/core/index.js +104 -2
  65. package/dist/core/index.js.map +1 -1
  66. package/dist/core/index.mjs +105 -3
  67. package/dist/index.d.mts +131 -70
  68. package/dist/index.d.ts +131 -70
  69. package/dist/index.js +97 -7
  70. package/dist/index.js.map +1 -1
  71. package/dist/index.mjs +118 -28
  72. package/dist/notification.interface-BdcwkuQE.d.mts +228 -0
  73. package/dist/notification.interface-BdcwkuQE.d.ts +228 -0
  74. package/dist/request-GBLBPYFM.js +8 -0
  75. package/dist/request-GBLBPYFM.js.map +1 -0
  76. package/dist/request-XABCMU25.mjs +8 -0
  77. package/dist/{AbstractService-wLid8dB0.d.ts → s3.interface-D7ttGatc.d.ts} +36 -26
  78. package/dist/{AbstractService-BsY6W3Ej.d.mts → s3.interface-DlaMDRTn.d.mts} +36 -26
  79. package/dist/scripts/generate-web-module/generator.d.ts.map +1 -1
  80. package/dist/scripts/generate-web-module/generator.js +8 -5
  81. package/dist/scripts/generate-web-module/generator.js.map +1 -1
  82. package/dist/scripts/generate-web-module/index.js +1 -1
  83. package/dist/scripts/generate-web-module/index.js.map +1 -1
  84. package/dist/scripts/generate-web-module/templates/components/editor.template.js +8 -1
  85. package/dist/scripts/generate-web-module/templates/components/editor.template.js.map +1 -1
  86. package/dist/scripts/generate-web-module/transformers/parent-detector.d.ts +4 -3
  87. package/dist/scripts/generate-web-module/transformers/parent-detector.d.ts.map +1 -1
  88. package/dist/scripts/generate-web-module/transformers/parent-detector.js +9 -3
  89. package/dist/scripts/generate-web-module/transformers/parent-detector.js.map +1 -1
  90. package/dist/scripts/generate-web-module/transformers/relationship-resolver.d.ts +11 -0
  91. package/dist/scripts/generate-web-module/transformers/relationship-resolver.d.ts.map +1 -1
  92. package/dist/scripts/generate-web-module/transformers/relationship-resolver.js +36 -9
  93. package/dist/scripts/generate-web-module/transformers/relationship-resolver.js.map +1 -1
  94. package/dist/scripts/generate-web-module/types/json-schema.interface.d.ts +2 -0
  95. package/dist/scripts/generate-web-module/types/json-schema.interface.d.ts.map +1 -1
  96. package/dist/scripts/generate-web-module/types/template-data.interface.d.ts +1 -0
  97. package/dist/scripts/generate-web-module/types/template-data.interface.d.ts.map +1 -1
  98. package/dist/scripts/generate-web-module/utils/i18n-updater.d.ts +4 -3
  99. package/dist/scripts/generate-web-module/utils/i18n-updater.d.ts.map +1 -1
  100. package/dist/scripts/generate-web-module/utils/i18n-updater.js +9 -9
  101. package/dist/scripts/generate-web-module/utils/i18n-updater.js.map +1 -1
  102. package/dist/scripts/generate-web-module/validators/json-schema-validator.js +3 -3
  103. package/dist/scripts/generate-web-module/validators/json-schema-validator.js.map +1 -1
  104. package/dist/server/index.d.mts +299 -4
  105. package/dist/server/index.d.ts +299 -4
  106. package/dist/server/index.js +215 -5
  107. package/dist/server/index.js.map +1 -1
  108. package/dist/server/index.mjs +214 -4
  109. package/dist/server/index.mjs.map +1 -1
  110. package/dist/token-2UWQJY5T.js +8 -0
  111. package/dist/token-2UWQJY5T.js.map +1 -0
  112. package/dist/token-EOK3N45S.mjs +8 -0
  113. package/dist/{useSocket-DzMKRKCA.d.ts → useSocket-8vwK_R_c.d.ts} +1 -1
  114. package/dist/{useSocket-Cn7fB_B1.d.mts → useSocket-BWJUXuOl.d.mts} +1 -1
  115. package/package.json +12 -52
  116. package/scripts/generate-web-module/generator.ts +8 -5
  117. package/scripts/generate-web-module/index.ts +1 -1
  118. package/scripts/generate-web-module/templates/components/editor.template.ts +7 -2
  119. package/scripts/generate-web-module/transformers/parent-detector.ts +10 -3
  120. package/scripts/generate-web-module/transformers/relationship-resolver.ts +36 -9
  121. package/scripts/generate-web-module/types/json-schema.interface.ts +2 -0
  122. package/scripts/generate-web-module/types/template-data.interface.ts +1 -0
  123. package/scripts/generate-web-module/utils/i18n-updater.ts +9 -9
  124. package/scripts/generate-web-module/validators/json-schema-validator.ts +3 -3
  125. package/src/client/JsonApiClient.ts +248 -0
  126. package/src/client/config.ts +78 -0
  127. package/src/client/index.ts +6 -1
  128. package/src/components/containers/TabsContainer.tsx +1 -1
  129. package/src/components/editors/BlockNoteEditor.tsx +3 -1
  130. package/src/components/index.ts +4 -0
  131. package/src/components/navigations/Breadcrumb.tsx +1 -1
  132. package/src/components/navigations/Header.tsx +2 -2
  133. package/src/contexts/CommonContext.tsx +1 -1
  134. package/src/contexts/SocketContext.tsx +1 -1
  135. package/src/contexts/index.ts +3 -0
  136. package/src/core/abstracts/ClientAbstractService.ts +255 -0
  137. package/src/core/abstracts/ServerAbstractService.ts +180 -0
  138. package/src/core/abstracts/index.ts +2 -0
  139. package/src/core/index.ts +32 -3
  140. package/src/discord/config.ts +15 -0
  141. package/src/discord/index.ts +1 -0
  142. package/src/features/auth/components/details/LandingComponent.tsx +2 -2
  143. package/src/features/auth/components/forms/AcceptInvitation.tsx +1 -1
  144. package/src/features/auth/components/forms/ActivateAccount.tsx +1 -1
  145. package/src/features/auth/components/forms/Cookies.tsx +2 -1
  146. package/src/features/auth/components/forms/ForgotPassword.tsx +1 -1
  147. package/src/features/auth/components/forms/Login.tsx +1 -1
  148. package/src/features/auth/components/forms/Logout.tsx +1 -1
  149. package/src/features/auth/components/forms/RefreshUser.tsx +2 -1
  150. package/src/features/auth/components/forms/Register.tsx +1 -1
  151. package/src/features/auth/components/forms/ResetPassword.tsx +1 -1
  152. package/src/features/auth/data/auth.service.ts +1 -1
  153. package/src/features/auth/data/index.ts +0 -1
  154. package/src/features/auth/utils/AuthCookies.ts +1 -1
  155. package/src/features/company/components/forms/CompanyConfigurationEditor.tsx +4 -2
  156. package/src/features/company/components/forms/CompanyDeleter.tsx +2 -1
  157. package/src/features/company/components/forms/CompanyEditor.tsx +6 -3
  158. package/src/features/company/components/forms/CompanyLicense.tsx +4 -2
  159. package/src/features/company/components/lists/CompaniesList.tsx +2 -1
  160. package/src/features/company/data/index.ts +0 -1
  161. package/src/features/content/components/lists/ContentsListById.tsx +2 -1
  162. package/src/features/content/components/lists/RelevantContentsList.tsx +2 -1
  163. package/src/features/content/data/index.ts +0 -1
  164. package/src/features/feature/data/index.ts +0 -1
  165. package/src/features/notification/components/lists/NotificationsList.tsx +2 -1
  166. package/src/features/notification/contexts/NotificationContext.tsx +2 -1
  167. package/src/features/notification/data/index.ts +0 -1
  168. package/src/features/push/data/index.ts +0 -1
  169. package/src/features/role/components/forms/RemoveUserFromRole.tsx +4 -2
  170. package/src/features/role/components/forms/UserRoleAdd.tsx +2 -1
  171. package/src/features/role/components/lists/RolesList.tsx +2 -1
  172. package/src/features/role/components/lists/UserRolesList.tsx +2 -1
  173. package/src/features/role/data/index.ts +0 -1
  174. package/src/features/s3/data/index.ts +0 -1
  175. package/src/features/user/components/forms/RoleUserAdd.tsx +4 -2
  176. package/src/features/user/components/forms/UserDeleter.tsx +2 -1
  177. package/src/features/user/components/forms/UserEditor.tsx +6 -3
  178. package/src/features/user/components/forms/UserMultiSelect.tsx +2 -1
  179. package/src/features/user/components/forms/UserReactivator.tsx +2 -1
  180. package/src/features/user/components/forms/UserResentInvitationEmail.tsx +2 -1
  181. package/src/features/user/components/forms/UserSelector.tsx +2 -1
  182. package/src/features/user/components/lists/AdminUsersList.tsx +2 -1
  183. package/src/features/user/components/lists/CompanyUsersList.tsx +2 -1
  184. package/src/features/user/components/lists/RelevantUsersList.tsx +2 -1
  185. package/src/features/user/components/lists/RoleUsersList.tsx +2 -1
  186. package/src/features/user/components/lists/UsersListByContentIds.tsx +2 -1
  187. package/src/features/user/data/index.ts +0 -1
  188. package/src/features/user/hooks/useUserSearch.ts +2 -1
  189. package/src/features/user/index.ts +1 -0
  190. package/src/hooks/useDataListRetriever.ts +4 -4
  191. package/src/hooks/usePageTracker.ts +1 -1
  192. package/src/hooks/usePushNotifications.ts +3 -2
  193. package/src/hooks/useSocket.ts +1 -1
  194. package/src/index.ts +7 -2
  195. package/src/roles/config.ts +0 -15
  196. package/src/roles/index.ts +1 -9
  197. package/src/server/JsonApiServer.ts +249 -0
  198. package/src/server/cache.ts +1 -1
  199. package/src/server/index.ts +13 -0
  200. package/src/server/request.ts +32 -18
  201. package/src/server/token.ts +1 -1
  202. package/dist/ApiData-DPKNfY-9.d.mts +0 -10
  203. package/dist/ApiData-DPKNfY-9.d.ts +0 -10
  204. package/dist/ApiDataInterface-DPP8s46n.d.mts +0 -21
  205. package/dist/ApiDataInterface-DPP8s46n.d.ts +0 -21
  206. package/dist/BlockNoteEditor-QV6ESIQA.js.map +0 -1
  207. package/dist/BlockNoteEditor-U2IHUVUF.mjs.map +0 -1
  208. package/dist/JsonApiRequest-UJ7FGIVI.js +0 -25
  209. package/dist/atoms/index.d.mts +0 -12
  210. package/dist/atoms/index.d.ts +0 -12
  211. package/dist/atoms/index.js +0 -9
  212. package/dist/atoms/index.js.map +0 -1
  213. package/dist/atoms/index.mjs +0 -9
  214. package/dist/chunk-2K3Q24UF.js.map +0 -1
  215. package/dist/chunk-3FBCC4G3.js +0 -8
  216. package/dist/chunk-3FBCC4G3.js.map +0 -1
  217. package/dist/chunk-3UELCPIN.js +0 -46
  218. package/dist/chunk-3UELCPIN.js.map +0 -1
  219. package/dist/chunk-5IET37O4.js +0 -4210
  220. package/dist/chunk-5IET37O4.js.map +0 -1
  221. package/dist/chunk-AYHKQWHH.js +0 -68
  222. package/dist/chunk-AYHKQWHH.js.map +0 -1
  223. package/dist/chunk-DEYKTLA3.js +0 -1131
  224. package/dist/chunk-DEYKTLA3.js.map +0 -1
  225. package/dist/chunk-E2HRC2OG.js.map +0 -1
  226. package/dist/chunk-EFJEWLRL.js.map +0 -1
  227. package/dist/chunk-FMBQZAIP.mjs +0 -490
  228. package/dist/chunk-FMBQZAIP.mjs.map +0 -1
  229. package/dist/chunk-HR4H2FP7.mjs.map +0 -1
  230. package/dist/chunk-HTLEKZND.mjs.map +0 -1
  231. package/dist/chunk-JGFWIT2E.mjs +0 -1131
  232. package/dist/chunk-JGFWIT2E.mjs.map +0 -1
  233. package/dist/chunk-P2F54I7Q.mjs +0 -4210
  234. package/dist/chunk-P2F54I7Q.mjs.map +0 -1
  235. package/dist/chunk-PO5Q3H5I.js +0 -1375
  236. package/dist/chunk-PO5Q3H5I.js.map +0 -1
  237. package/dist/chunk-Q2N6SQYW.mjs +0 -8
  238. package/dist/chunk-Q2N6SQYW.mjs.map +0 -1
  239. package/dist/chunk-Q4FXESVT.js +0 -490
  240. package/dist/chunk-Q4FXESVT.js.map +0 -1
  241. package/dist/chunk-R2ONK22M.mjs +0 -7985
  242. package/dist/chunk-R2ONK22M.mjs.map +0 -1
  243. package/dist/chunk-SM63SZCP.mjs +0 -68
  244. package/dist/chunk-SM63SZCP.mjs.map +0 -1
  245. package/dist/chunk-SZZYEG3P.mjs +0 -46
  246. package/dist/chunk-SZZYEG3P.mjs.map +0 -1
  247. package/dist/chunk-YF5XQZDR.mjs.map +0 -1
  248. package/dist/config-BmnK65TD.d.mts +0 -35
  249. package/dist/config-BmnK65TD.d.ts +0 -35
  250. package/dist/config-DQeAo9Kf.d.mts +0 -49
  251. package/dist/config-DQeAo9Kf.d.ts +0 -49
  252. package/dist/content.fields-cHPdM8GJ.d.mts +0 -27
  253. package/dist/content.fields-cHPdM8GJ.d.ts +0 -27
  254. package/dist/d3.link.interface-ClC4Irqp.d.mts +0 -21
  255. package/dist/d3.link.interface-ClC4Irqp.d.ts +0 -21
  256. package/dist/features/index.d.mts +0 -476
  257. package/dist/features/index.d.ts +0 -476
  258. package/dist/features/index.js +0 -87
  259. package/dist/features/index.js.map +0 -1
  260. package/dist/features/index.mjs +0 -87
  261. package/dist/hooks/index.d.mts +0 -69
  262. package/dist/hooks/index.d.ts +0 -69
  263. package/dist/hooks/index.js +0 -56
  264. package/dist/hooks/index.js.map +0 -1
  265. package/dist/hooks/index.mjs +0 -56
  266. package/dist/hooks/index.mjs.map +0 -1
  267. package/dist/interfaces/index.d.mts +0 -4
  268. package/dist/interfaces/index.d.ts +0 -4
  269. package/dist/interfaces/index.js +0 -2
  270. package/dist/interfaces/index.js.map +0 -1
  271. package/dist/interfaces/index.mjs +0 -2
  272. package/dist/interfaces/index.mjs.map +0 -1
  273. package/dist/notification.interface-BBgMUdLR.d.mts +0 -14
  274. package/dist/notification.interface-gyvT-Z2F.d.ts +0 -14
  275. package/dist/permissions/index.d.mts +0 -41
  276. package/dist/permissions/index.d.ts +0 -41
  277. package/dist/permissions/index.js +0 -14
  278. package/dist/permissions/index.js.map +0 -1
  279. package/dist/permissions/index.mjs +0 -14
  280. package/dist/permissions/index.mjs.map +0 -1
  281. package/dist/request-7FE3LJLV.mjs +0 -9
  282. package/dist/request-7FE3LJLV.mjs.map +0 -1
  283. package/dist/request-QFS7NEIE.js +0 -9
  284. package/dist/request-QFS7NEIE.js.map +0 -1
  285. package/dist/roles/index.d.mts +0 -39
  286. package/dist/roles/index.d.ts +0 -39
  287. package/dist/roles/index.js +0 -18
  288. package/dist/roles/index.js.map +0 -1
  289. package/dist/roles/index.mjs +0 -18
  290. package/dist/roles/index.mjs.map +0 -1
  291. package/dist/shadcnui/index.d.mts +0 -698
  292. package/dist/shadcnui/index.d.ts +0 -698
  293. package/dist/shadcnui/index.js +0 -468
  294. package/dist/shadcnui/index.js.map +0 -1
  295. package/dist/shadcnui/index.mjs +0 -467
  296. package/dist/shadcnui/index.mjs.map +0 -1
  297. package/dist/token-IJSPOMW6.mjs +0 -9
  298. package/dist/token-IJSPOMW6.mjs.map +0 -1
  299. package/dist/token-UYE7CV6X.js +0 -9
  300. package/dist/token-UYE7CV6X.js.map +0 -1
  301. package/dist/types-B2QRyqyK.d.ts +0 -39
  302. package/dist/types-CgvNmxTd.d.mts +0 -39
  303. package/dist/types-t2PyXhDu.d.mts +0 -116
  304. package/dist/types-t2PyXhDu.d.ts +0 -116
  305. package/dist/user.interface-CAsTIbuQ.d.mts +0 -85
  306. package/dist/user.interface-CbWqMaaU.d.ts +0 -85
  307. package/dist/utils/index.d.mts +0 -224
  308. package/dist/utils/index.d.ts +0 -224
  309. package/dist/utils/index.js +0 -46
  310. package/dist/utils/index.js.map +0 -1
  311. package/dist/utils/index.mjs +0 -46
  312. package/dist/utils/index.mjs.map +0 -1
  313. /package/dist/{JsonApiRequest-6UR7DIAR.mjs.map → JsonApiRequest-VCCRO732.mjs.map} +0 -0
  314. /package/dist/{chunk-IKBA4AHN.mjs.map → chunk-F4Y3GZG4.mjs.map} +0 -0
  315. /package/dist/{chunk-HAG77QBV.mjs.map → chunk-K4W5QXL5.mjs.map} +0 -0
  316. /package/dist/{atoms/index.mjs.map → request-XABCMU25.mjs.map} +0 -0
  317. /package/dist/{features/index.mjs.map → token-EOK3N45S.mjs.map} +0 -0
@@ -1,69 +0,0 @@
1
- import { U as UseTableStructureHook, a as UseTableStructureHookParams, b as UseTableStructureHookReturn } from '../types-CgvNmxTd.mjs';
2
- export { T as TableContent, c as TableStructureGeneratorInterface } from '../types-CgvNmxTd.mjs';
3
- import { M as ModuleWithPermissions, b as PageUrl } from '../types-t2PyXhDu.mjs';
4
- export { D as DataListRetriever, u as useDataListRetriever } from '../useDataListRetriever-futhx3OP.mjs';
5
- export { I as I18nConfig, e as I18nRouter, L as LinkComponent, U as UseDateFnsLocaleHook, f as UseLocaleHook, h as UseRouterHook, i as UseTranslationsHook, c as configureI18n, g as getI18nLink, u as useI18nDateFnsLocale, a as useI18nLocale, b as useI18nRouter, d as useI18nTranslations } from '../config-BmnK65TD.mjs';
6
- import * as React from 'react';
7
- import { a as D3Node, D as D3Link } from '../d3.link.interface-ClC4Irqp.mjs';
8
- export { u as useSocket } from '../useSocket-Cn7fB_B1.mjs';
9
- import '@tanstack/react-table';
10
- import 'lucide-react';
11
- import 'd3';
12
- import '../notification.interface-BBgMUdLR.mjs';
13
- import '../ApiDataInterface-DPP8s46n.mjs';
14
- import '../user.interface-CAsTIbuQ.mjs';
15
-
16
- declare class TableGeneratorRegistry {
17
- private static instance;
18
- private registry;
19
- private constructor();
20
- static getInstance(): TableGeneratorRegistry;
21
- register<T, U>(type: string, hook: UseTableStructureHook<T, U>): void;
22
- get<T, U>(type: string, params: UseTableStructureHookParams<T, U>): UseTableStructureHookReturn<T>;
23
- isRegistered(type: string): boolean;
24
- getRegisteredTypes(): string[];
25
- unregister(type: string): boolean;
26
- clear(): void;
27
- }
28
- declare const tableGeneratorRegistry: TableGeneratorRegistry;
29
-
30
- declare function useUrlRewriter(): (params: {
31
- page: ModuleWithPermissions | string;
32
- id?: string;
33
- childPage?: string;
34
- }) => void;
35
-
36
- declare function useDebounce<T extends (...args: any[]) => any>(callback: T, delay: number): T & {
37
- cancel: () => void;
38
- };
39
-
40
- declare function usePageUrlGenerator(): (params: {
41
- page?: PageUrl | string;
42
- id?: string;
43
- childPage?: PageUrl | string;
44
- childId?: string;
45
- additionalParameters?: {
46
- [key: string]: string | string[] | undefined;
47
- };
48
- language?: string;
49
- }) => string;
50
-
51
- declare function registerTableGenerator<T, U>(type: string | ModuleWithPermissions, hook: UseTableStructureHook<T, U>): void;
52
- declare function useTableGenerator<T, U>(type: ModuleWithPermissions, params: UseTableStructureHookParams<T, U>): UseTableStructureHookReturn<T>;
53
-
54
- /**
55
- * Custom hook for D3 graph visualization with larger circles and more interactive features
56
- */
57
- declare function useCustomD3Graph(nodes: D3Node[], links: D3Link[], onNodeClick: (nodeId: string) => void, visibleNodeIds?: Set<string>, loadingNodeIds?: Set<string>, containerKey?: string | number): {
58
- svgRef: React.RefObject<SVGSVGElement | null>;
59
- zoomIn: () => void;
60
- zoomOut: () => void;
61
- zoomToNode: (nodeId: string, childIds?: string[]) => void;
62
- zoomToFitAll: () => void;
63
- };
64
-
65
- declare function useNotificationSync(): void;
66
-
67
- declare function usePageTracker(): void;
68
-
69
- export { TableGeneratorRegistry, UseTableStructureHook, UseTableStructureHookParams, UseTableStructureHookReturn, registerTableGenerator, tableGeneratorRegistry, useCustomD3Graph, useDebounce, useNotificationSync, usePageTracker, usePageUrlGenerator, useTableGenerator, useUrlRewriter };
@@ -1,69 +0,0 @@
1
- import { U as UseTableStructureHook, a as UseTableStructureHookParams, b as UseTableStructureHookReturn } from '../types-B2QRyqyK.js';
2
- export { T as TableContent, c as TableStructureGeneratorInterface } from '../types-B2QRyqyK.js';
3
- import { M as ModuleWithPermissions, b as PageUrl } from '../types-t2PyXhDu.js';
4
- export { D as DataListRetriever, u as useDataListRetriever } from '../useDataListRetriever-futhx3OP.js';
5
- export { I as I18nConfig, e as I18nRouter, L as LinkComponent, U as UseDateFnsLocaleHook, f as UseLocaleHook, h as UseRouterHook, i as UseTranslationsHook, c as configureI18n, g as getI18nLink, u as useI18nDateFnsLocale, a as useI18nLocale, b as useI18nRouter, d as useI18nTranslations } from '../config-BmnK65TD.js';
6
- import * as React from 'react';
7
- import { a as D3Node, D as D3Link } from '../d3.link.interface-ClC4Irqp.js';
8
- export { u as useSocket } from '../useSocket-DzMKRKCA.js';
9
- import '@tanstack/react-table';
10
- import 'lucide-react';
11
- import 'd3';
12
- import '../notification.interface-gyvT-Z2F.js';
13
- import '../ApiDataInterface-DPP8s46n.js';
14
- import '../user.interface-CbWqMaaU.js';
15
-
16
- declare class TableGeneratorRegistry {
17
- private static instance;
18
- private registry;
19
- private constructor();
20
- static getInstance(): TableGeneratorRegistry;
21
- register<T, U>(type: string, hook: UseTableStructureHook<T, U>): void;
22
- get<T, U>(type: string, params: UseTableStructureHookParams<T, U>): UseTableStructureHookReturn<T>;
23
- isRegistered(type: string): boolean;
24
- getRegisteredTypes(): string[];
25
- unregister(type: string): boolean;
26
- clear(): void;
27
- }
28
- declare const tableGeneratorRegistry: TableGeneratorRegistry;
29
-
30
- declare function useUrlRewriter(): (params: {
31
- page: ModuleWithPermissions | string;
32
- id?: string;
33
- childPage?: string;
34
- }) => void;
35
-
36
- declare function useDebounce<T extends (...args: any[]) => any>(callback: T, delay: number): T & {
37
- cancel: () => void;
38
- };
39
-
40
- declare function usePageUrlGenerator(): (params: {
41
- page?: PageUrl | string;
42
- id?: string;
43
- childPage?: PageUrl | string;
44
- childId?: string;
45
- additionalParameters?: {
46
- [key: string]: string | string[] | undefined;
47
- };
48
- language?: string;
49
- }) => string;
50
-
51
- declare function registerTableGenerator<T, U>(type: string | ModuleWithPermissions, hook: UseTableStructureHook<T, U>): void;
52
- declare function useTableGenerator<T, U>(type: ModuleWithPermissions, params: UseTableStructureHookParams<T, U>): UseTableStructureHookReturn<T>;
53
-
54
- /**
55
- * Custom hook for D3 graph visualization with larger circles and more interactive features
56
- */
57
- declare function useCustomD3Graph(nodes: D3Node[], links: D3Link[], onNodeClick: (nodeId: string) => void, visibleNodeIds?: Set<string>, loadingNodeIds?: Set<string>, containerKey?: string | number): {
58
- svgRef: React.RefObject<SVGSVGElement | null>;
59
- zoomIn: () => void;
60
- zoomOut: () => void;
61
- zoomToNode: (nodeId: string, childIds?: string[]) => void;
62
- zoomToFitAll: () => void;
63
- };
64
-
65
- declare function useNotificationSync(): void;
66
-
67
- declare function usePageTracker(): void;
68
-
69
- export { TableGeneratorRegistry, UseTableStructureHook, UseTableStructureHookParams, UseTableStructureHookReturn, registerTableGenerator, tableGeneratorRegistry, useCustomD3Graph, useDebounce, useNotificationSync, usePageTracker, usePageUrlGenerator, useTableGenerator, useUrlRewriter };
@@ -1,56 +0,0 @@
1
- "use client";
2
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
- var _chunkE2HRC2OGjs = require('../chunk-E2HRC2OG.js');
16
- require('../chunk-IBS6NI7D.js');
17
- require('../chunk-5IET37O4.js');
18
- require('../chunk-DEYKTLA3.js');
19
- require('../chunk-PO5Q3H5I.js');
20
- require('../chunk-LXKSUWAV.js');
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
- var _chunkAYHKQWHHjs = require('../chunk-AYHKQWHH.js');
29
- require('../chunk-PMXG5WBC.js');
30
- require('../chunk-3UELCPIN.js');
31
- require('../chunk-3FBCC4G3.js');
32
- require('../chunk-Q4FXESVT.js');
33
- require('../chunk-AGAJMJ4T.js');
34
- require('../chunk-32HM6MDD.js');
35
- require('../chunk-7QVYU63E.js');
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
-
44
-
45
-
46
-
47
-
48
-
49
-
50
-
51
-
52
-
53
-
54
-
55
- exports.TableGeneratorRegistry = _chunkE2HRC2OGjs.TableGeneratorRegistry; exports.configureI18n = _chunkAYHKQWHHjs.configureI18n; exports.getI18nLink = _chunkAYHKQWHHjs.getI18nLink; exports.registerTableGenerator = _chunkE2HRC2OGjs.registerTableGenerator; exports.tableGeneratorRegistry = _chunkE2HRC2OGjs.tableGeneratorRegistry; exports.useCustomD3Graph = _chunkE2HRC2OGjs.useCustomD3Graph; exports.useDataListRetriever = _chunkE2HRC2OGjs.useDataListRetriever; exports.useDebounce = _chunkE2HRC2OGjs.useDebounce; exports.useI18nDateFnsLocale = _chunkAYHKQWHHjs.useI18nDateFnsLocale; exports.useI18nLocale = _chunkAYHKQWHHjs.useI18nLocale; exports.useI18nRouter = _chunkAYHKQWHHjs.useI18nRouter; exports.useI18nTranslations = _chunkAYHKQWHHjs.useI18nTranslations; exports.useNotificationSync = _chunkE2HRC2OGjs.useNotificationSync; exports.usePageTracker = _chunkE2HRC2OGjs.usePageTracker; exports.usePageUrlGenerator = _chunkE2HRC2OGjs.usePageUrlGenerator; exports.useSocket = _chunkE2HRC2OGjs.useSocket; exports.useTableGenerator = _chunkE2HRC2OGjs.useTableGenerator; exports.useUrlRewriter = _chunkE2HRC2OGjs.useUrlRewriter;
56
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/hooks/index.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,umCAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/hooks/index.js"}
@@ -1,56 +0,0 @@
1
- "use client";
2
- import {
3
- TableGeneratorRegistry,
4
- registerTableGenerator,
5
- tableGeneratorRegistry,
6
- useCustomD3Graph,
7
- useDataListRetriever,
8
- useDebounce,
9
- useNotificationSync,
10
- usePageTracker,
11
- usePageUrlGenerator,
12
- useSocket,
13
- useTableGenerator,
14
- useUrlRewriter
15
- } from "../chunk-R2ONK22M.mjs";
16
- import "../chunk-C7C7VY4F.mjs";
17
- import "../chunk-P2F54I7Q.mjs";
18
- import "../chunk-JGFWIT2E.mjs";
19
- import "../chunk-HTLEKZND.mjs";
20
- import "../chunk-AUXK7QSA.mjs";
21
- import {
22
- configureI18n,
23
- getI18nLink,
24
- useI18nDateFnsLocale,
25
- useI18nLocale,
26
- useI18nRouter,
27
- useI18nTranslations
28
- } from "../chunk-SM63SZCP.mjs";
29
- import "../chunk-IKBA4AHN.mjs";
30
- import "../chunk-SZZYEG3P.mjs";
31
- import "../chunk-Q2N6SQYW.mjs";
32
- import "../chunk-FMBQZAIP.mjs";
33
- import "../chunk-RBIVEH2K.mjs";
34
- import "../chunk-HAG77QBV.mjs";
35
- import "../chunk-PAWJFY3S.mjs";
36
- export {
37
- TableGeneratorRegistry,
38
- configureI18n,
39
- getI18nLink,
40
- registerTableGenerator,
41
- tableGeneratorRegistry,
42
- useCustomD3Graph,
43
- useDataListRetriever,
44
- useDebounce,
45
- useI18nDateFnsLocale,
46
- useI18nLocale,
47
- useI18nRouter,
48
- useI18nTranslations,
49
- useNotificationSync,
50
- usePageTracker,
51
- usePageUrlGenerator,
52
- useSocket,
53
- useTableGenerator,
54
- useUrlRewriter
55
- };
56
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,4 +0,0 @@
1
- export { B as BreadcrumbItemData } from '../breadcrumb.item.data.interface-CgB4_1EE.mjs';
2
- export { D as D3Link, a as D3Node } from '../d3.link.interface-ClC4Irqp.mjs';
3
- import 'd3';
4
- import 'lucide-react';
@@ -1,4 +0,0 @@
1
- export { B as BreadcrumbItemData } from '../breadcrumb.item.data.interface-CgB4_1EE.js';
2
- export { D as D3Link, a as D3Node } from '../d3.link.interface-ClC4Irqp.js';
3
- import 'd3';
4
- import 'lucide-react';
@@ -1,2 +0,0 @@
1
- "use client";
2
- "use strict";//# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/interfaces/index.js"],"names":[],"mappings":"AAAA","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/interfaces/index.js"}
@@ -1,2 +0,0 @@
1
- "use client";
2
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,14 +0,0 @@
1
- import { A as ApiDataInterface } from './ApiDataInterface-DPP8s46n.mjs';
2
- import { U as UserInterface } from './user.interface-CAsTIbuQ.mjs';
3
-
4
- type NotificationInput = {
5
- id: string;
6
- isRead: boolean;
7
- };
8
- interface NotificationInterface extends ApiDataInterface {
9
- get notificationType(): string;
10
- get isRead(): boolean;
11
- get actor(): UserInterface | undefined;
12
- }
13
-
14
- export type { NotificationInterface as N, NotificationInput as a };
@@ -1,14 +0,0 @@
1
- import { A as ApiDataInterface } from './ApiDataInterface-DPP8s46n.js';
2
- import { U as UserInterface } from './user.interface-CbWqMaaU.js';
3
-
4
- type NotificationInput = {
5
- id: string;
6
- isRead: boolean;
7
- };
8
- interface NotificationInterface extends ApiDataInterface {
9
- get notificationType(): string;
10
- get isRead(): boolean;
11
- get actor(): UserInterface | undefined;
12
- }
13
-
14
- export type { NotificationInterface as N, NotificationInput as a };
@@ -1,41 +0,0 @@
1
- import { h as PermissionUser, M as ModuleWithPermissions, a as Action, g as PermissionModule } from '../types-t2PyXhDu.mjs';
2
- export { e as ModuleDefinition, i as ModuleFactory, d as ModulePermissionDefinition, b as PageUrl, P as PermissionCheck, f as PermissionConfig } from '../types-t2PyXhDu.mjs';
3
- import 'lucide-react';
4
-
5
- /**
6
- * Check if a user has permission to perform an action on a module.
7
- *
8
- * @param module - The module to check permissions for
9
- * @param action - The action to check (read, create, update, delete)
10
- * @param user - The user with their modules and permissions
11
- * @param data - Optional data object for path-based permission checks
12
- */
13
- declare function checkPermissions<T extends PermissionUser>(params: {
14
- module: ModuleWithPermissions;
15
- action: Action;
16
- user: T;
17
- data?: any;
18
- }): boolean;
19
- /**
20
- * Check permissions from server context where user object is not fully available.
21
- *
22
- * @param module - The module to check permissions for
23
- * @param action - The action to check
24
- * @param userId - The user's ID
25
- * @param selectedModule - The selected module with its permissions
26
- * @param data - Optional data object for path-based permission checks
27
- */
28
- declare function checkPermissionsFromServer(params: {
29
- module: ModuleWithPermissions;
30
- action: Action;
31
- userId: string;
32
- selectedModule?: PermissionModule;
33
- data?: any;
34
- }): boolean;
35
- /**
36
- * Traverse an object path and check if the value matches the user ID.
37
- * Handles nested objects, arrays, and various data structures.
38
- */
39
- declare function getValueFromPath(obj: any, path: string, userId: string): any;
40
-
41
- export { Action, ModuleWithPermissions, PermissionModule, PermissionUser, checkPermissions, checkPermissionsFromServer, getValueFromPath };
@@ -1,41 +0,0 @@
1
- import { h as PermissionUser, M as ModuleWithPermissions, a as Action, g as PermissionModule } from '../types-t2PyXhDu.js';
2
- export { e as ModuleDefinition, i as ModuleFactory, d as ModulePermissionDefinition, b as PageUrl, P as PermissionCheck, f as PermissionConfig } from '../types-t2PyXhDu.js';
3
- import 'lucide-react';
4
-
5
- /**
6
- * Check if a user has permission to perform an action on a module.
7
- *
8
- * @param module - The module to check permissions for
9
- * @param action - The action to check (read, create, update, delete)
10
- * @param user - The user with their modules and permissions
11
- * @param data - Optional data object for path-based permission checks
12
- */
13
- declare function checkPermissions<T extends PermissionUser>(params: {
14
- module: ModuleWithPermissions;
15
- action: Action;
16
- user: T;
17
- data?: any;
18
- }): boolean;
19
- /**
20
- * Check permissions from server context where user object is not fully available.
21
- *
22
- * @param module - The module to check permissions for
23
- * @param action - The action to check
24
- * @param userId - The user's ID
25
- * @param selectedModule - The selected module with its permissions
26
- * @param data - Optional data object for path-based permission checks
27
- */
28
- declare function checkPermissionsFromServer(params: {
29
- module: ModuleWithPermissions;
30
- action: Action;
31
- userId: string;
32
- selectedModule?: PermissionModule;
33
- data?: any;
34
- }): boolean;
35
- /**
36
- * Traverse an object path and check if the value matches the user ID.
37
- * Handles nested objects, arrays, and various data structures.
38
- */
39
- declare function getValueFromPath(obj: any, path: string, userId: string): any;
40
-
41
- export { Action, ModuleWithPermissions, PermissionModule, PermissionUser, checkPermissions, checkPermissionsFromServer, getValueFromPath };
@@ -1,14 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
-
5
-
6
- var _chunk32HM6MDDjs = require('../chunk-32HM6MDD.js');
7
- require('../chunk-7QVYU63E.js');
8
-
9
-
10
-
11
-
12
-
13
- exports.Action = _chunk32HM6MDDjs.Action; exports.checkPermissions = _chunk32HM6MDDjs.checkPermissions; exports.checkPermissionsFromServer = _chunk32HM6MDDjs.checkPermissionsFromServer; exports.getValueFromPath = _chunk32HM6MDDjs.getValueFromPath;
14
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/permissions/index.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACF,uPAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/permissions/index.js"}
@@ -1,14 +0,0 @@
1
- import {
2
- Action,
3
- checkPermissions,
4
- checkPermissionsFromServer,
5
- getValueFromPath
6
- } from "../chunk-HAG77QBV.mjs";
7
- import "../chunk-PAWJFY3S.mjs";
8
- export {
9
- Action,
10
- checkPermissions,
11
- checkPermissionsFromServer,
12
- getValueFromPath
13
- };
14
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,9 +0,0 @@
1
- "use server";
2
- import {
3
- serverRequest
4
- } from "./chunk-HR4H2FP7.mjs";
5
- import "./chunk-PAWJFY3S.mjs";
6
- export {
7
- serverRequest
8
- };
9
- //# sourceMappingURL=request-7FE3LJLV.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,9 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use server";
2
-
3
-
4
- var _chunk2K3Q24UFjs = require('./chunk-2K3Q24UF.js');
5
- require('./chunk-7QVYU63E.js');
6
-
7
-
8
- exports.serverRequest = _chunk2K3Q24UFjs.serverRequest;
9
- //# sourceMappingURL=request-QFS7NEIE.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/request-QFS7NEIE.js"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACE;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACF,uDAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/request-QFS7NEIE.js"}
@@ -1,39 +0,0 @@
1
- /**
2
- * Role ID configuration interface
3
- * Apps provide their role IDs via configureRoles()
4
- */
5
- interface RoleIdConfig {
6
- Administrator: string;
7
- CompanyAdministrator: string;
8
- [key: string]: string;
9
- }
10
- /**
11
- * Configure role IDs for the library
12
- * Call this at app startup to provide role ID constants
13
- *
14
- * @example
15
- * ```typescript
16
- * import { configureRoles } from "@carlonicora/nextjs-jsonapi";
17
- * import { RoleId } from "@phlow/shared";
18
- *
19
- * configureRoles(RoleId);
20
- * ```
21
- */
22
- declare function configureRoles(roleId: RoleIdConfig): void;
23
- declare function configureDiscord(params: {
24
- useDiscord: boolean;
25
- useInternalAuth: boolean;
26
- }): void;
27
- /**
28
- * Get configured role IDs
29
- * @throws Error if roles not configured
30
- */
31
- declare function getRoleId(): RoleIdConfig;
32
- /**
33
- * Check if roles have been configured
34
- */
35
- declare function isRolesConfigured(): boolean;
36
- declare function isDiscordConfigured(): boolean;
37
- declare function isInternalAuthConfigured(): boolean;
38
-
39
- export { type RoleIdConfig, configureDiscord, configureRoles, getRoleId, isDiscordConfigured, isInternalAuthConfigured, isRolesConfigured };
@@ -1,39 +0,0 @@
1
- /**
2
- * Role ID configuration interface
3
- * Apps provide their role IDs via configureRoles()
4
- */
5
- interface RoleIdConfig {
6
- Administrator: string;
7
- CompanyAdministrator: string;
8
- [key: string]: string;
9
- }
10
- /**
11
- * Configure role IDs for the library
12
- * Call this at app startup to provide role ID constants
13
- *
14
- * @example
15
- * ```typescript
16
- * import { configureRoles } from "@carlonicora/nextjs-jsonapi";
17
- * import { RoleId } from "@phlow/shared";
18
- *
19
- * configureRoles(RoleId);
20
- * ```
21
- */
22
- declare function configureRoles(roleId: RoleIdConfig): void;
23
- declare function configureDiscord(params: {
24
- useDiscord: boolean;
25
- useInternalAuth: boolean;
26
- }): void;
27
- /**
28
- * Get configured role IDs
29
- * @throws Error if roles not configured
30
- */
31
- declare function getRoleId(): RoleIdConfig;
32
- /**
33
- * Check if roles have been configured
34
- */
35
- declare function isRolesConfigured(): boolean;
36
- declare function isDiscordConfigured(): boolean;
37
- declare function isInternalAuthConfigured(): boolean;
38
-
39
- export { type RoleIdConfig, configureDiscord, configureRoles, getRoleId, isDiscordConfigured, isInternalAuthConfigured, isRolesConfigured };
@@ -1,18 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
-
5
-
6
-
7
-
8
- var _chunk3UELCPINjs = require('../chunk-3UELCPIN.js');
9
- require('../chunk-7QVYU63E.js');
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
- exports.configureDiscord = _chunk3UELCPINjs.configureDiscord; exports.configureRoles = _chunk3UELCPINjs.configureRoles; exports.getRoleId = _chunk3UELCPINjs.getRoleId; exports.isDiscordConfigured = _chunk3UELCPINjs.isDiscordConfigured; exports.isInternalAuthConfigured = _chunk3UELCPINjs.isInternalAuthConfigured; exports.isRolesConfigured = _chunk3UELCPINjs.isRolesConfigured;
18
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/roles/index.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACF,yXAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/roles/index.js"}
@@ -1,18 +0,0 @@
1
- import {
2
- configureDiscord,
3
- configureRoles,
4
- getRoleId,
5
- isDiscordConfigured,
6
- isInternalAuthConfigured,
7
- isRolesConfigured
8
- } from "../chunk-SZZYEG3P.mjs";
9
- import "../chunk-PAWJFY3S.mjs";
10
- export {
11
- configureDiscord,
12
- configureRoles,
13
- getRoleId,
14
- isDiscordConfigured,
15
- isInternalAuthConfigured,
16
- isRolesConfigured
17
- };
18
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}