@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,476 +0,0 @@
1
- import { i as ModuleFactory, M as ModuleWithPermissions } from '../types-t2PyXhDu.js';
2
- export { T as TokenHandler, a as TokenParams, c as configureAuth } from '../config-DQeAo9Kf.js';
3
- import { J as JsonApiHydratedDataInterface, A as ApiDataInterface } from '../ApiDataInterface-DPP8s46n.js';
4
- import { A as AbstractApiData, a as AbstractService, N as NextRef, P as PreviousRef } from '../AbstractService-wLid8dB0.js';
5
- import { M as ModuleInterface, F as FeatureInterface, C as CompanyInterface, a as CompanyInput, R as RoleInterface, b as RoleInput, U as UserInterface, c as UserInput } from '../user.interface-CbWqMaaU.js';
6
- export { A as AuthComponent } from '../AuthComponent-hxOPs9o8.js';
7
- import { C as ContentInterface, a as ContentInput } from '../content.interface-C_PGZMuy.js';
8
- export { C as ContentFields, R as RoleFields, U as UserFields } from '../content.fields-cHPdM8GJ.js';
9
- import { N as NotificationInterface, a as NotificationInput } from '../notification.interface-gyvT-Z2F.js';
10
- import 'lucide-react';
11
-
12
- interface SearchResultInterface {
13
- get searchResult(): string;
14
- }
15
-
16
- declare const AuthorModule: (factory: ModuleFactory) => ModuleWithPermissions;
17
-
18
- declare const CompanyModule: (factory: ModuleFactory) => ModuleWithPermissions;
19
-
20
- declare const FeatureModule: (factory: ModuleFactory) => ModuleWithPermissions;
21
-
22
- declare const ModuleModule: (factory: ModuleFactory) => ModuleWithPermissions;
23
-
24
- declare class Module extends AbstractApiData implements ModuleInterface {
25
- private _name?;
26
- private _isCore?;
27
- private _permissions?;
28
- get name(): string;
29
- get isCore(): boolean;
30
- get permissions(): {
31
- create: boolean | string;
32
- read: boolean | string;
33
- update: boolean | string;
34
- delete: boolean | string;
35
- };
36
- rehydrate(data: JsonApiHydratedDataInterface): this;
37
- }
38
-
39
- declare class Feature extends AbstractApiData implements FeatureInterface {
40
- private _name?;
41
- private _isProduction?;
42
- private _modules;
43
- get name(): string;
44
- get isProduction(): boolean;
45
- get modules(): ModuleInterface[];
46
- rehydrate(data: JsonApiHydratedDataInterface): this;
47
- }
48
-
49
- declare class FeatureService extends AbstractService {
50
- static findMany(params: {
51
- companyId?: string;
52
- search?: string;
53
- next?: NextRef;
54
- }): Promise<FeatureInterface[]>;
55
- }
56
-
57
- declare class Company extends AbstractApiData implements CompanyInterface {
58
- private _name?;
59
- private _logo?;
60
- private _logoUrl?;
61
- private _configurations?;
62
- private _licenseExpirationDate?;
63
- private _features?;
64
- private _modules?;
65
- get name(): string;
66
- get logo(): string | undefined;
67
- get logoUrl(): string | undefined;
68
- get licenseExpirationDate(): Date | undefined;
69
- get features(): FeatureInterface[];
70
- get modules(): ModuleInterface[];
71
- get configurations(): any | undefined;
72
- rehydrate(data: JsonApiHydratedDataInterface): this;
73
- createJsonApi(data: CompanyInput): any;
74
- }
75
-
76
- declare enum CompanyFields {
77
- companyId = "companyId",
78
- name = "name",
79
- createdAt = "createdAt",
80
- updatedAt = "updatedAt"
81
- }
82
-
83
- declare class CompanyService extends AbstractService {
84
- static findOne(params: {
85
- companyId: string;
86
- }): Promise<CompanyInterface>;
87
- static findMany(params: {
88
- search?: string;
89
- next?: NextRef;
90
- }): Promise<CompanyInterface[]>;
91
- static delete(params: {
92
- companyId: string;
93
- }): Promise<void>;
94
- static create(params: CompanyInput): Promise<CompanyInterface>;
95
- static update(params: CompanyInput): Promise<CompanyInterface>;
96
- static updateConfigurations(params: CompanyInput): Promise<CompanyInterface>;
97
- static activateLicense(params: CompanyInput): Promise<CompanyInterface>;
98
- }
99
-
100
- declare class Role extends AbstractApiData implements RoleInterface {
101
- private _name?;
102
- private _description?;
103
- private _isSelectable?;
104
- private _requiredFeature?;
105
- get name(): string;
106
- get description(): string;
107
- get isSelectable(): boolean;
108
- get requiredFeature(): FeatureInterface | undefined;
109
- rehydrate(data: JsonApiHydratedDataInterface): this;
110
- createJsonApi(data: RoleInput): any;
111
- }
112
-
113
- declare class RoleService extends AbstractService {
114
- static findById(params: {
115
- roleId: string;
116
- }): Promise<RoleInterface>;
117
- static findAllRoles(params: {
118
- search?: string;
119
- next?: NextRef;
120
- }): Promise<RoleInterface[]>;
121
- static findAllRolesByUser(params: {
122
- userId: string;
123
- search?: string;
124
- next?: NextRef;
125
- prev?: PreviousRef;
126
- }): Promise<RoleInterface[]>;
127
- static findAllRolesUserNotIn(params: {
128
- userId: string;
129
- search?: string;
130
- next?: NextRef;
131
- prev?: PreviousRef;
132
- }): Promise<RoleInterface[]>;
133
- static addUserToRole(params: {
134
- userId: string;
135
- roleId: string;
136
- }): Promise<void>;
137
- static removeUserFromRole(params: {
138
- userId: string;
139
- roleId: string;
140
- }): Promise<void>;
141
- static create(params: {
142
- roleId: string;
143
- name: string;
144
- description?: string;
145
- }): Promise<RoleInterface>;
146
- static update(params: {
147
- roleId: string;
148
- name: string;
149
- description?: string;
150
- }): Promise<RoleInterface>;
151
- static delete(params: {
152
- roleId: string;
153
- }): Promise<RoleInterface>;
154
- }
155
-
156
- declare const RoleModule: (factory: ModuleFactory) => ModuleWithPermissions;
157
-
158
- declare class User extends AbstractApiData implements UserInterface, SearchResultInterface {
159
- private _name?;
160
- private _email?;
161
- private _title?;
162
- private _bio?;
163
- private _avatar?;
164
- private _avatarUrl?;
165
- private _phone?;
166
- private _rate?;
167
- private _isActivated?;
168
- private _isDeleted?;
169
- private _lastLogin?;
170
- private _relevance?;
171
- private _roles;
172
- private _company?;
173
- private _modules;
174
- get searchResult(): string;
175
- get name(): string;
176
- get email(): string;
177
- get title(): string;
178
- get bio(): string;
179
- get avatar(): string | undefined;
180
- get avatarUrl(): string | undefined;
181
- get phone(): string | undefined;
182
- get rate(): number | undefined;
183
- get relevance(): number | undefined;
184
- get isActivated(): boolean;
185
- get isDeleted(): boolean;
186
- get lastLogin(): Date | undefined;
187
- get roles(): RoleInterface[];
188
- get company(): CompanyInterface | undefined;
189
- get modules(): ModuleInterface[];
190
- rehydrate(data: JsonApiHydratedDataInterface): this;
191
- createJsonApi(data: UserInput): any;
192
- }
193
-
194
- declare class UserService extends AbstractService {
195
- static findFullUser(): Promise<UserInterface>;
196
- static findById(params: {
197
- userId: string;
198
- }): Promise<UserInterface>;
199
- static findByEmail(params: {
200
- email: string;
201
- }): Promise<UserInterface>;
202
- static findMany(params: {
203
- roleId?: string;
204
- search?: string;
205
- fetchAll?: boolean;
206
- includeDeleted?: boolean;
207
- next?: NextRef;
208
- prev?: PreviousRef;
209
- }): Promise<UserInterface[]>;
210
- static findManyByContentIds(params: {
211
- contentIds: string[];
212
- search?: string;
213
- next?: NextRef;
214
- prev?: PreviousRef;
215
- }): Promise<UserInterface[]>;
216
- static findRelevant(params: {
217
- id: string;
218
- next?: NextRef;
219
- prev?: PreviousRef;
220
- }): Promise<UserInterface[]>;
221
- static findManyForAmin(params: {
222
- companyId?: string;
223
- search?: string;
224
- next?: NextRef;
225
- prev?: PreviousRef;
226
- }): Promise<UserInterface[]>;
227
- static findAllUsers(params: {
228
- companyId: string;
229
- search?: string;
230
- limitToRoles?: string[];
231
- isDeleted?: boolean;
232
- next?: NextRef;
233
- prev?: PreviousRef;
234
- }): Promise<UserInterface[]>;
235
- static findAllUsersByRole(params: {
236
- roleId: string;
237
- search?: string;
238
- next?: NextRef;
239
- prev?: PreviousRef;
240
- }): Promise<UserInterface[]>;
241
- static findAllUsersNotInRole(params: {
242
- roleId: string;
243
- search?: string;
244
- next?: NextRef;
245
- prev?: PreviousRef;
246
- }): Promise<UserInterface[]>;
247
- static create(params: UserInput): Promise<UserInterface>;
248
- static reactivate(params: {
249
- userId: string;
250
- }): Promise<UserInterface>;
251
- static sendInvitation(params: {
252
- userId: string;
253
- companyId?: string;
254
- }): Promise<void>;
255
- static update(params: UserInput): Promise<UserInterface>;
256
- static patchRate(params: UserInput): Promise<UserInterface>;
257
- static delete(params: {
258
- userId: string;
259
- companyId: string;
260
- }): Promise<void>;
261
- }
262
-
263
- declare const UserModule: (factory: ModuleFactory) => ModuleWithPermissions;
264
-
265
- declare class Content extends AbstractApiData implements ContentInterface, SearchResultInterface {
266
- private _contentType?;
267
- private _name?;
268
- private _abstract?;
269
- private _tldr?;
270
- private _aiStatus?;
271
- private _relevance?;
272
- private _author?;
273
- private _editors?;
274
- get searchResult(): string;
275
- get contentType(): string | undefined;
276
- get name(): string;
277
- get abstract(): string | undefined;
278
- get tldr(): string | undefined;
279
- get aiStatus(): string;
280
- get relevance(): number | undefined;
281
- get author(): UserInterface;
282
- get editors(): UserInterface[];
283
- rehydrate(data: JsonApiHydratedDataInterface): this;
284
- protected addContentInput(response: any, data: ContentInput): void;
285
- }
286
-
287
- declare class ContentService extends AbstractService {
288
- static findMany(params: {
289
- contentIds?: string[];
290
- search?: string;
291
- fetchAll?: boolean;
292
- next?: NextRef;
293
- prev?: PreviousRef;
294
- }): Promise<ContentInterface[]>;
295
- static findRelevant(params: {
296
- id: string;
297
- next?: NextRef;
298
- prev?: PreviousRef;
299
- }): Promise<ContentInterface[]>;
300
- static findManyByAuthor(params: {
301
- userId: string;
302
- search?: string;
303
- fetchAll?: boolean;
304
- next?: NextRef;
305
- prev?: PreviousRef;
306
- }): Promise<ContentInterface[]>;
307
- }
308
-
309
- declare const AuthModule: (factory: ModuleFactory) => ModuleWithPermissions;
310
-
311
- type AuthInput = {
312
- id?: string;
313
- email?: string | undefined | null;
314
- password?: string | undefined;
315
- name?: string;
316
- companyName?: string;
317
- partitaIva?: string;
318
- codiceFiscale?: string;
319
- };
320
- type AuthQuery = {
321
- userId?: string;
322
- tokenCode?: string;
323
- refreshToken?: string;
324
- login?: boolean;
325
- forgot?: boolean;
326
- code?: string;
327
- activationCode?: string;
328
- checkUsername?: string;
329
- };
330
- interface AuthInterface extends ApiDataInterface {
331
- get token(): string;
332
- get refreshToken(): string;
333
- get user(): UserInterface;
334
- }
335
-
336
- declare class Auth extends AbstractApiData implements AuthInterface {
337
- private _token?;
338
- private _refreshToken?;
339
- private _user?;
340
- get token(): string;
341
- get refreshToken(): string;
342
- get user(): UserInterface;
343
- rehydrate(data: JsonApiHydratedDataInterface): this;
344
- createJsonApi(data: AuthInput): any;
345
- }
346
-
347
- declare class AuthService extends AbstractService {
348
- static login(params: {
349
- email: string;
350
- password: string;
351
- language?: string;
352
- }): Promise<UserInterface>;
353
- static logout(params?: {
354
- language?: string;
355
- }): Promise<void>;
356
- static initialiseForgotPassword(params: {
357
- email: string;
358
- language?: string;
359
- }): Promise<void>;
360
- static register(params: AuthInput): Promise<void>;
361
- static activate(params: {
362
- activationCode: string;
363
- }): Promise<void>;
364
- static validateCode(params: {
365
- code: string;
366
- language?: string;
367
- }): Promise<void>;
368
- static resetPassword(params: {
369
- code: string;
370
- password: string;
371
- }): Promise<void>;
372
- static acceptInvitation(params: {
373
- code: string;
374
- password: string;
375
- }): Promise<void>;
376
- static findToken(params: {
377
- tokenCode: string;
378
- }): Promise<AuthInterface>;
379
- static saveToken(params: {
380
- dehydratedAuth: JsonApiHydratedDataInterface;
381
- }): Promise<void>;
382
- }
383
-
384
- declare const ContentModule: (factory: ModuleFactory) => ModuleWithPermissions;
385
-
386
- declare const NotificationModule: (factory: ModuleFactory) => ModuleWithPermissions;
387
-
388
- declare class Notification extends AbstractApiData implements NotificationInterface {
389
- private _notificationType?;
390
- private _isRead?;
391
- private _actor?;
392
- get notificationType(): string;
393
- get isRead(): boolean;
394
- get actor(): UserInterface | undefined;
395
- rehydrate(data: JsonApiHydratedDataInterface): this;
396
- createJsonApi(data: NotificationInput): any;
397
- }
398
-
399
- declare enum NotificationFields {
400
- notificationId = "notificationId",
401
- name = "name",
402
- createdAt = "createdAt",
403
- updatedAt = "updatedAt"
404
- }
405
-
406
- declare class NotificationService extends AbstractService {
407
- static findMany(params: {
408
- isArchived?: boolean;
409
- next?: NextRef;
410
- }): Promise<NotificationInterface[]>;
411
- static markAsRead(params: {
412
- data: any;
413
- }): Promise<void>;
414
- static archive(params: {
415
- id: string;
416
- }): Promise<void>;
417
- }
418
-
419
- declare const PushModule: (factory: ModuleFactory) => ModuleWithPermissions;
420
-
421
- type PushInput = {
422
- key: string;
423
- contentType?: string;
424
- };
425
- interface PushInterface extends ApiDataInterface {
426
- }
427
-
428
- declare class Push extends AbstractApiData implements PushInterface {
429
- createJsonApi(data: PushInput): any;
430
- }
431
-
432
- declare class PushService extends AbstractService {
433
- static register(params: {
434
- data: any;
435
- }): Promise<void>;
436
- }
437
-
438
- declare const S3Module: (factory: ModuleFactory) => ModuleWithPermissions;
439
-
440
- type S3Input = {
441
- key: string;
442
- contentType?: string;
443
- };
444
- interface S3Interface extends ApiDataInterface {
445
- get url(): string;
446
- get headers(): Record<string, string>;
447
- }
448
-
449
- declare class S3 extends AbstractApiData implements S3Interface {
450
- private _url?;
451
- private _storageType?;
452
- private _contentType?;
453
- private _blobType?;
454
- private _acl?;
455
- get url(): string;
456
- get headers(): Record<string, string>;
457
- rehydrate(data: JsonApiHydratedDataInterface): this;
458
- createJsonApi(data: S3Input): any;
459
- }
460
-
461
- declare class S3Service extends AbstractService {
462
- static getPreSignedUrl(params: {
463
- key: string;
464
- contentType: string;
465
- isPublic?: boolean;
466
- }): Promise<S3Interface>;
467
- static getSignedUrl(params: {
468
- key: string;
469
- isPublic?: boolean;
470
- }): Promise<S3Interface>;
471
- static deleteFile(params: {
472
- key: string;
473
- }): Promise<void>;
474
- }
475
-
476
- export { Auth, type AuthInput, type AuthInterface, AuthModule, type AuthQuery, AuthService, AuthorModule, Company, CompanyFields, CompanyInput, CompanyInterface, CompanyModule, CompanyService, Content, ContentInput, ContentInterface, ContentModule, ContentService, Feature, FeatureInterface, FeatureModule, FeatureService, Module, ModuleInterface, ModuleModule, Notification, NotificationFields, NotificationInput, NotificationInterface, NotificationModule, NotificationService, Push, type PushInput, type PushInterface, PushModule, PushService, Role, RoleInput, RoleInterface, RoleModule, RoleService, S3, type S3Input, type S3Interface, S3Module, S3Service, type SearchResultInterface, User, UserInput, UserInterface, UserModule, UserService };
@@ -1,87 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
-
34
-
35
-
36
-
37
-
38
- var _chunkPO5Q3H5Ijs = require('../chunk-PO5Q3H5I.js');
39
-
40
-
41
- var _chunkAYHKQWHHjs = require('../chunk-AYHKQWHH.js');
42
- require('../chunk-PMXG5WBC.js');
43
- require('../chunk-3UELCPIN.js');
44
- require('../chunk-Q4FXESVT.js');
45
- require('../chunk-AGAJMJ4T.js');
46
- require('../chunk-32HM6MDD.js');
47
- require('../chunk-7QVYU63E.js');
48
-
49
-
50
-
51
-
52
-
53
-
54
-
55
-
56
-
57
-
58
-
59
-
60
-
61
-
62
-
63
-
64
-
65
-
66
-
67
-
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
-
77
-
78
-
79
-
80
-
81
-
82
-
83
-
84
-
85
-
86
- exports.Auth = _chunkPO5Q3H5Ijs.Auth; exports.AuthComponent = _chunkPO5Q3H5Ijs.AuthComponent; exports.AuthModule = _chunkPO5Q3H5Ijs.AuthModule; exports.AuthService = _chunkPO5Q3H5Ijs.AuthService; exports.AuthorModule = _chunkPO5Q3H5Ijs.AuthorModule; exports.Company = _chunkPO5Q3H5Ijs.Company; exports.CompanyFields = _chunkPO5Q3H5Ijs.CompanyFields; exports.CompanyModule = _chunkPO5Q3H5Ijs.CompanyModule; exports.CompanyService = _chunkPO5Q3H5Ijs.CompanyService; exports.Content = _chunkPO5Q3H5Ijs.Content; exports.ContentFields = _chunkPO5Q3H5Ijs.ContentFields; exports.ContentModule = _chunkPO5Q3H5Ijs.ContentModule; exports.ContentService = _chunkPO5Q3H5Ijs.ContentService; exports.Feature = _chunkPO5Q3H5Ijs.Feature; exports.FeatureModule = _chunkPO5Q3H5Ijs.FeatureModule; exports.FeatureService = _chunkPO5Q3H5Ijs.FeatureService; exports.Module = _chunkPO5Q3H5Ijs.Module; exports.ModuleModule = _chunkPO5Q3H5Ijs.ModuleModule; exports.Notification = _chunkPO5Q3H5Ijs.Notification; exports.NotificationFields = _chunkPO5Q3H5Ijs.NotificationFields; exports.NotificationModule = _chunkPO5Q3H5Ijs.NotificationModule; exports.NotificationService = _chunkPO5Q3H5Ijs.NotificationService; exports.Push = _chunkPO5Q3H5Ijs.Push; exports.PushModule = _chunkPO5Q3H5Ijs.PushModule; exports.PushService = _chunkPO5Q3H5Ijs.PushService; exports.Role = _chunkPO5Q3H5Ijs.Role; exports.RoleFields = _chunkPO5Q3H5Ijs.RoleFields; exports.RoleModule = _chunkPO5Q3H5Ijs.RoleModule; exports.RoleService = _chunkPO5Q3H5Ijs.RoleService; exports.S3 = _chunkPO5Q3H5Ijs.S3; exports.S3Module = _chunkPO5Q3H5Ijs.S3Module; exports.S3Service = _chunkPO5Q3H5Ijs.S3Service; exports.User = _chunkPO5Q3H5Ijs.User; exports.UserFields = _chunkPO5Q3H5Ijs.UserFields; exports.UserModule = _chunkPO5Q3H5Ijs.UserModule; exports.UserService = _chunkPO5Q3H5Ijs.UserService; exports.configureAuth = _chunkAYHKQWHHjs.configureAuth;
87
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/features/index.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B;AACE;AACF,uDAA6B;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,i2DAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/features/index.js"}
@@ -1,87 +0,0 @@
1
- import {
2
- Auth,
3
- AuthComponent,
4
- AuthModule,
5
- AuthService,
6
- AuthorModule,
7
- Company,
8
- CompanyFields,
9
- CompanyModule,
10
- CompanyService,
11
- Content,
12
- ContentFields,
13
- ContentModule,
14
- ContentService,
15
- Feature,
16
- FeatureModule,
17
- FeatureService,
18
- Module,
19
- ModuleModule,
20
- Notification,
21
- NotificationFields,
22
- NotificationModule,
23
- NotificationService,
24
- Push,
25
- PushModule,
26
- PushService,
27
- Role,
28
- RoleFields,
29
- RoleModule,
30
- RoleService,
31
- S3,
32
- S3Module,
33
- S3Service,
34
- User,
35
- UserFields,
36
- UserModule,
37
- UserService
38
- } from "../chunk-HTLEKZND.mjs";
39
- import {
40
- configureAuth
41
- } from "../chunk-SM63SZCP.mjs";
42
- import "../chunk-IKBA4AHN.mjs";
43
- import "../chunk-SZZYEG3P.mjs";
44
- import "../chunk-FMBQZAIP.mjs";
45
- import "../chunk-RBIVEH2K.mjs";
46
- import "../chunk-HAG77QBV.mjs";
47
- import "../chunk-PAWJFY3S.mjs";
48
- export {
49
- Auth,
50
- AuthComponent,
51
- AuthModule,
52
- AuthService,
53
- AuthorModule,
54
- Company,
55
- CompanyFields,
56
- CompanyModule,
57
- CompanyService,
58
- Content,
59
- ContentFields,
60
- ContentModule,
61
- ContentService,
62
- Feature,
63
- FeatureModule,
64
- FeatureService,
65
- Module,
66
- ModuleModule,
67
- Notification,
68
- NotificationFields,
69
- NotificationModule,
70
- NotificationService,
71
- Push,
72
- PushModule,
73
- PushService,
74
- Role,
75
- RoleFields,
76
- RoleModule,
77
- RoleService,
78
- S3,
79
- S3Module,
80
- S3Service,
81
- User,
82
- UserFields,
83
- UserModule,
84
- UserService,
85
- configureAuth
86
- };
87
- //# sourceMappingURL=index.mjs.map