@nextsparkjs/core 0.1.0-beta.82 → 0.1.0-beta.84

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 (365) hide show
  1. package/dist/components/entities/wrappers/EntityDetailWrapper.d.ts.map +1 -1
  2. package/dist/components/entities/wrappers/EntityDetailWrapper.js +11 -39
  3. package/dist/hooks/useEntityQuery.d.ts.map +1 -1
  4. package/dist/hooks/useEntityQuery.js +21 -3
  5. package/dist/lib/theme/get-default-theme-mode.d.ts +11 -0
  6. package/dist/lib/theme/get-default-theme-mode.d.ts.map +1 -1
  7. package/dist/lib/theme/get-default-theme-mode.js +42 -25
  8. package/dist/styles/classes.json +1 -1
  9. package/dist/types/theme.d.ts +2 -0
  10. package/dist/types/theme.d.ts.map +1 -1
  11. package/package.json +3 -3
  12. package/dist/templates/app/(auth)/forgot-password/page.tsx +0 -216
  13. package/dist/templates/app/(auth)/layout.tsx +0 -51
  14. package/dist/templates/app/(auth)/login/page.tsx +0 -21
  15. package/dist/templates/app/(auth)/reset-password/page.tsx +0 -212
  16. package/dist/templates/app/(auth)/signup/page.tsx +0 -21
  17. package/dist/templates/app/(auth)/verify-email/page.tsx +0 -190
  18. package/dist/templates/app/(public)/[...slug]/page.tsx +0 -378
  19. package/dist/templates/app/(public)/docs/[section]/[page]/page.tsx +0 -90
  20. package/dist/templates/app/(public)/docs/layout.tsx +0 -25
  21. package/dist/templates/app/(public)/docs/page.tsx +0 -81
  22. package/dist/templates/app/(public)/layout.tsx +0 -41
  23. package/dist/templates/app/(public)/page.tsx +0 -19
  24. package/dist/templates/app/403/page.tsx +0 -89
  25. package/dist/templates/app/api/auth/[...all]/route.ts +0 -78
  26. package/dist/templates/app/api/cron/billing/lifecycle/route.ts +0 -98
  27. package/dist/templates/app/api/csp-report/route.ts +0 -175
  28. package/dist/templates/app/api/devtools/config/entities/route.ts +0 -108
  29. package/dist/templates/app/api/devtools/config/theme/route.ts +0 -66
  30. package/dist/templates/app/api/devtools/tests/[...path]/route.ts +0 -130
  31. package/dist/templates/app/api/devtools/tests/route.ts +0 -134
  32. package/dist/templates/app/api/health/route.ts +0 -29
  33. package/dist/templates/app/api/internal/user-metadata/route.ts +0 -36
  34. package/dist/templates/app/api/superadmin/subscriptions/route.ts +0 -310
  35. package/dist/templates/app/api/superadmin/teams/[teamId]/route.ts +0 -286
  36. package/dist/templates/app/api/superadmin/teams/route.ts +0 -188
  37. package/dist/templates/app/api/superadmin/users/[userId]/route.ts +0 -540
  38. package/dist/templates/app/api/superadmin/users/route.ts +0 -323
  39. package/dist/templates/app/api/user/delete-account/route.ts +0 -55
  40. package/dist/templates/app/api/user/plan-flags/route.ts +0 -283
  41. package/dist/templates/app/api/user/profile/route.ts +0 -133
  42. package/dist/templates/app/api/v1/[entity]/[id]/child/[childType]/[childId]/route.ts +0 -210
  43. package/dist/templates/app/api/v1/[entity]/[id]/child/[childType]/route.ts +0 -331
  44. package/dist/templates/app/api/v1/[entity]/[id]/route.ts +0 -35
  45. package/dist/templates/app/api/v1/[entity]/docs.md +0 -369
  46. package/dist/templates/app/api/v1/[entity]/presets.ts +0 -194
  47. package/dist/templates/app/api/v1/[entity]/route.ts +0 -31
  48. package/dist/templates/app/api/v1/api-keys/[id]/route.ts +0 -303
  49. package/dist/templates/app/api/v1/api-keys/docs.md +0 -101
  50. package/dist/templates/app/api/v1/api-keys/presets.ts +0 -31
  51. package/dist/templates/app/api/v1/api-keys/route.ts +0 -250
  52. package/dist/templates/app/api/v1/auth/docs.md +0 -184
  53. package/dist/templates/app/api/v1/auth/presets.ts +0 -44
  54. package/dist/templates/app/api/v1/auth/signup-with-invite/route.ts +0 -227
  55. package/dist/templates/app/api/v1/billing/cancel/route.ts +0 -206
  56. package/dist/templates/app/api/v1/billing/change-plan/route.ts +0 -97
  57. package/dist/templates/app/api/v1/billing/check-action/route.ts +0 -81
  58. package/dist/templates/app/api/v1/billing/checkout/route.ts +0 -124
  59. package/dist/templates/app/api/v1/billing/docs.md +0 -209
  60. package/dist/templates/app/api/v1/billing/plans/route.ts +0 -85
  61. package/dist/templates/app/api/v1/billing/portal/route.ts +0 -90
  62. package/dist/templates/app/api/v1/billing/presets.ts +0 -121
  63. package/dist/templates/app/api/v1/billing/webhooks/stripe/route.ts +0 -428
  64. package/dist/templates/app/api/v1/blocks/[slug]/route.ts +0 -29
  65. package/dist/templates/app/api/v1/blocks/docs.md +0 -173
  66. package/dist/templates/app/api/v1/blocks/presets.ts +0 -121
  67. package/dist/templates/app/api/v1/blocks/route.ts +0 -45
  68. package/dist/templates/app/api/v1/blocks/validate/route.ts +0 -45
  69. package/dist/templates/app/api/v1/cron/docs.md +0 -116
  70. package/dist/templates/app/api/v1/cron/presets.ts +0 -26
  71. package/dist/templates/app/api/v1/cron/process/route.ts +0 -108
  72. package/dist/templates/app/api/v1/devtools/blocks/route.ts +0 -82
  73. package/dist/templates/app/api/v1/devtools/docs/route.ts +0 -150
  74. package/dist/templates/app/api/v1/devtools/docs.md +0 -204
  75. package/dist/templates/app/api/v1/devtools/features/route.ts +0 -61
  76. package/dist/templates/app/api/v1/devtools/flows/route.ts +0 -61
  77. package/dist/templates/app/api/v1/devtools/presets.ts +0 -113
  78. package/dist/templates/app/api/v1/devtools/scheduled-actions/route.ts +0 -120
  79. package/dist/templates/app/api/v1/devtools/testing/route.ts +0 -82
  80. package/dist/templates/app/api/v1/media/docs.md +0 -117
  81. package/dist/templates/app/api/v1/media/presets.ts +0 -24
  82. package/dist/templates/app/api/v1/media/upload/route.ts +0 -150
  83. package/dist/templates/app/api/v1/patterns/[id]/usages/route.ts +0 -116
  84. package/dist/templates/app/api/v1/plugin/[...path]/route.ts +0 -373
  85. package/dist/templates/app/api/v1/plugin/docs.md +0 -79
  86. package/dist/templates/app/api/v1/plugin/presets.ts +0 -21
  87. package/dist/templates/app/api/v1/plugin/route.ts +0 -96
  88. package/dist/templates/app/api/v1/post-categories/[id]/route.ts +0 -255
  89. package/dist/templates/app/api/v1/post-categories/docs.md +0 -134
  90. package/dist/templates/app/api/v1/post-categories/presets.ts +0 -78
  91. package/dist/templates/app/api/v1/post-categories/route.ts +0 -119
  92. package/dist/templates/app/api/v1/team-invitations/[token]/accept/route.ts +0 -179
  93. package/dist/templates/app/api/v1/team-invitations/[token]/decline/route.ts +0 -120
  94. package/dist/templates/app/api/v1/team-invitations/[token]/route.ts +0 -89
  95. package/dist/templates/app/api/v1/team-invitations/docs.md +0 -88
  96. package/dist/templates/app/api/v1/team-invitations/presets.ts +0 -43
  97. package/dist/templates/app/api/v1/team-invitations/route.ts +0 -114
  98. package/dist/templates/app/api/v1/teams/[teamId]/invitations/route.ts +0 -171
  99. package/dist/templates/app/api/v1/teams/[teamId]/invoices/[invoiceNumber]/route.ts +0 -105
  100. package/dist/templates/app/api/v1/teams/[teamId]/invoices/route.ts +0 -125
  101. package/dist/templates/app/api/v1/teams/[teamId]/members/[memberId]/route.ts +0 -263
  102. package/dist/templates/app/api/v1/teams/[teamId]/members/route.ts +0 -358
  103. package/dist/templates/app/api/v1/teams/[teamId]/route.ts +0 -322
  104. package/dist/templates/app/api/v1/teams/[teamId]/subscription/route.ts +0 -50
  105. package/dist/templates/app/api/v1/teams/[teamId]/usage/[limitSlug]/route.ts +0 -91
  106. package/dist/templates/app/api/v1/teams/docs.md +0 -320
  107. package/dist/templates/app/api/v1/teams/presets.ts +0 -178
  108. package/dist/templates/app/api/v1/teams/route.ts +0 -293
  109. package/dist/templates/app/api/v1/teams/switch/route.ts +0 -88
  110. package/dist/templates/app/api/v1/theme/[...path]/route.ts +0 -361
  111. package/dist/templates/app/api/v1/theme/docs.md +0 -74
  112. package/dist/templates/app/api/v1/theme/presets.ts +0 -21
  113. package/dist/templates/app/api/v1/theme/route.ts +0 -96
  114. package/dist/templates/app/api/v1/users/[id]/meta/[key]/route.ts +0 -363
  115. package/dist/templates/app/api/v1/users/[id]/route.ts +0 -302
  116. package/dist/templates/app/api/v1/users/docs.md +0 -93
  117. package/dist/templates/app/api/v1/users/presets.ts +0 -59
  118. package/dist/templates/app/api/v1/users/route.ts +0 -197
  119. package/dist/templates/app/dashboard/(main)/[entity]/[id]/edit/page.tsx +0 -117
  120. package/dist/templates/app/dashboard/(main)/[entity]/[id]/page.tsx +0 -103
  121. package/dist/templates/app/dashboard/(main)/[entity]/create/page.tsx +0 -95
  122. package/dist/templates/app/dashboard/(main)/[entity]/error.tsx +0 -51
  123. package/dist/templates/app/dashboard/(main)/[entity]/layout.tsx +0 -113
  124. package/dist/templates/app/dashboard/(main)/[entity]/loading.tsx +0 -61
  125. package/dist/templates/app/dashboard/(main)/[entity]/page.tsx +0 -90
  126. package/dist/templates/app/dashboard/(main)/layout.tsx +0 -98
  127. package/dist/templates/app/dashboard/(main)/loading.tsx +0 -5
  128. package/dist/templates/app/dashboard/(main)/page.tsx +0 -201
  129. package/dist/templates/app/dashboard/(main)/patterns/[id]/edit/page.tsx +0 -114
  130. package/dist/templates/app/dashboard/(main)/patterns/[id]/page.tsx +0 -20
  131. package/dist/templates/app/dashboard/(main)/patterns/[id]/reports/page.tsx +0 -171
  132. package/dist/templates/app/dashboard/(main)/patterns/create/page.tsx +0 -86
  133. package/dist/templates/app/dashboard/(main)/patterns/page.tsx +0 -444
  134. package/dist/templates/app/dashboard/features/analytics/page.tsx +0 -35
  135. package/dist/templates/app/dashboard/features/automation/page.tsx +0 -35
  136. package/dist/templates/app/dashboard/features/layout.tsx +0 -13
  137. package/dist/templates/app/dashboard/features/loading.tsx +0 -5
  138. package/dist/templates/app/dashboard/features/webhooks/page.tsx +0 -35
  139. package/dist/templates/app/dashboard/layout.tsx +0 -86
  140. package/dist/templates/app/dashboard/permission-denied/page.tsx +0 -29
  141. package/dist/templates/app/dashboard/settings/api-keys/loading.tsx +0 -5
  142. package/dist/templates/app/dashboard/settings/api-keys/page.tsx +0 -513
  143. package/dist/templates/app/dashboard/settings/billing/loading.tsx +0 -5
  144. package/dist/templates/app/dashboard/settings/billing/page.tsx +0 -284
  145. package/dist/templates/app/dashboard/settings/invoices/[invoiceNumber]/page.tsx +0 -222
  146. package/dist/templates/app/dashboard/settings/invoices/loading.tsx +0 -5
  147. package/dist/templates/app/dashboard/settings/invoices/page.tsx +0 -82
  148. package/dist/templates/app/dashboard/settings/layout.tsx +0 -151
  149. package/dist/templates/app/dashboard/settings/loading.tsx +0 -5
  150. package/dist/templates/app/dashboard/settings/notifications/loading.tsx +0 -5
  151. package/dist/templates/app/dashboard/settings/notifications/page.tsx +0 -462
  152. package/dist/templates/app/dashboard/settings/page.tsx +0 -92
  153. package/dist/templates/app/dashboard/settings/password/loading.tsx +0 -5
  154. package/dist/templates/app/dashboard/settings/password/page.tsx +0 -306
  155. package/dist/templates/app/dashboard/settings/plans/loading.tsx +0 -5
  156. package/dist/templates/app/dashboard/settings/plans/page.tsx +0 -40
  157. package/dist/templates/app/dashboard/settings/profile/loading.tsx +0 -5
  158. package/dist/templates/app/dashboard/settings/profile/page.tsx +0 -686
  159. package/dist/templates/app/dashboard/settings/security/loading.tsx +0 -5
  160. package/dist/templates/app/dashboard/settings/security/page.tsx +0 -505
  161. package/dist/templates/app/dashboard/settings/teams/loading.tsx +0 -5
  162. package/dist/templates/app/dashboard/settings/teams/page.tsx +0 -272
  163. package/dist/templates/app/dashboard/settings/teams/permissions/page.tsx +0 -92
  164. package/dist/templates/app/devtools/blocks/[slug]/page.tsx +0 -39
  165. package/dist/templates/app/devtools/blocks/page.tsx +0 -31
  166. package/dist/templates/app/devtools/config/page.tsx +0 -31
  167. package/dist/templates/app/devtools/features/page.tsx +0 -31
  168. package/dist/templates/app/devtools/flows/page.tsx +0 -31
  169. package/dist/templates/app/devtools/layout.tsx +0 -58
  170. package/dist/templates/app/devtools/page.tsx +0 -121
  171. package/dist/templates/app/devtools/scheduled-actions/page.tsx +0 -157
  172. package/dist/templates/app/devtools/style/page.tsx +0 -330
  173. package/dist/templates/app/devtools/tags/page.tsx +0 -31
  174. package/dist/templates/app/devtools/tests/[[...path]]/page.tsx +0 -47
  175. package/dist/templates/app/favicon.ico +0 -0
  176. package/dist/templates/app/globals.css +0 -12
  177. package/dist/templates/app/layout.tsx +0 -96
  178. package/dist/templates/app/public/page.tsx +0 -30
  179. package/dist/templates/app/superadmin/docs/[section]/[page]/page.tsx +0 -92
  180. package/dist/templates/app/superadmin/docs/page.tsx +0 -75
  181. package/dist/templates/app/superadmin/layout.tsx +0 -67
  182. package/dist/templates/app/superadmin/page.tsx +0 -149
  183. package/dist/templates/app/superadmin/subscriptions/page.tsx +0 -655
  184. package/dist/templates/app/superadmin/team-roles/page.tsx +0 -493
  185. package/dist/templates/app/superadmin/teams/[teamId]/page.tsx +0 -687
  186. package/dist/templates/app/superadmin/teams/page.tsx +0 -302
  187. package/dist/templates/app/superadmin/users/[userId]/page.tsx +0 -548
  188. package/dist/templates/app/superadmin/users/page.tsx +0 -528
  189. package/templates/app/(auth)/forgot-password/page.tsx +0 -216
  190. package/templates/app/(auth)/layout.tsx +0 -51
  191. package/templates/app/(auth)/login/page.tsx +0 -21
  192. package/templates/app/(auth)/reset-password/page.tsx +0 -212
  193. package/templates/app/(auth)/signup/page.tsx +0 -21
  194. package/templates/app/(auth)/verify-email/page.tsx +0 -190
  195. package/templates/app/(public)/[...slug]/page.tsx +0 -378
  196. package/templates/app/(public)/docs/[section]/[page]/page.tsx +0 -90
  197. package/templates/app/(public)/docs/layout.tsx +0 -25
  198. package/templates/app/(public)/docs/page.tsx +0 -81
  199. package/templates/app/(public)/layout.tsx +0 -41
  200. package/templates/app/(public)/page.tsx +0 -19
  201. package/templates/app/403/page.tsx +0 -89
  202. package/templates/app/api/auth/[...all]/route.ts +0 -78
  203. package/templates/app/api/cron/billing/lifecycle/route.ts +0 -98
  204. package/templates/app/api/csp-report/route.ts +0 -175
  205. package/templates/app/api/devtools/config/entities/route.ts +0 -108
  206. package/templates/app/api/devtools/config/theme/route.ts +0 -66
  207. package/templates/app/api/devtools/tests/[...path]/route.ts +0 -130
  208. package/templates/app/api/devtools/tests/route.ts +0 -134
  209. package/templates/app/api/health/route.ts +0 -29
  210. package/templates/app/api/internal/user-metadata/route.ts +0 -36
  211. package/templates/app/api/superadmin/subscriptions/route.ts +0 -310
  212. package/templates/app/api/superadmin/teams/[teamId]/route.ts +0 -286
  213. package/templates/app/api/superadmin/teams/route.ts +0 -188
  214. package/templates/app/api/superadmin/users/[userId]/route.ts +0 -540
  215. package/templates/app/api/superadmin/users/route.ts +0 -323
  216. package/templates/app/api/user/delete-account/route.ts +0 -55
  217. package/templates/app/api/user/plan-flags/route.ts +0 -283
  218. package/templates/app/api/user/profile/route.ts +0 -133
  219. package/templates/app/api/v1/[entity]/[id]/child/[childType]/[childId]/route.ts +0 -210
  220. package/templates/app/api/v1/[entity]/[id]/child/[childType]/route.ts +0 -331
  221. package/templates/app/api/v1/[entity]/[id]/route.ts +0 -35
  222. package/templates/app/api/v1/[entity]/docs.md +0 -369
  223. package/templates/app/api/v1/[entity]/presets.ts +0 -194
  224. package/templates/app/api/v1/[entity]/route.ts +0 -31
  225. package/templates/app/api/v1/api-keys/[id]/route.ts +0 -303
  226. package/templates/app/api/v1/api-keys/docs.md +0 -101
  227. package/templates/app/api/v1/api-keys/presets.ts +0 -31
  228. package/templates/app/api/v1/api-keys/route.ts +0 -250
  229. package/templates/app/api/v1/auth/docs.md +0 -184
  230. package/templates/app/api/v1/auth/presets.ts +0 -44
  231. package/templates/app/api/v1/auth/signup-with-invite/route.ts +0 -227
  232. package/templates/app/api/v1/billing/cancel/route.ts +0 -206
  233. package/templates/app/api/v1/billing/change-plan/route.ts +0 -97
  234. package/templates/app/api/v1/billing/check-action/route.ts +0 -81
  235. package/templates/app/api/v1/billing/checkout/route.ts +0 -124
  236. package/templates/app/api/v1/billing/docs.md +0 -209
  237. package/templates/app/api/v1/billing/plans/route.ts +0 -85
  238. package/templates/app/api/v1/billing/portal/route.ts +0 -90
  239. package/templates/app/api/v1/billing/presets.ts +0 -121
  240. package/templates/app/api/v1/billing/webhooks/stripe/route.ts +0 -428
  241. package/templates/app/api/v1/blocks/[slug]/route.ts +0 -29
  242. package/templates/app/api/v1/blocks/docs.md +0 -173
  243. package/templates/app/api/v1/blocks/presets.ts +0 -121
  244. package/templates/app/api/v1/blocks/route.ts +0 -45
  245. package/templates/app/api/v1/blocks/validate/route.ts +0 -45
  246. package/templates/app/api/v1/cron/docs.md +0 -116
  247. package/templates/app/api/v1/cron/presets.ts +0 -26
  248. package/templates/app/api/v1/cron/process/route.ts +0 -108
  249. package/templates/app/api/v1/devtools/blocks/route.ts +0 -82
  250. package/templates/app/api/v1/devtools/docs/route.ts +0 -150
  251. package/templates/app/api/v1/devtools/docs.md +0 -204
  252. package/templates/app/api/v1/devtools/features/route.ts +0 -61
  253. package/templates/app/api/v1/devtools/flows/route.ts +0 -61
  254. package/templates/app/api/v1/devtools/presets.ts +0 -113
  255. package/templates/app/api/v1/devtools/scheduled-actions/route.ts +0 -120
  256. package/templates/app/api/v1/devtools/testing/route.ts +0 -82
  257. package/templates/app/api/v1/media/docs.md +0 -117
  258. package/templates/app/api/v1/media/presets.ts +0 -24
  259. package/templates/app/api/v1/media/upload/route.ts +0 -150
  260. package/templates/app/api/v1/patterns/[id]/usages/route.ts +0 -116
  261. package/templates/app/api/v1/plugin/[...path]/route.ts +0 -373
  262. package/templates/app/api/v1/plugin/docs.md +0 -79
  263. package/templates/app/api/v1/plugin/presets.ts +0 -21
  264. package/templates/app/api/v1/plugin/route.ts +0 -96
  265. package/templates/app/api/v1/post-categories/[id]/route.ts +0 -255
  266. package/templates/app/api/v1/post-categories/docs.md +0 -134
  267. package/templates/app/api/v1/post-categories/presets.ts +0 -78
  268. package/templates/app/api/v1/post-categories/route.ts +0 -119
  269. package/templates/app/api/v1/team-invitations/[token]/accept/route.ts +0 -179
  270. package/templates/app/api/v1/team-invitations/[token]/decline/route.ts +0 -120
  271. package/templates/app/api/v1/team-invitations/[token]/route.ts +0 -89
  272. package/templates/app/api/v1/team-invitations/docs.md +0 -88
  273. package/templates/app/api/v1/team-invitations/presets.ts +0 -43
  274. package/templates/app/api/v1/team-invitations/route.ts +0 -114
  275. package/templates/app/api/v1/teams/[teamId]/invitations/route.ts +0 -171
  276. package/templates/app/api/v1/teams/[teamId]/invoices/[invoiceNumber]/route.ts +0 -105
  277. package/templates/app/api/v1/teams/[teamId]/invoices/route.ts +0 -125
  278. package/templates/app/api/v1/teams/[teamId]/members/[memberId]/route.ts +0 -263
  279. package/templates/app/api/v1/teams/[teamId]/members/route.ts +0 -358
  280. package/templates/app/api/v1/teams/[teamId]/route.ts +0 -322
  281. package/templates/app/api/v1/teams/[teamId]/subscription/route.ts +0 -50
  282. package/templates/app/api/v1/teams/[teamId]/usage/[limitSlug]/route.ts +0 -91
  283. package/templates/app/api/v1/teams/docs.md +0 -320
  284. package/templates/app/api/v1/teams/presets.ts +0 -178
  285. package/templates/app/api/v1/teams/route.ts +0 -293
  286. package/templates/app/api/v1/teams/switch/route.ts +0 -88
  287. package/templates/app/api/v1/theme/[...path]/route.ts +0 -361
  288. package/templates/app/api/v1/theme/docs.md +0 -74
  289. package/templates/app/api/v1/theme/presets.ts +0 -21
  290. package/templates/app/api/v1/theme/route.ts +0 -96
  291. package/templates/app/api/v1/users/[id]/meta/[key]/route.ts +0 -363
  292. package/templates/app/api/v1/users/[id]/route.ts +0 -302
  293. package/templates/app/api/v1/users/docs.md +0 -93
  294. package/templates/app/api/v1/users/presets.ts +0 -59
  295. package/templates/app/api/v1/users/route.ts +0 -197
  296. package/templates/app/dashboard/(main)/[entity]/[id]/edit/page.tsx +0 -117
  297. package/templates/app/dashboard/(main)/[entity]/[id]/page.tsx +0 -103
  298. package/templates/app/dashboard/(main)/[entity]/create/page.tsx +0 -95
  299. package/templates/app/dashboard/(main)/[entity]/error.tsx +0 -51
  300. package/templates/app/dashboard/(main)/[entity]/layout.tsx +0 -113
  301. package/templates/app/dashboard/(main)/[entity]/loading.tsx +0 -61
  302. package/templates/app/dashboard/(main)/[entity]/page.tsx +0 -90
  303. package/templates/app/dashboard/(main)/layout.tsx +0 -98
  304. package/templates/app/dashboard/(main)/loading.tsx +0 -5
  305. package/templates/app/dashboard/(main)/page.tsx +0 -201
  306. package/templates/app/dashboard/(main)/patterns/[id]/edit/page.tsx +0 -114
  307. package/templates/app/dashboard/(main)/patterns/[id]/page.tsx +0 -20
  308. package/templates/app/dashboard/(main)/patterns/[id]/reports/page.tsx +0 -171
  309. package/templates/app/dashboard/(main)/patterns/create/page.tsx +0 -86
  310. package/templates/app/dashboard/(main)/patterns/page.tsx +0 -444
  311. package/templates/app/dashboard/features/analytics/page.tsx +0 -35
  312. package/templates/app/dashboard/features/automation/page.tsx +0 -35
  313. package/templates/app/dashboard/features/layout.tsx +0 -13
  314. package/templates/app/dashboard/features/loading.tsx +0 -5
  315. package/templates/app/dashboard/features/webhooks/page.tsx +0 -35
  316. package/templates/app/dashboard/layout.tsx +0 -86
  317. package/templates/app/dashboard/permission-denied/page.tsx +0 -29
  318. package/templates/app/dashboard/settings/api-keys/loading.tsx +0 -5
  319. package/templates/app/dashboard/settings/api-keys/page.tsx +0 -513
  320. package/templates/app/dashboard/settings/billing/loading.tsx +0 -5
  321. package/templates/app/dashboard/settings/billing/page.tsx +0 -284
  322. package/templates/app/dashboard/settings/invoices/[invoiceNumber]/page.tsx +0 -222
  323. package/templates/app/dashboard/settings/invoices/loading.tsx +0 -5
  324. package/templates/app/dashboard/settings/invoices/page.tsx +0 -82
  325. package/templates/app/dashboard/settings/layout.tsx +0 -151
  326. package/templates/app/dashboard/settings/loading.tsx +0 -5
  327. package/templates/app/dashboard/settings/notifications/loading.tsx +0 -5
  328. package/templates/app/dashboard/settings/notifications/page.tsx +0 -462
  329. package/templates/app/dashboard/settings/page.tsx +0 -92
  330. package/templates/app/dashboard/settings/password/loading.tsx +0 -5
  331. package/templates/app/dashboard/settings/password/page.tsx +0 -306
  332. package/templates/app/dashboard/settings/plans/loading.tsx +0 -5
  333. package/templates/app/dashboard/settings/plans/page.tsx +0 -40
  334. package/templates/app/dashboard/settings/profile/loading.tsx +0 -5
  335. package/templates/app/dashboard/settings/profile/page.tsx +0 -686
  336. package/templates/app/dashboard/settings/security/loading.tsx +0 -5
  337. package/templates/app/dashboard/settings/security/page.tsx +0 -505
  338. package/templates/app/dashboard/settings/teams/loading.tsx +0 -5
  339. package/templates/app/dashboard/settings/teams/page.tsx +0 -272
  340. package/templates/app/dashboard/settings/teams/permissions/page.tsx +0 -92
  341. package/templates/app/devtools/blocks/[slug]/page.tsx +0 -39
  342. package/templates/app/devtools/blocks/page.tsx +0 -31
  343. package/templates/app/devtools/config/page.tsx +0 -31
  344. package/templates/app/devtools/features/page.tsx +0 -31
  345. package/templates/app/devtools/flows/page.tsx +0 -31
  346. package/templates/app/devtools/layout.tsx +0 -58
  347. package/templates/app/devtools/page.tsx +0 -121
  348. package/templates/app/devtools/scheduled-actions/page.tsx +0 -157
  349. package/templates/app/devtools/style/page.tsx +0 -330
  350. package/templates/app/devtools/tags/page.tsx +0 -31
  351. package/templates/app/devtools/tests/[[...path]]/page.tsx +0 -47
  352. package/templates/app/favicon.ico +0 -0
  353. package/templates/app/globals.css +0 -12
  354. package/templates/app/layout.tsx +0 -96
  355. package/templates/app/public/page.tsx +0 -30
  356. package/templates/app/superadmin/docs/[section]/[page]/page.tsx +0 -92
  357. package/templates/app/superadmin/docs/page.tsx +0 -75
  358. package/templates/app/superadmin/layout.tsx +0 -67
  359. package/templates/app/superadmin/page.tsx +0 -149
  360. package/templates/app/superadmin/subscriptions/page.tsx +0 -655
  361. package/templates/app/superadmin/team-roles/page.tsx +0 -493
  362. package/templates/app/superadmin/teams/[teamId]/page.tsx +0 -687
  363. package/templates/app/superadmin/teams/page.tsx +0 -302
  364. package/templates/app/superadmin/users/[userId]/page.tsx +0 -548
  365. package/templates/app/superadmin/users/page.tsx +0 -528
