better-supabase 0.36.0 → 0.38.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-D2c0i05-.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-D8CaAdqU.d.ts} +48 -20
- 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-5vOwNouG.d.ts} +4 -4
- package/dist/{block-env-BQrtLPyc.d.ts → block-env-hco8BLjC.d.ts} +4 -4
- package/dist/block-subjects-CINiJW1R.js +253 -0
- package/dist/{block-tables-DPOgnT3y.d.ts → block-tables-BsgdB6VG.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 +26 -3
- package/dist/blocks/catalog/index.js +41 -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 +4 -2
- package/dist/blocks/expenses/index.js +10 -3
- 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 +18 -4
- package/dist/blocks/invoices/index.js +13 -0
- 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/leave/index.js +1 -1
- 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-Duf1-19E.js → add-7nCSDmpt.js} +11 -11
- package/dist/cli/{add-D2CH8t_B.js → add-B4tQpnXP.js} +2 -2
- package/dist/cli/add-CdDneXMN.js +1 -0
- package/dist/cli/{app-table-files-ha8X0rRE.js → app-table-files-CtO-zxpO.js} +2 -2
- package/dist/cli/{app-tables-BIyQcsHH.js → app-tables-B7UzcJ_g.js} +2 -2
- package/dist/cli/{backfill-CLgA6-ll.js → backfill-B2nFDXaS.js} +2 -2
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-9AeouX4h.js → blocks-BX_6HUQT.js} +2 -2
- package/dist/cli/{blocks-BVB1fMMj.js → blocks-DU4iDrYS.js} +1 -1
- package/dist/cli/{cache-aMk9vF1_.js → cache-bS5bAoF-.js} +1 -1
- package/dist/cli/{codemod-B5wrcnF2.js → codemod-B1sSIE2p.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-CW6V6VRq.js} +2 -2
- package/dist/cli/{db-CeiQzhPq.js → db-bK5eCLaE.js} +1 -1
- package/dist/cli/{doctor-DaOUWfRN.js → doctor-Dw2pAf1b.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-BtoSx3go.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-DZXbrKuJ.js} +9 -9
- package/dist/cli/{keys-DJTN2Avl.js → keys-Dj5sJNj7.js} +1 -1
- package/dist/cli/{live-CuMpyRjF.js → live-CDFfJcdR.js} +2 -2
- package/dist/cli/{mcp-C7d4j5cq.js → mcp-BukxvITV.js} +3 -3
- package/dist/cli/{metadata-D2YvkY2D.js → metadata-iZizGVuY.js} +3 -3
- package/dist/cli/{migrate-BCXxyTKt.js → migrate-DPnnGLzw.js} +2 -2
- package/dist/cli/{migration-safety-DfwTOBQ4.js → migration-safety-COcnZbMO.js} +1 -1
- package/dist/cli/{migrations-nomh4TBo.js → migrations-BBt9fmiV.js} +2 -2
- package/dist/cli/{module-migration--9T_T-zt.js → module-migration-tCmPLhQp.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-BRmUJ-uR.js} +4 -4
- package/dist/cli/powersync-CYLPcJ9G.js +1 -0
- package/dist/cli/{print-S6IF5rZm.js → print-DdwQNG_e.js} +2 -2
- package/dist/cli/{providers-BDTcal71.js → providers-CaNg6Ayz.js} +1 -1
- package/dist/cli/{prune-workflows-Zr2DjByi.js → prune-workflows-BQQrI3tU.js} +2 -2
- package/dist/cli/{remove-CPX5Tg5s.js → remove-BEj9YEON.js} +6 -6
- package/dist/cli/{render-Bp7a7XQ9.js → render-UBqU9r44.js} +3 -3
- package/dist/cli/{run-BclCFEyP.js → run-3E_IuJzS.js} +9 -9
- package/dist/cli/{run-kgG50x_Z.js → run-BXlX9YdD.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-agrqD28l.js} +1 -1
- package/dist/cli/{skills-DH-yPDny.js → skills-B5p6bDwe.js} +1 -1
- package/dist/cli/{snapshot-C3_eQUgY.js → snapshot-DOXmozSq.js} +2 -2
- package/dist/cli/{source-Bk6XwIAK.js → source-BfJprU-6.js} +1 -1
- package/dist/cli/{spec-BDTpcBns.js → spec-CgtIHFsl.js} +1 -1
- package/dist/cli/{spec-C8ydQwZC.js → spec-DRpSQGOW.js} +3 -3
- package/dist/cli/{sql-layout-DVQ20UMi.js → sql-layout-Cs3FMWcY.js} +2 -2
- package/dist/cli/{stack-CmhSfY5V.js → stack-CQXLe5j0.js} +1 -1
- package/dist/cli/{sync-D-WO4Yvl.js → sync-C_YGIDjk.js} +4 -4
- package/dist/cli/{table-k5OABwy3.js → table-BIQA9Hdt.js} +1 -1
- package/dist/cli/{upgrade-DGe5Pv6v.js → upgrade-ByQeJRGU.js} +5 -5
- package/dist/cli/{upgrade-XdhMuHAu.js → upgrade-OG9vaBeX.js} +3 -3
- package/dist/cli/{version-DKfeme2I.js → version-CF6Yzah0.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-1-UmQczM.js} +1 -1
- package/dist/{config-BKxjItQ-.js → config-AEB5iNEO.js} +4 -123
- package/dist/{connectors-CrLRW4Ol.d.ts → connectors-DDsdz-cn.d.ts} +1 -1
- package/dist/{context-yfOlyAqb.d.ts → context-CH5FYnVk.d.ts} +2 -2
- package/dist/contract/index.d.ts +8 -8
- package/dist/{controller-CAcLEndc.d.ts → controller-CJ6rLnpS.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-6gODwBSz.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-CdSjV9Zo.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-lMApFSAd.d.ts → index-B5awu2SP.d.ts} +3 -3
- package/dist/{index-CnzGRpeH.d.ts → index-BgRl484n.d.ts} +5 -5
- package/dist/{index-6H-8Ib1w.d.ts → index-CgKieWlO.d.ts} +3 -3
- package/dist/{index-kkZwp5M1.d.ts → index-CrOeAgSh.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-Dv6lfL5p.d.ts → index-DnEJVKQ2.d.ts} +11 -11
- package/dist/{index-BUluRi0b.d.ts → index-DzLLMmUB.d.ts} +5 -5
- package/dist/{index-C78VPlXW.d.ts → index-vkd2LTt2.d.ts} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/{instances-xQ2lupVE.js → instances-Bycf_aus.js} +86 -7
- 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-knMnfzgm.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/{options-RYbyaVhv.js → options-CS1DA8q9.js} +1 -0
- package/dist/{options-ScQ6Hnxo.js → options-zsLpIqBA.js} +2 -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-Ed8WvLgQ.d.ts} +1 -1
- package/dist/{pool-yO-LzZAd.d.ts → pool-BJAjQcrJ.d.ts} +1 -1
- package/dist/{ports-prqYrReN.d.ts → ports-Bnwy2mlR.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-DkeXFh7e.js} +2 -2
- package/dist/{project-CBvowdKY.js → project-By0R8ioI.js} +5 -5
- package/dist/{provider-bIAzxVMB.d.ts → provider-CVlXXbda.d.ts} +1 -1
- package/dist/{push-token-DtqJeg8w.d.ts → push-token-CJbEvwjI.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/{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-B2cMvGnZ.js} +4207 -756
- 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-eZNRWTRJ.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-D7F2FBNp.d.ts} +3 -3
- package/dist/{types-auvHrNWC.d.ts → types-BXLiM6VM.d.ts} +1 -1
- package/dist/{types-C9XfFGmA.d.ts → types-DtiDatvu.d.ts} +2 -2
- package/dist/{types-CJqNGQKb.d.ts → types-bqvFoBhf.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-BIEaSN0Y.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-CBS8L2Ku.js → workflow-sdk-6psRpDIo.js} +2 -50
- package/dist/{workflow-sdk-D3H10W5h.d.ts → workflow-sdk-CUt0E4v6.d.ts} +1 -1
- package/dist/yjs/index.d.ts +1 -1
- package/package.json +1 -1
- package/schemas/config-v1.json +15 -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
- package/dist/resolved-names-b6P2--jK.js +0 -130
|
@@ -3,10 +3,193 @@ import { n as isRecord } from "../../guards-CsRa6v57.js";
|
|
|
3
3
|
import { a as ok, t as AsyncResult } from "../../result-8xza7w5W.js";
|
|
4
4
|
import { t as inventorySqlOptions } from "../../options-D4LuPM8a.js";
|
|
5
5
|
import { n as event, t as defineEvents } from "../../event-map-DxfsFgQT.js";
|
|
6
|
-
import { L as textOf, O as recordOf, U as rpcTransport, V as dbTransport, W as sqlTransport, d as enumOrThrow, j as requiredInstant, m as instantArg, n as applyTemporal, o as blockCall, w as optionalText } from "../../block-helpers-I7UzjNEf.js";
|
|
6
|
+
import { A as recordsOf, I as stringsOf, L as textOf, O as recordOf, U as rpcTransport, V as dbTransport, W as sqlTransport, d as enumOrThrow, j as requiredInstant, m as instantArg, n as applyTemporal, o as blockCall, w as optionalText } from "../../block-helpers-I7UzjNEf.js";
|
|
7
7
|
import { i as wrapTransport, n as extendBlock, r as withBlockHooks } from "../../block-hooks-CadxQ9-_.js";
|
|
8
8
|
import { n as blockFields } from "../../block-fields-Bjcv6_zc.js";
|
|
9
9
|
import { n as defineBlock } from "../../define-block-22Jv4U_-.js";
|
|
10
|
+
import { d as money } from "../../money-DH--bbYr.js";
|
|
11
|
+
import { t as detailArg } from "../../stock-detail-BMqvwq1q.js";
|
|
12
|
+
// src/blocks/inventory/tracking.ts
|
|
13
|
+
/** How a variant's stock is tracked. */
|
|
14
|
+
const TRACKING_MODES = [
|
|
15
|
+
"none",
|
|
16
|
+
"lot",
|
|
17
|
+
"serial"
|
|
18
|
+
];
|
|
19
|
+
/** How a variant's stock is valued. */
|
|
20
|
+
const COSTING_METHODS = ["none", "average"];
|
|
21
|
+
const ALLOCATION_STATUSES = [
|
|
22
|
+
"open",
|
|
23
|
+
"fulfilled",
|
|
24
|
+
"released"
|
|
25
|
+
];
|
|
26
|
+
const nullable = (value) => optionalText(value) ?? null;
|
|
27
|
+
function itemOf(value) {
|
|
28
|
+
const row = recordOf(value, "set_stock_item");
|
|
29
|
+
return {
|
|
30
|
+
variantId: textOf(row["variantId"]),
|
|
31
|
+
unit: textOf(row["unit"]),
|
|
32
|
+
scale: Number(row["scale"]),
|
|
33
|
+
tracking: enumOrThrow(row["tracking"], TRACKING_MODES, "tracking"),
|
|
34
|
+
tracksExpiry: row["tracksExpiry"] === true,
|
|
35
|
+
costing: enumOrThrow(row["costing"], COSTING_METHODS, "costing"),
|
|
36
|
+
currency: nullable(row["currency"]),
|
|
37
|
+
averageCost: nullable(row["averageCost"])
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function bucketOf(value) {
|
|
41
|
+
const row = recordOf(value, "stock_detail");
|
|
42
|
+
return {
|
|
43
|
+
binId: nullable(row["binId"]),
|
|
44
|
+
binCode: nullable(row["binCode"]),
|
|
45
|
+
hold: row["hold"] === true,
|
|
46
|
+
lotId: nullable(row["lotId"]),
|
|
47
|
+
lotCode: nullable(row["lotCode"]),
|
|
48
|
+
expiresOn: nullable(row["expiresOn"]),
|
|
49
|
+
onHand: Number(row["onHand"])
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function expiringOf(value) {
|
|
53
|
+
const row = recordOf(value, "expiring_lots");
|
|
54
|
+
return {
|
|
55
|
+
lotId: textOf(row["lotId"]),
|
|
56
|
+
code: textOf(row["code"]),
|
|
57
|
+
variantId: textOf(row["variantId"]),
|
|
58
|
+
locationId: textOf(row["locationId"]),
|
|
59
|
+
binId: nullable(row["binId"]),
|
|
60
|
+
expiresOn: textOf(row["expiresOn"]),
|
|
61
|
+
onHand: Number(row["onHand"])
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
/** One allocation row. */
|
|
65
|
+
function allocationOf(value) {
|
|
66
|
+
const row = recordOf(value, "allocation");
|
|
67
|
+
const movementId = optionalText(row["movementId"]);
|
|
68
|
+
return {
|
|
69
|
+
id: textOf(row["id"]),
|
|
70
|
+
variantId: textOf(row["variantId"]),
|
|
71
|
+
locationId: textOf(row["locationId"]),
|
|
72
|
+
documentType: textOf(row["documentType"]),
|
|
73
|
+
documentId: textOf(row["documentId"]),
|
|
74
|
+
lineId: textOf(row["lineId"]),
|
|
75
|
+
quantity: Number(row["quantity"]),
|
|
76
|
+
allocated: Number(row["allocated"]),
|
|
77
|
+
fulfilled: Number(row["fulfilled"]),
|
|
78
|
+
backordered: Number(row["backordered"]),
|
|
79
|
+
status: enumOrThrow(row["status"], ALLOCATION_STATUSES, "allocation status"),
|
|
80
|
+
createdAt: requiredInstant(row["createdAt"], "createdAt"),
|
|
81
|
+
...movementId === void 0 ? {} : { movementId }
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
function valuationOf(value) {
|
|
85
|
+
const row = recordOf(value, "stock_valuation");
|
|
86
|
+
const currency = nullable(row["currency"]);
|
|
87
|
+
return {
|
|
88
|
+
variantId: textOf(row["variantId"]),
|
|
89
|
+
costing: enumOrThrow(row["costing"], COSTING_METHODS, "costing"),
|
|
90
|
+
averageCost: nullable(row["averageCost"]),
|
|
91
|
+
onHand: Number(row["onHand"]),
|
|
92
|
+
value: currency === null ? null : money(BigInt(textOf(row["value"])), currency)
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
/** The tracking methods of the inventory client. */
|
|
96
|
+
function inventoryTracking(call) {
|
|
97
|
+
return {
|
|
98
|
+
setStockItem: (variantId, input) => call("set_stock_item", {
|
|
99
|
+
variant: variantId,
|
|
100
|
+
unit: input.unit ?? null,
|
|
101
|
+
scale: input.scale ?? null,
|
|
102
|
+
tracking: input.tracking ?? null,
|
|
103
|
+
tracks_expiry: input.tracksExpiry ?? null,
|
|
104
|
+
costing: input.costing ?? null,
|
|
105
|
+
currency: input.currency ?? null
|
|
106
|
+
}, itemOf),
|
|
107
|
+
saveBin: (locationId, input) => call("save_bin", {
|
|
108
|
+
location: locationId,
|
|
109
|
+
bin: input.id ?? null,
|
|
110
|
+
code: input.code,
|
|
111
|
+
name: input.name ?? null,
|
|
112
|
+
hold: input.hold ?? null,
|
|
113
|
+
active: input.active ?? null
|
|
114
|
+
}, (value) => {
|
|
115
|
+
const row = recordOf(value, "save_bin");
|
|
116
|
+
return {
|
|
117
|
+
id: textOf(row["id"]),
|
|
118
|
+
code: textOf(row["code"]),
|
|
119
|
+
hold: row["hold"] === true,
|
|
120
|
+
active: row["active"] === true
|
|
121
|
+
};
|
|
122
|
+
}),
|
|
123
|
+
saveLot: (variantId, code, expiresOn) => call("save_lot", {
|
|
124
|
+
variant: variantId,
|
|
125
|
+
code,
|
|
126
|
+
expires_on: expiresOn ?? null
|
|
127
|
+
}, (value) => {
|
|
128
|
+
const row = recordOf(value, "save_lot");
|
|
129
|
+
return {
|
|
130
|
+
id: textOf(row["id"]),
|
|
131
|
+
code: textOf(row["code"]),
|
|
132
|
+
expiresOn: nullable(row["expiresOn"])
|
|
133
|
+
};
|
|
134
|
+
}),
|
|
135
|
+
stockDetail: (variantId, locationId) => call("stock_detail", {
|
|
136
|
+
variant: variantId,
|
|
137
|
+
location: locationId
|
|
138
|
+
}, (value) => {
|
|
139
|
+
const row = recordOf(value, "stock_detail");
|
|
140
|
+
return {
|
|
141
|
+
variantId: textOf(row["variantId"]),
|
|
142
|
+
locationId: textOf(row["locationId"]),
|
|
143
|
+
onHand: Number(row["onHand"]),
|
|
144
|
+
reserved: Number(row["reserved"]),
|
|
145
|
+
held: Number(row["held"]),
|
|
146
|
+
available: Number(row["available"]),
|
|
147
|
+
unbinned: Number(row["unbinned"]),
|
|
148
|
+
buckets: recordsOf(row["buckets"], "stock_detail").map(bucketOf),
|
|
149
|
+
serials: stringsOf(row["serials"])
|
|
150
|
+
};
|
|
151
|
+
}),
|
|
152
|
+
expiringLots: (organizationId, before) => call("expiring_lots", {
|
|
153
|
+
tenant: organizationId,
|
|
154
|
+
before
|
|
155
|
+
}, (value) => recordsOf(value, "expiring_lots").map(expiringOf)),
|
|
156
|
+
expireLots: (organizationId, asOf) => call("expire_lots", {
|
|
157
|
+
tenant: organizationId,
|
|
158
|
+
as_of: asOf ?? null
|
|
159
|
+
}, Number),
|
|
160
|
+
stockValuation: (variantId) => call("stock_valuation", { variant: variantId }, valuationOf),
|
|
161
|
+
allocate: (organizationId, input) => call("allocate_stock", {
|
|
162
|
+
tenant: organizationId,
|
|
163
|
+
variant: input.variantId,
|
|
164
|
+
location: input.locationId,
|
|
165
|
+
quantity: input.quantity,
|
|
166
|
+
document_type: input.documentType,
|
|
167
|
+
document_id: input.documentId,
|
|
168
|
+
line_id: input.lineId,
|
|
169
|
+
backorder: input.backorder ?? true
|
|
170
|
+
}, allocationOf),
|
|
171
|
+
fulfillAllocation: (allocationId, quantity, detail) => call("fulfill_allocation", {
|
|
172
|
+
allocation: allocationId,
|
|
173
|
+
quantity,
|
|
174
|
+
detail: detailArg(detail)
|
|
175
|
+
}, allocationOf),
|
|
176
|
+
restoreAllocation: (allocationId, quantity, detail) => call("restore_allocation", {
|
|
177
|
+
allocation: allocationId,
|
|
178
|
+
quantity,
|
|
179
|
+
detail: detailArg(detail)
|
|
180
|
+
}, allocationOf),
|
|
181
|
+
releaseAllocations: (organizationId, documentType, documentId) => call("release_allocations", {
|
|
182
|
+
tenant: organizationId,
|
|
183
|
+
document_type: documentType,
|
|
184
|
+
document_id: documentId
|
|
185
|
+
}, Number),
|
|
186
|
+
listAllocations: (organizationId, documentType, documentId) => call("list_allocations", {
|
|
187
|
+
tenant: organizationId,
|
|
188
|
+
document_type: documentType,
|
|
189
|
+
document_id: documentId
|
|
190
|
+
}, (value) => recordsOf(value, "list_allocations").map(allocationOf))
|
|
191
|
+
};
|
|
192
|
+
}
|
|
10
193
|
// src/blocks/inventory/inventory.ts
|
|
11
194
|
const LOCATION_KINDS = [
|
|
12
195
|
"warehouse",
|
|
@@ -22,7 +205,8 @@ const ADJUST_REASONS = [
|
|
|
22
205
|
"damage",
|
|
23
206
|
"loss",
|
|
24
207
|
"return",
|
|
25
|
-
"receipt"
|
|
208
|
+
"receipt",
|
|
209
|
+
"scrap"
|
|
26
210
|
];
|
|
27
211
|
const PURCHASE_ORDER_STATUSES = [
|
|
28
212
|
"draft",
|
|
@@ -70,7 +254,7 @@ function createInventory(options) {
|
|
|
70
254
|
const call = blockCall(options.transport, options.schema, options.mappers);
|
|
71
255
|
const service = blockCall(options.service ?? options.transport, options.schema, options.mappers);
|
|
72
256
|
const expireReservations = (maxRows) => service("expire_reservations", { max_rows: maxRows ?? null }, Number);
|
|
73
|
-
|
|
257
|
+
const inventory = {
|
|
74
258
|
saveLocation: (organizationId, input) => AsyncResult.from(() => input.fields === void 0 ? Promise.resolve(ok(void 0)) : fields.write({ ...input.fields })).andThen((valid) => call("save_location", {
|
|
75
259
|
tenant: organizationId,
|
|
76
260
|
location: input.id ?? null,
|
|
@@ -98,18 +282,21 @@ function createInventory(options) {
|
|
|
98
282
|
active
|
|
99
283
|
}, isTrue),
|
|
100
284
|
deleteLocation: (locationId) => call("delete_location", { location: locationId }, isTrue),
|
|
101
|
-
|
|
285
|
+
...inventoryTracking(call),
|
|
286
|
+
adjustStock: (variantId, locationId, quantity, reason, note, detail) => call("adjust_stock", {
|
|
102
287
|
variant: variantId,
|
|
103
288
|
location: locationId,
|
|
104
289
|
quantity,
|
|
105
290
|
reason,
|
|
106
|
-
note: note ?? null
|
|
291
|
+
note: note ?? null,
|
|
292
|
+
detail: detailArg(detail)
|
|
107
293
|
}, stockChangeOf),
|
|
108
|
-
countStock: (variantId, locationId, counted, note) => call("count_stock", {
|
|
294
|
+
countStock: (variantId, locationId, counted, note, detail) => call("count_stock", {
|
|
109
295
|
variant: variantId,
|
|
110
296
|
location: locationId,
|
|
111
297
|
counted,
|
|
112
|
-
note: note ?? null
|
|
298
|
+
note: note ?? null,
|
|
299
|
+
detail: detailArg(detail)
|
|
113
300
|
}, (value) => {
|
|
114
301
|
const row = recordOf(value, "count_stock");
|
|
115
302
|
return {
|
|
@@ -147,7 +334,8 @@ function createInventory(options) {
|
|
|
147
334
|
to_location: input.toLocationId,
|
|
148
335
|
lines: input.lines.map((line) => ({
|
|
149
336
|
variantId: line.variantId,
|
|
150
|
-
quantity: line.quantity
|
|
337
|
+
quantity: line.quantity,
|
|
338
|
+
detail: detailArg(line.detail)
|
|
151
339
|
})),
|
|
152
340
|
note: input.note ?? null
|
|
153
341
|
}, idOf("create_transfer")),
|
|
@@ -172,9 +360,10 @@ function createInventory(options) {
|
|
|
172
360
|
placePurchaseOrder: (purchaseOrderId) => call("place_purchase_order", { purchase_order: purchaseOrderId }, isTrue),
|
|
173
361
|
receivePurchaseOrder: (purchaseOrderId, lines) => call("receive_purchase_order", {
|
|
174
362
|
purchase_order: purchaseOrderId,
|
|
175
|
-
lines: lines.map((
|
|
176
|
-
lineId
|
|
177
|
-
quantity
|
|
363
|
+
lines: lines.map(({ lineId, quantity, ...detail }) => ({
|
|
364
|
+
lineId,
|
|
365
|
+
quantity,
|
|
366
|
+
...detailArg(detail)
|
|
178
367
|
}))
|
|
179
368
|
}, (value) => {
|
|
180
369
|
const row = recordOf(value, "receive_purchase_order");
|
|
@@ -187,7 +376,8 @@ function createInventory(options) {
|
|
|
187
376
|
job: async (payload) => {
|
|
188
377
|
await expireReservations(maxRowsOf(payload)).orThrow();
|
|
189
378
|
}
|
|
190
|
-
}
|
|
379
|
+
};
|
|
380
|
+
return withBlockHooks(inventory, options.hooks, {
|
|
191
381
|
block: "inventory",
|
|
192
382
|
...options.logger ? { logger: options.logger } : {}
|
|
193
383
|
});
|
|
@@ -200,6 +390,9 @@ const inventoryEvents = defineEvents({
|
|
|
200
390
|
"reservation.created": event(),
|
|
201
391
|
"reservation.committed": event(),
|
|
202
392
|
"reservation.released": event(),
|
|
393
|
+
"allocation.created": event(),
|
|
394
|
+
"allocation.filled": event(),
|
|
395
|
+
"allocation.released": event(),
|
|
203
396
|
"transfer.shipped": event(),
|
|
204
397
|
"transfer.received": event(),
|
|
205
398
|
"transfer.cancelled": event(),
|
|
@@ -218,4 +411,4 @@ const inventoryBlock = defineBlock({
|
|
|
218
411
|
category: "commerce",
|
|
219
412
|
recipes: ["inventory-table"]
|
|
220
413
|
});
|
|
221
|
-
export { ADJUST_REASONS, LOCATION_KINDS, PURCHASE_ORDER_STATUSES, createInventory, dbTransport, extendBlock, inventoryBlock, inventoryEvents, rpcTransport, sqlTransport, withBlockHooks, wrapTransport };
|
|
414
|
+
export { ADJUST_REASONS, ALLOCATION_STATUSES, COSTING_METHODS, LOCATION_KINDS, PURCHASE_ORDER_STATUSES, TRACKING_MODES, createInventory, dbTransport, extendBlock, inventoryBlock, inventoryEvents, rpcTransport, sqlTransport, withBlockHooks, wrapTransport };
|
|
@@ -3,13 +3,13 @@ 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
5
|
import { et as RecordRef } from "../../types-BzIYSSWK.js";
|
|
6
|
-
import { Ct as Events } from "../../events-
|
|
7
|
-
import { w as InvoiceEventData } from "../../index-
|
|
6
|
+
import { Ct as Events } from "../../events-DddDlibJ.js";
|
|
7
|
+
import { w as InvoiceEventData } 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 { c as BlockOf } from "../../define-block-
|
|
12
|
+
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
13
13
|
import { n as Money } from "../../money-BgpAd7d3.js";
|
|
14
14
|
import { i as Totals, n as Line, r as LineInput } from "../../sales-lines-wQHuL-pa.js";
|
|
15
15
|
type InvoiceStatus = "draft" | "issued" | "partially_paid" | "paid" | "void" | "uncollectible";
|
|
@@ -90,6 +90,16 @@ interface InvoiceInput<F extends object = Record<never, never>> {
|
|
|
90
90
|
/** Values for the extra columns, by column name. */
|
|
91
91
|
readonly fields?: Partial<F> & Readonly<Record<string, unknown>>;
|
|
92
92
|
}
|
|
93
|
+
interface InvoicePatch<F extends object = Record<never, never>> {
|
|
94
|
+
readonly title?: string;
|
|
95
|
+
readonly company?: RecordRef | null;
|
|
96
|
+
readonly contact?: RecordRef | null;
|
|
97
|
+
readonly termsDays?: number | null;
|
|
98
|
+
readonly note?: string | null;
|
|
99
|
+
readonly depositBps?: number | null;
|
|
100
|
+
readonly pricesIncludeTax?: boolean;
|
|
101
|
+
readonly fields?: Partial<F> & Readonly<Record<string, unknown>>;
|
|
102
|
+
}
|
|
93
103
|
/** What is owed in one currency, by days past due. */
|
|
94
104
|
interface InvoiceAging {
|
|
95
105
|
readonly currency: string;
|
|
@@ -104,6 +114,8 @@ interface InvoiceAging {
|
|
|
104
114
|
/** `F` types the invoices' extra columns, from the `fields` schema. */
|
|
105
115
|
interface Invoices<F extends object = Record<never, never>> {
|
|
106
116
|
create(organizationId: string, input: InvoiceInput<F>, lines?: readonly LineInput[]): AsyncResult<Invoice<F>>;
|
|
117
|
+
update(invoiceId: string, patch: InvoicePatch<F>): AsyncResult<Invoice<F>>;
|
|
118
|
+
delete(invoiceId: string): AsyncResult<boolean>;
|
|
107
119
|
setLines(invoiceId: string, lines: readonly LineInput[]): AsyncResult<Totals>;
|
|
108
120
|
/** Issues a draft: the next number, issue and due dates, frozen lines. */
|
|
109
121
|
issue(invoiceId: string, issuedOn?: Temporal.PlainDate, options?: {
|
|
@@ -170,6 +182,8 @@ export declare function createInvoices<S extends StandardSchemaV1 | undefined =
|
|
|
170
182
|
/** The events of the `invoices` block: type to data. */
|
|
171
183
|
type InvoicesEvents = {
|
|
172
184
|
readonly "invoice.created": InvoiceEventData;
|
|
185
|
+
readonly "invoice.updated": InvoiceEventData;
|
|
186
|
+
readonly "invoice.deleted": InvoiceEventData;
|
|
173
187
|
readonly "invoice.issued": InvoiceEventData;
|
|
174
188
|
readonly "invoice.payment_recorded": InvoiceEventData;
|
|
175
189
|
readonly "invoice.paid": InvoiceEventData;
|
|
@@ -184,4 +198,4 @@ type InvoicesEvents = {
|
|
|
184
198
|
export declare const invoicesEvents: Events<InvoicesEvents>;
|
|
185
199
|
/** The `invoices` block's manifest (ADR 0029). */
|
|
186
200
|
export declare const invoicesBlock: BlockOf<"invoices", typeof createInvoices, InvoicesEvents>;
|
|
187
|
-
export { type BlockHooks, type BlockTransport, type BlockTransportMiddleware, type Invoice, type InvoiceAging, type InvoiceCharge, type InvoiceInput, type InvoicePayment, type InvoiceStatus, type Invoices, type InvoicesEvents, type InvoicesOptions, type Line, type LineInput, type RecordRef, type RpcClient, type Totals, dbTransport, extendBlock, rpcTransport, sqlTransport, withBlockHooks, wrapTransport };
|
|
201
|
+
export { type BlockHooks, type BlockTransport, type BlockTransportMiddleware, type Invoice, type InvoiceAging, type InvoiceCharge, type InvoiceInput, type InvoicePatch, type InvoicePayment, type InvoiceStatus, type Invoices, type InvoicesEvents, type InvoicesOptions, type Line, type LineInput, type RecordRef, type RpcClient, type Totals, dbTransport, extendBlock, rpcTransport, sqlTransport, withBlockHooks, wrapTransport };
|
|
@@ -142,6 +142,17 @@ function createInvoices(options) {
|
|
|
142
142
|
lines: lines === void 0 ? null : lines.map(lineArg)
|
|
143
143
|
}));
|
|
144
144
|
},
|
|
145
|
+
update: (invoiceId, patch) => {
|
|
146
|
+
const { fields: extra, ...rest } = patch;
|
|
147
|
+
return AsyncResult.from(() => fields.write({ ...extra })).andThen((valid) => invoice("update_invoice", {
|
|
148
|
+
invoice: invoiceId,
|
|
149
|
+
attrs: attrsArg({
|
|
150
|
+
...rest,
|
|
151
|
+
...valid
|
|
152
|
+
})
|
|
153
|
+
}));
|
|
154
|
+
},
|
|
155
|
+
delete: (invoiceId) => call("delete_invoice", { invoice: invoiceId }, (value) => value === true),
|
|
145
156
|
setLines: (invoiceId, lines) => {
|
|
146
157
|
const invalid = amountsError(void 0, lines.map((line) => line.unitAmount));
|
|
147
158
|
return invalid === void 0 ? call("set_invoice_lines", {
|
|
@@ -223,6 +234,8 @@ function createInvoices(options) {
|
|
|
223
234
|
/** The `invoices` block's event types, for its manifest and `onBlockEvent`. */
|
|
224
235
|
const invoicesEvents = defineEvents({
|
|
225
236
|
"invoice.created": event(),
|
|
237
|
+
"invoice.updated": event(),
|
|
238
|
+
"invoice.deleted": event(),
|
|
226
239
|
"invoice.issued": event(),
|
|
227
240
|
"invoice.payment_recorded": event(),
|
|
228
241
|
"invoice.paid": event(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
2
2
|
import { _ as KnowledgeCollectionGrant, a as KnowledgeDocument, b as KnowledgeVisibility, c as KnowledgeOptions, d as KnowledgeSearchOptions, f as KnowledgeStatus, g as KnowledgeCollection, h as createKnowledge, i as KnowledgeChunk, l as KnowledgeQuery, m as chunk, n as Embedder, o as KnowledgeHit, p as NewKnowledgeDocument, r as Knowledge, s as KnowledgeHooks, t as ChunkOptions, u as KnowledgeScope, v as KnowledgeCollections, x as NewKnowledgeCollection, y as KnowledgeGrantee } from "../../knowledge-DWXAxvkN.js";
|
|
3
|
-
import { c as BlockOf } from "../../define-block-
|
|
3
|
+
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
4
4
|
/** The `knowledge` block's manifest (ADR 0029). */
|
|
5
5
|
export declare const knowledgeBlock: BlockOf<"knowledge", typeof createKnowledge, Record<never, never>, {
|
|
6
6
|
readonly files: "optional";
|
|
@@ -5,7 +5,7 @@ import { n as BlockOptions } 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
7
|
import { n as leadScoringSqlOptions, t as LeadScoringSqlOptions } from "../../options-DCZPW5gR.js";
|
|
8
|
-
import { c as BlockOf } from "../../define-block-
|
|
8
|
+
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
9
9
|
import { r as RuleFieldCatalog } from "../../fields-CP46SPNE.js";
|
|
10
10
|
import { t as ComputedScore } from "../../scores-Ce8MxQX9.js";
|
|
11
11
|
interface LeadScoring {
|
|
@@ -3,12 +3,12 @@ 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
5
|
import { et as RecordRef } from "../../types-BzIYSSWK.js";
|
|
6
|
-
import { Ct as Events } from "../../events-
|
|
6
|
+
import { Ct as Events } from "../../events-DddDlibJ.js";
|
|
7
7
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
8
8
|
import { a as BlockTenantOptions, 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 { Sn as EntitySchema, c as BlockOf, rn as RecordBinding } from "../../define-block-
|
|
11
|
+
import { Sn as EntitySchema, c as BlockOf, rn as RecordBinding } from "../../define-block-CDw9YGVh.js";
|
|
12
12
|
import { n as Money } from "../../money-BgpAd7d3.js";
|
|
13
13
|
type LeaseStatus = "draft" | "active" | "ended" | "terminated";
|
|
14
14
|
type RentFrequency = "weekly" | "monthly" | "quarterly" | "yearly";
|
|
@@ -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 { c as BlockOf } from "../../define-block-
|
|
10
|
+
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
11
11
|
interface LeaveOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockTemporalOptions {
|
|
12
12
|
readonly transport: BlockTransport;
|
|
13
13
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as isRecord } from "../../guards-CsRa6v57.js";
|
|
2
2
|
import { t as temporal } from "../../temporal-required-w_2u4EDp.js";
|
|
3
|
-
import { t as leaveSqlOptions } from "../../options-
|
|
3
|
+
import { t as leaveSqlOptions } from "../../options-zsLpIqBA.js";
|
|
4
4
|
import { n as event, t as defineEvents } from "../../event-map-DxfsFgQT.js";
|
|
5
5
|
import { A as recordsOf, C as optionalInstant, L as textOf, O as recordOf, U as rpcTransport, V as dbTransport, W as sqlTransport, d as enumOrThrow, j as requiredInstant, n as applyTemporal, o as blockCall, w as optionalText } from "../../block-helpers-I7UzjNEf.js";
|
|
6
6
|
import { i as wrapTransport, n as extendBlock, r as withBlockHooks } from "../../block-hooks-CadxQ9-_.js";
|
|
@@ -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 { c as BlockOf, rn as RecordBinding } from "../../define-block-
|
|
9
|
+
import { c as BlockOf, rn as RecordBinding } from "../../define-block-CDw9YGVh.js";
|
|
10
10
|
import { n as Money } from "../../money-BgpAd7d3.js";
|
|
11
11
|
interface LedgerOptions extends BlockTemporalOptions, BlockTenantOptions {
|
|
12
12
|
readonly transport: BlockTransport;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Ct as Events } from "../../events-
|
|
2
|
-
import { D as MailMessageEventData, E as MailAccountEventData, O as MailTrackingEventData } from "../../index-
|
|
1
|
+
import { Ct as Events } from "../../events-DddDlibJ.js";
|
|
2
|
+
import { D as MailMessageEventData, E as MailAccountEventData, O as MailTrackingEventData } from "../../index-DjJUamhw.js";
|
|
3
3
|
import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
4
4
|
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
|
|
5
5
|
import { n as mailSyncSqlOptions, t as MailSyncSqlOptions } from "../../options-C5fKQ3EJ.js";
|
|
6
|
-
import { $ as MailDraft, B as MailMessage, G as MailSyncReport, H as MailSubject, J as MailThreadDetail, K as MailTemplateStats, Q as MailAddress, Sn as EntitySchema, U as MailSync, V as MailSendDraft, W as MailSyncOptions, X as messageArg, Y as createMailSync, Z as HttpMailOptions, at as MailSendInput, c as BlockOf, ct as gmailMail, dt as newMessageId, et as MailListInput, ft as outlookMail, it as MailReplyTarget, lt as gmailMessage, mt as parseAddresses, nt as MailProvider, ot as MailSent, pt as outlookMessage, q as MailThread, rt as MailProviderMessage, st as buildMime, tt as MailPage, ut as mailProviderOf, z as MailAccount } from "../../define-block-
|
|
6
|
+
import { $ as MailDraft, B as MailMessage, G as MailSyncReport, H as MailSubject, J as MailThreadDetail, K as MailTemplateStats, Q as MailAddress, Sn as EntitySchema, U as MailSync, V as MailSendDraft, W as MailSyncOptions, X as messageArg, Y as createMailSync, Z as HttpMailOptions, at as MailSendInput, c as BlockOf, ct as gmailMail, dt as newMessageId, et as MailListInput, ft as outlookMail, it as MailReplyTarget, lt as gmailMessage, mt as parseAddresses, nt as MailProvider, ot as MailSent, pt as outlookMessage, q as MailThread, rt as MailProviderMessage, st as buildMime, tt as MailPage, ut as mailProviderOf, z as MailAccount } from "../../define-block-CDw9YGVh.js";
|
|
7
7
|
/** The events of the `mail-sync` block: type to data. */
|
|
8
8
|
type MailSyncEvents = {
|
|
9
9
|
readonly "mail_account.connected": MailAccountEventData;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ft as RepositoryExtension, It as RequestContext, Nt as Plugin, Ot as HasFlag, st as SchemaMeta } from "../../types-BzIYSSWK.js";
|
|
2
2
|
import { i as SameTenantOption, n as RoleThroughOption, r as SameTenantEntry, t as MembershipsSqlOptions } from "../../options-I1ZHfDP0.js";
|
|
3
|
-
import { r as Block } from "../../define-block-
|
|
3
|
+
import { r as Block } from "../../define-block-CDw9YGVh.js";
|
|
4
4
|
/**
|
|
5
5
|
* Dotted paths to the string claims of `C` (up to three levels), e.g.
|
|
6
6
|
* `'tenant_id' | 'app_metadata.tenant_id'`. Any string without a claims type.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
2
2
|
import { n as Embedder } from "../../knowledge-DWXAxvkN.js";
|
|
3
3
|
import { a as MemoryHooks, c as MemoryOptions, d as MemoryScope, f as MemoryView, i as MemoryHit, l as MemoryRecord, n as MemoryCommand, o as MemoryKind, p as RecalledMessage, r as MemoryDocument, s as MemoryNamespace, t as Memory, u as MemorySaveOptions } from "../../types-C7K8mu9B.js";
|
|
4
|
-
import { c as BlockOf } from "../../define-block-
|
|
4
|
+
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
5
5
|
/** Core memory files, archival facts and recall over earlier chats. */
|
|
6
6
|
export declare function createMemory(options: MemoryOptions): Memory;
|
|
7
7
|
/** The `memory` block's manifest (ADR 0029). */
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { b as DbError, f as Result } from "../../result-DTOQRyGY.js";
|
|
2
2
|
import { et as RecordRef } from "../../types-BzIYSSWK.js";
|
|
3
|
-
import { Ct as Events } from "../../events-
|
|
4
|
-
import { _ as ConversationEventData, k as MessageEventData } from "../../index-
|
|
3
|
+
import { Ct as Events } from "../../events-DddDlibJ.js";
|
|
4
|
+
import { _ as ConversationEventData, k as MessageEventData } from "../../index-DjJUamhw.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 { P as MessagingSqlOptions } from "../../authorization-
|
|
7
|
+
import { P as MessagingSqlOptions } from "../../authorization-D8CaAdqU.js";
|
|
8
8
|
import { a as isFileAnchor, i as fileAnchor, n as FileAnchor, o as conversationTopic, r as FileAnchorAt, t as AnchorRegion } from "../../anchors-sCLvYj-8.js";
|
|
9
9
|
import { _ as NotifyLevel, a as FollowTarget, b as UnreadCount, c as MessageEdit, d as MessageKind, f as MessageListOptions, g as NewMessage, h as MessagingOptions, i as ConversationSummary, l as MessageEdition, m as Messaging, n as ConversationAccess, o as Message, p as MessageReaction, r as ConversationKind, s as MessageCursor, t as Conversation, u as MessageFile, v as OpenConversation, x as createMessaging, y as RecordMention } from "../../messaging-Bfe4p9Pm.js";
|
|
10
10
|
import { a as ThreadSummary, i as ThreadSummarizer, n as SummaryMessage, o as ThreadSummaryInput, r as SummaryTarget, s as ThreadSummaryOutput, t as SummarizeOptions } from "../../summaries-CUemsYwV.js";
|
|
11
|
-
import { Sn as EntitySchema, c as BlockOf } from "../../define-block-
|
|
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-
|
|
11
|
+
import { Sn as EntitySchema, c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
12
|
+
import { p as SubscriptionStatus } from "../../topic-D7F2FBNp.js";
|
|
13
|
+
import { n as TopicPort } from "../../watch-topic-BIEaSN0Y.js";
|
|
14
|
+
import { n as Controller, t as AuthPort } from "../../controller-CJ6rLnpS.js";
|
|
15
15
|
type MentionScope = "channel" | "here";
|
|
16
16
|
interface ParsedMentions {
|
|
17
17
|
/** Mentioned user ids, lowercase, in order and without repeats. */
|
|
@@ -5,8 +5,8 @@ import { n as BlockOptions } 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
7
|
import { _ as JobHandler } from "../../types-BdhE7I8Z.js";
|
|
8
|
-
import { c as BlockOf } from "../../define-block-
|
|
9
|
-
import { i as EventSink, t as CloudEvent } from "../../cloud-event-
|
|
8
|
+
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
9
|
+
import { i as EventSink, t as CloudEvent } from "../../cloud-event-BjgxkfJJ.js";
|
|
10
10
|
import { a as MetricWhereValue, c as metricsOf, i as MetricMeasure, n as MetricDefinition, o as checkMetric, r as MetricGrain, s as defineMetric, t as METRIC_GRAINS } from "../../metric-definition-2KQYeUZ1.js";
|
|
11
11
|
interface MetricsSinkOptions {
|
|
12
12
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { b as DbError, f as Result } from "../../result-DTOQRyGY.js";
|
|
2
2
|
import { t as Aal } from "../../mfa-CM5r904M.js";
|
|
3
|
-
import { r as Block } from "../../define-block-
|
|
4
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
3
|
+
import { r as Block } from "../../define-block-CDw9YGVh.js";
|
|
4
|
+
import { n as Controller, t as AuthPort } from "../../controller-CJ6rLnpS.js";
|
|
5
5
|
import { t as AuthReply } from "../../auth-reply-BMPJQssh.js";
|
|
6
6
|
/** A factor as `auth.mfa.listFactors()` returns it. */
|
|
7
7
|
interface RawMfaFactor {
|
|
@@ -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 ModerationSqlOptions } from "../../options-B6m9gYRH.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 ModerationOptions extends BlockTemporalOptions, BlockTenantOptions {
|
|
12
12
|
readonly transport: BlockTransport;
|
|
13
13
|
/**
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
import { T as ErrorMapper, f as Result, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
3
3
|
import { i as RowFields, r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
|
|
4
4
|
import { It as RequestContext } from "../../types-BzIYSSWK.js";
|
|
5
|
-
import { Ct as Events, J as NotificationEventData, o as EventHub, q as NotificationDeliveryEventData, st as SubjectEventData } from "../../events-
|
|
5
|
+
import { Ct as Events, J as NotificationEventData, o as EventHub, q as NotificationDeliveryEventData, st as SubjectEventData } from "../../events-DddDlibJ.js";
|
|
6
6
|
import { i as CursorPageOptions, 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 BlockProblemOptions } from "../../problem-NGBjN-TO.js";
|
|
10
|
-
import { c as BlockOf } from "../../define-block-
|
|
11
|
-
import { i as EventSink, t as CloudEvent } from "../../cloud-event-
|
|
12
|
-
import { g as SubscriberPolicy, i as AuthorizationHooks } from "../../authorization-hooks-
|
|
13
|
-
import { p as SubscriptionStatus } from "../../topic-
|
|
14
|
-
import { n as TopicPort } from "../../watch-topic-
|
|
15
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
10
|
+
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
11
|
+
import { i as EventSink, t as CloudEvent } from "../../cloud-event-BjgxkfJJ.js";
|
|
12
|
+
import { g as SubscriberPolicy, i as AuthorizationHooks } from "../../authorization-hooks-CR8TVvqo.js";
|
|
13
|
+
import { p as SubscriptionStatus } from "../../topic-D7F2FBNp.js";
|
|
14
|
+
import { n as TopicPort } from "../../watch-topic-BIEaSN0Y.js";
|
|
15
|
+
import { n as Controller, t as AuthPort } from "../../controller-CJ6rLnpS.js";
|
|
16
16
|
import { n as VerifyOptions } from "../../signatures-jPr9JXyw.js";
|
|
17
17
|
import { a as NotificationItem, i as NotificationAction, n as NotificationMessage, o as NotificationSubject, r as NotificationSendResult, s as RenderedText, t as NotificationChannel } from "../../channel-B_kufDZy.js";
|
|
18
18
|
import { a as DeliveryTransport, c as UnsubscribeTarget, i as DeliverySendOptions, l as mailHeaders, n as DeliveryMessages, o as EmailMessage, r as DeliveryReceipt, s as MailCategory, t as DeliveryChannel } from "../../delivery-CWcbh87x.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
2
|
-
import { $ as SaasEventData, Ct as Events } from "../../events-
|
|
2
|
+
import { $ as SaasEventData, Ct as Events } from "../../events-DddDlibJ.js";
|
|
3
3
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
4
4
|
import { 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-
|
|
6
|
+
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
7
7
|
interface NumberingOptions {
|
|
8
8
|
readonly transport: BlockTransport;
|
|
9
9
|
readonly schema?: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
3
|
-
import { Ct as Events } from "../../events-
|
|
3
|
+
import { Ct as Events } from "../../events-DddDlibJ.js";
|
|
4
4
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
5
5
|
import { n as BlockOptions } from "../../block-helpers-BNtM1tqy.js";
|
|
6
6
|
import { 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
|
declare const AUTH_METHODS: readonly ["none", "client_secret_basic", "client_secret_post"];
|
|
10
10
|
declare const GRANT_TYPES: readonly ["authorization_code", "refresh_token", "client_credentials", "urn:ietf:params:oauth:grant-type:device_code"];
|
|
11
11
|
/** How a client authenticates at the token endpoint (RFC 7591 section 2). */
|
|
@@ -4,8 +4,8 @@ import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
|
4
4
|
import { n as BlockOptions } 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 { n as Controller, t as AuthPort } from "../../controller-
|
|
7
|
+
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
8
|
+
import { n as Controller, t as AuthPort } from "../../controller-CJ6rLnpS.js";
|
|
9
9
|
type ChecklistScope = "user" | "organization";
|
|
10
10
|
/** One step. `events` completes it when the outbox records one of those types. */
|
|
11
11
|
interface ChecklistStep<Id extends string = string> {
|