better-supabase 0.54.0 → 0.55.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/{agents-DcZk8HBB.d.ts → agents-CBXJce8J.d.ts} +2 -2
- package/dist/{ai-schedules-b-uWaxba.d.ts → ai-schedules-CtwkMJDZ.d.ts} +1 -1
- package/dist/ai-sdk/agents/index.d.ts +1 -1
- package/dist/ai-sdk/workflow/index.d.ts +1 -1
- package/dist/{app-tables-B2xNMyLA.d.ts → app-tables-BsDmauWB.d.ts} +1 -1
- package/dist/{audit-actions-Dni5Y4wV.d.ts → audit-actions-DC-AtyWB.d.ts} +6 -0
- package/dist/{authorization-Bk6cLL5f.d.ts → authorization-DK7YSiFV.d.ts} +1 -1
- package/dist/{automations-CjKWYzIu.js → automations-Cu1KdCvL.js} +3 -1
- package/dist/{bind-DWElQa6I.d.ts → bind-DiGmjHzz.d.ts} +4 -4
- package/dist/{block-env-CQQUMPYZ.d.ts → block-env-BTKZBCL4.d.ts} +4 -4
- package/dist/{block-subjects-9KU6Q6-3.js → block-subjects-BoJrJAgR.js} +3 -2
- package/dist/{block-tables-JC1dMLaA.d.ts → block-tables-B6Jt0mWg.d.ts} +1 -1
- package/dist/blocks/access-requests/index.d.ts +1 -1
- package/dist/blocks/accounting/index.d.ts +1 -1
- package/dist/blocks/acknowledgements/index.d.ts +1 -1
- package/dist/blocks/activities/index.d.ts +2 -2
- package/dist/blocks/advisories/index.d.ts +1 -1
- package/dist/blocks/agent-checkout/index.d.ts +1 -1
- package/dist/blocks/agents/index.d.ts +1 -1
- package/dist/blocks/ai-cache/index.d.ts +1 -1
- package/dist/blocks/ai-chat/index.d.ts +1 -1
- package/dist/blocks/ai-evals/index.d.ts +1 -1
- package/dist/blocks/ai-files/index.d.ts +1 -1
- package/dist/blocks/ai-guardrails/index.d.ts +1 -1
- package/dist/blocks/ai-keys/index.d.ts +1 -1
- package/dist/blocks/ai-schedules/index.d.ts +2 -2
- package/dist/blocks/announcements/index.d.ts +4 -4
- package/dist/blocks/api-keys/index.d.ts +1 -1
- package/dist/blocks/appraisals/index.d.ts +1 -1
- package/dist/blocks/approvals/index.d.ts +1 -1
- package/dist/blocks/assets/index.d.ts +2 -2
- package/dist/blocks/assignment/index.d.ts +1 -1
- package/dist/blocks/attachments/index.d.ts +5 -5
- package/dist/blocks/audit/index.d.ts +2 -2
- package/dist/blocks/automations/index.d.ts +3 -3
- package/dist/blocks/banking/index.d.ts +1 -1
- package/dist/blocks/billable-time/index.d.ts +1 -1
- package/dist/blocks/billing/index.d.ts +2 -2
- package/dist/blocks/bookings/index.d.ts +2 -2
- package/dist/blocks/bulk/index.d.ts +1 -1
- package/dist/blocks/calendar/index.d.ts +3 -3
- package/dist/blocks/care/index.d.ts +27 -27
- package/dist/blocks/care-plans/index.d.ts +3 -3
- package/dist/blocks/cases/index.d.ts +3 -3
- package/dist/blocks/catalog/index.d.ts +2 -2
- package/dist/blocks/channels/index.d.ts +1 -1
- package/dist/blocks/clinical-decision-support/index.d.ts +1 -1
- package/dist/blocks/cms/index.d.ts +5 -5
- package/dist/blocks/collaboration/index.d.ts +6 -6
- package/dist/blocks/collections/index.d.ts +1 -1
- package/dist/blocks/comments/index.d.ts +2 -2
- package/dist/blocks/commerce/index.d.ts +5 -5
- package/dist/blocks/commerce/index.js +2 -2
- package/dist/blocks/commissions/index.d.ts +1 -1
- package/dist/blocks/compliance/index.d.ts +1 -1
- package/dist/blocks/connectors/index.d.ts +1 -1
- package/dist/blocks/consents/index.d.ts +2 -2
- package/dist/blocks/contacts/index.d.ts +2 -2
- package/dist/blocks/content/index.d.ts +2 -2
- package/dist/blocks/contracts/index.d.ts +1 -1
- package/dist/blocks/courses/index.d.ts +3 -3
- package/dist/blocks/created-by/index.d.ts +2 -2
- package/dist/blocks/crm/index.d.ts +16 -16
- package/dist/blocks/crm/index.js +2 -2
- package/dist/blocks/custom-fields/index.d.ts +1 -1
- package/dist/blocks/dam/index.d.ts +2 -2
- package/dist/blocks/data-lifecycle/index.d.ts +2 -2
- package/dist/blocks/deadlines/index.d.ts +1 -1
- package/dist/blocks/deals/index.d.ts +1 -1
- package/dist/blocks/dispatch/index.d.ts +2 -2
- package/dist/blocks/document-templates/index.d.ts +2 -2
- package/dist/blocks/documents/index.d.ts +1 -1
- package/dist/blocks/domains/index.d.ts +1 -1
- package/dist/blocks/donations/index.d.ts +1 -1
- package/dist/blocks/drive/index.d.ts +5 -5
- package/dist/blocks/e-prescribing/index.d.ts +1 -1
- package/dist/blocks/employees/index.d.ts +1 -1
- package/dist/blocks/enrichment/index.d.ts +1 -1
- package/dist/blocks/enrollments/index.d.ts +2 -2
- package/dist/blocks/entitlements/index.d.ts +3 -3
- package/dist/blocks/events/index.d.ts +3 -3
- package/dist/blocks/expenses/index.d.ts +1 -1
- package/dist/blocks/field-history/index.d.ts +1 -1
- package/dist/blocks/filespace/index.d.ts +8 -8
- package/dist/blocks/finance/index.d.ts +5 -5
- package/dist/blocks/finance/index.js +1 -1
- package/dist/blocks/flags/index.d.ts +1 -1
- package/dist/blocks/forecasts/index.d.ts +1 -1
- package/dist/blocks/forms/index.d.ts +3 -3
- package/dist/blocks/funding/index.d.ts +2 -2
- package/dist/blocks/goals/index.d.ts +1 -1
- package/dist/blocks/governance/index.d.ts +4 -4
- package/dist/blocks/guests/index.d.ts +1 -1
- package/dist/blocks/hiring/index.d.ts +1 -1
- package/dist/blocks/identities/index.d.ts +1 -1
- package/dist/blocks/imports/index.d.ts +2 -2
- package/dist/blocks/inbox/index.d.ts +6 -6
- package/dist/blocks/incidents/index.d.ts +1 -1
- package/dist/blocks/index.d.ts +4 -4
- package/dist/blocks/inspections/index.d.ts +2 -2
- package/dist/blocks/inventory/index.d.ts +1 -1
- package/dist/blocks/inventory/index.js +1 -1
- package/dist/blocks/invoices/index.d.ts +1 -1
- package/dist/blocks/invoices/index.js +1 -1
- package/dist/blocks/knowledge/index.d.ts +1 -1
- package/dist/blocks/lead-scoring/index.d.ts +2 -2
- package/dist/blocks/learning/index.d.ts +3 -3
- package/dist/blocks/leases/index.d.ts +1 -1
- package/dist/blocks/leave/index.d.ts +1 -1
- package/dist/blocks/ledger/index.d.ts +1 -1
- package/dist/blocks/legal-entities/index.d.ts +2 -2
- package/dist/blocks/lims/index.d.ts +2 -2
- package/dist/blocks/mail-sync/index.d.ts +3 -3
- package/dist/blocks/maintenance/index.d.ts +2 -2
- package/dist/blocks/manufacturing/index.d.ts +2 -2
- package/dist/blocks/medications/index.d.ts +1 -1
- package/dist/blocks/meetings/index.d.ts +3 -3
- package/dist/blocks/memberships/index.d.ts +2 -2
- package/dist/blocks/memory/index.d.ts +1 -1
- package/dist/blocks/messaging/index.d.ts +5 -5
- package/dist/blocks/metrics/index.d.ts +1 -1
- package/dist/blocks/mfa/index.d.ts +2 -2
- package/dist/blocks/moderation/index.d.ts +2 -2
- package/dist/blocks/notifications/index.d.ts +5 -5
- package/dist/blocks/numbering/index.d.ts +1 -1
- package/dist/blocks/oauth-server/index.d.ts +1 -1
- package/dist/blocks/observations/index.d.ts +2 -2
- package/dist/blocks/onboarding/index.d.ts +2 -2
- package/dist/blocks/option-sets/index.d.ts +2 -2
- package/dist/blocks/orders/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/outbox/index.d.ts +1 -1
- package/dist/blocks/passes/index.d.ts +2 -2
- package/dist/blocks/payroll-export/index.d.ts +2 -2
- package/dist/blocks/payroll-export/index.js +1 -1
- package/dist/blocks/people/index.d.ts +7 -7
- package/dist/blocks/people/index.js +1 -1
- package/dist/blocks/periods/index.d.ts +1 -1
- package/dist/blocks/permissions/index.d.ts +3 -3
- package/dist/blocks/pipelines/index.d.ts +1 -1
- package/dist/blocks/posts/index.d.ts +2 -2
- package/dist/blocks/procurement/index.d.ts +5 -5
- package/dist/blocks/procurement/index.js +2 -2
- package/dist/blocks/profiles/index.d.ts +1 -1
- package/dist/blocks/projects/index.d.ts +7 -7
- package/dist/blocks/projects/index.js +2 -2
- package/dist/blocks/promotions/index.d.ts +1 -1
- package/dist/blocks/prompts/index.d.ts +1 -1
- package/dist/blocks/push/index.d.ts +2 -2
- package/dist/blocks/qualifications/index.d.ts +2 -2
- package/dist/blocks/queue/index.d.ts +2 -2
- package/dist/blocks/quotes/index.d.ts +1 -1
- package/dist/blocks/quotes/index.js +2 -2
- package/dist/blocks/rank/index.d.ts +1 -1
- package/dist/blocks/reactions/index.d.ts +4 -4
- package/dist/blocks/recruiting/index.d.ts +4 -4
- package/dist/blocks/referrals/index.d.ts +1 -1
- package/dist/blocks/relations/index.d.ts +1 -1
- package/dist/blocks/reminders/index.d.ts +1 -1
- package/dist/blocks/reviews/index.d.ts +1 -1
- package/dist/blocks/rfqs/index.d.ts +2 -2
- package/dist/blocks/risks/index.d.ts +2 -2
- package/dist/blocks/saas/index.d.ts +12 -12
- package/dist/blocks/sales/index.d.ts +1 -1
- package/dist/blocks/sales/index.js +1 -1
- package/dist/blocks/saved-views/index.d.ts +2 -2
- package/dist/blocks/scheduling/index.d.ts +4 -4
- package/dist/blocks/scores/index.d.ts +2 -2
- package/dist/blocks/search/index.d.ts +3 -3
- package/dist/blocks/security-events/index.d.ts +1 -1
- package/dist/blocks/segments/index.d.ts +2 -2
- package/dist/blocks/sequences/index.d.ts +3 -3
- package/dist/blocks/service/index.d.ts +7 -7
- package/dist/blocks/service/index.js +1 -1
- package/dist/blocks/service-accounts/index.d.ts +1 -1
- package/dist/blocks/sessions/index.d.ts +2 -2
- package/dist/blocks/settings/index.d.ts +2 -2
- package/dist/blocks/share-links/index.d.ts +1 -1
- package/dist/blocks/shifts/index.d.ts +2 -2
- package/dist/blocks/shipments/index.d.ts +2 -2
- package/dist/blocks/signatures/index.d.ts +2 -2
- package/dist/blocks/signing-keys/index.d.ts +1 -1
- package/dist/blocks/sla/index.d.ts +1 -1
- package/dist/blocks/sso/index.d.ts +1 -1
- package/dist/blocks/state-machine/index.d.ts +1 -1
- package/dist/blocks/subjects/index.d.ts +2 -2
- package/dist/blocks/support/index.d.ts +5 -5
- package/dist/blocks/support/index.js +1 -1
- package/dist/blocks/tags/index.d.ts +2 -2
- package/dist/blocks/tasks/index.d.ts +2 -2
- package/dist/blocks/tasks/index.js +1 -1
- package/dist/blocks/tax/index.d.ts +2 -2
- package/dist/blocks/teams/index.d.ts +1 -1
- package/dist/blocks/templates/index.d.ts +11 -1
- package/dist/blocks/templates/index.js +6 -1
- package/dist/blocks/tills/index.d.ts +1 -1
- package/dist/blocks/time-tracking/index.d.ts +2 -2
- package/dist/blocks/timeline/index.d.ts +1 -1
- package/dist/blocks/trash/index.d.ts +1 -1
- package/dist/blocks/undo/index.d.ts +2 -2
- package/dist/blocks/updated-at/index.d.ts +2 -2
- package/dist/blocks/usage/index.d.ts +2 -2
- package/dist/blocks/vercel-marketplace/index.d.ts +1 -1
- package/dist/blocks/versions/index.d.ts +1 -1
- package/dist/blocks/waitlist/index.d.ts +1 -1
- package/dist/blocks/warehouse/index.d.ts +1 -1
- package/dist/blocks/webhooks/index.d.ts +1 -1
- package/dist/blocks/workflow-editor/index.d.ts +4 -4
- package/dist/blocks/workflows/index.d.ts +4 -4
- package/dist/{blocks-LZklPzC5.d.ts → blocks-2HFgUcqG.d.ts} +52 -17
- package/dist/claims/index.d.ts +3 -3
- package/dist/cli/{add-DK38-F2F.js → add-BnYh-Kpy.js} +12 -12
- package/dist/cli/add-D0TUMxXn.js +1 -0
- package/dist/cli/{add-BQZbFEAP.js → add-LvxZ-JNB.js} +2 -2
- package/dist/cli/{app-table-files-C5Sx2Qao.js → app-table-files-7M0I9LaE.js} +3 -3
- package/dist/cli/{app-tables-ChZE8Z_L.js → app-tables-BfWPWiOJ.js} +2 -2
- package/dist/cli/{backfill-COnv2tOL.js → backfill-i0Tx24Sa.js} +3 -3
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-Dea_Z5Ps.js → blocks-C_7ioBdJ.js} +1 -1
- package/dist/cli/{blocks-Csu6lLqC.js → blocks-X_eD_t_f.js} +1 -1
- package/dist/cli/{cache-C1nAFZNW.js → cache-D98rjB1C.js} +1 -1
- package/dist/cli/{codemod-DHULUpez.js → codemod-j1nCkgA5.js} +1 -1
- package/dist/cli/{config-FN5Cp861.js → config-DdkxiGjH.js} +7 -0
- package/dist/cli/{config-U32Vo0h6.js → config-DmjFp8jY.js} +1 -1
- package/dist/cli/{content-mapper-QVJJto5U.js → content-mapper-UsLt4y0J.js} +2 -2
- package/dist/cli/{db-T8u160uM.js → db-B54TQ_iX.js} +2 -2
- package/dist/cli/{doctor-Du2zwLUG.js → doctor-BYJM72wi.js} +17 -17
- package/dist/cli/{gen-CQ2ubqjB.js → gen-D47t5jj3.js} +14 -14
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +7 -7
- package/dist/cli/{init-CTt0aQn1.js → init-CAWeLXCs.js} +10 -10
- package/dist/cli/{live-DMNuAml9.js → live-DNd8MMNk.js} +2 -2
- package/dist/cli/{mcp-C63ulwyU.js → mcp-BUs7M6fq.js} +2 -2
- package/dist/cli/{metadata-CylES-9Y.js → metadata-UwEYCntC.js} +3 -3
- package/dist/cli/{migrate-BezKva56.js → migrate-D-GzXR4D.js} +1 -1
- package/dist/cli/{migration-safety-DQtpMu-g.js → migration-safety-Cg9jf2s-.js} +2 -2
- package/dist/cli/{migrations-DGJJ1rHt.js → migrations-Bhcf7MHM.js} +2 -2
- package/dist/cli/{module-migration-CxbEDfSF.js → module-migration-BJaOdOWy.js} +2 -2
- package/dist/cli/powersync-Bn-u0TGP.js +1 -0
- package/dist/cli/{powersync-FUYFuZSw.js → powersync-DQKdjG_K.js} +3 -3
- package/dist/cli/{print-DAwLAC-7.js → print-B1onZWRG.js} +2 -2
- package/dist/cli/{providers-hrxX3YKU.js → providers-M7s8btf1.js} +1 -1
- package/dist/cli/{prune-workflows-DLhKu_UJ.js → prune-workflows-BiRF1YBZ.js} +3 -3
- package/dist/cli/{remove-DSC6Fvwo.js → remove-BHyzqWNm.js} +6 -6
- package/dist/cli/{render-647qdnrX.js → render-DDCy_0V_.js} +4 -4
- package/dist/cli/{run-BcI6KXV3.js → run-Csm1-Uto.js} +35 -35
- package/dist/cli/{run--qaDaqfL.js → run-DDUBMkbN.js} +9 -9
- package/dist/cli/seed-BxjjQ3OO.js +1 -0
- package/dist/cli/{seed-BgpovbwF.js → seed-kCLEYSOH.js} +2 -2
- package/dist/cli/{shared-D_DZ9MfG.js → shared-Cv22MEAO.js} +1 -1
- package/dist/cli/{snapshot-B-1tPbV4.js → snapshot-9xnSt525.js} +3 -3
- package/dist/cli/{source-BgFNrRcl.js → source-B_miugrh.js} +1 -1
- package/dist/cli/{source-args-DC8snM7e.js → source-args-C3_mMci3.js} +1 -1
- package/dist/cli/{spec-C88dtkj4.js → spec-BeAgQ-of.js} +1 -1
- package/dist/cli/{spec-CV0FdW18.js → spec-dYLJbr9J.js} +2 -2
- package/dist/cli/{sql-layout-byUur5FC.js → sql-layout-3YU4941N.js} +2 -2
- package/dist/cli/{sync-BtM7o-sI.js → sync-Bfwk4Ldc.js} +4 -4
- package/dist/cli/{upgrade-CKDeHkyy.js → upgrade-BMrkzAcD.js} +5 -5
- package/dist/cli/{upgrade-B_HEJvRX.js → upgrade-DRvMFW2T.js} +2 -2
- package/dist/cli/{version-DWDoiP5_.js → version-BXjNETWS.js} +1 -1
- package/dist/client/index.d.ts +6 -6
- package/dist/client/native/index.d.ts +4 -4
- package/dist/config/index.d.ts +4 -4
- package/dist/config/index.js +4 -4
- package/dist/{config-LOwFAFpo.js → config-CsX2THwJ.js} +3 -3
- package/dist/{config-ekflaCnS.js → config-Dgl6AxKE.js} +1 -1
- package/dist/{context-iduX3Fsn.d.ts → context-DSJpfeVv.d.ts} +47 -4
- package/dist/contract/index.d.ts +3 -3
- package/dist/{contributions-DPjEWWpE.js → contributions-olp7tVYC.js} +11 -0
- package/dist/{controller-DFGNChQL.d.ts → controller-BVee4yX8.d.ts} +1 -1
- package/dist/{conversion-DTBB0Zgt.d.ts → conversion-BPkWkVoa.d.ts} +1 -1
- package/dist/create/index.d.ts +4 -4
- package/dist/create/index.js +3 -3
- package/dist/create/lite/index.d.ts +3 -3
- package/dist/create/lite/index.js +2 -2
- package/dist/{data-engine-BKO5EAzN.d.ts → data-engine-0uVsKWaB.d.ts} +7 -3
- package/dist/{define-block-By-LUpM_.d.ts → define-block-Cu67KCN1.d.ts} +1 -1
- package/dist/{drive-CuNG4qB8.d.ts → drive-D008IDpI.d.ts} +1 -1
- package/dist/{entitlements-Go8BHqhr.d.ts → entitlements-CRBZg5y2.d.ts} +1 -1
- package/dist/{extract-DQKHxiiq.d.ts → extract-BU5w3k5s.d.ts} +1 -1
- package/dist/{field-errors-B4SMTk2e.d.ts → field-errors-CjEgbjO9.d.ts} +6 -6
- package/dist/{index-NqLuAXG3.d.ts → index--7HXH_H_.d.ts} +2 -2
- package/dist/{index-BvwlIGwY.d.ts → index-AmPcMT_X.d.ts} +1 -1
- package/dist/{index-DfJFbsVp.d.ts → index-BDn4Mqq0.d.ts} +1 -1
- package/dist/{index-DeE-Xuv7.d.ts → index-BOZ6AsMs.d.ts} +1 -1
- package/dist/{index-BkBNirhK.d.ts → index-BR8ZkijS.d.ts} +2 -2
- package/dist/{index-DzjugbCf.d.ts → index-BTl5A8Aj.d.ts} +2 -2
- package/dist/{index-BmKtYKwN.d.ts → index-BVJsz3pS.d.ts} +2 -2
- package/dist/{index-CTHuTJtf.d.ts → index-BeU2DRAI.d.ts} +1 -1
- package/dist/{index-DkNMN5uU.d.ts → index-BleHtlJ6.d.ts} +1 -1
- package/dist/{index-ROumUag2.d.ts → index-BoCyVsCr.d.ts} +1 -1
- package/dist/{index-DgRK-iM3.d.ts → index-BvPirjfD.d.ts} +4 -4
- package/dist/{index-pRdO2XnG.d.ts → index-CDEzb5bl.d.ts} +1 -1
- package/dist/{index-D-bMFoGs.d.ts → index-CKdNndE3.d.ts} +2 -2
- package/dist/{index-B8axasMg.d.ts → index-CaW37FHZ.d.ts} +1 -1
- package/dist/{index-DJyt9j86.d.ts → index-ChaJiMkI.d.ts} +2 -2
- package/dist/{index-9zNFFq6E.d.ts → index-D-3fZP5z.d.ts} +1 -1
- package/dist/{index-szXZSILq.d.ts → index-D5nY5k-2.d.ts} +7 -7
- package/dist/{index-D7FXhn2i.d.ts → index-D7zwaGAP.d.ts} +1 -1
- package/dist/{index-DkJtM-9e.d.ts → index-DDDHYXtr.d.ts} +9 -9
- package/dist/{index-DFdqVxv6.d.ts → index-DJ1Uk4ff.d.ts} +4 -4
- package/dist/{index-BKWnyAWN.d.ts → index-DR4P3Lf9.d.ts} +2 -2
- package/dist/{index-BoKvWo8t.d.ts → index-DYzQ_PPW.d.ts} +1 -1
- package/dist/{index-abVPYQE3.d.ts → index-DZRsTCds.d.ts} +1 -1
- package/dist/{index-D9Sb8Ju5.d.ts → index-DhS8Qkgj.d.ts} +3 -3
- package/dist/{index-YZ-_hzdR.d.ts → index-DsA7MQwZ.d.ts} +1 -1
- package/dist/{index-bJVAgXxw.d.ts → index-DtMdKIJU.d.ts} +2 -2
- package/dist/{index-BXRyr3ey.d.ts → index-Dyq6B4gZ.d.ts} +2 -2
- package/dist/{index-D337YzjX.d.ts → index-E_Q5L9PV.d.ts} +1 -1
- package/dist/{index-DXoS8BnK.d.ts → index-JzAR_Y7n.d.ts} +3 -3
- package/dist/{index-D4ke5U0m.d.ts → index-_RnZChF8.d.ts} +1 -1
- package/dist/{index-DkNLdcX_.d.ts → index-_wr8wCe9.d.ts} +1 -1
- package/dist/{index-20EPlFXG.d.ts → index-dMGEJLxl.d.ts} +1 -1
- package/dist/{index-DQVQYEhP.d.ts → index-ilxdL8pz.d.ts} +1 -1
- package/dist/{index-DlXgoerO.d.ts → index-r3QZBY7z.d.ts} +1 -1
- package/dist/{index-Bsd8P1iQ.d.ts → index-slG4UpF_.d.ts} +2 -2
- package/dist/{index-C1kImKZg.d.ts → index-u8EXkOzJ.d.ts} +1 -1
- package/dist/{index-Dg35ugqv.d.ts → index-voglIa16.d.ts} +4 -4
- package/dist/{instances-DJxWRqXk.js → instances-BMjIO6Xu.js} +32 -7
- package/dist/{inventory-reads-BNDSYnuG.js → inventory-reads-DEw2Kbff.js} +2 -1
- package/dist/{manifest-8JvRt8LB.d.ts → manifest-6PhMgCFi.d.ts} +1 -1
- package/dist/{manifest-B6EkxzC0.d.ts → manifest-B17Sra5h.d.ts} +1 -1
- package/dist/{manifest-DCPKfwsh.d.ts → manifest-B4CEdcH_.d.ts} +1 -1
- package/dist/{manifest-BCyCm0Z3.d.ts → manifest-BB3GjGa3.d.ts} +1 -1
- package/dist/{manifest-H6lz9xQm.d.ts → manifest-BE7UwezO.d.ts} +1 -1
- package/dist/{manifest-DGgFeLwd.d.ts → manifest-BMNwdO5D.d.ts} +1 -1
- package/dist/{manifest-BrOXXz7k.d.ts → manifest-BSvxbZH5.d.ts} +1 -1
- package/dist/{manifest-DZLr6Cbr.js → manifest-BV1YxozT.js} +1 -1
- package/dist/{manifest-BJs6pHI0.d.ts → manifest-BVjhJ3Mj.d.ts} +1 -1
- package/dist/{manifest-Dh4AJeLl.d.ts → manifest-BXxSqnLS.d.ts} +1 -1
- package/dist/{manifest-CcDqfRee.d.ts → manifest-BYbt4y_O.d.ts} +1 -1
- package/dist/{manifest-KHudP5T5.d.ts → manifest-BZL2TAB1.d.ts} +1 -1
- package/dist/{manifest-BRFen7mE.js → manifest-Bb8S2tcs.js} +1 -1
- package/dist/{manifest-fviCqeHj.d.ts → manifest-BknZ4yQ-.d.ts} +1 -1
- package/dist/{manifest-B24Ymu8p.d.ts → manifest-Bp0oZ3-W.d.ts} +1 -1
- package/dist/{manifest-DxPMUjhY.js → manifest-BvcIe5z_.js} +1 -1
- package/dist/{manifest-DWQaegX6.d.ts → manifest-Bz0EjE76.d.ts} +1 -1
- package/dist/{manifest-BbC83cJB.d.ts → manifest-BzsuqiQx.d.ts} +1 -1
- package/dist/{manifest-Dc1eHEJV.d.ts → manifest-CBwrN4Nf.d.ts} +1 -1
- package/dist/{manifest-BqBVKNjy.d.ts → manifest-CELTce26.d.ts} +1 -1
- package/dist/{manifest-jSOZl7qT.d.ts → manifest-CGZQ9lU3.d.ts} +1 -1
- package/dist/{manifest-DpF5bliV.d.ts → manifest-CGcGylmw.d.ts} +1 -1
- package/dist/{manifest-RUmJ5H6p.d.ts → manifest-CMNPpmWS.d.ts} +2 -2
- package/dist/{manifest-vG5iHhA5.d.ts → manifest-CMnLDDS3.d.ts} +1 -1
- package/dist/{manifest-CszjCxVJ.d.ts → manifest-CSHNTEJZ.d.ts} +1 -1
- package/dist/{manifest-qs_U2rx3.d.ts → manifest-CWj5SFuw.d.ts} +1 -1
- package/dist/{manifest-Cko_ySTe.d.ts → manifest-C_dVunWg.d.ts} +1 -1
- package/dist/{manifest-uL5fzXsx.d.ts → manifest-CaA-2HPK.d.ts} +1 -1
- package/dist/{manifest-DPGJ2otk.d.ts → manifest-CbKgs5qA.d.ts} +1 -1
- package/dist/{manifest-BfIYKrNe.d.ts → manifest-CdD44xlg.d.ts} +1 -1
- package/dist/{manifest-BGD8cD6S.d.ts → manifest-CoFpa0dN.d.ts} +1 -1
- package/dist/{manifest-H65OlXiB.js → manifest-CqJkmxrA.js} +1 -1
- package/dist/{manifest-BHlKJbN2.d.ts → manifest-D0FjVeay.d.ts} +1 -1
- package/dist/{manifest-Bj5hfBA_.d.ts → manifest-D2Z_2z9-.d.ts} +1 -1
- package/dist/{manifest-o-S9bj6i.d.ts → manifest-D2d1wS7g.d.ts} +1 -1
- package/dist/{manifest-CL5QEu5B.d.ts → manifest-D7mliM-d.d.ts} +1 -1
- package/dist/{manifest-DBmuiJ91.d.ts → manifest-D9P9Yhe3.d.ts} +1 -1
- package/dist/{manifest-Bg5Znp_u.d.ts → manifest-DAXz8rxB.d.ts} +1 -1
- package/dist/{manifest-BgVQ8xd3.d.ts → manifest-DG0oDOmq.d.ts} +1 -1
- package/dist/{manifest-Csw2tVut.d.ts → manifest-DGLrMEdB.d.ts} +1 -1
- package/dist/{manifest-BxujRhsY.d.ts → manifest-DGiswyG5.d.ts} +1 -1
- package/dist/{manifest-Da1QZDY4.d.ts → manifest-DIZ6chpf.d.ts} +1 -1
- package/dist/{manifest-xRlf8RQk.d.ts → manifest-DMvx2rWH.d.ts} +1 -1
- package/dist/{manifest-BtlEwVU4.d.ts → manifest-DPqKZgWn.d.ts} +1 -1
- package/dist/{manifest-BmLU5HtO.d.ts → manifest-DUlZ8qck.d.ts} +1 -1
- package/dist/{manifest-DjAdsSs4.d.ts → manifest-DYPVnKW_.d.ts} +1 -1
- package/dist/{manifest-Oo7PegXK.d.ts → manifest-D_VmA0aC.d.ts} +1 -1
- package/dist/{manifest-CAPSAozN.d.ts → manifest-Dc8pNExY.d.ts} +1 -1
- package/dist/{manifest-dXPq0ubY.d.ts → manifest-Df1QDhiQ.d.ts} +1 -1
- package/dist/{manifest-BAgvJODg.d.ts → manifest-DhXoSaUC.d.ts} +1 -1
- package/dist/{manifest-DweZMH-F.d.ts → manifest-DhpmWh55.d.ts} +1 -1
- package/dist/{manifest-BxuSAdYu.d.ts → manifest-Dk_7prKx.d.ts} +1 -1
- package/dist/{manifest-DnGgZ9_F.d.ts → manifest-Dl_bw4IU.d.ts} +1 -1
- package/dist/{manifest-BeW5LlW1.d.ts → manifest-DsuoLp-Y.d.ts} +1 -1
- package/dist/{manifest-2ZgzNTbP.d.ts → manifest-DtEcJBdE.d.ts} +10 -1
- package/dist/{manifest-DdxfAXvG.d.ts → manifest-DwCorUVJ.d.ts} +1 -1
- package/dist/{manifest-CfQ0nD_7.d.ts → manifest-DxPLHyKY.d.ts} +1 -1
- package/dist/{manifest-BSkYvne3.d.ts → manifest-Eazz96as.d.ts} +1 -1
- package/dist/{manifest-CH7g3uI3.d.ts → manifest-Pl5us_yz.d.ts} +1 -1
- package/dist/{manifest-upfKO7JJ.d.ts → manifest-X4analSK.d.ts} +1 -1
- package/dist/{manifest-2jLTjnVh.d.ts → manifest-auanzyjB.d.ts} +1 -1
- package/dist/{manifest-CeoUoZDs.d.ts → manifest-gGFtQDJz.d.ts} +1 -1
- package/dist/{manifest-BCOBkYvY.d.ts → manifest-lzwWCAYV.d.ts} +2 -2
- package/dist/{manifest-BUktyXMR.js → manifest-ok1ge1bM.js} +1 -1
- package/dist/{manifest-Ct6mHhg4.d.ts → manifest-uIIb_YLI.d.ts} +1 -1
- package/dist/{manifest-DevURQJj.js → manifest-vBvsSefP.js} +5 -1
- package/dist/{manifest-CDcaLpwB.d.ts → manifest-xikzppm9.d.ts} +1 -1
- package/dist/{manifest-BHZEsuzC.d.ts → manifest-yKx0faak.d.ts} +1 -1
- package/dist/mapper/bin.js +6 -6
- package/dist/mcp/index.d.ts +1 -1
- package/dist/next/index.d.ts +7 -7
- package/dist/{operations-IzVAIMvs.d.ts → operations-DKfYeS5z.d.ts} +1 -1
- package/dist/{options-CGQC7Wue.js → options-C1N8cOQU.js} +2 -1
- package/dist/{options-BTuDJ2RC.js → options-Cu6IqZ_n.js} +3 -1
- package/dist/{options-wBw_6uhd.js → options-Oo46IzNk.js} +2 -1
- package/dist/{orders-reads-Yo9GGjdv.js → orders-reads-2ozdZx1l.js} +108 -13
- package/dist/otel/index.js +4 -4
- package/dist/{payroll-export-T754eWz8.js → payroll-export-ChZY6W3w.js} +1 -1
- package/dist/{permissions-DxXor_NY.d.ts → permissions-C5h1cU25.d.ts} +1 -1
- package/dist/{ports-C5BEHQi6.d.ts → ports-DvaVv_3b.d.ts} +1 -1
- package/dist/powersync/index.d.ts +3 -3
- package/dist/powersync/index.js +11 -3
- package/dist/preset/index.d.ts +4 -4
- package/dist/preset/index.js +3 -3
- package/dist/{preset-8Xh21Uyw.js → preset-Cl3Q5ASC.js} +8 -2
- package/dist/{preview-B-mtB1ka.d.ts → preview-Bwg7r1Lf.d.ts} +2 -2
- package/dist/{project-C6JAWCnH.js → project-At5wBJSS.js} +5 -5
- package/dist/{push-token-TWXWra8i.d.ts → push-token-C6ZGE1g0.d.ts} +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/react/index.d.ts +6 -6
- package/dist/react/native/index.d.ts +1 -1
- package/dist/react/server.d.ts +5 -5
- package/dist/realtime/index.d.ts +3 -3
- package/dist/{record-form-B9-7RhYz.d.ts → record-form-DTncyqVH.d.ts} +1 -1
- package/dist/records/index.d.ts +7 -7
- package/dist/{sales-CLHrvNDm.js → sales-BhOckhix.js} +3 -3
- package/dist/server/index.d.ts +3 -3
- package/dist/solid/index.d.ts +5 -5
- package/dist/sql/index.d.ts +6 -6
- package/dist/sql/index.js +3 -3
- package/dist/{sql-Bam07JIf.js → sql-CdZdPqjA.js} +1010 -219
- package/dist/sqlite/index.d.ts +1 -1
- package/dist/ssr/index.d.ts +1 -1
- package/dist/svelte/index.d.ts +5 -5
- package/dist/tanstack-db/index.d.ts +1 -1
- package/dist/{tenant-BpJ2F2b_.d.ts → tenant-BTnwa5oZ.d.ts} +1 -1
- package/dist/testing/index.d.ts +6 -6
- package/dist/testing/index.js +1 -1
- package/dist/{timeline-LHtdAJnM.d.ts → timeline-B7kBQ1gh.d.ts} +2 -2
- package/dist/{topic-4KYLvvTB.d.ts → topic-hu0RP7CG.d.ts} +1 -1
- package/dist/{types-Dfa7b0KI.d.ts → types-DvglaQ_D.d.ts} +2 -2
- package/dist/vue/index.d.ts +5 -5
- package/dist/{watch-topic-C9DIO476.d.ts → watch-topic-C_rGHxIA.d.ts} +1 -1
- package/dist/webmcp/index.d.ts +1 -1
- package/dist/yjs/index.d.ts +1 -1
- package/package.json +1 -1
- package/schemas/config-v1.json +64 -1
- package/skills/better-supabase-api/references/powersync.md +1 -0
- package/dist/cli/add-3L9NVEA3.js +0 -1
- package/dist/cli/powersync-COHj6FT8.js +0 -1
- package/dist/cli/seed-CRD1tYPA.js +0 -1
package/dist/config/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { N as Casing } from "../types-BlBju7Wa.js";
|
|
2
|
-
import { Bt as SubjectsConfig, It as SubjectConfig, Lt as SubjectPermission, Rt as SubjectSearch, _ as OwnTablePolicies, c as BlockScope, d as DisabledRow, f as EntitiesConfig, i as BlockConfig, l as BlocksConfig, n as ActiveTenantSource, o as BlockMode, p as EntityConfig, r as AnyBlocksConfig, t as AccessBlockConfig, u as DEFAULT_ACTIVE_TENANT, x as tenantNameOf, zt as SubjectTeam } from "../blocks-
|
|
3
|
-
import { $r as PowerSyncGenConfig, Gr as DoctorConfig, Jr as GenTask, Kr as EnvFileConfig, Qr as OpenApiConfig, Xr as KeysConfig, Yr as IntegrationName, Zr as MigrationSafetyConfig, ai as INTEGRATION_INFO, ci as SKILLS_AGENTS, cn as FIELD_FORMATS, dn as FieldFormatInput, ei as SkillsAgent, ii as GEN_TASKS, oi as INTEGRATION_NAMES, qr as GenConfig, si as IntegrationInfo, ti as SkillsConfig, un as FieldFormat } from "../define-block-
|
|
4
|
-
import { $ as ClaimPaths, $r as APP_COLUMN_TYPES, $t as ApiConfig, Ai as CatalogPolicy, Ar as ResolvedSeedConfig, At as GeneratorBlockEntity, B as zod, Bi as Snapshot, Br as TopicTriggerLookupConfig, Bt as GeneratorNoun, Ci as CatalogColumnGrant, Ct as RoleNames, Di as CatalogFunctionArg, Dt as GeneratedFile, Ei as CatalogFunction, Et as CodecsConfig, Fi as ExtrasFunction, Fr as SeedSampleSize, Ft as GeneratorFunctionArg, G as NuqsGeneratorOptions, Gi as PostgresFunction, Gr as VectorSearchConfig, Gt as SourceConfig, H as valibot, Hi as SnapshotExtras, Hr as TopicTriggerTopicConfig, Ht as JsonSchemaSource, Ii as ExtrasHook, Ir as SqlBlockDefaults, It as GeneratorInput, J as factories, Ji as RpcFunctionArg, Jt as DataHooksFramework, K as nuqs, Ki as PostgresFunctionArg, Kr as CONFIG_DEFAULTS, Kt as TableConfig, Li as ExtrasHookFunction, Lr as SqlConfig, Lt as GeneratorInputSchema, Mi as CatalogTrigger, Mr as SeedConfig, Mt as GeneratorEntitySchemas, Ni as CatalogUnique, Nr as SeedDefaultsConfig, Nt as GeneratorField, Oi as CatalogGrant, Or as BucketConfig, Ot as Generator, Pi as ExtrasDomain, Pr as SeedSampleConfig, Pt as GeneratorFunction, Q as JsonSchemaTarget, Qi as RpcTypeReference, Qr as APP_COLUMN_FORMATS, Qt as ResolvedExtensions, R as ZodFlavor, Ri as ExtrasTable, Rr as SqlWorkflow, Rt as GeneratorJsonSchema, Si as CatalogColumn, St as ConfigReferences, Ti as CatalogForeignKey, Tt as ClaimsConfig, U as StandardSchemaGeneratorOptions, Ui as GeneratorMetadata, Ur as TopicTriggerValueConfig, Ut as JsonTypeConfig, V as ValibotGeneratorOptions, Vi as SnapshotBucket, Vr as TopicTriggerPayloadValueConfig, Vt as GeneratorTable, W as standardSchema, Wi as PostgresColumn, Wr as VectorDistance, Wt as RelationsConfig, X as buildJsonSchema, Xi as RpcFunctionReturns, Xt as FlatConfig, Y as JsonSchemaGeneratorOptions, Yi as RpcFunctionOverload, Yt as DataHooksSelect, Z as jsonSchema, Zi as RpcReturnColumn, Zr as APP_COLUMN_ACCESS, Zt as ResolvedConfig, _i as AppTableSubject, _n as ExposeRole, _t as ResolveInput, ai as AppColumnFormat, an as BlocksInput, at as blockEntityRenames, bi as Catalog, bt as BlockTableReference, ci as AppOnDeleteAction, cn as GenGroupConfig, cr as ExpandedConfig, ct as blockSubjectTypes, di as AppRollupAggregate, dn as ToolingConfig, dt as RENAMED_CONFIG_KEYS, ei as APP_ON_DELETE_ACTIONS, en as AppTableInput, et as DEFAULT_CLAIMS, fi as AppRollupConfig, fn as EntitlementPlansSource, ft as blockEntrySource, gi as AppTableEvents, gn as ExposePrivilege, gt as CONFIG_SCHEMA_URL, hi as AppTableEventKind, hn as ExposeConfig, ht as groupEntries, ii as AppColumnConfig, in as BlockInput, it as blockEntities, ji as CatalogTable, jr as ResolvedSqlConfig, jt as GeneratorColumn, ki as CatalogIndex, kr as RealtimeConfig, kt as GeneratorBlock, li as AppReference, ln as SqlInput, lt as CONFIG_GROUPS, mi as AppTableEmbedding, mn as ColumnPrivilege, mt as groupConfig, ni as APP_TABLE_EVENT_KINDS, nn as AuthConfig, nt as tenantClaimPaths, oi as AppColumnType, on as DatabaseConfig, ot as blockEventRenames, pi as AppTableConfig, pn as EntitlementsConfig, pt as flattenConfig, q as FactoriesGeneratorOptions, qi as RpcFunction, qt as DataHooksConfig, ri as AppColumnAccess, rn as BetterSupabaseConfig, rt as BlockEntity, si as AppLookupConfig, sn as EnvironmentConfig, st as blockFormerFunctions, ti as APP_ROLLUP_AGGREGATES, tn as AppTablesInput, tt as claimPaths, ui as AppReferenceTarget, un as TenantConfig, ut as RENAMED_BLOCK_KEYS, vi as AppTableVersions, vn as Privilege, vt as defineConfig, wi as CatalogEnum, wt as resolveJsonSchema, xi as CatalogCheck, xt as BucketName, yi as AppTablesConfig, yn as ResolvedExpose, yt as resolveConfig, z as ZodGeneratorOptions, zi as ForeignKeyAction, zr as TopicTriggerConfig, zt as GeneratorModel } from "../context-
|
|
5
|
-
import { a as AuthorizationPersona, c as AuthorizationRequirement, d as AuthorizationTokenHook, f as AuthorizationVersions, i as AuthorizationPermission, l as AuthorizationRoleSource, n as AuthorizationMembership, o as AuthorizationPlatformRoles, p as providerApiProblem, r as AuthorizationOperation, s as AuthorizationProvider, t as AuthorizationFunctions, u as AuthorizationScope } from "../authorization-
|
|
2
|
+
import { Bt as SubjectsConfig, It as SubjectConfig, Lt as SubjectPermission, Rt as SubjectSearch, _ as OwnTablePolicies, c as BlockScope, d as DisabledRow, f as EntitiesConfig, i as BlockConfig, l as BlocksConfig, n as ActiveTenantSource, o as BlockMode, p as EntityConfig, r as AnyBlocksConfig, t as AccessBlockConfig, u as DEFAULT_ACTIVE_TENANT, x as tenantNameOf, zt as SubjectTeam } from "../blocks-2HFgUcqG.js";
|
|
3
|
+
import { $r as PowerSyncGenConfig, Gr as DoctorConfig, Jr as GenTask, Kr as EnvFileConfig, Qr as OpenApiConfig, Xr as KeysConfig, Yr as IntegrationName, Zr as MigrationSafetyConfig, ai as INTEGRATION_INFO, ci as SKILLS_AGENTS, cn as FIELD_FORMATS, dn as FieldFormatInput, ei as SkillsAgent, ii as GEN_TASKS, oi as INTEGRATION_NAMES, qr as GenConfig, si as IntegrationInfo, ti as SkillsConfig, un as FieldFormat } from "../define-block-Cu67KCN1.js";
|
|
4
|
+
import { $ as ClaimPaths, $r as APP_COLUMN_TYPES, $t as ApiConfig, Ai as CatalogPolicy, Ar as ResolvedSeedConfig, At as GeneratorBlockEntity, B as zod, Bi as Snapshot, Br as TopicTriggerLookupConfig, Bt as GeneratorNoun, Ci as CatalogColumnGrant, Ct as RoleNames, Di as CatalogFunctionArg, Dt as GeneratedFile, Ei as CatalogFunction, Et as CodecsConfig, Fi as ExtrasFunction, Fr as SeedSampleSize, Ft as GeneratorFunctionArg, G as NuqsGeneratorOptions, Gi as PostgresFunction, Gr as VectorSearchConfig, Gt as SourceConfig, H as valibot, Hi as SnapshotExtras, Hr as TopicTriggerTopicConfig, Ht as JsonSchemaSource, Ii as ExtrasHook, Ir as SqlBlockDefaults, It as GeneratorInput, J as factories, Ji as RpcFunctionArg, Jt as DataHooksFramework, K as nuqs, Ki as PostgresFunctionArg, Kr as CONFIG_DEFAULTS, Kt as TableConfig, Li as ExtrasHookFunction, Lr as SqlConfig, Lt as GeneratorInputSchema, Mi as CatalogTrigger, Mr as SeedConfig, Mt as GeneratorEntitySchemas, Ni as CatalogUnique, Nr as SeedDefaultsConfig, Nt as GeneratorField, Oi as CatalogGrant, Or as BucketConfig, Ot as Generator, Pi as ExtrasDomain, Pr as SeedSampleConfig, Pt as GeneratorFunction, Q as JsonSchemaTarget, Qi as RpcTypeReference, Qr as APP_COLUMN_FORMATS, Qt as ResolvedExtensions, R as ZodFlavor, Ri as ExtrasTable, Rr as SqlWorkflow, Rt as GeneratorJsonSchema, Si as CatalogColumn, St as ConfigReferences, Ti as CatalogForeignKey, Tt as ClaimsConfig, U as StandardSchemaGeneratorOptions, Ui as GeneratorMetadata, Ur as TopicTriggerValueConfig, Ut as JsonTypeConfig, V as ValibotGeneratorOptions, Vi as SnapshotBucket, Vr as TopicTriggerPayloadValueConfig, Vt as GeneratorTable, W as standardSchema, Wi as PostgresColumn, Wr as VectorDistance, Wt as RelationsConfig, X as buildJsonSchema, Xi as RpcFunctionReturns, Xt as FlatConfig, Y as JsonSchemaGeneratorOptions, Yi as RpcFunctionOverload, Yt as DataHooksSelect, Z as jsonSchema, Zi as RpcReturnColumn, Zr as APP_COLUMN_ACCESS, Zt as ResolvedConfig, _i as AppTableSubject, _n as ExposeRole, _t as ResolveInput, ai as AppColumnFormat, an as BlocksInput, at as blockEntityRenames, bi as Catalog, bt as BlockTableReference, ci as AppOnDeleteAction, cn as GenGroupConfig, cr as ExpandedConfig, ct as blockSubjectTypes, di as AppRollupAggregate, dn as ToolingConfig, dt as RENAMED_CONFIG_KEYS, ei as APP_ON_DELETE_ACTIONS, en as AppTableInput, et as DEFAULT_CLAIMS, fi as AppRollupConfig, fn as EntitlementPlansSource, ft as blockEntrySource, gi as AppTableEvents, gn as ExposePrivilege, gt as CONFIG_SCHEMA_URL, hi as AppTableEventKind, hn as ExposeConfig, ht as groupEntries, ii as AppColumnConfig, in as BlockInput, it as blockEntities, ji as CatalogTable, jr as ResolvedSqlConfig, jt as GeneratorColumn, ki as CatalogIndex, kr as RealtimeConfig, kt as GeneratorBlock, li as AppReference, ln as SqlInput, lt as CONFIG_GROUPS, mi as AppTableEmbedding, mn as ColumnPrivilege, mt as groupConfig, ni as APP_TABLE_EVENT_KINDS, nn as AuthConfig, nt as tenantClaimPaths, oi as AppColumnType, on as DatabaseConfig, ot as blockEventRenames, pi as AppTableConfig, pn as EntitlementsConfig, pt as flattenConfig, q as FactoriesGeneratorOptions, qi as RpcFunction, qt as DataHooksConfig, ri as AppColumnAccess, rn as BetterSupabaseConfig, rt as BlockEntity, si as AppLookupConfig, sn as EnvironmentConfig, st as blockFormerFunctions, ti as APP_ROLLUP_AGGREGATES, tn as AppTablesInput, tt as claimPaths, ui as AppReferenceTarget, un as TenantConfig, ut as RENAMED_BLOCK_KEYS, vi as AppTableVersions, vn as Privilege, vt as defineConfig, wi as CatalogEnum, wt as resolveJsonSchema, xi as CatalogCheck, xt as BucketName, yi as AppTablesConfig, yn as ResolvedExpose, yt as resolveConfig, z as ZodGeneratorOptions, zi as ForeignKeyAction, zr as TopicTriggerConfig, zt as GeneratorModel } from "../context-DSJpfeVv.js";
|
|
5
|
+
import { a as AuthorizationPersona, c as AuthorizationRequirement, d as AuthorizationTokenHook, f as AuthorizationVersions, i as AuthorizationPermission, l as AuthorizationRoleSource, n as AuthorizationMembership, o as AuthorizationPlatformRoles, p as providerApiProblem, r as AuthorizationOperation, s as AuthorizationProvider, t as AuthorizationFunctions, u as AuthorizationScope } from "../authorization-DK7YSiFV.js";
|
|
6
6
|
export { APP_COLUMN_ACCESS, APP_COLUMN_FORMATS, APP_COLUMN_TYPES, APP_ON_DELETE_ACTIONS, APP_ROLLUP_AGGREGATES, APP_TABLE_EVENT_KINDS, type AccessBlockConfig, type ActiveTenantSource, type AnyBlocksConfig, type ApiConfig, type AppColumnAccess, type AppColumnConfig, type AppColumnFormat, type AppColumnType, type AppLookupConfig, type AppOnDeleteAction, type AppReference, type AppReferenceTarget, type AppRollupAggregate, type AppRollupConfig, type AppTableConfig, type AppTableEmbedding, type AppTableEventKind, type AppTableEvents, type AppTableInput, type AppTableSubject, type AppTableVersions, type AppTablesConfig, type AppTablesInput, type AuthConfig, type AuthorizationFunctions, type AuthorizationMembership, type AuthorizationOperation, type AuthorizationPermission, type AuthorizationPersona, type AuthorizationPlatformRoles, type AuthorizationProvider, type AuthorizationRequirement, type AuthorizationRoleSource, type AuthorizationScope, type AuthorizationTokenHook, type AuthorizationVersions, type BetterSupabaseConfig, type BlockConfig, type BlockEntity, type BlockInput, type BlockMode, type BlockScope, type BlockTableReference, type BlocksConfig, type BlocksInput, type BucketConfig, type BucketName, CONFIG_DEFAULTS, CONFIG_GROUPS, CONFIG_SCHEMA_URL, type Casing, type Catalog, type CatalogCheck, type CatalogColumn, type CatalogColumnGrant, type CatalogEnum, type CatalogForeignKey, type CatalogFunction, type CatalogFunctionArg, type CatalogGrant, type CatalogIndex, type CatalogPolicy, type CatalogTable, type CatalogTrigger, type CatalogUnique, type ClaimPaths, type ClaimsConfig, type CodecsConfig, type ColumnPrivilege, type ConfigReferences, DEFAULT_ACTIVE_TENANT, DEFAULT_CLAIMS, type DataHooksConfig, type DataHooksFramework, type DataHooksSelect, type DatabaseConfig, type DisabledRow, type DoctorConfig, type EntitiesConfig, type EntitlementPlansSource, type EntitlementsConfig, type EntityConfig, type EnvFileConfig, type EnvironmentConfig, type ExpandedConfig, type ExposeConfig, type ExposePrivilege, type ExposeRole, type ExtrasDomain, type ExtrasFunction, type ExtrasHook, type ExtrasHookFunction, type ExtrasTable, FIELD_FORMATS, type FactoriesGeneratorOptions, type FieldFormat, type FieldFormatInput, type FlatConfig, type ForeignKeyAction, GEN_TASKS, type GenConfig, type GenGroupConfig, type GenTask, type GeneratedFile, type Generator, type GeneratorBlock, type GeneratorBlockEntity, type GeneratorColumn, type GeneratorEntitySchemas, type GeneratorField, type GeneratorFunction, type GeneratorFunctionArg, type GeneratorInput, type GeneratorInputSchema, type GeneratorJsonSchema, type GeneratorMetadata, type GeneratorModel, type GeneratorNoun, type GeneratorTable, INTEGRATION_INFO, INTEGRATION_NAMES, type IntegrationInfo, type IntegrationName, type JsonSchemaGeneratorOptions, type JsonSchemaSource, type JsonSchemaTarget, type JsonTypeConfig, type KeysConfig, type MigrationSafetyConfig, type NuqsGeneratorOptions, type OpenApiConfig, type OwnTablePolicies, type PostgresColumn, type PostgresFunction, type PostgresFunctionArg, type PowerSyncGenConfig, type Privilege, RENAMED_BLOCK_KEYS, RENAMED_CONFIG_KEYS, type RealtimeConfig, type RelationsConfig, type ResolveInput, type ResolvedConfig, type ResolvedExpose, type ResolvedExtensions, type ResolvedSeedConfig, type ResolvedSqlConfig, type RoleNames, type RpcFunction, type RpcFunctionArg, type RpcFunctionOverload, type RpcFunctionReturns, type RpcReturnColumn, type RpcTypeReference, SKILLS_AGENTS, type SeedConfig, type SeedDefaultsConfig, type SeedSampleConfig, type SeedSampleSize, type SkillsAgent, type SkillsConfig, type Snapshot, type SnapshotBucket, type SnapshotExtras, type SourceConfig, type SqlBlockDefaults, type SqlConfig, type SqlInput, type SqlWorkflow, type StandardSchemaGeneratorOptions, type SubjectConfig, type SubjectPermission, type SubjectSearch, type SubjectTeam, type SubjectsConfig, type TableConfig, type TenantConfig, type ToolingConfig, type TopicTriggerConfig, type TopicTriggerLookupConfig, type TopicTriggerPayloadValueConfig, type TopicTriggerTopicConfig, type TopicTriggerValueConfig, type ValibotGeneratorOptions, type VectorDistance, type VectorSearchConfig, type ZodFlavor, type ZodGeneratorOptions, blockEntities, blockEntityRenames, blockEntrySource, blockEventRenames, blockFormerFunctions, blockSubjectTypes, buildJsonSchema, claimPaths, defineConfig, factories, flattenConfig, groupConfig, groupEntries, jsonSchema, nuqs, providerApiProblem, resolveConfig, resolveJsonSchema, standardSchema, tenantClaimPaths, tenantNameOf, valibot, zod };
|
package/dist/config/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as resolveJsonSchema, i as blockFormerFunctions, n as blockEntityRenames, o as blockSubjectTypes, r as blockEventRenames, t as blockEntities, v as CONFIG_DEFAULTS } from "../block-subjects-
|
|
2
|
-
import { A as blockEntrySource, D as CONFIG_GROUPS, F as INTEGRATION_INFO, I as INTEGRATION_NAMES, L as SKILLS_AGENTS, M as groupConfig, N as groupEntries, O as RENAMED_BLOCK_KEYS, P as GEN_TASKS, j as flattenConfig, k as RENAMED_CONFIG_KEYS } from "../config-
|
|
1
|
+
import { _ as resolveJsonSchema, i as blockFormerFunctions, n as blockEntityRenames, o as blockSubjectTypes, r as blockEventRenames, t as blockEntities, v as CONFIG_DEFAULTS } from "../block-subjects-BoJrJAgR.js";
|
|
2
|
+
import { A as blockEntrySource, D as CONFIG_GROUPS, F as INTEGRATION_INFO, I as INTEGRATION_NAMES, L as SKILLS_AGENTS, M as groupConfig, N as groupEntries, O as RENAMED_BLOCK_KEYS, P as GEN_TASKS, j as flattenConfig, k as RENAMED_CONFIG_KEYS } from "../config-Dgl6AxKE.js";
|
|
3
3
|
import { a as tenantClaimPaths, r as claimPaths, t as DEFAULT_CLAIMS } from "../claims-CqTr_N1n.js";
|
|
4
|
-
import { A as APP_ON_DELETE_ACTIONS, D as APP_COLUMN_ACCESS, M as APP_TABLE_EVENT_KINDS, O as APP_COLUMN_FORMATS, R as DEFAULT_ACTIVE_TENANT, V as tenantNameOf, j as APP_ROLLUP_AGGREGATES, k as APP_COLUMN_TYPES } from "../instances-
|
|
4
|
+
import { A as APP_ON_DELETE_ACTIONS, D as APP_COLUMN_ACCESS, M as APP_TABLE_EVENT_KINDS, O as APP_COLUMN_FORMATS, R as DEFAULT_ACTIVE_TENANT, V as tenantNameOf, j as APP_ROLLUP_AGGREGATES, k as APP_COLUMN_TYPES } from "../instances-BMjIO6Xu.js";
|
|
5
5
|
import { i as FIELD_FORMATS } from "../field-formats-sLYMh1ZK.js";
|
|
6
|
-
import { a as factories, c as resolveConfig, i as nuqs, l as providerApiProblem, n as valibot, o as CONFIG_SCHEMA_URL, r as standardSchema, s as defineConfig, t as zod } from "../config-
|
|
6
|
+
import { a as factories, c as resolveConfig, i as nuqs, l as providerApiProblem, n as valibot, o as CONFIG_SCHEMA_URL, r as standardSchema, s as defineConfig, t as zod } from "../config-CsX2THwJ.js";
|
|
7
7
|
import { n as jsonSchema, t as buildJsonSchema } from "../json-schema-COU-5CpW.js";
|
|
8
8
|
export { APP_COLUMN_ACCESS, APP_COLUMN_FORMATS, APP_COLUMN_TYPES, APP_ON_DELETE_ACTIONS, APP_ROLLUP_AGGREGATES, APP_TABLE_EVENT_KINDS, CONFIG_DEFAULTS, CONFIG_GROUPS, CONFIG_SCHEMA_URL, DEFAULT_ACTIVE_TENANT, DEFAULT_CLAIMS, FIELD_FORMATS, GEN_TASKS, INTEGRATION_INFO, INTEGRATION_NAMES, RENAMED_BLOCK_KEYS, RENAMED_CONFIG_KEYS, SKILLS_AGENTS, blockEntities, blockEntityRenames, blockEntrySource, blockEventRenames, blockFormerFunctions, blockSubjectTypes, buildJsonSchema, claimPaths, defineConfig, factories, flattenConfig, groupConfig, groupEntries, jsonSchema, nuqs, providerApiProblem, resolveConfig, resolveJsonSchema, standardSchema, tenantClaimPaths, tenantNameOf, valibot, zod };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as withBlockSubjects, v as CONFIG_DEFAULTS } from "./block-subjects-
|
|
2
|
-
import { j as flattenConfig, n as expandFlatPreset, r as expandPreset } from "./config-
|
|
1
|
+
import { c as withBlockSubjects, v as CONFIG_DEFAULTS } from "./block-subjects-BoJrJAgR.js";
|
|
2
|
+
import { j as flattenConfig, n as expandFlatPreset, r as expandPreset } from "./config-Dgl6AxKE.js";
|
|
3
3
|
import { t as DEFAULT_CLAIMS } from "./claims-CqTr_N1n.js";
|
|
4
4
|
import { o as tenantNames } from "./entity-naming-BES3pkQI.js";
|
|
5
|
-
import { V as tenantNameOf, _ as appTablesOf, o as resolveInstances, r as blocksByName, v as withAppTableSubjects } from "./instances-
|
|
5
|
+
import { V as tenantNameOf, _ as appTablesOf, o as resolveInstances, r as blocksByName, v as withAppTableSubjects } from "./instances-BMjIO6Xu.js";
|
|
6
6
|
import { C as variantsFor, S as variantTitle, _ as schemaName, a as extraSchemas, b as tableEntries, c as resultType, d as fieldSpec, f as fieldsFor, g as rowType, h as propertyKey, i as extraKinds, l as HEADER, m as parseImport, o as fieldMetaLines, p as optionalLine, s as objectType, u as fieldDocs, v as siblingPath, x as temporalGuardImport, y as tableDocs } from "./json-schema-COU-5CpW.js";
|
|
7
7
|
// src/config/authorization.ts
|
|
8
8
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as linkNeedsRelations, I as PRESET_CATALOG, z as asBlocksConfig } from "./instances-
|
|
1
|
+
import { F as linkNeedsRelations, I as PRESET_CATALOG, z as asBlocksConfig } from "./instances-BMjIO6Xu.js";
|
|
2
2
|
import { t as DEFAULT_TENANT } from "./entity-naming-BES3pkQI.js";
|
|
3
3
|
import { a as QUALITY, c as SAAS_LINKED, i as PUBLIC_MEDIA, l as TICKETS, n as CONTROLLED_DOCUMENTS, o as QUOTE_TO_ORDER, r as ERP, s as SAAS } from "./preset-blocks-C0y2C2k5.js";
|
|
4
4
|
import { t as canonicalJson } from "./canonical-json-CTT9fC4F.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { F as ClaimsMeta, M as BucketPolicyName, N as Casing, T as AccessBucketPolicy, st as SchemaMeta, vt as BucketLifecycle } from "./types-BlBju7Wa.js";
|
|
3
|
-
import { Bt as SubjectsConfig, Ft as RelationKindOptions, _ as OwnTablePolicies, a as BlockConfigOf, c as BlockScope, d as DisabledRow, g as NamedInstance, h as InstanceOn, i as BlockConfig, l as BlocksConfig, nn as BlockNameRegistry, o as BlockMode, p as EntityConfig, r as AnyBlocksConfig, s as BlockName, t as AccessBlockConfig, tn as TablesOf, v as ResolvedBlock, y as TenantScopeConfig } from "./blocks-
|
|
4
|
-
import { Ar as PresetAccess, Br as PresetTenantName, C as BlockWorker, Cr as EntityRename, Gr as DoctorConfig, Ir as PresetInstance, Kr as EnvFileConfig, Nr as PresetFieldKey, Qr as OpenApiConfig, Rr as PresetScope, Sr as EntityNoun, Xr as KeysConfig, Yr as IntegrationName, b as BlockEnvKey, bi as BlockSchedule, fi as ActionDescriptor, fn as FieldFormatName, g as PartDefaults, i as BlockCategory, jr as PresetConventions, kr as Preset, ln as FIELD_FORMAT_NAMES, mt as PortName, ni as SpecOutputConfig, qr as GenConfig, ri as SpecsConfig, ti as SkillsConfig, x as BlockProvider, xi as DefaultAutomation, xr as EntityNames } from "./define-block-
|
|
3
|
+
import { Bt as SubjectsConfig, Ft as RelationKindOptions, _ as OwnTablePolicies, a as BlockConfigOf, c as BlockScope, d as DisabledRow, g as NamedInstance, h as InstanceOn, i as BlockConfig, l as BlocksConfig, nn as BlockNameRegistry, o as BlockMode, p as EntityConfig, r as AnyBlocksConfig, s as BlockName, t as AccessBlockConfig, tn as TablesOf, v as ResolvedBlock, y as TenantScopeConfig } from "./blocks-2HFgUcqG.js";
|
|
4
|
+
import { Ar as PresetAccess, Br as PresetTenantName, C as BlockWorker, Cr as EntityRename, Gr as DoctorConfig, Ir as PresetInstance, Kr as EnvFileConfig, Nr as PresetFieldKey, Qr as OpenApiConfig, Rr as PresetScope, Sr as EntityNoun, Xr as KeysConfig, Yr as IntegrationName, b as BlockEnvKey, bi as BlockSchedule, fi as ActionDescriptor, fn as FieldFormatName, g as PartDefaults, i as BlockCategory, jr as PresetConventions, kr as Preset, ln as FIELD_FORMAT_NAMES, mt as PortName, ni as SpecOutputConfig, qr as GenConfig, ri as SpecsConfig, ti as SkillsConfig, x as BlockProvider, xi as DefaultAutomation, xr as EntityNames } from "./define-block-Cu67KCN1.js";
|
|
5
5
|
import { a as ScalarKind, i as FieldSpec } from "./table-schema-CwXg7oBz.js";
|
|
6
6
|
import { n as ReadType } from "./read-type-BmF8GOkz.js";
|
|
7
|
-
import { a as BlockSqlEmit, r as BlockSqlAction } from "./audit-actions-
|
|
7
|
+
import { a as BlockSqlEmit, r as BlockSqlAction } from "./audit-actions-DC-AtyWB.js";
|
|
8
8
|
import { t as GuestAction } from "./guest-actions-DfHHp98H.js";
|
|
9
|
-
import { l as AuthorizationRoleSource, n as AuthorizationMembership, o as AuthorizationPlatformRoles, r as AuthorizationOperation, s as AuthorizationProvider, t as AuthorizationFunctions } from "./authorization-
|
|
9
|
+
import { l as AuthorizationRoleSource, n as AuthorizationMembership, o as AuthorizationPlatformRoles, r as AuthorizationOperation, s as AuthorizationProvider, t as AuthorizationFunctions } from "./authorization-DK7YSiFV.js";
|
|
10
10
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
11
11
|
/**
|
|
12
12
|
* One declared link from an entity of this module to an entity of another
|
|
@@ -326,6 +326,7 @@ interface BlockContributions {
|
|
|
326
326
|
readonly "share-links": ShareLinkContribution;
|
|
327
327
|
readonly "state-machine": StateMachineContribution;
|
|
328
328
|
readonly subjects: SubjectContribution;
|
|
329
|
+
readonly templates: TemplateContribution;
|
|
329
330
|
}
|
|
330
331
|
/** `BlockSql.contributes`: one function per generic block it adds to. */
|
|
331
332
|
type BlockContributes = { readonly [K in keyof BlockContributions]?: (own: BlockSqlContext, target: BlockSqlContext) => readonly BlockContributions[K][]; };
|
|
@@ -615,6 +616,47 @@ interface SummarySection {
|
|
|
615
616
|
*/
|
|
616
617
|
readonly readAt?: string;
|
|
617
618
|
}
|
|
619
|
+
/**
|
|
620
|
+
* A template type the contributing block owns. `storage: "rows"` keeps the
|
|
621
|
+
* content as rows of `table` whose template column points at `templates`. ADR 0244.
|
|
622
|
+
*/
|
|
623
|
+
interface TemplateContribution {
|
|
624
|
+
readonly type: string;
|
|
625
|
+
readonly storage: "body" | "rows";
|
|
626
|
+
readonly subject?: string;
|
|
627
|
+
/** Qualified `clone(source uuid, overrides jsonb) returns jsonb`. */
|
|
628
|
+
readonly clone?: string;
|
|
629
|
+
/** Qualified table of the root row, for `rows`. */
|
|
630
|
+
readonly table?: string;
|
|
631
|
+
/** The template column of `table`, unquoted. */
|
|
632
|
+
readonly templateColumn?: string;
|
|
633
|
+
/** The id column of `table`. Defaults to `id`. */
|
|
634
|
+
readonly idColumn?: string;
|
|
635
|
+
/** `schema.table` of a 1:1 extension keyed by `template_id`. */
|
|
636
|
+
readonly extension?: string;
|
|
637
|
+
/** JSON Schema for `templates.settings` of this type. */
|
|
638
|
+
readonly settings?: Readonly<Record<string, unknown>>;
|
|
639
|
+
readonly rules?: TemplateRules;
|
|
640
|
+
/** Child tables a pack copies, each referencing the root by `parent`. */
|
|
641
|
+
readonly children?: readonly TemplateChildTable[];
|
|
642
|
+
}
|
|
643
|
+
/** A child table packed and unpacked with a rows template. */
|
|
644
|
+
interface TemplateChildTable {
|
|
645
|
+
readonly table: string;
|
|
646
|
+
/** The column that references the root row. */
|
|
647
|
+
readonly parent: string;
|
|
648
|
+
}
|
|
649
|
+
/** Dates and `{{variables}}` applied when a template becomes a live record. */
|
|
650
|
+
interface TemplateRules {
|
|
651
|
+
readonly dates?: readonly {
|
|
652
|
+
readonly column: string;
|
|
653
|
+
/** `"now"`, or the name of another column on the new row. */
|
|
654
|
+
readonly from: string;
|
|
655
|
+
readonly days: string;
|
|
656
|
+
}[];
|
|
657
|
+
/** Text columns whose `{{name}}` placeholders `overrides.variables` fills. */
|
|
658
|
+
readonly variables?: readonly string[];
|
|
659
|
+
}
|
|
618
660
|
/** What the contributing block adds to the subject functions. */
|
|
619
661
|
interface SubjectContribution {
|
|
620
662
|
/** A section `record_summary` counts. */
|
|
@@ -4605,6 +4647,7 @@ interface BlockSqlEntitySubject {
|
|
|
4605
4647
|
* when it is installed, without an entry in `blocks.field-history.on`.
|
|
4606
4648
|
*/
|
|
4607
4649
|
readonly history?: readonly string[];
|
|
4650
|
+
readonly template?: string;
|
|
4608
4651
|
}
|
|
4609
4652
|
/**
|
|
4610
4653
|
* A noun the module names its tables, functions, events, permissions and hooks
|
package/dist/contract/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { a as AuthorizationPersona, c as AuthorizationRequirement, d as AuthorizationTokenHook, f as AuthorizationVersions, i as AuthorizationPermission, l as AuthorizationRoleSource, n as AuthorizationMembership, o as AuthorizationPlatformRoles, r as AuthorizationOperation, s as AuthorizationProvider, t as AuthorizationFunctions, u as AuthorizationScope } from "../authorization-
|
|
1
|
+
import { a as AuthorizationPersona, c as AuthorizationRequirement, d as AuthorizationTokenHook, f as AuthorizationVersions, i as AuthorizationPermission, l as AuthorizationRoleSource, n as AuthorizationMembership, o as AuthorizationPlatformRoles, r as AuthorizationOperation, s as AuthorizationProvider, t as AuthorizationFunctions, u as AuthorizationScope } from "../authorization-DK7YSiFV.js";
|
|
2
2
|
import { r as AuthzVersionSource } from "../authz-topic-C7n3kIm_.js";
|
|
3
3
|
import { $t as AuthorizationSubject, D as AccessTopicPolicy, E as AccessPolicySql, Gt as AuthorizationChange, Jt as AuthorizationOutcome, Kt as AuthorizationContext, Qt as AuthorizationResourceSource, T as AccessBucketPolicy, Ut as AnyAuthorizer, Wt as AuthorizationCallKind, Xt as AuthorizationRequest, Yt as AuthorizationPurpose, Zt as AuthorizationResource, an as RequestMemo, en as Authorizer, in as PermissionRef, qt as AuthorizationIntent, rn as AuthzVersionCache, tn as AuthorizerRuntime } from "../types-BlBju7Wa.js";
|
|
4
4
|
import { _ as SupportAuthorize, g as SubscriberPolicy, i as AuthorizationHooks, v as SupportAuthorizeInput } from "../authorization-hooks-DM_ijJsD.js";
|
|
5
5
|
import { s as ApiKeyResolverOptions } from "../api-keys-Dqif78kM.js";
|
|
6
6
|
import { r as CredentialProvider } from "../provider-ChtwfkqL.js";
|
|
7
|
-
import { a as ToolDecision, n as McpOptions, s as ToolRef } from "../index-
|
|
7
|
+
import { a as ToolDecision, n as McpOptions, s as ToolRef } from "../index-D7zwaGAP.js";
|
|
8
8
|
import { m as SessionSnapshot } from "../resolve-B9Rn2M5c.js";
|
|
9
9
|
import { n as ApprovalOptions } from "../server-types-Cf4eX4kr.js";
|
|
10
|
-
import { n as BlockTables, t as BlockTable } from "../block-tables-
|
|
10
|
+
import { n as BlockTables, t as BlockTable } from "../block-tables-B6Jt0mWg.js";
|
|
11
11
|
/**
|
|
12
12
|
* The types an authorization library implements or reads, in one entry with no
|
|
13
13
|
* runtime code. Every slot is versioned `apiVersion: 1`; a breaking change to
|
|
@@ -149,6 +149,15 @@ function registeredSubjects(subjects, naming = tenantNames()) {
|
|
|
149
149
|
const tenant = entry.tenant === false ? void 0 : column(`${where}.tenant`, entry.tenant ?? naming.rename("organization_id"));
|
|
150
150
|
if (entry.title !== void 0) column(`${where}.title`, entry.title);
|
|
151
151
|
if (entry.deletedAt !== void 0) column(`${where}.deletedAt`, entry.deletedAt);
|
|
152
|
+
const template = entry.template;
|
|
153
|
+
if (typeof template === "string") column(`${where}.template`, template);
|
|
154
|
+
else if (template !== void 0) {
|
|
155
|
+
column(`${where}.template.column`, template.column);
|
|
156
|
+
for (const [index, child] of (template.children ?? []).entries()) {
|
|
157
|
+
column(`${where}.template.children[${String(index)}].column`, child.column);
|
|
158
|
+
if (typeof child.table !== "string" || !/^[a-z_][a-z0-9_]{0,62}(\.[a-z_][a-z0-9_]{0,62})?$/.test(child.table)) throw new TypeError(`${where}.template.children[${String(index)}].table must be "table" or "schema.table"`);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
152
161
|
if (entry.url !== void 0) for (const [, name] of entry.url.matchAll(PLACEHOLDER)) column(`${where}.url {${name ?? ""}}`, name);
|
|
153
162
|
for (const [action, value] of Object.entries(entry.permissions ?? {})) checkPermission(`${where}.permissions.${action}`, action, value);
|
|
154
163
|
const readAccess = entry.readAccess;
|
|
@@ -200,6 +209,8 @@ function subjectColumns(entry, tenant) {
|
|
|
200
209
|
if (entry.tenant !== false) columns.push(["tenant", entry.tenant ?? tenantNames(tenant).rename("organization_id")]);
|
|
201
210
|
if (entry.title !== void 0) columns.push(["title", entry.title]);
|
|
202
211
|
if (entry.deletedAt !== void 0) columns.push(["deletedAt", entry.deletedAt]);
|
|
212
|
+
if (typeof entry.template === "string") columns.push(["template", entry.template]);
|
|
213
|
+
else if (entry.template !== void 0) columns.push(["template.column", entry.template.column]);
|
|
203
214
|
for (const [, name] of entry.url?.matchAll(PLACEHOLDER) ?? []) if (name !== void 0) columns.push([`url {${name}}`, name]);
|
|
204
215
|
if (entry.rank !== void 0) {
|
|
205
216
|
columns.push(["rank.column", entry.rank.column]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ClientAuth } from "./bind-
|
|
1
|
+
import { a as ClientAuth } from "./bind-DiGmjHzz.js";
|
|
2
2
|
/**
|
|
3
3
|
* A block's client state, framework-agnostic. `subscribe` and `getSnapshot`
|
|
4
4
|
* follow the external-store contract, so React's `useSyncExternalStore`, a Vue
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { di as ActionContext, li as Action, ui as ActionCall } from "./define-block-
|
|
1
|
+
import { di as ActionContext, li as Action, ui as ActionCall } from "./define-block-Cu67KCN1.js";
|
|
2
2
|
import { f as Result } from "./result-CMqlHv82.js";
|
|
3
3
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
4
4
|
/** A record a conversion reads from or creates: its subject type and id. */
|
package/dist/create/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
|
-
import { En as PresetName, ci as AppOnDeleteAction, ei as APP_ON_DELETE_ACTIONS, jn as CreateDesign, lr as PresetInput, m as BlockSqlAccessProvider, mr as PresetSpec, oi as AppColumnType, ri as AppColumnAccess } from "../context-
|
|
3
|
-
import { $ as SchemaTable, A as renameColumn, B as AppEvents, C as editTable, Ct as tableWithComputed, D as isEmptyDesign, Dt as IssueSeverity, E as isAppTable, Et as IssueCode, F as singular, G as subjectTypeError, H as eventsColumnsEdited, I as tidy, J as SchemaData, K as SchemaColumn, L as updateTable, M as setColumn, N as setExtraColumn, O as moveTables, Ot as IssueSource, P as setTableId, Q as SchemaSource, R as userConnection, S as duplicateTable, St as rollupSources, T as identifierError, Tt as Issue, U as subjectColumns, V as AppSubject, W as subjectColumnsEdited, X as SchemaOptions, Y as SchemaForeignKey, Z as SchemaSoftRef, _ as connect, _t as isRollupAggregate, a as AppScope, at as tenantColumnOf, b as deleteExtraColumn, bt as readableColumns, c as ConnectResult, ct as ComputedRow, d as EMPTY_DESIGN, dt as RollupAggregate, et as SchemaTarget, f as NamedDesign, ft as computedColumnRenamed, g as columnError, gt as fittedRollup, h as appTableId, ht as filterColumns, i as AppReference, it as tableStatements, j as renameTable, k as referenceFrom, l as Connection, lt as DraftRollup, m as addTable, mt as computedTableRenamed, n as APP_MODULE, nt as parseSchema, o as AppTable, ot as AppLookup, p as TablePatch, pt as computedRows, q as SchemaComputed, r as AppColumn, rt as schemaRelations, s as AppTableId, st as AppRollup, t as PresetMigrationFile, tt as keyColumnsOf, u as Design, ut as ROLLUP_AGGREGATES, v as defaultError, vt as lookupSources, w as freeTableName, wt as tableWithoutComputed, x as deleteTable, xt as rollupColumns, y as deleteColumn, yt as prunedComputed, z as withDesign } from "../types-
|
|
4
|
-
import { kr as Preset } from "../define-block-
|
|
2
|
+
import { En as PresetName, ci as AppOnDeleteAction, ei as APP_ON_DELETE_ACTIONS, jn as CreateDesign, lr as PresetInput, m as BlockSqlAccessProvider, mr as PresetSpec, oi as AppColumnType, ri as AppColumnAccess } from "../context-DSJpfeVv.js";
|
|
3
|
+
import { $ as SchemaTable, A as renameColumn, B as AppEvents, C as editTable, Ct as tableWithComputed, D as isEmptyDesign, Dt as IssueSeverity, E as isAppTable, Et as IssueCode, F as singular, G as subjectTypeError, H as eventsColumnsEdited, I as tidy, J as SchemaData, K as SchemaColumn, L as updateTable, M as setColumn, N as setExtraColumn, O as moveTables, Ot as IssueSource, P as setTableId, Q as SchemaSource, R as userConnection, S as duplicateTable, St as rollupSources, T as identifierError, Tt as Issue, U as subjectColumns, V as AppSubject, W as subjectColumnsEdited, X as SchemaOptions, Y as SchemaForeignKey, Z as SchemaSoftRef, _ as connect, _t as isRollupAggregate, a as AppScope, at as tenantColumnOf, b as deleteExtraColumn, bt as readableColumns, c as ConnectResult, ct as ComputedRow, d as EMPTY_DESIGN, dt as RollupAggregate, et as SchemaTarget, f as NamedDesign, ft as computedColumnRenamed, g as columnError, gt as fittedRollup, h as appTableId, ht as filterColumns, i as AppReference, it as tableStatements, j as renameTable, k as referenceFrom, l as Connection, lt as DraftRollup, m as addTable, mt as computedTableRenamed, n as APP_MODULE, nt as parseSchema, o as AppTable, ot as AppLookup, p as TablePatch, pt as computedRows, q as SchemaComputed, r as AppColumn, rt as schemaRelations, s as AppTableId, st as AppRollup, t as PresetMigrationFile, tt as keyColumnsOf, u as Design, ut as ROLLUP_AGGREGATES, v as defaultError, vt as lookupSources, w as freeTableName, wt as tableWithoutComputed, x as deleteTable, xt as rollupColumns, y as deleteColumn, yt as prunedComputed, z as withDesign } from "../types-DvglaQ_D.js";
|
|
4
|
+
import { kr as Preset } from "../define-block-Cu67KCN1.js";
|
|
5
5
|
import { a as SupabaseLint, o as SupabaseOrganization, s as SupabaseProject } from "../management-DtX4ic1F.js";
|
|
6
|
-
import { b as DesignChange } from "../index-
|
|
6
|
+
import { b as DesignChange } from "../index-slG4UpF_.js";
|
|
7
7
|
/** What `checkDesign` returns. */
|
|
8
8
|
export type DesignCheck = {
|
|
9
9
|
readonly ok: true;
|
package/dist/create/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as APP_ON_DELETE_ACTIONS } from "../instances-
|
|
2
|
-
import { $ as tableWithComputed, A as referenceFrom, B as withDesign, C as duplicateTable, D as isAppTable, E as identifierError, F as setTableId, G as filterColumns, H as computedColumnRenamed, I as singular, J as lookupSources, K as fittedRollup, L as tidy, M as renameTable, N as setColumn, O as isEmptyDesign, P as setExtraColumn, Q as rollupSources, R as updateTable, S as deleteTable, T as freeTableName, U as computedRows, V as ROLLUP_AGGREGATES, W as computedTableRenamed, X as readableColumns, Y as prunedComputed, Z as rollupColumns, _ as columnError, a as parseSchema, at as boundError, b as deleteColumn, c as tenantColumnOf, ct as fitted, d as previewFiles, dt as takesBounds, et as tableWithoutComputed, f as designIssues, ft as withBounds, g as appTableId, h as addTable, i as keyColumnsOf, it as subjectTypeError, j as renameColumn, k as moveTables, l as schemaData, lt as lockedWithoutDefault, m as EMPTY_DESIGN, n as loadProject, nt as subjectColumns, o as schemaRelations, ot as columnLabel, p as APP_MODULE, q as isRollupAggregate, r as checkDesign, rt as subjectColumnsEdited, s as tableStatements, st as encryptable, t as checkProject, tt as eventsColumnsEdited, u as previewAccessProvider, ut as optionError, v as connect, w as editTable, x as deleteExtraColumn, y as defaultError, z as userConnection } from "../project-
|
|
3
|
-
import { m as diffDesigns } from "../preset-
|
|
1
|
+
import { A as APP_ON_DELETE_ACTIONS } from "../instances-BMjIO6Xu.js";
|
|
2
|
+
import { $ as tableWithComputed, A as referenceFrom, B as withDesign, C as duplicateTable, D as isAppTable, E as identifierError, F as setTableId, G as filterColumns, H as computedColumnRenamed, I as singular, J as lookupSources, K as fittedRollup, L as tidy, M as renameTable, N as setColumn, O as isEmptyDesign, P as setExtraColumn, Q as rollupSources, R as updateTable, S as deleteTable, T as freeTableName, U as computedRows, V as ROLLUP_AGGREGATES, W as computedTableRenamed, X as readableColumns, Y as prunedComputed, Z as rollupColumns, _ as columnError, a as parseSchema, at as boundError, b as deleteColumn, c as tenantColumnOf, ct as fitted, d as previewFiles, dt as takesBounds, et as tableWithoutComputed, f as designIssues, ft as withBounds, g as appTableId, h as addTable, i as keyColumnsOf, it as subjectTypeError, j as renameColumn, k as moveTables, l as schemaData, lt as lockedWithoutDefault, m as EMPTY_DESIGN, n as loadProject, nt as subjectColumns, o as schemaRelations, ot as columnLabel, p as APP_MODULE, q as isRollupAggregate, r as checkDesign, rt as subjectColumnsEdited, s as tableStatements, st as encryptable, t as checkProject, tt as eventsColumnsEdited, u as previewAccessProvider, ut as optionError, v as connect, w as editTable, x as deleteExtraColumn, y as defaultError, z as userConnection } from "../project-At5wBJSS.js";
|
|
3
|
+
import { m as diffDesigns } from "../preset-Cl3Q5ASC.js";
|
|
4
4
|
// src/create/column-kinds.ts
|
|
5
5
|
/** The groups of the column type picker, in the order it shows them. */
|
|
6
6
|
const KIND_GROUPS = [
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Tt as Issue, t as PresetMigrationFile, u as Design } from "../../types-
|
|
2
|
-
import { jn as CreateDesign, lr as PresetInput } from "../../context-
|
|
1
|
+
import { Tt as Issue, t as PresetMigrationFile, u as Design } from "../../types-DvglaQ_D.js";
|
|
2
|
+
import { jn as CreateDesign, lr as PresetInput } from "../../context-DSJpfeVv.js";
|
|
3
3
|
import { st as SchemaMeta } from "../../types-BlBju7Wa.js";
|
|
4
4
|
import { c as SpecDiagnostic } from "../../format-BT0Z3V54.js";
|
|
5
|
-
import { s as AuthorizationProvider } from "../../authorization-
|
|
5
|
+
import { s as AuthorizationProvider } from "../../authorization-DK7YSiFV.js";
|
|
6
6
|
/**
|
|
7
7
|
* The parts of `@supabase/lite` that `liteStack()` uses, typed structurally so
|
|
8
8
|
* the optional peer stays out of the published types.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as loadLite, t as LITE_INSTALL } from "../../runtime-qslVrC9l.js";
|
|
2
|
-
import { b as appDefaultError } from "../../instances-
|
|
2
|
+
import { b as appDefaultError } from "../../instances-BMjIO6Xu.js";
|
|
3
3
|
import { t as defineApi } from "../../api-CSUt1Mfm.js";
|
|
4
|
-
import { n as loadProject } from "../../project-
|
|
4
|
+
import { n as loadProject } from "../../project-At5wBJSS.js";
|
|
5
5
|
import { i as fillTemplate } from "../../access-sql-DH2LbcQe.js";
|
|
6
6
|
// src/create/lite/apply.ts
|
|
7
7
|
const MISSING_EXTENSION = /extension "([^"]+)" is not available/u;
|
|
@@ -20,9 +20,13 @@ interface CrudQueueLike {
|
|
|
20
20
|
* plugins and validation run as they do online. `I` is the table's insert type
|
|
21
21
|
* and `K` its primary key; every generated repository fits.
|
|
22
22
|
*/
|
|
23
|
+
/** The write option a replay passes: keep the values the device recorded. */
|
|
24
|
+
interface UploadWriteArgs {
|
|
25
|
+
readonly override: true;
|
|
26
|
+
}
|
|
23
27
|
interface UploadRepository<I = Record<string, unknown>, K = string> {
|
|
24
|
-
upsert(data: I): PromiseLike<Result<unknown>>;
|
|
25
|
-
update(id: K, patch: Partial<I
|
|
28
|
+
upsert(data: I, args?: UploadWriteArgs): PromiseLike<Result<unknown>>;
|
|
29
|
+
update(id: K, patch: Partial<I>, args?: UploadWriteArgs): PromiseLike<Result<unknown>>;
|
|
26
30
|
delete(id: K): PromiseLike<Result<unknown>>;
|
|
27
31
|
}
|
|
28
32
|
/**
|
|
@@ -30,7 +34,7 @@ interface UploadRepository<I = Record<string, unknown>, K = string> {
|
|
|
30
34
|
* `PUT` inserts with `create`, and a `DELETE` calls `delete`.
|
|
31
35
|
*/
|
|
32
36
|
interface CreateUploadRepository<I = Record<string, unknown>, K = string> {
|
|
33
|
-
create(data: I): PromiseLike<Result<unknown>>;
|
|
37
|
+
create(data: I, args?: UploadWriteArgs): PromiseLike<Result<unknown>>;
|
|
34
38
|
delete(id: K): PromiseLike<Result<unknown>>;
|
|
35
39
|
}
|
|
36
40
|
/** Replays one queued change. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { T as ErrorMapper, b as DbError, f as Result, t as AsyncResult } from "./result-CMqlHv82.js";
|
|
3
3
|
import { D as BlockEventPattern, Dt as Events, Ot as MergedEventMap, T as BlockEvent, Tt as EventMapOf, k as BlockEventsMatching, o as EventHub, wt as EventMap } from "./events-DN9PAcjq.js";
|
|
4
|
-
import { Wt as BlockOptionsSchema, m as InstanceKeys, p as EntityConfig } from "./blocks-
|
|
4
|
+
import { Wt as BlockOptionsSchema, m as InstanceKeys, p as EntityConfig } from "./blocks-2HFgUcqG.js";
|
|
5
5
|
import { n as BlockOptions, r as BlockTemporalOptions, s as BlockTenantOptions } from "./block-helpers-rTsuHt6v.js";
|
|
6
6
|
import { a as BlockTransportMiddleware, n as BlockHooks } from "./block-hooks-FM9t7ol_.js";
|
|
7
7
|
import { i as RpcClient, r as DbTransportSource, t as BlockTransport } from "./block-transport-CP4wAHU-.js";
|
|
@@ -5,7 +5,7 @@ import { t as BlockTransport } from "./block-transport-CP4wAHU-.js";
|
|
|
5
5
|
import { T as ErrorMapper, t as AsyncResult } from "./result-CMqlHv82.js";
|
|
6
6
|
import { n as Logger } from "./logger-0LfhvwE4.js";
|
|
7
7
|
import { t as StandardSchemaV1 } from "./standard-CiOWpeZL.js";
|
|
8
|
-
import { An as Attachment, Ln as AttachmentStorage, Mn as AttachmentDownload, Vn as Attachments, cr as RecordRequestListOptions, er as AccessRequests, sr as RecordAccessRequest } from "./define-block-
|
|
8
|
+
import { An as Attachment, Ln as AttachmentStorage, Mn as AttachmentDownload, Vn as Attachments, cr as RecordRequestListOptions, er as AccessRequests, sr as RecordAccessRequest } from "./define-block-Cu67KCN1.js";
|
|
9
9
|
import { p as ApprovalStatus } from "./approvals-DnabEGo2.js";
|
|
10
10
|
import { r as BlockTemporalOptions } from "./block-helpers-rTsuHt6v.js";
|
|
11
11
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as BlockTransport } from "./block-transport-CP4wAHU-.js";
|
|
2
2
|
import { i as EventSink } from "./cloud-event-Dj2V1lQw.js";
|
|
3
|
-
import { jn as AttachmentBucket } from "./define-block-
|
|
3
|
+
import { jn as AttachmentBucket } from "./define-block-Cu67KCN1.js";
|
|
4
4
|
import { o as Knowledge } from "./knowledge-vrO4Poa5.js";
|
|
5
5
|
import { _ as JobHandler } from "./types-CTb0Uroz.js";
|
|
6
6
|
import { t as AsyncResult } from "./result-CMqlHv82.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { b as DbError, f as Result } from "./result-CMqlHv82.js";
|
|
2
2
|
import { o as EventHub } from "./events-DN9PAcjq.js";
|
|
3
3
|
import { c as BlockTenant } from "./block-helpers-rTsuHt6v.js";
|
|
4
|
-
import { fr as GeneratedBlocks } from "./define-block-
|
|
4
|
+
import { fr as GeneratedBlocks } from "./define-block-Cu67KCN1.js";
|
|
5
5
|
import { tt as TemplateValues } from "./bucket-DJu58KBb.js";
|
|
6
6
|
import { st as QuerySpec } from "./db-blocks-CzhzWfvR.js";
|
|
7
|
-
import { n as DataEngine } from "./data-engine-
|
|
8
|
-
import { _ as TopicMessage, c as RealtimeClient, d as SubscribeOptions, i as PresenceOptions, s as PresenceSubscription } from "./topic-
|
|
9
|
-
import { t as ClientPorts } from "./ports-
|
|
10
|
-
import { a as ClientAuth } from "./bind-
|
|
11
|
-
import { a as LiveSource, r as LiveCountSeed } from "./index-
|
|
7
|
+
import { n as DataEngine } from "./data-engine-0uVsKWaB.js";
|
|
8
|
+
import { _ as TopicMessage, c as RealtimeClient, d as SubscribeOptions, i as PresenceOptions, s as PresenceSubscription } from "./topic-hu0RP7CG.js";
|
|
9
|
+
import { t as ClientPorts } from "./ports-DvaVv_3b.js";
|
|
10
|
+
import { a as ClientAuth } from "./bind-DiGmjHzz.js";
|
|
11
|
+
import { a as LiveSource, r as LiveCountSeed } from "./index-DhS8Qkgj.js";
|
|
12
12
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
13
13
|
import { QueryClient } from "@tanstack/query-core";
|
|
14
14
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { A as OrderDocuments, g as createOrders } from "./orders-CbJqNAF3.js";
|
|
2
2
|
import { n as MetricDefinition } from "./metric-definition-2KQYeUZ1.js";
|
|
3
|
-
import { c as BlockOf, li as Action } from "./define-block-
|
|
3
|
+
import { c as BlockOf, li as Action } from "./define-block-Cu67KCN1.js";
|
|
4
4
|
import { Dt as Events, M as CommerceSubjectEventData } from "./events-DN9PAcjq.js";
|
|
5
5
|
import { f as Result } from "./result-CMqlHv82.js";
|
|
6
|
-
import { n as ConversionContext, t as ConversionClients } from "./conversion-
|
|
6
|
+
import { n as ConversionContext, t as ConversionClients } from "./conversion-BPkWkVoa.js";
|
|
7
7
|
interface OrderMetricsOptions {
|
|
8
8
|
/** The orders module's schema. Default `better_supabase`. */
|
|
9
9
|
readonly schema?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as MedicationOrderInput, u as MedicationInput, x as createMedications } from "./medications-0Uuwu3k2.js";
|
|
2
|
-
import { G as EntitySchema, c as BlockOf } from "./define-block-
|
|
2
|
+
import { G as EntitySchema, c as BlockOf } from "./define-block-Cu67KCN1.js";
|
|
3
3
|
import { Dt as Events } from "./events-DN9PAcjq.js";
|
|
4
4
|
/** The record an order is for and the order's state. */
|
|
5
5
|
interface MedicationOrderEventBase {
|
|
@@ -6,7 +6,7 @@ import { t as BlockTransport } from "./block-transport-CP4wAHU-.js";
|
|
|
6
6
|
import { T as ErrorMapper, t as AsyncResult } from "./result-CMqlHv82.js";
|
|
7
7
|
import { n as Logger } from "./logger-0LfhvwE4.js";
|
|
8
8
|
import { et as RecordRef } from "./types-BlBju7Wa.js";
|
|
9
|
-
import { E as RecordBinding, G as EntitySchema, M as RecordBindingWrite, c as BlockOf } from "./define-block-
|
|
9
|
+
import { E as RecordBinding, G as EntitySchema, M as RecordBindingWrite, c as BlockOf } from "./define-block-Cu67KCN1.js";
|
|
10
10
|
import { Dt as Events } from "./events-DN9PAcjq.js";
|
|
11
11
|
/** A project's costs and earnings in one currency. */
|
|
12
12
|
interface ProjectCostTotals {
|
|
@@ -6,7 +6,7 @@ import { t as StandardSchemaV1 } from "./standard-CiOWpeZL.js";
|
|
|
6
6
|
import { et as RecordRef } from "./types-BlBju7Wa.js";
|
|
7
7
|
import { n as BlockOptions } from "./block-helpers-rTsuHt6v.js";
|
|
8
8
|
import { t as AsyncResult } from "./result-CMqlHv82.js";
|
|
9
|
-
import { E as RecordBinding, G as EntitySchema, L as RecordRowInput, M as RecordBindingWrite, c as BlockOf } from "./define-block-
|
|
9
|
+
import { E as RecordBinding, G as EntitySchema, L as RecordRowInput, M as RecordBindingWrite, c as BlockOf } from "./define-block-Cu67KCN1.js";
|
|
10
10
|
import { Dt as Events, nt as SaasSubjectEventData, tt as SaasEventData } from "./events-DN9PAcjq.js";
|
|
11
11
|
/** The events of the `share-links` block: type to data. */
|
|
12
12
|
type ShareLinksEvents = {
|
|
@@ -8,10 +8,10 @@ import { n as Logger } from "./logger-0LfhvwE4.js";
|
|
|
8
8
|
import { t as StandardSchemaV1 } from "./standard-CiOWpeZL.js";
|
|
9
9
|
import { et as RecordRef } from "./types-BlBju7Wa.js";
|
|
10
10
|
import { r as BlockTemporalOptions } from "./block-helpers-rTsuHt6v.js";
|
|
11
|
-
import { G as EntitySchema, c as BlockOf, li as Action } from "./define-block-
|
|
11
|
+
import { G as EntitySchema, c as BlockOf, li as Action } from "./define-block-Cu67KCN1.js";
|
|
12
12
|
import { c as EmployeeEventData } from "./block-events-records-BhqpDl-4.js";
|
|
13
13
|
import { Dt as Events } from "./events-DN9PAcjq.js";
|
|
14
|
-
import { n as ConversionContext, t as ConversionClients } from "./conversion-
|
|
14
|
+
import { n as ConversionContext, t as ConversionClients } from "./conversion-BPkWkVoa.js";
|
|
15
15
|
type EmployeeStatus = "preboarding" | "active" | "on_leave" | "offboarded";
|
|
16
16
|
type SalaryPeriod = "hour" | "week" | "month" | "year";
|
|
17
17
|
/** An employee. `F` types the extra columns the `fields` schema describes. */
|
|
@@ -3,10 +3,10 @@ import { At as ListArgs, B as WriteArgs, C as OffsetPageArgs, Et as GetArgs, L a
|
|
|
3
3
|
import { O as AnyFunctions, Q as PrimaryKeyValue, dt as TableKey, et as RecordRef, gt as Update, k as AnyModels, q as Insert } from "./types-BlBju7Wa.js";
|
|
4
4
|
import { t as BetterQueryMeta } from "./invalidate-DAB9CaPm.js";
|
|
5
5
|
import { n as DbException } from "./escape-like-BtorH1tO.js";
|
|
6
|
-
import { n as DataEngine, r as DataEngineOptions } from "./data-engine-
|
|
6
|
+
import { n as DataEngine, r as DataEngineOptions } from "./data-engine-0uVsKWaB.js";
|
|
7
7
|
import { o as EventHub } from "./events-DN9PAcjq.js";
|
|
8
8
|
import { f as Result, t as AsyncResult } from "./result-CMqlHv82.js";
|
|
9
|
-
import { D as RecordBindingData, F as RecordBindingWriteOutput, N as RecordBindingWriteInput, P as RecordBindingWriteName, T as AnyRecordBindingWrite, fr as GeneratedBlocks, j as RecordBindingResult, k as RecordBindingOptions, t as AnyBlock, w as AnyRecordBinding } from "./define-block-
|
|
9
|
+
import { D as RecordBindingData, F as RecordBindingWriteOutput, N as RecordBindingWriteInput, P as RecordBindingWriteName, T as AnyRecordBindingWrite, fr as GeneratedBlocks, j as RecordBindingResult, k as RecordBindingOptions, t as AnyBlock, w as AnyRecordBinding } from "./define-block-Cu67KCN1.js";
|
|
10
10
|
import { DataTag, InfiniteData, QueryClient, SkipToken } from "@tanstack/query-core";
|
|
11
11
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
12
12
|
type QueryKeyOf<T> = DataTag<readonly unknown[], T, DbException>;
|
|
@@ -10,10 +10,10 @@ import { i as Totals, n as Line, r as LineInput, t as CatalogLineInput } from ".
|
|
|
10
10
|
import { et as RecordRef } from "./types-BlBju7Wa.js";
|
|
11
11
|
import { i as QuoteVariants } from "./sales-variants-uaXwbWQ9.js";
|
|
12
12
|
import { a as TransitionActor, r as BlockTemporalOptions } from "./block-helpers-rTsuHt6v.js";
|
|
13
|
-
import { c as BlockOf, li as Action, pi as ActionFactory, xi as DefaultAutomation } from "./define-block-
|
|
13
|
+
import { c as BlockOf, li as Action, pi as ActionFactory, xi as DefaultAutomation } from "./define-block-Cu67KCN1.js";
|
|
14
14
|
import { w as QuoteEventData } from "./block-events-records-BhqpDl-4.js";
|
|
15
15
|
import { Dt as Events } from "./events-DN9PAcjq.js";
|
|
16
|
-
import { t as ConversionClients } from "./conversion-
|
|
16
|
+
import { t as ConversionClients } from "./conversion-BPkWkVoa.js";
|
|
17
17
|
/** The events of the `quotes` block: type to data. */
|
|
18
18
|
type QuotesEvents = {
|
|
19
19
|
readonly "quote.created": QuoteEventData;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as EngagementInput } from "./activities-DPq0U9Nb.js";
|
|
2
|
-
import { G as EntitySchema } from "./define-block-
|
|
2
|
+
import { G as EntitySchema } from "./define-block-Cu67KCN1.js";
|
|
3
3
|
type EngagementLog = EngagementInput & {
|
|
4
4
|
readonly type: string;
|
|
5
5
|
readonly title: string;
|
|
@@ -5,7 +5,7 @@ import { T as ErrorMapper, t as AsyncResult } from "./result-CMqlHv82.js";
|
|
|
5
5
|
import { n as Logger } from "./logger-0LfhvwE4.js";
|
|
6
6
|
import { h as FilterQuery } from "./filter-query-CJ3wcwqH.js";
|
|
7
7
|
import { r as BlockTemporalOptions } from "./block-helpers-rTsuHt6v.js";
|
|
8
|
-
import { G as EntitySchema, c as BlockOf } from "./define-block-
|
|
8
|
+
import { G as EntitySchema, c as BlockOf } from "./define-block-Cu67KCN1.js";
|
|
9
9
|
import { n as AssignmentEventData } from "./block-events-records-BhqpDl-4.js";
|
|
10
10
|
import { Dt as Events } from "./events-DN9PAcjq.js";
|
|
11
11
|
/** How a queue picks the next owner. */
|
|
@@ -3,7 +3,7 @@ import { n as BlockHooks } from "./block-hooks-FM9t7ol_.js";
|
|
|
3
3
|
import { n as Logger } from "./logger-0LfhvwE4.js";
|
|
4
4
|
import { t as AsyncResult } from "./result-CMqlHv82.js";
|
|
5
5
|
import { n as BlockOptions } from "./block-helpers-rTsuHt6v.js";
|
|
6
|
-
import { G as EntitySchema, c as BlockOf } from "./define-block-
|
|
6
|
+
import { G as EntitySchema, c as BlockOf } from "./define-block-Cu67KCN1.js";
|
|
7
7
|
import { Dt as Events } from "./events-DN9PAcjq.js";
|
|
8
8
|
declare const STATUSES: readonly ["draft", "scheduled", "published", "archived"];
|
|
9
9
|
declare const APPROVAL_STATUSES: readonly ["pending", "approved", "rejected", "cancelled", "expired"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
|
-
import { E as RecordBinding, G as EntitySchema, L as RecordRowInput, M as RecordBindingWrite, Vn as Attachments, Wn as UploadProgress, c as BlockOf } from "./define-block-
|
|
2
|
+
import { E as RecordBinding, G as EntitySchema, L as RecordRowInput, M as RecordBindingWrite, Vn as Attachments, Wn as UploadProgress, c as BlockOf } from "./define-block-Cu67KCN1.js";
|
|
3
3
|
import { r as FieldsOf } from "./block-fields-Cq2MlJJD.js";
|
|
4
4
|
import { n as BlockHooks } from "./block-hooks-FM9t7ol_.js";
|
|
5
5
|
import { i as CursorPageOptions, r as BlockTemporalOptions, s as BlockTenantOptions } from "./block-helpers-rTsuHt6v.js";
|
|
@@ -9,9 +9,9 @@ import { n as Logger } from "./logger-0LfhvwE4.js";
|
|
|
9
9
|
import { t as StandardSchemaV1 } from "./standard-CiOWpeZL.js";
|
|
10
10
|
import { et as RecordRef } from "./types-BlBju7Wa.js";
|
|
11
11
|
import { c as MessageEdit, l as MessageEdition, o as Message } from "./messaging-Co5bENPB.js";
|
|
12
|
-
import { p as SubscriptionStatus } from "./topic-
|
|
13
|
-
import { n as TopicPort } from "./watch-topic-
|
|
14
|
-
import { n as Controller, t as AuthPort } from "./controller-
|
|
12
|
+
import { p as SubscriptionStatus } from "./topic-hu0RP7CG.js";
|
|
13
|
+
import { n as TopicPort } from "./watch-topic-C_rGHxIA.js";
|
|
14
|
+
import { n as Controller, t as AuthPort } from "./controller-BVee4yX8.js";
|
|
15
15
|
interface CommentsOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockTemporalOptions, BlockTenantOptions {
|
|
16
16
|
/**
|
|
17
17
|
* A Standard Schema for the message extra columns
|
|
@@ -7,7 +7,7 @@ import { t as StandardSchemaV1 } from "./standard-CiOWpeZL.js";
|
|
|
7
7
|
import { h as FilterQuery } from "./filter-query-CJ3wcwqH.js";
|
|
8
8
|
import { n as BlockOptions } from "./block-helpers-rTsuHt6v.js";
|
|
9
9
|
import { t as AsyncResult } from "./result-CMqlHv82.js";
|
|
10
|
-
import { G as EntitySchema, c as BlockOf } from "./define-block-
|
|
10
|
+
import { G as EntitySchema, c as BlockOf } from "./define-block-Cu67KCN1.js";
|
|
11
11
|
import { Dt as Events } from "./events-DN9PAcjq.js";
|
|
12
12
|
/** What a bank statement was read from. */
|
|
13
13
|
declare const STATEMENT_FORMATS: readonly ["camt053", "mt940", "csv", "feed"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as CourseInput, o as CourseLearner, r as CourseCertificate, u as CourseLessonInput, x as Courses } from "./manifest-
|
|
2
|
-
import { E as RecordBinding, G as EntitySchema, M as RecordBindingWrite } from "./define-block-
|
|
1
|
+
import { a as CourseInput, o as CourseLearner, r as CourseCertificate, u as CourseLessonInput, x as Courses } from "./manifest-yKx0faak.js";
|
|
2
|
+
import { E as RecordBinding, G as EntitySchema, M as RecordBindingWrite } from "./define-block-Cu67KCN1.js";
|
|
3
3
|
import { i as JwsAlgorithm, n as Jwks } from "./jws-CxgTsbgG.js";
|
|
4
4
|
import { f as Result } from "./result-CMqlHv82.js";
|
|
5
5
|
/** What `upsert` takes, with the bounds the SQL checks. */
|
|
@@ -7,7 +7,7 @@ import { T as ErrorMapper, t as AsyncResult } from "./result-CMqlHv82.js";
|
|
|
7
7
|
import { n as Logger } from "./logger-0LfhvwE4.js";
|
|
8
8
|
import { t as StandardSchemaV1 } from "./standard-CiOWpeZL.js";
|
|
9
9
|
import { r as BlockTemporalOptions } from "./block-helpers-rTsuHt6v.js";
|
|
10
|
-
import { G as EntitySchema, c as BlockOf } from "./define-block-
|
|
10
|
+
import { G as EntitySchema, c as BlockOf } from "./define-block-Cu67KCN1.js";
|
|
11
11
|
import { Dt as Events } from "./events-DN9PAcjq.js";
|
|
12
12
|
/** One opening balance: a signed amount, a debit balance positive. */
|
|
13
13
|
interface OpeningBalance {
|
|
@@ -2,8 +2,8 @@ import { T as SessionEncoding } from "./resolve-B9Rn2M5c.js";
|
|
|
2
2
|
import { s as BetterSupabase } from "./db-blocks-CzhzWfvR.js";
|
|
3
3
|
import { l as PublicEnv } from "./index-F6lsRlsr.js";
|
|
4
4
|
import { O as AnyFunctions, k as AnyModels } from "./types-BlBju7Wa.js";
|
|
5
|
-
import { i as BindClientOptions, r as BetterClient } from "./bind-
|
|
6
|
-
import { i as KeyboardPort, l as StoragePort, n as DeepLinkPort, r as FilePickerPort, s as PushTokenPort, t as ClientPorts } from "./ports-
|
|
5
|
+
import { i as BindClientOptions, r as BetterClient } from "./bind-DiGmjHzz.js";
|
|
6
|
+
import { i as KeyboardPort, l as StoragePort, n as DeepLinkPort, r as FilePickerPort, s as PushTokenPort, t as ClientPorts } from "./ports-DvaVv_3b.js";
|
|
7
7
|
import { n as FunctionContract } from "./function-contract-CMJR3nYl.js";
|
|
8
8
|
import { t as AsyncResult } from "./result-CMqlHv82.js";
|
|
9
9
|
import { FunctionInvokeOptions, SupabaseClient, SupabaseClientOptions } from "@supabase/supabase-js";
|
|
@@ -8,7 +8,7 @@ import { n as Logger } from "./logger-0LfhvwE4.js";
|
|
|
8
8
|
import { t as StandardSchemaV1 } from "./standard-CiOWpeZL.js";
|
|
9
9
|
import { t as DealForecast } from "./deal-forecast-CN_BEy9s.js";
|
|
10
10
|
import { r as BlockTemporalOptions } from "./block-helpers-rTsuHt6v.js";
|
|
11
|
-
import { G as EntitySchema, c as BlockOf } from "./define-block-
|
|
11
|
+
import { G as EntitySchema, c as BlockOf } from "./define-block-Cu67KCN1.js";
|
|
12
12
|
import { s as DealEventData } from "./block-events-records-BhqpDl-4.js";
|
|
13
13
|
import { Dt as Events } from "./events-DN9PAcjq.js";
|
|
14
14
|
/** The events of the `deals` block: type to data. */
|
|
@@ -2,15 +2,15 @@ import { n as Money } from "./money-BgpAd7d3.js";
|
|
|
2
2
|
import { n as BlockHooks } from "./block-hooks-FM9t7ol_.js";
|
|
3
3
|
import { n as Logger } from "./logger-0LfhvwE4.js";
|
|
4
4
|
import { t as AsyncResult } from "./result-CMqlHv82.js";
|
|
5
|
-
import { Q as BlockContext, c as BlockOf, h as PartClients, p as CompositeOptions } from "./define-block-
|
|
6
|
-
import { i as Deal, r as dealsBlock } from "./index-
|
|
5
|
+
import { Q as BlockContext, c as BlockOf, h as PartClients, p as CompositeOptions } from "./define-block-Cu67KCN1.js";
|
|
6
|
+
import { i as Deal, r as dealsBlock } from "./index-D-3fZP5z.js";
|
|
7
7
|
import { t as Invoice } from "./invoices-DQB0pdnK.js";
|
|
8
8
|
import { l as Order } from "./codecs-B6naR6ZH.js";
|
|
9
|
-
import { c as quotesBlock, u as Quote } from "./index-
|
|
10
|
-
import { t as contactsBlock } from "./manifest-
|
|
11
|
-
import { t as invoicesBlock } from "./manifest-
|
|
12
|
-
import { i as ordersBlock } from "./index
|
|
13
|
-
import { t as pipelinesBlock } from "./manifest-
|
|
9
|
+
import { c as quotesBlock, u as Quote } from "./index-BVJsz3pS.js";
|
|
10
|
+
import { t as contactsBlock } from "./manifest-BknZ4yQ-.js";
|
|
11
|
+
import { t as invoicesBlock } from "./manifest-Bp0oZ3-W.js";
|
|
12
|
+
import { i as ordersBlock } from "./index--7HXH_H_.js";
|
|
13
|
+
import { t as pipelinesBlock } from "./manifest-CELTce26.js";
|
|
14
14
|
/** The blocks `sales` is made of, by block name. */
|
|
15
15
|
declare const salesParts: {
|
|
16
16
|
readonly contacts: typeof contactsBlock;
|