better-supabase 0.21.0 → 0.23.0
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/{access-sql-CNIgUqWf.js → access-sql-bjWFUWlk.js} +11 -0
- package/dist/{adapter-DZJZTY6g.js → adapter-D4aNBxhm.js} +2 -2
- package/dist/ai-sdk/agents/index.d.ts +2 -2
- package/dist/api-3C0AWFeP.js +696 -0
- package/dist/{api-Cj4W_pqT.d.ts → api-CHObZL7m.d.ts} +1 -1
- package/dist/{app-tables-C5HjXs2k.d.ts → app-tables-CJO6pWwy.d.ts} +1 -1
- package/dist/astro/index.js +5 -5
- package/dist/{authorization-DhoA7dsD.d.ts → authorization-Dtwpjeuz.d.ts} +91 -13
- package/dist/{bind-CFsctoFJ.d.ts → bind-DaoTunvE.d.ts} +1 -1
- package/dist/{block-env-BrUNeuJ_.d.ts → block-env-DUyo2I5O.d.ts} +3 -3
- package/dist/blocks/access-requests/index.js +1 -1
- package/dist/blocks/activities/index.js +1 -1
- package/dist/blocks/agents/index.js +1 -1
- package/dist/blocks/ai-chat/index.d.ts +3 -3
- package/dist/blocks/ai-chat/index.js +1 -1
- package/dist/blocks/ai-keys/index.js +1 -1
- package/dist/blocks/announcements/index.d.ts +3 -3
- package/dist/blocks/announcements/index.js +1 -1
- package/dist/blocks/api-keys/index.d.ts +1 -1
- package/dist/blocks/api-keys/index.js +1 -1
- package/dist/blocks/approvals/index.js +1 -1
- package/dist/blocks/assets/index.js +1 -1
- package/dist/blocks/assignment/index.js +1 -1
- package/dist/blocks/attachments/index.d.ts +1 -1
- package/dist/blocks/attachments/index.js +1 -1
- package/dist/blocks/audit/index.d.ts +2 -2
- package/dist/blocks/audit/index.js +1 -1
- package/dist/blocks/automations/index.d.ts +1 -1
- package/dist/blocks/automations/index.js +1 -1
- package/dist/blocks/billable-time/index.js +1 -1
- package/dist/blocks/billing/index.d.ts +1 -1
- package/dist/blocks/billing/index.js +2 -2
- package/dist/blocks/bookings/index.d.ts +1 -1
- package/dist/blocks/bookings/index.js +1 -1
- package/dist/blocks/bulk/index.js +1 -1
- package/dist/blocks/calendar/index.d.ts +5 -1
- package/dist/blocks/calendar/index.js +7 -4
- package/dist/blocks/catalog/index.js +1 -1
- package/dist/blocks/channels/index.js +1 -1
- package/dist/blocks/collections/index.js +1 -1
- package/dist/blocks/comments/index.d.ts +4 -4
- package/dist/blocks/compliance/index.js +1 -1
- package/dist/blocks/connectors/index.js +1 -1
- package/dist/blocks/contacts/index.js +1 -1
- package/dist/blocks/content/index.js +1 -1
- package/dist/blocks/contracts/index.js +1 -1
- package/dist/blocks/courses/index.js +1 -1
- package/dist/blocks/custom-fields/index.d.ts +43 -1
- package/dist/blocks/custom-fields/index.js +41 -2
- package/dist/blocks/data-lifecycle/index.js +1 -1
- package/dist/blocks/deals/index.js +1 -1
- package/dist/blocks/dispatch/index.js +1 -1
- package/dist/blocks/documents/index.js +1 -1
- package/dist/blocks/domains/index.js +1 -1
- package/dist/blocks/donations/index.js +1 -1
- package/dist/blocks/drive/index.d.ts +1 -1
- package/dist/blocks/drive/index.js +1 -1
- package/dist/blocks/employees/index.d.ts +4 -0
- package/dist/blocks/employees/index.js +2 -2
- package/dist/blocks/enrichment/index.js +1 -1
- package/dist/blocks/enrollments/index.js +1 -1
- package/dist/blocks/entitlements/index.d.ts +2 -2
- package/dist/blocks/expenses/index.js +1 -1
- package/dist/blocks/flags/index.js +1 -1
- package/dist/blocks/forecasts/index.js +1 -1
- package/dist/blocks/forms/index.d.ts +1 -1
- package/dist/blocks/forms/index.js +1 -1
- package/dist/blocks/guests/index.js +1 -1
- package/dist/blocks/hiring/index.js +1 -1
- package/dist/blocks/imports/index.js +1 -1
- package/dist/blocks/inbox/index.d.ts +4 -4
- package/dist/blocks/inbox/index.js +1 -1
- package/dist/blocks/incidents/index.js +1 -1
- package/dist/blocks/index.d.ts +1 -1
- package/dist/blocks/index.js +2 -2
- package/dist/blocks/inventory/index.js +1 -1
- package/dist/blocks/invoices/index.js +1 -1
- package/dist/blocks/leases/index.js +1 -1
- package/dist/blocks/leave/index.js +1 -1
- package/dist/blocks/ledger/index.js +1 -1
- package/dist/blocks/mail-sync/index.js +1 -1
- package/dist/blocks/messaging/index.d.ts +4 -4
- package/dist/blocks/messaging/index.js +1 -1
- package/dist/blocks/metrics/index.js +1 -1
- package/dist/blocks/mfa/index.d.ts +1 -1
- package/dist/blocks/moderation/index.js +1 -1
- package/dist/blocks/notifications/index.d.ts +3 -3
- package/dist/blocks/notifications/index.js +3 -3
- package/dist/blocks/numbering/index.js +1 -1
- package/dist/blocks/oauth-server/index.js +1 -1
- package/dist/blocks/onboarding/index.d.ts +1 -1
- package/dist/blocks/orders/index.js +1 -1
- package/dist/blocks/organizations/index.d.ts +2 -2
- package/dist/blocks/organizations/index.js +1 -1
- package/dist/blocks/outbox/index.js +1 -1
- package/dist/blocks/passes/index.js +1 -1
- package/dist/blocks/permissions/index.d.ts +1 -1
- package/dist/blocks/pipelines/index.js +1 -1
- package/dist/blocks/posts/index.js +1 -1
- package/dist/blocks/promotions/index.js +1 -1
- package/dist/blocks/push/index.d.ts +1 -1
- package/dist/blocks/push/index.js +1 -1
- package/dist/blocks/quotes/index.js +1 -1
- package/dist/blocks/reactions/index.d.ts +3 -3
- package/dist/blocks/reactions/index.js +1 -1
- package/dist/blocks/relations/index.js +1 -1
- package/dist/blocks/reminders/index.js +1 -1
- package/dist/blocks/reviews/index.js +1 -1
- package/dist/blocks/saved-views/index.d.ts +1 -1
- package/dist/blocks/saved-views/index.js +1 -1
- package/dist/blocks/scores/index.js +1 -1
- package/dist/blocks/search/index.d.ts +4 -2
- package/dist/blocks/search/index.js +3 -1
- package/dist/blocks/security-events/index.js +1 -1
- package/dist/blocks/segments/index.js +1 -1
- package/dist/blocks/sequences/index.js +1 -1
- package/dist/blocks/service-accounts/index.js +1 -1
- package/dist/blocks/sessions/index.d.ts +1 -1
- package/dist/blocks/settings/index.d.ts +1 -1
- package/dist/blocks/settings/index.js +1 -1
- package/dist/blocks/share-links/index.d.ts +28 -3
- package/dist/blocks/share-links/index.js +59 -23
- package/dist/blocks/shipments/index.js +1 -1
- package/dist/blocks/signatures/index.js +1 -1
- package/dist/blocks/signing-keys/index.js +1 -1
- package/dist/blocks/sla/index.js +1 -1
- package/dist/blocks/sso/index.js +1 -1
- package/dist/blocks/state-machine/index.js +1 -1
- package/dist/blocks/subjects/index.d.ts +1 -1
- package/dist/blocks/tags/index.d.ts +18 -3
- package/dist/blocks/tags/index.js +16 -3
- package/dist/blocks/tasks/index.js +2 -2
- package/dist/blocks/teams/index.d.ts +26 -4
- package/dist/blocks/teams/index.js +11 -4
- package/dist/blocks/templates/index.js +1 -1
- package/dist/blocks/time-tracking/index.d.ts +18 -0
- package/dist/blocks/time-tracking/index.js +13 -4
- package/dist/blocks/timeline/index.js +1 -1
- package/dist/blocks/trash/index.js +1 -1
- package/dist/blocks/undo/index.d.ts +1 -1
- package/dist/blocks/usage/index.d.ts +1 -1
- package/dist/blocks/vercel-marketplace/index.js +1 -1
- package/dist/blocks/versions/index.js +1 -1
- package/dist/blocks/waitlist/index.js +1 -1
- package/dist/blocks/webhooks/index.js +4 -4
- package/dist/blocks/workflow-editor/index.d.ts +3 -3
- package/dist/blocks/workflow-editor/index.js +1 -1
- package/dist/blocks/workflows/index.d.ts +3 -3
- package/dist/blocks/workflows/index.js +1 -1
- package/dist/cli/{add-BTDPjVGC.js → add-C7lKQNBL.js} +11 -11
- package/dist/cli/{add-C0w-mVTQ.js → add-DVHniZOO.js} +2 -2
- package/dist/cli/add-vZRn-uH0.js +1 -0
- package/dist/cli/{backfill-BDdBs6Ne.js → backfill-Lrn-Qp5X.js} +3 -3
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-Bs-lA-U_.js → blocks-2Yw9t-_U.js} +1 -1
- package/dist/cli/{blocks-CQLME-HQ.js → blocks-BKNd886C.js} +1 -1
- package/dist/cli/{cache-DDKao2Va.js → cache-ByhPVMo-.js} +1 -1
- package/dist/cli/{codemod-Bjl998Do.js → codemod-C0eXpzFu.js} +1 -1
- package/dist/cli/{config-BH0goim0.js → config-BVfeG3A5.js} +37 -5
- package/dist/cli/{config-CTRzkX0H.js → config-CeaQMrvS.js} +1 -1
- package/dist/cli/{content-mapper-DgSTl-DL.js → content-mapper-qH-_YQ8H.js} +2 -2
- package/dist/cli/{db-DCeyHS1y.js → db-DwjyUbAh.js} +2 -2
- package/dist/cli/{doctor-CMLWbt44.js → doctor-BnxkqXGA.js} +21 -19
- package/dist/cli/{gen-D3VX8WdV.js → gen-aERmP3Sw.js} +14 -14
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +7 -7
- package/dist/cli/{init-D6D6eWze.js → init-DWUqVSVW.js} +6 -6
- package/dist/cli/{live-C_xgTOfD.js → live-KcdTBUij.js} +2 -2
- package/dist/cli/{mcp-B0Irjbes.js → mcp-Dsjjo-LT.js} +2 -2
- package/dist/cli/{metadata-cLXra-XB.js → metadata-DWQSIZ59.js} +3 -3
- package/dist/cli/{migration-safety-OUK-Afbb.js → migration-safety-Cy7xlU4G.js} +2 -2
- package/dist/cli/{migrations-CHenMvl_.js → migrations-CUjNXokR.js} +1 -1
- package/dist/cli/{module-migration-6V7vXWUK.js → module-migration-C6NLY9iZ.js} +2 -2
- package/dist/cli/powersync-BOhjVQCb.js +1 -0
- package/dist/cli/{powersync-D83yAFbl.js → powersync-CE_hQdgc.js} +2 -2
- package/dist/cli/{print-C0OmQyTu.js → print-Cy_ram9N.js} +2 -2
- package/dist/cli/{remove-BWlOngNT.js → remove-DmwjzqaW.js} +5 -5
- package/dist/cli/{render-9m70qveo.js → render-CF09FCra.js} +7 -4
- package/dist/cli/{run-He3M-ZRq.js → run-BYpZ8FjF.js} +25 -25
- package/dist/cli/{run-gE4eAazR.js → run-lh-chAJW.js} +8 -8
- package/dist/cli/{seed-CdSxunFT.js → seed-BMynpMPy.js} +2 -2
- package/dist/cli/seed-CO3j_bly.js +1 -0
- package/dist/cli/{shared-Cx2WFVWq.js → shared-D05A6t1e.js} +1 -1
- package/dist/cli/{snapshot-CZb3uVKE.js → snapshot-BITNbA5V.js} +3 -3
- package/dist/cli/{source-CrYSCdPZ.js → source-GGJHuzpH.js} +1 -1
- package/dist/cli/{source-args-z-jkabmO.js → source-args-CDmmFmFG.js} +1 -1
- package/dist/cli/{spec-Cn5RhuQc.js → spec-BGcRdlhN.js} +2 -2
- package/dist/cli/{spec-D4b9ePuQ.js → spec-BjxXWaNQ.js} +1 -1
- package/dist/cli/{sql-layout-CLJ67h3L.js → sql-layout-BoD5ynN9.js} +2 -2
- package/dist/cli/{sync-B8VGiaHk.js → sync-_QlsTmqu.js} +3 -3
- package/dist/cli/{upgrade-BvBWK3Fo.js → upgrade-Cwhb1M7O.js} +4 -4
- package/dist/cli/{upgrade-DMiYx1C8.js → upgrade-n9ar1kc4.js} +2 -2
- package/dist/cli/{version-BVg2Z6yv.js → version-RSpJIWDd.js} +1 -1
- package/dist/client/index.d.ts +5 -5
- package/dist/client/native/index.d.ts +4 -4
- package/dist/{composite-Dw5ofSF_.js → composite-CBRbvn5j.js} +2 -2
- package/dist/config/index.d.ts +4 -4
- package/dist/config/index.js +4 -4
- package/dist/{config-BOt5T6Vs.js → config-RwpFcPq8.js} +3 -3
- package/dist/{config-CD2OGfCG.js → config-vHLJ8SKf.js} +1 -1
- package/dist/{context-sgrUjA3U.d.ts → context-CMf4OKpN.d.ts} +72 -16
- package/dist/{controller-B6vWdKSa.d.ts → controller-BGto_kYM.d.ts} +1 -1
- package/dist/create/index.d.ts +72 -451
- package/dist/create/index.js +15 -1687
- package/dist/create/lite/index.d.ts +250 -13
- package/dist/create/lite/index.js +1007 -24
- package/dist/credentials/index.js +1 -1
- package/dist/edge/index.js +7 -7
- package/dist/elysia/index.js +1 -1
- package/dist/{entitlements-BPaPd3MD.d.ts → entitlements-CIhVQ-0u.d.ts} +1 -1
- package/dist/events/index.js +1 -1
- package/dist/expo/index.js +3 -3
- package/dist/{field-errors-DBgDCITw.d.ts → field-errors-BDhPaO0a.d.ts} +4 -4
- package/dist/{framework-DXM1vNcV.js → framework-DYEUraqt.js} +1 -1
- package/dist/h3/index.js +1 -1
- package/dist/h3/v1/index.js +1 -1
- package/dist/hono/index.js +6 -6
- package/dist/{index-ByF22_C6.d.ts → index--OhYKouV.d.ts} +2 -2
- package/dist/{index-Bt7_mxn0.d.ts → index-4MStWaeF.d.ts} +185 -7
- package/dist/{index-5JSxY1MG.d.ts → index-CFWlHuVY.d.ts} +77 -2
- package/dist/{index-CdMZQCYR.d.ts → index-lV43eM34.d.ts} +2 -2
- package/dist/{index-C4sjewrr.d.ts → index-ujNqgZ6B.d.ts} +6 -6
- package/dist/{app-tables-DyswUg6J.js → instances-BPJSESPx.js} +176 -11
- package/dist/{kit-DhlB-vv_.js → kit-Bcd9wYCV.js} +1 -1
- package/dist/mapper/bin.js +6 -6
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +6 -6
- package/dist/mcp/sdk/index.js +2 -2
- package/dist/nestjs/index.js +1 -1
- package/dist/next/index.d.ts +3 -3
- package/dist/next/index.js +7 -7
- package/dist/node/index.js +1 -1
- package/dist/{operations-DC3wU3Sy.d.ts → operations-qSBBV5vl.d.ts} +1 -1
- package/dist/{options-fMxhtuVR.js → options-BJtdsK7b.js} +4 -1
- package/dist/{options-DhdazgTZ.js → options-BPp2zzsz.js} +3 -1
- package/dist/options-BSsYXjhC.js +9 -0
- package/dist/{options-ChiL-4ZS.js → options-D4ADKTKo.js} +3 -1
- package/dist/{options-C1-pwEqm.js → options-DztCKw_f.js} +4 -1
- package/dist/{options-BfFC4iFE.js → options-jsOCvLUz.js} +3 -1
- package/dist/orpc/index.d.ts +1 -1
- package/dist/orpc/index.js +5 -5
- package/dist/otel/index.js +4 -4
- package/dist/{ports-BbBJVyS0.d.ts → ports-DbHiNSAa.d.ts} +1 -1
- package/dist/powersync/index.d.ts +2 -2
- package/dist/preset/index.d.ts +4 -4
- package/dist/preset/index.js +4 -4
- package/dist/{preset-B3CukUhu.js → preset-B1xXOJ0T.js} +179 -7
- package/dist/project-BM6QMtzV.js +1760 -0
- package/dist/{push-token-CPJfPFa2.d.ts → push-token-BwF1fyjA.d.ts} +1 -1
- package/dist/react/index.d.ts +5 -5
- package/dist/react/index.js +2 -2
- package/dist/react/native/index.d.ts +1 -1
- package/dist/react/server.d.ts +5 -5
- package/dist/react/server.js +2 -2
- package/dist/{react-_D_CeZMk.js → react-CcrQQl0_.js} +2 -2
- package/dist/react-router/index.js +5 -5
- package/dist/realtime/index.d.ts +3 -3
- package/dist/realtime/index.js +1 -1
- package/dist/records/index.d.ts +3 -3
- package/dist/{refusal-D48CMqpQ.js → refusal-DDlInPff.js} +2 -2
- package/dist/{instances-DDt7NdVl.js → resolved-names-WzRYhUez.js} +2 -146
- package/dist/{resource-R3KToNze.js → resource-BUJcZKiW.js} +2 -2
- package/dist/{resources-DqIwoQsP.js → resources-jb3R6rEa.js} +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +7 -7
- package/dist/{sign-in-1FJiXXyG.js → sign-in-NO7LWlw4.js} +2 -2
- package/dist/solid/index.d.ts +5 -5
- package/dist/solid/index.js +1 -1
- package/dist/solid-start/index.js +5 -5
- package/dist/spec/index.d.ts +2 -2
- package/dist/spec/index.js +2 -693
- package/dist/sql/index.d.ts +5 -5
- package/dist/sql/index.js +5 -5
- package/dist/{sql-BjjgwJKg.js → sql-CNH8kjLS.js} +2727 -955
- package/dist/ssr/index.d.ts +1 -1
- package/dist/storage/index.js +1 -1
- package/dist/subjects-NomQg6Eg.d.ts +131 -0
- package/dist/svelte/index.d.ts +5 -5
- package/dist/svelte/index.js +1 -1
- package/dist/sveltekit/index.js +5 -5
- package/dist/tanstack-start/index.js +5 -5
- package/dist/{tenant-BHvMFNXl.d.ts → tenant-D4BA7XQ-.d.ts} +1 -1
- package/dist/testing/index.d.ts +4 -4
- package/dist/testing/index.js +5 -5
- package/dist/{topic-J9I3yu6f.js → topic-F0FKzJyQ.js} +2 -2
- package/dist/{topic-gTVjLGTk.d.ts → topic-utZqhw96.d.ts} +1 -1
- package/dist/types-DLnBJ3ST.d.ts +461 -0
- package/dist/vue/index.d.ts +5 -5
- package/dist/vue/index.js +1 -1
- package/dist/{watch-topic-C6HhbnVz.d.ts → watch-topic-B1UCoQfz.d.ts} +1 -1
- package/dist/workflow-sdk/world/index.js +1 -1
- package/dist/{workflow-sdk-DELaQEp3.js → workflow-sdk-CE8sEK57.js} +38 -1
- package/dist/yjs/index.d.ts +1 -1
- package/dist/yjs/index.js +1 -1
- package/package.json +1 -1
- package/schemas/config-v1.json +166 -2
- package/dist/cli/add-CspY9jKT.js +0 -1
- package/dist/cli/powersync-DwhCH0gs.js +0 -1
- package/dist/cli/seed-CXJvTU5D.js +0 -1
- package/dist/options-CTv-xmbA.js +0 -5
- package/dist/subjects-DvmQeF_F.d.ts +0 -79
- package/dist/types-DGHfTW8_.d.ts +0 -9
- package/dist/{build-CM8PJqwW.js → build-CH2N3Yf0.js} +3 -3
- package/dist/{create-blocks-CUS28FfS.js → create-blocks-BfrDUSM6.js} +1 -1
- package/dist/{data-hooks-tgF1Ct0F.js → data-hooks-CdcZfVS1.js} +1 -1
- package/dist/{respond-3RKp6VgU.js → respond-CZMWbUs3.js} +1 -1
|
@@ -108,6 +108,12 @@ interface Timesheet {
|
|
|
108
108
|
readonly note?: string;
|
|
109
109
|
readonly submittedAt?: Temporal.Instant;
|
|
110
110
|
readonly approvedAt?: Temporal.Instant;
|
|
111
|
+
/** With `options.approvals: false`: who decided the week. */
|
|
112
|
+
readonly decidedBy?: string;
|
|
113
|
+
/** With `options.approvals: false`: when the week was decided. */
|
|
114
|
+
readonly decidedAt?: Temporal.Instant;
|
|
115
|
+
/** With `options.approvals: false`: the note of a rejection. */
|
|
116
|
+
readonly decisionNote?: string;
|
|
111
117
|
}
|
|
112
118
|
interface TimesheetTotals {
|
|
113
119
|
/** Every entry, running ones up to now. */
|
|
@@ -157,6 +163,16 @@ interface TimeTracking<F extends object = Record<never, never>> {
|
|
|
157
163
|
submit(week: Temporal.PlainDate, note?: string): AsyncResult<Timesheet>;
|
|
158
164
|
/** Unlocks an approved week; needs `time_tracking.manage`. */
|
|
159
165
|
reopen(timesheetId: string): AsyncResult<Timesheet>;
|
|
166
|
+
/**
|
|
167
|
+
* With `options.approvals: false`: approves a submitted week; needs
|
|
168
|
+
* `time_tracking.approve`, and nobody approves their own.
|
|
169
|
+
*/
|
|
170
|
+
approve(timesheetId: string): AsyncResult<Timesheet>;
|
|
171
|
+
/**
|
|
172
|
+
* With `options.approvals: false`: sends a submitted week back with a note,
|
|
173
|
+
* which unlocks it.
|
|
174
|
+
*/
|
|
175
|
+
reject(timesheetId: string, note?: string): AsyncResult<Timesheet>;
|
|
160
176
|
/** Newest week first. */
|
|
161
177
|
timesheets(options?: TimesheetListOptions): AsyncResult<readonly Timesheet[]>;
|
|
162
178
|
}
|
|
@@ -264,6 +280,8 @@ type TimeTrackingEvents = {
|
|
|
264
280
|
readonly "timesheet.submitted": TimesheetEventData;
|
|
265
281
|
readonly "timesheet.approved": TimesheetEventData;
|
|
266
282
|
readonly "timesheet.reopened": TimesheetEventData;
|
|
283
|
+
/** With `options.approvals: false`: an approver rejected the week. */
|
|
284
|
+
readonly "timesheet.rejected": TimesheetEventData;
|
|
267
285
|
};
|
|
268
286
|
/** The `time-tracking` block's event types, for its manifest and `onBlockEvent`. */
|
|
269
287
|
export declare const timeTrackingEvents: Events<TimeTrackingEvents>;
|
|
@@ -2,11 +2,11 @@ import { n as isRecord } from "../../guards-6F2bCtQR.js";
|
|
|
2
2
|
import { s as nowInstant } from "../../temporal-Dbo0fLzc.js";
|
|
3
3
|
import { t as temporal } from "../../temporal-required-DcLhnDhQ.js";
|
|
4
4
|
import { t as AsyncResult } from "../../result-ntFBW2p2.js";
|
|
5
|
-
import { t as timeTrackingSqlOptions } from "../../options-
|
|
5
|
+
import { t as timeTrackingSqlOptions } from "../../options-BPp2zzsz.js";
|
|
6
6
|
import { r as defineMetric } from "../../metric-definition-BjxVn4R5.js";
|
|
7
|
+
import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
|
|
7
8
|
import { A as recordsOf, C as optionalInstant, L as textOf, O as recordOf, U as rpcTransport, V as dbTransport, W as sqlTransport, d as enumOrThrow, j as requiredInstant, m as instantArg, n as applyTemporal, o as blockCall, w as optionalText } from "../../block-helpers-B0f0ZVb5.js";
|
|
8
9
|
import { r as withBlockHooks } from "../../block-hooks-DKtz0HRh.js";
|
|
9
|
-
import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
|
|
10
10
|
import { n as blockFields } from "../../block-fields-BjXgX_5c.js";
|
|
11
11
|
import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
|
|
12
12
|
import { n as optionalRecordRefOf } from "../../block-subjects-DFSuFY1a.js";
|
|
@@ -53,7 +53,10 @@ function timesheetOf(value, fn) {
|
|
|
53
53
|
...optional("approvalId", optionalText(row["approvalId"])),
|
|
54
54
|
...optional("note", optionalText(row["note"])),
|
|
55
55
|
...optional("submittedAt", optionalInstant(row["submittedAt"])),
|
|
56
|
-
...optional("approvedAt", optionalInstant(row["approvedAt"]))
|
|
56
|
+
...optional("approvedAt", optionalInstant(row["approvedAt"])),
|
|
57
|
+
...optional("decidedBy", optionalText(row["decidedBy"])),
|
|
58
|
+
...optional("decidedAt", optionalInstant(row["decidedAt"])),
|
|
59
|
+
...optional("decisionNote", optionalText(row["decisionNote"]))
|
|
57
60
|
};
|
|
58
61
|
}
|
|
59
62
|
function totalsOf(value) {
|
|
@@ -167,6 +170,11 @@ function createTimeTracking(options) {
|
|
|
167
170
|
week: week.toString(),
|
|
168
171
|
note: note ?? null
|
|
169
172
|
}, (value) => timesheetOf(value, "submit_timesheet"))),
|
|
173
|
+
approve: (timesheetId) => call("approve_timesheet", { timesheet_id: timesheetId }, (value) => timesheetOf(value, "approve_timesheet")),
|
|
174
|
+
reject: (timesheetId, note) => call("reject_timesheet", {
|
|
175
|
+
timesheet_id: timesheetId,
|
|
176
|
+
note: note ?? null
|
|
177
|
+
}, (value) => timesheetOf(value, "reject_timesheet")),
|
|
170
178
|
reopen: (timesheetId) => call("reopen_timesheet", { timesheet_id: timesheetId }, (value) => timesheetOf(value, "reopen_timesheet")),
|
|
171
179
|
timesheets: (list = {}) => tenant().andThen((organizationId) => call("list_timesheets", {
|
|
172
180
|
tenant: organizationId,
|
|
@@ -302,7 +310,8 @@ const timeTrackingEvents = defineEvents({
|
|
|
302
310
|
"time_entry.deleted": event(),
|
|
303
311
|
"timesheet.submitted": event(),
|
|
304
312
|
"timesheet.approved": event(),
|
|
305
|
-
"timesheet.reopened": event()
|
|
313
|
+
"timesheet.reopened": event(),
|
|
314
|
+
"timesheet.rejected": event()
|
|
306
315
|
});
|
|
307
316
|
//#endregion
|
|
308
317
|
//#region src/blocks/time-tracking/manifest.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as isRecord } from "../../guards-6F2bCtQR.js";
|
|
2
|
+
import { a as stripTypePrefix } from "../../cloud-event-XsM53POL.js";
|
|
2
3
|
import { A as recordsOf, L as textOf, O as recordOf, T as pageOf, U as rpcTransport, V as dbTransport, W as sqlTransport, m as instantArg, n as applyTemporal, o as blockCall, w as optionalText, z as toInstant } from "../../block-helpers-B0f0ZVb5.js";
|
|
3
4
|
import { r as withBlockHooks } from "../../block-hooks-DKtz0HRh.js";
|
|
4
|
-
import { a as stripTypePrefix } from "../../cloud-event-XsM53POL.js";
|
|
5
5
|
import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
|
|
6
6
|
import { n as optionalRecordRefOf } from "../../block-subjects-DFSuFY1a.js";
|
|
7
7
|
import { n as defineListQuery } from "../../list-query-BnpA2BDg.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as isRecord } from "../../guards-6F2bCtQR.js";
|
|
2
2
|
import { t as trashSqlOptions } from "../../options-B692WoK6.js";
|
|
3
|
+
import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
|
|
3
4
|
import { A as recordsOf, L as textOf, O as recordOf, U as rpcTransport, V as dbTransport, W as sqlTransport, j as requiredInstant, n as applyTemporal, o as blockCall, w as optionalText } from "../../block-helpers-B0f0ZVb5.js";
|
|
4
5
|
import { r as withBlockHooks } from "../../block-hooks-DKtz0HRh.js";
|
|
5
|
-
import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
|
|
6
6
|
import { n as blockFields } from "../../block-fields-BjXgX_5c.js";
|
|
7
7
|
import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
|
|
8
8
|
import { t as trashExtension } from "../../extension-DzCc0IOd.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
|
|
2
2
|
import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
|
|
3
|
-
import { n as Controller } from "../../controller-
|
|
3
|
+
import { n as Controller } from "../../controller-BGto_kYM.js";
|
|
4
4
|
import { a as UndoToken, c as undoToken, i as UndoOptions, n as Undo, o as createUndo, r as UndoCall, s as isUndoToken, t as UNDO_FUNCTIONS } from "../../undo-B1jwnVyN.js";
|
|
5
5
|
//#region src/blocks/undo/client.d.ts
|
|
6
6
|
interface UndoEntry {
|
|
@@ -3,7 +3,7 @@ import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTrans
|
|
|
3
3
|
import { n as StripeSource, t as StripeClient } from "../../stripe-X22LjuH-.js";
|
|
4
4
|
import { _ as reportUsageToStripe, a as Usage, c as UsageEntry, d as UsageMeterInfo, f as UsageOptions, g as createUsage, h as UsageStatus, i as ReportUsageResult, l as UsageHistoryEntry, m as UsageRecorded, n as RecordUsageOptions, o as UsageBatchRecorded, p as UsagePeriod, r as ReportUsageOptions, s as UsageBreakdownEntry, t as PurgeUsageOptions, u as UsageHistoryOptions } from "../../usage-Dp45V42p.js";
|
|
5
5
|
import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
|
|
6
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
6
|
+
import { n as Controller, t as AuthPort } from "../../controller-BGto_kYM.js";
|
|
7
7
|
//#region src/blocks/usage/manifest.d.ts
|
|
8
8
|
/** The `usage` block's manifest (ADR 0029). */
|
|
9
9
|
export declare const usageBlock: BlockOf<"usage", typeof createUsage>;
|
|
@@ -3,9 +3,9 @@ import { n as isRecord } from "../../guards-6F2bCtQR.js";
|
|
|
3
3
|
import { a as ok, r as err, t as AsyncResult } from "../../result-ntFBW2p2.js";
|
|
4
4
|
import { a as methodNotAllowed, o as problemResponse } from "../../problem-Bf0cJ7tk.js";
|
|
5
5
|
import { t as vercelMarketplaceSqlOptions } from "../../options-DZRpXKQE.js";
|
|
6
|
+
import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
|
|
6
7
|
import { A as recordsOf, L as textOf, O as recordOf, W as sqlTransport, f as errorText, n as applyTemporal, o as blockCall, w as optionalText } from "../../block-helpers-B0f0ZVb5.js";
|
|
7
8
|
import { r as withBlockHooks } from "../../block-hooks-DKtz0HRh.js";
|
|
8
|
-
import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
|
|
9
9
|
import { r as timingSafeEqual } from "../../hmac-B3CTTlfv.js";
|
|
10
10
|
import { t as cronRoute } from "../../cron-route-FjKgRvTY.js";
|
|
11
11
|
import { c as verifyCompact, t as JwsError } from "../../jws-DOgHJKHb.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as isRecord } from "../../guards-6F2bCtQR.js";
|
|
2
2
|
import { t as versionsSqlOptions } from "../../options-DZLkeqWn.js";
|
|
3
|
+
import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
|
|
3
4
|
import { A as recordsOf, L as textOf, O as recordOf, U as rpcTransport, V as dbTransport, W as sqlTransport, d as enumOrThrow, j as requiredInstant, n as applyTemporal, o as blockCall, w as optionalText } from "../../block-helpers-B0f0ZVb5.js";
|
|
4
5
|
import { r as withBlockHooks } from "../../block-hooks-DKtz0HRh.js";
|
|
5
6
|
import { n as entitySchema } from "../../entity-schema-B1YmMtP8.js";
|
|
6
7
|
import { i as recordRowInput, t as defineRecordBinding } from "../../record-bindings-Z51mGfhB.js";
|
|
7
|
-
import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
|
|
8
8
|
import { n as blockFields } from "../../block-fields-BjXgX_5c.js";
|
|
9
9
|
import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
|
|
10
10
|
import { i as subjectRefOf } from "../../block-subjects-DFSuFY1a.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as isRecord } from "../../guards-6F2bCtQR.js";
|
|
2
2
|
import { t as waitlistSqlOptions } from "../../options-DKoQoRCy.js";
|
|
3
|
+
import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
|
|
3
4
|
import { A as recordsOf, C as optionalInstant, L as textOf, O as recordOf, U as rpcTransport, V as dbTransport, W as sqlTransport, m as instantArg, n as applyTemporal, o as blockCall, w as optionalText, z as toInstant } from "../../block-helpers-B0f0ZVb5.js";
|
|
4
5
|
import { r as withBlockHooks } from "../../block-hooks-DKtz0HRh.js";
|
|
5
|
-
import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
|
|
6
6
|
import { n as blockFields } from "../../block-fields-BjXgX_5c.js";
|
|
7
7
|
import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
|
|
8
8
|
import { r as hookError, t as authHook } from "../../verify-7EucfCnv.js";
|
|
@@ -7,12 +7,13 @@ import { i as toBase64, r as fromBase64 } from "../../base64-B9Wlsdj7.js";
|
|
|
7
7
|
import { a as methodNotAllowed, o as problemResponse } from "../../problem-Bf0cJ7tk.js";
|
|
8
8
|
import { t as MAX_BATCH } from "../../batch-limit-DKVQDz4o.js";
|
|
9
9
|
import { n as webhooksOutSqlOptions, t as webhooksInSqlOptions } from "../../options-D96dScev.js";
|
|
10
|
-
import { A as recordsOf, D as readBodyCapped, N as seconds, O as recordOf, R as toBlockError, U as rpcTransport, V as dbTransport, W as sqlTransport, c as chunksOf, f as errorText, h as instantOf, i as batchResultsOf, n as applyTemporal, o as blockCall, r as asDbError, s as budget, w as optionalText, y as nullableInstant, z as toInstant } from "../../block-helpers-B0f0ZVb5.js";
|
|
11
|
-
import { r as withBlockHooks } from "../../block-hooks-DKtz0HRh.js";
|
|
12
10
|
import { a as stripTypePrefix } from "../../cloud-event-XsM53POL.js";
|
|
13
|
-
import { n as credentialRefInTenant, r as foreignCredentialRef } from "../../provider-B6g7rBZX.js";
|
|
14
11
|
import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
|
|
15
12
|
import { r as blockEmitter } from "../../block-events-IWAyafO3.js";
|
|
13
|
+
import { toHttp } from "../../events/index.js";
|
|
14
|
+
import { A as recordsOf, D as readBodyCapped, N as seconds, O as recordOf, R as toBlockError, U as rpcTransport, V as dbTransport, W as sqlTransport, c as chunksOf, f as errorText, h as instantOf, i as batchResultsOf, n as applyTemporal, o as blockCall, r as asDbError, s as budget, w as optionalText, y as nullableInstant, z as toInstant } from "../../block-helpers-B0f0ZVb5.js";
|
|
15
|
+
import { r as withBlockHooks } from "../../block-hooks-DKtz0HRh.js";
|
|
16
|
+
import { n as credentialRefInTenant, r as foreignCredentialRef } from "../../provider-B6g7rBZX.js";
|
|
16
17
|
import { n as hmacHex, r as timingSafeEqual } from "../../hmac-B3CTTlfv.js";
|
|
17
18
|
import { i as signWebhook, o as verifySharedSecret, s as verifyWebhook, t as PUBLIC_KEY_PREFIX } from "../../signatures-CX1b4WHa.js";
|
|
18
19
|
import { t as cronRoute } from "../../cron-route-FjKgRvTY.js";
|
|
@@ -20,7 +21,6 @@ import { t as subjectReaders } from "../../subject-readers-CeeJJOQ4.js";
|
|
|
20
21
|
import { n as hitRateLimit, o as receiveWebhook } from "../../rate-limit-fZ_d8gSE.js";
|
|
21
22
|
import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
|
|
22
23
|
import { a as signStripeWebhook, i as isDatabaseWebhook, n as databaseChange, o as stripeInboxVerify, r as hookError, s as verifyStripeWebhook, t as authHook } from "../../verify-7EucfCnv.js";
|
|
23
|
-
import { toHttp } from "../../events/index.js";
|
|
24
24
|
//#region src/blocks/webhooks/destinations.ts
|
|
25
25
|
/**
|
|
26
26
|
* Stores deliveries in the webhook inbox under `source` (the delivery's source
|
|
@@ -5,9 +5,9 @@ import { Ct as Events, gt as WorkflowEventData } from "../../events-vcqenSYU.js"
|
|
|
5
5
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
|
|
6
6
|
import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
|
|
7
7
|
import { g as Workflows, n as WorkflowRun } from "../../workflows-B0ZPAQu0.js";
|
|
8
|
-
import { p as SubscriptionStatus } from "../../topic-
|
|
9
|
-
import { n as TopicPort } from "../../watch-topic-
|
|
10
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
8
|
+
import { p as SubscriptionStatus } from "../../topic-utZqhw96.js";
|
|
9
|
+
import { n as TopicPort } from "../../watch-topic-B1UCoQfz.js";
|
|
10
|
+
import { n as Controller, t as AuthPort } from "../../controller-BGto_kYM.js";
|
|
11
11
|
import { A as WorkflowVersionOwner, B as WorkflowGraphNode, C as WorkflowGrantPrincipal, D as WorkflowTrigger, E as WorkflowStepInfo, F as WorkflowFilterCondition, G as durationMs, H as WorkflowNodeKind, I as WorkflowFilterField, J as matchesFilter, K as evaluateCondition, L as WorkflowGraph, M as GraphScope, N as WorkflowCondition, O as WorkflowTriggerKind, P as WorkflowConditionOperator, R as WorkflowGraphDiff, S as WorkflowGrantAction, T as WorkflowNodeRunStatus, U as approved, V as WorkflowNodeCondition, W as diffGraphs, X as validateGraph, Y as topologicalOrder, _ as WorkflowCredential, a as CredentialInput, b as WorkflowDefinitionScope, c as GraphCompiler, d as RunInput, f as TestRunInput, g as WorkflowBuilderHooks, h as WorkflowAlert, i as BuilderStarter, j as WorkflowVersionStatus, k as WorkflowVersion, l as NodeRunRecord, m as VersionSaveOptions, n as BuilderOptions, o as DefinitionInput, p as TriggerInput, q as filterConditionOf, r as BuilderStartCall, s as GrantInput, t as AlertInput, u as PublishOptions, v as WorkflowDefinition, w as WorkflowNodeRun, x as WorkflowEditor, y as WorkflowDefinitionGrant, z as WorkflowGraphEdge } from "../../types-yj8VF4oY.js";
|
|
12
12
|
import { a as GraphSubject, c as graphRunFields, i as GraphStepCall, l as startNodeOf, n as GraphRunFields, o as approvalToken, r as GraphRuntime, s as executeGraph, t as GraphApprovalCall } from "../../executor-DNK401lZ.js";
|
|
13
13
|
//#region src/blocks/workflow-editor/workflow-editor.d.ts
|
|
@@ -2,12 +2,12 @@ import { n as dbError } from "../../errors-BVFgt8BZ.js";
|
|
|
2
2
|
import { n as isRecord } from "../../guards-6F2bCtQR.js";
|
|
3
3
|
import { a as ok, r as err, t as AsyncResult } from "../../result-ntFBW2p2.js";
|
|
4
4
|
import { t as workflowEditorSqlOptions } from "../../options-DFpyP1bg.js";
|
|
5
|
+
import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
|
|
5
6
|
import { n as whileSignedIn, t as defineController } from "../../controller-BEliOBOv.js";
|
|
6
7
|
import { A as recordsOf, C as optionalInstant, E as randomToken, I as stringsOf, L as textOf, N as seconds, O as recordOf, U as rpcTransport, V as dbTransport, W as sqlTransport, d as enumOrThrow, j as requiredInstant, k as recordOrEmpty, n as applyTemporal, o as blockCall, p as injectableOf, w as optionalText } from "../../block-helpers-B0f0ZVb5.js";
|
|
7
8
|
import { r as withBlockHooks } from "../../block-hooks-DKtz0HRh.js";
|
|
8
9
|
import { n as LEGACY_PERMISSION_CAP_CLAIM, r as PERMISSION_CAP_CLAIM } from "../../delegation-DGOIiT8k.js";
|
|
9
10
|
import { n as credentialRefInTenant, r as foreignCredentialRef } from "../../provider-B6g7rBZX.js";
|
|
10
|
-
import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
|
|
11
11
|
import { n as blockFields } from "../../block-fields-BjXgX_5c.js";
|
|
12
12
|
import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
|
|
13
13
|
import { n as watchRun, t as firstError } from "../../run-watch-B-LoK5m1.js";
|
|
@@ -3,9 +3,9 @@ import { Ct as Events, _t as WorkflowRunEventData } from "../../events-vcqenSYU.
|
|
|
3
3
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
|
|
4
4
|
import { c as BlockOf } from "../../define-block-DCAiOrNX.js";
|
|
5
5
|
import { _ as WorkflowsHooks, a as WorkflowRunStatus, c as WorkflowScheduleInput, d as WorkflowStartTicket, f as WorkflowStarter, g as Workflows, h as WorkflowTickResult, i as WorkflowRunRecord, l as WorkflowStartCall, m as WorkflowTickOptions, n as WorkflowRun, o as WorkflowRunsQuery, s as WorkflowSchedule, u as WorkflowStartRequest, v as WorkflowsOptions, y as createWorkflows } from "../../workflows-B0ZPAQu0.js";
|
|
6
|
-
import { p as SubscriptionStatus } from "../../topic-
|
|
7
|
-
import { n as TopicPort } from "../../watch-topic-
|
|
8
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
6
|
+
import { p as SubscriptionStatus } from "../../topic-utZqhw96.js";
|
|
7
|
+
import { n as TopicPort } from "../../watch-topic-B1UCoQfz.js";
|
|
8
|
+
import { n as Controller, t as AuthPort } from "../../controller-BGto_kYM.js";
|
|
9
9
|
//#region src/blocks/workflows/client.d.ts
|
|
10
10
|
interface WorkflowRunsControllerOptions {
|
|
11
11
|
readonly client: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as isRecord } from "../../guards-6F2bCtQR.js";
|
|
2
2
|
import { t as temporal } from "../../temporal-required-DcLhnDhQ.js";
|
|
3
3
|
import { a as ok, r as err } from "../../result-ntFBW2p2.js";
|
|
4
|
+
import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
|
|
4
5
|
import { n as whileSignedIn, t as defineController } from "../../controller-BEliOBOv.js";
|
|
5
6
|
import { A as recordsOf, C as optionalInstant, L as textOf, N as seconds, O as recordOf, T as pageOf, U as rpcTransport, V as dbTransport, W as sqlTransport, f as errorText, j as requiredInstant, m as instantArg, n as applyTemporal, o as blockCall, w as optionalText } from "../../block-helpers-B0f0ZVb5.js";
|
|
6
7
|
import { r as withBlockHooks } from "../../block-hooks-DKtz0HRh.js";
|
|
7
|
-
import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
|
|
8
8
|
import { n as nextCronRun, t as assertCron } from "../../cron-DdT4ti8a.js";
|
|
9
9
|
import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
|
|
10
10
|
import { n as watchRun } from "../../run-watch-B-LoK5m1.js";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { a as list, p as commandMeta, r as defineCliCommand } from "./command-BWEEXmtz.js";
|
|
2
2
|
import { i as plain } from "./style-Bm2X5JrN.js";
|
|
3
|
-
import { t as VERSION } from "./version-
|
|
3
|
+
import { t as VERSION } from "./version-RSpJIWDd.js";
|
|
4
4
|
import { a as parseNames, n as CliError } from "./errors-BTe6A15O.js";
|
|
5
5
|
import { r as readIfExists, t as display } from "./io-DH1kcmmP.js";
|
|
6
|
-
import { t as loadSnapshot } from "./snapshot-
|
|
6
|
+
import { t as loadSnapshot } from "./snapshot-BITNbA5V.js";
|
|
7
7
|
import { t as isRecord } from "./guards-CUlDNYZs.js";
|
|
8
|
-
import { a as toCatalog } from "./source-
|
|
9
|
-
import { n as dataMigration } from "./migrations-
|
|
10
|
-
import { a as findConfig, f as INTEGRATIONS, s as loadConfig } from "./config-
|
|
8
|
+
import { a as toCatalog } from "./source-GGJHuzpH.js";
|
|
9
|
+
import { n as dataMigration } from "./migrations-CUjNXokR.js";
|
|
10
|
+
import { a as findConfig, f as INTEGRATIONS, s as loadConfig } from "./config-BVfeG3A5.js";
|
|
11
11
|
import { i as changeLines, n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-CX71yBm8.js";
|
|
12
|
-
import { a as wiringFiles, d as libEntry, f as needsLib, i as wiringChecklist, l as importFrom, n as latestMigrationVersion, o as wiringFor, p as resolveIntegrations, s as TEMPLATES, u as isIntegration } from "./migration-safety-
|
|
12
|
+
import { a as wiringFiles, d as libEntry, f as needsLib, i as wiringChecklist, l as importFrom, n as latestMigrationVersion, o as wiringFor, p as resolveIntegrations, s as TEMPLATES, u as isIntegration } from "./migration-safety-Cy7xlU4G.js";
|
|
13
13
|
import { n as installCommand, t as detectProject } from "./detect-D9JaAX20.js";
|
|
14
14
|
import { d as setBlockInJson, f as setPathInConfig, h as setPresetInJson, m as setPresetInConfig, n as addBlocksToJson, p as setPathInJson, r as addBlocksToWiring, t as addBlocksToConfig, u as setBlockInConfig } from "./config-edit-CrWfk8s3.js";
|
|
15
|
-
import { t as syncModules } from "./sync-
|
|
16
|
-
import { t as addModules } from "./add-
|
|
17
|
-
import { n as ident } from "./live-
|
|
18
|
-
import { t as blockNames } from "./blocks-
|
|
19
|
-
import { i as sourceArgs, n as SOURCE_ARGS } from "./source-args-
|
|
15
|
+
import { t as syncModules } from "./sync-_QlsTmqu.js";
|
|
16
|
+
import { t as addModules } from "./add-DVHniZOO.js";
|
|
17
|
+
import { n as ident } from "./live-KcdTBUij.js";
|
|
18
|
+
import { t as blockNames } from "./blocks-2Yw9t-_U.js";
|
|
19
|
+
import { i as sourceArgs, n as SOURCE_ARGS } from "./source-args-CDmmFmFG.js";
|
|
20
20
|
import { existsSync } from "node:fs";
|
|
21
21
|
import { dirname, join, posix, resolve } from "node:path";
|
|
22
22
|
import { readFile } from "node:fs/promises";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as CliError } from "./errors-BTe6A15O.js";
|
|
2
|
-
import { c as layoutFor, g as providerLabel, l as providerOwnsMemberships, o as MEMBERSHIP_CLAIM_MODULES } from "./migrations-
|
|
2
|
+
import { c as layoutFor, g as providerLabel, l as providerOwnsMemberships, o as MEMBERSHIP_CLAIM_MODULES } from "./migrations-CUjNXokR.js";
|
|
3
3
|
import { r as applyPlan } from "./files-CX71yBm8.js";
|
|
4
4
|
import { n as addBlocksToJson, s as keyText, t as addBlocksToConfig } from "./config-edit-CrWfk8s3.js";
|
|
5
|
-
import { a as write, i as unlistedModuleFiles, r as nextStep } from "./sync-
|
|
5
|
+
import { a as write, i as unlistedModuleFiles, r as nextStep } from "./sync-_QlsTmqu.js";
|
|
6
6
|
import { basename, dirname } from "node:path";
|
|
7
7
|
import { readFile } from "node:fs/promises";
|
|
8
8
|
import { SQL_MODULES, resolveBlocks } from "better-supabase/sql";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as addCommand } from "./add-C7lKQNBL.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { p as commandMeta, r as defineCliCommand } from "./command-BWEEXmtz.js";
|
|
2
2
|
import { n as CliError, r as errorText } from "./errors-BTe6A15O.js";
|
|
3
3
|
import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-CbuPvI2x.js";
|
|
4
|
-
import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-
|
|
4
|
+
import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-BVfeG3A5.js";
|
|
5
5
|
import { t as connect } from "./db-CQCLx7cx.js";
|
|
6
|
-
import { n as ident } from "./live-
|
|
7
|
-
import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-
|
|
6
|
+
import { n as ident } from "./live-KcdTBUij.js";
|
|
7
|
+
import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-CDmmFmFG.js";
|
|
8
8
|
//#region src/cli/commands/backfill.ts
|
|
9
9
|
const DEFAULT_BATCH = 1e3;
|
|
10
10
|
const ARGS = {
|
package/dist/cli/bin.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { p as commandMeta, r as defineCliCommand } from "./command-BWEEXmtz.js";
|
|
2
2
|
import { n as CliError } from "./errors-BTe6A15O.js";
|
|
3
3
|
import { t as SQL_ARGS } from "./args-UEwg0l-N.js";
|
|
4
|
-
import { n as listModules, t as printModule } from "./print-
|
|
4
|
+
import { n as listModules, t as printModule } from "./print-Cy_ram9N.js";
|
|
5
5
|
import { t as decodePresetInput } from "./preset-BwmIfFnh.js";
|
|
6
6
|
import { BLOCK_CATEGORIES } from "better-supabase/blocks";
|
|
7
7
|
import { PRESET_CATALOG, PRESET_NAMES, glueCommand } from "better-supabase/preset";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as blocksListCommand, r as blocksSearchCommand, i as blocksViewCommand } from "./blocks-
|
|
1
|
+
export { n as blocksListCommand, r as blocksSearchCommand, i as blocksViewCommand } from "./blocks-2Yw9t-_U.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as VERSION } from "./version-
|
|
1
|
+
import { t as VERSION } from "./version-RSpJIWDd.js";
|
|
2
2
|
import { dirname, resolve } from "node:path";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
import { mkdir, readFile, rename, rm, writeFile } from "node:fs/promises";
|
|
@@ -4,7 +4,7 @@ import { n as CliError } from "./errors-BTe6A15O.js";
|
|
|
4
4
|
import { t as migrateCliCall } from "./moved-DVwgE8lV.js";
|
|
5
5
|
import { t as isRecord$1 } from "./guards-CUlDNYZs.js";
|
|
6
6
|
import { a as changedFiles, i as changeLines, r as applyPlan, u as planResult } from "./files-CX71yBm8.js";
|
|
7
|
-
import { i as schemasDirOf, n as migrationsDir, o as writtenByBlocks } from "./sql-layout-
|
|
7
|
+
import { i as schemasDirOf, n as migrationsDir, o as writtenByBlocks } from "./sql-layout-BoD5ynN9.js";
|
|
8
8
|
import { a as configObject, c as mask, f as setPathInConfig, g as skipSpace, h as setPresetInJson, i as closingIndex, l as properties, m as setPresetInConfig, o as indentAt, p as setPathInJson, t as addBlocksToConfig, v as codeRanges } from "./config-edit-CrWfk8s3.js";
|
|
9
9
|
import { i as legacyPrefixNames, n as LEGACY_PREFIXES, t as LEGACY_CLAIMS } from "./legacy-prefix-R7UChFFl.js";
|
|
10
10
|
import { a as REVIEW_0_15, c as renameSubpaths, r as PLUGIN_IMPORT_RENAMES, s as SUBPATH_RENAMES_0_15, t as BLOCK_EXPORT_RENAMES } from "./codemod-block-renames-BuSaTE_G.js";
|
|
@@ -686,6 +686,38 @@ function _isDirectory(path) {
|
|
|
686
686
|
}
|
|
687
687
|
}
|
|
688
688
|
//#endregion
|
|
689
|
+
//#region src/cli/block-config-schema.ts
|
|
690
|
+
/**
|
|
691
|
+
* `blocks.<name>.values`: table to column to label to an app value, a list of
|
|
692
|
+
* app values, or `null`. The module context checks the names.
|
|
693
|
+
*/
|
|
694
|
+
const valueMapsSchema = record(string(), record(string(), record(string(), nullable(union([string(), array(string())])))));
|
|
695
|
+
/**
|
|
696
|
+
* `records.<type>.permissions`: action to a key, or to `{ key, rows, owner }`.
|
|
697
|
+
* The subject registry checks the names.
|
|
698
|
+
*/
|
|
699
|
+
const subjectPermissionsSchema = record(string(), union([string(), strictObject({
|
|
700
|
+
key: optional(string()),
|
|
701
|
+
rows: optional(string()),
|
|
702
|
+
owner: optional(string())
|
|
703
|
+
})]));
|
|
704
|
+
/** `records.<type>.search`. The subject registry checks the names. */
|
|
705
|
+
const subjectSearchSchema = strictObject({
|
|
706
|
+
title: optional(string()),
|
|
707
|
+
body: optional(array(string())),
|
|
708
|
+
description: optional(string()),
|
|
709
|
+
exclude: optional(string()),
|
|
710
|
+
from: optional(strictObject({
|
|
711
|
+
view: string(),
|
|
712
|
+
key: string()
|
|
713
|
+
})),
|
|
714
|
+
watch: optional(array(strictObject({
|
|
715
|
+
table: string(),
|
|
716
|
+
key: string(),
|
|
717
|
+
via: optional(string())
|
|
718
|
+
})))
|
|
719
|
+
});
|
|
720
|
+
//#endregion
|
|
689
721
|
//#region src/cli/config-moved.ts
|
|
690
722
|
/** Where each top-level key of a 0.14 config moved in 0.15. */
|
|
691
723
|
const MOVED_KEYS = new Map([...Object.entries(CONFIG_GROUPS).flatMap(([group, keys]) => keys.filter((key) => key !== "tables").map((key) => [key, `${group}.${key}`])), ...RENAMED_CONFIG_KEYS.map(([grouped, flat]) => [flat, grouped])]);
|
|
@@ -780,6 +812,7 @@ const blockEntries = {
|
|
|
780
812
|
ownership: optional(picklist(["managed", "custom"], (issue) => issue.input === "adopt" ? ADOPT_REMOVED : issue.message)),
|
|
781
813
|
schema: optional(string()),
|
|
782
814
|
columns: optional(record(string(), record(string(), nullable(string())))),
|
|
815
|
+
values: optional(valueMapsSchema),
|
|
783
816
|
idType: optional(string()),
|
|
784
817
|
owner: optional(picklist([
|
|
785
818
|
"tenant",
|
|
@@ -882,6 +915,8 @@ const authorization = strictObject({
|
|
|
882
915
|
holdersOf: optional(string()),
|
|
883
916
|
actorMayWrite: optional(string()),
|
|
884
917
|
permitted: optional(string()),
|
|
918
|
+
rowsWith: optional(string()),
|
|
919
|
+
rowsWithFor: optional(string()),
|
|
885
920
|
portalSubjects: optional(string()),
|
|
886
921
|
portalParties: optional(string())
|
|
887
922
|
}),
|
|
@@ -1239,14 +1274,11 @@ const FLAT = {
|
|
|
1239
1274
|
tenant: optional(union([string(), literal(false)])),
|
|
1240
1275
|
title: optional(string()),
|
|
1241
1276
|
url: optional(string()),
|
|
1242
|
-
permissions: optional(
|
|
1277
|
+
permissions: optional(subjectPermissionsSchema),
|
|
1243
1278
|
scope: optional(string()),
|
|
1244
1279
|
cascade: optional(boolean()),
|
|
1245
1280
|
deletedAt: optional(string()),
|
|
1246
|
-
search: optional(
|
|
1247
|
-
title: optional(string()),
|
|
1248
|
-
body: optional(strings)
|
|
1249
|
-
})),
|
|
1281
|
+
search: optional(subjectSearchSchema),
|
|
1250
1282
|
rank: optional(strictObject({
|
|
1251
1283
|
column: string(),
|
|
1252
1284
|
group: optional(string())
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as applyEnvironment, n as databaseUrl, r as defaultConfig, i as discoverConfig, a as findConfig, o as importExport, s as loadConfig, c as readSupabasePort, l as stdinDatabaseUrl } from "./config-
|
|
1
|
+
export { t as applyEnvironment, n as databaseUrl, r as defaultConfig, i as discoverConfig, a as findConfig, o as importExport, s as loadConfig, c as readSupabasePort, l as stdinDatabaseUrl } from "./config-BVfeG3A5.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as readIfExists } from "./io-DH1kcmmP.js";
|
|
2
|
-
import { t as CACHE_DIR } from "./cache-
|
|
3
|
-
import { x as installedVersion } from "./snapshot-
|
|
2
|
+
import { t as CACHE_DIR } from "./cache-ByhPVMo-.js";
|
|
3
|
+
import { x as installedVersion } from "./snapshot-BITNbA5V.js";
|
|
4
4
|
import { t as i } from "./jsonc-D5Fu67jw.js";
|
|
5
5
|
import { resolve } from "node:path";
|
|
6
6
|
import { createHash } from "node:crypto";
|
|
@@ -2,11 +2,11 @@ import { p as commandMeta, r as defineCliCommand } from "./command-BWEEXmtz.js";
|
|
|
2
2
|
import { n as CliError, r as errorText } from "./errors-BTe6A15O.js";
|
|
3
3
|
import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-CbuPvI2x.js";
|
|
4
4
|
import { t as display } from "./io-DH1kcmmP.js";
|
|
5
|
-
import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-
|
|
5
|
+
import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-BVfeG3A5.js";
|
|
6
6
|
import { d as readSupabaseToml, f as schemaPaths, n as declarativeSchemasDir, p as sqlWorkflow } from "./supabase-toml-CncmQbO0.js";
|
|
7
7
|
import { r as supabaseCli } from "./exec--Q1ZEWUW.js";
|
|
8
8
|
import { t as connect } from "./db-CQCLx7cx.js";
|
|
9
|
-
import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-
|
|
9
|
+
import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-CDmmFmFG.js";
|
|
10
10
|
import { a as migrationFiles, i as isShadowFailure, o as migrationVersion, r as inStackDiff, t as MIGRATION_HEADER } from "./in-stack-diff-DQTW53Vf.js";
|
|
11
11
|
import { dirname, join, resolve } from "node:path";
|
|
12
12
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { a as list, p as commandMeta, r as defineCliCommand } from "./command-BWEEXmtz.js";
|
|
2
2
|
import { i as plain } from "./style-Bm2X5JrN.js";
|
|
3
|
-
import { t as VERSION } from "./version-
|
|
3
|
+
import { t as VERSION } from "./version-RSpJIWDd.js";
|
|
4
4
|
import { n as CliError, r as errorText } from "./errors-BTe6A15O.js";
|
|
5
5
|
import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-CbuPvI2x.js";
|
|
6
6
|
import { a as sameText, t as display } from "./io-DH1kcmmP.js";
|
|
7
|
-
import { t as CACHE_DIR } from "./cache-
|
|
7
|
+
import { t as CACHE_DIR } from "./cache-ByhPVMo-.js";
|
|
8
8
|
import { t as byCodePoint } from "./compare-BmIWVEui.js";
|
|
9
|
-
import { C as satisfies, S as peerVersions, c as isSqliteLiteDriver, n as managementTarget, o as snapshotFile, r as openSource, s as liteDriverOf, t as loadSnapshot, u as MetadataRejectedError } from "./snapshot-
|
|
10
|
-
import { d as configFor, r as renderFiles, u as notNullTag } from "./render-
|
|
9
|
+
import { C as satisfies, S as peerVersions, c as isSqliteLiteDriver, n as managementTarget, o as snapshotFile, r as openSource, s as liteDriverOf, t as loadSnapshot, u as MetadataRejectedError } from "./snapshot-BITNbA5V.js";
|
|
10
|
+
import { d as configFor, r as renderFiles, u as notNullTag } from "./render-CF09FCra.js";
|
|
11
11
|
import { t as isRecord } from "./guards-CUlDNYZs.js";
|
|
12
|
-
import { i as request } from "./source-
|
|
13
|
-
import { g as providerLabel, u as compiledReadSets } from "./migrations-
|
|
14
|
-
import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-
|
|
12
|
+
import { i as request } from "./source-GGJHuzpH.js";
|
|
13
|
+
import { g as providerLabel, u as compiledReadSets } from "./migrations-CUjNXokR.js";
|
|
14
|
+
import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-BVfeG3A5.js";
|
|
15
15
|
import { a as findRepoRoot, c as httpHooks, d as readSupabaseToml, f as schemaPaths, h as tomlGet, i as diffEngine, l as migrationCommand, n as declarativeSchemasDir, p as sqlWorkflow, u as pgFunctionHooks } from "./supabase-toml-CncmQbO0.js";
|
|
16
16
|
import { t as PROCESS_ENV } from "./env-DMgjB_4y.js";
|
|
17
17
|
import { n as readStackStatus } from "./stack-status-B_Ipd_-z.js";
|
|
18
18
|
import { t as connect } from "./db-CQCLx7cx.js";
|
|
19
|
-
import { a as hasContentMapper, c as supportsContentMappers, i as contentMapperSetup$1, n as TSCONFIG_SNIPPET, o as needsRunExternalCode, t as RUN_EXTERNAL_CODE } from "./content-mapper-
|
|
19
|
+
import { a as hasContentMapper, c as supportsContentMappers, i as contentMapperSetup$1, n as TSCONFIG_SNIPPET, o as needsRunExternalCode, t as RUN_EXTERNAL_CODE } from "./content-mapper-qH-_YQ8H.js";
|
|
20
20
|
import { c as insideRoot, i as changeLines, r as applyPlan } from "./files-CX71yBm8.js";
|
|
21
|
-
import { C as splinterTables, S as advisorRule, _ as withoutStrings, a as METADATA_GAPS_TEXT, b as appTablesOf, c as accessModule, d as RLS_RULES, f as appliesTo, g as policyHelpers, h as functionObject, l as entitlementsModule, m as functionBody, p as escape$2, s as AUTHORIZATION_RULES, u as COMMANDS$2, v as BLOCK_PREFIX, x as appViewsOf, y as blockTargets } from "./run-
|
|
22
|
-
import { n as migrationsDir, r as moduleLayoutFor, t as blockDeclaredTables } from "./sql-layout-
|
|
23
|
-
import { a as permissionCatalogKeys, i as lineOf, l as tableObject, n as exposed, o as policyObject, r as exposedSchemas, s as qualified, t as catalogOf, u as workflowOf } from "./shared-
|
|
24
|
-
import { i as migrationHolds, o as migrationModules, r as latestMigration, t as MODULES_SUFFIX } from "./module-migration-
|
|
25
|
-
import { o as wiringFor, r as configInstances, t as MIGRATION_SAFETY_RULES } from "./migration-safety-
|
|
21
|
+
import { C as splinterTables, S as advisorRule, _ as withoutStrings, a as METADATA_GAPS_TEXT, b as appTablesOf, c as accessModule, d as RLS_RULES, f as appliesTo, g as policyHelpers, h as functionObject, l as entitlementsModule, m as functionBody, p as escape$2, s as AUTHORIZATION_RULES, u as COMMANDS$2, v as BLOCK_PREFIX, x as appViewsOf, y as blockTargets } from "./run-lh-chAJW.js";
|
|
22
|
+
import { n as migrationsDir, r as moduleLayoutFor, t as blockDeclaredTables } from "./sql-layout-BoD5ynN9.js";
|
|
23
|
+
import { a as permissionCatalogKeys, i as lineOf, l as tableObject, n as exposed, o as policyObject, r as exposedSchemas, s as qualified, t as catalogOf, u as workflowOf } from "./shared-D05A6t1e.js";
|
|
24
|
+
import { i as migrationHolds, o as migrationModules, r as latestMigration, t as MODULES_SUFFIX } from "./module-migration-C6NLY9iZ.js";
|
|
25
|
+
import { o as wiringFor, r as configInstances, t as MIGRATION_SAFETY_RULES } from "./migration-safety-Cy7xlU4G.js";
|
|
26
26
|
import { t as orphanedBlockFiles } from "./orphans-BAboqyVM.js";
|
|
27
|
-
import { i as reservedRoles, n as ident$1, r as literal$1, t as LIVE_RULES } from "./live-
|
|
28
|
-
import { a as sourceFlags, n as SOURCE_ARGS } from "./source-args-
|
|
27
|
+
import { i as reservedRoles, n as ident$1, r as literal$1, t as LIVE_RULES } from "./live-KcdTBUij.js";
|
|
28
|
+
import { a as sourceFlags, n as SOURCE_ARGS } from "./source-args-CDmmFmFG.js";
|
|
29
29
|
import { i as PLUGIN_SUBPATH_RENAMES, n as BLOCK_SUBPATH_RENAMES, o as SPEC_SUBPATH_RENAMES, t as BLOCK_EXPORT_RENAMES } from "./codemod-block-renames-BuSaTE_G.js";
|
|
30
30
|
import { n as PLATFORM_SCHEMAS } from "./in-stack-diff-DQTW53Vf.js";
|
|
31
31
|
import { i as staleVariables, r as stackEnvValues, t as PREFIX_NAMES } from "./stack-env-6hS-WEmh.js";
|
|
32
32
|
import { a as readSharedMemory, n as listStacks, t as branchName } from "./stacks-BYlQ96WS.js";
|
|
33
|
-
import { i as refuseWithMetadata, r as readMetadataSnapshot } from "./metadata-
|
|
33
|
+
import { i as refuseWithMetadata, r as readMetadataSnapshot } from "./metadata-DWQSIZ59.js";
|
|
34
34
|
import { existsSync } from "node:fs";
|
|
35
35
|
import { dirname, resolve } from "node:path";
|
|
36
36
|
import { createHash } from "node:crypto";
|
|
@@ -1409,8 +1409,9 @@ function attachmentSubjects(context) {
|
|
|
1409
1409
|
* Whether `expression` only checks that the caller is a member of the row's
|
|
1410
1410
|
* tenant: `current_tenant_id()`, a `*_ids_with` or `*member_*ids` function in
|
|
1411
1411
|
* any schema (the provider's own helpers included), `can('tenant', ...)` or
|
|
1412
|
-
* `member_can`, joined by `and`, with a soft-delete `is null`
|
|
1413
|
-
*
|
|
1412
|
+
* `member_can`, joined by `and`, with a soft-delete `is null` and the
|
|
1413
|
+
* support-session `actor_may_write()` guard allowed. A permission call passes
|
|
1414
|
+
* only with one of `keys`.
|
|
1414
1415
|
*/
|
|
1415
1416
|
function tenantOnly(expression, column, keys) {
|
|
1416
1417
|
const col = `(?:"?\\w+"?\\.)?"?${escape$2(column)}"?(?:::\\w+)?`;
|
|
@@ -1421,7 +1422,8 @@ function tenantOnly(expression, column, keys) {
|
|
|
1421
1422
|
`${col}\\s+in\\s+\\(\\s*select\\s+(?:\\w+\\.)?\\w*member_\\w*ids\\(\\s*\\)(?:\\s+as\\s+\\w+)?\\s*\\)`,
|
|
1422
1423
|
`better_supabase\\.can\\(\\s*'tenant'(?:::text)?\\s*,\\s*${col}\\s*,\\s*${key}\\s*\\)`,
|
|
1423
1424
|
`better_supabase\\.member_can\\(\\s*${col}\\s*,\\s*${key}\\s*\\)`,
|
|
1424
|
-
`(?:"?\\w+"?\\.)?"?\\w+"?\\s+is\\s+null
|
|
1425
|
+
`(?:"?\\w+"?\\.)?"?\\w+"?\\s+is\\s+null`,
|
|
1426
|
+
`\\(?\\s*(?:select\\s+)?better_supabase\\.actor_may_write\\(\\)(?:\\s+as\\s+\\w+)?\\s*\\)?`
|
|
1425
1427
|
];
|
|
1426
1428
|
const used = [];
|
|
1427
1429
|
let rest = expression;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { a as list, p as commandMeta, r as defineCliCommand } from "./command-BWEEXmtz.js";
|
|
2
2
|
import { i as plain } from "./style-Bm2X5JrN.js";
|
|
3
3
|
import { a as parseNames, i as failedResult, n as CliError } from "./errors-BTe6A15O.js";
|
|
4
|
-
import { u as catalogFingerprint } from "./cache-
|
|
5
|
-
import { a as serializeSnapshot, g as serializeGenerator, h as restrictSchemas, o as snapshotFile, r as openSource, t as loadSnapshot } from "./snapshot-
|
|
6
|
-
import { n as dataMigration } from "./migrations-
|
|
7
|
-
import { d as GEN_TASKS, p as isGenTask } from "./config-
|
|
4
|
+
import { u as catalogFingerprint } from "./cache-ByhPVMo-.js";
|
|
5
|
+
import { a as serializeSnapshot, g as serializeGenerator, h as restrictSchemas, o as snapshotFile, r as openSource, t as loadSnapshot } from "./snapshot-BITNbA5V.js";
|
|
6
|
+
import { n as dataMigration } from "./migrations-CUjNXokR.js";
|
|
7
|
+
import { d as GEN_TASKS, p as isGenTask } from "./config-BVfeG3A5.js";
|
|
8
8
|
import { c as insideRoot, r as applyPlan, u as planResult } from "./files-CX71yBm8.js";
|
|
9
|
-
import { n as runGen } from "./run-
|
|
10
|
-
import { t as syncModules } from "./sync-
|
|
11
|
-
import { t as addModules } from "./add-
|
|
12
|
-
import { n as listModules, t as printModule } from "./print-
|
|
13
|
-
import { a as sourceFlags, i as sourceArgs, n as SOURCE_ARGS } from "./source-args-
|
|
14
|
-
import { a as runMetadataGen, n as checkMetadataFlags, t as EMITS } from "./metadata-
|
|
9
|
+
import { n as runGen } from "./run-lh-chAJW.js";
|
|
10
|
+
import { t as syncModules } from "./sync-_QlsTmqu.js";
|
|
11
|
+
import { t as addModules } from "./add-DVHniZOO.js";
|
|
12
|
+
import { n as listModules, t as printModule } from "./print-Cy_ram9N.js";
|
|
13
|
+
import { a as sourceFlags, i as sourceArgs, n as SOURCE_ARGS } from "./source-args-CDmmFmFG.js";
|
|
14
|
+
import { a as runMetadataGen, n as checkMetadataFlags, t as EMITS } from "./metadata-DWQSIZ59.js";
|
|
15
15
|
import { a as runEnv } from "./env-BCgVZkcb.js";
|
|
16
|
-
import { c as watchLoop, o as parseInterval, r as specOptionsFromConfig, s as stampFiles, t as runSpec } from "./spec-
|
|
17
|
-
import { n as runPowerSync } from "./powersync-
|
|
18
|
-
import { t as runSeed } from "./seed-
|
|
19
|
-
import { t as upgrade } from "./upgrade-
|
|
16
|
+
import { c as watchLoop, o as parseInterval, r as specOptionsFromConfig, s as stampFiles, t as runSpec } from "./spec-BGcRdlhN.js";
|
|
17
|
+
import { n as runPowerSync } from "./powersync-CE_hQdgc.js";
|
|
18
|
+
import { t as runSeed } from "./seed-BMynpMPy.js";
|
|
19
|
+
import { t as upgrade } from "./upgrade-Cwhb1M7O.js";
|
|
20
20
|
import { existsSync } from "node:fs";
|
|
21
21
|
import { resolve } from "node:path";
|
|
22
22
|
//#region src/cli/commands/sql.ts
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -798,6 +798,6 @@ export declare function emitModule(model: Model, options: EmitOptions): string;
|
|
|
798
798
|
export declare function loadConfig(cwd: string, explicit?: string, environment?: string, path?: string | undefined): Promise<ResolvedConfig>;
|
|
799
799
|
//#endregion
|
|
800
800
|
//#region src/cli/version.d.ts
|
|
801
|
-
export declare const VERSION = "0.
|
|
801
|
+
export declare const VERSION = "0.23.0";
|
|
802
802
|
//#endregion
|
|
803
803
|
export type { Catalog, CatalogCheck, CatalogColumn, CatalogColumnGrant, CatalogEnum, CatalogForeignKey, CatalogFunction, CatalogFunctionArg, CatalogGrant, CatalogIndex, CatalogPolicy, CatalogTable, CatalogTrigger, CatalogUnique, Choice, Cli, CliArgs, CliCommand, CliCommandDef, CliContext, CliEnv, CliErrorCode, CliErrorOptions, CliIo, CliLog, CliProblem, CliProblemExtensions, CommandResult, CreateCliOptions, ExitCode, ExtrasFunction, ExtrasHook, ExtrasHookFunction, ExtrasTable, ForeignKeyAction, Format, GeneratorMetadata, IntrospectionSource, ManagementSourceOptions, NextStep, Paint, Prompter, Queryable, RunOptions, RunResult, Snapshot, SnapshotBucket, SnapshotExtras };
|