better-supabase 0.40.0 → 0.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agents-BwUHtvD6.d.ts → agents-BAiLeoR-.d.ts} +3 -3
- package/dist/{ai-cache-CPOP2PYz.d.ts → ai-cache-B94R1da7.d.ts} +3 -3
- package/dist/{ai-chat-BZhfCHHr.d.ts → ai-chat-rQ7Ftq9W.d.ts} +3 -3
- package/dist/{ai-schedules-ChJkI2jo.d.ts → ai-schedules-DIiPmFgn.d.ts} +4 -4
- package/dist/ai-sdk/agents/index.d.ts +6 -6
- package/dist/ai-sdk/batches/index.d.ts +3 -3
- package/dist/ai-sdk/cache/index.d.ts +1 -1
- package/dist/ai-sdk/chat/index.d.ts +2 -2
- package/dist/ai-sdk/embeddings/index.d.ts +2 -2
- package/dist/ai-sdk/files/index.d.ts +1 -1
- package/dist/ai-sdk/index.d.ts +5 -5
- package/dist/ai-sdk/mcp/index.d.ts +1 -1
- package/dist/ai-sdk/memory/index.d.ts +3 -3
- package/dist/ai-sdk/workflow/index.d.ts +3 -3
- package/dist/{api-keys-BncNDlWG.d.ts → api-keys-U3JQ8IlM.d.ts} +2 -2
- package/dist/{app-tables-jaQmdgAM.d.ts → app-tables-DGgCgRwq.d.ts} +1 -1
- package/dist/{approvals-CXW3yFWZ.d.ts → approvals-CYbTzQ7v.d.ts} +112 -13
- package/dist/{approvals-D8gR1R8R.js → approvals-cyL5CmU7.js} +49 -19
- package/dist/{assistant-5heV2GeR.d.ts → assistant-B1p5mYaM.d.ts} +2 -2
- package/dist/{authorization-Ul_ApMYW.d.ts → authorization-CcvJbvr1.d.ts} +62 -8
- package/dist/{automations-D4QTP8nI.js → automations-CJhRmPmq.js} +3 -1
- package/dist/{bind-B2GlypM6.d.ts → bind-B71jMEGG.d.ts} +4 -4
- package/dist/{block-env-Bcr-jEA1.d.ts → block-env-DzYTC9d1.d.ts} +4 -4
- package/dist/{block-helpers-BNtM1tqy.d.ts → block-helpers-Sj-efEhC.d.ts} +15 -1
- package/dist/{block-hooks-CtMsgLQr.d.ts → block-hooks-VW4knarE.d.ts} +1 -1
- package/dist/{block-subjects-BumEsEYb.js → block-subjects-a_ECM9o0.js} +1 -1
- package/dist/{block-tables-nkIjJ1ly.d.ts → block-tables-B92SBFqM.d.ts} +1 -1
- package/dist/blocks/access-requests/index.d.ts +3 -3
- package/dist/blocks/activities/index.d.ts +6 -6
- package/dist/blocks/agents/index.d.ts +2 -2
- package/dist/blocks/ai-cache/index.d.ts +2 -2
- package/dist/blocks/ai-chat/index.d.ts +6 -6
- package/dist/blocks/ai-files/index.d.ts +2 -2
- package/dist/blocks/ai-keys/index.d.ts +2 -2
- package/dist/blocks/ai-schedules/index.d.ts +2 -2
- package/dist/blocks/announcements/index.d.ts +6 -6
- package/dist/blocks/api-keys/index.d.ts +2 -2
- package/dist/blocks/approvals/index.d.ts +4 -3
- package/dist/blocks/approvals/index.js +3 -2
- package/dist/blocks/assets/index.d.ts +3 -3
- package/dist/blocks/assignment/index.d.ts +3 -3
- package/dist/blocks/attachments/index.d.ts +2 -2
- package/dist/blocks/audit/index.d.ts +6 -6
- package/dist/blocks/automations/index.d.ts +6 -6
- package/dist/blocks/billable-time/index.d.ts +3 -3
- package/dist/blocks/billing/index.d.ts +4 -4
- 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 +3 -3
- 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 +8 -8
- package/dist/blocks/compliance/index.d.ts +3 -3
- package/dist/blocks/connectors/index.d.ts +2 -2
- package/dist/blocks/contacts/index.d.ts +3 -3
- package/dist/blocks/content/index.d.ts +3 -3
- package/dist/blocks/contracts/index.d.ts +3 -3
- package/dist/blocks/courses/index.d.ts +3 -3
- package/dist/blocks/created-by/index.d.ts +1 -1
- package/dist/blocks/custom-fields/index.d.ts +3 -3
- 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 +3 -3
- package/dist/blocks/documents/index.d.ts +2 -2
- package/dist/blocks/domains/index.d.ts +4 -4
- package/dist/blocks/donations/index.d.ts +3 -3
- package/dist/blocks/drive/index.d.ts +4 -4
- 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 +3 -3
- package/dist/blocks/entitlements/index.d.ts +4 -4
- package/dist/blocks/expenses/index.d.ts +7 -3
- package/dist/blocks/expenses/index.js +5 -3
- package/dist/blocks/field-history/index.d.ts +3 -3
- package/dist/blocks/flags/index.d.ts +3 -3
- package/dist/blocks/forecasts/index.d.ts +3 -3
- package/dist/blocks/forms/index.d.ts +4 -4
- package/dist/blocks/goals/index.d.ts +3 -3
- package/dist/blocks/guests/index.d.ts +3 -3
- package/dist/blocks/hiring/index.d.ts +3 -3
- package/dist/blocks/identities/index.d.ts +3 -3
- package/dist/blocks/imports/index.d.ts +2 -2
- package/dist/blocks/inbox/index.d.ts +8 -8
- package/dist/blocks/incidents/index.d.ts +3 -3
- package/dist/blocks/index.d.ts +4 -4
- package/dist/blocks/inventory/index.d.ts +4 -4
- package/dist/blocks/invoices/index.d.ts +21 -8
- package/dist/blocks/invoices/index.js +20 -10
- package/dist/blocks/knowledge/index.d.ts +2 -2
- package/dist/blocks/lead-scoring/index.d.ts +4 -4
- package/dist/blocks/leases/index.d.ts +3 -3
- package/dist/blocks/leave/index.d.ts +5 -3
- package/dist/blocks/leave/index.js +3 -2
- package/dist/blocks/ledger/index.d.ts +3 -3
- package/dist/blocks/mail-sync/index.d.ts +2 -2
- package/dist/blocks/memberships/index.d.ts +1 -1
- package/dist/blocks/memory/index.d.ts +3 -3
- package/dist/blocks/messaging/index.d.ts +7 -7
- package/dist/blocks/metrics/index.d.ts +4 -4
- package/dist/blocks/mfa/index.d.ts +2 -2
- package/dist/blocks/moderation/index.d.ts +3 -3
- package/dist/blocks/notifications/index.d.ts +6 -6
- package/dist/blocks/numbering/index.d.ts +2 -2
- package/dist/blocks/oauth-server/index.d.ts +3 -3
- package/dist/blocks/onboarding/index.d.ts +4 -4
- package/dist/blocks/orders/index.d.ts +5 -5
- package/dist/blocks/organizations/index.d.ts +5 -5
- package/dist/blocks/outbox/index.d.ts +2 -2
- package/dist/blocks/passes/index.d.ts +5 -5
- package/dist/blocks/permissions/index.d.ts +5 -5
- package/dist/blocks/pipelines/index.d.ts +3 -3
- package/dist/blocks/posts/index.d.ts +3 -3
- package/dist/blocks/profiles/index.d.ts +3 -3
- package/dist/blocks/promotions/index.d.ts +3 -3
- package/dist/blocks/push/index.d.ts +4 -4
- package/dist/blocks/queue/index.d.ts +4 -4
- package/dist/blocks/quotes/index.d.ts +57 -12
- package/dist/blocks/quotes/index.js +35 -7
- package/dist/blocks/rank/index.d.ts +4 -4
- package/dist/blocks/reactions/index.d.ts +6 -6
- package/dist/blocks/relations/index.d.ts +4 -4
- package/dist/blocks/reminders/index.d.ts +4 -4
- package/dist/blocks/reviews/index.d.ts +3 -3
- package/dist/blocks/saved-views/index.d.ts +3 -3
- package/dist/blocks/scores/index.d.ts +3 -3
- package/dist/blocks/search/index.d.ts +5 -5
- package/dist/blocks/security-events/index.d.ts +4 -4
- package/dist/blocks/segments/index.d.ts +3 -3
- package/dist/blocks/sequences/index.d.ts +3 -3
- package/dist/blocks/service-accounts/index.d.ts +3 -3
- package/dist/blocks/sessions/index.d.ts +2 -2
- package/dist/blocks/settings/index.d.ts +4 -4
- package/dist/blocks/share-links/index.d.ts +3 -3
- package/dist/blocks/shipments/index.d.ts +3 -3
- package/dist/blocks/signatures/index.d.ts +3 -3
- 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 +4 -4
- package/dist/blocks/state-machine/index.d.ts +3 -14
- package/dist/blocks/subjects/index.d.ts +3 -3
- package/dist/blocks/tags/index.d.ts +4 -4
- package/dist/blocks/tasks/index.d.ts +5 -5
- package/dist/blocks/teams/index.d.ts +3 -3
- package/dist/blocks/templates/index.d.ts +6 -6
- package/dist/blocks/time-tracking/index.d.ts +3 -3
- package/dist/blocks/timeline/index.d.ts +3 -3
- package/dist/blocks/trash/index.d.ts +3 -3
- package/dist/blocks/undo/index.d.ts +3 -3
- package/dist/blocks/updated-at/index.d.ts +1 -1
- package/dist/blocks/usage/index.d.ts +3 -3
- package/dist/blocks/vercel-marketplace/index.d.ts +3 -3
- package/dist/blocks/versions/index.d.ts +3 -3
- package/dist/blocks/waitlist/index.d.ts +3 -3
- package/dist/blocks/webhooks/index.d.ts +5 -5
- package/dist/blocks/workflow-editor/index.d.ts +7 -7
- package/dist/blocks/workflows/index.d.ts +5 -5
- package/dist/{bookings-Dj5cvXKv.d.ts → bookings-CHUzFwOI.d.ts} +3 -3
- package/dist/chat-sdk/index.d.ts +3 -3
- package/dist/claims/index.d.ts +4 -4
- package/dist/cli/add-BbhRYaFe.js +1 -0
- package/dist/cli/{add-BVs8Ym-K.js → add-NosuEQn1.js} +10 -10
- package/dist/cli/{add-DP1ct-7e.js → add-U0pyhIyx.js} +2 -2
- package/dist/cli/{app-table-files-gjMyFqH4.js → app-table-files-DUi898lB.js} +2 -2
- package/dist/cli/{app-tables-B26PHK75.js → app-tables-BINtREbx.js} +2 -2
- package/dist/cli/{backfill-CP_LpTK2.js → backfill-VfqI5GqN.js} +1 -1
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-Ewp49Kbm.js → blocks-Bo2Lw2UO.js} +1 -1
- package/dist/cli/{blocks-CpBLp57s.js → blocks-DsEaPf6J.js} +1 -1
- package/dist/cli/{cache-BxxtUXVN.js → cache-CNJD8OdR.js} +1 -1
- package/dist/cli/{codemod-CGCxMEyD.js → codemod-BWa3Bte6.js} +1 -1
- package/dist/cli/{content-mapper-DngBJv4r.js → content-mapper-Dl50Ny6a.js} +2 -2
- package/dist/cli/{doctor-3dcMraMn.js → doctor-B9GtOGSa.js} +15 -15
- package/dist/cli/{gen-DrXxFwUU.js → gen-CIUD1sgB.js} +11 -11
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +6 -6
- package/dist/cli/{init-bVKQ4Onb.js → init-wl5jk5vX.js} +8 -8
- package/dist/cli/{live-CHTbAqdS.js → live-B0f_X3rI.js} +2 -2
- package/dist/cli/{mcp-BbmhntrR.js → mcp-CZWaBkXY.js} +2 -2
- package/dist/cli/{metadata-BS56R_eb.js → metadata-Bi5eQP4w.js} +3 -3
- package/dist/cli/{migrate-DV6a9-jI.js → migrate-DMITLPEu.js} +1 -1
- package/dist/cli/{migration-safety-Ce9IQwmJ.js → migration-safety-2n8e8njJ.js} +1 -1
- package/dist/cli/{migrations-CCCnMhmM.js → migrations-C5k9hNOo.js} +2 -2
- package/dist/cli/{module-migration-C0cAzpNa.js → module-migration-BFchEhAJ.js} +2 -2
- package/dist/cli/{powersync-OIIpG-y_.js → powersync-DViexv6m.js} +3 -3
- package/dist/cli/powersync-i7KJcTtM.js +1 -0
- package/dist/cli/{print-BGF3d6O2.js → print-ChX1vQhO.js} +2 -2
- package/dist/cli/{providers-fEzlYSLs.js → providers-lwK2lplZ.js} +1 -1
- package/dist/cli/{prune-workflows-Bx7J5T3a.js → prune-workflows-DO3nRZFF.js} +1 -1
- package/dist/cli/{remove-Ds4N6WvD.js → remove-WB9dFyNn.js} +5 -5
- package/dist/cli/{render-BeZToAp-.js → render-B0MMWWZE.js} +3 -3
- package/dist/cli/{run-iUmtksq5.js → run-CMvwtBX9.js} +27 -27
- package/dist/cli/{run-DR0sTyNQ.js → run-CmJbNG2-.js} +9 -9
- package/dist/cli/{shared-BCWYvKeR.js → shared-BL5kcRdz.js} +1 -1
- package/dist/cli/{snapshot-CfgRxTQq.js → snapshot-CVB9Ri2a.js} +2 -2
- package/dist/cli/{source-Ct3ZCy6p.js → source-COGgsYiV.js} +1 -1
- package/dist/cli/{spec-1eEq2P4T.js → spec-002zD_9Z.js} +1 -1
- package/dist/cli/{spec-9vb-or-k.js → spec-CH6Qd2LE.js} +2 -2
- package/dist/cli/{sql-layout-cYsnyjRf.js → sql-layout-jZOzCj-S.js} +2 -2
- package/dist/cli/{sync-XpcpINnx.js → sync-I4x-1aVx.js} +4 -4
- package/dist/cli/{upgrade-A18FY5Iy.js → upgrade-BRp5AxAY.js} +2 -2
- package/dist/cli/{upgrade-DXhyb2jV.js → upgrade-C60BZggI.js} +5 -5
- package/dist/cli/{version-PcwPOm4G.js → version-CRCAxS2s.js} +1 -1
- package/dist/client/index.d.ts +5 -5
- package/dist/client/native/index.d.ts +4 -4
- package/dist/config/index.d.ts +2 -2
- package/dist/config/index.js +4 -4
- package/dist/{config-qqAfS_1_.js → config-2SwAe0Im.js} +3 -3
- package/dist/{config-BRGMUEE2.js → config-BND2PFGs.js} +1 -1
- package/dist/{connectors-DDsdz-cn.d.ts → connectors-OMJkoAP6.d.ts} +2 -2
- package/dist/{context-dHluCmud.d.ts → context-DXWyPNzr.d.ts} +4 -2
- package/dist/contract/index.d.ts +4 -4
- package/dist/{controller-BQXgMwWN.d.ts → controller-D3MPVovD.d.ts} +1 -1
- package/dist/{conversion-CLBBITW5.d.ts → conversion-BShzA-u-.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/{define-block-CDw9YGVh.d.ts → define-block-DBD7yhQg.d.ts} +5 -5
- package/dist/{documents-Btk0MhC0.d.ts → documents-CNVPrE_0.d.ts} +2 -2
- package/dist/{embeddings-CI6P_mtD.d.ts → embeddings-C2PBJ2Lx.d.ts} +1 -1
- package/dist/{entitlements-Jh_w-PgX.d.ts → entitlements-CljrSoWD.d.ts} +1 -1
- package/dist/eve/index.d.ts +5 -5
- package/dist/eve/index.js +1 -1
- package/dist/{eve-DleYrhwj.d.ts → eve-CtQd4iaO.d.ts} +2 -2
- package/dist/{executor-uNDJBzT8.d.ts → executor-DL7cZ-3T.d.ts} +1 -1
- package/dist/{field-errors-DIDkgzFA.d.ts → field-errors-C4NOUBpu.d.ts} +6 -6
- package/dist/{flags-Cuew4tGx.d.ts → flags-BrXfCmGB.d.ts} +1 -1
- package/dist/flags-sdk/index.d.ts +1 -1
- package/dist/{gateway-B9k89AC4.d.ts → gateway-DJX-XUWl.d.ts} +3 -3
- package/dist/{inbox-yGfUVQr2.d.ts → inbox-DiQ8KhG8.d.ts} +4 -4
- package/dist/{index-DAS_5OfK.d.ts → index-1_-lg9Gc.d.ts} +1 -1
- package/dist/{index-DhcLJAtX.d.ts → index-Bjj-GNhd.d.ts} +1 -1
- package/dist/{index-y70eTezB.d.ts → index-BrGOE0c2.d.ts} +2 -2
- package/dist/{index-g_eFnFqo.d.ts → index-CUxdZYSi.d.ts} +2 -2
- package/dist/{index-xmb6YGTg.d.ts → index-D5qW2cRD.d.ts} +2 -2
- package/dist/{index-CpZ4WDDJ.d.ts → index-DWVDKVYA.d.ts} +1 -1
- package/dist/{index-IrJQqPeQ.d.ts → index-DhHtsi-q.d.ts} +3 -3
- package/dist/{index-BKz-E3Mv.d.ts → index-DmSDAFkF.d.ts} +8 -8
- package/dist/{instances-DqEZrffE.js → instances-DwrdFwKq.js} +10 -1
- package/dist/{knowledge-DWXAxvkN.d.ts → knowledge-DtECa_QW.d.ts} +4 -4
- package/dist/mapper/bin.js +5 -5
- package/dist/mcp/index.d.ts +1 -1
- package/dist/{messaging-Bfe4p9Pm.d.ts → messaging-CpQIhkFi.d.ts} +2 -2
- package/dist/next/index.d.ts +7 -7
- package/dist/{operations-Sza7UQKP.d.ts → operations-DFmuxaxW.d.ts} +1 -1
- package/dist/{options-zsLpIqBA.js → options-B1oSaIZ4.js} +2 -1
- package/dist/{options-CYZH9uxU.js → options-BXiUftgG.js} +3 -1
- package/dist/{options-Bgnm4pTD.js → options-DLJTiX29.js} +6 -1
- package/dist/otel/index.js +4 -4
- package/dist/{outbox-DikdzUKf.d.ts → outbox-Cpxpzcue.d.ts} +2 -2
- package/dist/{permissions-COamTJYz.d.ts → permissions-Bsd4mEEZ.d.ts} +1 -1
- package/dist/{ports-1M1E_r2n.d.ts → ports-BKdt_9Oe.d.ts} +1 -1
- package/dist/powersync/index.d.ts +2 -2
- package/dist/preset/index.d.ts +3 -3
- package/dist/preset/index.js +3 -3
- package/dist/{preset-Byz43PrL.js → preset-CenE7f1G.js} +2 -2
- package/dist/{project-Y2wW_nr_.js → project-Ceh2yTSv.js} +5 -5
- package/dist/{push-token-DKImhAca.d.ts → push-token-DRcEl9Ce.d.ts} +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/react/index.d.ts +5 -5
- package/dist/react/native/index.d.ts +1 -1
- package/dist/react/server.d.ts +5 -5
- package/dist/realtime/index.d.ts +3 -3
- package/dist/{record-form-C-gIxGXe.d.ts → record-form-C-1TPtMG.d.ts} +1 -1
- package/dist/{recordings-Bw5LoocX.d.ts → recordings-BVuri85k.d.ts} +1 -1
- package/dist/records/index.d.ts +8 -8
- package/dist/{sandboxes-BF9RxxCU.d.ts → sandboxes-DKgJZYUZ.d.ts} +1 -1
- package/dist/{scores-Ce8MxQX9.d.ts → scores-BXuSVczw.d.ts} +2 -2
- package/dist/server/index.d.ts +4 -4
- package/dist/{signers-Dw9DBZjJ.d.ts → signers-UANxMfH-.d.ts} +2 -2
- package/dist/{signing-keys-FglIQ6iL.d.ts → signing-keys-DhBSWFy_.d.ts} +2 -2
- package/dist/solid/index.d.ts +5 -5
- package/dist/sql/index.d.ts +5 -5
- package/dist/sql/index.js +3 -3
- package/dist/{sql-B1FA8jTx.js → sql-BIniB45X.js} +1558 -502
- package/dist/{sso-B7w7h8RJ.d.ts → sso-Frh3sbJ1.d.ts} +2 -2
- package/dist/ssr/index.d.ts +1 -1
- package/dist/{subjects-CVjAE7nz.d.ts → subjects-DNFE2rMl.d.ts} +2 -2
- package/dist/svelte/index.d.ts +5 -5
- package/dist/{tenant-DflHpV32.d.ts → tenant--Hm8mlPy.d.ts} +1 -1
- package/dist/testing/index.d.ts +13 -13
- package/dist/testing/index.js +1 -1
- package/dist/{timeline-c6I3uxya.d.ts → timeline-BB9fKT_r.d.ts} +2 -2
- package/dist/{topic-CekU96q7.d.ts → topic-BYF-GTW9.d.ts} +1 -1
- package/dist/{types-B42S7qfO.d.ts → types-B8h0reJ4.d.ts} +2 -2
- package/dist/{types-DtiDatvu.d.ts → types-D--4dv5K.d.ts} +3 -3
- package/dist/{types-BXLiM6VM.d.ts → types-DCzgSAlU.d.ts} +2 -2
- package/dist/{types-6PMaLIyw.d.ts → types-DU_nNO7U.d.ts} +2 -2
- package/dist/{types-BdhE7I8Z.d.ts → types-LLCyr-xs.d.ts} +2 -2
- package/dist/{types-D5uf0l4_.d.ts → types-kq8S5HVE.d.ts} +1 -1
- package/dist/{types-C7K8mu9B.d.ts → types-z31g0-5T.d.ts} +3 -3
- package/dist/{undo-CdKp5_2X.d.ts → undo-BCQMqIQN.d.ts} +1 -1
- package/dist/{usage-DZ8j5Tm_.d.ts → usage-CJDj5j15.d.ts} +3 -3
- package/dist/vercel-sandbox/index.d.ts +1 -1
- package/dist/vue/index.d.ts +5 -5
- package/dist/{watch-topic-DBw411Mq.d.ts → watch-topic-tfTxgEGc.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.js +1 -1
- package/dist/{workflow-sdk-6psRpDIo.js → workflow-sdk-Bps7tpOv.js} +26 -1
- package/dist/{workflow-sdk-CUt0E4v6.d.ts → workflow-sdk-DzKQo265.d.ts} +2 -2
- package/dist/{workflows-BI4yKqFh.d.ts → workflows-D7HvWeNu.d.ts} +2 -2
- package/dist/yjs/index.d.ts +2 -2
- package/package.json +1 -1
- package/schemas/config-v1.json +42 -1
- package/dist/cli/add-DrwQvDYD.js +0 -1
- package/dist/cli/powersync-Cxd3a_v_.js +0 -1
|
@@ -3,8 +3,8 @@ import { ft as TableMeta } from "../../types-BzIYSSWK.js";
|
|
|
3
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
|
-
import { n as BlockHooks } from "../../block-hooks-
|
|
7
|
-
import { c as BlockOf } from "../../define-block-
|
|
6
|
+
import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
|
|
7
|
+
import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
8
8
|
import { r as parseCsv } from "../../csv-Dd1iKsk-.js";
|
|
9
9
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
10
10
|
interface ImportColumn {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
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
|
-
import { d as MessageKind, p as MessageReaction, u as MessageFile } from "../../messaging-
|
|
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-
|
|
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-
|
|
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-
|
|
3
|
+
import { d as MessageKind, p as MessageReaction, u as MessageFile } from "../../messaging-CpQIhkFi.js";
|
|
4
|
+
import { Zt as DefaultAutomation, c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
5
|
+
import { p as SubscriptionStatus } from "../../topic-BYF-GTW9.js";
|
|
6
|
+
import { n as TopicPort } from "../../watch-topic-tfTxgEGc.js";
|
|
7
|
+
import { l as StoragePort } from "../../ports-BKdt_9Oe.js";
|
|
8
|
+
import { n as Controller, t as AuthPort } from "../../controller-D3MPVovD.js";
|
|
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-kq8S5HVE.js";
|
|
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-DiQ8KhG8.js";
|
|
11
11
|
export declare const INBOX_CHANNELS: readonly InboxChannel[];
|
|
12
12
|
/** Loads one list, e.g. a server action that calls `inbox.conversations.list()`. */
|
|
13
13
|
type InboxSource<T> = () => Promise<readonly T[]>;
|
|
@@ -4,10 +4,10 @@ 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 { Ct as Events } from "../../events-DddDlibJ.js";
|
|
6
6
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
7
|
-
import { r as BlockTemporalOptions } from "../../block-helpers-
|
|
7
|
+
import { r as BlockTemporalOptions } from "../../block-helpers-Sj-efEhC.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
|
-
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-
|
|
10
|
-
import { Sn as EntitySchema, c as BlockOf } from "../../define-block-
|
|
9
|
+
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-VW4knarE.js";
|
|
10
|
+
import { Sn as EntitySchema, c as BlockOf } from "../../define-block-DBD7yhQg.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
|
@@ -4,15 +4,15 @@ import { a as WithExtraFields, n as ExtraFields, o as blockFields, r as FieldsOf
|
|
|
4
4
|
import { et as RecordRef } from "../types-BzIYSSWK.js";
|
|
5
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
6
|
import { z as onBlockEvent } from "../index-DjJUamhw.js";
|
|
7
|
-
import {
|
|
7
|
+
import { i as CursorPageOptions, n as BlockOptions, o as BlockTenantOptions, s as BlockTenant } from "../block-helpers-Sj-efEhC.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
|
-
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-
|
|
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-VW4knarE.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-DBD7yhQg.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-DzYTC9d1.js";
|
|
16
16
|
/** What a hook passes a block creator from the env. */
|
|
17
17
|
interface EnvBlockOptions {
|
|
18
18
|
readonly transport: BlockTransport;
|
|
@@ -4,11 +4,11 @@ import { t as StandardSchemaV1 } from "../../standard-DRX6Ch1j.js";
|
|
|
4
4
|
import { r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
|
|
5
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
|
-
import { n as BlockOptions } from "../../block-helpers-
|
|
7
|
+
import { n as BlockOptions } from "../../block-helpers-Sj-efEhC.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
|
-
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-
|
|
10
|
-
import { _ as JobHandler } from "../../types-
|
|
11
|
-
import { c as BlockOf } from "../../define-block-
|
|
9
|
+
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-VW4knarE.js";
|
|
10
|
+
import { _ as JobHandler } from "../../types-LLCyr-xs.js";
|
|
11
|
+
import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
12
12
|
import { n as Money } from "../../money-BgpAd7d3.js";
|
|
13
13
|
import { t as StockDetail } from "../../stock-detail-BRIt7CjU.js";
|
|
14
14
|
/** How a variant's stock is tracked. */
|
|
@@ -6,10 +6,10 @@ import { et as RecordRef } from "../../types-BzIYSSWK.js";
|
|
|
6
6
|
import { Ct as Events } from "../../events-DddDlibJ.js";
|
|
7
7
|
import { w as InvoiceEventData } from "../../index-DjJUamhw.js";
|
|
8
8
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
9
|
-
import { r as BlockTemporalOptions } from "../../block-helpers-
|
|
9
|
+
import { a as TransitionActor, r as BlockTemporalOptions } from "../../block-helpers-Sj-efEhC.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
|
-
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-
|
|
12
|
-
import { c as BlockOf } from "../../define-block-
|
|
11
|
+
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-VW4knarE.js";
|
|
12
|
+
import { c as BlockOf } from "../../define-block-DBD7yhQg.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";
|
|
@@ -112,6 +112,10 @@ interface InvoiceAging {
|
|
|
112
112
|
readonly overdueCount: number;
|
|
113
113
|
}
|
|
114
114
|
/** `F` types the invoices' extra columns, from the `fields` schema. */
|
|
115
|
+
/** Who made a status change, for the state machine's history. */
|
|
116
|
+
interface InvoiceActorOptions {
|
|
117
|
+
readonly actor?: TransitionActor;
|
|
118
|
+
}
|
|
115
119
|
interface Invoices<F extends object = Record<never, never>> {
|
|
116
120
|
create(organizationId: string, input: InvoiceInput<F>, lines?: readonly LineInput[]): AsyncResult<Invoice<F>>;
|
|
117
121
|
update(invoiceId: string, patch: InvoicePatch<F>): AsyncResult<Invoice<F>>;
|
|
@@ -120,6 +124,8 @@ interface Invoices<F extends object = Record<never, never>> {
|
|
|
120
124
|
/** Issues a draft: the next number, issue and due dates, frozen lines. */
|
|
121
125
|
issue(invoiceId: string, issuedOn?: Temporal.PlainDate, options?: {
|
|
122
126
|
readonly dueOn?: Temporal.PlainDate;
|
|
127
|
+
/** Who issued it, for the state machine's history. */
|
|
128
|
+
readonly actor?: TransitionActor;
|
|
123
129
|
}): AsyncResult<Invoice<F>>;
|
|
124
130
|
/** Records a payment; a negative amount is a refund. */
|
|
125
131
|
recordPayment(invoiceId: string, payment: {
|
|
@@ -131,16 +137,21 @@ interface Invoices<F extends object = Record<never, never>> {
|
|
|
131
137
|
readonly reference?: string;
|
|
132
138
|
/** A memo kept with the payment. */
|
|
133
139
|
readonly note?: string;
|
|
140
|
+
/** Who recorded it, for the state machine's history. */
|
|
141
|
+
readonly actor?: TransitionActor;
|
|
134
142
|
}): AsyncResult<Invoice<F>>;
|
|
135
143
|
/** A draft credit note for the whole invoice, or for the given lines. */
|
|
136
144
|
credit(invoiceId: string, options?: {
|
|
137
145
|
readonly lines?: readonly LineInput[];
|
|
138
146
|
readonly note?: string;
|
|
139
147
|
}): AsyncResult<Invoice<F>>;
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
148
|
+
/** The reason and `actor` go to the state machine's history. */
|
|
149
|
+
void(invoiceId: string, reason?: string, options?: InvoiceActorOptions): AsyncResult<Invoice<F>>;
|
|
150
|
+
/** The reason and `actor` go to the state machine's history. */
|
|
151
|
+
writeOff(invoiceId: string, reason?: string, options?: InvoiceActorOptions): AsyncResult<Invoice<F>>;
|
|
152
|
+
/** The reason and `actor` go to the state machine's history. */
|
|
153
|
+
reversePayment(paymentId: string, reason?: string, options?: InvoiceActorOptions): AsyncResult<Invoice<F>>;
|
|
154
|
+
removeCharge(chargeId: string, options?: InvoiceActorOptions): AsyncResult<Invoice<F>>;
|
|
144
155
|
/**
|
|
145
156
|
* Adds a charge on top of an issued invoice's total, in its currency. The
|
|
146
157
|
* balance rises, so a paid invoice is open again until the charge is paid.
|
|
@@ -150,6 +161,8 @@ interface Invoices<F extends object = Record<never, never>> {
|
|
|
150
161
|
readonly description?: string;
|
|
151
162
|
/** The charge's extra columns (`options.chargeExtraColumns`) by name. */
|
|
152
163
|
readonly fields?: Readonly<Record<string, unknown>>;
|
|
164
|
+
/** Who added it, for the state machine's history. */
|
|
165
|
+
readonly actor?: TransitionActor;
|
|
153
166
|
}): AsyncResult<Invoice<F>>;
|
|
154
167
|
aging(organizationId: string, currency: string, asOf?: Temporal.PlainDate): AsyncResult<InvoiceAging>;
|
|
155
168
|
payments(invoiceId: string): AsyncResult<readonly InvoicePayment[]>;
|
|
@@ -199,4 +212,4 @@ type InvoicesEvents = {
|
|
|
199
212
|
export declare const invoicesEvents: Events<InvoicesEvents>;
|
|
200
213
|
/** The `invoices` block's manifest (ADR 0029). */
|
|
201
214
|
export declare const invoicesBlock: BlockOf<"invoices", typeof createInvoices, InvoicesEvents>;
|
|
202
|
-
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 };
|
|
215
|
+
export { type BlockHooks, type BlockTransport, type BlockTransportMiddleware, type Invoice, type InvoiceActorOptions, 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 };
|
|
@@ -18,6 +18,7 @@ const STATUSES = [
|
|
|
18
18
|
"void",
|
|
19
19
|
"uncollectible"
|
|
20
20
|
];
|
|
21
|
+
const actorArg = (actor) => actor === void 0 ? {} : { actor };
|
|
21
22
|
const KNOWN = /* @__PURE__ */ new Set([
|
|
22
23
|
"id",
|
|
23
24
|
"tenant_id",
|
|
@@ -166,7 +167,8 @@ function createInvoices(options) {
|
|
|
166
167
|
issue: (invoiceId, issuedOn, issueOptions = {}) => invoice("issue_invoice", {
|
|
167
168
|
invoice: invoiceId,
|
|
168
169
|
issued_on: issuedOn === void 0 ? null : issuedOn.toString(),
|
|
169
|
-
...issueOptions.dueOn === void 0 ? {} : { due_on: issueOptions.dueOn.toString() }
|
|
170
|
+
...issueOptions.dueOn === void 0 ? {} : { due_on: issueOptions.dueOn.toString() },
|
|
171
|
+
...issueOptions.actor === void 0 ? {} : { actor: issueOptions.actor }
|
|
170
172
|
}),
|
|
171
173
|
recordPayment: (invoiceId, payment) => invoice("record_invoice_payment", {
|
|
172
174
|
invoice: invoiceId,
|
|
@@ -175,7 +177,8 @@ function createInvoices(options) {
|
|
|
175
177
|
paid_at: instantArg(payment.paidAt) ?? null,
|
|
176
178
|
method: payment.method ?? null,
|
|
177
179
|
reference: payment.reference ?? null,
|
|
178
|
-
note: payment.note ?? null
|
|
180
|
+
note: payment.note ?? null,
|
|
181
|
+
...payment.actor === void 0 ? {} : { actor: payment.actor }
|
|
179
182
|
}),
|
|
180
183
|
credit: (invoiceId, credit = {}) => {
|
|
181
184
|
const invalid = amountsError(void 0, (credit.lines ?? []).map((line) => line.unitAmount));
|
|
@@ -185,25 +188,32 @@ function createInvoices(options) {
|
|
|
185
188
|
note: credit.note ?? null
|
|
186
189
|
}) : AsyncResult.err(invalid);
|
|
187
190
|
},
|
|
188
|
-
void: (invoiceId, reason) => invoice("void_invoice", {
|
|
191
|
+
void: (invoiceId, reason, actorOptions) => invoice("void_invoice", {
|
|
189
192
|
invoice: invoiceId,
|
|
190
|
-
reason: reason ?? null
|
|
193
|
+
reason: reason ?? null,
|
|
194
|
+
...actorArg(actorOptions?.actor)
|
|
191
195
|
}),
|
|
192
|
-
writeOff: (invoiceId, reason) => invoice("write_off_invoice", {
|
|
196
|
+
writeOff: (invoiceId, reason, actorOptions) => invoice("write_off_invoice", {
|
|
193
197
|
invoice: invoiceId,
|
|
194
|
-
reason: reason ?? null
|
|
198
|
+
reason: reason ?? null,
|
|
199
|
+
...actorArg(actorOptions?.actor)
|
|
195
200
|
}),
|
|
196
|
-
reversePayment: (paymentId, reason) => invoice("reverse_invoice_payment", {
|
|
201
|
+
reversePayment: (paymentId, reason, actorOptions) => invoice("reverse_invoice_payment", {
|
|
197
202
|
payment: paymentId,
|
|
198
|
-
reason: reason ?? null
|
|
203
|
+
reason: reason ?? null,
|
|
204
|
+
...actorArg(actorOptions?.actor)
|
|
205
|
+
}),
|
|
206
|
+
removeCharge: (chargeId, actorOptions) => invoice("remove_invoice_charge", {
|
|
207
|
+
charge: chargeId,
|
|
208
|
+
...actorArg(actorOptions?.actor)
|
|
199
209
|
}),
|
|
200
|
-
removeCharge: (chargeId) => invoice("remove_invoice_charge", { charge: chargeId }),
|
|
201
210
|
charge: (invoiceId, charge) => invoice("add_invoice_charge", {
|
|
202
211
|
invoice: invoiceId,
|
|
203
212
|
amount: amountText(charge.amount),
|
|
204
213
|
currency: charge.amount.currency,
|
|
205
214
|
description: charge.description ?? null,
|
|
206
|
-
fields: charge.fields
|
|
215
|
+
fields: charge.fields,
|
|
216
|
+
...actorArg(charge.actor)
|
|
207
217
|
}),
|
|
208
218
|
aging: (organizationId, currency, asOf) => amountsError(currency, []) === void 0 ? call("invoice_aging", {
|
|
209
219
|
tenant: organizationId,
|
|
@@ -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
|
-
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-
|
|
3
|
-
import { c as BlockOf } from "../../define-block-
|
|
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-DtECa_QW.js";
|
|
3
|
+
import { c as BlockOf } from "../../define-block-DBD7yhQg.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";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
2
2
|
import { et as RecordRef } from "../../types-BzIYSSWK.js";
|
|
3
3
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
4
|
-
import { n as BlockOptions } from "../../block-helpers-
|
|
4
|
+
import { n as BlockOptions } from "../../block-helpers-Sj-efEhC.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
|
-
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-
|
|
6
|
+
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-VW4knarE.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-DBD7yhQg.js";
|
|
9
9
|
import { r as RuleFieldCatalog } from "../../fields-CP46SPNE.js";
|
|
10
|
-
import { t as ComputedScore } from "../../scores-
|
|
10
|
+
import { t as ComputedScore } from "../../scores-BXuSVczw.js";
|
|
11
11
|
interface LeadScoring {
|
|
12
12
|
/** Scores one person or company under its lead model now. */
|
|
13
13
|
score(subject: RecordRef): AsyncResult<ComputedScore>;
|
|
@@ -5,10 +5,10 @@ import { n as ExtraFields, r as FieldsOf } from "../../block-fields-Puv5m5D3.js"
|
|
|
5
5
|
import { et as RecordRef } from "../../types-BzIYSSWK.js";
|
|
6
6
|
import { Ct as Events } from "../../events-DddDlibJ.js";
|
|
7
7
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
8
|
-
import {
|
|
8
|
+
import { o as BlockTenantOptions, r as BlockTemporalOptions } from "../../block-helpers-Sj-efEhC.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
|
-
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-
|
|
11
|
-
import { Sn as EntitySchema, c as BlockOf, rn as RecordBinding } from "../../define-block-
|
|
10
|
+
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-VW4knarE.js";
|
|
11
|
+
import { Sn as EntitySchema, c as BlockOf, rn as RecordBinding } from "../../define-block-DBD7yhQg.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";
|
|
@@ -4,10 +4,10 @@ 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 { Ct as Events } from "../../events-DddDlibJ.js";
|
|
6
6
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
7
|
-
import { r as BlockTemporalOptions } from "../../block-helpers-
|
|
7
|
+
import { r as BlockTemporalOptions } from "../../block-helpers-Sj-efEhC.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
|
-
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-
|
|
10
|
-
import { c as BlockOf } from "../../define-block-
|
|
9
|
+
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-VW4knarE.js";
|
|
10
|
+
import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
11
11
|
interface LeaveOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockTemporalOptions {
|
|
12
12
|
readonly transport: BlockTransport;
|
|
13
13
|
/**
|
|
@@ -303,6 +303,8 @@ interface Leave<F extends object = Record<never, never>> {
|
|
|
303
303
|
decide(requestId: string, decision: {
|
|
304
304
|
readonly approved: boolean;
|
|
305
305
|
readonly note?: string;
|
|
306
|
+
/** The user the service role decides for, kept as `decidedBy`. */
|
|
307
|
+
readonly decidedBy?: string;
|
|
306
308
|
}): AsyncResult<LeaveRequest<F>>;
|
|
307
309
|
/**
|
|
308
310
|
* The approved leave behind a `leave_feed` share link (subject id: the
|
|
@@ -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-B1oSaIZ4.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";
|
|
@@ -178,7 +178,8 @@ function createLeave(options) {
|
|
|
178
178
|
decide: (requestId, decision) => call("decide_leave_request", {
|
|
179
179
|
request_id: requestId,
|
|
180
180
|
approved: decision.approved,
|
|
181
|
-
note: decision.note ?? null
|
|
181
|
+
note: decision.note ?? null,
|
|
182
|
+
...decision.decidedBy === void 0 ? {} : { decided_by: decision.decidedBy }
|
|
182
183
|
}, (value) => requestOf(value, "decide_leave_request")).andThen(fields.row),
|
|
183
184
|
feed: (token) => call("leave_feed", { token }, (value) => {
|
|
184
185
|
if (value === null || value === void 0) return null;
|
|
@@ -3,10 +3,10 @@ import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
|
3
3
|
import { et as RecordRef } from "../../types-BzIYSSWK.js";
|
|
4
4
|
import { Ct as Events } from "../../events-DddDlibJ.js";
|
|
5
5
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
6
|
-
import {
|
|
6
|
+
import { o as BlockTenantOptions, r as BlockTemporalOptions } from "../../block-helpers-Sj-efEhC.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
|
-
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-
|
|
9
|
-
import { c as BlockOf, rn as RecordBinding } from "../../define-block-
|
|
8
|
+
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-VW4knarE.js";
|
|
9
|
+
import { c as BlockOf, rn as RecordBinding } from "../../define-block-DBD7yhQg.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
1
|
import { Ct as Events } from "../../events-DddDlibJ.js";
|
|
2
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
|
-
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-
|
|
4
|
+
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-VW4knarE.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-DBD7yhQg.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-DBD7yhQg.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
|
-
import { n as Embedder } from "../../knowledge-
|
|
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-
|
|
4
|
-
import { c as BlockOf } from "../../define-block-
|
|
2
|
+
import { n as Embedder } from "../../knowledge-DtECa_QW.js";
|
|
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-z31g0-5T.js";
|
|
4
|
+
import { c as BlockOf } from "../../define-block-DBD7yhQg.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). */
|
|
@@ -3,15 +3,15 @@ import { et as RecordRef } from "../../types-BzIYSSWK.js";
|
|
|
3
3
|
import { Ct as Events } from "../../events-DddDlibJ.js";
|
|
4
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
|
-
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-
|
|
7
|
-
import { P as MessagingSqlOptions } from "../../authorization-
|
|
6
|
+
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-VW4knarE.js";
|
|
7
|
+
import { P as MessagingSqlOptions } from "../../authorization-CcvJbvr1.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
|
-
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-
|
|
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-CpQIhkFi.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-DBD7yhQg.js";
|
|
12
|
+
import { p as SubscriptionStatus } from "../../topic-BYF-GTW9.js";
|
|
13
|
+
import { n as TopicPort } from "../../watch-topic-tfTxgEGc.js";
|
|
14
|
+
import { n as Controller, t as AuthPort } from "../../controller-D3MPVovD.js";
|
|
15
15
|
type MentionScope = "channel" | "here";
|
|
16
16
|
interface ParsedMentions {
|
|
17
17
|
/** Mentioned user ids, lowercase, in order and without repeats. */
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
3
3
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
4
|
-
import { n as BlockOptions } from "../../block-helpers-
|
|
4
|
+
import { n as BlockOptions } from "../../block-helpers-Sj-efEhC.js";
|
|
5
5
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
6
|
-
import { n as BlockHooks } from "../../block-hooks-
|
|
7
|
-
import { _ as JobHandler } from "../../types-
|
|
8
|
-
import { c as BlockOf } from "../../define-block-
|
|
6
|
+
import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
|
|
7
|
+
import { _ as JobHandler } from "../../types-LLCyr-xs.js";
|
|
8
|
+
import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
9
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 {
|
|
@@ -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-DBD7yhQg.js";
|
|
4
|
+
import { n as Controller, t as AuthPort } from "../../controller-D3MPVovD.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 {
|
|
@@ -3,11 +3,11 @@ import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
|
3
3
|
import { et as RecordRef } from "../../types-BzIYSSWK.js";
|
|
4
4
|
import { Ct as Events } from "../../events-DddDlibJ.js";
|
|
5
5
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
6
|
-
import {
|
|
6
|
+
import { o as BlockTenantOptions, r as BlockTemporalOptions } from "../../block-helpers-Sj-efEhC.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
|
-
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-
|
|
8
|
+
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-VW4knarE.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-DBD7yhQg.js";
|
|
11
11
|
interface ModerationOptions extends BlockTemporalOptions, BlockTenantOptions {
|
|
12
12
|
readonly transport: BlockTransport;
|
|
13
13
|
/**
|
|
@@ -3,16 +3,16 @@ import { T as ErrorMapper, f as Result, t as AsyncResult } from "../../result-DT
|
|
|
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
5
|
import { Ct as Events, J as NotificationEventData, o as EventHub, q as NotificationDeliveryEventData, st as SubjectEventData } from "../../events-DddDlibJ.js";
|
|
6
|
-
import { i as CursorPageOptions, r as BlockTemporalOptions } from "../../block-helpers-
|
|
6
|
+
import { i as CursorPageOptions, r as BlockTemporalOptions } from "../../block-helpers-Sj-efEhC.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
|
-
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-
|
|
8
|
+
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-VW4knarE.js";
|
|
9
9
|
import { t as BlockProblemOptions } from "../../problem-NGBjN-TO.js";
|
|
10
|
-
import { c as BlockOf } from "../../define-block-
|
|
10
|
+
import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
11
11
|
import { i as EventSink, t as CloudEvent } from "../../cloud-event-BjgxkfJJ.js";
|
|
12
12
|
import { g as SubscriberPolicy, i as AuthorizationHooks } from "../../authorization-hooks-CR8TVvqo.js";
|
|
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-
|
|
13
|
+
import { p as SubscriptionStatus } from "../../topic-BYF-GTW9.js";
|
|
14
|
+
import { n as TopicPort } from "../../watch-topic-tfTxgEGc.js";
|
|
15
|
+
import { n as Controller, t as AuthPort } from "../../controller-D3MPVovD.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";
|
|
@@ -2,8 +2,8 @@ import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
|
2
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
|
-
import { n as BlockHooks } from "../../block-hooks-
|
|
6
|
-
import { c as BlockOf } from "../../define-block-
|
|
5
|
+
import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
|
|
6
|
+
import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
7
7
|
interface NumberingOptions {
|
|
8
8
|
readonly transport: BlockTransport;
|
|
9
9
|
readonly schema?: string;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
3
3
|
import { Ct as Events } from "../../events-DddDlibJ.js";
|
|
4
4
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
5
|
-
import { n as BlockOptions } from "../../block-helpers-
|
|
5
|
+
import { n as BlockOptions } from "../../block-helpers-Sj-efEhC.js";
|
|
6
6
|
import { s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
7
|
-
import { n as BlockHooks } from "../../block-hooks-
|
|
8
|
-
import { c as BlockOf } from "../../define-block-
|
|
7
|
+
import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
|
|
8
|
+
import { c as BlockOf } from "../../define-block-DBD7yhQg.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). */
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { b as DbError, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
3
3
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
4
|
-
import { n as BlockOptions } from "../../block-helpers-
|
|
4
|
+
import { n as BlockOptions } from "../../block-helpers-Sj-efEhC.js";
|
|
5
5
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
6
|
-
import { n as BlockHooks } from "../../block-hooks-
|
|
7
|
-
import { c as BlockOf } from "../../define-block-
|
|
8
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
6
|
+
import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
|
|
7
|
+
import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
8
|
+
import { n as Controller, t as AuthPort } from "../../controller-D3MPVovD.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> {
|
|
@@ -4,13 +4,13 @@ import { t as StandardSchemaV1 } from "../../standard-DRX6Ch1j.js";
|
|
|
4
4
|
import { r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
|
|
5
5
|
import { Ct as Events, M as CommerceSubjectEventData } from "../../events-DddDlibJ.js";
|
|
6
6
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
7
|
-
import { n as BlockOptions } from "../../block-helpers-
|
|
7
|
+
import { n as BlockOptions } from "../../block-helpers-Sj-efEhC.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
|
-
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-
|
|
10
|
-
import { _ as JobHandler } from "../../types-
|
|
11
|
-
import { Bt as Action, c as BlockOf } from "../../define-block-
|
|
9
|
+
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-VW4knarE.js";
|
|
10
|
+
import { _ as JobHandler } from "../../types-LLCyr-xs.js";
|
|
11
|
+
import { Bt as Action, c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
12
12
|
import { n as Money } from "../../money-BgpAd7d3.js";
|
|
13
|
-
import { n as ConversionContext, t as ConversionClients } from "../../conversion-
|
|
13
|
+
import { n as ConversionContext, t as ConversionClients } from "../../conversion-BShzA-u-.js";
|
|
14
14
|
import { r as WebhookInput } from "../../signatures-jPr9JXyw.js";
|
|
15
15
|
import { i as PaymentEvent, n as Payment, o as PaymentProvider } from "../../payments-BBGSGRQ7.js";
|
|
16
16
|
import { t as StockDetail } from "../../stock-detail-BRIt7CjU.js";
|
|
@@ -4,12 +4,12 @@ import { t as StandardSchemaV1 } from "../../standard-DRX6Ch1j.js";
|
|
|
4
4
|
import { i as RowFields, r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
|
|
5
5
|
import { It as RequestContext } from "../../types-BzIYSSWK.js";
|
|
6
6
|
import { Ct as Events, W as InvitationEventData, Z as OrganizationEventData, o as EventHub } from "../../events-DddDlibJ.js";
|
|
7
|
-
import { r as BlockTemporalOptions } from "../../block-helpers-
|
|
7
|
+
import { r as BlockTemporalOptions } from "../../block-helpers-Sj-efEhC.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
|
-
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-
|
|
10
|
-
import { N as PlatformRolesOption } from "../../authorization-
|
|
11
|
-
import { c as BlockOf } from "../../define-block-
|
|
12
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
9
|
+
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-VW4knarE.js";
|
|
10
|
+
import { N as PlatformRolesOption } from "../../authorization-CcvJbvr1.js";
|
|
11
|
+
import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
12
|
+
import { n as Controller, t as AuthPort } from "../../controller-D3MPVovD.js";
|
|
13
13
|
declare const INVITATION_ERRORS: {
|
|
14
14
|
readonly INVITATION_FORBIDDEN: "42501";
|
|
15
15
|
readonly INVITATION_ROLE_FORBIDDEN: "42501";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as SqlClient } from "../../executor-DoSNec_H.js";
|
|
2
2
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
3
|
-
import { c as BlockOf } from "../../define-block-
|
|
4
|
-
import { a as OutboxEvent, c as OutboxPurgeOptions, d as RegisterOptions, f as RelayOptions, h as outboxCloudEvent, i as OutboxDeadLetter, l as OutboxRouteOptions, m as createOutbox, n as HistoryFilter, o as OutboxHandler, p as RelayResult, r as Outbox, s as OutboxOptions, t as EmitOptions, u as OutboxRouteResult } from "../../outbox-
|
|
3
|
+
import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
4
|
+
import { a as OutboxEvent, c as OutboxPurgeOptions, d as RegisterOptions, f as RelayOptions, h as outboxCloudEvent, i as OutboxDeadLetter, l as OutboxRouteOptions, m as createOutbox, n as HistoryFilter, o as OutboxHandler, p as RelayResult, r as Outbox, s as OutboxOptions, t as EmitOptions, u as OutboxRouteResult } from "../../outbox-Cpxpzcue.js";
|
|
5
5
|
/**
|
|
6
6
|
* The `outbox` block's manifest (ADR 0029). Set the CloudEvents source with
|
|
7
7
|
* `outboxBlock.with({ source: "https://app.example.com" })`.
|