better-supabase 0.36.0 → 0.37.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/{ai-schedules-BZPmySUa.d.ts → ai-schedules-ChJkI2jo.d.ts} +1 -1
- package/dist/ai-sdk/agents/index.d.ts +2 -2
- package/dist/ai-sdk/batches/index.d.ts +1 -1
- package/dist/ai-sdk/index.d.ts +1 -1
- package/dist/ai-sdk/mcp/index.d.ts +3 -3
- package/dist/{api-XEaCJbgv.d.ts → api-CbY2qdzT.d.ts} +3 -3
- package/dist/{api-keys-C82fMru4.d.ts → api-keys-BncNDlWG.d.ts} +1 -1
- package/dist/{app-tables-C0XVpQEJ.d.ts → app-tables-BlhdqqHf.d.ts} +1 -1
- package/dist/{approvals-DqCv7f-G.d.ts → approvals-CXW3yFWZ.d.ts} +1 -1
- package/dist/astro/index.d.ts +5 -5
- package/dist/{authorization-2Rv1AJQJ.d.ts → authorization-C7yjZttV.d.ts} +44 -18
- package/dist/{authorization-hooks-C0GfMvFm.d.ts → authorization-hooks-CR8TVvqo.d.ts} +1 -1
- package/dist/better-result/index.d.ts +2 -2
- package/dist/{bind-C2XvMlfg.d.ts → bind-BspFMDdW.d.ts} +4 -4
- package/dist/{block-env-BQrtLPyc.d.ts → block-env-CLco8YUl.d.ts} +4 -4
- package/dist/{block-tables-DPOgnT3y.d.ts → block-tables-DfomofFv.d.ts} +1 -1
- package/dist/blocks/access-requests/index.d.ts +2 -2
- package/dist/blocks/activities/index.d.ts +3 -3
- package/dist/blocks/agents/index.d.ts +2 -2
- package/dist/blocks/ai-cache/index.d.ts +1 -1
- package/dist/blocks/ai-chat/index.d.ts +5 -5
- package/dist/blocks/ai-files/index.d.ts +1 -1
- package/dist/blocks/ai-keys/index.d.ts +3 -3
- package/dist/blocks/ai-schedules/index.d.ts +2 -2
- package/dist/blocks/announcements/index.d.ts +5 -5
- package/dist/blocks/api-keys/index.d.ts +2 -2
- package/dist/blocks/approvals/index.d.ts +3 -3
- package/dist/blocks/assets/index.d.ts +2 -2
- package/dist/blocks/assignment/index.d.ts +3 -3
- package/dist/blocks/attachments/index.d.ts +3 -3
- package/dist/blocks/audit/index.d.ts +7 -7
- package/dist/blocks/automations/index.d.ts +5 -5
- package/dist/blocks/billable-time/index.d.ts +2 -2
- package/dist/blocks/billing/index.d.ts +5 -5
- package/dist/blocks/bookings/index.d.ts +3 -3
- package/dist/blocks/bulk/index.d.ts +2 -2
- package/dist/blocks/calendar/index.d.ts +3 -3
- package/dist/blocks/catalog/index.d.ts +22 -3
- package/dist/blocks/catalog/index.js +31 -2
- package/dist/blocks/channels/index.d.ts +3 -3
- package/dist/blocks/collections/index.d.ts +3 -3
- package/dist/blocks/comments/index.d.ts +5 -5
- package/dist/blocks/compliance/index.d.ts +2 -2
- package/dist/blocks/connectors/index.d.ts +3 -3
- package/dist/blocks/contacts/index.d.ts +3 -3
- package/dist/blocks/content/index.d.ts +2 -2
- package/dist/blocks/contracts/index.d.ts +2 -2
- package/dist/blocks/courses/index.d.ts +2 -2
- package/dist/blocks/created-by/index.d.ts +1 -1
- package/dist/blocks/custom-fields/index.d.ts +2 -2
- package/dist/blocks/data-lifecycle/index.d.ts +4 -4
- package/dist/blocks/deals/index.d.ts +3 -3
- package/dist/blocks/dispatch/index.d.ts +2 -2
- package/dist/blocks/documents/index.d.ts +2 -2
- package/dist/blocks/domains/index.d.ts +2 -2
- package/dist/blocks/donations/index.d.ts +2 -2
- package/dist/blocks/drive/index.d.ts +3 -3
- package/dist/blocks/employees/index.d.ts +4 -4
- package/dist/blocks/enrichment/index.d.ts +3 -3
- package/dist/blocks/enrollments/index.d.ts +2 -2
- package/dist/blocks/entitlements/index.d.ts +3 -3
- package/dist/blocks/expenses/index.d.ts +2 -2
- package/dist/blocks/field-history/index.d.ts +1 -1
- package/dist/blocks/flags/index.d.ts +2 -2
- package/dist/blocks/forecasts/index.d.ts +3 -3
- package/dist/blocks/forms/index.d.ts +3 -3
- package/dist/blocks/goals/index.d.ts +1 -1
- package/dist/blocks/guests/index.d.ts +2 -2
- package/dist/blocks/hiring/index.d.ts +3 -3
- package/dist/blocks/identities/index.d.ts +2 -2
- 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 +2 -2
- package/dist/blocks/index.d.ts +4 -4
- package/dist/blocks/inventory/index.d.ts +171 -10
- package/dist/blocks/inventory/index.js +206 -13
- package/dist/blocks/invoices/index.d.ts +3 -3
- package/dist/blocks/knowledge/index.d.ts +1 -1
- package/dist/blocks/lead-scoring/index.d.ts +1 -1
- package/dist/blocks/leases/index.d.ts +2 -2
- package/dist/blocks/leave/index.d.ts +2 -2
- package/dist/blocks/ledger/index.d.ts +2 -2
- package/dist/blocks/mail-sync/index.d.ts +3 -3
- package/dist/blocks/memberships/index.d.ts +1 -1
- package/dist/blocks/memory/index.d.ts +1 -1
- package/dist/blocks/messaging/index.d.ts +7 -7
- package/dist/blocks/metrics/index.d.ts +2 -2
- 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 +7 -7
- package/dist/blocks/numbering/index.d.ts +2 -2
- package/dist/blocks/oauth-server/index.d.ts +2 -2
- package/dist/blocks/onboarding/index.d.ts +2 -2
- package/dist/blocks/orders/index.d.ts +80 -13
- package/dist/blocks/orders/index.js +63 -4
- package/dist/blocks/organizations/index.d.ts +4 -4
- package/dist/blocks/outbox/index.d.ts +2 -2
- package/dist/blocks/passes/index.d.ts +2 -2
- package/dist/blocks/permissions/index.d.ts +3 -3
- package/dist/blocks/pipelines/index.d.ts +3 -3
- package/dist/blocks/posts/index.d.ts +2 -2
- package/dist/blocks/profiles/index.d.ts +1 -1
- package/dist/blocks/promotions/index.d.ts +3 -3
- package/dist/blocks/promotions/index.js +1 -1
- package/dist/blocks/push/index.d.ts +3 -3
- package/dist/blocks/queue/index.d.ts +1 -1
- package/dist/blocks/quotes/index.d.ts +3 -3
- package/dist/blocks/rank/index.d.ts +1 -1
- package/dist/blocks/reactions/index.d.ts +5 -5
- package/dist/blocks/relations/index.d.ts +2 -2
- package/dist/blocks/reminders/index.d.ts +3 -3
- package/dist/blocks/reviews/index.d.ts +2 -2
- package/dist/blocks/saved-views/index.d.ts +4 -4
- package/dist/blocks/scores/index.d.ts +2 -2
- package/dist/blocks/search/index.d.ts +4 -4
- package/dist/blocks/security-events/index.d.ts +3 -3
- package/dist/blocks/segments/index.d.ts +3 -3
- package/dist/blocks/sequences/index.d.ts +2 -2
- package/dist/blocks/service-accounts/index.d.ts +2 -2
- package/dist/blocks/sessions/index.d.ts +2 -2
- package/dist/blocks/settings/index.d.ts +3 -3
- package/dist/blocks/share-links/index.d.ts +2 -2
- package/dist/blocks/shipments/index.d.ts +73 -4
- package/dist/blocks/shipments/index.js +57 -4
- package/dist/blocks/signatures/index.d.ts +2 -2
- package/dist/blocks/signing-keys/index.d.ts +2 -2
- package/dist/blocks/sla/index.d.ts +3 -3
- package/dist/blocks/sso/index.d.ts +3 -3
- package/dist/blocks/state-machine/index.d.ts +9 -2
- package/dist/blocks/state-machine/index.js +2 -0
- package/dist/blocks/subjects/index.d.ts +2 -2
- package/dist/blocks/tags/index.d.ts +3 -3
- package/dist/blocks/tasks/index.d.ts +5 -5
- package/dist/blocks/teams/index.d.ts +2 -2
- package/dist/blocks/templates/index.d.ts +122 -9
- package/dist/blocks/templates/index.js +157 -7
- package/dist/blocks/time-tracking/index.d.ts +3 -3
- package/dist/blocks/timeline/index.d.ts +9 -7
- package/dist/blocks/timeline/index.js +3 -1
- package/dist/blocks/trash/index.d.ts +2 -2
- package/dist/blocks/undo/index.d.ts +2 -2
- package/dist/blocks/updated-at/index.d.ts +1 -1
- package/dist/blocks/usage/index.d.ts +2 -2
- package/dist/blocks/vercel-marketplace/index.d.ts +2 -2
- package/dist/blocks/versions/index.d.ts +2 -2
- package/dist/blocks/waitlist/index.d.ts +2 -2
- package/dist/blocks/webhooks/index.d.ts +6 -6
- package/dist/blocks/workflow-editor/index.d.ts +7 -7
- package/dist/blocks/workflows/index.d.ts +5 -5
- package/dist/{carrier-D2b_028L.d.ts → carrier-B2eytEjR.d.ts} +10 -1
- package/dist/chat-sdk/index.d.ts +2 -2
- package/dist/claims/index.d.ts +5 -5
- package/dist/cli/add-8zKWiO0X.js +1 -0
- package/dist/cli/{add-D2CH8t_B.js → add-Buuy7BSU.js} +2 -2
- package/dist/cli/{add-Duf1-19E.js → add-DqfJVb1F.js} +11 -11
- package/dist/cli/{app-table-files-ha8X0rRE.js → app-table-files-Ku-4tPUu.js} +2 -2
- package/dist/cli/{app-tables-BIyQcsHH.js → app-tables-Dg0sh4dH.js} +2 -2
- package/dist/cli/{backfill-CLgA6-ll.js → backfill-Dspz6kVJ.js} +2 -2
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-BVB1fMMj.js → blocks-B8LAph-w.js} +1 -1
- package/dist/cli/{blocks-9AeouX4h.js → blocks-CqVBlc4L.js} +2 -2
- package/dist/cli/{cache-aMk9vF1_.js → cache-BbuuCIRU.js} +1 -1
- package/dist/cli/{codemod-B5wrcnF2.js → codemod-DIAy8uXt.js} +88 -62
- package/dist/cli/{command-DM_x_yzZ.js → command-67WobzTC.js} +7 -1
- package/dist/cli/{completion-DbYb3N8e.js → completion-C3nMZgUZ.js} +2 -2
- package/dist/cli/{completion-CusuUJNn.js → completion-DSrus7H1.js} +1 -1
- package/dist/cli/{completion-Cx2UYd-y.js → completion-Dm0S3ub0.js} +2 -2
- package/dist/cli/{config-BeuImpav.js → config-cbK-wiNs.js} +1 -1
- package/dist/cli/{content-mapper-CEtdbshU.js → content-mapper-NXfJ5VkP.js} +2 -2
- package/dist/cli/{db-CeiQzhPq.js → db-bK5eCLaE.js} +1 -1
- package/dist/cli/{doctor-DaOUWfRN.js → doctor-CUOyLE0c.js} +16 -16
- package/dist/cli/env-AFfMXxWw.js +1 -0
- package/dist/cli/{env-DVV10l_r.js → env-CCT-dMFm.js} +1 -1
- package/dist/cli/{gen-BO-2NF-G.js → gen-s9canfdC.js} +14 -14
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +7 -7
- package/dist/cli/{init-Xit9Hnbb.js → init-Zs0Ca5on.js} +9 -9
- package/dist/cli/{keys-DJTN2Avl.js → keys-Dj5sJNj7.js} +1 -1
- package/dist/cli/{live-CuMpyRjF.js → live-BaLsNove.js} +2 -2
- package/dist/cli/{mcp-C7d4j5cq.js → mcp-ST7bVpJD.js} +3 -3
- package/dist/cli/{metadata-D2YvkY2D.js → metadata-aOvlCOOg.js} +3 -3
- package/dist/cli/{migrate-BCXxyTKt.js → migrate-ClBx3Ggx.js} +2 -2
- package/dist/cli/{migration-safety-DfwTOBQ4.js → migration-safety-mjm1pghO.js} +1 -1
- package/dist/cli/{migrations-nomh4TBo.js → migrations-tzItvwxT.js} +2 -2
- package/dist/cli/{module-migration--9T_T-zt.js → module-migration-D0Rjdvdx.js} +2 -2
- package/dist/cli/{moved-CT6i1csY.js → moved-CY0yDtAr.js} +1 -1
- package/dist/cli/{parse-qgJylE_A.js → parse-yAC-NFMq.js} +1 -1
- package/dist/cli/{powersync-DB9WZsIv.js → powersync-DryX_DMG.js} +4 -4
- package/dist/cli/powersync-vvu2-72V.js +1 -0
- package/dist/cli/{print-S6IF5rZm.js → print-fOUnKwA9.js} +2 -2
- package/dist/cli/{providers-BDTcal71.js → providers-BR1d_5jA.js} +1 -1
- package/dist/cli/{prune-workflows-Zr2DjByi.js → prune-workflows-CCjzNrxl.js} +2 -2
- package/dist/cli/{remove-CPX5Tg5s.js → remove-B_0OIusa.js} +6 -6
- package/dist/cli/{render-Bp7a7XQ9.js → render-BCJKDX3c.js} +3 -3
- package/dist/cli/{run-BclCFEyP.js → run-4VUQTR-R.js} +9 -9
- package/dist/cli/{run-kgG50x_Z.js → run-BctvQX_g.js} +44 -43
- package/dist/cli/{run-BlVaLnt_.js → run-DX4X7xqV.js} +2 -2
- package/dist/cli/seed-CLlvrV8I.js +1 -0
- package/dist/cli/{seed-Cn2R91cd.js → seed-DSC6f0oh.js} +1 -1
- package/dist/cli/{shared-D60W9NS-.js → shared-oY7PGamd.js} +1 -1
- package/dist/cli/{skills-DH-yPDny.js → skills-B5p6bDwe.js} +1 -1
- package/dist/cli/{snapshot-C3_eQUgY.js → snapshot-CWtER9-4.js} +2 -2
- package/dist/cli/{source-Bk6XwIAK.js → source-D4uav_v9.js} +1 -1
- package/dist/cli/{spec-BDTpcBns.js → spec-BPsyEzqH.js} +1 -1
- package/dist/cli/{spec-C8ydQwZC.js → spec-DTnBeaCD.js} +3 -3
- package/dist/cli/{sql-layout-DVQ20UMi.js → sql-layout-DbhEQqq0.js} +2 -2
- package/dist/cli/{stack-CmhSfY5V.js → stack-CQXLe5j0.js} +1 -1
- package/dist/cli/{sync-D-WO4Yvl.js → sync-CazH5FX4.js} +4 -4
- package/dist/cli/{table-k5OABwy3.js → table-BIQA9Hdt.js} +1 -1
- package/dist/cli/{upgrade-DGe5Pv6v.js → upgrade-Cyx6ESpc.js} +5 -5
- package/dist/cli/{upgrade-XdhMuHAu.js → upgrade-Dyb4-f0Q.js} +3 -3
- package/dist/cli/{version-DKfeme2I.js → version-D1ZKUFng.js} +1 -1
- package/dist/client/index.d.ts +5 -5
- package/dist/client/native/index.d.ts +4 -4
- package/dist/{cloud-event-BEmAUdl1.d.ts → cloud-event-BjgxkfJJ.d.ts} +1 -1
- package/dist/{codecs-B9v5Y5HH.js → codecs-D_pOvjvD.js} +1 -0
- package/dist/{codecs-B1VO2BGL.d.ts → codecs-DaP45ETv.d.ts} +1 -1
- package/dist/{composite-B-oAH16L.d.ts → composite-DPN4SFud.d.ts} +6 -6
- package/dist/config/index.d.ts +2 -2
- package/dist/config/index.js +4 -4
- package/dist/{config-BrRlSxhx.js → config-Dx3bEPlX.js} +1 -1
- package/dist/{config-BKxjItQ-.js → config-uSliwPS6.js} +3 -3
- package/dist/{connectors-CrLRW4Ol.d.ts → connectors-DDsdz-cn.d.ts} +1 -1
- package/dist/{context-yfOlyAqb.d.ts → context-D6OZQdcT.d.ts} +2 -2
- package/dist/contract/index.d.ts +8 -8
- package/dist/{controller-CAcLEndc.d.ts → controller-DhcSXkAC.d.ts} +1 -1
- package/dist/{conversion-s1NtB6S-.d.ts → conversion-CLBBITW5.d.ts} +1 -1
- package/dist/create/index.d.ts +3 -3
- 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/credentials/index.d.ts +3 -3
- package/dist/{define-BvkaC3Oh.d.ts → define-C_He1bQO.d.ts} +1 -1
- package/dist/{define-block-Ds3aLZwz.d.ts → define-block-CDw9YGVh.d.ts} +4 -4
- package/dist/edge/index.d.ts +8 -8
- package/dist/elysia/index.d.ts +1 -1
- package/dist/{ended-iq2wp8fc.d.ts → ended-BwpmNC5k.d.ts} +1 -1
- package/dist/{entitlements-Dhu-4vlH.d.ts → entitlements-Bi4y8w8e.d.ts} +2 -2
- package/dist/eve/index.d.ts +3 -3
- package/dist/events/index.d.ts +3 -3
- package/dist/{events-DCw3c6pj.d.ts → events-DddDlibJ.d.ts} +8 -0
- package/dist/{executor-H8ZLkeHj.d.ts → executor-CxMHiDp_.d.ts} +2 -2
- package/dist/{executor-B-o7QMPp.d.ts → executor-uNDJBzT8.d.ts} +1 -1
- package/dist/expo/index.d.ts +3 -3
- package/dist/{field-errors-DXZk9Qjt.d.ts → field-errors-CJ_i6HFg.d.ts} +7 -7
- package/dist/flags-sdk/index.d.ts +1 -1
- package/dist/{framework-Byr_j8G-.d.ts → framework-B6JAPr1i.d.ts} +7 -7
- package/dist/h3/index.d.ts +1 -1
- package/dist/h3/v1/index.d.ts +1 -1
- package/dist/hono/index.d.ts +8 -8
- package/dist/{index-Dv6lfL5p.d.ts → index-Bc5t2QRU.d.ts} +11 -11
- package/dist/{index-6H-8Ib1w.d.ts → index-Bm1ftdBA.d.ts} +3 -3
- package/dist/{index-lMApFSAd.d.ts → index-C71uHfVj.d.ts} +3 -3
- package/dist/{index-C78VPlXW.d.ts → index-CRwpDGxd.d.ts} +1 -1
- package/dist/{index-CnzGRpeH.d.ts → index-Cbwvf4yE.d.ts} +5 -5
- package/dist/{index-kkZwp5M1.d.ts → index-ChvuVimY.d.ts} +4 -4
- package/dist/{index-Ag-T51Jl.d.ts → index-CvLTqmdq.d.ts} +1 -1
- package/dist/{index-Dbd1E5Au.d.ts → index-DAS_5OfK.d.ts} +3 -3
- package/dist/{index-CY612vAg.d.ts → index-DjJUamhw.d.ts} +2 -2
- package/dist/{index-BUluRi0b.d.ts → index-DrDCN45q.d.ts} +5 -5
- package/dist/index.d.ts +2 -2
- package/dist/{instances-xQ2lupVE.js → instances-DKULdpWB.js} +73 -6
- package/dist/{kit-DCuO1ZhB.d.ts → kit-lHFpu2_1.d.ts} +3 -3
- package/dist/list/index.d.ts +1 -1
- package/dist/{list-query-D1h3Dmnk.d.ts → list-query-BkbLV-Yc.d.ts} +1 -1
- package/dist/mapper/bin.js +5 -5
- package/dist/mcp/index.d.ts +3 -3
- package/dist/mcp/sdk/index.d.ts +5 -5
- package/dist/nestjs/index.d.ts +2 -2
- package/dist/next/client/index.d.ts +1 -1
- package/dist/next/index.d.ts +22 -22
- package/dist/node/index.d.ts +2 -2
- package/dist/{operations-SWpzGC_K.d.ts → operations-BDjgCmT9.d.ts} +1 -1
- package/dist/{options-DqmTs2nv.js → options-CEwoGUk_.js} +2 -1
- package/dist/{options-yRwYr4up.js → options-CGQC7Wue.js} +4 -1
- package/dist/orpc/index.d.ts +7 -7
- package/dist/otel/index.d.ts +1 -1
- package/dist/otel/index.js +4 -4
- package/dist/{outbox-BFZS6Kvz.d.ts → outbox-DikdzUKf.d.ts} +2 -2
- package/dist/{permissions-2UlVQDzY.d.ts → permissions-BGx22GP3.d.ts} +1 -1
- package/dist/{pool-yO-LzZAd.d.ts → pool-BJAjQcrJ.d.ts} +1 -1
- package/dist/{ports-prqYrReN.d.ts → ports-D63bA3p4.d.ts} +1 -1
- package/dist/postgres/index.d.ts +1 -1
- package/dist/powersync/index.d.ts +3 -3
- package/dist/preset/index.d.ts +3 -3
- package/dist/preset/index.js +3 -3
- package/dist/{preset-BvHNleCo.js → preset-oc_liUHz.js} +2 -2
- package/dist/{project-CBvowdKY.js → project-Cs0kz5OP.js} +5 -5
- package/dist/{provider-bIAzxVMB.d.ts → provider-CVlXXbda.d.ts} +1 -1
- package/dist/{push-token-DtqJeg8w.d.ts → push-token-BsyX0KlT.d.ts} +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/react/index.d.ts +8 -8
- package/dist/react/native/index.d.ts +1 -1
- package/dist/react/server.d.ts +9 -9
- package/dist/react/session.d.ts +1 -1
- package/dist/react-router/index.d.ts +5 -5
- package/dist/realtime/index.d.ts +4 -4
- package/dist/{record-form-BQA-lawE.d.ts → record-form-C-gIxGXe.d.ts} +1 -1
- package/dist/records/index.d.ts +7 -7
- package/dist/{refusal-BX1EvmpJ.d.ts → refusal-CjUUBfhY.d.ts} +2 -2
- package/dist/{resolve-BIpQRhvF.d.ts → resolve-XlMQRUeG.d.ts} +1 -1
- package/dist/{resolved-names-b6P2--jK.js → resolved-names-sd6RuTju.js} +1 -1
- package/dist/{resource-execute-A1NbR-sd.d.ts → resource-execute-B7-QaS6R.d.ts} +1 -1
- package/dist/{resource-types-CTcc37WL.d.ts → resource-types-CF3Uc6OW.d.ts} +2 -2
- package/dist/{resources-13ZFX1G6.d.ts → resources-DnHSmJIM.d.ts} +1 -1
- package/dist/{respond-CAxhkwAi.d.ts → respond-D7kUatjc.d.ts} +1 -1
- package/dist/server/index.d.ts +21 -21
- package/dist/{server-types-DEjva0MW.d.ts → server-types-DpI82uNq.d.ts} +8 -8
- package/dist/{session-CeYL3EPm.d.ts → session-JV1z0kxa.d.ts} +2 -2
- package/dist/{session-BA0YDmjt.d.ts → session-s-mUZ8RQ.d.ts} +5 -5
- package/dist/{session-status-Df6tuKY9.d.ts → session-status-CJjTuFtA.d.ts} +2 -2
- package/dist/{sign-in-4u4vLtXG.d.ts → sign-in-D5Bg7R47.d.ts} +1 -1
- package/dist/solid/index.d.ts +9 -9
- package/dist/solid-start/index.d.ts +5 -5
- package/dist/spec/index.d.ts +1 -1
- package/dist/sql/index.d.ts +5 -5
- package/dist/sql/index.js +3 -3
- package/dist/{sql-BChN3Hxv.js → sql-CWYbu_6y.js} +3853 -714
- package/dist/sqlite/index.d.ts +1 -1
- package/dist/ssr/index.d.ts +4 -4
- package/dist/{statuses-BTrQ5H4S.js → statuses-Qqpzda35.js} +12 -1
- package/dist/stock-detail-BMqvwq1q.js +12 -0
- package/dist/stock-detail-BRIt7CjU.d.ts +19 -0
- package/dist/{subject-readers-YL8H9G8X.d.ts → subject-readers-D1Km_Q42.d.ts} +1 -1
- package/dist/{support-BwtMgjVg.d.ts → support-Dj5V2WTs.d.ts} +4 -4
- package/dist/{support-view-GykHOIQ2.d.ts → support-view-DKZkZeM5.d.ts} +1 -1
- package/dist/svelte/index.d.ts +8 -8
- package/dist/sveltekit/index.d.ts +6 -6
- package/dist/{tags-CAfvzA1U.d.ts → tags-BihwKkTT.d.ts} +1 -1
- package/dist/tanstack-db/index.d.ts +1 -1
- package/dist/tanstack-start/index.d.ts +5 -5
- package/dist/{tenant-lBgoqg9T.d.ts → tenant-DqnE50Ju.d.ts} +1 -1
- package/dist/testing/index.d.ts +17 -17
- package/dist/testing/index.js +2 -2
- package/dist/{timeline-CrO48Qa6.d.ts → timeline-c6I3uxya.d.ts} +3 -3
- package/dist/{topic-x-mrN_Ff.d.ts → topic-Dp7VGPd-.d.ts} +3 -3
- package/dist/{types-auvHrNWC.d.ts → types-BXLiM6VM.d.ts} +1 -1
- package/dist/{types-CJqNGQKb.d.ts → types-DLXTmZtm.d.ts} +2 -2
- package/dist/{types-C9XfFGmA.d.ts → types-DtiDatvu.d.ts} +2 -2
- package/dist/{vault-DjbG4XQS.d.ts → vault-CbhvnoVC.d.ts} +1 -1
- package/dist/vercel-connect/index.d.ts +1 -1
- package/dist/vercel-sandbox/index.d.ts +1 -1
- package/dist/{verify-HOiu3lRR.d.ts → verify-Cpc1upDA.d.ts} +1 -1
- package/dist/{view-DdDY88SC.d.ts → view-eHgOOyRS.d.ts} +1 -1
- package/dist/vue/index.d.ts +9 -9
- package/dist/{watch-topic-D6bcqOrJ.d.ts → watch-topic-CtJAkWT4.d.ts} +1 -1
- package/dist/workflow-sdk/builder/index.d.ts +3 -3
- package/dist/workflow-sdk/index.d.ts +1 -1
- package/dist/workflow-sdk/world/index.d.ts +1 -1
- package/dist/workflow-sdk/world/index.js +1 -1
- package/dist/{workflow-sdk-D3H10W5h.d.ts → workflow-sdk-CUt0E4v6.d.ts} +1 -1
- package/dist/{workflow-sdk-CBS8L2Ku.js → workflow-sdk-pB1jCLIL.js} +21 -1
- package/dist/yjs/index.d.ts +1 -1
- package/package.json +1 -1
- package/schemas/config-v1.json +5 -0
- package/skills/better-supabase-auth/SKILL.md +1 -1
- package/dist/cli/add-De73Ghlh.js +0 -1
- package/dist/cli/env-BfWbheiC.js +0 -1
- package/dist/cli/powersync-IBM_v_eJ.js +0 -1
- package/dist/cli/seed-DGGjReq4.js +0 -1
|
@@ -3,15 +3,15 @@ import { T as ErrorMapper, f as Result, t as AsyncResult } from "../../result-DT
|
|
|
3
3
|
import { t as StandardSchemaV1 } from "../../standard-DRX6Ch1j.js";
|
|
4
4
|
import { r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
|
|
5
5
|
import { et as RecordRef } from "../../types-BzIYSSWK.js";
|
|
6
|
-
import { Ct as Events } from "../../events-
|
|
7
|
-
import { y as EmployeeEventData } from "../../index-
|
|
6
|
+
import { Ct as Events } from "../../events-DddDlibJ.js";
|
|
7
|
+
import { y as EmployeeEventData } from "../../index-DjJUamhw.js";
|
|
8
8
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
9
9
|
import { r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
|
|
10
10
|
import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
11
11
|
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
|
|
12
|
-
import { Bt as Action, Sn as EntitySchema, c as BlockOf } from "../../define-block-
|
|
12
|
+
import { Bt as Action, Sn as EntitySchema, c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
13
13
|
import { n as Money } from "../../money-BgpAd7d3.js";
|
|
14
|
-
import { n as ConversionContext, t as ConversionClients } from "../../conversion-
|
|
14
|
+
import { n as ConversionContext, t as ConversionClients } from "../../conversion-CLBBITW5.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. */
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
3
|
-
import { Ct as Events } from "../../events-
|
|
4
|
-
import { S as EnrichmentEventData } from "../../index-
|
|
3
|
+
import { Ct as Events } from "../../events-DddDlibJ.js";
|
|
4
|
+
import { S as EnrichmentEventData } from "../../index-DjJUamhw.js";
|
|
5
5
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
6
6
|
import { r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
|
|
7
7
|
import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
8
8
|
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
|
|
9
|
-
import { c as BlockOf } from "../../define-block-
|
|
9
|
+
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
10
10
|
/** What a provider looks up a company by. */
|
|
11
11
|
interface CompanyLookup {
|
|
12
12
|
readonly name: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
3
3
|
import { et as RecordRef } from "../../types-BzIYSSWK.js";
|
|
4
|
-
import { Ct as Events } from "../../events-
|
|
4
|
+
import { Ct as Events } from "../../events-DddDlibJ.js";
|
|
5
5
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
6
6
|
import { a as BlockTenantOptions, r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
|
|
7
7
|
import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
8
8
|
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
|
|
9
9
|
import { t as EnrollmentsSqlOptions } from "../../options-Dk6D88Zx.js";
|
|
10
|
-
import { c as BlockOf, rn as RecordBinding } from "../../define-block-
|
|
10
|
+
import { c as BlockOf, rn as RecordBinding } from "../../define-block-CDw9YGVh.js";
|
|
11
11
|
interface EnrollmentsOptions extends BlockTemporalOptions, BlockTenantOptions {
|
|
12
12
|
readonly transport: BlockTransport;
|
|
13
13
|
/**
|
|
@@ -3,9 +3,9 @@ import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
|
3
3
|
import { n as SqlClient } from "../../executor-DoSNec_H.js";
|
|
4
4
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
5
5
|
import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
|
|
6
|
-
import { c as BlockOf } from "../../define-block-
|
|
7
|
-
import { a as hasEntitlement, n as EntitlementKey, t as EntitlementClaimOptions } from "../../entitlements-
|
|
8
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
6
|
+
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
7
|
+
import { a as hasEntitlement, n as EntitlementKey, t as EntitlementClaimOptions } from "../../entitlements-Bi4y8w8e.js";
|
|
8
|
+
import { n as Controller, t as AuthPort } from "../../controller-DhcSXkAC.js";
|
|
9
9
|
/** The Stripe event sent when a customer's active entitlements change. */
|
|
10
10
|
export declare const ENTITLEMENTS_UPDATED = "entitlements.active_entitlement_summary.updated";
|
|
11
11
|
/**
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
3
3
|
import { t as StandardSchemaV1 } from "../../standard-DRX6Ch1j.js";
|
|
4
4
|
import { n as ExtraFields, r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
|
|
5
|
-
import { Ct as Events } from "../../events-
|
|
5
|
+
import { Ct as Events } from "../../events-DddDlibJ.js";
|
|
6
6
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
7
7
|
import { a as BlockTenantOptions, r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
|
|
8
8
|
import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
9
9
|
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
|
|
10
|
-
import { Sn as EntitySchema, c as BlockOf } from "../../define-block-
|
|
10
|
+
import { Sn as EntitySchema, c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
11
11
|
import { n as Money } from "../../money-BgpAd7d3.js";
|
|
12
12
|
type ExpenseReportStatus = "draft" | "submitted" | "approved" | "rejected" | "reimbursed" | "cancelled";
|
|
13
13
|
interface ExpensesOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockTemporalOptions, BlockTenantOptions {
|
|
@@ -4,7 +4,7 @@ import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
|
4
4
|
import { r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
|
|
5
5
|
import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
6
6
|
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
|
|
7
|
-
import { c as BlockOf } from "../../define-block-
|
|
7
|
+
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
8
8
|
/** One column's change on one record. */
|
|
9
9
|
interface FieldChange {
|
|
10
10
|
/** Increases with every change; pass it as `before` for the next page. */
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
2
2
|
import { t as StandardSchemaV1 } from "../../standard-DRX6Ch1j.js";
|
|
3
3
|
import { r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
|
|
4
|
-
import { Ct as Events, z as FlagEventData } from "../../events-
|
|
4
|
+
import { Ct as Events, z as FlagEventData } from "../../events-DddDlibJ.js";
|
|
5
5
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
6
6
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
7
7
|
import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
|
|
8
|
-
import { c as BlockOf } from "../../define-block-
|
|
8
|
+
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
9
9
|
import { A as flagDefinitionsOf, C as chooseSplitVariant, D as expandSegments, E as evaluateFlag, O as flagBucket, S as RequestFlagContext, T as createFlagsProvider, _ as FlagSplit, a as FlagContextOptions, b as FlagsProvider, c as FlagDetails, d as FlagOverride, f as FlagReason, g as FlagRule, h as FlagRolloutStep, i as FlagContext, j as rolloutPercentageAt, k as flagContext, l as FlagErrorCode, m as FlagRolloutSchedule, n as FlagClient, o as FlagContextSource, p as FlagResolution, r as FlagCondition, s as FlagDefinition, t as EvaluateFlagOptions, u as FlagEvaluation, v as FlagType, w as createFlagClient, x as FlagsProviderOptions, y as FlagValue } from "../../flags-Cuew4tGx.js";
|
|
10
10
|
interface FlagsOptions<S extends StandardSchemaV1 | undefined = undefined> {
|
|
11
11
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
3
|
-
import { Ct as Events } from "../../events-
|
|
4
|
-
import { C as ForecastSnapshotEventData } from "../../index-
|
|
3
|
+
import { Ct as Events } from "../../events-DddDlibJ.js";
|
|
4
|
+
import { C as ForecastSnapshotEventData } from "../../index-DjJUamhw.js";
|
|
5
5
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
6
6
|
import { r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
|
|
7
7
|
import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
8
8
|
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
|
|
9
|
-
import { c as BlockOf } from "../../define-block-
|
|
9
|
+
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
10
10
|
import { n as Money } from "../../money-BgpAd7d3.js";
|
|
11
11
|
import { t as DealForecast } from "../../deal-forecast-CN_BEy9s.js";
|
|
12
12
|
/** A stored forecast call. */
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import { D as ValidationIssue, T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
3
3
|
import { t as StandardSchemaV1$1 } from "../../standard-DRX6Ch1j.js";
|
|
4
4
|
import { r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
|
|
5
|
-
import { B as FormEventData, Ct as Events, V as FormSubmissionEventData } from "../../events-
|
|
5
|
+
import { B as FormEventData, Ct as Events, V as FormSubmissionEventData } from "../../events-DddDlibJ.js";
|
|
6
6
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
7
7
|
import { r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
|
|
8
8
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
9
9
|
import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
|
|
10
|
-
import { c as BlockOf } from "../../define-block-
|
|
11
|
-
import { n as Controller } from "../../controller-
|
|
10
|
+
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
11
|
+
import { n as Controller } from "../../controller-DhcSXkAC.js";
|
|
12
12
|
import { _ as isFormDefinition, a as FormDefinition, c as FormJson, d as FormScoring, f as FormStep, g as formSchema, h as formDefinitionProblems, i as FormCondition, l as FormJsonSchema, m as UNSCORED_FIELD_TYPES, n as FORM_FIELD_TYPES, o as FormField, p as NPS_MAX, r as FORM_SCHEMA_DIALECT, s as FormFieldType, t as FORM_DEFINITION_SCHEMA, u as FormOption } from "../../form-definition-BN8shngm.js";
|
|
13
13
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
14
14
|
/** A submission's answers, by field key. */
|
|
@@ -6,7 +6,7 @@ import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
|
6
6
|
import { n as BlockOptions } from "../../block-helpers-BNtM1tqy.js";
|
|
7
7
|
import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
8
8
|
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
|
|
9
|
-
import { c as BlockOf } from "../../define-block-
|
|
9
|
+
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
10
10
|
/**
|
|
11
11
|
* A metric the database computes, or any other name the app keeps the actual
|
|
12
12
|
* value of itself.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
3
3
|
import { et as RecordRef } from "../../types-BzIYSSWK.js";
|
|
4
|
-
import { Ct as Events } from "../../events-
|
|
4
|
+
import { Ct as Events } from "../../events-DddDlibJ.js";
|
|
5
5
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
6
6
|
import { a as BlockTenantOptions, r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
|
|
7
7
|
import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
8
8
|
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
|
|
9
|
-
import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, mn as RecordRowInput, rn as RecordBinding } from "../../define-block-
|
|
9
|
+
import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, mn as RecordRowInput, rn as RecordBinding } from "../../define-block-CDw9YGVh.js";
|
|
10
10
|
import { t as GuestAction } from "../../guest-actions-DfHHp98H.js";
|
|
11
11
|
interface GuestsOptions extends BlockTemporalOptions, BlockTenantOptions {
|
|
12
12
|
readonly transport: BlockTransport;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
3
3
|
import { t as StandardSchemaV1 } from "../../standard-DRX6Ch1j.js";
|
|
4
4
|
import { r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
|
|
5
|
-
import { Ct as Events } from "../../events-
|
|
6
|
-
import { T as JobEventData, f as ApplicationEventData } from "../../index-
|
|
5
|
+
import { Ct as Events } from "../../events-DddDlibJ.js";
|
|
6
|
+
import { T as JobEventData, f as ApplicationEventData } from "../../index-DjJUamhw.js";
|
|
7
7
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
8
8
|
import { r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
|
|
9
9
|
import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
10
10
|
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
|
|
11
|
-
import { Zt as DefaultAutomation, c as BlockOf } from "../../define-block-
|
|
11
|
+
import { Zt as DefaultAutomation, c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
12
12
|
type JobStatus = "draft" | "open" | "closed";
|
|
13
13
|
type ApplicationState = "active" | "hired" | "rejected" | "withdrawn";
|
|
14
14
|
type Recommendation = "strong_no" | "no" | "yes" | "strong_yes";
|
|
@@ -4,8 +4,8 @@ import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
|
4
4
|
import { r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
|
|
5
5
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
6
6
|
import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
|
|
7
|
-
import { c as BlockOf } from "../../define-block-
|
|
8
|
-
import { d as IdentityRef, f as IdentityTarget, p as PrincipalByIdentity } from "../../authorization-hooks-
|
|
7
|
+
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
8
|
+
import { d as IdentityRef, f as IdentityTarget, p as PrincipalByIdentity } from "../../authorization-hooks-CR8TVvqo.js";
|
|
9
9
|
interface IdentitiesOptions extends BlockTemporalOptions {
|
|
10
10
|
/**
|
|
11
11
|
* `sqlTransport(postgres.asUser(claims))` for `beginLink`, `list` and
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
2
2
|
import { ft as TableMeta } from "../../types-BzIYSSWK.js";
|
|
3
|
-
import { $ as SaasEventData, Ct as Events } from "../../events-
|
|
3
|
+
import { $ as SaasEventData, Ct as Events } from "../../events-DddDlibJ.js";
|
|
4
4
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
5
5
|
import { t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
6
6
|
import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
|
|
7
|
-
import { c as BlockOf } from "../../define-block-
|
|
7
|
+
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
8
8
|
import { r as parseCsv } from "../../csv-Dd1iKsk-.js";
|
|
9
9
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
10
10
|
interface ImportColumn {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Ct as Events, H as InboxEventData } from "../../events-
|
|
1
|
+
import { Ct as Events, H as InboxEventData } from "../../events-DddDlibJ.js";
|
|
2
2
|
import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
3
3
|
import { d as MessageKind, p as MessageReaction, u as MessageFile } from "../../messaging-Bfe4p9Pm.js";
|
|
4
|
-
import { Zt as DefaultAutomation, c as BlockOf } from "../../define-block-
|
|
5
|
-
import { p as SubscriptionStatus } from "../../topic-
|
|
6
|
-
import { n as TopicPort } from "../../watch-topic-
|
|
7
|
-
import { l as StoragePort } from "../../ports-
|
|
8
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
4
|
+
import { Zt as DefaultAutomation, c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
5
|
+
import { p as SubscriptionStatus } from "../../topic-Dp7VGPd-.js";
|
|
6
|
+
import { n as TopicPort } from "../../watch-topic-CtJAkWT4.js";
|
|
7
|
+
import { l as StoragePort } from "../../ports-D63bA3p4.js";
|
|
8
|
+
import { n as Controller, t as AuthPort } from "../../controller-DhcSXkAC.js";
|
|
9
9
|
import { S as StoredInboundEvent, _ as MessageDirection, a as ConversationEvent, b as PurgedContact, c as DeliveryStatus, d as InboxCounts, f as InboxFileSource, g as MessageDelivery, h as InboxUpload, i as Conversation, l as InboundResult, m as InboxRow, n as BotMode, o as ConversationPriority, p as InboxMessage, r as Contact, s as ConversationStatus, t as AuthorType, u as InboxChannel, v as MessageTemplate, x as ScheduledInboxMessage, y as PendingInboxFile } from "../../types-D5uf0l4_.js";
|
|
10
10
|
import { _ as InboxDraftSource, a as Inbox, c as InboxPatch, d as ScheduledMessageInput, f as StartConversationInput, g as InboxDraftInput, h as InboxDraft, i as InboundInput, l as MessageInput, m as createInbox, n as ConversationFilter, o as InboxHooks, p as TemplateInput, r as CreateInboxInput, s as InboxOptions, t as ContactInput, u as MessagePageOptions, v as InboxDraftStatus, y as InboxDrafts } from "../../inbox-yGfUVQr2.js";
|
|
11
11
|
export declare const INBOX_CHANNELS: readonly InboxChannel[];
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
3
3
|
import { t as StandardSchemaV1 } from "../../standard-DRX6Ch1j.js";
|
|
4
4
|
import { n as ExtraFields, r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
|
|
5
|
-
import { Ct as Events } from "../../events-
|
|
5
|
+
import { Ct as Events } from "../../events-DddDlibJ.js";
|
|
6
6
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
7
7
|
import { r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
|
|
8
8
|
import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
9
9
|
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
|
|
10
|
-
import { Sn as EntitySchema, c as BlockOf } from "../../define-block-
|
|
10
|
+
import { Sn as EntitySchema, c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
11
11
|
interface IncidentsOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockTemporalOptions {
|
|
12
12
|
readonly transport: BlockTransport;
|
|
13
13
|
/**
|
package/dist/blocks/index.d.ts
CHANGED
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
import { b as DbError, t as AsyncResult } from "../result-DTOQRyGY.js";
|
|
3
3
|
import { a as WithExtraFields, n as ExtraFields, o as blockFields, r as FieldsOf, t as BlockFields } from "../block-fields-Puv5m5D3.js";
|
|
4
4
|
import { et as RecordRef } from "../types-BzIYSSWK.js";
|
|
5
|
-
import { Ct as Events, Dt as mergeEvents, Et as event, St as EventSpec, Tt as defineEvents, bt as EventMap, w as BlockEmit, xt as EventMapOf } from "../events-
|
|
6
|
-
import { z as onBlockEvent } from "../index-
|
|
5
|
+
import { Ct as Events, Dt as mergeEvents, Et as event, St as EventSpec, Tt as defineEvents, bt as EventMap, w as BlockEmit, xt as EventMapOf } from "../events-DddDlibJ.js";
|
|
6
|
+
import { z as onBlockEvent } from "../index-DjJUamhw.js";
|
|
7
7
|
import { a as BlockTenantOptions, i as CursorPageOptions, n as BlockOptions, o as BlockTenant } from "../block-helpers-BNtM1tqy.js";
|
|
8
8
|
import { a as dbTransport, i as RpcClient, n as DbTransportOptions, o as rpcTransport, r as DbTransportSource, s as sqlTransport, t as BlockTransport } from "../block-transport-CDmOUuLZ.js";
|
|
9
9
|
import { a as BlockTransportMiddleware, c as ExtendBlockTools, d as extendBlock, f as withBlockHooks, i as BlockMethodName, l as WithBlockHooksOptions, n as BlockHooks, o as BlockTransportRequest, p as wrapTransport, r as BlockMethodHooks, s as ExtendBlockOptions, t as BlockHookInfo, u as defineTransportMiddleware } from "../block-hooks-CtMsgLQr.js";
|
|
10
10
|
import { n as FinalRunState, r as RunState, t as FINAL_RUN_STATES } from "../run-state-D0Tbl-nM.js";
|
|
11
11
|
import { a as OptionInput, c as OptionSpecs, d as optionsJsonSchema, i as OptionBuilders, l as blockOptions, n as ExtraColumns, o as OptionKind, r as NO_OPTIONS, s as OptionSpec, t as BlockOptionsSchema, u as option } from "../options-CRwTY_q2.js";
|
|
12
|
-
import { A as CreateBlocksOptions, An as BlockNaming, C as BlockContext, Cn as EntitySchemaSpec, D as Blocks, Dn as GeneratedBlocks, E as BlockSinks, En as GeneratedBlock, F as BlockPorts, Fn as entityNames, I as Notifier, L as NotifierInput, M as createBlockClient, Mn as EntityNames, N as createBlocks, Nn as EntityNoun, O as BlocksEventMap, On as fillTopic, P as defineBlocks, Pn as EntityRename, R as PortName, S as BlockClientSource, Sn as EntitySchema, T as BlockSet, Tn as entitySchema, _ as BlockProvider, a as BlockConsumes, b as BLOCK_EVENT_SOURCE, bn as BlockSchemas, c as BlockOf, d as ClientOf, f as ConsumedPorts, g as BlockEnvKey, h as defineBlock, i as BlockCategory, j as UniquePort, jn as blockNames, k as BlocksHooks, kn as generatedOptions, l as BlockOptionSchemas, m as UsingOptions, n as BLOCK_CATEGORIES, o as BlockDefinition, p as ProvidedPorts, r as Block, s as BlockInvalidates, t as AnyBlock, tn as AnyRecordBinding, u as BlockProvides, v as BlockWiring, w as BlockMap, wn as EntitySchemas, x as BlockClientOptions, xn as EntityFieldSpecs, y as BlockWorker } from "../define-block-
|
|
12
|
+
import { A as CreateBlocksOptions, An as BlockNaming, C as BlockContext, Cn as EntitySchemaSpec, D as Blocks, Dn as GeneratedBlocks, E as BlockSinks, En as GeneratedBlock, F as BlockPorts, Fn as entityNames, I as Notifier, L as NotifierInput, M as createBlockClient, Mn as EntityNames, N as createBlocks, Nn as EntityNoun, O as BlocksEventMap, On as fillTopic, P as defineBlocks, Pn as EntityRename, R as PortName, S as BlockClientSource, Sn as EntitySchema, T as BlockSet, Tn as entitySchema, _ as BlockProvider, a as BlockConsumes, b as BLOCK_EVENT_SOURCE, bn as BlockSchemas, c as BlockOf, d as ClientOf, f as ConsumedPorts, g as BlockEnvKey, h as defineBlock, i as BlockCategory, j as UniquePort, jn as blockNames, k as BlocksHooks, kn as generatedOptions, l as BlockOptionSchemas, m as UsingOptions, n as BLOCK_CATEGORIES, o as BlockDefinition, p as ProvidedPorts, r as Block, s as BlockInvalidates, t as AnyBlock, tn as AnyRecordBinding, u as BlockProvides, v as BlockWiring, w as BlockMap, wn as EntitySchemas, x as BlockClientOptions, xn as EntityFieldSpecs, y as BlockWorker } from "../define-block-CDw9YGVh.js";
|
|
13
13
|
import { t as VisibleRange } from "../range-BN3kpJAE.js";
|
|
14
14
|
import { t as subjectKey } from "../block-subjects-Bkieh2Xk.js";
|
|
15
|
-
import { t as BlockEnv } from "../block-env-
|
|
15
|
+
import { t as BlockEnv } from "../block-env-CLco8YUl.js";
|
|
16
16
|
/** What a hook passes a block creator from the env. */
|
|
17
17
|
interface EnvBlockOptions {
|
|
18
18
|
readonly transport: BlockTransport;
|
|
@@ -2,21 +2,171 @@
|
|
|
2
2
|
import { t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
3
3
|
import { t as StandardSchemaV1 } from "../../standard-DRX6Ch1j.js";
|
|
4
4
|
import { r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
|
|
5
|
-
import { Ct as Events, M as CommerceSubjectEventData, j as CommerceEventData } from "../../events-
|
|
5
|
+
import { Ct as Events, M as CommerceSubjectEventData, j as CommerceEventData } from "../../events-DddDlibJ.js";
|
|
6
6
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
7
7
|
import { n as BlockOptions } from "../../block-helpers-BNtM1tqy.js";
|
|
8
8
|
import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
9
9
|
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
|
|
10
10
|
import { _ as JobHandler } from "../../types-BdhE7I8Z.js";
|
|
11
|
-
import { c as BlockOf } from "../../define-block-
|
|
11
|
+
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
12
12
|
import { n as Money } from "../../money-BgpAd7d3.js";
|
|
13
|
+
import { t as StockDetail } from "../../stock-detail-BRIt7CjU.js";
|
|
14
|
+
/** How a variant's stock is tracked. */
|
|
15
|
+
export declare const TRACKING_MODES: readonly ["none", "lot", "serial"];
|
|
16
|
+
type TrackingMode = (typeof TRACKING_MODES)[number];
|
|
17
|
+
/** How a variant's stock is valued. */
|
|
18
|
+
export declare const COSTING_METHODS: readonly ["none", "average"];
|
|
19
|
+
type CostingMethod = (typeof COSTING_METHODS)[number];
|
|
20
|
+
export declare const ALLOCATION_STATUSES: readonly ["open", "fulfilled", "released"];
|
|
21
|
+
type AllocationStatus = (typeof ALLOCATION_STATUSES)[number];
|
|
22
|
+
interface StockItemInput {
|
|
23
|
+
/** Lowercase, such as `item`, `kg` or `m`. Default `item`. */
|
|
24
|
+
readonly unit?: string;
|
|
25
|
+
/** Decimals a quantity may have, 0 to 6. Default 0. */
|
|
26
|
+
readonly scale?: number;
|
|
27
|
+
/** Default `none`. */
|
|
28
|
+
readonly tracking?: TrackingMode;
|
|
29
|
+
readonly tracksExpiry?: boolean;
|
|
30
|
+
/** Default `none`. */
|
|
31
|
+
readonly costing?: CostingMethod;
|
|
32
|
+
/** The ISO 4217 currency costs are kept in, for `average`. */
|
|
33
|
+
readonly currency?: string;
|
|
34
|
+
}
|
|
35
|
+
interface StockItem {
|
|
36
|
+
readonly variantId: string;
|
|
37
|
+
readonly unit: string;
|
|
38
|
+
readonly scale: number;
|
|
39
|
+
readonly tracking: TrackingMode;
|
|
40
|
+
readonly tracksExpiry: boolean;
|
|
41
|
+
readonly costing: CostingMethod;
|
|
42
|
+
readonly currency: string | null;
|
|
43
|
+
/** The weighted average cost per unit, in minor units, with decimals. */
|
|
44
|
+
readonly averageCost: string | null;
|
|
45
|
+
}
|
|
46
|
+
interface BinInput {
|
|
47
|
+
/** Updates this bin; creates one when left out. */
|
|
48
|
+
readonly id?: string;
|
|
49
|
+
/** Unique within the location, such as `A-01-3`. */
|
|
50
|
+
readonly code: string;
|
|
51
|
+
readonly name?: string;
|
|
52
|
+
/** Stock in a hold bin isn't available to sell. */
|
|
53
|
+
readonly hold?: boolean;
|
|
54
|
+
readonly active?: boolean;
|
|
55
|
+
}
|
|
56
|
+
interface Bin {
|
|
57
|
+
readonly id: string;
|
|
58
|
+
readonly code: string;
|
|
59
|
+
readonly hold: boolean;
|
|
60
|
+
readonly active: boolean;
|
|
61
|
+
}
|
|
62
|
+
interface Lot {
|
|
63
|
+
readonly id: string;
|
|
64
|
+
readonly code: string;
|
|
65
|
+
readonly expiresOn: string | null;
|
|
66
|
+
}
|
|
67
|
+
/** Stock of one bin and lot at a location. */
|
|
68
|
+
interface StockBucket {
|
|
69
|
+
readonly binId: string | null;
|
|
70
|
+
readonly binCode: string | null;
|
|
71
|
+
readonly hold: boolean;
|
|
72
|
+
readonly lotId: string | null;
|
|
73
|
+
readonly lotCode: string | null;
|
|
74
|
+
readonly expiresOn: string | null;
|
|
75
|
+
readonly onHand: number;
|
|
76
|
+
}
|
|
77
|
+
interface StockLevelDetail {
|
|
78
|
+
readonly variantId: string;
|
|
79
|
+
readonly locationId: string;
|
|
80
|
+
readonly onHand: number;
|
|
81
|
+
readonly reserved: number;
|
|
82
|
+
/** Stock in hold bins. */
|
|
83
|
+
readonly held: number;
|
|
84
|
+
readonly available: number;
|
|
85
|
+
/** Stock outside any bin or lot. */
|
|
86
|
+
readonly unbinned: number;
|
|
87
|
+
readonly buckets: readonly StockBucket[];
|
|
88
|
+
/** The serial numbers in stock at the location. */
|
|
89
|
+
readonly serials: readonly string[];
|
|
90
|
+
}
|
|
91
|
+
interface ExpiringLot {
|
|
92
|
+
readonly lotId: string;
|
|
93
|
+
readonly code: string;
|
|
94
|
+
readonly variantId: string;
|
|
95
|
+
readonly locationId: string;
|
|
96
|
+
readonly binId: string | null;
|
|
97
|
+
readonly expiresOn: string;
|
|
98
|
+
readonly onHand: number;
|
|
99
|
+
}
|
|
100
|
+
interface StockValuation {
|
|
101
|
+
readonly variantId: string;
|
|
102
|
+
readonly costing: CostingMethod;
|
|
103
|
+
/** Null without a cost currency. */
|
|
104
|
+
readonly averageCost: string | null;
|
|
105
|
+
readonly onHand: number;
|
|
106
|
+
/** The stock value, null without a cost currency. */
|
|
107
|
+
readonly value: Money | null;
|
|
108
|
+
}
|
|
109
|
+
interface AllocationInput {
|
|
110
|
+
readonly variantId: string;
|
|
111
|
+
readonly locationId: string;
|
|
112
|
+
readonly quantity: number;
|
|
113
|
+
/** What the stock is for, such as `order` or `work_order`. */
|
|
114
|
+
readonly documentType: string;
|
|
115
|
+
readonly documentId: string;
|
|
116
|
+
readonly lineId: string;
|
|
117
|
+
/** Keeps what isn't available on backorder. Default true. */
|
|
118
|
+
readonly backorder?: boolean;
|
|
119
|
+
}
|
|
120
|
+
interface Allocation {
|
|
121
|
+
readonly id: string;
|
|
122
|
+
readonly variantId: string;
|
|
123
|
+
readonly locationId: string;
|
|
124
|
+
readonly documentType: string;
|
|
125
|
+
readonly documentId: string;
|
|
126
|
+
readonly lineId: string;
|
|
127
|
+
readonly quantity: number;
|
|
128
|
+
/** Held for the document now. */
|
|
129
|
+
readonly allocated: number;
|
|
130
|
+
readonly fulfilled: number;
|
|
131
|
+
/** Waiting for stock; filled by the oldest first as stock arrives. */
|
|
132
|
+
readonly backordered: number;
|
|
133
|
+
readonly status: AllocationStatus;
|
|
134
|
+
readonly createdAt: Temporal.Instant;
|
|
135
|
+
/** The movement `fulfillAllocation` and `restoreAllocation` wrote. */
|
|
136
|
+
readonly movementId?: string;
|
|
137
|
+
}
|
|
138
|
+
/** Units, bins, lots, serials, costs and document allocations. */
|
|
139
|
+
interface InventoryTracking {
|
|
140
|
+
/** Refused with `INVENTORY_ITEM_LOCKED` once the variant has stock. */
|
|
141
|
+
setStockItem(variantId: string, input: StockItemInput): AsyncResult<StockItem>;
|
|
142
|
+
saveBin(locationId: string, input: BinInput): AsyncResult<Bin>;
|
|
143
|
+
saveLot(variantId: string, code: string, expiresOn?: string): AsyncResult<Lot>;
|
|
144
|
+
stockDetail(variantId: string, locationId: string): AsyncResult<StockLevelDetail>;
|
|
145
|
+
/** Lots with stock that expire before `before` (`YYYY-MM-DD`). */
|
|
146
|
+
expiringLots(organizationId: string, before: string): AsyncResult<readonly ExpiringLot[]>;
|
|
147
|
+
/**
|
|
148
|
+
* Scraps the stock of lots that expired by `asOf` (default today). Resolves
|
|
149
|
+
* to the number of buckets scrapped.
|
|
150
|
+
*/
|
|
151
|
+
expireLots(organizationId: string, asOf?: string): AsyncResult<number>;
|
|
152
|
+
stockValuation(variantId: string): AsyncResult<StockValuation>;
|
|
153
|
+
/** Holds stock for a document line; the rest waits on backorder. */
|
|
154
|
+
allocate(organizationId: string, input: AllocationInput): AsyncResult<Allocation>;
|
|
155
|
+
/** Takes allocated stock out as a `sale` movement. */
|
|
156
|
+
fulfillAllocation(allocationId: string, quantity: number, detail?: StockDetail): AsyncResult<Allocation>;
|
|
157
|
+
/** Puts fulfilled stock back as a `return` movement. */
|
|
158
|
+
restoreAllocation(allocationId: string, quantity: number, detail?: StockDetail): AsyncResult<Allocation>;
|
|
159
|
+
/** Releases a document's open allocations. Resolves to the number released. */
|
|
160
|
+
releaseAllocations(organizationId: string, documentType: string, documentId: string): AsyncResult<number>;
|
|
161
|
+
listAllocations(organizationId: string, documentType: string, documentId: string): AsyncResult<readonly Allocation[]>;
|
|
162
|
+
}
|
|
13
163
|
export declare const LOCATION_KINDS: readonly ["warehouse", "store", "virtual"];
|
|
14
164
|
type LocationKind = (typeof LOCATION_KINDS)[number];
|
|
15
165
|
/**
|
|
16
166
|
* The reasons `adjustStock` accepts. Counts, sales and transfers write their
|
|
17
167
|
* own.
|
|
18
168
|
*/
|
|
19
|
-
export declare const ADJUST_REASONS: readonly ["adjustment", "damage", "loss", "return", "receipt"];
|
|
169
|
+
export declare const ADJUST_REASONS: readonly ["adjustment", "damage", "loss", "return", "receipt", "scrap"];
|
|
20
170
|
type AdjustReason = (typeof ADJUST_REASONS)[number];
|
|
21
171
|
export declare const PURCHASE_ORDER_STATUSES: readonly ["draft", "ordered", "partially_received", "received", "cancelled"];
|
|
22
172
|
type PurchaseOrderStatus = (typeof PURCHASE_ORDER_STATUSES)[number];
|
|
@@ -56,6 +206,10 @@ interface SavedLocation<F extends object = Record<never, never>> {
|
|
|
56
206
|
*/
|
|
57
207
|
readonly fields?: Readonly<Record<string, unknown>> & F;
|
|
58
208
|
}
|
|
209
|
+
/**
|
|
210
|
+
* Quantities are numbers with up to the variant's `scale` decimals, such as
|
|
211
|
+
* `1.25` kilograms.
|
|
212
|
+
*/
|
|
59
213
|
interface StockChange {
|
|
60
214
|
readonly movementId: string;
|
|
61
215
|
readonly onHand: number;
|
|
@@ -85,10 +239,14 @@ interface StockLine {
|
|
|
85
239
|
readonly variantId: string;
|
|
86
240
|
readonly quantity: number;
|
|
87
241
|
}
|
|
242
|
+
interface TransferLine extends StockLine {
|
|
243
|
+
/** The bin, lot or serials to take from the source location. */
|
|
244
|
+
readonly detail?: StockDetail;
|
|
245
|
+
}
|
|
88
246
|
interface TransferInput {
|
|
89
247
|
readonly fromLocationId: string;
|
|
90
248
|
readonly toLocationId: string;
|
|
91
|
-
readonly lines: readonly
|
|
249
|
+
readonly lines: readonly TransferLine[];
|
|
92
250
|
readonly note?: string;
|
|
93
251
|
}
|
|
94
252
|
interface PurchaseOrderLine extends StockLine {
|
|
@@ -109,7 +267,7 @@ interface PurchaseOrderInput {
|
|
|
109
267
|
readonly lines: readonly PurchaseOrderLine[];
|
|
110
268
|
readonly note?: string;
|
|
111
269
|
}
|
|
112
|
-
interface ReceiptLine {
|
|
270
|
+
interface ReceiptLine extends StockDetail {
|
|
113
271
|
readonly lineId: string;
|
|
114
272
|
readonly quantity: number;
|
|
115
273
|
}
|
|
@@ -119,7 +277,7 @@ interface Receipt {
|
|
|
119
277
|
readonly backordered: number;
|
|
120
278
|
}
|
|
121
279
|
/** `F` types the locations' extra columns, from the `fields` schema. */
|
|
122
|
-
interface Inventory<F extends object = Record<never, never>> {
|
|
280
|
+
interface Inventory<F extends object = Record<never, never>> extends InventoryTracking {
|
|
123
281
|
saveLocation(organizationId: string, input: LocationInput<F>): AsyncResult<SavedLocation<F>>;
|
|
124
282
|
/** An inactive location takes no new reservations or transfers. */
|
|
125
283
|
setLocationActive(locationId: string, active: boolean): AsyncResult<boolean>;
|
|
@@ -129,12 +287,12 @@ interface Inventory<F extends object = Record<never, never>> {
|
|
|
129
287
|
* Writes a movement of `quantity` (negative to remove). Emits
|
|
130
288
|
* `stock.adjusted`.
|
|
131
289
|
*/
|
|
132
|
-
adjustStock(variantId: string, locationId: string, quantity: number, reason: AdjustReason, note?: string): AsyncResult<StockChange>;
|
|
290
|
+
adjustStock(variantId: string, locationId: string, quantity: number, reason: AdjustReason, note?: string, detail?: StockDetail): AsyncResult<StockChange>;
|
|
133
291
|
/**
|
|
134
292
|
* Sets on-hand to a counted number and writes the difference as a `count`
|
|
135
|
-
* movement.
|
|
293
|
+
* movement. With a bin or lot in `detail`, counts that bucket only.
|
|
136
294
|
*/
|
|
137
|
-
countStock(variantId: string, locationId: string, counted: number, note?: string): AsyncResult<StockCount>;
|
|
295
|
+
countStock(variantId: string, locationId: string, counted: number, note?: string, detail?: StockDetail): AsyncResult<StockCount>;
|
|
138
296
|
/** Emits `stock.reorder_point_reached` when available stock drops to it. */
|
|
139
297
|
setReorderPoint(variantId: string, locationId: string, reorderPoint: number): AsyncResult<boolean>;
|
|
140
298
|
/** Holds stock until it is committed, released or expires. */
|
|
@@ -178,6 +336,9 @@ type InventoryEvents = {
|
|
|
178
336
|
readonly "reservation.created": CommerceEventData;
|
|
179
337
|
readonly "reservation.committed": CommerceEventData;
|
|
180
338
|
readonly "reservation.released": CommerceEventData;
|
|
339
|
+
readonly "allocation.created": CommerceEventData;
|
|
340
|
+
readonly "allocation.filled": CommerceEventData;
|
|
341
|
+
readonly "allocation.released": CommerceEventData;
|
|
181
342
|
readonly "transfer.shipped": CommerceEventData;
|
|
182
343
|
readonly "transfer.received": CommerceEventData;
|
|
183
344
|
readonly "transfer.cancelled": CommerceEventData;
|
|
@@ -189,4 +350,4 @@ type InventoryEvents = {
|
|
|
189
350
|
export declare const inventoryEvents: Events<InventoryEvents>;
|
|
190
351
|
/** The `inventory` block's manifest (ADR 0029). */
|
|
191
352
|
export declare const inventoryBlock: BlockOf<"inventory", typeof createInventory, InventoryEvents>;
|
|
192
|
-
export { type AdjustReason, type BlockHooks, type BlockTransport, type BlockTransportMiddleware, type Inventory, type InventoryEvents, type InventoryOptions, type LocationInput, type LocationKind, type PurchaseOrderInput, type PurchaseOrderLine, type PurchaseOrderStatus, type Receipt, type ReceiptLine, type Reservation, type ReserveInput, type RpcClient, type SavedLocation, type StockChange, type StockCount, type StockLine, type TransferInput, dbTransport, extendBlock, rpcTransport, sqlTransport, withBlockHooks, wrapTransport };
|
|
353
|
+
export { type AdjustReason, type Allocation, type AllocationInput, type AllocationStatus, type Bin, type BinInput, type BlockHooks, type BlockTransport, type BlockTransportMiddleware, type CostingMethod, type ExpiringLot, type Inventory, type InventoryEvents, type InventoryOptions, type InventoryTracking, type LocationInput, type LocationKind, type Lot, type PurchaseOrderInput, type PurchaseOrderLine, type PurchaseOrderStatus, type Receipt, type ReceiptLine, type Reservation, type ReserveInput, type RpcClient, type SavedLocation, type StockBucket, type StockChange, type StockCount, type StockDetail, type StockItem, type StockItemInput, type StockLevelDetail, type StockLine, type StockValuation, type TrackingMode, type TransferInput, type TransferLine, dbTransport, extendBlock, rpcTransport, sqlTransport, withBlockHooks, wrapTransport };
|