better-supabase 0.40.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-jaQmdgAM.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-Ul_ApMYW.d.ts → authorization-CS5Q1V7A.d.ts} +33 -7
- package/dist/{automations-D4QTP8nI.js → automations-CJhRmPmq.js} +3 -1
- package/dist/{bind-B2GlypM6.d.ts → bind-XrFxNm5r.d.ts} +4 -4
- package/dist/{block-env-Bcr-jEA1.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-BumEsEYb.js → block-subjects-Bz95_dqA.js} +1 -1
- package/dist/{block-tables-nkIjJ1ly.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 +7 -3
- package/dist/blocks/invoices/index.js +4 -2
- 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 +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-BVs8Ym-K.js → add-BGErz-yb.js} +10 -10
- package/dist/cli/add-CoP8iie6.js +1 -0
- package/dist/cli/{add-DP1ct-7e.js → add-DU5HAq6w.js} +2 -2
- package/dist/cli/{app-table-files-gjMyFqH4.js → app-table-files-Drzpekpt.js} +2 -2
- package/dist/cli/{app-tables-B26PHK75.js → app-tables-dZpH63--.js} +2 -2
- package/dist/cli/{backfill-CP_LpTK2.js → backfill-B-p-19g6.js} +1 -1
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-CpBLp57s.js → blocks-Ews-FZZO.js} +1 -1
- package/dist/cli/{blocks-Ewp49Kbm.js → blocks-iUjNl5yJ.js} +1 -1
- package/dist/cli/{cache-BxxtUXVN.js → cache-JT4JhdmX.js} +1 -1
- package/dist/cli/{codemod-CGCxMEyD.js → codemod-KIxYiazj.js} +1 -1
- package/dist/cli/{content-mapper-DngBJv4r.js → content-mapper-DkXzxt6f.js} +2 -2
- package/dist/cli/{doctor-3dcMraMn.js → doctor-VWanOD74.js} +15 -15
- package/dist/cli/{gen-DrXxFwUU.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-bVKQ4Onb.js → init-Cm6n4u_3.js} +8 -8
- package/dist/cli/{live-CHTbAqdS.js → live-D4iSuTmS.js} +2 -2
- package/dist/cli/{mcp-BbmhntrR.js → mcp-CHYX7utI.js} +2 -2
- package/dist/cli/{metadata-BS56R_eb.js → metadata-DLba0VjH.js} +3 -3
- package/dist/cli/{migrate-DV6a9-jI.js → migrate-nQhh0nEJ.js} +1 -1
- package/dist/cli/{migration-safety-Ce9IQwmJ.js → migration-safety-C2d3BSTf.js} +1 -1
- package/dist/cli/{migrations-CCCnMhmM.js → migrations-BOmMcme9.js} +2 -2
- package/dist/cli/{module-migration-C0cAzpNa.js → module-migration-DSDB473C.js} +2 -2
- package/dist/cli/{powersync-OIIpG-y_.js → powersync-CAHvPkkb.js} +3 -3
- package/dist/cli/powersync-nH-NLDjy.js +1 -0
- package/dist/cli/{print-BGF3d6O2.js → print-CahE8HYK.js} +2 -2
- package/dist/cli/{providers-fEzlYSLs.js → providers-CL5Z5Uj4.js} +1 -1
- package/dist/cli/{prune-workflows-Bx7J5T3a.js → prune-workflows-C9xO0fRU.js} +1 -1
- package/dist/cli/{remove-Ds4N6WvD.js → remove-DIy7gthm.js} +5 -5
- package/dist/cli/{render-BeZToAp-.js → render-CoCZr3Ru.js} +3 -3
- package/dist/cli/{run-iUmtksq5.js → run-BBj137Fn.js} +27 -27
- package/dist/cli/{run-DR0sTyNQ.js → run-CVw8hmLk.js} +9 -9
- package/dist/cli/{shared-BCWYvKeR.js → shared-BdKeo7xp.js} +1 -1
- package/dist/cli/{snapshot-CfgRxTQq.js → snapshot-P2ww2xCt.js} +2 -2
- package/dist/cli/{source-Ct3ZCy6p.js → source-BCs4oBl2.js} +1 -1
- package/dist/cli/{spec-1eEq2P4T.js → spec-oPbt9sbZ.js} +1 -1
- package/dist/cli/{spec-9vb-or-k.js → spec-uCpXPLoF.js} +2 -2
- package/dist/cli/{sql-layout-cYsnyjRf.js → sql-layout-Bsnge2oW.js} +2 -2
- package/dist/cli/{sync-XpcpINnx.js → sync-Cv7iBRhe.js} +4 -4
- package/dist/cli/{upgrade-A18FY5Iy.js → upgrade-C6jWNxkc.js} +2 -2
- package/dist/cli/{upgrade-DXhyb2jV.js → upgrade-DV7jTRdh.js} +5 -5
- package/dist/cli/{version-PcwPOm4G.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-BRGMUEE2.js → config-B7hnJFxh.js} +1 -1
- package/dist/{config-qqAfS_1_.js → config-DwXYtmwt.js} +3 -3
- package/dist/{connectors-DDsdz-cn.d.ts → connectors-OMJkoAP6.d.ts} +2 -2
- package/dist/{context-dHluCmud.d.ts → context-tFoygone.d.ts} +2 -2
- package/dist/contract/index.d.ts +4 -4
- package/dist/{controller-BQXgMwWN.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-Jh_w-PgX.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-DIDkgzFA.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-BKz-E3Mv.d.ts → index-B-HuxATL.d.ts} +8 -8
- package/dist/{index-xmb6YGTg.d.ts → index-B21Pim3I.d.ts} +2 -2
- package/dist/{index-DhcLJAtX.d.ts → index-BXkPvYzd.d.ts} +1 -1
- package/dist/{index-IrJQqPeQ.d.ts → index-D-uiT4Qz.d.ts} +3 -3
- package/dist/{index-g_eFnFqo.d.ts → index-RZqQdq1G.d.ts} +2 -2
- package/dist/{index-y70eTezB.d.ts → index-X5igfnIi.d.ts} +2 -2
- package/dist/{index-CpZ4WDDJ.d.ts → index-fmrLdtVT.d.ts} +1 -1
- package/dist/{instances-DqEZrffE.js → instances-DJOknCJ0.js} +8 -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-Cm4mSrAX.d.ts} +1 -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-COamTJYz.d.ts → permissions-r0Cxhxos.d.ts} +1 -1
- package/dist/{ports-1M1E_r2n.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-Byz43PrL.js → preset-U47pzJMK.js} +2 -2
- package/dist/{project-Y2wW_nr_.js → project-Dng8tO8S.js} +5 -5
- package/dist/{push-token-DKImhAca.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-B1FA8jTx.js → sql-BudVz33a.js} +1113 -375
- 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-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-CekU96q7.d.ts → topic-CKN3kmoi.d.ts} +1 -1
- package/dist/{types-DtiDatvu.d.ts → types-D--4dv5K.d.ts} +3 -3
- package/dist/{types-B42S7qfO.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-DBw411Mq.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 +22 -0
- package/dist/cli/add-DrwQvDYD.js +0 -1
- package/dist/cli/powersync-Cxd3a_v_.js +0 -1
|
@@ -3,13 +3,13 @@ import { T as ErrorMapper, b as DbError, f as Result, t as AsyncResult } from ".
|
|
|
3
3
|
import { t as StandardSchemaV1$1 } from "../../standard-DRX6Ch1j.js";
|
|
4
4
|
import { n as ExtraFields, r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
|
|
5
5
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
6
|
-
import { n as BlockOptions, r as BlockTemporalOptions } from "../../block-helpers-
|
|
6
|
+
import { n as BlockOptions, r as BlockTemporalOptions } from "../../block-helpers-Sj-efEhC.js";
|
|
7
7
|
import { n as SqlClient } from "../../executor-DoSNec_H.js";
|
|
8
8
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
9
|
-
import { n as BlockHooks } from "../../block-hooks-
|
|
10
|
-
import { A as ScheduleInfo, B as QueueStats, C as QueueSchemas, D as ScheduleDefinition, E as RunSchedulesOptions, F as QueueMessageBody, H as pgmqPublicBackend, I as QueueMessageRow, L as QueueProvider, M as WorkOptions, N as DeadJobRow, O as ScheduleDefinitions, P as DueSchedule, R as QueuePurgeArgs, S as QueueOptions, T as RunJobOptions, U as sqlQueueProvider, V as TransportQueueProviderOptions, W as transportQueueProvider, _ as JobHandler, a as DrainResult, b as PurgeJobsOptions, c as EnqueueOnceOptions, d as EnsureSchedulesOptions, f as EnsureSchedulesResult, g as JobDelivery, h as JobContext, i as DrainOptions, j as ScheduleOptions, k as ScheduleFilter, l as EnqueueOnceResult, m as Job, n as DeadJob, o as DrainRouteOptions, p as FailOptions, r as DrainMonitor, s as DrainRouteResult, t as ClaimOptions, u as EnqueueOptions, v as ListDeadOptions, w as RetryDeadOptions, x as Queue, y as PayloadOut, z as QueueRpcClient } from "../../types-
|
|
9
|
+
import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
|
|
10
|
+
import { A as ScheduleInfo, B as QueueStats, C as QueueSchemas, D as ScheduleDefinition, E as RunSchedulesOptions, F as QueueMessageBody, H as pgmqPublicBackend, I as QueueMessageRow, L as QueueProvider, M as WorkOptions, N as DeadJobRow, O as ScheduleDefinitions, P as DueSchedule, R as QueuePurgeArgs, S as QueueOptions, T as RunJobOptions, U as sqlQueueProvider, V as TransportQueueProviderOptions, W as transportQueueProvider, _ as JobHandler, a as DrainResult, b as PurgeJobsOptions, c as EnqueueOnceOptions, d as EnsureSchedulesOptions, f as EnsureSchedulesResult, g as JobDelivery, h as JobContext, i as DrainOptions, j as ScheduleOptions, k as ScheduleFilter, l as EnqueueOnceResult, m as Job, n as DeadJob, o as DrainRouteOptions, p as FailOptions, r as DrainMonitor, s as DrainRouteResult, t as ClaimOptions, u as EnqueueOptions, v as ListDeadOptions, w as RetryDeadOptions, x as Queue, y as PayloadOut, z as QueueRpcClient } from "../../types-LLCyr-xs.js";
|
|
11
11
|
import { a as ProblemFormat, t as BlockProblemOptions } from "../../problem-NGBjN-TO.js";
|
|
12
|
-
import { Xt as BlockSchedule, c as BlockOf } from "../../define-block-
|
|
12
|
+
import { Xt as BlockSchedule, c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
13
13
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
14
14
|
/**
|
|
15
15
|
* Throws a `TypeError` unless `expression` is a schedule `nextCronRun`
|
|
@@ -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 { N as QuoteEventData } 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 { Zt as DefaultAutomation, 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 { Zt as DefaultAutomation, 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, t as CatalogLineInput } from "../../sales-lines-wQHuL-pa.js";
|
|
15
15
|
type QuoteStatus = "draft" | "sent" | "viewed" | "accepted" | "rejected" | "changes_requested" | "expired" | "withdrawn";
|
|
@@ -23,6 +23,13 @@ interface QuoteLine extends Line {
|
|
|
23
23
|
/** An optional line counts only while `selected`. */
|
|
24
24
|
readonly optional: boolean;
|
|
25
25
|
readonly selected: boolean;
|
|
26
|
+
/** The periods a subscription line runs; its amount counts each. */
|
|
27
|
+
readonly periods?: number;
|
|
28
|
+
/**
|
|
29
|
+
* The line's id in the latest published version (`options.versionLines`); a
|
|
30
|
+
* decision's `selected` may name it.
|
|
31
|
+
*/
|
|
32
|
+
readonly versionLineId?: string;
|
|
26
33
|
}
|
|
27
34
|
/** The totals of one tax rate (and tax code), after the document discount. */
|
|
28
35
|
interface QuoteTaxLine {
|
|
@@ -44,7 +51,15 @@ interface QuotePricing {
|
|
|
44
51
|
readonly discountAmount: Money;
|
|
45
52
|
/** The deposit asked on acceptance, in basis points of the total. */
|
|
46
53
|
readonly depositBps?: number;
|
|
47
|
-
/**
|
|
54
|
+
/** A fixed deposit instead of `depositBps`, at most the total. */
|
|
55
|
+
readonly depositAmount?: Money;
|
|
56
|
+
/**
|
|
57
|
+
* The customer pays the deposit before accepting: their own answer is refused
|
|
58
|
+
* with `QUOTE_DEPOSIT_REQUIRED`, and the app records the acceptance with
|
|
59
|
+
* `decide` once it is paid.
|
|
60
|
+
*/
|
|
61
|
+
readonly depositRequired: boolean;
|
|
62
|
+
/** The deposit, in minor units of the quote's currency. */
|
|
48
63
|
readonly depositDue: Money;
|
|
49
64
|
}
|
|
50
65
|
/** A quote. `F` types the extra columns the `fields` schema describes. */
|
|
@@ -78,6 +93,11 @@ interface Quote<F extends object = Record<never, never>> {
|
|
|
78
93
|
/** The customer's IP address and user agent, when they answered. */
|
|
79
94
|
readonly decidedIp?: string;
|
|
80
95
|
readonly decidedUserAgent?: string;
|
|
96
|
+
/**
|
|
97
|
+
* With `options.workingCopy`, whether staff changed the quote since it was
|
|
98
|
+
* last published.
|
|
99
|
+
*/
|
|
100
|
+
readonly unpublishedChanges?: boolean;
|
|
81
101
|
readonly pricing: QuotePricing;
|
|
82
102
|
readonly lines: readonly QuoteLine[];
|
|
83
103
|
readonly taxLines: readonly QuoteTaxLine[];
|
|
@@ -102,6 +122,10 @@ interface QuoteInput<F extends object = Record<never, never>> {
|
|
|
102
122
|
/** In the quote's currency. */
|
|
103
123
|
readonly discountAmount?: Money;
|
|
104
124
|
readonly depositBps?: number | null;
|
|
125
|
+
/** A fixed deposit in the quote's currency, instead of `depositBps`. */
|
|
126
|
+
readonly depositAmount?: Money | null;
|
|
127
|
+
/** The customer pays the deposit before accepting. */
|
|
128
|
+
readonly depositRequired?: boolean;
|
|
105
129
|
/**
|
|
106
130
|
* Values for the app's extra columns (`options.extraColumns`); left out keeps
|
|
107
131
|
* the stored ones.
|
|
@@ -126,10 +150,11 @@ interface QuoteAnswer {
|
|
|
126
150
|
readonly name: string;
|
|
127
151
|
readonly note?: string;
|
|
128
152
|
/**
|
|
129
|
-
* On acceptance, the positions of the optional lines the customer takes
|
|
130
|
-
* others drop out of the totals. Left out keeps
|
|
153
|
+
* On acceptance, the positions of the optional lines the customer takes, or
|
|
154
|
+
* their `versionLineId`s; the others drop out of the totals. Left out keeps
|
|
155
|
+
* the current choice.
|
|
131
156
|
*/
|
|
132
|
-
readonly selected?: readonly number[];
|
|
157
|
+
readonly selected?: readonly (number | string)[];
|
|
133
158
|
}
|
|
134
159
|
/** What a customer's answer did. */
|
|
135
160
|
interface QuoteResponse {
|
|
@@ -161,7 +186,13 @@ type QuoteLineInput = (LineInput | CatalogLineInput) & {
|
|
|
161
186
|
readonly optional?: boolean;
|
|
162
187
|
/** Defaults to `true` for a required line and `false` for an optional one. */
|
|
163
188
|
readonly selected?: boolean;
|
|
189
|
+
/** The periods a subscription line runs; default 1. */
|
|
190
|
+
readonly periods?: number;
|
|
164
191
|
};
|
|
192
|
+
/** Who acted, for the state machine's history. */
|
|
193
|
+
interface QuoteActorOptions {
|
|
194
|
+
readonly actor?: TransitionActor;
|
|
195
|
+
}
|
|
165
196
|
interface Quotes<F extends object = Record<never, never>> {
|
|
166
197
|
create(organizationId: string, input: QuoteInput<F> & {
|
|
167
198
|
readonly title: string;
|
|
@@ -170,21 +201,34 @@ interface Quotes<F extends object = Record<never, never>> {
|
|
|
170
201
|
update(quoteId: string, input: QuoteInput<F>): AsyncResult<Quote<F>>;
|
|
171
202
|
setLines(quoteId: string, lines: readonly QuoteLineInput[]): AsyncResult<Totals>;
|
|
172
203
|
/** Sends it: resolves to the quote and the link token, returned only now. */
|
|
173
|
-
send(quoteId: string): AsyncResult<{
|
|
204
|
+
send(quoteId: string, options?: QuoteActorOptions): AsyncResult<{
|
|
174
205
|
readonly quote: Quote<F>;
|
|
175
206
|
readonly token: string;
|
|
176
207
|
}>;
|
|
177
|
-
/**
|
|
208
|
+
/**
|
|
209
|
+
* With `options.workingCopy`, publishes the working copy of a quote that
|
|
210
|
+
* already has a link as its next revision, on the same link.
|
|
211
|
+
*/
|
|
212
|
+
publish(quoteId: string, options?: QuoteActorOptions): AsyncResult<Quote<F>>;
|
|
213
|
+
/**
|
|
214
|
+
* Records the customer's answer taken another way, with their name. With
|
|
215
|
+
* `actor`, the app's own portal took it: the customer's details are kept with
|
|
216
|
+
* the answer, and a quote past its date expires instead.
|
|
217
|
+
*/
|
|
178
218
|
decide(quoteId: string, decision: QuoteDecision, options?: {
|
|
179
219
|
readonly note?: string;
|
|
180
220
|
readonly by?: string;
|
|
181
|
-
readonly selected?: readonly number[];
|
|
221
|
+
readonly selected?: readonly (number | string)[];
|
|
222
|
+
readonly actor?: TransitionActor;
|
|
182
223
|
}): AsyncResult<Quote<F>>;
|
|
183
224
|
/**
|
|
184
225
|
* Back to draft for changes, as the next revision. The sent revision stays
|
|
185
|
-
* published in `versions`; an accepted quote can't be revised.
|
|
226
|
+
* published in `versions`; an accepted quote can't be revised. With
|
|
227
|
+
* `options.workingCopy` the link stays.
|
|
186
228
|
*/
|
|
187
|
-
revise(quoteId: string): AsyncResult<Quote<F>>;
|
|
229
|
+
revise(quoteId: string, options?: QuoteActorOptions): AsyncResult<Quote<F>>;
|
|
230
|
+
/** Takes back a sent quote the customer hasn't accepted. */
|
|
231
|
+
withdraw(quoteId: string, options?: QuoteActorOptions): AsyncResult<Quote<F>>;
|
|
188
232
|
/** The revisions sent so far, oldest first. */
|
|
189
233
|
versions(quoteId: string): AsyncResult<readonly QuoteVersionSummary[]>;
|
|
190
234
|
/** The quote as it was sent at `revision`. */
|
|
@@ -238,6 +282,7 @@ type QuotesEvents = {
|
|
|
238
282
|
readonly "quote.changes_requested": QuoteEventData;
|
|
239
283
|
readonly "quote.expired": QuoteEventData;
|
|
240
284
|
readonly "quote.revised": QuoteEventData;
|
|
285
|
+
readonly "quote.withdrawn": QuoteEventData;
|
|
241
286
|
};
|
|
242
287
|
/** The `quotes` block's event types, for its manifest and `onBlockEvent`. */
|
|
243
288
|
export declare const quotesEvents: Events<QuotesEvents>;
|
|
@@ -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 { n as QUOTE_TO_ORDER, r as quotesSqlOptions, t as QUOTES_AUTOMATIONS } from "../../automations-
|
|
3
|
+
import { n as QUOTE_TO_ORDER, r as quotesSqlOptions, t as QUOTES_AUTOMATIONS } from "../../automations-CJhRmPmq.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, 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";
|
|
@@ -51,7 +51,10 @@ const KNOWN = /* @__PURE__ */ new Set([
|
|
|
51
51
|
"discount_bps",
|
|
52
52
|
"discount_amount",
|
|
53
53
|
"deposit_bps",
|
|
54
|
+
"deposit_amount",
|
|
55
|
+
"deposit_required",
|
|
54
56
|
"deposit_due",
|
|
57
|
+
"unpublished_changes",
|
|
55
58
|
"created_by",
|
|
56
59
|
"created_at",
|
|
57
60
|
"updated_at",
|
|
@@ -75,7 +78,9 @@ function quoteLineOf(value, currency) {
|
|
|
75
78
|
position: Number(row["position"] ?? 0),
|
|
76
79
|
section: optionalText(row["section"]),
|
|
77
80
|
optional,
|
|
78
|
-
selected: typeof row["selected"] === "boolean" ? row["selected"] : !optional
|
|
81
|
+
selected: typeof row["selected"] === "boolean" ? row["selected"] : !optional,
|
|
82
|
+
periods: typeof row["periods"] === "number" && row["periods"] !== 1 ? row["periods"] : void 0,
|
|
83
|
+
versionLineId: optionalText(row["versionLineId"])
|
|
79
84
|
});
|
|
80
85
|
}
|
|
81
86
|
function taxLineOf(value, currency) {
|
|
@@ -94,11 +99,14 @@ function taxLineOf(value, currency) {
|
|
|
94
99
|
function pricingOf(row, currency, camel) {
|
|
95
100
|
const key = (snake, camelKey) => camel ? row[camelKey] : row[snake];
|
|
96
101
|
const depositBps = key("deposit_bps", "depositBps");
|
|
102
|
+
const depositAmount = key("deposit_amount", "depositAmount");
|
|
97
103
|
return compact({
|
|
98
104
|
pricesIncludeTax: key("prices_include_tax", "pricesIncludeTax") === true,
|
|
99
105
|
discountBps: Number(key("discount_bps", "discountBps") ?? 0),
|
|
100
106
|
discountAmount: moneyOf(key("discount_amount", "discountAmount") ?? "0", currency, "quote discountAmount"),
|
|
101
107
|
depositBps: depositBps === null || depositBps === void 0 ? void 0 : Number(depositBps),
|
|
108
|
+
depositAmount: depositAmount === null || depositAmount === void 0 ? void 0 : moneyOf(depositAmount, currency, "quote depositAmount"),
|
|
109
|
+
depositRequired: key("deposit_required", "depositRequired") === true,
|
|
102
110
|
depositDue: moneyOf(key("deposit_due", "depositDue") ?? "0", currency, "quote depositDue")
|
|
103
111
|
});
|
|
104
112
|
}
|
|
@@ -146,6 +154,7 @@ function quoteOf(value) {
|
|
|
146
154
|
decidedUserId: optionalText(row["decided_user_id"]),
|
|
147
155
|
decidedIp: optionalText(row["decided_ip"]),
|
|
148
156
|
decidedUserAgent: optionalText(row["decided_user_agent"]),
|
|
157
|
+
unpublishedChanges: typeof row["unpublished_changes"] === "boolean" ? row["unpublished_changes"] : void 0,
|
|
149
158
|
pricing: pricingOf(row, currency, false),
|
|
150
159
|
lines: recordsOf(row["lines"], "quote lines").map((line) => quoteLineOf(line, currency)),
|
|
151
160
|
taxLines: recordsOf(row["taxLines"] ?? [], "quote tax lines").map((line) => taxLineOf(line, currency)),
|
|
@@ -174,6 +183,8 @@ function publicOf(value) {
|
|
|
174
183
|
taxLines: recordsOf(row["taxLines"] ?? [], "quote tax lines").map((line) => taxLineOf(line, currency))
|
|
175
184
|
});
|
|
176
185
|
}
|
|
186
|
+
/** The `actor` argument of a call, when one is given. */
|
|
187
|
+
const actorArg = (options) => options.actor === void 0 ? {} : { actor: options.actor };
|
|
177
188
|
/**
|
|
178
189
|
* The quotes block: quotes with lines, sections and optional lines, document
|
|
179
190
|
* discounts and tax-inclusive prices, published versions, a public link and a
|
|
@@ -185,10 +196,11 @@ function createQuotes(options) {
|
|
|
185
196
|
const fields = blockFields(options.fields, "quote fields");
|
|
186
197
|
const quote = (fn, args, then) => call(fn, args, then).andThen((row) => readFields(fields, row));
|
|
187
198
|
const attrsOf = (input, checked) => {
|
|
188
|
-
const { fields: _fields, discountAmount, ...rest } = input;
|
|
199
|
+
const { fields: _fields, discountAmount, depositAmount, ...rest } = input;
|
|
189
200
|
return {
|
|
190
201
|
...attrsArg(rest),
|
|
191
202
|
...discountAmount === void 0 ? {} : { discountAmount: amountText(discountAmount) },
|
|
203
|
+
...depositAmount === void 0 ? {} : { depositAmount: depositAmount === null ? null : amountText(depositAmount) },
|
|
192
204
|
...checked === void 0 ? {} : { fields: checked }
|
|
193
205
|
};
|
|
194
206
|
};
|
|
@@ -219,21 +231,36 @@ function createQuotes(options) {
|
|
|
219
231
|
lines: lines.map(lineArg)
|
|
220
232
|
}, (value) => totalsOf(recordOf(value, "set_quote_lines"), true)) : AsyncResult.err(invalid);
|
|
221
233
|
},
|
|
222
|
-
send: (quoteId) => call("send_quote", {
|
|
234
|
+
send: (quoteId, sendOptions = {}) => call("send_quote", {
|
|
235
|
+
quote: quoteId,
|
|
236
|
+
...actorArg(sendOptions)
|
|
237
|
+
}, (value) => ({
|
|
223
238
|
quote: quoteOf(value),
|
|
224
239
|
token: textOf(recordOf(value, "send_quote")["token"])
|
|
225
240
|
})).andThen((sent) => readFields(fields, sent.quote).map((parsed) => ({
|
|
226
241
|
quote: parsed,
|
|
227
242
|
token: sent.token
|
|
228
243
|
}))),
|
|
244
|
+
publish: (quoteId, publishOptions = {}) => quote("send_quote", {
|
|
245
|
+
quote: quoteId,
|
|
246
|
+
...actorArg(publishOptions)
|
|
247
|
+
}, quoteOf),
|
|
229
248
|
decide: (quoteId, decision, decide = {}) => quote("decide_quote", {
|
|
230
249
|
quote: quoteId,
|
|
231
250
|
decision,
|
|
232
251
|
note: decide.note ?? null,
|
|
233
252
|
by: decide.by ?? null,
|
|
234
|
-
selected: decide.selected ?? null
|
|
253
|
+
selected: decide.selected ?? null,
|
|
254
|
+
...actorArg(decide)
|
|
255
|
+
}, quoteOf),
|
|
256
|
+
revise: (quoteId, reviseOptions = {}) => quote("revise_quote", {
|
|
257
|
+
quote: quoteId,
|
|
258
|
+
...actorArg(reviseOptions)
|
|
259
|
+
}, quoteOf),
|
|
260
|
+
withdraw: (quoteId, withdrawOptions = {}) => quote("withdraw_quote", {
|
|
261
|
+
quote: quoteId,
|
|
262
|
+
...actorArg(withdrawOptions)
|
|
235
263
|
}, quoteOf),
|
|
236
|
-
revise: (quoteId) => quote("revise_quote", { quote: quoteId }, quoteOf),
|
|
237
264
|
versions: (quoteId) => call("quote_versions", { quote: quoteId }, (value) => recordsOf(value, "quote versions").map(versionSummaryOf)),
|
|
238
265
|
version: (quoteId, revision) => call("quote_version", {
|
|
239
266
|
quote: quoteId,
|
|
@@ -283,7 +310,8 @@ const quotesEvents = defineEvents({
|
|
|
283
310
|
"quote.rejected": event(),
|
|
284
311
|
"quote.changes_requested": event(),
|
|
285
312
|
"quote.expired": event(),
|
|
286
|
-
"quote.revised": event()
|
|
313
|
+
"quote.revised": event(),
|
|
314
|
+
"quote.withdrawn": event()
|
|
287
315
|
});
|
|
288
316
|
// src/blocks/quotes/manifest.ts
|
|
289
317
|
/** The `quotes` block's manifest (ADR 0029). */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
2
2
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
3
|
-
import { n as BlockOptions } from "../../block-helpers-
|
|
4
|
-
import { n as BlockHooks } from "../../block-hooks-
|
|
5
|
-
import { _ as JobHandler } from "../../types-
|
|
6
|
-
import { c as BlockOf } from "../../define-block-
|
|
3
|
+
import { n as BlockOptions } from "../../block-helpers-Sj-efEhC.js";
|
|
4
|
+
import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
|
|
5
|
+
import { _ as JobHandler } from "../../types-LLCyr-xs.js";
|
|
6
|
+
import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
7
7
|
import { n as rankBetweenResult, t as RankNeighbors } from "../../rank-result-B_xLQCBV.js";
|
|
8
8
|
/** The queue `move()` enqueues on when a key grows past 24 digits. */
|
|
9
9
|
export declare const RANK_REBALANCE_QUEUE = "rank.rebalance";
|
|
@@ -3,13 +3,13 @@ import { T as ErrorMapper, b as DbError, t as AsyncResult } from "../../result-D
|
|
|
3
3
|
import { et as RecordRef } from "../../types-BzIYSSWK.js";
|
|
4
4
|
import { A as CollaborationEventData, 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, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
8
|
-
import { n as BlockHooks } from "../../block-hooks-
|
|
9
|
-
import { c as BlockOf } from "../../define-block-
|
|
10
|
-
import { p as SubscriptionStatus } from "../../topic-
|
|
11
|
-
import { n as TopicPort } from "../../watch-topic-
|
|
12
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
8
|
+
import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
|
|
9
|
+
import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
10
|
+
import { p as SubscriptionStatus } from "../../topic-CKN3kmoi.js";
|
|
11
|
+
import { n as TopicPort } from "../../watch-topic-0dXuJMuE.js";
|
|
12
|
+
import { n as Controller, t as AuthPort } from "../../controller-phhsPHSz.js";
|
|
13
13
|
interface ReactionsOptions extends BlockTemporalOptions, BlockTenantOptions {
|
|
14
14
|
readonly transport: BlockTransport;
|
|
15
15
|
/**
|
|
@@ -5,11 +5,11 @@ import { i as RowFields, r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
|
|
|
5
5
|
import { et as RecordRef } from "../../types-BzIYSSWK.js";
|
|
6
6
|
import { Ct as Events, et as SaasSubjectEventData } from "../../events-DddDlibJ.js";
|
|
7
7
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
8
|
-
import {
|
|
8
|
+
import { o as BlockTenantOptions } from "../../block-helpers-Sj-efEhC.js";
|
|
9
9
|
import { t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
10
|
-
import { n as BlockHooks } from "../../block-hooks-
|
|
11
|
-
import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, rn as RecordBinding } from "../../define-block-
|
|
12
|
-
import { a as UndoToken } from "../../undo-
|
|
10
|
+
import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
|
|
11
|
+
import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, rn as RecordBinding } from "../../define-block-DBD7yhQg.js";
|
|
12
|
+
import { a as UndoToken } from "../../undo-BCQMqIQN.js";
|
|
13
13
|
interface LinkInput<F extends object = Record<never, never>> {
|
|
14
14
|
/**
|
|
15
15
|
* A kind, or its inverse name (`blocked_by` stores `blocks` from the other
|
|
@@ -5,11 +5,11 @@ import { i as RowFields, r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
|
|
|
5
5
|
import { et as RecordRef } from "../../types-BzIYSSWK.js";
|
|
6
6
|
import { Ct as Events, et as SaasSubjectEventData } from "../../events-DddDlibJ.js";
|
|
7
7
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
8
|
-
import {
|
|
8
|
+
import { o as BlockTenantOptions } from "../../block-helpers-Sj-efEhC.js";
|
|
9
9
|
import { t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
10
|
-
import { n as BlockHooks } from "../../block-hooks-
|
|
11
|
-
import { _ as JobHandler, c as EnqueueOnceOptions, l as EnqueueOnceResult } from "../../types-
|
|
12
|
-
import { I as Notifier, c as BlockOf } from "../../define-block-
|
|
10
|
+
import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
|
|
11
|
+
import { _ as JobHandler, c as EnqueueOnceOptions, l as EnqueueOnceResult } from "../../types-LLCyr-xs.js";
|
|
12
|
+
import { I as Notifier, c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
13
13
|
import { g as SubscriberPolicy, i as AuthorizationHooks } from "../../authorization-hooks-CR8TVvqo.js";
|
|
14
14
|
interface ExpandInput {
|
|
15
15
|
readonly dtstart: Temporal.ZonedDateTime;
|
|
@@ -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 ReviewsOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockTemporalOptions {
|
|
12
12
|
readonly transport: BlockTransport;
|
|
13
13
|
/**
|
|
@@ -4,10 +4,10 @@ import { i as RowFields, r as FieldsOf } from "../../block-fields-Puv5m5D3.js";
|
|
|
4
4
|
import { $ as SaasEventData, Ct as Events } from "../../events-DddDlibJ.js";
|
|
5
5
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
6
6
|
import { 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
|
import { p as ListQueryInput } from "../../list-query-BkbLV-Yc.js";
|
|
10
|
-
import { n as Controller } from "../../controller-
|
|
10
|
+
import { n as Controller } from "../../controller-phhsPHSz.js";
|
|
11
11
|
import { t as RankNeighbors } from "../../rank-result-B_xLQCBV.js";
|
|
12
12
|
export declare const SAVED_VIEW_KINDS: readonly ["table", "board", "calendar", "timeline", "gantt"];
|
|
13
13
|
type SavedViewKind = (typeof SAVED_VIEW_KINDS)[number];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Ct as Events } 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 { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-
|
|
3
|
+
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-VW4knarE.js";
|
|
4
4
|
import { t as ScoresSqlOptions } from "../../options-DNZ9r_Vo.js";
|
|
5
|
-
import { c as BlockOf, rn as RecordBinding } from "../../define-block-
|
|
6
|
-
import { a as ScoreMetric, c as ScoreModelInput, d as Scores, f as ScoresOptions, i as ScoreBreakdown, l as ScoreModelVersion, n as Score, o as ScoreModel, p as createScores, r as ScoreBand, s as ScoreModelDetail, t as ComputedScore, u as ScoreRule } from "../../scores-
|
|
5
|
+
import { c as BlockOf, rn as RecordBinding } from "../../define-block-DBD7yhQg.js";
|
|
6
|
+
import { a as ScoreMetric, c as ScoreModelInput, d as Scores, f as ScoresOptions, i as ScoreBreakdown, l as ScoreModelVersion, n as Score, o as ScoreModel, p as createScores, r as ScoreBand, s as ScoreModelDetail, t as ComputedScore, u as ScoreRule } from "../../scores-BXuSVczw.js";
|
|
7
7
|
/** `score_model.saved` and `score_model.deleted`. */
|
|
8
8
|
interface ScoreModelEventData {
|
|
9
9
|
readonly organizationId: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
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-
|
|
6
|
+
import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
|
|
7
|
+
import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
8
8
|
import { i as EventSink } from "../../cloud-event-BjgxkfJJ.js";
|
|
9
|
-
import { i as KeyboardPort } from "../../ports-
|
|
10
|
-
import { n as Controller } from "../../controller-
|
|
9
|
+
import { i as KeyboardPort } from "../../ports-BJJJmfWK.js";
|
|
10
|
+
import { n as Controller } from "../../controller-phhsPHSz.js";
|
|
11
11
|
interface SearchOptions extends Pick<BlockOptions, "transport" | "service" | "schema" | "mappers"> {
|
|
12
12
|
/** `withBlockHooks` hooks around the methods. */
|
|
13
13
|
readonly hooks?: BlockHooks<Search>;
|
|
@@ -2,13 +2,13 @@
|
|
|
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-
|
|
7
|
+
import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
|
|
8
8
|
import { n as VaultCredentials } from "../../vault-CbhvnoVC.js";
|
|
9
|
-
import { c as BlockOf } from "../../define-block-
|
|
9
|
+
import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
10
10
|
import { n as Jwks } from "../../jws-CxgTsbgG.js";
|
|
11
|
-
import { o as Signer } from "../../signing-keys-
|
|
11
|
+
import { o as Signer } from "../../signing-keys-DhBSWFy_.js";
|
|
12
12
|
/** The `typ` header of a Security Event Token (RFC 8417 §2.3). */
|
|
13
13
|
export declare const SET_TYP = "secevent+jwt";
|
|
14
14
|
/** The media type a pushed SET is sent with (RFC 8935 §2). */
|
|
@@ -3,12 +3,12 @@ import { T as ErrorMapper, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
|
3
3
|
import { Ct as Events } from "../../events-DddDlibJ.js";
|
|
4
4
|
import { F as SegmentEventData, I as SegmentMemberEventData } from "../../index-DjJUamhw.js";
|
|
5
5
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
6
|
-
import { r as BlockTemporalOptions } from "../../block-helpers-
|
|
6
|
+
import { 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 { n as segmentsSqlOptions, t as SegmentsSqlOptions } from "../../options-BLQePOPy.js";
|
|
10
10
|
import { h as FilterQuery } from "../../filter-query-Xj40B5KT.js";
|
|
11
|
-
import { Sn as EntitySchema, c as BlockOf } from "../../define-block-
|
|
11
|
+
import { Sn as EntitySchema, c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
12
12
|
/** A saved filter over one subject type, with its materialized members. */
|
|
13
13
|
interface Segment {
|
|
14
14
|
readonly id: string;
|
|
@@ -3,11 +3,11 @@ import { 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 { n as BlockOptions } from "../../block-helpers-
|
|
6
|
+
import { n as BlockOptions } 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 { n as sequencesSqlOptions, t as SequencesSqlOptions } from "../../options-D6tpMRvp.js";
|
|
10
|
-
import { F as BlockPorts, Sn as EntitySchema, V as MailSendDraft, c as BlockOf } from "../../define-block-
|
|
10
|
+
import { F as BlockPorts, Sn as EntitySchema, V as MailSendDraft, c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
11
11
|
declare const SEQUENCE_STATUSES: readonly ["draft", "active", "paused", "archived"];
|
|
12
12
|
declare const RUN_STATUSES: readonly ["active", "paused", "completed", "exited"];
|
|
13
13
|
declare const EXIT_REASONS: readonly ["replied", "manual", "failed", "archived"];
|
|
@@ -4,10 +4,10 @@ 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 { $ as SaasEventData, 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, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
9
|
-
import { n as BlockHooks } from "../../block-hooks-
|
|
10
|
-
import { c as BlockOf } from "../../define-block-
|
|
9
|
+
import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
|
|
10
|
+
import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
11
11
|
/** The `app_metadata` key that marks an `auth.users` row as a service principal. */
|
|
12
12
|
export declare const SERVICE_PRINCIPAL_CLAIM = "bsb_service_principal";
|
|
13
13
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { b as DbError, f as Result } from "../../result-DTOQRyGY.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
|
/** An OAuth client as the Auth OAuth server describes it. */
|
|
7
7
|
interface RawOAuthClient {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { b as DbError, f as Result, t as AsyncResult } from "../../result-DTOQRyGY.js";
|
|
2
2
|
import { Ct as Events, rt as SettingEventData } from "../../events-DddDlibJ.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
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
10
10
|
/**
|
|
11
11
|
* One setting: its Standard Schema and the value `get` returns when none is
|
|
@@ -5,9 +5,9 @@ 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 { $ as SaasEventData, Ct as Events, et as SaasSubjectEventData } from "../../events-DddDlibJ.js";
|
|
7
7
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
8
|
-
import { n as BlockOptions } from "../../block-helpers-
|
|
9
|
-
import { n as BlockHooks } from "../../block-hooks-
|
|
10
|
-
import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, mn as RecordRowInput, rn as RecordBinding } from "../../define-block-
|
|
8
|
+
import { n as BlockOptions } from "../../block-helpers-Sj-efEhC.js";
|
|
9
|
+
import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
|
|
10
|
+
import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, mn as RecordRowInput, rn as RecordBinding } from "../../define-block-DBD7yhQg.js";
|
|
11
11
|
interface ShareLinksOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockOptions {
|
|
12
12
|
/**
|
|
13
13
|
* A Standard Schema for the link's extra columns
|
|
@@ -5,11 +5,11 @@ 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 { n as BlockOptions } from "../../block-helpers-
|
|
8
|
+
import { n as BlockOptions } 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-
|
|
10
|
+
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-VW4knarE.js";
|
|
11
11
|
import { n as shipmentsSqlOptions, t as ShipmentsSqlOptions } from "../../options-B-JqrC61.js";
|
|
12
|
-
import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, mn as RecordRowInput, rn as RecordBinding } from "../../define-block-
|
|
12
|
+
import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, mn as RecordRowInput, rn as RecordBinding } from "../../define-block-DBD7yhQg.js";
|
|
13
13
|
import { n as Money } from "../../money-BgpAd7d3.js";
|
|
14
14
|
import { r as WebhookInput } from "../../signatures-jPr9JXyw.js";
|
|
15
15
|
import { t as StockDetail } from "../../stock-detail-BRIt7CjU.js";
|
|
@@ -4,11 +4,11 @@ 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, it as SignatureEventData } 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, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
9
|
-
import { n as BlockHooks } from "../../block-hooks-
|
|
9
|
+
import { n as BlockHooks } from "../../block-hooks-VW4knarE.js";
|
|
10
10
|
import { t as SignaturesSqlOptions } from "../../options-B9w_Y08G.js";
|
|
11
|
-
import { c as BlockOf } from "../../define-block-
|
|
11
|
+
import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
12
12
|
interface SignaturesOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockOptions {
|
|
13
13
|
/**
|
|
14
14
|
* A Standard Schema for the request's extra columns
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Ct as Events } from "../../events-DddDlibJ.js";
|
|
2
2
|
import { s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
3
|
-
import { c as BlockOf } from "../../define-block-
|
|
3
|
+
import { c as BlockOf } from "../../define-block-DBD7yhQg.js";
|
|
4
4
|
import { a as JwsError, c as VerifyCompactOptions, d as verifyCompact, i as JwsAlgorithm, l as jwkThumbprint, n as Jwks, o as SigningAlgorithm, s as VerifiedJws, t as Jwk, u as jwksOf } from "../../jws-CxgTsbgG.js";
|
|
5
|
-
import { a as Signature, c as SigningKeyOwner, d as createSigningKeys, f as jwtType, i as PLATFORM_OWNER, l as SigningKeys, n as JwksOptions, o as Signer, r as JwksResponseOptions, s as SignerOptions, t as CreatedSigningKey, u as SigningKeysOptions } from "../../signing-keys-
|
|
5
|
+
import { a as Signature, c as SigningKeyOwner, d as createSigningKeys, f as jwtType, i as PLATFORM_OWNER, l as SigningKeys, n as JwksOptions, o as Signer, r as JwksResponseOptions, s as SignerOptions, t as CreatedSigningKey, u as SigningKeysOptions } from "../../signing-keys-DhBSWFy_.js";
|
|
6
6
|
/** `signing_key.*`: the key's owner and kid, never key material. */
|
|
7
7
|
interface SigningKeyEventData {
|
|
8
8
|
readonly ownerType: string;
|
|
@@ -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 { L as SlaEventData } from "../../index-DjJUamhw.js";
|
|
8
8
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
9
|
-
import { n as BlockOptions } from "../../block-helpers-
|
|
9
|
+
import { n as BlockOptions } 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 { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, rn as RecordBinding } 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 { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, rn as RecordBinding } from "../../define-block-DBD7yhQg.js";
|
|
13
13
|
type SlaMetric = "first_response" | "next_response" | "resolution";
|
|
14
14
|
type SlaState = "running" | "paused" | "met" | "breached";
|
|
15
15
|
/** What happened on a record, moving its clocks. */
|