better-supabase 0.39.0 → 0.41.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-BeLFmp0l.d.ts → app-tables-kHGNXFsd.d.ts} +1 -1
- package/dist/{approvals-CXW3yFWZ.d.ts → approvals-CTVaWq1O.d.ts} +74 -13
- package/dist/{approvals-D8gR1R8R.js → approvals-Qjn42OAZ.js} +35 -17
- package/dist/{assistant-5heV2GeR.d.ts → assistant-B1p5mYaM.d.ts} +2 -2
- package/dist/{authorization-DQZ8Lrp5.d.ts → authorization-CS5Q1V7A.d.ts} +35 -8
- package/dist/{automations-D4QTP8nI.js → automations-CJhRmPmq.js} +3 -1
- package/dist/{bind-DsDKjuQn.d.ts → bind-XrFxNm5r.d.ts} +4 -4
- package/dist/{block-env-mNi2rPSF.d.ts → block-env-CHFHOjvz.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-CINiJW1R.js → block-subjects-Bz95_dqA.js} +17 -6
- package/dist/{block-tables-DYFRvRWW.d.ts → block-tables-EXcmuOJT.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 +4 -2
- 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 +8 -3
- package/dist/blocks/invoices/index.js +22 -12
- 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 +2 -1
- package/dist/blocks/ledger/index.d.ts +4 -3
- package/dist/blocks/ledger/index.js +2 -1
- 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-Ba8xoX4q.js → add-BGErz-yb.js} +10 -10
- package/dist/cli/add-CoP8iie6.js +1 -0
- package/dist/cli/{add-DKlk-VV9.js → add-DU5HAq6w.js} +2 -2
- package/dist/cli/{app-table-files-Dw02ao0W.js → app-table-files-Drzpekpt.js} +2 -2
- package/dist/cli/{app-tables-iSQ0c7G3.js → app-tables-dZpH63--.js} +2 -2
- package/dist/cli/{backfill-sYQgRuGd.js → backfill-B-p-19g6.js} +1 -1
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-YKQzZhPK.js → blocks-Ews-FZZO.js} +1 -1
- package/dist/cli/{blocks-BAj3U18j.js → blocks-iUjNl5yJ.js} +1 -1
- package/dist/cli/{cache-BFSbb4is.js → cache-JT4JhdmX.js} +1 -1
- package/dist/cli/{codemod-vbToOtFK.js → codemod-KIxYiazj.js} +1 -1
- package/dist/cli/{content-mapper-COnyl3V7.js → content-mapper-DkXzxt6f.js} +2 -2
- package/dist/cli/{doctor-BTGesU_-.js → doctor-VWanOD74.js} +17 -17
- package/dist/cli/{gen-h1Ncsh1X.js → gen-_lBdTgaR.js} +11 -11
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +6 -6
- package/dist/cli/{init-DCy-FlB2.js → init-Cm6n4u_3.js} +8 -8
- package/dist/cli/{live-BUOVB-DV.js → live-D4iSuTmS.js} +2 -2
- package/dist/cli/{mcp-CLAjfETj.js → mcp-CHYX7utI.js} +2 -2
- package/dist/cli/{metadata-DqcJb3p5.js → metadata-DLba0VjH.js} +3 -3
- package/dist/cli/{migrate-dI1IaRan.js → migrate-nQhh0nEJ.js} +1 -1
- package/dist/cli/{migration-safety-Cj2AZdIH.js → migration-safety-C2d3BSTf.js} +1 -1
- package/dist/cli/{migrations-CFIlnOmr.js → migrations-BOmMcme9.js} +2 -2
- package/dist/cli/{module-migration-DteyIWzV.js → module-migration-DSDB473C.js} +2 -2
- package/dist/cli/{powersync-DWFvtUuZ.js → powersync-CAHvPkkb.js} +3 -3
- package/dist/cli/powersync-nH-NLDjy.js +1 -0
- package/dist/cli/{print-DUUGo-bA.js → print-CahE8HYK.js} +2 -2
- package/dist/cli/{providers-B4q4yMUv.js → providers-CL5Z5Uj4.js} +1 -1
- package/dist/cli/{prune-workflows-DhJX2wAQ.js → prune-workflows-C9xO0fRU.js} +1 -1
- package/dist/cli/{remove-BsAhvYpx.js → remove-DIy7gthm.js} +5 -5
- package/dist/cli/{render-CvRXYRSy.js → render-CoCZr3Ru.js} +3 -3
- package/dist/cli/{run-BY0fbQxQ.js → run-BBj137Fn.js} +27 -27
- package/dist/cli/{run-DxWZi4IJ.js → run-CVw8hmLk.js} +9 -9
- package/dist/cli/{shared-C_9DBYw-.js → shared-BdKeo7xp.js} +1 -1
- package/dist/cli/{snapshot-BAFwCE0l.js → snapshot-P2ww2xCt.js} +2 -2
- package/dist/cli/{source-CpnSlB6J.js → source-BCs4oBl2.js} +1 -1
- package/dist/cli/{spec-BMBYao_7.js → spec-oPbt9sbZ.js} +1 -1
- package/dist/cli/{spec-SNEhNUFc.js → spec-uCpXPLoF.js} +2 -2
- package/dist/cli/{sql-layout-CKFIMA8Y.js → sql-layout-Bsnge2oW.js} +2 -2
- package/dist/cli/{sync-DMMrYcyr.js → sync-Cv7iBRhe.js} +4 -4
- package/dist/cli/{upgrade-C1sSWUgx.js → upgrade-C6jWNxkc.js} +2 -2
- package/dist/cli/{upgrade-D9tsBxs0.js → upgrade-DV7jTRdh.js} +5 -5
- package/dist/cli/{version-DnpEuhUA.js → version-Hza4Q2PB.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-1-UmQczM.js → config-B7hnJFxh.js} +1 -1
- package/dist/{config-AEB5iNEO.js → config-DwXYtmwt.js} +4 -4
- package/dist/{connectors-DDsdz-cn.d.ts → connectors-OMJkoAP6.d.ts} +2 -2
- package/dist/{context-Cln1eg7-.d.ts → context-tFoygone.d.ts} +2 -2
- package/dist/contract/index.d.ts +4 -4
- package/dist/{controller-BQHh7VG5.d.ts → controller-phhsPHSz.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-aN3jHcYL.d.ts → entitlements-LfW6S2RW.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-0V7t1-pz.d.ts → field-errors-CMWRPBmF.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-CCb0JjiX.d.ts → index-B-HuxATL.d.ts} +8 -8
- package/dist/{index-3JE4ptwV.d.ts → index-B21Pim3I.d.ts} +2 -2
- package/dist/{index-DWCo9ZUL.d.ts → index-BXkPvYzd.d.ts} +1 -1
- package/dist/{index-hmnB81h6.d.ts → index-D-uiT4Qz.d.ts} +3 -3
- package/dist/{index-D1harGe_.d.ts → index-RZqQdq1G.d.ts} +2 -2
- package/dist/{index-DoDmA-sQ.d.ts → index-X5igfnIi.d.ts} +2 -2
- package/dist/{index-C0jB70wR.d.ts → index-fmrLdtVT.d.ts} +1 -1
- package/dist/{instances-Bycf_aus.js → instances-DJOknCJ0.js} +13 -2
- 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-TlhX7IZX.d.ts → operations-Cm4mSrAX.d.ts} +1 -1
- package/dist/{options-BXbixNrP.js → options-C5cLEJEa.js} +2 -1
- package/dist/{options-Bgnm4pTD.js → options-CzxG2Phg.js} +3 -0
- package/dist/otel/index.js +4 -4
- package/dist/{outbox-DikdzUKf.d.ts → outbox-Cpxpzcue.d.ts} +2 -2
- package/dist/{permissions-CwlRRwvr.d.ts → permissions-r0Cxhxos.d.ts} +1 -1
- package/dist/{ports-rJDkwtOQ.d.ts → ports-BJJJmfWK.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-DkeXFh7e.js → preset-U47pzJMK.js} +2 -2
- package/dist/{project-Bcs-4Pfw.js → project-Dng8tO8S.js} +5 -5
- package/dist/{push-token-BLQ09NeA.d.ts → push-token-CA31xmQr.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-D-_Egz0E.js → sql-BudVz33a.js} +1183 -396
- 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-BkW_auBX.d.ts → tenant-C2vnB0wX.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-L_8Qs5qs.d.ts → topic-CKN3kmoi.d.ts} +1 -1
- package/dist/{types-DtiDatvu.d.ts → types-D--4dv5K.d.ts} +3 -3
- package/dist/{types--PUNrvz8.d.ts → types-D8Tltfdq.d.ts} +2 -2
- 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-B9aKuw5v.d.ts → watch-topic-0dXuJMuE.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-CUt0E4v6.d.ts → workflow-sdk-DzKQo265.d.ts} +2 -2
- package/dist/{workflow-sdk-6psRpDIo.js → workflow-sdk-vXuxBSrk.js} +20 -1
- 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 +26 -0
- package/skills/better-supabase/SKILL.md +26 -8
- package/dist/cli/add-BCkaPIvM.js +0 -1
- package/dist/cli/powersync-D-1aQ3C6.js +0 -1
|
@@ -5,10 +5,10 @@ import { r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
|
|
|
5
5
|
import { Ct as Events } from "../../events-DddDlibJ.js";
|
|
6
6
|
import { T as JobEventData, f as ApplicationEventData } from "../../index-DjJUamhw.js";
|
|
7
7
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
8
|
-
import { r as BlockTemporalOptions } from "../../block-helpers-
|
|
8
|
+
import { 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 { Zt as DefaultAutomation, c as BlockOf } 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 { Zt as DefaultAutomation, c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
12
12
|
type JobStatus = "draft" | "open" | "closed";
|
|
13
13
|
type ApplicationState = "active" | "hired" | "rejected" | "withdrawn";
|
|
14
14
|
type Recommendation = "strong_no" | "no" | "yes" | "strong_yes";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
3
3
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
4
|
-
import { r as BlockTemporalOptions } from "../../block-helpers-
|
|
4
|
+
import { r as BlockTemporalOptions } 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-
|
|
6
|
+
import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
|
|
7
|
+
import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
8
8
|
import { d as IdentityRef, f as IdentityTarget, p as PrincipalByIdentity } from "../../authorization-hooks-CR8TVvqo.js";
|
|
9
9
|
interface IdentitiesOptions extends BlockTemporalOptions {
|
|
10
10
|
/**
|
|
@@ -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-CKN3kmoi.js";
|
|
6
|
+
import { n as TopicPort } from "../../watch-topic-0dXuJMuE.js";
|
|
7
|
+
import { l as StoragePort } from "../../ports-BJJJmfWK.js";
|
|
8
|
+
import { n as Controller, t as AuthPort } from "../../controller-phhsPHSz.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-CHFHOjvz.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";
|
|
@@ -120,6 +120,8 @@ interface Invoices<F extends object = Record<never, never>> {
|
|
|
120
120
|
/** Issues a draft: the next number, issue and due dates, frozen lines. */
|
|
121
121
|
issue(invoiceId: string, issuedOn?: Temporal.PlainDate, options?: {
|
|
122
122
|
readonly dueOn?: Temporal.PlainDate;
|
|
123
|
+
/** Who issued it, for the state machine's history. */
|
|
124
|
+
readonly actor?: TransitionActor;
|
|
123
125
|
}): AsyncResult<Invoice<F>>;
|
|
124
126
|
/** Records a payment; a negative amount is a refund. */
|
|
125
127
|
recordPayment(invoiceId: string, payment: {
|
|
@@ -131,6 +133,8 @@ interface Invoices<F extends object = Record<never, never>> {
|
|
|
131
133
|
readonly reference?: string;
|
|
132
134
|
/** A memo kept with the payment. */
|
|
133
135
|
readonly note?: string;
|
|
136
|
+
/** Who recorded it, for the state machine's history. */
|
|
137
|
+
readonly actor?: TransitionActor;
|
|
134
138
|
}): AsyncResult<Invoice<F>>;
|
|
135
139
|
/** A draft credit note for the whole invoice, or for the given lines. */
|
|
136
140
|
credit(invoiceId: string, options?: {
|
|
@@ -152,6 +156,7 @@ interface Invoices<F extends object = Record<never, never>> {
|
|
|
152
156
|
readonly fields?: Readonly<Record<string, unknown>>;
|
|
153
157
|
}): AsyncResult<Invoice<F>>;
|
|
154
158
|
aging(organizationId: string, currency: string, asOf?: Temporal.PlainDate): AsyncResult<InvoiceAging>;
|
|
159
|
+
payments(invoiceId: string): AsyncResult<readonly InvoicePayment[]>;
|
|
155
160
|
/**
|
|
156
161
|
* An invoice from an accepted quote: the full invoice once, minus the
|
|
157
162
|
* deposits already issued, or a deposit invoice for `depositBps` of it.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as isRecord } from "../../guards-CsRa6v57.js";
|
|
2
2
|
import { t as AsyncResult } from "../../result-8xza7w5W.js";
|
|
3
|
-
import { t as invoicesSqlOptions } from "../../options-
|
|
3
|
+
import { t as invoicesSqlOptions } from "../../options-C5cLEJEa.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, a as bigintOf, d as enumOrThrow, j as requiredInstant, m as instantArg, 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";
|
|
@@ -60,6 +60,17 @@ const KNOWN = /* @__PURE__ */ new Set([
|
|
|
60
60
|
"charges",
|
|
61
61
|
"charged_total"
|
|
62
62
|
]);
|
|
63
|
+
function paymentOf(payment, currency) {
|
|
64
|
+
return compact({
|
|
65
|
+
id: textOf(payment["id"]),
|
|
66
|
+
amount: moneyOf(payment["amount"], currency, "invoice payment amount"),
|
|
67
|
+
paidAt: requiredInstant(payment["paidAt"], "paidAt"),
|
|
68
|
+
method: optionalText(payment["method"]),
|
|
69
|
+
reference: optionalText(payment["reference"]),
|
|
70
|
+
note: optionalText(payment["note"]),
|
|
71
|
+
recordedBy: optionalText(payment["recordedBy"])
|
|
72
|
+
});
|
|
73
|
+
}
|
|
63
74
|
function invoiceOf(value) {
|
|
64
75
|
const row = recordOf(value, "invoice");
|
|
65
76
|
const currency = textOf(row["currency"]);
|
|
@@ -98,15 +109,7 @@ function invoiceOf(value) {
|
|
|
98
109
|
depositBps: typeof row["deposit_bps"] === "number" ? row["deposit_bps"] : void 0,
|
|
99
110
|
pricesIncludeTax: row["prices_include_tax"] === true,
|
|
100
111
|
lines: recordsOf(row["lines"], "invoice lines").map((line) => lineOf(line, currency)),
|
|
101
|
-
payments: recordsOf(row["payments"], "invoice payments").map((payment) =>
|
|
102
|
-
id: textOf(payment["id"]),
|
|
103
|
-
amount: moneyOf(payment["amount"], currency, "invoice payment amount"),
|
|
104
|
-
paidAt: requiredInstant(payment["paidAt"], "paidAt"),
|
|
105
|
-
method: optionalText(payment["method"]),
|
|
106
|
-
reference: optionalText(payment["reference"]),
|
|
107
|
-
note: optionalText(payment["note"]),
|
|
108
|
-
recordedBy: optionalText(payment["recordedBy"])
|
|
109
|
-
})),
|
|
112
|
+
payments: recordsOf(row["payments"], "invoice payments").map((payment) => paymentOf(payment, currency)),
|
|
110
113
|
totals: totalsOf(row, false),
|
|
111
114
|
fields: Object.fromEntries(Object.entries(row).filter(([key]) => !KNOWN.has(key))),
|
|
112
115
|
createdAt: requiredInstant(row["created_at"], "createdAt")
|
|
@@ -163,7 +166,8 @@ function createInvoices(options) {
|
|
|
163
166
|
issue: (invoiceId, issuedOn, issueOptions = {}) => invoice("issue_invoice", {
|
|
164
167
|
invoice: invoiceId,
|
|
165
168
|
issued_on: issuedOn === void 0 ? null : issuedOn.toString(),
|
|
166
|
-
...issueOptions.dueOn === void 0 ? {} : { due_on: issueOptions.dueOn.toString() }
|
|
169
|
+
...issueOptions.dueOn === void 0 ? {} : { due_on: issueOptions.dueOn.toString() },
|
|
170
|
+
...issueOptions.actor === void 0 ? {} : { actor: issueOptions.actor }
|
|
167
171
|
}),
|
|
168
172
|
recordPayment: (invoiceId, payment) => invoice("record_invoice_payment", {
|
|
169
173
|
invoice: invoiceId,
|
|
@@ -172,7 +176,8 @@ function createInvoices(options) {
|
|
|
172
176
|
paid_at: instantArg(payment.paidAt) ?? null,
|
|
173
177
|
method: payment.method ?? null,
|
|
174
178
|
reference: payment.reference ?? null,
|
|
175
|
-
note: payment.note ?? null
|
|
179
|
+
note: payment.note ?? null,
|
|
180
|
+
...payment.actor === void 0 ? {} : { actor: payment.actor }
|
|
176
181
|
}),
|
|
177
182
|
credit: (invoiceId, credit = {}) => {
|
|
178
183
|
const invalid = amountsError(void 0, (credit.lines ?? []).map((line) => line.unitAmount));
|
|
@@ -221,6 +226,11 @@ function createInvoices(options) {
|
|
|
221
226
|
overdueCount: Number(row["overdueCount"] ?? 0)
|
|
222
227
|
};
|
|
223
228
|
}) : AsyncResult.err(unknownCurrency(currency)),
|
|
229
|
+
payments: (invoiceId) => call("list_invoice_payments", { invoice: invoiceId }, (value) => {
|
|
230
|
+
const row = recordOf(value, "list_invoice_payments");
|
|
231
|
+
const currency = textOf(row["currency"]);
|
|
232
|
+
return recordsOf(row["payments"], "invoice payments").map((payment) => paymentOf(payment, currency));
|
|
233
|
+
}),
|
|
224
234
|
fromQuote: (quoteId, fromQuote = {}) => invoice("invoice_from_quote", {
|
|
225
235
|
quote: quoteId,
|
|
226
236
|
deposit_bps: fromQuote.depositBps ?? null
|
|
@@ -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
|
|
@@ -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;
|
|
@@ -128,6 +128,7 @@ interface LedgerAccountEntry extends LedgerEntry {
|
|
|
128
128
|
readonly reverses?: string;
|
|
129
129
|
readonly metadata: Readonly<Record<string, unknown>>;
|
|
130
130
|
readonly effectiveAt: Temporal.Instant;
|
|
131
|
+
readonly actorId?: string;
|
|
131
132
|
readonly createdAt: Temporal.Instant;
|
|
132
133
|
}
|
|
133
134
|
type LedgerHoldStatus = "active" | "captured" | "released" | "expired";
|
|
@@ -86,7 +86,8 @@ function accountEntryOf(value, fn) {
|
|
|
86
86
|
...optional("referenceType", optionalText(row["referenceType"])),
|
|
87
87
|
...optional("referenceId", optionalText(row["referenceId"])),
|
|
88
88
|
...optional("memo", optionalText(row["memo"])),
|
|
89
|
-
...optional("reverses", optionalText(row["reverses"]))
|
|
89
|
+
...optional("reverses", optionalText(row["reverses"])),
|
|
90
|
+
...optional("actorId", optionalText(row["actorId"]))
|
|
90
91
|
};
|
|
91
92
|
}
|
|
92
93
|
function holdOf(value, fn) {
|
|
@@ -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-CS5Q1V7A.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-CKN3kmoi.js";
|
|
13
|
+
import { n as TopicPort } from "../../watch-topic-0dXuJMuE.js";
|
|
14
|
+
import { n as Controller, t as AuthPort } from "../../controller-phhsPHSz.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-phhsPHSz.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-CKN3kmoi.js";
|
|
14
|
+
import { n as TopicPort } from "../../watch-topic-0dXuJMuE.js";
|
|
15
|
+
import { n as Controller, t as AuthPort } from "../../controller-phhsPHSz.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-phhsPHSz.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-CS5Q1V7A.js";
|
|
11
|
+
import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
12
|
+
import { n as Controller, t as AuthPort } from "../../controller-phhsPHSz.js";
|
|
13
13
|
declare const INVITATION_ERRORS: {
|
|
14
14
|
readonly INVITATION_FORBIDDEN: "42501";
|
|
15
15
|
readonly INVITATION_ROLE_FORBIDDEN: "42501";
|