better-supabase 0.22.0 → 0.25.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/{access-sql-CNIgUqWf.js → access-sql-bjWFUWlk.js} +11 -0
- package/dist/{ai-schedules-7uQNMXve.d.ts → ai-schedules-yGZH-vQb.d.ts} +1 -1
- package/dist/ai-sdk/agents/index.d.ts +2 -2
- package/dist/ai-sdk/batches/index.d.ts +1 -1
- package/dist/ai-sdk/index.d.ts +1 -1
- package/dist/ai-sdk/mcp/index.d.ts +3 -3
- package/dist/{api-CHObZL7m.d.ts → api-B1OkIWdx.d.ts} +3 -3
- package/dist/{api-keys-D5k63K6y.d.ts → api-keys-ClhKBDcc.d.ts} +1 -1
- package/dist/{app-tables-BGzdnQm5.d.ts → app-tables-xij_MI5H.d.ts} +1 -1
- package/dist/{approvals-Dh9dUXrN.d.ts → approvals-C5fmPLsH.d.ts} +1 -1
- package/dist/astro/index.d.ts +5 -5
- package/dist/{authorization-DhoA7dsD.d.ts → authorization-BJV2i8xB.d.ts} +136 -21
- package/dist/{authorization-hooks-D_pwXlBs.d.ts → authorization-hooks-DtzreCAq.d.ts} +1 -1
- package/dist/{automations-FCnWy387.js → automations-8L3NEuoq.js} +4 -1
- package/dist/{availability-vguUvEK2.d.ts → availability-BdeKCHpl.d.ts} +10 -0
- package/dist/better-result/index.d.ts +2 -2
- package/dist/{bind-CFsctoFJ.d.ts → bind-vKDmdu_4.d.ts} +4 -4
- package/dist/{block-env-BrUNeuJ_.d.ts → block-env-wVLz0KMV.d.ts} +4 -4
- package/dist/blocks/access-requests/index.d.ts +2 -2
- package/dist/blocks/activities/index.d.ts +3 -3
- package/dist/blocks/agents/index.d.ts +2 -2
- package/dist/blocks/ai-cache/index.d.ts +1 -1
- package/dist/blocks/ai-chat/index.d.ts +5 -5
- package/dist/blocks/ai-files/index.d.ts +1 -1
- package/dist/blocks/ai-keys/index.d.ts +3 -3
- package/dist/blocks/ai-schedules/index.d.ts +2 -2
- package/dist/blocks/announcements/index.d.ts +5 -5
- package/dist/blocks/api-keys/index.d.ts +5 -5
- package/dist/blocks/approvals/index.d.ts +3 -3
- package/dist/blocks/assets/index.d.ts +2 -2
- package/dist/blocks/assignment/index.d.ts +3 -3
- package/dist/blocks/attachments/index.d.ts +3 -3
- package/dist/blocks/audit/index.d.ts +7 -7
- package/dist/blocks/automations/index.d.ts +5 -5
- package/dist/blocks/billable-time/index.d.ts +2 -2
- package/dist/blocks/billing/index.d.ts +5 -5
- package/dist/blocks/bookings/index.d.ts +6 -6
- package/dist/blocks/bulk/index.d.ts +2 -2
- package/dist/blocks/calendar/index.d.ts +50 -13
- package/dist/blocks/calendar/index.js +133 -30
- package/dist/blocks/catalog/index.d.ts +2 -2
- package/dist/blocks/channels/index.d.ts +3 -3
- package/dist/blocks/collections/index.d.ts +3 -3
- package/dist/blocks/comments/index.d.ts +5 -5
- package/dist/blocks/compliance/index.d.ts +2 -2
- package/dist/blocks/connectors/index.d.ts +3 -3
- package/dist/blocks/contacts/index.d.ts +3 -3
- package/dist/blocks/content/index.d.ts +2 -2
- package/dist/blocks/contracts/index.d.ts +2 -2
- package/dist/blocks/courses/index.d.ts +2 -2
- package/dist/blocks/created-by/index.d.ts +1 -1
- package/dist/blocks/custom-fields/index.d.ts +45 -3
- package/dist/blocks/custom-fields/index.js +40 -1
- package/dist/blocks/data-lifecycle/index.d.ts +4 -4
- package/dist/blocks/deals/index.d.ts +3 -3
- package/dist/blocks/dispatch/index.d.ts +2 -2
- package/dist/blocks/documents/index.d.ts +2 -2
- package/dist/blocks/domains/index.d.ts +2 -2
- package/dist/blocks/donations/index.d.ts +2 -2
- package/dist/blocks/drive/index.d.ts +4 -4
- package/dist/blocks/employees/index.d.ts +25 -6
- package/dist/blocks/employees/index.js +37 -2
- package/dist/blocks/enrichment/index.d.ts +3 -3
- package/dist/blocks/enrollments/index.d.ts +2 -2
- package/dist/blocks/entitlements/index.d.ts +3 -3
- package/dist/blocks/expenses/index.d.ts +2 -2
- package/dist/blocks/field-history/index.d.ts +1 -1
- package/dist/blocks/flags/index.d.ts +2 -2
- package/dist/blocks/forecasts/index.d.ts +3 -3
- package/dist/blocks/forms/index.d.ts +3 -3
- package/dist/blocks/goals/index.d.ts +1 -1
- package/dist/blocks/guests/index.d.ts +2 -2
- package/dist/blocks/hiring/index.d.ts +13 -6
- package/dist/blocks/hiring/index.js +15 -4
- package/dist/blocks/identities/index.d.ts +2 -2
- package/dist/blocks/imports/index.d.ts +2 -2
- package/dist/blocks/inbox/index.d.ts +6 -6
- package/dist/blocks/incidents/index.d.ts +2 -2
- package/dist/blocks/index.d.ts +4 -4
- package/dist/blocks/inventory/index.d.ts +2 -2
- package/dist/blocks/invoices/index.d.ts +3 -3
- package/dist/blocks/knowledge/index.d.ts +1 -1
- package/dist/blocks/lead-scoring/index.d.ts +1 -1
- package/dist/blocks/leases/index.d.ts +2 -2
- package/dist/blocks/leave/index.d.ts +2 -2
- package/dist/blocks/ledger/index.d.ts +2 -2
- package/dist/blocks/mail-sync/index.d.ts +3 -3
- package/dist/blocks/memberships/index.d.ts +1 -1
- package/dist/blocks/memory/index.d.ts +1 -1
- package/dist/blocks/messaging/index.d.ts +7 -7
- package/dist/blocks/metrics/index.d.ts +2 -2
- package/dist/blocks/mfa/index.d.ts +2 -2
- package/dist/blocks/moderation/index.d.ts +2 -2
- package/dist/blocks/notifications/index.d.ts +7 -7
- package/dist/blocks/numbering/index.d.ts +2 -2
- package/dist/blocks/oauth-server/index.d.ts +2 -2
- package/dist/blocks/onboarding/index.d.ts +2 -2
- package/dist/blocks/orders/index.d.ts +3 -3
- package/dist/blocks/organizations/index.d.ts +4 -4
- package/dist/blocks/outbox/index.d.ts +2 -2
- package/dist/blocks/passes/index.d.ts +3 -3
- package/dist/blocks/permissions/index.d.ts +3 -3
- package/dist/blocks/pipelines/index.d.ts +3 -3
- package/dist/blocks/posts/index.d.ts +2 -2
- package/dist/blocks/profiles/index.d.ts +1 -1
- package/dist/blocks/promotions/index.d.ts +2 -2
- package/dist/blocks/push/index.d.ts +3 -3
- package/dist/blocks/queue/index.d.ts +1 -1
- package/dist/blocks/quotes/index.d.ts +3 -3
- package/dist/blocks/rank/index.d.ts +1 -1
- package/dist/blocks/reactions/index.d.ts +5 -5
- package/dist/blocks/relations/index.d.ts +2 -2
- package/dist/blocks/reminders/index.d.ts +3 -3
- package/dist/blocks/reviews/index.d.ts +2 -2
- package/dist/blocks/saved-views/index.d.ts +4 -4
- package/dist/blocks/scores/index.d.ts +2 -2
- package/dist/blocks/search/index.d.ts +6 -4
- package/dist/blocks/search/index.js +2 -0
- package/dist/blocks/security-events/index.d.ts +3 -3
- package/dist/blocks/segments/index.d.ts +3 -3
- package/dist/blocks/sequences/index.d.ts +2 -2
- package/dist/blocks/service-accounts/index.d.ts +2 -2
- package/dist/blocks/sessions/index.d.ts +2 -2
- package/dist/blocks/settings/index.d.ts +3 -3
- package/dist/blocks/share-links/index.d.ts +30 -5
- package/dist/blocks/share-links/index.js +58 -22
- package/dist/blocks/shipments/index.d.ts +2 -2
- package/dist/blocks/signatures/index.d.ts +2 -2
- package/dist/blocks/signing-keys/index.d.ts +2 -2
- package/dist/blocks/sla/index.d.ts +3 -3
- package/dist/blocks/sso/index.d.ts +3 -3
- package/dist/blocks/state-machine/index.d.ts +2 -2
- package/dist/blocks/subjects/index.d.ts +2 -2
- package/dist/blocks/tags/index.d.ts +20 -5
- package/dist/blocks/tags/index.js +15 -2
- package/dist/blocks/tasks/index.d.ts +5 -5
- package/dist/blocks/teams/index.d.ts +28 -6
- package/dist/blocks/teams/index.js +10 -3
- package/dist/blocks/templates/index.d.ts +4 -4
- package/dist/blocks/time-tracking/index.d.ts +28 -5
- package/dist/blocks/time-tracking/index.js +27 -11
- package/dist/blocks/timeline/index.d.ts +4 -4
- package/dist/blocks/trash/index.d.ts +2 -2
- package/dist/blocks/undo/index.d.ts +2 -2
- package/dist/blocks/updated-at/index.d.ts +1 -1
- package/dist/blocks/usage/index.d.ts +2 -2
- package/dist/blocks/vercel-marketplace/index.d.ts +2 -2
- package/dist/blocks/versions/index.d.ts +2 -2
- package/dist/blocks/waitlist/index.d.ts +2 -2
- package/dist/blocks/webhooks/index.d.ts +6 -6
- package/dist/blocks/workflow-editor/index.d.ts +7 -7
- package/dist/blocks/workflows/index.d.ts +5 -5
- package/dist/{bookings-BpCNphYp.d.ts → bookings-CVw5-Q0Z.d.ts} +1 -1
- package/dist/chat-sdk/index.d.ts +2 -2
- package/dist/cli/{add-BXFzr0Wf.js → add-BTVrOGJF.js} +11 -11
- package/dist/cli/add-Bf1fyCWm.js +1 -0
- package/dist/cli/{add-B6CQOt3A.js → add-C2pNvVpu.js} +2 -2
- package/dist/cli/{backfill-Dflp6JZk.js → backfill-BicVPugb.js} +3 -3
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-CBH3N7Fy.js → blocks-BmYOH4T-.js} +1 -1
- package/dist/cli/{blocks-FtOIcUbu.js → blocks-sScN-ik-.js} +1 -1
- package/dist/cli/{cache-61VwYKEv.js → cache-1TfBy2K4.js} +1 -1
- package/dist/cli/{codemod-CqPRa25J.js → codemod-ylE6wGLo.js} +1 -1
- package/dist/cli/{config-BH0goim0.js → config-BVfeG3A5.js} +37 -5
- package/dist/cli/{config-CTRzkX0H.js → config-CeaQMrvS.js} +1 -1
- package/dist/cli/{content-mapper-DGQQY5IA.js → content-mapper-hUW2nb92.js} +2 -2
- package/dist/cli/{db-DCeyHS1y.js → db-DwjyUbAh.js} +2 -2
- package/dist/cli/{doctor-BxxSO193.js → doctor-D3WKFBSv.js} +16 -16
- package/dist/cli/{gen-D2cqqqTH.js → gen-CqsUdsB2.js} +14 -14
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +7 -7
- package/dist/cli/{init-BnG1IE1y.js → init-DryZ5Mp1.js} +6 -6
- package/dist/cli/{live-D26OWOAb.js → live-Di45imoV.js} +2 -2
- package/dist/cli/{mcp-1l3C_GdB.js → mcp-BklC-3eK.js} +2 -2
- package/dist/cli/{metadata-DDfPBHwI.js → metadata-7PsBF5Xw.js} +3 -3
- package/dist/cli/{migration-safety-CQbrfZIx.js → migration-safety-Doy9qYO8.js} +2 -2
- package/dist/cli/{migrations-Ch5Uuvyj.js → migrations-JtsPYv8g.js} +1 -1
- package/dist/cli/{module-migration-Dul1uTYX.js → module-migration-ZIn1NCMi.js} +2 -2
- package/dist/cli/{powersync-CfT-tRx1.js → powersync-BRGXOCJ0.js} +2 -2
- package/dist/cli/powersync-Dq-txa0_.js +1 -0
- package/dist/cli/{print-CbPT4PTL.js → print-Dfqd4DB-.js} +2 -2
- package/dist/cli/{remove-kDH1yxKZ.js → remove-CQzSCYTu.js} +5 -5
- package/dist/cli/{render-0Vd7BaNA.js → render-DWRz-uPQ.js} +7 -4
- package/dist/cli/{run-DxTd55Ug.js → run-DPLedqTF.js} +25 -25
- package/dist/cli/{run-Dafms0D2.js → run-j54rk2w-.js} +8 -8
- package/dist/cli/{seed-CdSxunFT.js → seed-BMynpMPy.js} +2 -2
- package/dist/cli/seed-CO3j_bly.js +1 -0
- package/dist/cli/{shared-BQAMXvwd.js → shared-CslNcs-R.js} +1 -1
- package/dist/cli/{snapshot-B8K6gYjA.js → snapshot-DdN5GlhH.js} +3 -3
- package/dist/cli/{source-CXDyCWz5.js → source-COARbqch.js} +1 -1
- package/dist/cli/{source-args-z-jkabmO.js → source-args-CDmmFmFG.js} +1 -1
- package/dist/cli/{spec-BGsnTkIl.js → spec-CgLNZc_C.js} +2 -2
- package/dist/cli/{spec-CaN7nOqI.js → spec-DIhBQlBF.js} +1 -1
- package/dist/cli/{sql-layout-BGAlcp1U.js → sql-layout-8jrP5gIa.js} +2 -2
- package/dist/cli/{sync-CT_5VG0E.js → sync-SqyVHRSJ.js} +3 -3
- package/dist/cli/{upgrade-frUtPDDb.js → upgrade-CY-vj_qh.js} +4 -4
- package/dist/cli/{upgrade-DA7aO88E.js → upgrade-D0aLhluU.js} +2 -2
- package/dist/cli/{version-CUdPyV6J.js → version-Bhca9D6q.js} +1 -1
- package/dist/client/index.d.ts +5 -5
- package/dist/client/native/index.d.ts +4 -4
- package/dist/{cloud-event-CzZTJkXv.d.ts → cloud-event-DcJwder2.d.ts} +1 -1
- package/dist/{composite-ChzHhSB0.d.ts → composite-CWJvZgni.d.ts} +6 -6
- package/dist/config/index.d.ts +4 -4
- package/dist/config/index.js +4 -4
- package/dist/{config-C9AOcQ9S.js → config-C19McoGo.js} +4 -3
- package/dist/{config-CH-D2B-4.js → config-CP-WaboC.js} +6 -5
- package/dist/{connectors-Fud4amxp.d.ts → connectors-CHGiffYH.d.ts} +1 -1
- package/dist/{context-DEisra3V.d.ts → context-BJoHD20l.d.ts} +60 -14
- package/dist/{controller-B6vWdKSa.d.ts → controller-CwGXms17.d.ts} +1 -1
- package/dist/{conversion-DBgMck5U.d.ts → conversion-DlfStnln.d.ts} +1 -1
- package/dist/create/index.d.ts +3 -3
- package/dist/create/index.js +3 -3
- package/dist/create/lite/index.d.ts +3 -3
- package/dist/create/lite/index.js +2 -2
- package/dist/credentials/index.d.ts +3 -3
- package/dist/{define-Lf6rI2QN.d.ts → define-BLP6XtoL.d.ts} +1 -1
- package/dist/{define-block-DCAiOrNX.d.ts → define-block-DibVN37N.d.ts} +4 -4
- package/dist/edge/index.d.ts +8 -8
- package/dist/elysia/index.d.ts +1 -1
- package/dist/{ended-gUsMZVNg.d.ts → ended-B8RyuUXF.d.ts} +1 -1
- package/dist/{entitlements-BPaPd3MD.d.ts → entitlements-CsZcfllV.d.ts} +2 -2
- package/dist/eve/index.d.ts +2 -2
- package/dist/{event-calendar-DCufbihU.d.ts → event-calendar-DVLs2wUO.d.ts} +1 -1
- package/dist/events/index.d.ts +3 -3
- package/dist/{events-vcqenSYU.d.ts → events-Cc9DDQWH.d.ts} +2 -0
- package/dist/{executor-DNK401lZ.d.ts → executor-C-Ox9eKq.d.ts} +1 -1
- package/dist/{executor-aFV7nEBs.d.ts → executor-DNPm13a9.d.ts} +2 -2
- package/dist/expo/index.d.ts +3 -3
- package/dist/{field-errors-DBgDCITw.d.ts → field-errors-6BVg31Yp.d.ts} +7 -7
- package/dist/{framework-DKA3fTHl.d.ts → framework-GlxXiotm.d.ts} +6 -6
- package/dist/h3/index.d.ts +1 -1
- package/dist/h3/v1/index.d.ts +1 -1
- package/dist/hono/index.d.ts +8 -8
- package/dist/{index-ClvuSZEz.d.ts → index-BfYDY6eh.d.ts} +3 -3
- package/dist/{index-CM2aGNRo.d.ts → index-C0QuN9_P.d.ts} +186 -8
- package/dist/{index-CG9rA8H8.d.ts → index-C_qlBJ3k.d.ts} +2 -2
- package/dist/{index-3p_oWttZ.d.ts → index-Cagz4Z2k.d.ts} +1 -1
- package/dist/{index-ByF22_C6.d.ts → index-CbUCGMqj.d.ts} +3 -3
- package/dist/{index-C4sjewrr.d.ts → index-D01wHGSN.d.ts} +11 -11
- package/dist/{index-iRkFvJ7J.d.ts → index-D1ckLbUM.d.ts} +1 -1
- package/dist/{index-CdMZQCYR.d.ts → index-DOHx3JuB.d.ts} +4 -4
- package/dist/index.d.ts +2 -2
- package/dist/{instances-CK0jR3Pc.js → instances-qz2MCMyK.js} +111 -11
- package/dist/{kit-CVgQCIBO.d.ts → kit-Dxx3MT8m.d.ts} +3 -3
- package/dist/list/index.d.ts +1 -1
- package/dist/{list-query-XYfUZb0j.d.ts → list-query-XHoYDlRN.d.ts} +1 -1
- package/dist/mapper/bin.js +6 -6
- package/dist/mcp/index.d.ts +5 -5
- package/dist/mcp/sdk/index.d.ts +5 -5
- package/dist/nestjs/index.d.ts +2 -2
- package/dist/next/client/index.d.ts +1 -1
- package/dist/next/index.d.ts +21 -21
- package/dist/node/index.d.ts +2 -2
- package/dist/{operations-DC3wU3Sy.d.ts → operations-CPhOcuzl.d.ts} +1 -1
- package/dist/{options-fMxhtuVR.js → options-BJtdsK7b.js} +4 -1
- package/dist/options-BOGo1qCA.js +13 -0
- package/dist/options-BSsYXjhC.js +9 -0
- package/dist/options-C4LuqmdG.js +15 -0
- package/dist/{options-DhdazgTZ.js → options-eTepQ1rZ.js} +4 -1
- package/dist/{options-BfFC4iFE.js → options-jsOCvLUz.js} +3 -1
- package/dist/orpc/index.d.ts +7 -7
- package/dist/otel/index.d.ts +1 -1
- package/dist/otel/index.js +4 -4
- package/dist/{outbox-HxjZTfF6.d.ts → outbox-DxZgoKwp.d.ts} +2 -2
- package/dist/{pool-CrtT4dg-.d.ts → pool-wjbAMqc1.d.ts} +1 -1
- package/dist/{ports-BbBJVyS0.d.ts → ports-Bw7uxPd_.d.ts} +1 -1
- package/dist/postgres/index.d.ts +1 -1
- package/dist/powersync/index.d.ts +3 -3
- package/dist/preset/index.d.ts +3 -3
- package/dist/preset/index.js +3 -3
- package/dist/{preset-CS490mYJ.js → preset-BbSWLoXM.js} +2 -2
- package/dist/{project-NmP1NdLi.js → project-TN03XDsA.js} +5 -5
- package/dist/{provider-CqwEOLCA.d.ts → provider-ClrIplXa.d.ts} +1 -1
- package/dist/{push-token-CPJfPFa2.d.ts → push-token-vykw2JXT.d.ts} +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/react/index.d.ts +7 -7
- package/dist/react/native/index.d.ts +1 -1
- package/dist/react/server.d.ts +8 -8
- package/dist/react/session.d.ts +2 -2
- package/dist/react-router/index.d.ts +5 -5
- package/dist/realtime/index.d.ts +4 -4
- package/dist/realtime/index.js +1 -1
- package/dist/{record-form-BbZpwsEi.d.ts → record-form-D2-F4IwS.d.ts} +1 -1
- package/dist/records/index.d.ts +7 -7
- package/dist/{refresh-DT_ICaK-.d.ts → refresh-CCKB1Wa6.d.ts} +1 -1
- package/dist/{refusal-OrlI3g4H.d.ts → refusal-D_tklIEb.d.ts} +2 -2
- package/dist/{resolve-CXX6DHv3.d.ts → resolve-Bj1qD7Dy.d.ts} +1 -1
- package/dist/{resolved-names-DdlJzoMK.js → resolved-names-Dsf28_Dr.js} +1 -1
- package/dist/{resource-execute-CUG6xUuh.d.ts → resource-execute-BSTIfp1D.d.ts} +1 -1
- package/dist/{resource-types-DjZ91WKA.d.ts → resource-types-D5WEvYtV.d.ts} +2 -2
- package/dist/{resources-6Ncdt9XT.d.ts → resources-CsZ7RhZC.d.ts} +1 -1
- package/dist/{respond-oZeJ342J.d.ts → respond-BzRG-0qc.d.ts} +1 -1
- package/dist/server/index.d.ts +20 -20
- package/dist/{server-types-BH6AjDBN.d.ts → server-types-BlDiY-ya.d.ts} +8 -8
- package/dist/{session-Y5SSYO2C.d.ts → session-BGP98Rgj.d.ts} +5 -5
- package/dist/{session-status-qQLm7jzh.d.ts → session-status-C4t7kbSn.d.ts} +2 -2
- package/dist/{sign-in-BAjR49fq.d.ts → sign-in-CAadgm33.d.ts} +2 -2
- package/dist/solid/index.d.ts +9 -9
- package/dist/solid-start/index.d.ts +5 -5
- package/dist/spec/index.d.ts +1 -1
- package/dist/sql/index.d.ts +5 -5
- package/dist/sql/index.js +5 -5
- package/dist/{sql-BMXEHTvr.js → sql-Dg3W1ENk.js} +5113 -1530
- package/dist/sqlite/index.d.ts +1 -1
- package/dist/ssr/index.d.ts +5 -5
- package/dist/storage/index.js +1 -1
- package/dist/{subject-readers-8GySC9Z8.d.ts → subject-readers-DJbzlm8a.d.ts} +1 -1
- package/dist/subjects-NomQg6Eg.d.ts +131 -0
- package/dist/{support-B4ZBVxt3.d.ts → support-D7CMbhRT.d.ts} +4 -4
- package/dist/{support-view-BYOgwXsJ.d.ts → support-view-CIDXF3_H.d.ts} +1 -1
- package/dist/svelte/index.d.ts +8 -8
- package/dist/sveltekit/index.d.ts +6 -6
- package/dist/{tags-Cjtcp5cN.d.ts → tags-Dg4Ywmqp.d.ts} +1 -1
- package/dist/tanstack-db/index.d.ts +1 -1
- package/dist/tanstack-start/index.d.ts +5 -5
- package/dist/{tenant-BHvMFNXl.d.ts → tenant-BRmKZ7aq.d.ts} +2 -2
- package/dist/testing/index.d.ts +16 -16
- package/dist/testing/index.js +2 -2
- package/dist/{timeline-CEzj9v1z.d.ts → timeline-Cjl-1hiA.d.ts} +3 -3
- package/dist/{topic-gTVjLGTk.d.ts → topic-CpsKVBot.d.ts} +3 -3
- package/dist/{topic-DClSoqY7.js → topic-F0FKzJyQ.js} +1 -1
- package/dist/{types-yj8VF4oY.d.ts → types-BdaBfYIw.d.ts} +2 -2
- package/dist/{types-BC1HLEVx.d.ts → types-CjRwmCRP.d.ts} +2 -2
- package/dist/{types-EO2crSX_.d.ts → types-DR1MHh7N.d.ts} +1 -1
- package/dist/{vault-O-YlAyHb.d.ts → vault-BghaujrZ.d.ts} +1 -1
- package/dist/vercel-connect/index.d.ts +1 -1
- package/dist/{verify-B0KLBb3j.d.ts → verify-CI8LgSpv.d.ts} +1 -1
- package/dist/{view-DyFdMCqg.d.ts → view-BvNA7EOC.d.ts} +1 -1
- package/dist/vue/index.d.ts +9 -9
- package/dist/{watch-topic-C6HhbnVz.d.ts → watch-topic-BaMZX139.d.ts} +1 -1
- package/dist/workflow-sdk/builder/index.d.ts +3 -3
- package/dist/workflow-sdk/index.d.ts +1 -1
- package/dist/workflow-sdk/world/index.d.ts +1 -1
- package/dist/workflow-sdk/world/index.js +1 -1
- package/dist/{workflow-sdk-B3Ss55Fy.d.ts → workflow-sdk-BNsZrcVg.d.ts} +1 -1
- package/dist/{workflow-sdk-DELaQEp3.js → workflow-sdk-CE8sEK57.js} +38 -1
- package/dist/yjs/index.d.ts +1 -1
- package/dist/yjs/index.js +1 -1
- package/package.json +1 -1
- package/schemas/config-v1.json +217 -1
- package/dist/cli/add-w_HumDPX.js +0 -1
- package/dist/cli/powersync-Vmhw5c1N.js +0 -1
- package/dist/cli/seed-CXJvTU5D.js +0 -1
- package/dist/options-C1-pwEqm.js +0 -5
- package/dist/options-CTv-xmbA.js +0 -5
- package/dist/options-ChiL-4ZS.js +0 -8
- package/dist/subjects-DvmQeF_F.d.ts +0 -79
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as dbError } from "../../errors-BVFgt8BZ.js";
|
|
2
2
|
import { n as isRecord } from "../../guards-6F2bCtQR.js";
|
|
3
3
|
import { a as ok, r as err, s as toDbError, t as AsyncResult } from "../../result-ntFBW2p2.js";
|
|
4
|
-
import { t as tagsSqlOptions } from "../../options-
|
|
4
|
+
import { t as tagsSqlOptions } from "../../options-BJtdsK7b.js";
|
|
5
5
|
import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
|
|
6
6
|
import { n as whileSignedIn, t as defineController } from "../../controller-BEliOBOv.js";
|
|
7
7
|
import { L as textOf, O as recordOf, n as applyTemporal, o as blockCall, w as optionalText } from "../../block-helpers-B0f0ZVb5.js";
|
|
@@ -13,6 +13,12 @@ import { n as defineBlock } from "../../define-block-BGqOO8B3.js";
|
|
|
13
13
|
import { t as requireOrganization } from "../../block-tenant-DHp7subc.js";
|
|
14
14
|
import { t as rankBetweenResult } from "../../rank-result-BBJIK-k_.js";
|
|
15
15
|
//#region src/blocks/tags/tags.ts
|
|
16
|
+
const PATCH_KEYS = [
|
|
17
|
+
"slug",
|
|
18
|
+
"kind",
|
|
19
|
+
"color",
|
|
20
|
+
"description"
|
|
21
|
+
];
|
|
16
22
|
function tagOf(value) {
|
|
17
23
|
const row = recordOf(value, "tag");
|
|
18
24
|
const optional = (key) => {
|
|
@@ -30,6 +36,11 @@ function tagOf(value) {
|
|
|
30
36
|
fields: isRecord(row["fields"]) ? row["fields"] : {}
|
|
31
37
|
};
|
|
32
38
|
}
|
|
39
|
+
/** `{ patch }` with the keys of `input` the SQL patch takes, or nothing. */
|
|
40
|
+
function patchOf(input) {
|
|
41
|
+
const entries = PATCH_KEYS.flatMap((key) => input[key] === void 0 ? [] : [[key, input[key]]]);
|
|
42
|
+
return entries.length === 0 ? {} : { patch: Object.fromEntries(entries) };
|
|
43
|
+
}
|
|
33
44
|
const tagsOf = (value) => (Array.isArray(value) ? value : []).map(tagOf);
|
|
34
45
|
/** The `tags` SQL module as typed calls. */
|
|
35
46
|
function createTags(options) {
|
|
@@ -38,12 +49,13 @@ function createTags(options) {
|
|
|
38
49
|
const fields = blockFields(options.fields, "tag fields");
|
|
39
50
|
const tenant = () => requireOrganization(options.tenant);
|
|
40
51
|
return withBlockHooks({
|
|
41
|
-
create: ({ kind, name, color, description, fields: extra }) => tenant().andThen((organizationId) => fields.args(extra).andThen((checked) => call("create_tag", {
|
|
52
|
+
create: ({ kind, name, color, description, slug, fields: extra }) => tenant().andThen((organizationId) => fields.args(extra).andThen((checked) => call("create_tag", {
|
|
42
53
|
tenant: organizationId,
|
|
43
54
|
kind,
|
|
44
55
|
name,
|
|
45
56
|
color: color ?? null,
|
|
46
57
|
description: description ?? null,
|
|
58
|
+
...slug === void 0 ? {} : { slug },
|
|
47
59
|
fields: checked
|
|
48
60
|
}, (value) => ({
|
|
49
61
|
...tagOf(value),
|
|
@@ -52,6 +64,7 @@ function createTags(options) {
|
|
|
52
64
|
update: (id, patch) => fields.args(patch.fields).andThen((checked) => call("update_tag", {
|
|
53
65
|
tag_id: id,
|
|
54
66
|
name: patch.name ?? null,
|
|
67
|
+
...patchOf(patch),
|
|
55
68
|
fields: checked
|
|
56
69
|
}, (value) => value === true)),
|
|
57
70
|
reorder: (id, neighbors) => {
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import { T as ErrorMapper, f as Result, t as AsyncResult } from "../../result-DZeA5KS6.js";
|
|
3
3
|
import { t as StandardSchemaV1 } from "../../standard-DBV730sF.js";
|
|
4
4
|
import { n as ExtraFields, r as FieldsOf } from "../../block-fields-BE7pInWZ.js";
|
|
5
|
-
import { Ct as Events } from "../../events-
|
|
6
|
-
import { R as WorkItemEventData } from "../../index-
|
|
5
|
+
import { Ct as Events } from "../../events-Cc9DDQWH.js";
|
|
6
|
+
import { R as WorkItemEventData } from "../../index-C_qlBJ3k.js";
|
|
7
7
|
import { n as Logger } from "../../logger-DWVYUmwi.js";
|
|
8
8
|
import { r as BlockTemporalOptions } from "../../block-helpers-CRpAHrp_.js";
|
|
9
9
|
import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
|
|
10
10
|
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-DZN2w69m.js";
|
|
11
|
-
import { Bt as Action, Sn as EntitySchema, c as BlockOf, rn as RecordBinding } from "../../define-block-
|
|
12
|
-
import { i as EventSink } from "../../cloud-event-
|
|
13
|
-
import { n as ConversionContext, t as ConversionClients } from "../../conversion-
|
|
11
|
+
import { Bt as Action, Sn as EntitySchema, c as BlockOf, rn as RecordBinding } from "../../define-block-DibVN37N.js";
|
|
12
|
+
import { i as EventSink } from "../../cloud-event-DcJwder2.js";
|
|
13
|
+
import { n as ConversionContext, t as ConversionClients } from "../../conversion-DlfStnln.js";
|
|
14
14
|
import { i as Conversation } from "../../types-Dp3UCr1e.js";
|
|
15
15
|
//#region src/blocks/tasks/tasks.d.ts
|
|
16
16
|
/** The state a stage's category sets; `completed` and `canceled` are closed. */
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as AsyncResult } from "../../result-DZeA5KS6.js";
|
|
2
2
|
import { t as StandardSchemaV1 } from "../../standard-DBV730sF.js";
|
|
3
3
|
import { n as ExtraFields, r as FieldsOf } from "../../block-fields-BE7pInWZ.js";
|
|
4
|
-
import { $ as SaasEventData, Ct as Events } from "../../events-
|
|
4
|
+
import { $ as SaasEventData, Ct as Events } from "../../events-Cc9DDQWH.js";
|
|
5
5
|
import { n as Logger } from "../../logger-DWVYUmwi.js";
|
|
6
6
|
import { n as BlockOptions } from "../../block-helpers-CRpAHrp_.js";
|
|
7
7
|
import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
|
|
8
|
-
import { c as BlockOf } from "../../define-block-
|
|
8
|
+
import { c as BlockOf } from "../../define-block-DibVN37N.js";
|
|
9
9
|
//#region src/blocks/teams/teams.d.ts
|
|
10
10
|
interface TeamsOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockOptions {
|
|
11
11
|
/**
|
|
@@ -27,12 +27,33 @@ interface Team<F extends object = Record<never, never>> {
|
|
|
27
27
|
/** The extra columns, keyed by database name. */
|
|
28
28
|
readonly fields: ExtraFields<F>;
|
|
29
29
|
}
|
|
30
|
+
/** What `teams.create` takes besides the name and description. */
|
|
31
|
+
interface CreateTeamOptions {
|
|
32
|
+
/**
|
|
33
|
+
* The slug, lowercase letters and digits joined by single hyphens. Derived
|
|
34
|
+
* from the name when left out.
|
|
35
|
+
*/
|
|
36
|
+
readonly slug?: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* What `teams.update` changes besides the name. A key that is left out keeps
|
|
40
|
+
* its value; `description: null` clears it.
|
|
41
|
+
*/
|
|
42
|
+
interface UpdateTeamOptions {
|
|
43
|
+
readonly slug?: string;
|
|
44
|
+
readonly description?: string | null;
|
|
45
|
+
}
|
|
30
46
|
interface Teams<F extends object = Record<never, never>> {
|
|
31
47
|
/** Creates a team; `fields` sets its extra columns. */
|
|
32
|
-
create(organizationId: string, name: string, description?: string, fields?: Partial<F
|
|
33
|
-
/**
|
|
34
|
-
|
|
48
|
+
create(organizationId: string, name: string, description?: string, fields?: Partial<F>, options?: CreateTeamOptions): AsyncResult<Team<F>>;
|
|
49
|
+
/**
|
|
50
|
+
* Renames a team, sets the extra columns `fields` names, and changes the slug
|
|
51
|
+
* or description `options` names.
|
|
52
|
+
*/
|
|
53
|
+
update(id: string, name: string, description?: string, fields?: Partial<F>, options?: UpdateTeamOptions): AsyncResult<Team<F>>;
|
|
35
54
|
archive(id: string): AsyncResult<boolean>;
|
|
55
|
+
/** Makes an archived team active again. */
|
|
56
|
+
restore(id: string): AsyncResult<boolean>;
|
|
36
57
|
delete(id: string): AsyncResult<boolean>;
|
|
37
58
|
addMember(teamId: string, userId: string): AsyncResult<boolean>;
|
|
38
59
|
removeMember(teamId: string, userId: string): AsyncResult<boolean>;
|
|
@@ -47,6 +68,7 @@ type TeamsEvents = {
|
|
|
47
68
|
readonly "team.created": SaasEventData;
|
|
48
69
|
readonly "team.updated": SaasEventData;
|
|
49
70
|
readonly "team.archived": SaasEventData;
|
|
71
|
+
readonly "team.restored": SaasEventData;
|
|
50
72
|
readonly "team.deleted": SaasEventData;
|
|
51
73
|
readonly "team_member.added": SaasEventData;
|
|
52
74
|
readonly "team_member.removed": SaasEventData;
|
|
@@ -58,4 +80,4 @@ export declare const teamsEvents: Events<TeamsEvents>;
|
|
|
58
80
|
/** The `teams` block's manifest (ADR 0029). */
|
|
59
81
|
export declare const teamsBlock: BlockOf<"teams", typeof createTeams, TeamsEvents>;
|
|
60
82
|
//#endregion
|
|
61
|
-
export type { Team, Teams, TeamsEvents, TeamsOptions };
|
|
83
|
+
export type { CreateTeamOptions, Team, Teams, TeamsEvents, TeamsOptions, UpdateTeamOptions };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as isRecord } from "../../guards-6F2bCtQR.js";
|
|
2
|
-
import { t as teamsSqlOptions } from "../../options-
|
|
2
|
+
import { t as teamsSqlOptions } from "../../options-jsOCvLUz.js";
|
|
3
3
|
import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
|
|
4
4
|
import { A as recordsOf, L as textOf, O as recordOf, n as applyTemporal, o as blockCall, w as optionalText } from "../../block-helpers-B0f0ZVb5.js";
|
|
5
5
|
import { r as withBlockHooks } from "../../block-hooks-DKtz0HRh.js";
|
|
@@ -21,19 +21,24 @@ function createTeams(options) {
|
|
|
21
21
|
const call = blockCall(options.transport, options.schema, options.mappers);
|
|
22
22
|
const fields = blockFields(options.fields, "team fields");
|
|
23
23
|
return withBlockHooks({
|
|
24
|
-
create: (organizationId, name, description, extra) => fields.args(extra).andThen((checked) => call("create_team", {
|
|
24
|
+
create: (organizationId, name, description, extra, settings) => fields.args(extra).andThen((checked) => call("create_team", {
|
|
25
25
|
tenant: organizationId,
|
|
26
26
|
name,
|
|
27
27
|
description: description ?? null,
|
|
28
|
+
...settings?.slug === void 0 ? {} : { slug: settings.slug },
|
|
28
29
|
fields: checked
|
|
29
30
|
}, (value) => ({
|
|
30
31
|
...teamOf(value),
|
|
31
32
|
name
|
|
32
33
|
})).andThen(fields.row)),
|
|
33
|
-
update: (id, name, description, extra) => fields.args(extra).andThen((checked) => call("update_team", {
|
|
34
|
+
update: (id, name, description, extra, settings) => fields.args(extra).andThen((checked) => call("update_team", {
|
|
34
35
|
team: id,
|
|
35
36
|
name,
|
|
36
37
|
description: description ?? null,
|
|
38
|
+
...settings === void 0 || settings.slug === void 0 && settings.description === void 0 ? {} : { patch: {
|
|
39
|
+
...settings.slug === void 0 ? {} : { slug: settings.slug },
|
|
40
|
+
...settings.description === void 0 ? {} : { description: settings.description }
|
|
41
|
+
} },
|
|
37
42
|
fields: checked
|
|
38
43
|
}, (value) => ({
|
|
39
44
|
...teamOf(value),
|
|
@@ -41,6 +46,7 @@ function createTeams(options) {
|
|
|
41
46
|
slug: optionalText(recordOf(value, "team")["slug"]) ?? ""
|
|
42
47
|
})).andThen(fields.row)),
|
|
43
48
|
archive: (id) => call("archive_team", { team: id }, (value) => value === true),
|
|
49
|
+
restore: (id) => call("restore_team", { team: id }, (value) => value === true),
|
|
44
50
|
delete: (id) => call("delete_team", { team: id }, (value) => value === true),
|
|
45
51
|
addMember: (teamId, userId) => call("add_team_member", {
|
|
46
52
|
team: teamId,
|
|
@@ -63,6 +69,7 @@ const teamsEvents = defineEvents({
|
|
|
63
69
|
"team.created": event(),
|
|
64
70
|
"team.updated": event(),
|
|
65
71
|
"team.archived": event(),
|
|
72
|
+
"team.restored": event(),
|
|
66
73
|
"team.deleted": event(),
|
|
67
74
|
"team_member.added": event(),
|
|
68
75
|
"team_member.removed": event()
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import { T as ErrorMapper, b as DbError, t as AsyncResult } from "../../result-DZeA5KS6.js";
|
|
3
3
|
import { t as StandardSchemaV1 } from "../../standard-DBV730sF.js";
|
|
4
4
|
import { n as ExtraFields, r as FieldsOf } from "../../block-fields-BE7pInWZ.js";
|
|
5
|
-
import { Ct as Events, dt as TemplateEventData, ut as TemplateApplicationEventData } from "../../events-
|
|
5
|
+
import { Ct as Events, dt as TemplateEventData, ut as TemplateApplicationEventData } from "../../events-Cc9DDQWH.js";
|
|
6
6
|
import { n as Logger } from "../../logger-DWVYUmwi.js";
|
|
7
7
|
import { r as BlockTemporalOptions } from "../../block-helpers-CRpAHrp_.js";
|
|
8
8
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
|
|
9
9
|
import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
|
|
10
|
-
import { c as BlockOf } from "../../define-block-
|
|
10
|
+
import { c as BlockOf } from "../../define-block-DibVN37N.js";
|
|
11
11
|
import { t as ComposedEmail } from "../../email-B3YxEzwC.js";
|
|
12
|
-
import { E as WorkflowStepInfo, x as WorkflowEditor } from "../../types-
|
|
13
|
-
import { i as GraphStepCall } from "../../executor-
|
|
12
|
+
import { E as WorkflowStepInfo, x as WorkflowEditor } from "../../types-BdaBfYIw.js";
|
|
13
|
+
import { i as GraphStepCall } from "../../executor-C-Ox9eKq.js";
|
|
14
14
|
//#region src/blocks/templates/merge-fields.d.ts
|
|
15
15
|
/** How a rendered value is escaped: for HTML markup, or left as it is. */
|
|
16
16
|
type MergeEscape = "html" | "text";
|
|
@@ -3,14 +3,14 @@ import { T as ErrorMapper, t as AsyncResult } from "../../result-DZeA5KS6.js";
|
|
|
3
3
|
import { t as StandardSchemaV1 } from "../../standard-DBV730sF.js";
|
|
4
4
|
import { n as ExtraFields, r as FieldsOf } from "../../block-fields-BE7pInWZ.js";
|
|
5
5
|
import { $ as RecordRef } from "../../types-DFdg_4yN.js";
|
|
6
|
-
import { Ct as Events, ft as TimeEntryEventData, pt as TimesheetEventData } from "../../events-
|
|
6
|
+
import { Ct as Events, ft as TimeEntryEventData, pt as TimesheetEventData } from "../../events-Cc9DDQWH.js";
|
|
7
7
|
import { n as Logger } from "../../logger-DWVYUmwi.js";
|
|
8
8
|
import { a as BlockTenantOptions, r as BlockTemporalOptions } from "../../block-helpers-CRpAHrp_.js";
|
|
9
9
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
|
|
10
10
|
import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
|
|
11
|
-
import { c as BlockOf } from "../../define-block-
|
|
11
|
+
import { c as BlockOf } from "../../define-block-DibVN37N.js";
|
|
12
12
|
import { n as Money } from "../../money-BNRdJQzA.js";
|
|
13
|
-
import { t as CloudEvent } from "../../cloud-event-
|
|
13
|
+
import { t as CloudEvent } from "../../cloud-event-DcJwder2.js";
|
|
14
14
|
import { n as MetricDefinition } from "../../metric-definition-EAYI1r2n.js";
|
|
15
15
|
//#region src/blocks/time-tracking/time-tracking.d.ts
|
|
16
16
|
interface TimeTrackingOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockTemporalOptions, BlockTenantOptions {
|
|
@@ -38,6 +38,7 @@ interface TimeEntry<F extends object = Record<never, never>> {
|
|
|
38
38
|
readonly id: string;
|
|
39
39
|
readonly organizationId: string;
|
|
40
40
|
readonly userId: string;
|
|
41
|
+
readonly employeeId?: string;
|
|
41
42
|
/** The record the time is tracked on; `undefined` for an unattached entry. */
|
|
42
43
|
readonly subject: RecordRef | undefined;
|
|
43
44
|
readonly startedAt: Temporal.Instant;
|
|
@@ -70,6 +71,7 @@ interface LogTimeInput<F extends object = Record<never, never>> extends TimeEntr
|
|
|
70
71
|
readonly endedAt: Temporal.Instant;
|
|
71
72
|
/** Another member; needs `time_tracking.manage`. Default: the caller. */
|
|
72
73
|
readonly userId?: string;
|
|
74
|
+
readonly employeeId?: string;
|
|
73
75
|
}
|
|
74
76
|
/** The fields to change. `null` clears the subject, rate or note. */
|
|
75
77
|
interface TimeEntryPatch<F extends object = Record<never, never>> {
|
|
@@ -85,6 +87,7 @@ interface TimeEntryPatch<F extends object = Record<never, never>> {
|
|
|
85
87
|
interface TimeEntryListOptions {
|
|
86
88
|
/** Another member's entries; needs `time_tracking.read`. Default: the caller. */
|
|
87
89
|
readonly userId?: string;
|
|
90
|
+
readonly employeeId?: string;
|
|
88
91
|
/** Every member's entries; needs `time_tracking.read`. */
|
|
89
92
|
readonly everyone?: boolean;
|
|
90
93
|
/** Entries that end after this instant. */
|
|
@@ -101,6 +104,7 @@ interface Timesheet {
|
|
|
101
104
|
readonly id?: string;
|
|
102
105
|
readonly organizationId: string;
|
|
103
106
|
readonly userId: string;
|
|
107
|
+
readonly employeeId?: string;
|
|
104
108
|
/** The Monday the week starts on. */
|
|
105
109
|
readonly week: Temporal.PlainDate;
|
|
106
110
|
readonly status: TimesheetStatus;
|
|
@@ -108,6 +112,12 @@ interface Timesheet {
|
|
|
108
112
|
readonly note?: string;
|
|
109
113
|
readonly submittedAt?: Temporal.Instant;
|
|
110
114
|
readonly approvedAt?: Temporal.Instant;
|
|
115
|
+
/** With `options.approvals: false`: who decided the week. */
|
|
116
|
+
readonly decidedBy?: string;
|
|
117
|
+
/** With `options.approvals: false`: when the week was decided. */
|
|
118
|
+
readonly decidedAt?: Temporal.Instant;
|
|
119
|
+
/** With `options.approvals: false`: the note of a rejection. */
|
|
120
|
+
readonly decisionNote?: string;
|
|
111
121
|
}
|
|
112
122
|
interface TimesheetTotals {
|
|
113
123
|
/** Every entry, running ones up to now. */
|
|
@@ -127,6 +137,7 @@ interface TimesheetDetail<F extends object = Record<never, never>> extends Times
|
|
|
127
137
|
interface TimesheetListOptions {
|
|
128
138
|
/** Another member's timesheets; needs `time_tracking.read`. */
|
|
129
139
|
readonly userId?: string;
|
|
140
|
+
readonly employeeId?: string;
|
|
130
141
|
readonly status?: TimesheetStatus;
|
|
131
142
|
readonly pageSize?: number;
|
|
132
143
|
/** Weeks before this one, for the next page. */
|
|
@@ -152,11 +163,21 @@ interface TimeTracking<F extends object = Record<never, never>> {
|
|
|
152
163
|
/** Newest first. */
|
|
153
164
|
list(options?: TimeEntryListOptions): AsyncResult<readonly TimeEntry<F>[]>;
|
|
154
165
|
/** A member's week (the caller's by default) with its entries and totals. */
|
|
155
|
-
timesheet(week: Temporal.PlainDate, userId?: string): AsyncResult<TimesheetDetail<F>>;
|
|
166
|
+
timesheet(week: Temporal.PlainDate, userId?: string, employeeId?: string): AsyncResult<TimesheetDetail<F>>;
|
|
156
167
|
/** Sends the caller's week for approval; it locks until a rejection. */
|
|
157
|
-
submit(week: Temporal.PlainDate, note?: string): AsyncResult<Timesheet>;
|
|
168
|
+
submit(week: Temporal.PlainDate, note?: string, employeeId?: string): AsyncResult<Timesheet>;
|
|
158
169
|
/** Unlocks an approved week; needs `time_tracking.manage`. */
|
|
159
170
|
reopen(timesheetId: string): AsyncResult<Timesheet>;
|
|
171
|
+
/**
|
|
172
|
+
* With `options.approvals: false`: approves a submitted week; needs
|
|
173
|
+
* `time_tracking.approve`, and nobody approves their own.
|
|
174
|
+
*/
|
|
175
|
+
approve(timesheetId: string): AsyncResult<Timesheet>;
|
|
176
|
+
/**
|
|
177
|
+
* With `options.approvals: false`: sends a submitted week back with a note,
|
|
178
|
+
* which unlocks it.
|
|
179
|
+
*/
|
|
180
|
+
reject(timesheetId: string, note?: string): AsyncResult<Timesheet>;
|
|
160
181
|
/** Newest week first. */
|
|
161
182
|
timesheets(options?: TimesheetListOptions): AsyncResult<readonly Timesheet[]>;
|
|
162
183
|
}
|
|
@@ -264,6 +285,8 @@ type TimeTrackingEvents = {
|
|
|
264
285
|
readonly "timesheet.submitted": TimesheetEventData;
|
|
265
286
|
readonly "timesheet.approved": TimesheetEventData;
|
|
266
287
|
readonly "timesheet.reopened": TimesheetEventData;
|
|
288
|
+
/** With `options.approvals: false`: an approver rejected the week. */
|
|
289
|
+
readonly "timesheet.rejected": TimesheetEventData;
|
|
267
290
|
};
|
|
268
291
|
/** The `time-tracking` block's event types, for its manifest and `onBlockEvent`. */
|
|
269
292
|
export declare const timeTrackingEvents: Events<TimeTrackingEvents>;
|
|
@@ -2,7 +2,7 @@ import { n as isRecord } from "../../guards-6F2bCtQR.js";
|
|
|
2
2
|
import { s as nowInstant } from "../../temporal-Dbo0fLzc.js";
|
|
3
3
|
import { t as temporal } from "../../temporal-required-DcLhnDhQ.js";
|
|
4
4
|
import { t as AsyncResult } from "../../result-ntFBW2p2.js";
|
|
5
|
-
import { t as timeTrackingSqlOptions } from "../../options-
|
|
5
|
+
import { t as timeTrackingSqlOptions } from "../../options-eTepQ1rZ.js";
|
|
6
6
|
import { r as defineMetric } from "../../metric-definition-BjxVn4R5.js";
|
|
7
7
|
import { n as event, t as defineEvents } from "../../event-map-CtPFhcOp.js";
|
|
8
8
|
import { A as recordsOf, C as optionalInstant, L as textOf, O as recordOf, U as rpcTransport, V as dbTransport, W as sqlTransport, d as enumOrThrow, j as requiredInstant, m as instantArg, n as applyTemporal, o as blockCall, w as optionalText } from "../../block-helpers-B0f0ZVb5.js";
|
|
@@ -29,7 +29,8 @@ function entryOf(value, fn) {
|
|
|
29
29
|
return {
|
|
30
30
|
id: textOf(row["id"]),
|
|
31
31
|
organizationId: textOf(row["organizationId"]),
|
|
32
|
-
userId:
|
|
32
|
+
userId: optionalText(row["userId"]) ?? "",
|
|
33
|
+
...optional("employeeId", optionalText(row["employeeId"])),
|
|
33
34
|
subject: optionalRecordRefOf(row["subjectType"], row["subjectId"]),
|
|
34
35
|
startedAt: requiredInstant(row["startedAt"], "startedAt"),
|
|
35
36
|
billable: row["billable"] === true,
|
|
@@ -46,14 +47,18 @@ function timesheetOf(value, fn) {
|
|
|
46
47
|
const row = recordOf(value, fn);
|
|
47
48
|
return {
|
|
48
49
|
organizationId: textOf(row["organizationId"]),
|
|
49
|
-
userId:
|
|
50
|
+
userId: optionalText(row["userId"]) ?? "",
|
|
51
|
+
...optional("employeeId", optionalText(row["employeeId"])),
|
|
50
52
|
week: temporal().PlainDate.from(textOf(row["week"])),
|
|
51
53
|
status: enumOrThrow(row["status"], STATUSES, "timesheet status"),
|
|
52
54
|
...optional("id", optionalText(row["id"])),
|
|
53
55
|
...optional("approvalId", optionalText(row["approvalId"])),
|
|
54
56
|
...optional("note", optionalText(row["note"])),
|
|
55
57
|
...optional("submittedAt", optionalInstant(row["submittedAt"])),
|
|
56
|
-
...optional("approvedAt", optionalInstant(row["approvedAt"]))
|
|
58
|
+
...optional("approvedAt", optionalInstant(row["approvedAt"])),
|
|
59
|
+
...optional("decidedBy", optionalText(row["decidedBy"])),
|
|
60
|
+
...optional("decidedAt", optionalInstant(row["decidedAt"])),
|
|
61
|
+
...optional("decisionNote", optionalText(row["decisionNote"]))
|
|
57
62
|
};
|
|
58
63
|
}
|
|
59
64
|
function totalsOf(value) {
|
|
@@ -122,6 +127,7 @@ function createTimeTracking(options) {
|
|
|
122
127
|
rate_currency: input.rate?.currency ?? null,
|
|
123
128
|
note: input.note ?? null,
|
|
124
129
|
user_id: input.userId ?? null,
|
|
130
|
+
...optional("employee_id", input.employeeId),
|
|
125
131
|
fields: checked
|
|
126
132
|
}, (value) => entryOf(value, "log_time")).andThen(fields.row)));
|
|
127
133
|
},
|
|
@@ -145,12 +151,14 @@ function createTimeTracking(options) {
|
|
|
145
151
|
subject_type: list.subject?.type ?? null,
|
|
146
152
|
subject_id: list.subject?.id ?? null,
|
|
147
153
|
everyone: list.everyone ?? false,
|
|
148
|
-
page_size: list.pageSize ?? null
|
|
154
|
+
page_size: list.pageSize ?? null,
|
|
155
|
+
...optional("employee_id", list.employeeId)
|
|
149
156
|
}, (value) => recordsOf(value, "list_time_entries").map((row) => entryOf(row, "list_time_entries"))).andThen(fields.rows)),
|
|
150
|
-
timesheet: (week, userId) => tenant().andThen((organizationId) => call("get_timesheet", {
|
|
157
|
+
timesheet: (week, userId, employeeId) => tenant().andThen((organizationId) => call("get_timesheet", {
|
|
151
158
|
tenant: organizationId,
|
|
152
159
|
week: week.toString(),
|
|
153
|
-
user_id: userId ?? null
|
|
160
|
+
user_id: userId ?? null,
|
|
161
|
+
...optional("employee_id", employeeId)
|
|
154
162
|
}, (value) => {
|
|
155
163
|
const row = recordOf(value, "get_timesheet");
|
|
156
164
|
return {
|
|
@@ -162,18 +170,25 @@ function createTimeTracking(options) {
|
|
|
162
170
|
...detail,
|
|
163
171
|
entries
|
|
164
172
|
})))),
|
|
165
|
-
submit: (week, note) => tenant().andThen((organizationId) => call("submit_timesheet", {
|
|
173
|
+
submit: (week, note, employeeId) => tenant().andThen((organizationId) => call("submit_timesheet", {
|
|
166
174
|
tenant: organizationId,
|
|
167
175
|
week: week.toString(),
|
|
168
|
-
note: note ?? null
|
|
176
|
+
note: note ?? null,
|
|
177
|
+
...optional("employee_id", employeeId)
|
|
169
178
|
}, (value) => timesheetOf(value, "submit_timesheet"))),
|
|
179
|
+
approve: (timesheetId) => call("approve_timesheet", { timesheet_id: timesheetId }, (value) => timesheetOf(value, "approve_timesheet")),
|
|
180
|
+
reject: (timesheetId, note) => call("reject_timesheet", {
|
|
181
|
+
timesheet_id: timesheetId,
|
|
182
|
+
note: note ?? null
|
|
183
|
+
}, (value) => timesheetOf(value, "reject_timesheet")),
|
|
170
184
|
reopen: (timesheetId) => call("reopen_timesheet", { timesheet_id: timesheetId }, (value) => timesheetOf(value, "reopen_timesheet")),
|
|
171
185
|
timesheets: (list = {}) => tenant().andThen((organizationId) => call("list_timesheets", {
|
|
172
186
|
tenant: organizationId,
|
|
173
187
|
user_id: list.userId ?? null,
|
|
174
188
|
status: list.status ?? null,
|
|
175
189
|
page_size: list.pageSize ?? null,
|
|
176
|
-
before: list.before?.toString() ?? null
|
|
190
|
+
before: list.before?.toString() ?? null,
|
|
191
|
+
...optional("employee_id", list.employeeId)
|
|
177
192
|
}, (value) => recordsOf(value, "list_timesheets").map((row) => timesheetOf(row, "list_timesheets"))))
|
|
178
193
|
}, options.hooks, {
|
|
179
194
|
block: "time-tracking",
|
|
@@ -302,7 +317,8 @@ const timeTrackingEvents = defineEvents({
|
|
|
302
317
|
"time_entry.deleted": event(),
|
|
303
318
|
"timesheet.submitted": event(),
|
|
304
319
|
"timesheet.approved": event(),
|
|
305
|
-
"timesheet.reopened": event()
|
|
320
|
+
"timesheet.reopened": event(),
|
|
321
|
+
"timesheet.rejected": event()
|
|
306
322
|
});
|
|
307
323
|
//#endregion
|
|
308
324
|
//#region src/blocks/time-tracking/manifest.ts
|
|
@@ -5,10 +5,10 @@ import { n as Logger } from "../../logger-DWVYUmwi.js";
|
|
|
5
5
|
import { a as BlockTenantOptions, i as CursorPageOptions, r as BlockTemporalOptions } from "../../block-helpers-CRpAHrp_.js";
|
|
6
6
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
|
|
7
7
|
import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
|
|
8
|
-
import { t as BetterSupabase } from "../../define-
|
|
9
|
-
import { c as BlockOf } from "../../define-block-
|
|
10
|
-
import { i as EventSink, t as CloudEvent } from "../../cloud-event-
|
|
11
|
-
import { i as ListDefinition } from "../../list-query-
|
|
8
|
+
import { t as BetterSupabase } from "../../define-BLP6XtoL.js";
|
|
9
|
+
import { c as BlockOf } from "../../define-block-DibVN37N.js";
|
|
10
|
+
import { i as EventSink, t as CloudEvent } from "../../cloud-event-DcJwder2.js";
|
|
11
|
+
import { i as ListDefinition } from "../../list-query-XHoYDlRN.js";
|
|
12
12
|
//#region src/blocks/timeline/timeline.d.ts
|
|
13
13
|
/**
|
|
14
14
|
* Where a timeline entry comes from: `event` for an `activity_entries` row that
|
|
@@ -3,12 +3,12 @@ import { t as AsyncResult } from "../../result-DZeA5KS6.js";
|
|
|
3
3
|
import { t as StandardSchemaV1 } from "../../standard-DBV730sF.js";
|
|
4
4
|
import { n as ExtraFields, r as FieldsOf } from "../../block-fields-BE7pInWZ.js";
|
|
5
5
|
import { Dt as HasFlag, Mt as Plugin, Pt as RepositoryExtension, Z as PrimaryKeyValue } from "../../types-DFdg_4yN.js";
|
|
6
|
-
import { A as CollaborationEventData, Ct as Events } from "../../events-
|
|
6
|
+
import { A as CollaborationEventData, Ct as Events } from "../../events-Cc9DDQWH.js";
|
|
7
7
|
import { n as Logger } from "../../logger-DWVYUmwi.js";
|
|
8
8
|
import { n as BlockOptions } from "../../block-helpers-CRpAHrp_.js";
|
|
9
9
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
|
|
10
10
|
import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
|
|
11
|
-
import { c as BlockOf } from "../../define-block-
|
|
11
|
+
import { c as BlockOf } from "../../define-block-DibVN37N.js";
|
|
12
12
|
//#region src/blocks/trash/trash.d.ts
|
|
13
13
|
interface TrashOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockOptions {
|
|
14
14
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
|
|
2
|
-
import { c as BlockOf } from "../../define-block-
|
|
3
|
-
import { n as Controller } from "../../controller-
|
|
2
|
+
import { c as BlockOf } from "../../define-block-DibVN37N.js";
|
|
3
|
+
import { n as Controller } from "../../controller-CwGXms17.js";
|
|
4
4
|
import { a as UndoToken, c as undoToken, i as UndoOptions, n as Undo, o as createUndo, r as UndoCall, s as isUndoToken, t as UNDO_FUNCTIONS } from "../../undo-B1jwnVyN.js";
|
|
5
5
|
//#region src/blocks/undo/client.d.ts
|
|
6
6
|
interface UndoEntry {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { Mt as Plugin } from "../../types-DFdg_4yN.js";
|
|
3
3
|
import { t as UpdatedAtSqlOptions } from "../../options-B_NrjVDt.js";
|
|
4
|
-
import { r as Block } from "../../define-block-
|
|
4
|
+
import { r as Block } from "../../define-block-DibVN37N.js";
|
|
5
5
|
//#region src/blocks/updated-at/extension.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* The `updated-at` block's repository extension. Stamps the columns generated
|
|
@@ -2,8 +2,8 @@ import { b as DbError } from "../../result-DZeA5KS6.js";
|
|
|
2
2
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
|
|
3
3
|
import { n as StripeSource, t as StripeClient } from "../../stripe-X22LjuH-.js";
|
|
4
4
|
import { _ as reportUsageToStripe, a as Usage, c as UsageEntry, d as UsageMeterInfo, f as UsageOptions, g as createUsage, h as UsageStatus, i as ReportUsageResult, l as UsageHistoryEntry, m as UsageRecorded, n as RecordUsageOptions, o as UsageBatchRecorded, p as UsagePeriod, r as ReportUsageOptions, s as UsageBreakdownEntry, t as PurgeUsageOptions, u as UsageHistoryOptions } from "../../usage-Dp45V42p.js";
|
|
5
|
-
import { c as BlockOf } from "../../define-block-
|
|
6
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
5
|
+
import { c as BlockOf } from "../../define-block-DibVN37N.js";
|
|
6
|
+
import { n as Controller, t as AuthPort } from "../../controller-CwGXms17.js";
|
|
7
7
|
//#region src/blocks/usage/manifest.d.ts
|
|
8
8
|
/** The `usage` block's manifest (ADR 0029). */
|
|
9
9
|
export declare const usageBlock: BlockOf<"usage", typeof createUsage>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { T as ErrorMapper, b as DbError, t as AsyncResult } from "../../result-DZeA5KS6.js";
|
|
3
|
-
import { Ct as Events } from "../../events-
|
|
3
|
+
import { Ct as Events } from "../../events-Cc9DDQWH.js";
|
|
4
4
|
import { n as Logger } from "../../logger-DWVYUmwi.js";
|
|
5
5
|
import { r as BlockTemporalOptions } from "../../block-helpers-CRpAHrp_.js";
|
|
6
6
|
import { s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
|
|
7
7
|
import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
|
|
8
8
|
import { a as ProblemFormat, t as BlockProblemOptions } from "../../problem-DNwN8iGz.js";
|
|
9
|
-
import { c as BlockOf } from "../../define-block-
|
|
9
|
+
import { c as BlockOf } from "../../define-block-DibVN37N.js";
|
|
10
10
|
import { n as Jwks } from "../../jws-D0toeQlA.js";
|
|
11
11
|
//#region src/blocks/vercel-marketplace/partner-api.d.ts
|
|
12
12
|
/** The Vercel environments a resource's secrets reach. */
|
|
@@ -3,12 +3,12 @@ import { t as AsyncResult } from "../../result-DZeA5KS6.js";
|
|
|
3
3
|
import { t as StandardSchemaV1 } from "../../standard-DBV730sF.js";
|
|
4
4
|
import { n as ExtraFields, r as FieldsOf } from "../../block-fields-BE7pInWZ.js";
|
|
5
5
|
import { $ as RecordRef } from "../../types-DFdg_4yN.js";
|
|
6
|
-
import { A as CollaborationEventData, Ct as Events } from "../../events-
|
|
6
|
+
import { A as CollaborationEventData, Ct as Events } from "../../events-Cc9DDQWH.js";
|
|
7
7
|
import { n as Logger } from "../../logger-DWVYUmwi.js";
|
|
8
8
|
import { n as BlockOptions } from "../../block-helpers-CRpAHrp_.js";
|
|
9
9
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
|
|
10
10
|
import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
|
|
11
|
-
import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, mn as RecordRowInput, rn as RecordBinding } from "../../define-block-
|
|
11
|
+
import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, mn as RecordRowInput, rn as RecordBinding } from "../../define-block-DibVN37N.js";
|
|
12
12
|
//#region src/blocks/versions/json-patch.d.ts
|
|
13
13
|
/** A JSON value, as a version's content holds it. */
|
|
14
14
|
type JsonValue = null | boolean | number | string | readonly JsonValue[] | {
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import { t as AsyncResult } from "../../result-DZeA5KS6.js";
|
|
3
3
|
import { t as StandardSchemaV1 } from "../../standard-DBV730sF.js";
|
|
4
4
|
import { n as ExtraFields, r as FieldsOf } from "../../block-fields-BE7pInWZ.js";
|
|
5
|
-
import { Ct as Events, G as InviteCodeEventData, Z as OrganizationEventData, mt as WaitlistEventData } from "../../events-
|
|
5
|
+
import { Ct as Events, G as InviteCodeEventData, Z as OrganizationEventData, mt as WaitlistEventData } from "../../events-Cc9DDQWH.js";
|
|
6
6
|
import { n as Logger } from "../../logger-DWVYUmwi.js";
|
|
7
7
|
import { n as BlockOptions } from "../../block-helpers-CRpAHrp_.js";
|
|
8
8
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
|
|
9
9
|
import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
|
|
10
|
-
import { c as BlockOf } from "../../define-block-
|
|
10
|
+
import { c as BlockOf } from "../../define-block-DibVN37N.js";
|
|
11
11
|
import { n as VerifyOptions } from "../../signatures-Dkx9OE8j.js";
|
|
12
12
|
//#region src/blocks/waitlist/waitlist.d.ts
|
|
13
13
|
type WaitlistStatus = "waiting" | "approved" | "rejected" | "joined";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { T as ErrorMapper, f as Result, t as AsyncResult } from "../../result-DZeA5KS6.js";
|
|
3
3
|
import { Ft as RequestContext } from "../../types-DFdg_4yN.js";
|
|
4
|
-
import { Ct as Events, U as IncomingWebhookEventData, ht as WebhookEventData, o as EventHub } from "../../events-
|
|
5
|
-
import { i as CredentialRef, o as CredentialToken, r as CredentialProvider } from "../../provider-
|
|
4
|
+
import { Ct as Events, U as IncomingWebhookEventData, ht as WebhookEventData, o as EventHub } from "../../events-Cc9DDQWH.js";
|
|
5
|
+
import { i as CredentialRef, o as CredentialToken, r as CredentialProvider } from "../../provider-ClrIplXa.js";
|
|
6
6
|
import { r as BlockTemporalOptions } from "../../block-helpers-CRpAHrp_.js";
|
|
7
7
|
import { n as SqlClient } from "../../executor-hGjrop3A.js";
|
|
8
8
|
import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
|
|
9
9
|
import { n as BlockHooks } from "../../block-hooks-DZN2w69m.js";
|
|
10
10
|
import { t as BlockProblemOptions } from "../../problem-DNwN8iGz.js";
|
|
11
11
|
import { g as JobHandler, x as QueueSchemas, y as Queue } from "../../types-Czq9Xtpa.js";
|
|
12
|
-
import { c as BlockOf } from "../../define-block-
|
|
13
|
-
import { i as EventSink, t as CloudEvent } from "../../cloud-event-
|
|
14
|
-
import { g as SubscriberPolicy, i as AuthorizationHooks } from "../../authorization-hooks-
|
|
12
|
+
import { c as BlockOf } from "../../define-block-DibVN37N.js";
|
|
13
|
+
import { i as EventSink, t as CloudEvent } from "../../cloud-event-DcJwder2.js";
|
|
14
|
+
import { g as SubscriberPolicy, i as AuthorizationHooks } from "../../authorization-hooks-DtzreCAq.js";
|
|
15
15
|
import { a as verifySharedSecret, i as signWebhook, n as VerifyOptions, o as verifyWebhook, r as WebhookInput, t as VerifiedWebhook } from "../../signatures-Dkx9OE8j.js";
|
|
16
|
-
import { a as DatabaseWebhookPayload, c as hookError, d as stripeInboxVerify, f as verifyStripeWebhook, i as DatabaseChange, l as isDatabaseWebhook, n as AuthHookKind, o as authHook, r as AuthHooks, s as databaseChange, t as AuthHookError, u as signStripeWebhook } from "../../verify-
|
|
16
|
+
import { a as DatabaseWebhookPayload, c as hookError, d as stripeInboxVerify, f as verifyStripeWebhook, i as DatabaseChange, l as isDatabaseWebhook, n as AuthHookKind, o as authHook, r as AuthHooks, s as databaseChange, t as AuthHookError, u as signStripeWebhook } from "../../verify-CI8LgSpv.js";
|
|
17
17
|
import { A as IncomingVerify, C as isPublicAddress, D as IncomingDelivery, E as CreatedIncomingWebhook, F as UpdateIncomingWebhookInput, I as UpdatedIncomingWebhook, M as IncomingWebhooks, N as IncomingWebhooksOptions, O as IncomingDestination, P as RotatedIncomingSecret, S as ResolveHost, T as CreateIncomingWebhookInput, _ as WebhookResponse, a as WebhookSignInput, b as AllowUrl, c as standardWebhooks, d as RotateSecretOptions, f as WebhookSecretStore, g as WebhookRequest, h as WebhookPolicyError, i as StandardWebhooksOptions, j as IncomingWebhook, k as IncomingDestinationResult, l as standardWebhooksAsymmetric, m as FetchTransportOptions, n as HmacSignerOptions, o as WebhookSigner, p as sqlSecretStore, r as RawSigner, s as hmacSigner, t as AsymmetricWebhooksOptions, u as webhookPublicKey, v as WebhookTransport, w as publicUrl, x as PublicUrlOptions, y as fetchTransport } from "../../signers-BKgmVh6A.js";
|
|
18
18
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
19
19
|
//#region src/core/hmac.d.ts
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { b as DbError } from "../../result-DZeA5KS6.js";
|
|
2
2
|
import { t as StandardSchemaV1 } from "../../standard-DBV730sF.js";
|
|
3
3
|
import { r as FieldsOf } from "../../block-fields-BE7pInWZ.js";
|
|
4
|
-
import { Ct as Events, gt as WorkflowEventData } from "../../events-
|
|
4
|
+
import { Ct as Events, gt as WorkflowEventData } from "../../events-Cc9DDQWH.js";
|
|
5
5
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
|
|
6
|
-
import { c as BlockOf } from "../../define-block-
|
|
6
|
+
import { c as BlockOf } from "../../define-block-DibVN37N.js";
|
|
7
7
|
import { g as Workflows, n as WorkflowRun } from "../../workflows-B0ZPAQu0.js";
|
|
8
|
-
import { p as SubscriptionStatus } from "../../topic-
|
|
9
|
-
import { n as TopicPort } from "../../watch-topic-
|
|
10
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
11
|
-
import { A as WorkflowVersionOwner, B as WorkflowGraphNode, C as WorkflowGrantPrincipal, D as WorkflowTrigger, E as WorkflowStepInfo, F as WorkflowFilterCondition, G as durationMs, H as WorkflowNodeKind, I as WorkflowFilterField, J as matchesFilter, K as evaluateCondition, L as WorkflowGraph, M as GraphScope, N as WorkflowCondition, O as WorkflowTriggerKind, P as WorkflowConditionOperator, R as WorkflowGraphDiff, S as WorkflowGrantAction, T as WorkflowNodeRunStatus, U as approved, V as WorkflowNodeCondition, W as diffGraphs, X as validateGraph, Y as topologicalOrder, _ as WorkflowCredential, a as CredentialInput, b as WorkflowDefinitionScope, c as GraphCompiler, d as RunInput, f as TestRunInput, g as WorkflowBuilderHooks, h as WorkflowAlert, i as BuilderStarter, j as WorkflowVersionStatus, k as WorkflowVersion, l as NodeRunRecord, m as VersionSaveOptions, n as BuilderOptions, o as DefinitionInput, p as TriggerInput, q as filterConditionOf, r as BuilderStartCall, s as GrantInput, t as AlertInput, u as PublishOptions, v as WorkflowDefinition, w as WorkflowNodeRun, x as WorkflowEditor, y as WorkflowDefinitionGrant, z as WorkflowGraphEdge } from "../../types-
|
|
12
|
-
import { a as GraphSubject, c as graphRunFields, i as GraphStepCall, l as startNodeOf, n as GraphRunFields, o as approvalToken, r as GraphRuntime, s as executeGraph, t as GraphApprovalCall } from "../../executor-
|
|
8
|
+
import { p as SubscriptionStatus } from "../../topic-CpsKVBot.js";
|
|
9
|
+
import { n as TopicPort } from "../../watch-topic-BaMZX139.js";
|
|
10
|
+
import { n as Controller, t as AuthPort } from "../../controller-CwGXms17.js";
|
|
11
|
+
import { A as WorkflowVersionOwner, B as WorkflowGraphNode, C as WorkflowGrantPrincipal, D as WorkflowTrigger, E as WorkflowStepInfo, F as WorkflowFilterCondition, G as durationMs, H as WorkflowNodeKind, I as WorkflowFilterField, J as matchesFilter, K as evaluateCondition, L as WorkflowGraph, M as GraphScope, N as WorkflowCondition, O as WorkflowTriggerKind, P as WorkflowConditionOperator, R as WorkflowGraphDiff, S as WorkflowGrantAction, T as WorkflowNodeRunStatus, U as approved, V as WorkflowNodeCondition, W as diffGraphs, X as validateGraph, Y as topologicalOrder, _ as WorkflowCredential, a as CredentialInput, b as WorkflowDefinitionScope, c as GraphCompiler, d as RunInput, f as TestRunInput, g as WorkflowBuilderHooks, h as WorkflowAlert, i as BuilderStarter, j as WorkflowVersionStatus, k as WorkflowVersion, l as NodeRunRecord, m as VersionSaveOptions, n as BuilderOptions, o as DefinitionInput, p as TriggerInput, q as filterConditionOf, r as BuilderStartCall, s as GrantInput, t as AlertInput, u as PublishOptions, v as WorkflowDefinition, w as WorkflowNodeRun, x as WorkflowEditor, y as WorkflowDefinitionGrant, z as WorkflowGraphEdge } from "../../types-BdaBfYIw.js";
|
|
12
|
+
import { a as GraphSubject, c as graphRunFields, i as GraphStepCall, l as startNodeOf, n as GraphRunFields, o as approvalToken, r as GraphRuntime, s as executeGraph, t as GraphApprovalCall } from "../../executor-C-Ox9eKq.js";
|
|
13
13
|
//#region src/blocks/workflow-editor/workflow-editor.d.ts
|
|
14
14
|
/**
|
|
15
15
|
* The `workflow-editor` module's definitions, versions, triggers, credentials,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { b as DbError } from "../../result-DZeA5KS6.js";
|
|
2
|
-
import { Ct as Events, _t as WorkflowRunEventData } from "../../events-
|
|
2
|
+
import { Ct as Events, _t as WorkflowRunEventData } from "../../events-Cc9DDQWH.js";
|
|
3
3
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-DWZSJrwN.js";
|
|
4
|
-
import { c as BlockOf } from "../../define-block-
|
|
4
|
+
import { c as BlockOf } from "../../define-block-DibVN37N.js";
|
|
5
5
|
import { _ as WorkflowsHooks, a as WorkflowRunStatus, c as WorkflowScheduleInput, d as WorkflowStartTicket, f as WorkflowStarter, g as Workflows, h as WorkflowTickResult, i as WorkflowRunRecord, l as WorkflowStartCall, m as WorkflowTickOptions, n as WorkflowRun, o as WorkflowRunsQuery, s as WorkflowSchedule, u as WorkflowStartRequest, v as WorkflowsOptions, y as createWorkflows } from "../../workflows-B0ZPAQu0.js";
|
|
6
|
-
import { p as SubscriptionStatus } from "../../topic-
|
|
7
|
-
import { n as TopicPort } from "../../watch-topic-
|
|
8
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
6
|
+
import { p as SubscriptionStatus } from "../../topic-CpsKVBot.js";
|
|
7
|
+
import { n as TopicPort } from "../../watch-topic-BaMZX139.js";
|
|
8
|
+
import { n as Controller, t as AuthPort } from "../../controller-CwGXms17.js";
|
|
9
9
|
//#region src/blocks/workflows/client.d.ts
|
|
10
10
|
interface WorkflowRunsControllerOptions {
|
|
11
11
|
readonly client: {
|
|
@@ -6,7 +6,7 @@ import { n as Logger } from "./logger-DWVYUmwi.js";
|
|
|
6
6
|
import { n as BlockOptions } from "./block-helpers-CRpAHrp_.js";
|
|
7
7
|
import { n as BlockHooks } from "./block-hooks-DZN2w69m.js";
|
|
8
8
|
import { g as JobHandler } from "./types-Czq9Xtpa.js";
|
|
9
|
-
import { o as WeeklyHours } from "./availability-
|
|
9
|
+
import { o as WeeklyHours } from "./availability-BdeKCHpl.js";
|
|
10
10
|
//#region src/blocks/bookings/series.d.ts
|
|
11
11
|
/** An ISO weekday: 1 is Monday, 7 is Sunday. */
|
|
12
12
|
type BookingWeekday = 1 | 2 | 3 | 4 | 5 | 6 | 7;
|