@rebasepro/cli 0.30.0 → 0.31.0-canary.g59cd6fd

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 (286) hide show
  1. package/README.md +8 -7
  2. package/dist/{agent-setup-0uyfC7VX.js → agent-setup-DqAcoDcn.js} +10 -5
  3. package/dist/{agent-setup-0uyfC7VX.js.map → agent-setup-DqAcoDcn.js.map} +1 -1
  4. package/dist/{api-keys-Dfw5-9s1.js → api-keys-eIUjMqWn.js} +8 -7
  5. package/dist/api-keys-eIUjMqWn.js.map +1 -0
  6. package/dist/{apps-MKQbgDtN.js → apps-DExO4PEl.js} +8 -7
  7. package/dist/apps-DExO4PEl.js.map +1 -0
  8. package/dist/{project-CasK56vN.js → args-CaCcrYE1.js} +2 -351
  9. package/dist/args-CaCcrYE1.js.map +1 -0
  10. package/dist/{atlas-dev-database-BODqdCWt.js → atlas-dev-database-DOCKk6ht.js} +2 -2
  11. package/dist/{atlas-dev-database-BODqdCWt.js.map → atlas-dev-database-DOCKk6ht.js.map} +1 -1
  12. package/dist/{auth-Bv0rTbQX.js → auth-D96QYgFR.js} +7 -6
  13. package/dist/{auth-Bv0rTbQX.js.map → auth-D96QYgFR.js.map} +1 -1
  14. package/dist/backend-guard-C0mVkXBw.js +162 -0
  15. package/dist/backend-guard-C0mVkXBw.js.map +1 -0
  16. package/dist/{branch-pointer-BQUF6lYa.js → branch-pointer-DMPyvZoK.js} +1 -1
  17. package/dist/{build-BuKTnec8.js → build-CA5R07tw.js} +29 -9
  18. package/dist/build-CA5R07tw.js.map +1 -0
  19. package/dist/{bundle-BAH4FCju.js → bundle-DgILeA5b.js} +112 -138
  20. package/dist/bundle-DgILeA5b.js.map +1 -0
  21. package/dist/bundle.d.ts +35 -12
  22. package/dist/cli.d.ts +2 -2
  23. package/dist/{cloud-Cj5ey3l_.js → cloud-CYMk92iG.js} +217 -104
  24. package/dist/cloud-CYMk92iG.js.map +1 -0
  25. package/dist/cms-directories-BK3vcswg.js +33 -0
  26. package/dist/cms-directories-BK3vcswg.js.map +1 -0
  27. package/dist/codemod/collections-to-tables/ast.d.ts +135 -0
  28. package/dist/codemod/collections-to-tables/backend.d.ts +38 -0
  29. package/dist/codemod/collections-to-tables/command.d.ts +35 -0
  30. package/dist/codemod/collections-to-tables/comments.d.ts +45 -0
  31. package/dist/codemod/collections-to-tables/customization.d.ts +47 -0
  32. package/dist/codemod/collections-to-tables/dynamic-props.d.ts +34 -0
  33. package/dist/codemod/collections-to-tables/export-changes.d.ts +83 -0
  34. package/dist/codemod/collections-to-tables/firestore.d.ts +11 -0
  35. package/dist/codemod/collections-to-tables/helper-hooks.d.ts +41 -0
  36. package/dist/codemod/collections-to-tables/hooks.d.ts +44 -0
  37. package/dist/codemod/collections-to-tables/journal.d.ts +10 -0
  38. package/dist/codemod/collections-to-tables/legacy-shims.d.ts +52 -0
  39. package/dist/codemod/collections-to-tables/load-legacy.d.ts +81 -0
  40. package/dist/codemod/collections-to-tables/migrate.d.ts +20 -0
  41. package/dist/codemod/collections-to-tables/modules.d.ts +127 -0
  42. package/dist/codemod/collections-to-tables/moved-imports.d.ts +70 -0
  43. package/dist/codemod/collections-to-tables/moved-symbols.generated.d.ts +12 -0
  44. package/dist/codemod/collections-to-tables/own.d.ts +10 -0
  45. package/dist/codemod/collections-to-tables/path-aliases.d.ts +26 -0
  46. package/dist/codemod/collections-to-tables/plan-context.d.ts +49 -0
  47. package/dist/codemod/collections-to-tables/print-js.d.ts +44 -0
  48. package/dist/codemod/collections-to-tables/project-files.d.ts +144 -0
  49. package/dist/codemod/collections-to-tables/repoint.d.ts +50 -0
  50. package/dist/codemod/collections-to-tables/row-hands.d.ts +7 -0
  51. package/dist/codemod/collections-to-tables/sdk-calls.d.ts +88 -0
  52. package/dist/codemod/collections-to-tables/skills-step.d.ts +13 -0
  53. package/dist/codemod/collections-to-tables/split-constants.d.ts +42 -0
  54. package/dist/codemod/collections-to-tables/storage-paths.d.ts +28 -0
  55. package/dist/codemod/collections-to-tables/types.d.ts +164 -0
  56. package/dist/codemod/collections-to-tables/verify.d.ts +27 -0
  57. package/dist/codemod/collections-to-tables/vocabulary.d.ts +40 -0
  58. package/dist/command-D5lhW_-B.js +9984 -0
  59. package/dist/command-D5lhW_-B.js.map +1 -0
  60. package/dist/commands/agent-setup.d.ts +6 -2
  61. package/dist/commands/cloud/auth.d.ts +2 -0
  62. package/dist/commands/cloud/context.d.ts +1 -1
  63. package/dist/commands/cloud/init.d.ts +2 -2
  64. package/dist/commands/cloud/login-flow.d.ts +30 -1
  65. package/dist/commands/console.d.ts +1 -2
  66. package/dist/commands/db.d.ts +5 -6
  67. package/dist/commands/dev.d.ts +18 -17
  68. package/dist/commands/doctor.d.ts +4 -5
  69. package/dist/commands/eject.d.ts +17 -13
  70. package/dist/commands/generate-view.d.ts +20 -9
  71. package/dist/commands/generate_sdk.d.ts +27 -27
  72. package/dist/commands/init.d.ts +21 -8
  73. package/dist/commands/migrate.d.ts +24 -0
  74. package/dist/commands/schema-reconcile.d.ts +1 -1
  75. package/dist/commands/skills.d.ts +8 -0
  76. package/dist/commands/verify-cms.d.ts +28 -0
  77. package/dist/commands/verify.d.ts +14 -9
  78. package/dist/{consent-BD7F29T3.js → consent-BXLIrMl8.js} +2 -2
  79. package/dist/{consent-BD7F29T3.js.map → consent-BXLIrMl8.js.map} +1 -1
  80. package/dist/{console-CdwIYOMV.js → console-C1d3LwB7.js} +14 -14
  81. package/dist/console-C1d3LwB7.js.map +1 -0
  82. package/dist/{context-AXdAh-q8.js → context--JwaHaZp.js} +6 -5
  83. package/dist/context--JwaHaZp.js.map +1 -0
  84. package/dist/{daemon-Cp7oNXth.js → daemon-w30PsdwV.js} +2 -2
  85. package/dist/{daemon-Cp7oNXth.js.map → daemon-w30PsdwV.js.map} +1 -1
  86. package/dist/{db-DBbKpjYX.js → db-DQZK9n9c.js} +52 -51
  87. package/dist/db-DQZK9n9c.js.map +1 -0
  88. package/dist/{derive-ae9UOoOB.js → derive-C3ezmY-p.js} +105 -133
  89. package/dist/derive-C3ezmY-p.js.map +1 -0
  90. package/dist/{dev-C93d4QIv.js → dev-PY5h4O6u.js} +142 -84
  91. package/dist/dev-PY5h4O6u.js.map +1 -0
  92. package/dist/dev-db/attver.d.ts +32 -0
  93. package/dist/dev-db/pull.d.ts +15 -1
  94. package/dist/{dev-preflight-Cxv3TiD1.js → dev-preflight-DjvcV6SK.js} +5 -5
  95. package/dist/dev-preflight-DjvcV6SK.js.map +1 -0
  96. package/dist/{dev-server-OJsUGZEB.js → dev-server-BLxCbQEP.js} +2 -2
  97. package/dist/{dev-server-OJsUGZEB.js.map → dev-server-BLxCbQEP.js.map} +1 -1
  98. package/dist/{doctor-BBPQUO2g.js → doctor-CnUu8kpM.js} +39 -62
  99. package/dist/doctor-CnUu8kpM.js.map +1 -0
  100. package/dist/doctor-environment.d.ts +6 -6
  101. package/dist/{eject-DABcDnPN.js → eject-Bhzd6hgb.js} +25 -16
  102. package/dist/eject-Bhzd6hgb.js.map +1 -0
  103. package/dist/{fold-static-BWzxNn06.js → fold-static-CKewnAPX.js} +5 -3
  104. package/dist/fold-static-CKewnAPX.js.map +1 -0
  105. package/dist/{generate-view-IFwCADvb.js → generate-view-CTOluXvH.js} +160 -89
  106. package/dist/generate-view-CTOluXvH.js.map +1 -0
  107. package/dist/{generate_sdk-DNmNuFuW.js → generate_sdk-De-aLC1L.js} +120 -137
  108. package/dist/generate_sdk-De-aLC1L.js.map +1 -0
  109. package/dist/import-schema-module-Df67TIWj.js +51 -0
  110. package/dist/import-schema-module-Df67TIWj.js.map +1 -0
  111. package/dist/index.es.js +64 -51
  112. package/dist/index.es.js.map +1 -1
  113. package/dist/{init-vL1DWOeC.js → init-Dtl-IcXf.js} +83 -80
  114. package/dist/init-Dtl-IcXf.js.map +1 -0
  115. package/dist/last-dev-database-Dc8cP01o.js +2 -0
  116. package/dist/{manifest-BtzDy7KQ.js → manifest-C3uLDrrJ.js} +115 -40
  117. package/dist/manifest-C3uLDrrJ.js.map +1 -0
  118. package/dist/manifest.d.ts +79 -24
  119. package/dist/migrate-VrKoi3nB.js +138 -0
  120. package/dist/migrate-VrKoi3nB.js.map +1 -0
  121. package/dist/{normalize-imports-Bd5Y4yLp.js → normalize-imports-DwxqEMYq.js} +3 -3
  122. package/dist/{normalize-imports-Bd5Y4yLp.js.map → normalize-imports-DwxqEMYq.js.map} +1 -1
  123. package/dist/path-flags-7O5uPBcQ.js +139 -0
  124. package/dist/path-flags-7O5uPBcQ.js.map +1 -0
  125. package/dist/{prepare-CTw9NEkh.js → prepare-Ccxspoj-.js} +4 -4
  126. package/dist/{prepare-CTw9NEkh.js.map → prepare-Ccxspoj-.js.map} +1 -1
  127. package/dist/project-CLcF5i8c.js +360 -0
  128. package/dist/project-CLcF5i8c.js.map +1 -0
  129. package/dist/project-schema-CsSOG2gE.js +30 -0
  130. package/dist/project-schema-CsSOG2gE.js.map +1 -0
  131. package/dist/{pull-DDMpsZ5r.js → pull-DRWqBZp5.js} +327 -4
  132. package/dist/pull-DRWqBZp5.js.map +1 -0
  133. package/dist/resolve-BY7bSFRT.js +2 -0
  134. package/dist/resources/derive.d.ts +19 -13
  135. package/dist/{resources-CPSC5Kcu.js → resources-Dpfs2y8P.js} +5 -4
  136. package/dist/{resources-CPSC5Kcu.js.map → resources-Dpfs2y8P.js.map} +1 -1
  137. package/dist/{schema-DtLPsXbT.js → schema-CdDjv5zI.js} +41 -39
  138. package/dist/schema-CdDjv5zI.js.map +1 -0
  139. package/dist/schema-dir-Cd1kvYbf.js +98 -0
  140. package/dist/schema-dir-Cd1kvYbf.js.map +1 -0
  141. package/dist/schema-reconcile-BAupXfkd.js +2 -0
  142. package/dist/schema-text-CpNrsuMe.js +73 -0
  143. package/dist/schema-text-CpNrsuMe.js.map +1 -0
  144. package/dist/{skills-CbwV6vw_.js → skills-CXjA9TWw.js} +54 -10
  145. package/dist/skills-CXjA9TWw.js.map +1 -0
  146. package/dist/{start-YOr3X5Zm.js → start-Bwbtt2W5.js} +7 -10
  147. package/dist/{start-YOr3X5Zm.js.map → start-Bwbtt2W5.js.map} +1 -1
  148. package/dist/{status-BREvtzJm.js → status-D7XCGHu2.js} +12 -12
  149. package/dist/status-D7XCGHu2.js.map +1 -0
  150. package/dist/{storage-CO9ouK76.js → storage-iTqj5-Av.js} +12 -11
  151. package/dist/storage-iTqj5-Av.js.map +1 -0
  152. package/dist/{telemetry-DwK5RQJl.js → telemetry-BP_1Cl9r.js} +4 -4
  153. package/dist/{telemetry-DwK5RQJl.js.map → telemetry-BP_1Cl9r.js.map} +1 -1
  154. package/dist/{telemetry-CgwJPVMO.js → telemetry-M3HjlyhZ.js} +2 -2
  155. package/dist/{telemetry-CgwJPVMO.js.map → telemetry-M3HjlyhZ.js.map} +1 -1
  156. package/dist/{upgrade-B7sVwL8S.js → upgrade-oZzJ13jM.js} +5 -4
  157. package/dist/{upgrade-B7sVwL8S.js.map → upgrade-oZzJ13jM.js.map} +1 -1
  158. package/dist/utils/backend-guard.d.ts +47 -0
  159. package/dist/utils/cms-directories.d.ts +6 -0
  160. package/dist/utils/dev-preflight.d.ts +2 -2
  161. package/dist/utils/import-schema-module.d.ts +16 -0
  162. package/dist/utils/path-flags.d.ts +35 -16
  163. package/dist/utils/project-schema.d.ts +40 -0
  164. package/dist/utils/project.d.ts +8 -2
  165. package/dist/utils/schema-dir.d.ts +32 -0
  166. package/dist/utils/schema-drift.d.ts +6 -0
  167. package/dist/utils/schema-text.d.ts +24 -0
  168. package/dist/verify-5p_vaUG2.js +1160 -0
  169. package/dist/verify-5p_vaUG2.js.map +1 -0
  170. package/package.json +11 -8
  171. package/runtime/dev-server.mjs +5 -1
  172. package/templates/eject/Dockerfile +1 -4
  173. package/templates/eject/backend/src/env.ts +1 -1
  174. package/templates/eject/backend/src/index.ts +53 -40
  175. package/templates/eject/docker-compose.custom.yml +1 -1
  176. package/templates/overlays/baas/README.md +39 -12
  177. package/templates/overlays/baas/ai-instructions.md +8 -8
  178. package/templates/overlays/baas/{config → backend}/storage.ts +3 -4
  179. package/templates/overlays/baas/backend/tsconfig.json +10 -12
  180. package/templates/overlays/baas/package.json +1 -2
  181. package/templates/overlays/baas/pnpm-workspace.yaml +0 -1
  182. package/templates/presets/blank/backend/schema/index.ts +19 -0
  183. package/templates/presets/blank/frontend/src/App.tsx +56 -0
  184. package/templates/presets/ecommerce/backend/schema/categories.ts +12 -0
  185. package/templates/presets/ecommerce/backend/schema/index.ts +23 -0
  186. package/templates/presets/ecommerce/backend/schema/orders.ts +13 -0
  187. package/templates/presets/ecommerce/backend/schema/products.ts +18 -0
  188. package/templates/presets/ecommerce/frontend/src/App.tsx +59 -0
  189. package/templates/presets/ecommerce/frontend/src/cms/categories.tsx +12 -0
  190. package/templates/presets/ecommerce/frontend/src/cms/orders.tsx +38 -0
  191. package/templates/presets/ecommerce/frontend/src/cms/products.tsx +27 -0
  192. package/templates/resource-graphs/blank.json +2 -2
  193. package/templates/resource-graphs/blog.json +5 -5
  194. package/templates/resource-graphs/ecommerce.json +5 -5
  195. package/templates/resource-graphs/headless.json +1 -1
  196. package/templates/template/.claude/hooks/post-edit-collection.sh +27 -23
  197. package/templates/template/.cursorrules +2 -2
  198. package/templates/template/.env.example +6 -17
  199. package/templates/template/.github/copilot-instructions.md +2 -2
  200. package/templates/template/.windsurfrules +2 -2
  201. package/templates/template/AGENTS.md +2 -2
  202. package/templates/template/CLAUDE.md +2 -2
  203. package/templates/template/README.md +47 -13
  204. package/templates/template/ai-instructions.md +15 -14
  205. package/templates/template/backend/functions/hello.ts +1 -1
  206. package/templates/template/backend/package.json +0 -2
  207. package/templates/template/{config → backend}/resources.ts +3 -3
  208. package/templates/template/backend/schema/authors.ts +11 -0
  209. package/templates/template/backend/schema/index.ts +29 -0
  210. package/templates/template/backend/schema/posts.ts +29 -0
  211. package/templates/template/backend/schema/tags.ts +9 -0
  212. package/templates/template/backend/schema/users.ts +32 -0
  213. package/templates/template/{config → backend}/storage.ts +4 -4
  214. package/templates/template/backend/tsconfig.json +15 -20
  215. package/templates/template/docker-compose.yml +3 -3
  216. package/templates/template/frontend/package.json +0 -2
  217. package/templates/template/frontend/src/App.tsx +10 -4
  218. package/templates/template/frontend/src/cms/authors.tsx +7 -0
  219. package/templates/template/frontend/src/cms/posts.tsx +27 -0
  220. package/templates/template/frontend/src/cms/tags.tsx +11 -0
  221. package/templates/template/frontend/src/cms/ui-config.json +3 -0
  222. package/templates/template/frontend/src/cms/users.tsx +54 -0
  223. package/templates/template/frontend/src/{virtual.d.ts → vite-env.d.ts} +0 -4
  224. package/templates/template/frontend/vite.config.ts +6 -2
  225. package/templates/template/gitignore +1 -1
  226. package/templates/template/package.json +1 -2
  227. package/templates/template/pnpm-workspace.yaml +0 -1
  228. package/templates/template/scripts/example.ts +3 -3
  229. package/templates/template/tsconfig.json +1 -1
  230. package/templates/views/AppView.tsx.tmpl +4 -4
  231. package/templates/views/EntityView.tsx.tmpl +3 -4
  232. package/dist/api-keys-Dfw5-9s1.js.map +0 -1
  233. package/dist/apps-MKQbgDtN.js.map +0 -1
  234. package/dist/build-BuKTnec8.js.map +0 -1
  235. package/dist/bundle-BAH4FCju.js.map +0 -1
  236. package/dist/cloud-Cj5ey3l_.js.map +0 -1
  237. package/dist/collection-drift-BKj_BoMq.js +0 -106
  238. package/dist/collection-drift-BKj_BoMq.js.map +0 -1
  239. package/dist/collections-dir-DlvDhime.js +0 -69
  240. package/dist/collections-dir-DlvDhime.js.map +0 -1
  241. package/dist/console-CdwIYOMV.js.map +0 -1
  242. package/dist/context-AXdAh-q8.js.map +0 -1
  243. package/dist/db-DBbKpjYX.js.map +0 -1
  244. package/dist/derive-ae9UOoOB.js.map +0 -1
  245. package/dist/dev-C93d4QIv.js.map +0 -1
  246. package/dist/dev-preflight-Cxv3TiD1.js.map +0 -1
  247. package/dist/doctor-BBPQUO2g.js.map +0 -1
  248. package/dist/eject-DABcDnPN.js.map +0 -1
  249. package/dist/fold-static-BWzxNn06.js.map +0 -1
  250. package/dist/generate-view-IFwCADvb.js.map +0 -1
  251. package/dist/generate_sdk-DNmNuFuW.js.map +0 -1
  252. package/dist/init-vL1DWOeC.js.map +0 -1
  253. package/dist/last-dev-database-DpW5dfoX.js +0 -2
  254. package/dist/manifest-BtzDy7KQ.js.map +0 -1
  255. package/dist/path-flags-DNvtEi2-.js +0 -92
  256. package/dist/path-flags-DNvtEi2-.js.map +0 -1
  257. package/dist/project-CasK56vN.js.map +0 -1
  258. package/dist/pull-DDMpsZ5r.js.map +0 -1
  259. package/dist/resolve-D647F1LA.js +0 -2
  260. package/dist/schema-DtLPsXbT.js.map +0 -1
  261. package/dist/schema-reconcile-DkArN9jF.js +0 -2
  262. package/dist/skills-CbwV6vw_.js.map +0 -1
  263. package/dist/status-BREvtzJm.js.map +0 -1
  264. package/dist/storage-CO9ouK76.js.map +0 -1
  265. package/dist/utils/collection-drift.d.ts +0 -27
  266. package/dist/utils/collections-dir.d.ts +0 -14
  267. package/dist/verify-Y3rWSgfA.js +0 -730
  268. package/dist/verify-Y3rWSgfA.js.map +0 -1
  269. package/templates/overlays/baas/config/index.ts +0 -24
  270. package/templates/overlays/baas/config/package.json +0 -30
  271. package/templates/template/config/cms.d.ts +0 -15
  272. package/templates/template/config/collections/authors.ts +0 -47
  273. package/templates/template/config/collections/index.ts +0 -44
  274. package/templates/template/config/collections/posts.ts +0 -94
  275. package/templates/template/config/collections/presets/blank/index.ts +0 -5
  276. package/templates/template/config/collections/presets/ecommerce/categories.ts +0 -42
  277. package/templates/template/config/collections/presets/ecommerce/index.ts +0 -31
  278. package/templates/template/config/collections/presets/ecommerce/orders.ts +0 -78
  279. package/templates/template/config/collections/presets/ecommerce/products.ts +0 -73
  280. package/templates/template/config/collections/tags.ts +0 -27
  281. package/templates/template/config/collections/users.ts +0 -149
  282. package/templates/template/config/frontend-assets.d.ts +0 -17
  283. package/templates/template/config/index.ts +0 -12
  284. package/templates/template/config/package.json +0 -30
  285. package/templates/template/config/tsconfig.json +0 -35
  286. /package/templates/eject/{config → backend}/resources.ts +0 -0
