@quickback-dev/cli 0.70.22 → 0.70.23
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/dist/index.js
CHANGED
|
@@ -10,6 +10,37 @@ shaped byte-identically to the CRUD list endpoints they replace, a
|
|
|
10
10
|
hand-re-derived per-slice masking. `defineBundle` generates all of it.
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
13
|
+
// features/events/guests.ts
|
|
14
|
+
import { feature, q } from "@quickback/compiler";
|
|
15
|
+
|
|
16
|
+
export default feature("guests", {
|
|
17
|
+
columns: {
|
|
18
|
+
id: q.id(),
|
|
19
|
+
eventId: q.text().required().index(),
|
|
20
|
+
status: q.text().required(),
|
|
21
|
+
displayName: q.text().required(),
|
|
22
|
+
organizationId: q.scope("organization"),
|
|
23
|
+
...q.audit(),
|
|
24
|
+
...q.softDelete(),
|
|
25
|
+
},
|
|
26
|
+
read: { access: { roles: ["member", "admin"] } },
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
// features/events/supportTickets.ts
|
|
30
|
+
import { feature, q } from "@quickback/compiler";
|
|
31
|
+
|
|
32
|
+
export default feature("supportTickets", {
|
|
33
|
+
columns: {
|
|
34
|
+
id: q.id(),
|
|
35
|
+
eventId: q.text().required().index(),
|
|
36
|
+
subject: q.text().required(),
|
|
37
|
+
organizationId: q.scope("organization"),
|
|
38
|
+
...q.audit(),
|
|
39
|
+
...q.softDelete(),
|
|
40
|
+
},
|
|
41
|
+
read: { access: { roles: ["member", "admin"] } },
|
|
42
|
+
});
|
|
43
|
+
|
|
13
44
|
// features/events/actions/getOverviewBundle.ts
|
|
14
45
|
import { z } from "zod";
|
|
15
46
|
import { defineBundle, list, custom } from "../.quickback/define-bundle";
|
|
@@ -17,17 +48,17 @@ import { defineBundle, list, custom } from "../.quickback/define-bundle";
|
|
|
17
48
|
export default defineBundle({
|
|
18
49
|
path: "/event/:eventId/overview-bundle",
|
|
19
50
|
description: "Console Overview bootstrap",
|
|
20
|
-
access: { roles: ["member", "admin"] },
|
|
21
|
-
etag: true,
|
|
22
|
-
serverTiming: "overview",
|
|
51
|
+
access: { roles: ["member", "admin"] }, // a subset of every list table's read.access
|
|
52
|
+
etag: true, // default true
|
|
53
|
+
serverTiming: "overview", // optional
|
|
23
54
|
sections: {
|
|
24
55
|
guests: list("guests", {
|
|
25
56
|
columns: ["id", "status", "modifiedAt", "createdAt", "displayName"],
|
|
26
|
-
where: { eventId: "$
|
|
57
|
+
where: { eventId: "$path.eventId" },
|
|
27
58
|
orderBy: [{ createdAt: "desc" }],
|
|
28
59
|
limit: 500,
|
|
29
60
|
}),
|
|
30
|
-
tickets: list("supportTickets", { where: { eventId: "$
|
|
61
|
+
tickets: list("supportTickets", { where: { eventId: "$path.eventId" }, orderBy: [{ modifiedAt: "desc" }], limit: 100 }),
|
|
31
62
|
counts: custom(async ({ db, ctx }) => ({ open: 0 }), { output: z.object({ open: z.number().int() }) }),
|
|
32
63
|
},
|
|
33
64
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quickback-dev/cli",
|
|
3
|
-
"version": "0.70.
|
|
3
|
+
"version": "0.70.23",
|
|
4
4
|
"description": "CLI for Quickback — define your backend in TypeScript, compile to a fully wired Cloudflare Worker (or Bun / Node) with auth, database, migrations, security, CMS, and Account UI.",
|
|
5
5
|
"author": "Kardoe Incorporated <paul@kardoe.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,6 +10,37 @@ shaped byte-identically to the CRUD list endpoints they replace, a
|
|
|
10
10
|
hand-re-derived per-slice masking. `defineBundle` generates all of it.
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
13
|
+
// features/events/guests.ts
|
|
14
|
+
import { feature, q } from "@quickback/compiler";
|
|
15
|
+
|
|
16
|
+
export default feature("guests", {
|
|
17
|
+
columns: {
|
|
18
|
+
id: q.id(),
|
|
19
|
+
eventId: q.text().required().index(),
|
|
20
|
+
status: q.text().required(),
|
|
21
|
+
displayName: q.text().required(),
|
|
22
|
+
organizationId: q.scope("organization"),
|
|
23
|
+
...q.audit(),
|
|
24
|
+
...q.softDelete(),
|
|
25
|
+
},
|
|
26
|
+
read: { access: { roles: ["member", "admin"] } },
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
// features/events/supportTickets.ts
|
|
30
|
+
import { feature, q } from "@quickback/compiler";
|
|
31
|
+
|
|
32
|
+
export default feature("supportTickets", {
|
|
33
|
+
columns: {
|
|
34
|
+
id: q.id(),
|
|
35
|
+
eventId: q.text().required().index(),
|
|
36
|
+
subject: q.text().required(),
|
|
37
|
+
organizationId: q.scope("organization"),
|
|
38
|
+
...q.audit(),
|
|
39
|
+
...q.softDelete(),
|
|
40
|
+
},
|
|
41
|
+
read: { access: { roles: ["member", "admin"] } },
|
|
42
|
+
});
|
|
43
|
+
|
|
13
44
|
// features/events/actions/getOverviewBundle.ts
|
|
14
45
|
import { z } from "zod";
|
|
15
46
|
import { defineBundle, list, custom } from "../.quickback/define-bundle";
|
|
@@ -17,17 +48,17 @@ import { defineBundle, list, custom } from "../.quickback/define-bundle";
|
|
|
17
48
|
export default defineBundle({
|
|
18
49
|
path: "/event/:eventId/overview-bundle",
|
|
19
50
|
description: "Console Overview bootstrap",
|
|
20
|
-
access: { roles: ["member", "admin"] },
|
|
21
|
-
etag: true,
|
|
22
|
-
serverTiming: "overview",
|
|
51
|
+
access: { roles: ["member", "admin"] }, // a subset of every list table's read.access
|
|
52
|
+
etag: true, // default true
|
|
53
|
+
serverTiming: "overview", // optional
|
|
23
54
|
sections: {
|
|
24
55
|
guests: list("guests", {
|
|
25
56
|
columns: ["id", "status", "modifiedAt", "createdAt", "displayName"],
|
|
26
|
-
where: { eventId: "$
|
|
57
|
+
where: { eventId: "$path.eventId" },
|
|
27
58
|
orderBy: [{ createdAt: "desc" }],
|
|
28
59
|
limit: 500,
|
|
29
60
|
}),
|
|
30
|
-
tickets: list("supportTickets", { where: { eventId: "$
|
|
61
|
+
tickets: list("supportTickets", { where: { eventId: "$path.eventId" }, orderBy: [{ modifiedAt: "desc" }], limit: 100 }),
|
|
31
62
|
counts: custom(async ({ db, ctx }) => ({ open: 0 }), { output: z.object({ open: z.number().int() }) }),
|
|
32
63
|
},
|
|
33
64
|
});
|