create-protobase 0.53.6 → 0.53.8

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 (104) hide show
  1. package/dist/templates/erp/package.json +10 -7
  2. package/dist/templates/property-portal/.env.example +18 -0
  3. package/dist/templates/property-portal/API.md +66 -0
  4. package/dist/templates/property-portal/_.gitignore +4 -0
  5. package/dist/templates/property-portal/_bunfig.toml +4 -0
  6. package/dist/templates/property-portal/config/agencies/data.ts +17 -0
  7. package/dist/templates/property-portal/config/agencies/ui.ts +20 -0
  8. package/dist/templates/property-portal/config/alerts/data.ts +20 -0
  9. package/dist/templates/property-portal/config/alerts/ui.ts +18 -0
  10. package/dist/templates/property-portal/config/bottom-bar.test.ts +30 -0
  11. package/dist/templates/property-portal/config/bottom-bar.ts +17 -0
  12. package/dist/templates/property-portal/config/config.test.ts +73 -0
  13. package/dist/templates/property-portal/config/favorites/data.ts +13 -0
  14. package/dist/templates/property-portal/config/favorites/ui.ts +26 -0
  15. package/dist/templates/property-portal/config/home/page.tsx +19 -0
  16. package/dist/templates/property-portal/config/index.ts +18 -0
  17. package/dist/templates/property-portal/config/listing_photos/data.ts +15 -0
  18. package/dist/templates/property-portal/config/listing_photos/ui.ts +20 -0
  19. package/dist/templates/property-portal/config/listings/data.ts +55 -0
  20. package/dist/templates/property-portal/config/listings/labels.ts +40 -0
  21. package/dist/templates/property-portal/config/listings/rules.test.ts +27 -0
  22. package/dist/templates/property-portal/config/listings/rules.ts +25 -0
  23. package/dist/templates/property-portal/config/listings/ui.ts +121 -0
  24. package/dist/templates/property-portal/config/map-layers.test.ts +16 -0
  25. package/dist/templates/property-portal/config/notes/data.ts +19 -0
  26. package/dist/templates/property-portal/config/notes/ui.ts +16 -0
  27. package/dist/templates/property-portal/config/photo-variants.ts +10 -0
  28. package/dist/templates/property-portal/config/places/data.ts +15 -0
  29. package/dist/templates/property-portal/config/places/ui.ts +23 -0
  30. package/dist/templates/property-portal/config/roles.test.ts +89 -0
  31. package/dist/templates/property-portal/config/roles.ts +40 -0
  32. package/dist/templates/property-portal/config/saved_searches/data.ts +25 -0
  33. package/dist/templates/property-portal/config/saved_searches/filter.ts +20 -0
  34. package/dist/templates/property-portal/config/saved_searches/rules.test.ts +14 -0
  35. package/dist/templates/property-portal/config/saved_searches/rules.ts +10 -0
  36. package/dist/templates/property-portal/config/saved_searches/ui.ts +32 -0
  37. package/dist/templates/property-portal/db/connection.ts +7 -0
  38. package/dist/templates/property-portal/db/drop.ts +15 -0
  39. package/dist/templates/property-portal/db/kysely.ts +13 -0
  40. package/dist/templates/property-portal/db/migrate.ts +31 -0
  41. package/dist/templates/property-portal/db/migrations/001_market.sql +101 -0
  42. package/dist/templates/property-portal/db/migrations/002_auth.sql +36 -0
  43. package/dist/templates/property-portal/db/migrations/003_jobs.sql +576 -0
  44. package/dist/templates/property-portal/db/migrations/004_members.sql +71 -0
  45. package/dist/templates/property-portal/db/migrations/005_listing_published.sql +14 -0
  46. package/dist/templates/property-portal/db/migrations/006_price_split.sql +61 -0
  47. package/dist/templates/property-portal/db/migrations/007_listing_position.sql +2 -0
  48. package/dist/templates/property-portal/db/migrations/007_photo_placeholders.sql +4 -0
  49. package/dist/templates/property-portal/db/migrations/008_saved_searches.sql +42 -0
  50. package/dist/templates/property-portal/db/migrations/009_listing_position_exact.sql +3 -0
  51. package/dist/templates/property-portal/db/migrations/010_saved_search_name.sql +3 -0
  52. package/dist/templates/property-portal/db/migrations/011_filter_indexes.sql +36 -0
  53. package/dist/templates/property-portal/db/migrations/012_sort_indexes.sql +4 -0
  54. package/dist/templates/property-portal/db/migrations/013_alert_mail.sql +26 -0
  55. package/dist/templates/property-portal/db/migrations/014_auth.sql +4 -0
  56. package/dist/templates/property-portal/db/migrations/015_auth.sql +319 -0
  57. package/dist/templates/property-portal/emails/alerted-listing.tsx +63 -0
  58. package/dist/templates/property-portal/emails/daily-digest.tsx +26 -0
  59. package/dist/templates/property-portal/emails/emails.test.ts +53 -0
  60. package/dist/templates/property-portal/emails/instant-alert.tsx +26 -0
  61. package/dist/templates/property-portal/jobs/alerted-listings.test.ts +19 -0
  62. package/dist/templates/property-portal/jobs/alerted-listings.ts +42 -0
  63. package/dist/templates/property-portal/jobs/daily-alerts.ts +21 -0
  64. package/dist/templates/property-portal/jobs/email-alerts.ts +44 -0
  65. package/dist/templates/property-portal/jobs/match-listing.ts +30 -0
  66. package/dist/templates/property-portal/jobs/match.test.ts +51 -0
  67. package/dist/templates/property-portal/jobs/match.ts +15 -0
  68. package/dist/templates/property-portal/jobs/offered.test.ts +9 -0
  69. package/dist/templates/property-portal/jobs/offered.ts +12 -0
  70. package/dist/templates/property-portal/map/tiles-proxy.test.ts +78 -0
  71. package/dist/templates/property-portal/map/tiles-proxy.ts +48 -0
  72. package/dist/templates/property-portal/map/tiles.ts +16 -0
  73. package/dist/templates/property-portal/node-types.d.ts +1 -0
  74. package/dist/templates/property-portal/package.json +42 -0
  75. package/dist/templates/property-portal/protobase.config.ts +57 -0
  76. package/dist/templates/property-portal/protobase.ui.tsx +21 -0
  77. package/dist/templates/property-portal/seed/builders/agency.ts +22 -0
  78. package/dist/templates/property-portal/seed/builders/distance.test.ts +14 -0
  79. package/dist/templates/property-portal/seed/builders/distance.ts +12 -0
  80. package/dist/templates/property-portal/seed/builders/listing.ts +177 -0
  81. package/dist/templates/property-portal/seed/builders/member.ts +136 -0
  82. package/dist/templates/property-portal/seed/builders/search-filter.test.ts +17 -0
  83. package/dist/templates/property-portal/seed/builders/search-filter.ts +44 -0
  84. package/dist/templates/property-portal/seed/calendar.ts +4 -0
  85. package/dist/templates/property-portal/seed/cli.ts +50 -0
  86. package/dist/templates/property-portal/seed/copy.ts +22 -0
  87. package/dist/templates/property-portal/seed/data/names.ts +61 -0
  88. package/dist/templates/property-portal/seed/data/places.ts +54 -0
  89. package/dist/templates/property-portal/seed/format.ts +20 -0
  90. package/dist/templates/property-portal/seed/maintenance.ts +65 -0
  91. package/dist/templates/property-portal/seed/photos/canvas.ts +48 -0
  92. package/dist/templates/property-portal/seed/photos/draw.ts +202 -0
  93. package/dist/templates/property-portal/seed/photos/library.ts +44 -0
  94. package/dist/templates/property-portal/seed/photos/png.ts +34 -0
  95. package/dist/templates/property-portal/seed/rng.ts +36 -0
  96. package/dist/templates/property-portal/seed/scales.ts +9 -0
  97. package/dist/templates/property-portal/seed/steps/market.ts +54 -0
  98. package/dist/templates/property-portal/seed/steps/members.ts +41 -0
  99. package/dist/templates/property-portal/seed/world.ts +98 -0
  100. package/dist/templates/property-portal/tsconfig.json +24 -0
  101. package/dist/templates/property-portal/vitest.config.ts +4 -0
  102. package/dist/templates/real-estate/package.json +10 -7
  103. package/dist/templates/scratch/package.json +10 -7
  104. package/package.json +2 -2