@@ -1,27 +0,0 @@
1
- import { defineCollection } from "@rebasepro/cms-types";
2
-
3
- const tagsCollection = defineCollection({
4
- name: "Tags",
5
- singularName: "Tag",
6
- slug: "tags",
7
- table: "tags",
8
- properties: {
9
- id: {
10
- name: "ID",
11
- type: "number",
12
- isId: "increment"
13
- },
14
- name: {
15
- name: "Tag Name",
16
- type: "string",
17
- validation: {
18
- required: true
19
- }
20
- }
21
- },
22
- admin: {
23
- icon: "Tag"
24
- }
25
- });
26
-
27
- export default tagsCollection;
@@ -1,149 +0,0 @@
1
- import { defineCollection } from "@rebasepro/cms-types";
2
-
3
- const usersCollection = defineCollection({
4
- name: "Users",
5
- singularName: "User",
6
- slug: "users",
7
- auth: { enabled: true },
8
- table: "users",
9
- schema: "rebase",
10
- securityRules: [
11
- {
12
- operation: "select",
13
- roles: ["admin"]
14
- },
15
- {
16
- operations: ["insert", "update", "delete"],
17
- roles: ["admin"]
18
- }
19
- ],
20
- properties: {
21
- id: {
22
- name: "ID",
23
- type: "string",
24
- isId: "uuid",
25
- admin: {
26
- readOnly: true
27
- }
28
- },
29
- email: {
30
- name: "Email",
31
- type: "string",
32
- validation: {
33
- required: true,
34
- unique: true
35
- }
36
- },
37
- displayName: {
38
- name: "Name",
39
- type: "string",
40
- columnName: "display_name"
41
- },
42
- photoURL: {
43
- name: "Photo URL",
44
- type: "string",
45
- columnName: "photo_url",
46
- url: true,
47
- admin: { urlPreview: "image" }
48
- },
49
- roles: {
50
- name: "Roles",
51
- type: "array",
52
- columnType: "text[]",
53
- of: {
54
- name: "Role",
55
- type: "string",
56
- enum: {
57
- admin: "Admin",
58
- editor: "Editor",
59
- viewer: "Viewer"
60
- }
61
- }
62
- },
63
- passwordHash: {
64
- name: "Password Hash",
65
- type: "string",
66
- columnName: "password_hash",
67
- excludeFromApi: true,
68
- admin: {
69
- hideFromCollection: true,
70
- disabled: { hidden: true }
71
- }
72
- },
73
- emailVerified: {
74
- name: "Email Verified",
75
- type: "boolean",
76
- columnName: "email_verified",
77
- defaultValue: false,
78
- admin: {
79
- hideFromCollection: true,
80
- disabled: { hidden: true }
81
- }
82
- },
83
- emailVerificationToken: {
84
- name: "Email Verification Token",
85
- type: "string",
86
- columnName: "email_verification_token",
87
- excludeFromApi: true,
88
- admin: {
89
- hideFromCollection: true,
90
- disabled: { hidden: true }
91
- }
92
- },
93
- emailVerificationSentAt: {
94
- name: "Email Verification Sent At",
95
- type: "date",
96
- columnName: "email_verification_sent_at",
97
- admin: {
98
- hideFromCollection: true,
99
- disabled: { hidden: true }
100
- }
101
- },
102
- metadata: {
103
- name: "Metadata",
104
- type: "map",
105
- keyValue: true,
106
- properties: {},
107
- defaultValue: {},
108
- admin: {
109
- hideFromCollection: true,
110
- disabled: { hidden: true }
111
- }
112
- },
113
- createdAt: {
114
- name: "Created At",
115
- type: "date",
116
- columnName: "created_at",
117
- autoValue: "on_create",
118
- admin: {
119
- readOnly: true
120
- }
121
- },
122
- updatedAt: {
123
- name: "Updated At",
124
- type: "date",
125
- columnName: "updated_at",
126
- autoValue: "on_update",
127
- admin: {
128
- hideFromCollection: true,
129
- disabled: { hidden: true }
130
- }
131
- }
132
- },
133
- admin: {
134
- icon: "Users",
135
- group: "Settings",
136
- openEntityMode: "dialog",
137
- disableDefaultActions: ["copy"],
138
- sort: ["createdAt", "desc"],
139
- propertiesOrder: [
140
- "id",
141
- "email",
142
- "displayName",
143
- "roles",
144
- "createdAt"
145
- ]
146
- }
147
- });
148
-
149
- export default usersCollection;
@@ -1,17 +0,0 @@
1
- /**
2
- * Ambient declarations for the asset imports a frontend component makes.
3
- *
4
- * A collection that points at a custom `Field` or `Preview` with a lazy `import()`
5
- * thunk gets that reference type-checked — which means TypeScript resolves the
6
- * component's *own* imports too, including `import icon from "./icon.png"`. That
7
- * import is Vite's doing and means nothing to `tsc`: the frontend gets away with it
8
- * through `vite/client` types, but those belong to the frontend's program, not this
9
- * one, and Vite is not a dependency here (nothing in `config/` runs in a browser).
10
- *
11
- * Without these three lines, adding your first custom component fails the config and
12
- * backend builds with `Cannot find module './icon.png'` — pointing at a frontend file
13
- * from a build that has no obvious business compiling it.
14
- */
15
- declare module "*.png" { const src: string; export default src; }
16
- declare module "*.svg" { const src: string; export default src; }
17
- declare module "*.jpg" { const src: string; export default src; }
@@ -1,12 +0,0 @@
1
- /**
2
- * Shared collections index file
3
- * Collections defined here are used by both the frontend and backend
4
- */
5
-
6
- export { collections } from "./collections/index";
7
-
8
- // Who may read, write, delete and list files in storage. Exported from here
9
- // because that is where the runtime and `rebase cloud deploy` look for it — the
10
- // bundle manifest records whether this export exists, so a managed deploy can be
11
- // refused with a readable message instead of turning into a boot crash-loop.
12
- export { storageAuthorize } from "./storage";
@@ -1,30 +0,0 @@
1
- {
2
- "name": "{{PROJECT_NAME}}-config",
3
- "version": "1.0.0",
4
- "description": "Shared collections for frontend and backend",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "type": "module",
8
- "private": true,
9
- "scripts": {
10
- "build": "tsc && rebase normalize-imports dist",
11
- "dev": "tsc --watch",
12
- "clean": "rm -rf dist"
13
- },
14
- "dependencies": {
15
- "@rebasepro/cms-types": "workspace:*",
16
- "@rebasepro/types": "workspace:*"
17
- },
18
- "devDependencies": {
19
- "@types/node": "^22.19.4",
20
- "typescript": "^6.0.3"
21
- },
22
- "exports": {
23
- ".": {
24
- "import": "./dist/index.js",
25
- "types": "./dist/index.d.ts",
26
- "default": "./dist/index.js"
27
- },
28
- "./package.json": "./package.json"
29
- }
30
- }
@@ -1,35 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2022",
4
- "module": "ESNext",
5
- "moduleResolution": "bundler",
6
- "allowSyntheticDefaultImports": true,
7
- "esModuleInterop": true,
8
- "allowJs": true,
9
- "strict": true,
10
- "jsx": "react-jsx",
11
- "noEmit": false,
12
- "declaration": true,
13
- "outDir": "./dist",
14
- "skipLibCheck": true,
15
- "forceConsistentCasingInFileNames": true,
16
- "resolveJsonModule": true,
17
- // Pin the ambient type libraries.
18
- //
19
- // Unset, TypeScript sweeps every `node_modules/@types` it can reach and
20
- // treats each folder as an implicit type library. Under pnpm that reaches
21
- // the virtual store, where packages hoisted for peer resolution live —
22
- // `dompurify` among them, pulled in transitively by the admin editor. The
23
- // backend has no dependency on it and cannot resolve its entry point, so
24
- // `rebase build` failed the whole bundle with:
25
- //
26
- // error TS2688: Cannot find type definition file for 'dompurify'
27
- //
28
- // `frontend/tsconfig.json` has always pinned its own list, which is why the
29
- // frontend never saw this. Naming what this program needs is both the fix
30
- // and the faster compile.
31
- "types": ["node"]
32
- },
33
- "include": ["**/*.ts"],
34
- "exclude": ["node_modules", "dist"]
35
- }