create-bw-app 0.18.4 → 0.18.6

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-bw-app",
3
3
  "private": false,
4
- "version": "0.18.4",
4
+ "version": "0.18.6",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "create-bw-app": "bin/create-bw-app.mjs",
package/src/constants.mjs CHANGED
@@ -70,6 +70,7 @@ export const MODULE_STARTER_FILES = {
70
70
  "app/(shell)/crm/page.tsx",
71
71
  "app/(shell)/crm/report/page.tsx",
72
72
  "app/api/crm/contacts/route.ts",
73
+ "app/api/dashboard/crm/route.ts",
73
74
  "app/api/crm/organizations/route.ts",
74
75
  "app/api/crm/owners/route.ts",
75
76
  "app/api/crm/report/route.ts",
@@ -119,6 +120,8 @@ export const MODULE_STARTER_FILES = {
119
120
  "app/(shell)/account/projetos/[projectId]/page.tsx",
120
121
  "app/(shell)/account/projetos/[projectId]/loading.tsx",
121
122
  "app/api/projects/_handlers.ts",
123
+ "app/api/dashboard/projects/route.ts",
124
+ "app/api/dashboard/tasks/route.ts",
122
125
  "app/api/projects/route.ts",
123
126
  "app/api/projects/stats/route.ts",
124
127
  "app/api/projects/organizations/route.ts",
@@ -167,14 +170,14 @@ export const PLATFORM_STARTER_FILES = [
167
170
  ];
168
171
 
169
172
  export const APP_DEPENDENCY_DEFAULTS = {
170
- "@brightweblabs/app-shell": "^0.7.3",
173
+ "@brightweblabs/app-shell": "^0.7.4",
171
174
  "@brightweblabs/core-auth": "^0.7.2",
172
175
  "@brightweblabs/infra": "^0.4.0",
173
- "@brightweblabs/module-admin": "^0.5.9",
174
- "@brightweblabs/module-crm": "^0.9.4",
175
- "@brightweblabs/module-marketing": "^0.2.8",
176
- "@brightweblabs/module-orgs": "^0.3.9",
177
- "@brightweblabs/module-projects": "^0.8.2",
176
+ "@brightweblabs/module-admin": "^0.5.10",
177
+ "@brightweblabs/module-crm": "^0.10.0",
178
+ "@brightweblabs/module-marketing": "^0.2.9",
179
+ "@brightweblabs/module-orgs": "^0.3.10",
180
+ "@brightweblabs/module-projects": "^0.9.1",
178
181
  "@brightweblabs/theme": "^0.5.0",
179
182
  "@brightweblabs/ui": "^1.1.1",
180
183
  "geist": "1.7.2",
@@ -9,10 +9,9 @@ async function getJson(path: string) {
9
9
  }
10
10
 
11
11
  const dashboardClient: DashboardDataClient = {
12
- getOverview: () => Promise.reject(new Error("No aggregate dashboard endpoint configured.")),
13
- getProjects: () => getJson("/api/projects/stats"),
14
- getCrm: () => getJson("/api/crm/stats"),
15
- getTasks: () => Promise.reject(new Error("No task dashboard endpoint configured.")),
12
+ getProjects: () => getJson("/api/dashboard/projects"),
13
+ getCrm: () => getJson("/api/dashboard/crm"),
14
+ getTasks: () => getJson("/api/dashboard/tasks"),
16
15
  };
17
16
 
18
17
  export function DashboardLiveMount() {
@@ -0,0 +1,2 @@
1
+ export const dynamic = "force-dynamic";
2
+ export { handleCrmDashboardOverviewGetRequest as GET } from "@brightweblabs/module-crm";
@@ -0,0 +1,2 @@
1
+ export const dynamic = "force-dynamic";
2
+ export { handleProjectsDashboardOverviewGetRequest as GET } from "@brightweblabs/module-projects";
@@ -0,0 +1,2 @@
1
+ export const dynamic = "force-dynamic";
2
+ export { handleTasksDashboardGetRequest as GET } from "@brightweblabs/module-projects";