@@ -1,35 +0,0 @@
1
- /**
2
- * Generic Entity Detail Route
3
- *
4
- * Catch-all route that handles GET, PATCH, and DELETE requests for any registered entity.
5
- * Supports dual authentication (API Keys + Sessions).
6
- *
7
- * Examples:
8
- * GET /api/v1/products/123 -> Get product by ID
9
- * PATCH /api/v1/products/123 -> Update product
10
- * DELETE /api/v1/products/123 -> Delete product
11
- * GET /api/v1/orders/456 -> Get order by ID
12
- * PATCH /api/v1/orders/456 -> Update order
13
- * DELETE /api/v1/orders/456 -> Delete order
14
- */
15
-
16
- // CRITICAL: Initialize entity registry for API routes
17
- // This import is processed by webpack which resolves the @nextsparkjs alias
18
- // The setEntityRegistry call happens at module load time
19
- import { setEntityRegistry, isRegistryInitialized } from '@nextsparkjs/core/lib/entities/queries'
20
- import { ENTITY_REGISTRY, ENTITY_METADATA } from '@nextsparkjs/registries/entity-registry'
21
- if (!isRegistryInitialized()) {
22
- setEntityRegistry(ENTITY_REGISTRY, ENTITY_METADATA)
23
- }
24
-
25
- import {
26
- handleGenericRead,
27
- handleGenericUpdate,
28
- handleGenericDelete,
29
- handleGenericOptions
30
- } from '@nextsparkjs/core/lib/api/entity/generic-handler'
31
-
32
- export const GET = handleGenericRead
33
- export const PATCH = handleGenericUpdate
34
- export const DELETE = handleGenericDelete
35
- export const OPTIONS = handleGenericOptions
@@ -1,369 +0,0 @@
1
- # Dynamic Entity API
2
-
3
- Generic CRUD endpoints for all registered entities. These routes dynamically handle any entity configured in the system.
4
-
5
- ## Overview
6
-
7
- The Dynamic Entity API provides a unified interface for managing all registered entities in the system. Instead of creating separate API routes for each entity type, this single dynamic route handles all CRUD operations based on the entity configuration.
8
-
9
- When you access `/api/v1/products`, `/api/v1/tasks`, `/api/v1/orders`, etc., you're using this dynamic routing system that reads the entity configuration and handles the request accordingly.
10
-
11
- ## Authentication
12
-
13
- All endpoints require authentication via:
14
- - **Session cookie** (for browser-based requests)
15
- - **API Key** header (for server-to-server requests)
16
-
17
- The entity's `access` configuration determines visibility rules (public, shared, etc.).
18
-
19
- ## Entity Resolution
20
-
21
- URLs are resolved using the entity's `tableName` (typically plural). For example:
22
- - `/api/v1/products` → resolves to `product` entity
23
- - `/api/v1/tasks` → resolves to `task` entity
24
- - `/api/v1/team-members` → resolves to `teamMember` entity
25
-
26
- ## Endpoints
27
-
28
- ### List Entities
29
- `GET /api/v1/{entity}`
30
-
31
- Returns a paginated list of entities.
32
-
33
- **URL Examples:**
34
- ```
35
- GET /api/v1/tasks # List tasks
36
- GET /api/v1/products # List products
37
- GET /api/v1/orders # List orders
38
- ```
39
-
40
- **Query Parameters:**
41
- - `limit` (number, optional): Maximum records to return. Default: 20
42
- - `offset` (number, optional): Number of records to skip. Default: 0
43
- - `search` (string, optional): Search term (searches searchable fields)
44
- - `sortBy` (string, optional): Field to sort by (must be sortable)
45
- - `sortOrder` (string, optional): Sort direction - "asc" or "desc"
46
- - `{fieldName}` (any, optional): Filter by any filterable field
47
-
48
- **Example Response:**
49
- ```json
50
- {
51
- "success": true,
52
- "data": [
53
- {
54
- "id": "abc123",
55
- "title": "Example item",
56
- "status": "active",
57
- "createdAt": "2024-01-15T10:30:00Z"
58
- }
59
- ],
60
- "pagination": {
61
- "total": 42,
62
- "limit": 20,
63
- "offset": 0
64
- },
65
- "info": {
66
- "timestamp": "2024-01-15T10:30:00Z"
67
- }
68
- }
69
- ```
70
-
71
- **Filtering Examples:**
72
- ```
73
- GET /api/v1/tasks?status=todo
74
- GET /api/v1/products?category=electronics&inStock=true
75
- GET /api/v1/orders?search=john&sortBy=createdAt&sortOrder=desc
76
- ```
77
-
78
- ### Create Entity
79
- `POST /api/v1/{entity}`
80
-
81
- Create a new entity record.
82
-
83
- **URL Examples:**
84
- ```
85
- POST /api/v1/tasks # Create task
86
- POST /api/v1/products # Create product
87
- POST /api/v1/orders # Create order
88
- ```
89
-
90
- **Request Body:**
91
- The request body must include all required fields defined in the entity configuration.
92
-
93
- ```json
94
- {
95
- "title": "New item",
96
- "description": "Item details",
97
- "status": "draft"
98
- }
99
- ```
100
-
101
- **Response (201 Created):**
102
- ```json
103
- {
104
- "success": true,
105
- "data": {
106
- "id": "new123",
107
- "title": "New item",
108
- "description": "Item details",
109
- "status": "draft",
110
- "createdAt": "2024-01-15T10:30:00Z"
111
- },
112
- "info": {
113
- "timestamp": "2024-01-15T10:30:00Z"
114
- }
115
- }
116
- ```
117
-
118
- **Validation:**
119
- - Required fields must be provided
120
- - Field values are validated against the entity schema
121
- - Unique constraints are enforced (e.g., slugs)
122
-
123
- ---
124
-
125
- ## Single Entity Endpoints
126
-
127
- ### Get Entity by ID
128
- `GET /api/v1/{entity}/{id}`
129
-
130
- Returns a single entity by its ID.
131
-
132
- **URL Examples:**
133
- ```
134
- GET /api/v1/tasks/abc123 # Get task by ID
135
- GET /api/v1/products/prod456 # Get product by ID
136
- ```
137
-
138
- **Path Parameters:**
139
- - `id` (string, required): Entity ID
140
-
141
- **Response:**
142
- ```json
143
- {
144
- "success": true,
145
- "data": {
146
- "id": "abc123",
147
- "title": "Example item",
148
- "description": "Full details",
149
- "status": "active",
150
- "createdAt": "2024-01-15T10:30:00Z",
151
- "updatedAt": "2024-01-16T14:20:00Z"
152
- },
153
- "info": {
154
- "timestamp": "2024-01-16T14:20:00Z"
155
- }
156
- }
157
- ```
158
-
159
- ### Update Entity
160
- `PATCH /api/v1/{entity}/{id}`
161
-
162
- Update an existing entity. Supports partial updates.
163
-
164
- **URL Examples:**
165
- ```
166
- PATCH /api/v1/tasks/abc123 # Update task
167
- PATCH /api/v1/products/prod456 # Update product
168
- ```
169
-
170
- **Path Parameters:**
171
- - `id` (string, required): Entity ID
172
-
173
- **Request Body (partial update):**
174
- ```json
175
- {
176
- "status": "completed",
177
- "notes": "Updated notes"
178
- }
179
- ```
180
-
181
- **Response:**
182
- ```json
183
- {
184
- "success": true,
185
- "data": {
186
- "id": "abc123",
187
- "title": "Example item",
188
- "status": "completed",
189
- "notes": "Updated notes",
190
- "updatedAt": "2024-01-16T14:25:00Z"
191
- },
192
- "info": {
193
- "timestamp": "2024-01-16T14:25:00Z"
194
- }
195
- }
196
- ```
197
-
198
- ### Delete Entity
199
- `DELETE /api/v1/{entity}/{id}`
200
-
201
- Delete an entity record.
202
-
203
- **URL Examples:**
204
- ```
205
- DELETE /api/v1/tasks/abc123 # Delete task
206
- DELETE /api/v1/products/prod456 # Delete product
207
- ```
208
-
209
- **Path Parameters:**
210
- - `id` (string, required): Entity ID
211
-
212
- **Response:**
213
- ```json
214
- {
215
- "success": true,
216
- "data": {
217
- "deleted": true,
218
- "id": "abc123"
219
- },
220
- "info": {
221
- "timestamp": "2024-01-16T14:30:00Z"
222
- }
223
- }
224
- ```
225
-
226
- ---
227
-
228
- ## Child Entity Endpoints
229
-
230
- For entities with child relationships (e.g., order items under orders):
231
-
232
- ### List Child Entities
233
- `GET /api/v1/{entity}/{id}/child/{childType}`
234
-
235
- Returns child entities for a parent entity.
236
-
237
- **URL Examples:**
238
- ```
239
- GET /api/v1/orders/ord123/child/order-items # List order items
240
- GET /api/v1/customers/cust456/child/contacts # List customer contacts
241
- ```
242
-
243
- **Path Parameters:**
244
- - `id` (string, required): Parent entity ID
245
- - `childType` (string, required): Child entity type name
246
-
247
- **Response:**
248
- ```json
249
- {
250
- "success": true,
251
- "data": [
252
- {
253
- "id": "item1",
254
- "parentId": "ord123",
255
- "productId": "prod456",
256
- "quantity": 2,
257
- "price": 29.99
258
- }
259
- ],
260
- "info": {
261
- "timestamp": "2024-01-16T14:30:00Z"
262
- }
263
- }
264
- ```
265
-
266
- ### Create Child Entity
267
- `POST /api/v1/{entity}/{id}/child/{childType}`
268
-
269
- Create a child entity under a parent.
270
-
271
- **URL Examples:**
272
- ```
273
- POST /api/v1/orders/ord123/child/order-items # Create order item
274
- POST /api/v1/customers/cust456/child/contacts # Create contact
275
- ```
276
-
277
- **Request Body:**
278
- ```json
279
- {
280
- "productId": "prod789",
281
- "quantity": 3,
282
- "price": 19.99
283
- }
284
- ```
285
-
286
- **Note:** The `parentId` is automatically set from the URL parameter.
287
-
288
- ### Single Child Entity Operations
289
- `GET/PATCH/DELETE /api/v1/{entity}/{id}/child/{childType}/{childId}`
290
-
291
- Manage individual child entities.
292
-
293
- **URL Examples:**
294
- ```
295
- GET /api/v1/orders/ord123/child/order-items/item1 # Get item
296
- PATCH /api/v1/orders/ord123/child/order-items/item1 # Update item
297
- DELETE /api/v1/orders/ord123/child/order-items/item1 # Delete item
298
- ```
299
-
300
- ---
301
-
302
- ## Entity Configuration Properties
303
-
304
- Each entity's behavior is controlled by its configuration:
305
-
306
- | Property | Description |
307
- |----------|-------------|
308
- | `access.public` | Whether non-authenticated users can read |
309
- | `access.shared` | Whether all team members can see all records |
310
- | `access.api` | Whether entity has API endpoints |
311
- | `access.metadata` | Whether entity supports metadata system |
312
- | `ui.features.searchable` | Whether search is enabled |
313
- | `ui.features.sortable` | Whether sorting is enabled |
314
- | `ui.features.filterable` | Whether filtering is enabled |
315
-
316
- ## Field Types
317
-
318
- Entities support various field types:
319
-
320
- | Type | Description |
321
- |------|-------------|
322
- | `text` | Single-line text input |
323
- | `textarea` | Multi-line text |
324
- | `richtext` | Rich text editor (HTML) |
325
- | `number` | Numeric values |
326
- | `select` | Single selection from options |
327
- | `multiselect` | Multiple selections |
328
- | `checkbox` | Boolean toggle |
329
- | `date` | Date picker |
330
- | `datetime` | Date and time picker |
331
- | `image` | Image upload/URL |
332
- | `relation` | Reference to another entity |
333
- | `relation-multi` | Multiple references |
334
- | `json` | JSON data |
335
- | `tags` | Tag array |
336
-
337
- ## Row Level Security (RLS)
338
-
339
- All entity queries respect PostgreSQL Row Level Security:
340
- - Team-scoped entities filter by the user's active team
341
- - Shared entities allow read access to all team members
342
- - Private entities filter by `createdBy` user
343
- - Superadmin/developer roles can bypass RLS for management
344
-
345
- ## Error Responses
346
-
347
- | Status | Description |
348
- |--------|-------------|
349
- | 400 | Bad Request - Invalid parameters or validation error |
350
- | 401 | Unauthorized - Authentication required |
351
- | 403 | Forbidden - Insufficient permissions or RLS violation |
352
- | 404 | Not Found - Entity type or record not found |
353
- | 409 | Conflict - Duplicate key or constraint violation |
354
- | 422 | Validation Error - Invalid field values |
355
- | 500 | Server Error - Internal error |
356
-
357
- ## Related APIs
358
-
359
- - **[API Keys](/api/v1/api-keys)** - Manage API keys for authentication
360
- - **[Teams](/api/v1/teams)** - Team management and member access
361
- - **[Media](/api/v1/media)** - File uploads for entity fields
362
- - **[Blocks](/api/v1/blocks)** - Page builder blocks for builder-enabled entities
363
-
364
- ## See Also
365
-
366
- For entity-specific documentation with field details, see the individual entity docs:
367
- - Tasks: `/api/v1/tasks` (entity-specific docs)
368
- - Pages: `/api/v1/pages` (entity-specific docs)
369
- - Posts: `/api/v1/posts` (entity-specific docs)
@@ -1,194 +0,0 @@
1
- /**
2
- * API Presets for Dynamic Entity Routes
3
- *
4
- * These presets demonstrate the generic entity API pattern.
5
- * Replace {entity} with any registered entity (tasks, products, orders, etc.)
6
- */
7
-
8
- import { defineApiEndpoint } from '@nextsparkjs/core/types/api-presets'
9
-
10
- export default defineApiEndpoint({
11
- endpoint: '/api/v1/{entity}',
12
- summary: 'Generic CRUD operations for any registered entity',
13
- presets: [
14
- // ==================== LIST OPERATIONS ====================
15
- {
16
- id: 'list-basic',
17
- title: 'List Entities (Basic)',
18
- description: 'Fetch entities with default pagination',
19
- method: 'GET',
20
- queryParams: {
21
- limit: '20',
22
- offset: '0'
23
- },
24
- tags: ['read', 'list']
25
- },
26
- {
27
- id: 'list-with-search',
28
- title: 'List with Search',
29
- description: 'Search entities by searchable fields',
30
- method: 'GET',
31
- queryParams: {
32
- search: 'example',
33
- limit: '20'
34
- },
35
- tags: ['read', 'list', 'search']
36
- },
37
- {
38
- id: 'list-with-sort',
39
- title: 'List with Sorting',
40
- description: 'Sort entities by a specific field',
41
- method: 'GET',
42
- queryParams: {
43
- sortBy: 'createdAt',
44
- sortOrder: 'desc',
45
- limit: '20'
46
- },
47
- tags: ['read', 'list', 'sort']
48
- },
49
- {
50
- id: 'list-with-filter',
51
- title: 'List with Filter',
52
- description: 'Filter entities by field value (e.g., status)',
53
- method: 'GET',
54
- queryParams: {
55
- status: 'active',
56
- limit: '20'
57
- },
58
- tags: ['read', 'list', 'filter']
59
- },
60
- {
61
- id: 'list-paginated',
62
- title: 'List with Pagination',
63
- description: 'Get second page of results',
64
- method: 'GET',
65
- queryParams: {
66
- limit: '10',
67
- offset: '10'
68
- },
69
- tags: ['read', 'list', 'pagination']
70
- },
71
-
72
- // ==================== CREATE OPERATIONS ====================
73
- {
74
- id: 'create-basic',
75
- title: 'Create Entity',
76
- description: 'Create a new entity record',
77
- method: 'POST',
78
- payload: {
79
- title: 'New Item',
80
- status: 'draft'
81
- },
82
- tags: ['write', 'create']
83
- },
84
- {
85
- id: 'create-with-fields',
86
- title: 'Create with All Fields',
87
- description: 'Create entity with multiple fields',
88
- method: 'POST',
89
- payload: {
90
- title: 'Complete Item',
91
- description: 'Full description here',
92
- status: 'active',
93
- priority: 'high'
94
- },
95
- tags: ['write', 'create']
96
- },
97
-
98
- // ==================== READ SINGLE ====================
99
- {
100
- id: 'get-by-id',
101
- title: 'Get Entity by ID',
102
- description: 'Fetch a single entity by its ID',
103
- method: 'GET',
104
- path: '/{id}',
105
- tags: ['read', 'detail']
106
- },
107
-
108
- // ==================== UPDATE OPERATIONS ====================
109
- {
110
- id: 'update-status',
111
- title: 'Update Status',
112
- description: 'Update entity status field',
113
- method: 'PATCH',
114
- path: '/{id}',
115
- payload: {
116
- status: 'completed'
117
- },
118
- tags: ['write', 'update']
119
- },
120
- {
121
- id: 'update-multiple-fields',
122
- title: 'Update Multiple Fields',
123
- description: 'Partial update with multiple fields',
124
- method: 'PATCH',
125
- path: '/{id}',
126
- payload: {
127
- title: 'Updated Title',
128
- description: 'Updated description',
129
- priority: 'low'
130
- },
131
- tags: ['write', 'update']
132
- },
133
-
134
- // ==================== DELETE OPERATIONS ====================
135
- {
136
- id: 'delete-by-id',
137
- title: 'Delete Entity',
138
- description: 'Delete an entity by ID',
139
- method: 'DELETE',
140
- path: '/{id}',
141
- tags: ['write', 'delete']
142
- },
143
-
144
- // ==================== CHILD ENTITY OPERATIONS ====================
145
- {
146
- id: 'list-children',
147
- title: 'List Child Entities',
148
- description: 'Get all child entities for a parent',
149
- method: 'GET',
150
- path: '/{id}/child/{childType}',
151
- tags: ['read', 'list', 'children']
152
- },
153
- {
154
- id: 'create-child',
155
- title: 'Create Child Entity',
156
- description: 'Add a new child record to parent',
157
- method: 'POST',
158
- path: '/{id}/child/{childType}',
159
- payload: {
160
- name: 'New Child Item',
161
- value: 100
162
- },
163
- tags: ['write', 'create', 'children']
164
- },
165
- {
166
- id: 'get-child',
167
- title: 'Get Child Entity',
168
- description: 'Fetch a specific child entity',
169
- method: 'GET',
170
- path: '/{id}/child/{childType}/{childId}',
171
- tags: ['read', 'detail', 'children']
172
- },
173
- {
174
- id: 'update-child',
175
- title: 'Update Child Entity',
176
- description: 'Update a child entity',
177
- method: 'PATCH',
178
- path: '/{id}/child/{childType}/{childId}',
179
- payload: {
180
- name: 'Updated Child',
181
- value: 200
182
- },
183
- tags: ['write', 'update', 'children']
184
- },
185
- {
186
- id: 'delete-child',
187
- title: 'Delete Child Entity',
188
- description: 'Delete a child entity',
189
- method: 'DELETE',
190
- path: '/{id}/child/{childType}/{childId}',
191
- tags: ['write', 'delete', 'children']
192
- }
193
- ]
194
- })
@@ -1,31 +0,0 @@
1
- /**
2
- * Generic Entity List Route
3
- *
4
- * Catch-all route that handles GET and POST requests for any registered entity.
5
- * Supports dual authentication (API Keys + Sessions).
6
- *
7
- * Examples:
8
- * GET /api/v1/products -> List products
9
- * POST /api/v1/products -> Create product
10
- * GET /api/v1/orders -> List orders
11
- * POST /api/v1/orders -> Create order
12
- */
13
-
14
- // CRITICAL: Initialize entity registry for API routes
15
- // This import is processed by webpack which resolves the @nextsparkjs alias
16
- // The setEntityRegistry call happens at module load time
17
- import { setEntityRegistry, isRegistryInitialized } from '@nextsparkjs/core/lib/entities/queries'
18
- import { ENTITY_REGISTRY, ENTITY_METADATA } from '@nextsparkjs/registries/entity-registry'
19
- if (!isRegistryInitialized()) {
20
- setEntityRegistry(ENTITY_REGISTRY, ENTITY_METADATA)
21
- }
22
-
23
- import {
24
- handleGenericList,
25
- handleGenericCreate,
26
- handleGenericOptions
27
- } from '@nextsparkjs/core/lib/api/entity/generic-handler'
28
-
29
- export const GET = handleGenericList
30
- export const POST = handleGenericCreate
31
- export const OPTIONS = handleGenericOptions