@@ -0,0 +1,4 @@
1
+ import { defineConfig } from 'vitest/config'
2
+
3
+ // The unit tests next to the config, the jobs, the emails, the seed and the map tiles; none of them needs a database.
4
+ export default defineConfig({ test: { include: ['config/**/*.test.ts', 'jobs/**/*.test.ts', 'emails/**/*.test.ts', 'seed/**/*.test.ts', 'map/**/*.test.ts'] } })
@@ -21,15 +21,18 @@
21
21
  "kysely": "^0.29.6",
22
22
  "pg": "^8.23.1",
23
23
  "postgres": "^3.4.9",
24
- "react": "^19.3.0"
24
+ "react": "^19.3.0",
25
+ "react-email": "^6.11.1",
26
+ "sharp": "^0.35.5",
27
+ "zod": "^4.6.5"
25
28
  },
26
29
  "devDependencies": {
27
- "@protobase/cli": "^0.53.6",
28
- "@protobase/config": "^0.53.6",
29
- "@protobase/layout": "^0.53.6",
30
- "@protobase/schema": "^0.53.6",
31
- "@protobase/server": "^0.53.6",
32
- "@protobase/ui": "^0.53.6",
30
+ "@protobase/cli": "^0.53.8",
31
+ "@protobase/config": "^0.53.8",
32
+ "@protobase/layout": "^0.53.8",
33
+ "@protobase/schema": "^0.53.8",
34
+ "@protobase/server": "^0.53.8",
35
+ "@protobase/ui": "^0.53.8",
33
36
  "@types/node": "^22.20.5",
34
37
  "@types/pg": "^8.23.1",
35
38
  "@types/react": "^19.3.0",
@@ -18,15 +18,18 @@
18
18
  "kysely": "^0.29.6",
19
19
  "pg": "^8.23.1",
20
20
  "postgres": "^3.4.9",
21
- "react": "^19.3.0"
21
+ "react": "^19.3.0",
22
+ "react-email": "^6.11.1",
23
+ "sharp": "^0.35.5",
24
+ "zod": "^4.6.5"
22
25
  },
23
26
  "devDependencies": {
24
- "@protobase/cli": "^0.53.6",
25
- "@protobase/config": "^0.53.6",
26
- "@protobase/layout": "^0.53.6",
27
- "@protobase/schema": "^0.53.6",
28
- "@protobase/server": "^0.53.6",
29
- "@protobase/ui": "^0.53.6",
27
+ "@protobase/cli": "^0.53.8",
28
+ "@protobase/config": "^0.53.8",
29
+ "@protobase/layout": "^0.53.8",
30
+ "@protobase/schema": "^0.53.8",
31
+ "@protobase/server": "^0.53.8",
32
+ "@protobase/ui": "^0.53.8",
30
33
  "@types/node": "^22.20.5",
31
34
  "@types/pg": "^8.23.1",
32
35
  "@types/react": "^19.3.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-protobase",
3
- "version": "0.53.6",
3
+ "version": "0.53.8",
4
4
  "description": "npm create protobase: starts a new Protobase project from one of its presets, or on an existing Postgres database.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -28,7 +28,7 @@
28
28
  "postgres": "^3.4.9"
29
29
  },
30
30
  "devDependencies": {
31
- "@protobase/cli": "0.53.6"
31
+ "@protobase/cli": "0.53.8"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public"