better-supabase 0.30.0 → 0.32.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-Dao1C0fz.js +383 -0
- package/dist/actor-B5b0i1Fs.js +149 -0
- package/dist/actor-DseNR02I.d.ts +104 -0
- package/dist/adapter-CPPN80mx.js +2231 -0
- package/dist/agents-BEiBtYmh.d.ts +115 -0
- package/dist/ai-cache-D9D36eh4.js +86 -0
- package/dist/ai-cache-FMYzw7lW.d.ts +80 -0
- package/dist/ai-chat-B_P--Ie2.d.ts +532 -0
- package/dist/ai-files-DCMVGSds.js +337 -0
- package/dist/ai-message-cnroprVB.js +13 -0
- package/dist/ai-schedules-D_q1iclL.d.ts +164 -0
- package/dist/ai-sdk/agents/index.d.ts +8 -12
- package/dist/ai-sdk/agents/index.js +10 -12
- package/dist/ai-sdk/batches/index.d.ts +12 -7
- package/dist/ai-sdk/batches/index.js +16 -9
- package/dist/ai-sdk/cache/index.d.ts +2 -4
- package/dist/ai-sdk/cache/index.js +3 -4
- package/dist/ai-sdk/chat/index.d.ts +77 -2
- package/dist/ai-sdk/chat/index.js +179 -28
- package/dist/ai-sdk/embeddings/index.d.ts +2 -2
- package/dist/ai-sdk/embeddings/index.js +1 -1
- package/dist/ai-sdk/files/index.d.ts +3 -5
- package/dist/ai-sdk/files/index.js +5 -6
- package/dist/ai-sdk/index.d.ts +75 -21
- package/dist/ai-sdk/index.js +112 -66
- package/dist/ai-sdk/mcp/index.d.ts +28 -13
- package/dist/ai-sdk/mcp/index.js +56 -17
- package/dist/ai-sdk/memory/index.d.ts +3 -5
- package/dist/ai-sdk/memory/index.js +3 -4
- package/dist/ai-sdk/react/index.d.ts +2 -2
- package/dist/ai-sdk/react/index.js +3 -1
- package/dist/ai-sdk/react/server.d.ts +7 -4
- package/dist/ai-sdk/react/server.js +10 -3
- package/dist/ai-sdk/workflow/index.d.ts +12 -13
- package/dist/ai-sdk/workflow/index.js +17 -17
- package/dist/ai-sdk/workflow/react/index.d.ts +1 -3
- package/dist/ai-sdk/workflow/react/index.js +3 -3
- package/dist/ai-sdk/workflow/react/server.d.ts +1 -3
- package/dist/ai-sdk/workflow/react/server.js +1 -2
- package/dist/anchors-sCLvYj-8.d.ts +36 -0
- package/dist/api-CwzVbbw4.d.ts +483 -0
- package/dist/api-keys-u2sXB-CZ.d.ts +211 -0
- package/dist/api-wwix_K5c.js +691 -0
- package/dist/app-tables-DomvYx5b.d.ts +26 -0
- package/dist/approvals-Da4uAANx.js +166 -0
- package/dist/approvals-idpuhILk.d.ts +127 -0
- package/dist/assistant-CMKsaeJd.d.ts +209 -0
- package/dist/astro/index.d.ts +8 -10
- package/dist/astro/index.js +8 -9
- package/dist/attachments-BWtUQgsL.js +375 -0
- package/dist/attributes-BZNkR2z2.js +51 -0
- package/dist/auth-link-BmJsQG4a.js +117 -0
- package/dist/auth-link-DRjtI1Ky.d.ts +102 -0
- package/dist/auth-module-CVo86UKh.js +50 -0
- package/dist/auth-reply-BMPJQssh.d.ts +9 -0
- package/dist/auth-reply-Cnwn3I_q.js +30 -0
- package/dist/auth-wFlGgwTZ.js +19 -0
- package/dist/authorization-CYu_UKX4.d.ts +3723 -0
- package/dist/authorization-hooks-CldgvzBZ.d.ts +219 -0
- package/dist/authorizer-AswD5q6g.d.ts +116 -0
- package/dist/authorizer-D6po_XZA.js +171 -0
- package/dist/automation-acq3iK9y.js +74 -0
- package/dist/automations-BfH8GJqv.js +27 -0
- package/dist/automations-Bw5cX7oj.js +29 -0
- package/dist/automations-CCc5RUw-.js +31 -0
- package/dist/automations-Dou1t3lt.js +313 -0
- package/dist/availability-CebEOfMN.d.ts +236 -0
- package/dist/base64-CVyKHBBw.js +41 -0
- package/dist/batch-limit-DqQ3d6op.js +4 -0
- package/dist/before-route-Ra3OhI2x.js +29 -0
- package/dist/better-result/index.d.ts +4 -6
- package/dist/better-result/index.js +2 -3
- package/dist/bind-8LYVJE5W.d.ts +102 -0
- package/dist/block-authors-C5z3tGVu.d.ts +10 -0
- package/dist/block-authors-DCQ4zl8e.js +13 -0
- package/dist/block-env-BsLgZL2l.d.ts +30 -0
- package/dist/block-event-listener-DCi7c89M.js +15 -0
- package/dist/block-events-Bp6GPIBN.js +82 -0
- package/dist/block-fields-Bjcv6_zc.js +139 -0
- package/dist/block-fields-Puv5m5D3.d.ts +56 -0
- package/dist/block-helpers-I7UzjNEf.js +435 -0
- package/dist/block-helpers-JxiD1iw4.d.ts +56 -0
- package/dist/block-hooks-CJP5kGEa.d.ts +115 -0
- package/dist/block-hooks-CadxQ9-_.js +129 -0
- package/dist/block-method-DIbWG4Mj.js +20 -0
- package/dist/block-method-QSaPsL2P.d.ts +12 -0
- package/dist/block-subjects-SyJwfgrX.d.ts +4 -0
- package/dist/block-subjects-cRlVtKDO.js +54 -0
- package/dist/block-tenant-Bun03JuO.js +13 -0
- package/dist/block-transport-Bbf1ZZre.d.ts +67 -0
- package/dist/blocks/access-requests/index.d.ts +9 -15
- package/dist/blocks/access-requests/index.js +11 -14
- package/dist/blocks/activities/index.d.ts +13 -21
- package/dist/blocks/activities/index.js +16 -21
- package/dist/blocks/agents/index.d.ts +4 -8
- package/dist/blocks/agents/index.js +11 -14
- package/dist/blocks/ai-cache/index.d.ts +3 -5
- package/dist/blocks/ai-cache/index.js +5 -6
- package/dist/blocks/ai-chat/index.d.ts +10 -19
- package/dist/blocks/ai-chat/index.js +20 -28
- package/dist/blocks/ai-files/index.d.ts +5 -9
- package/dist/blocks/ai-files/index.js +5 -6
- package/dist/blocks/ai-keys/index.d.ts +4 -10
- package/dist/blocks/ai-keys/index.js +14 -18
- package/dist/blocks/ai-schedules/index.d.ts +3 -5
- package/dist/blocks/ai-schedules/index.js +14 -16
- package/dist/blocks/announcements/index.d.ts +12 -20
- package/dist/blocks/announcements/index.js +12 -16
- package/dist/blocks/api-keys/index.d.ts +8 -16
- package/dist/blocks/api-keys/index.js +17 -22
- package/dist/blocks/approvals/index.d.ts +4 -8
- package/dist/blocks/approvals/index.js +7 -173
- package/dist/blocks/assets/index.d.ts +9 -17
- package/dist/blocks/assets/index.js +13 -17
- package/dist/blocks/assignment/index.d.ts +9 -17
- package/dist/blocks/assignment/index.js +10 -14
- package/dist/blocks/attachments/index.d.ts +6 -18
- package/dist/blocks/attachments/index.js +19 -24
- package/dist/blocks/audit/index.d.ts +15 -31
- package/dist/blocks/audit/index.js +27 -35
- package/dist/blocks/automations/index.d.ts +14 -26
- package/dist/blocks/automations/index.js +18 -23
- package/dist/blocks/billable-time/index.d.ts +9 -19
- package/dist/blocks/billable-time/index.js +15 -20
- package/dist/blocks/billing/index.d.ts +12 -22
- package/dist/blocks/billing/index.js +19 -24
- package/dist/blocks/bookings/index.d.ts +8 -18
- package/dist/blocks/bookings/index.js +17 -23
- package/dist/blocks/bulk/index.d.ts +6 -12
- package/dist/blocks/bulk/index.js +10 -13
- package/dist/blocks/calendar/index.d.ts +18 -24
- package/dist/blocks/calendar/index.js +39 -32
- package/dist/blocks/catalog/index.d.ts +12 -20
- package/dist/blocks/catalog/index.js +17 -21
- package/dist/blocks/channels/index.d.ts +9 -17
- package/dist/blocks/channels/index.js +11 -15
- package/dist/blocks/collections/index.d.ts +11 -17
- package/dist/blocks/collections/index.js +13 -16
- package/dist/blocks/comments/index.d.ts +16 -26
- package/dist/blocks/comments/index.js +21 -26
- package/dist/blocks/compliance/index.d.ts +9 -17
- package/dist/blocks/compliance/index.js +13 -17
- package/dist/blocks/connectors/index.d.ts +4 -8
- package/dist/blocks/connectors/index.js +13 -16
- package/dist/blocks/contacts/index.d.ts +10 -18
- package/dist/blocks/contacts/index.js +12 -16
- package/dist/blocks/content/index.d.ts +8 -16
- package/dist/blocks/content/index.js +13 -17
- package/dist/blocks/contracts/index.d.ts +11 -21
- package/dist/blocks/contracts/index.js +17 -22
- package/dist/blocks/courses/index.d.ts +11 -21
- package/dist/blocks/courses/index.js +17 -22
- package/dist/blocks/created-by/index.d.ts +3 -7
- package/dist/blocks/created-by/index.js +4 -5
- package/dist/blocks/custom-fields/index.d.ts +10 -16
- package/dist/blocks/custom-fields/index.js +13 -16
- package/dist/blocks/data-lifecycle/index.d.ts +10 -26
- package/dist/blocks/data-lifecycle/index.js +17 -23
- package/dist/blocks/deals/index.d.ts +12 -20
- package/dist/blocks/deals/index.js +18 -22
- package/dist/blocks/dispatch/index.d.ts +11 -23
- package/dist/blocks/dispatch/index.js +19 -24
- package/dist/blocks/documents/index.d.ts +4 -8
- package/dist/blocks/documents/index.js +9 -12
- package/dist/blocks/domains/index.d.ts +8 -14
- package/dist/blocks/domains/index.js +12 -15
- package/dist/blocks/donations/index.d.ts +13 -23
- package/dist/blocks/donations/index.js +21 -26
- package/dist/blocks/drive/index.d.ts +116 -20
- package/dist/blocks/drive/index.js +138 -26
- package/dist/blocks/employees/index.d.ts +13 -23
- package/dist/blocks/employees/index.js +19 -27
- package/dist/blocks/enrichment/index.d.ts +8 -16
- package/dist/blocks/enrichment/index.js +11 -15
- package/dist/blocks/enrollments/index.d.ts +9 -17
- package/dist/blocks/enrollments/index.js +13 -17
- package/dist/blocks/entitlements/index.d.ts +8 -14
- package/dist/blocks/entitlements/index.js +8 -11
- package/dist/blocks/expenses/index.d.ts +22 -19
- package/dist/blocks/expenses/index.js +25 -23
- package/dist/blocks/field-history/index.d.ts +6 -10
- package/dist/blocks/field-history/index.js +5 -7
- package/dist/blocks/flags/index.d.ts +49 -20
- package/dist/blocks/flags/index.js +65 -19
- package/dist/blocks/forecasts/index.d.ts +10 -16
- package/dist/blocks/forecasts/index.js +11 -14
- package/dist/blocks/forms/index.d.ts +11 -25
- package/dist/blocks/forms/index.js +17 -24
- package/dist/blocks/goals/index.d.ts +8 -12
- package/dist/blocks/goals/index.js +9 -11
- package/dist/blocks/guests/index.d.ts +9 -19
- package/dist/blocks/guests/index.js +14 -19
- package/dist/blocks/hiring/index.d.ts +10 -18
- package/dist/blocks/hiring/index.js +12 -15
- package/dist/blocks/identities/index.d.ts +7 -11
- package/dist/blocks/identities/index.js +7 -9
- package/dist/blocks/imports/index.d.ts +8 -18
- package/dist/blocks/imports/index.js +11 -16
- package/dist/blocks/inbox/index.d.ts +11 -21
- package/dist/blocks/inbox/index.js +26 -23
- package/dist/blocks/incidents/index.d.ts +9 -17
- package/dist/blocks/incidents/index.js +14 -18
- package/dist/blocks/index.d.ts +14 -20
- package/dist/blocks/index.js +17 -20
- package/dist/blocks/inventory/index.d.ts +11 -17
- package/dist/blocks/inventory/index.js +12 -15
- package/dist/blocks/invoices/index.d.ts +34 -21
- package/dist/blocks/invoices/index.js +31 -18
- package/dist/blocks/knowledge/index.d.ts +3 -5
- package/dist/blocks/knowledge/index.js +5 -6
- package/dist/blocks/lead-scoring/index.d.ts +10 -14
- package/dist/blocks/lead-scoring/index.js +11 -13
- package/dist/blocks/leases/index.d.ts +11 -21
- package/dist/blocks/leases/index.js +20 -25
- package/dist/blocks/leave/index.d.ts +50 -17
- package/dist/blocks/leave/index.js +35 -14
- package/dist/blocks/ledger/index.d.ts +9 -17
- package/dist/blocks/ledger/index.js +13 -17
- package/dist/blocks/mail-sync/index.d.ts +6 -12
- package/dist/blocks/mail-sync/index.js +26 -25
- package/dist/blocks/memberships/index.d.ts +5 -9
- package/dist/blocks/memberships/index.js +4 -5
- package/dist/blocks/memory/index.d.ts +4 -8
- package/dist/blocks/memory/index.js +12 -15
- package/dist/blocks/messaging/index.d.ts +14 -24
- package/dist/blocks/messaging/index.js +19 -24
- package/dist/blocks/metrics/index.d.ts +9 -17
- package/dist/blocks/metrics/index.js +14 -18
- package/dist/blocks/mfa/index.d.ts +5 -9
- package/dist/blocks/mfa/index.js +7 -9
- package/dist/blocks/moderation/index.d.ts +9 -17
- package/dist/blocks/moderation/index.js +13 -17
- package/dist/blocks/notifications/index.d.ts +18 -34
- package/dist/blocks/notifications/index.js +36 -84
- package/dist/blocks/numbering/index.d.ts +6 -12
- package/dist/blocks/numbering/index.js +8 -11
- package/dist/blocks/oauth-server/index.d.ts +7 -13
- package/dist/blocks/oauth-server/index.js +12 -15
- package/dist/blocks/onboarding/index.d.ts +7 -13
- package/dist/blocks/onboarding/index.js +8 -11
- package/dist/blocks/orders/index.d.ts +17 -29
- package/dist/blocks/orders/index.js +22 -28
- package/dist/blocks/organizations/index.d.ts +43 -40
- package/dist/blocks/organizations/index.js +21 -20
- package/dist/blocks/outbox/index.d.ts +4 -6
- package/dist/blocks/outbox/index.js +11 -13
- package/dist/blocks/passes/index.d.ts +12 -22
- package/dist/blocks/passes/index.js +20 -25
- package/dist/blocks/permissions/index.d.ts +74 -15
- package/dist/blocks/permissions/index.js +119 -18
- package/dist/blocks/pipelines/index.d.ts +12 -18
- package/dist/blocks/pipelines/index.js +12 -15
- package/dist/blocks/posts/index.d.ts +10 -18
- package/dist/blocks/posts/index.js +15 -19
- package/dist/blocks/profiles/index.d.ts +8 -12
- package/dist/blocks/profiles/index.js +9 -11
- package/dist/blocks/promotions/index.d.ts +11 -17
- package/dist/blocks/promotions/index.js +13 -16
- package/dist/blocks/push/index.d.ts +19 -17
- package/dist/blocks/push/index.js +33 -20
- package/dist/blocks/queue/index.d.ts +187 -39
- package/dist/blocks/queue/index.js +226 -60
- package/dist/blocks/quotes/index.d.ts +13 -21
- package/dist/blocks/quotes/index.js +14 -17
- package/dist/blocks/rank/index.d.ts +7 -13
- package/dist/blocks/rank/index.js +8 -10
- package/dist/blocks/reactions/index.d.ts +11 -19
- package/dist/blocks/reactions/index.js +13 -17
- package/dist/blocks/relations/index.d.ts +11 -21
- package/dist/blocks/relations/index.js +18 -23
- package/dist/blocks/reminders/index.d.ts +12 -22
- package/dist/blocks/reminders/index.js +21 -25
- package/dist/blocks/reviews/index.d.ts +9 -15
- package/dist/blocks/reviews/index.js +11 -14
- package/dist/blocks/saved-views/index.d.ts +11 -21
- package/dist/blocks/saved-views/index.js +16 -21
- package/dist/blocks/scores/index.d.ts +6 -12
- package/dist/blocks/scores/index.js +10 -13
- package/dist/blocks/search/index.d.ts +9 -19
- package/dist/blocks/search/index.js +15 -19
- package/dist/blocks/security-events/index.d.ts +10 -24
- package/dist/blocks/security-events/index.js +17 -23
- package/dist/blocks/segments/index.d.ts +10 -18
- package/dist/blocks/segments/index.js +11 -15
- package/dist/blocks/sequences/index.d.ts +9 -17
- package/dist/blocks/sequences/index.js +15 -19
- package/dist/blocks/service-accounts/index.d.ts +9 -15
- package/dist/blocks/service-accounts/index.js +11 -14
- package/dist/blocks/sessions/index.d.ts +4 -8
- package/dist/blocks/sessions/index.js +9 -11
- package/dist/blocks/settings/index.d.ts +8 -16
- package/dist/blocks/settings/index.js +14 -18
- package/dist/blocks/share-links/index.d.ts +9 -17
- package/dist/blocks/share-links/index.js +16 -20
- package/dist/blocks/shipments/index.d.ts +14 -24
- package/dist/blocks/shipments/index.js +25 -31
- package/dist/blocks/signatures/index.d.ts +10 -16
- package/dist/blocks/signatures/index.js +10 -13
- package/dist/blocks/signing-keys/index.d.ts +5 -9
- package/dist/blocks/signing-keys/index.js +8 -10
- package/dist/blocks/sla/index.d.ts +11 -19
- package/dist/blocks/sla/index.js +17 -21
- package/dist/blocks/sso/index.d.ts +7 -19
- package/dist/blocks/sso/index.js +14 -21
- package/dist/blocks/state-machine/index.d.ts +7 -13
- package/dist/blocks/state-machine/index.js +9 -12
- package/dist/blocks/subjects/index.d.ts +7 -11
- package/dist/blocks/subjects/index.js +12 -14
- package/dist/blocks/tags/index.d.ts +11 -21
- package/dist/blocks/tags/index.js +20 -25
- package/dist/blocks/tasks/index.d.ts +13 -27
- package/dist/blocks/tasks/index.js +22 -29
- package/dist/blocks/teams/index.d.ts +15 -15
- package/dist/blocks/teams/index.js +17 -19
- package/dist/blocks/templates/index.d.ts +12 -22
- package/dist/blocks/templates/index.js +16 -21
- package/dist/blocks/time-tracking/index.d.ts +31 -25
- package/dist/blocks/time-tracking/index.js +29 -29
- package/dist/blocks/timeline/index.d.ts +10 -14
- package/dist/blocks/timeline/index.js +11 -13
- package/dist/blocks/trash/index.d.ts +10 -18
- package/dist/blocks/trash/index.js +11 -14
- package/dist/blocks/undo/index.d.ts +4 -8
- package/dist/blocks/undo/index.js +6 -8
- package/dist/blocks/updated-at/index.d.ts +3 -7
- package/dist/blocks/updated-at/index.js +4 -5
- package/dist/blocks/usage/index.d.ts +6 -10
- package/dist/blocks/usage/index.js +10 -13
- package/dist/blocks/vercel-marketplace/index.d.ts +9 -17
- package/dist/blocks/vercel-marketplace/index.js +17 -21
- package/dist/blocks/versions/index.d.ts +10 -20
- package/dist/blocks/versions/index.js +17 -22
- package/dist/blocks/waitlist/index.d.ts +10 -16
- package/dist/blocks/waitlist/index.js +11 -14
- package/dist/blocks/webhooks/index.d.ts +16 -34
- package/dist/blocks/webhooks/index.js +33 -44
- package/dist/blocks/workflow-editor/index.d.ts +13 -21
- package/dist/blocks/workflow-editor/index.js +21 -27
- package/dist/blocks/workflows/index.d.ts +8 -14
- package/dist/blocks/workflows/index.js +14 -18
- package/dist/bookings-DG443336.d.ts +285 -0
- package/dist/bucket-Clq5xINQ.d.ts +693 -0
- package/dist/build-Ckxct2EX.js +2065 -0
- package/dist/build-D1-V9dd8.js +732 -0
- package/dist/carrier-D2b_028L.d.ts +165 -0
- package/dist/casing-DQzG9ANZ.js +15 -0
- package/dist/channel-B_kufDZy.d.ts +101 -0
- package/dist/channels-BxeTTtCY.js +113 -0
- package/dist/chat-sdk/index.d.ts +174 -41
- package/dist/chat-sdk/index.js +425 -83
- package/dist/claims-DRmafYVK.js +90 -0
- package/dist/claims-DouHL7ZL.js +62 -0
- package/dist/cli/_format-Ba0DoWjl.js +99 -0
- package/dist/cli/add-ChoHyBhz.js +1222 -0
- package/dist/cli/add-DlYL-1mF.js +1 -0
- package/dist/cli/add-fzRPyIED.js +98 -0
- package/dist/cli/agent-59XWXsRi.js +184 -0
- package/dist/cli/app-table-files-C0OtdUVu.js +343 -0
- package/dist/cli/arazzo-1.0-D3OaSeZw.js +531 -0
- package/dist/cli/arazzo-1.1-DaT2KAkP.js +704 -0
- package/dist/cli/args-_ZVgRBkx.js +26 -0
- package/dist/cli/asyncapi-3.0.0-Ca-UwtUW.js +5592 -0
- package/dist/cli/asyncapi-3.1.0-DUxf5zNu.js +5832 -0
- package/dist/cli/backfill-Dq2XMXf9.js +292 -0
- package/dist/cli/bin.js +5 -5
- package/dist/cli/blocks-CCzp0eAH.js +155 -0
- package/dist/cli/blocks-DVhJOzFj.js +1 -0
- package/dist/cli/cache-CoC-1i1O.js +643 -0
- package/dist/cli/codemod-block-renames-Dt3X1Wvg.js +238 -0
- package/dist/cli/codemod-pyf6HmS9.js +2883 -0
- package/dist/cli/command-BpZ4AuhR.js +1021 -0
- package/dist/cli/compare-yl4sSwVn.js +8 -0
- package/dist/cli/completion-B08Q0xB3.js +29 -0
- package/dist/cli/completion-CwL7e93t.js +210 -0
- package/dist/cli/completion-DHTT6rjI.js +1 -0
- package/dist/cli/config-D-Upz3jV.js +46 -0
- package/dist/cli/config-D0m2rQqk.js +1 -0
- package/dist/cli/config-Dyl3iX3u.js +2029 -0
- package/dist/cli/config-edit-C6sQ1MqT.js +619 -0
- package/dist/cli/config-group-D4JWh4kG.js +388 -0
- package/dist/cli/content-mapper-ChSVT9Tq.js +181 -0
- package/dist/cli/db-B8zfxjl2.js +77 -0
- package/dist/cli/db-dFzhcozO.js +246 -0
- package/dist/cli/detect-BcUDaO8I.js +83 -0
- package/dist/cli/dist-CYnD1kyT.js +128 -0
- package/dist/cli/dist-MKwjiW2w.js +1114 -0
- package/dist/cli/doctor-BKZsztFV.js +4647 -0
- package/dist/cli/env-BAJn6wCA.js +142 -0
- package/dist/cli/env-BCuUsWOh.js +1109 -0
- package/dist/cli/env-D70ihdbB.js +1 -0
- package/dist/cli/env-UN6PJFX6.js +1 -0
- package/dist/cli/errors-DcJ_PayO.js +97 -0
- package/dist/cli/exec-CXBufciC.js +461 -0
- package/dist/cli/fastest-levenshtein-B_QF6At5.js +119 -0
- package/dist/cli/files-DQayErI8.js +999 -0
- package/dist/cli/fresh-import-CdO2oQaQ.js +39 -0
- package/dist/cli/gen-BN_eh6rE.js +390 -0
- package/dist/cli/guards-DxwRG0Uv.js +7 -0
- package/dist/cli/in-stack-diff-huI7fGMX.js +185 -0
- package/dist/cli/index.d.ts +1 -53
- package/dist/cli/index.js +10 -11
- package/dist/cli/init-CaDDt8F6.js +556 -0
- package/dist/cli/io-CQzy8PEZ.js +36 -0
- package/dist/cli/json5-DhsZB2va.js +784 -0
- package/dist/cli/jsonc-DU9Clnrz.js +1 -0
- package/dist/cli/jsonc-u_UiXFxs.js +43 -0
- package/dist/cli/keys-CxajkV_7.js +105 -0
- package/dist/cli/legacy-prefix-D8Jfku6I.js +153 -0
- package/dist/cli/live-KU41LMGE.js +339 -0
- package/dist/cli/mcp-C_m-TpLJ.js +240 -0
- package/dist/cli/metadata-Bq4ra7zo.js +149 -0
- package/dist/cli/migrate-DHG2Qz_K.js +45 -0
- package/dist/cli/migration-safety-STVbiKhz.js +925 -0
- package/dist/cli/migrations-O1QZoMiH.js +116 -0
- package/dist/cli/module-migration-DB9ntWM-.js +118 -0
- package/dist/cli/moved-BAFPdJz_.js +253 -0
- package/dist/cli/ohash-imLR_J5Y.js +276 -0
- package/dist/cli/openapi-3.0-BJiTNq_x.js +927 -0
- package/dist/cli/openapi-3.1-BcWCoii2.js +869 -0
- package/dist/cli/openapi-3.2-MXPkeoTk.js +1030 -0
- package/dist/cli/orphans-CPcR85QN.js +27 -0
- package/dist/cli/parse-BueItuNJ.js +181 -0
- package/dist/cli/powersync-CN3QPF2K.js +375 -0
- package/dist/cli/powersync-DfeGl5N1.js +1 -0
- package/dist/cli/preset-BQnjDCSR.js +100 -0
- package/dist/cli/print-DG7TRCi8.js +66 -0
- package/dist/cli/prompts-D9b6uf21.js +1133 -0
- package/dist/cli/providers-DpfoF3VC.js +298 -0
- package/dist/cli/prune-workflows-DcNJUS1m.js +153 -0
- package/dist/cli/redact--zOGdWzo.js +37 -0
- package/dist/cli/remove-BpfYqP45.js +237 -0
- package/dist/cli/render-Q7jnLn_C.js +2213 -0
- package/dist/cli/rolldown-runtime-DegdyBIC.js +25 -0
- package/dist/cli/run-9NfabanB.js +703 -0
- package/dist/cli/run-D6K-qQIX.js +1450 -0
- package/dist/cli/run-dY9uOC3W.js +62 -0
- package/dist/cli/seed-B4H0Lco9.js +187 -0
- package/dist/cli/seed-BIB6-WPa.js +1 -0
- package/dist/cli/shared-PrvYREVy.js +150 -0
- package/dist/cli/shell-C1U618XA.js +9 -0
- package/dist/cli/skills-jZThjL3B.js +120 -0
- package/dist/cli/snapshot-UfJsqfys.js +728 -0
- package/dist/cli/source-F3YTVvFo.js +317 -0
- package/dist/cli/source-args-DJMrW_jW.js +58 -0
- package/dist/cli/spec-DsLQuJKp.js +7449 -0
- package/dist/cli/spec-HQOBVbEO.js +1 -0
- package/dist/cli/sql-layout-CZ66pY8j.js +260 -0
- package/dist/cli/stack-147NqctC.js +134 -0
- package/dist/cli/stack-env-BQhbUFa7.js +92 -0
- package/dist/cli/stack-status-Mxgqb3I4.js +45 -0
- package/dist/cli/stacks-C5YL6Un9.js +230 -0
- package/dist/cli/style-B5-nByxb.js +34 -0
- package/dist/cli/supabase-toml-B6-eEV5p.js +1155 -0
- package/dist/cli/sync-B12wbtFd.js +318 -0
- package/dist/cli/table-D9FbJS8h.js +88 -0
- package/dist/cli/toml-VX0BsvYq.js +422 -0
- package/dist/cli/topics-Cdg0V7Tt.js +29 -0
- package/dist/cli/trace-D3TNqWBg.js +6 -0
- package/dist/cli/upgrade-AgUXFDo6.js +270 -0
- package/dist/cli/upgrade-C20z49De.js +40 -0
- package/dist/cli/validate-C_WTnX1U.js +7426 -0
- package/dist/cli/version-DEUWW8cv.js +3 -0
- package/dist/cli/yaml-JsusTbcC.js +2250 -0
- package/dist/client/index.d.ts +7 -7
- package/dist/client/index.js +9 -12
- package/dist/client/native/index.d.ts +7 -23
- package/dist/client/native/index.js +15 -22
- package/dist/client-BLor58Je.js +290 -0
- package/dist/clone-H_gCsL29.js +32 -0
- package/dist/cloud-event-CLvsaPqH.js +62 -0
- package/dist/cloud-event-bcaMqEbN.d.ts +62 -0
- package/dist/codecs-B1VO2BGL.d.ts +220 -0
- package/dist/codecs-B9v5Y5HH.js +357 -0
- package/dist/commerce/index.d.ts +5 -13
- package/dist/commerce/index.js +13 -16
- package/dist/compiler-CWishtY2.d.ts +12 -0
- package/dist/compose-BRBlPSEY.js +52 -0
- package/dist/composite-BZMkWNOQ.js +125 -0
- package/dist/composite-ClLWZIwX.d.ts +79 -0
- package/dist/config/index.d.ts +6 -6
- package/dist/config/index.js +7 -7
- package/dist/config-BhExAhNK.js +1102 -0
- package/dist/config-MDRA2sre.js +1672 -0
- package/dist/connectors-BImAu75R.d.ts +145 -0
- package/dist/context-DSevnLrT.js +40 -0
- package/dist/context-DcxfrCml.d.ts +4267 -0
- package/dist/controller-BJmh7gFm.js +78 -0
- package/dist/controller-D_UJBaEU.d.ts +50 -0
- package/dist/controller-y1kSMuCU.js +72 -0
- package/dist/conversion-7U1WeLxK.d.ts +84 -0
- package/dist/conversion-Bj9j3KnG.js +76 -0
- package/dist/cookie-DDkqvqe4.d.ts +3 -0
- package/dist/cookie-DJI6xXJ9.js +4 -0
- package/dist/cors-9SDsndtb.d.ts +13 -0
- package/dist/cors-DrDFLMNn.js +23 -0
- package/dist/create/index.d.ts +4 -28
- package/dist/create/index.js +9 -15
- package/dist/create/lite/index.d.ts +5 -25
- package/dist/create/lite/index.js +14 -24
- package/dist/create/oauth/index.d.ts +1 -1
- package/dist/create/oauth/index.js +1 -2
- package/dist/create/supabase/index.d.ts +2 -4
- package/dist/create/supabase/index.js +3 -6
- package/dist/create-blocks-D7q1boXV.js +367 -0
- package/dist/credentials/index.d.ts +6 -10
- package/dist/credentials/index.js +11 -12
- package/dist/cron-BD8VrQQl.js +147 -0
- package/dist/cron-route-DSITg1yC.js +23 -0
- package/dist/csv-Bwn9insJ.js +88 -0
- package/dist/csv-Dd1iKsk-.d.ts +26 -0
- package/dist/data-engine-B-D6bdyx.d.ts +269 -0
- package/dist/data-engine-BbqQwso_.js +174 -0
- package/dist/data-hooks-BToeAcQ_.js +277 -0
- package/dist/db-exception-Dv18UZ-I.js +30 -0
- package/dist/deal-forecast-CN_BEy9s.d.ts +21 -0
- package/dist/deal-forecast-DsVFoMkJ.js +38 -0
- package/dist/define-3RbqoF1S.d.ts +1242 -0
- package/dist/define-B6D55cO0.js +2073 -0
- package/dist/define-block-22Jv4U_-.js +63 -0
- package/dist/define-block-B_i9VPcc.d.ts +1669 -0
- package/dist/delegation-BRHHXERz.js +152 -0
- package/dist/delivery-CWcbh87x.d.ts +69 -0
- package/dist/delivery-SmPHu2_H.js +28 -0
- package/dist/delivery-events-0mAEuscm.js +52 -0
- package/dist/documents-6ov2gWh3.d.ts +150 -0
- package/dist/edge/index.d.ts +17 -23
- package/dist/edge/index.js +18 -22
- package/dist/elysia/index.d.ts +2 -6
- package/dist/elysia/index.js +4 -6
- package/dist/email-BRm6wMWQ.d.ts +40 -0
- package/dist/embeddings--v4BJdUL.js +127 -0
- package/dist/embeddings-K0lH--nt.d.ts +76 -0
- package/dist/ended-CCoE7XXY.d.ts +22 -0
- package/dist/entitlements-XwpuBbKN.d.ts +52 -0
- package/dist/entitlements-sLoj3M6Y.js +44 -0
- package/dist/entity-naming-BES3pkQI.js +130 -0
- package/dist/entity-schema-DEIz0I8i.js +38 -0
- package/dist/env/index.d.ts +1 -1
- package/dist/env/index.js +1 -2
- package/dist/envelope-DAtaFJue.js +89 -0
- package/dist/errors-B7tCfCvX.js +327 -0
- package/dist/errors-BdjHv5SV.js +43 -0
- package/dist/errors-D3-4c-XF.js +102 -0
- package/dist/escape-like-CK6L7gkj.d.ts +26 -0
- package/dist/escape-like-gxNXs145.js +6 -0
- package/dist/eve/index.d.ts +247 -16
- package/dist/eve/index.js +334 -26
- package/dist/eve-Cf-QRGij.d.ts +213 -0
- package/dist/event-calendar-DUtFyRrv.d.ts +63 -0
- package/dist/event-map-DxfsFgQT.js +18 -0
- package/dist/events/index.d.ts +3 -3
- package/dist/events/index.js +7 -8
- package/dist/events-BRKIxVQD.js +25 -0
- package/dist/events-CfDdOwqg.d.ts +850 -0
- package/dist/events-Da482tiF.js +81 -0
- package/dist/executor-BDMqPbVU.js +482 -0
- package/dist/executor-C0_TT717.js +840 -0
- package/dist/executor-CAhykadW.d.ts +168 -0
- package/dist/executor-CbDX34I9.d.ts +99 -0
- package/dist/executor-Dc4Pl44u.js +207 -0
- package/dist/executor-ynEwaUZy.d.ts +35 -0
- package/dist/expo/index.d.ts +5 -9
- package/dist/expo/index.js +10 -11
- package/dist/extension-DQ9-oOVC.js +58 -0
- package/dist/extension-LgaDPMJs.js +120 -0
- package/dist/extension-WdHd5uqI.js +102 -0
- package/dist/extension-rdpYvpyN.js +52 -0
- package/dist/extension-shared-DJb_PfD4.js +59 -0
- package/dist/extra-Dz9n5y1s.js +9 -0
- package/dist/field-errors-tQr-anYL.d.ts +208 -0
- package/dist/field-formats-Cap-V7UP.js +101 -0
- package/dist/field-formats-DVukMbRa.d.ts +36 -0
- package/dist/fields-AKKMirg_.d.ts +76 -0
- package/dist/fields-BBcdKD-S.js +107 -0
- package/dist/filter-evaluate-Bhq99aEN.d.ts +35 -0
- package/dist/filter-evaluate-D_LLfdtE.js +216 -0
- package/dist/filter-query-B7A4l2xn.d.ts +131 -0
- package/dist/filter-query-Ds7Z6lgZ.js +565 -0
- package/dist/flags-B5B4mkZV.d.ts +315 -0
- package/dist/flags-D0npSE-5.js +361 -0
- package/dist/flags-sdk/index.d.ts +217 -28
- package/dist/flags-sdk/index.js +255 -35
- package/dist/form-definition-8cCCt5zj.js +362 -0
- package/dist/form-definition-BN8shngm.d.ts +117 -0
- package/dist/format-BT0Z3V54.d.ts +77 -0
- package/dist/framework-B1h-uquj.js +57 -0
- package/dist/framework-CyDn_SXR.d.ts +45 -0
- package/dist/function-contract-Bf6llTkE.js +7 -0
- package/dist/function-contract-DgDBYbXu.d.ts +25 -0
- package/dist/gateway-Cg_MgGen.d.ts +120 -0
- package/dist/gateway-options-DQGQzdkD.js +26 -0
- package/dist/gateway-options-Mut8jih_.d.ts +27 -0
- package/dist/guards-CsRa6v57.js +11 -0
- package/dist/guest-actions-CEwttioE.js +8 -0
- package/dist/guest-actions-DfHHp98H.d.ts +3 -0
- package/dist/h3/index.d.ts +2 -6
- package/dist/h3/index.js +4 -6
- package/dist/h3/v1/index.d.ts +3 -5
- package/dist/h3/v1/index.js +4 -5
- package/dist/history-6KiVNWdH.js +269 -0
- package/dist/hmac-DNcfpmI9.js +22 -0
- package/dist/hono/index.d.ts +14 -19
- package/dist/hono/index.js +14 -16
- package/dist/http-BDC1IvBX.js +27 -0
- package/dist/http-BRUI3qim.js +140 -0
- package/dist/http-D4lH1xqY.js +39 -0
- package/dist/image-url-bsGeybeg.js +83 -0
- package/dist/impersonation-BOCJcsmS.d.ts +26 -0
- package/dist/impersonation-D-quM36V.js +61 -0
- package/dist/inbox-BmSA9K01.d.ts +326 -0
- package/dist/index-8w4OB5En.d.ts +102 -0
- package/dist/index-B2871MHr.d.ts +234 -0
- package/dist/index-B5_J-MaK.d.ts +152 -0
- package/dist/index-BWR29Vvw.d.ts +76 -0
- package/dist/index-CRrBZtKm.d.ts +326 -0
- package/dist/index-CTpEQvIv.d.ts +291 -0
- package/dist/index-D2BGCjIz.d.ts +570 -0
- package/dist/index-D66_dYVi.d.ts +667 -0
- package/dist/index-Dj4VKpYZ.d.ts +49 -0
- package/dist/index-DzBFdI9I.d.ts +145 -0
- package/dist/index-lazpPVr0.d.ts +402 -0
- package/dist/index-xCpjvDVm.d.ts +637 -0
- package/dist/index.d.ts +13 -41
- package/dist/index.js +29 -34
- package/dist/instance-property-BlH7QSDl.js +6 -0
- package/dist/instances-D31jrmKh.js +16636 -0
- package/dist/invalidate-DAB9CaPm.d.ts +19 -0
- package/dist/iso4217-oKsif_hW.js +175 -0
- package/dist/json-O5vFw243.js +21 -0
- package/dist/json-schema-D9eVL_xi.js +884 -0
- package/dist/jwks-cache-IZaiICAV.js +48 -0
- package/dist/jws-B8p0ppgh.js +204 -0
- package/dist/jws-CxgTsbgG.d.ts +64 -0
- package/dist/kit-CJKo0soh.d.ts +92 -0
- package/dist/kit-CVZDd1X9.js +132 -0
- package/dist/knowledge-BUwbpS8I.d.ts +215 -0
- package/dist/knowledge-DdZzUTQ-.js +299 -0
- package/dist/lint/index.d.ts +1 -5
- package/dist/lint/index.js +8 -10
- package/dist/list/index.d.ts +3 -3
- package/dist/list/index.js +3 -3
- package/dist/list-query-CZ-K5aHX.d.ts +220 -0
- package/dist/list-query-D-tgs1eY.js +558 -0
- package/dist/live-BVi3q4bX.js +277 -0
- package/dist/logger-0LfhvwE4.d.ts +16 -0
- package/dist/logger-BkF8ukXV.js +20 -0
- package/dist/lookup-upE-e1zw.js +17 -0
- package/dist/management-DtX4ic1F.d.ts +55 -0
- package/dist/mapper/bin.js +13 -17
- package/dist/mcp/index.d.ts +8 -18
- package/dist/mcp/index.js +24 -29
- package/dist/mcp/sdk/index.d.ts +7 -11
- package/dist/mcp/sdk/index.js +12 -14
- package/dist/message-Cc4bkdNw.d.ts +97 -0
- package/dist/messages-CRk1g6oe.js +512 -0
- package/dist/messaging-DMhtGxVv.d.ts +295 -0
- package/dist/methods-BjfDv4Gy.js +9 -0
- package/dist/metric-definition-2KQYeUZ1.d.ts +67 -0
- package/dist/metric-definition-D4H6IQT7.js +116 -0
- package/dist/mfa-CM5r904M.d.ts +34 -0
- package/dist/model-Lxa_mOzB.d.ts +338 -0
- package/dist/model-messages-BcrkjsPE.js +205 -0
- package/dist/model-messages-CGSUU450.d.ts +32 -0
- package/dist/money-BgpAd7d3.d.ts +89 -0
- package/dist/money-DH--bbYr.js +196 -0
- package/dist/money-codec-SKPm8FPw.js +40 -0
- package/dist/my-work-kinds-DNPq3ccL.js +10 -0
- package/dist/nestjs/index.d.ts +3 -5
- package/dist/nestjs/index.js +5 -6
- package/dist/next/client/index.d.ts +1 -5
- package/dist/next/client/index.js +2 -4
- package/dist/next/image/index.d.ts +1 -3
- package/dist/next/image/index.js +2 -3
- package/dist/next/index.d.ts +149 -92
- package/dist/next/index.js +167 -114
- package/dist/node/index.d.ts +3 -3
- package/dist/node/index.js +6 -7
- package/dist/node-headers-C3FExlg9.js +54 -0
- package/dist/node-headers-TnS4T7V_.d.ts +25 -0
- package/dist/nuxt/index.d.ts +0 -2
- package/dist/nuxt/index.js +1 -2
- package/dist/operations-BNFbWv1t.js +28 -0
- package/dist/operations-D51ONRvR.d.ts +4 -0
- package/dist/optional-peer-5SOYr3lL.js +31 -0
- package/dist/options--rohtkkC.js +4 -0
- package/dist/options-1iHDmlZ5.js +8 -0
- package/dist/options-2QJXZPPS.js +4 -0
- package/dist/options-B-JqrC61.d.ts +8 -0
- package/dist/options-B3xH2JvJ.js +8 -0
- package/dist/options-B4sTqDrt.js +4 -0
- package/dist/options-B56njigZ.js +19 -0
- package/dist/options-B5A3UmKY.d.ts +17 -0
- package/dist/options-B6m9gYRH.d.ts +11 -0
- package/dist/options-B7Pl708M.js +8 -0
- package/dist/options-B7YrdiUc.js +11 -0
- package/dist/options-B8c2_hIB.js +9 -0
- package/dist/options-B9w_Y08G.d.ts +6 -0
- package/dist/options-BDF60ouf.js +4 -0
- package/dist/options-BDMPjyrI.js +4 -0
- package/dist/options-BHdHuY5r.js +14 -0
- package/dist/options-BLMeCbtT.js +31 -0
- package/dist/options-BLQePOPy.d.ts +8 -0
- package/dist/options-BLn1PFyu.js +4 -0
- package/dist/options-BMO-FnOT.js +7 -0
- package/dist/options-BNRvoEkj.js +4 -0
- package/dist/options-BPQOiVx2.js +7 -0
- package/dist/options-BSTJmfX4.js +10 -0
- package/dist/options-BTRH26MJ.js +9 -0
- package/dist/options-BTaQszYn.js +9 -0
- package/dist/options-BYo7hMHK.js +10 -0
- package/dist/options-B_bxCZYM.js +7 -0
- package/dist/options-BaBaVWS-.js +10 -0
- package/dist/options-BamaRO-q.d.ts +12 -0
- package/dist/options-BcBdiPSZ.js +7 -0
- package/dist/options-BfY4pyQE.js +23 -0
- package/dist/options-BgCS5ODi.js +9 -0
- package/dist/options-Bi96Lzuf.js +9 -0
- package/dist/options-BjEsSoFp.js +17 -0
- package/dist/options-Bkx8vwip.js +4 -0
- package/dist/options-BmFSI07A.js +4 -0
- package/dist/options-BmwDdKwE.js +7 -0
- package/dist/options-Bn3NjXfn.js +7 -0
- package/dist/options-BqK4xV67.js +13 -0
- package/dist/options-Bs2dC-at.js +11 -0
- package/dist/options-BvttpM1M.js +4 -0
- package/dist/options-Bwrwb8do.d.ts +10 -0
- package/dist/options-BxdqA2Ex.js +19 -0
- package/dist/options-BzxR82Tu.js +9 -0
- package/dist/options-C-NFS6e3.js +13 -0
- package/dist/options-C13-dVMH.js +7 -0
- package/dist/options-C1RIyAe1.js +7 -0
- package/dist/options-C1kZ3qLd.js +8 -0
- package/dist/options-C2RjdunU.js +27 -0
- package/dist/options-C4kpi6HE.js +8 -0
- package/dist/options-C5MfwOAO.js +8 -0
- package/dist/options-C5fKQ3EJ.d.ts +10 -0
- package/dist/options-CJR59q8s.js +17 -0
- package/dist/options-CJVYQue3.d.ts +10 -0
- package/dist/options-CLy7CcMn.js +8 -0
- package/dist/options-COfEYic3.js +8 -0
- package/dist/options-CRwTY_q2.d.ts +58 -0
- package/dist/options-CcW7h8mv.js +9 -0
- package/dist/options-Ceu2j1vv.js +7 -0
- package/dist/options-CgBKgmI8.js +7 -0
- package/dist/options-CgMiQGOF.js +9 -0
- package/dist/options-CptvcSmF.js +11 -0
- package/dist/options-CsLUAt04.js +8 -0
- package/dist/options-CtyjhSGk.js +15 -0
- package/dist/options-CuPWezcV.js +7 -0
- package/dist/options-CyDOOWlk.js +7 -0
- package/dist/options-CyYZvdSy.js +10 -0
- package/dist/options-CzIPn0fF.js +4 -0
- package/dist/options-CzWjw2HY.js +10 -0
- package/dist/options-CztbWdz9.js +4 -0
- package/dist/options-D4LuPM8a.js +4 -0
- package/dist/options-D4dxMGHF.js +7 -0
- package/dist/options-D5a9CHgP.js +7 -0
- package/dist/options-D6tpMRvp.d.ts +13 -0
- package/dist/options-D848Os4l.js +10 -0
- package/dist/options-DCZPW5gR.d.ts +15 -0
- package/dist/options-DFSHZFLN.js +4 -0
- package/dist/options-DFemc2im.js +9 -0
- package/dist/options-DFgHHwzD.js +12 -0
- package/dist/options-DNZ9r_Vo.d.ts +8 -0
- package/dist/options-DP7NwQPZ.js +4 -0
- package/dist/options-DPQaafyc.js +7 -0
- package/dist/options-DQkhhBLy.js +4 -0
- package/dist/options-DTTz33na.js +9 -0
- package/dist/options-DToWdVqW.js +4 -0
- package/dist/options-DUNUGuhM.js +4 -0
- package/dist/options-DWgpi5ns.js +7 -0
- package/dist/options-DeamnVOY.d.ts +12 -0
- package/dist/options-Dg7eK-_J.d.ts +8 -0
- package/dist/options-DiIlMZpc.js +8 -0
- package/dist/options-DjFbIRgV.js +16 -0
- package/dist/options-DjtCYRWb.js +4 -0
- package/dist/options-Dk6D88Zx.d.ts +6 -0
- package/dist/options-DpwRG4tO.js +8 -0
- package/dist/options-DvgKdZ2K.js +9 -0
- package/dist/options-DwIoRvic.js +4 -0
- package/dist/options-GwwLsKf5.js +8 -0
- package/dist/options-I1ZHfDP0.d.ts +58 -0
- package/dist/options-Itq7QYoW.js +20 -0
- package/dist/options-JnPEVbBJ.js +17 -0
- package/dist/options-Jwux4JDX.js +7 -0
- package/dist/options-Lg76d-cV.js +7 -0
- package/dist/options-Lh6uxepF.d.ts +24 -0
- package/dist/options-Oki2W_c3.js +4 -0
- package/dist/options-PM7IaIFP.js +10 -0
- package/dist/options-PTLBl6QT.js +7 -0
- package/dist/options-PheFo4JY.js +10 -0
- package/dist/options-SlC_jZ7y.js +4 -0
- package/dist/options-Sq4bYbf5.js +13 -0
- package/dist/options-XiD_Y3oK.js +14 -0
- package/dist/options-Z-bd_H1E.js +88 -0
- package/dist/options-ax_ssX_m.js +4 -0
- package/dist/options-bNB8_nlW.js +23 -0
- package/dist/options-eIEk0vqV.js +4 -0
- package/dist/options-eLIedotm.js +7 -0
- package/dist/options-jg0FMHA5.js +4 -0
- package/dist/options-mypVYaqR.js +9 -0
- package/dist/options-ompJjxkV.js +4 -0
- package/dist/options-pbc4H8_A.js +7 -0
- package/dist/options-uUGi0Phf.d.ts +14 -0
- package/dist/options-yRwYr4up.js +4 -0
- package/dist/options-z2Zhi97E.js +9 -0
- package/dist/options-zYV6M0vr.js +8 -0
- package/dist/orpc/index.d.ts +13 -19
- package/dist/orpc/index.js +20 -22
- package/dist/otel/index.d.ts +4 -6
- package/dist/otel/index.js +8 -10
- package/dist/outbox-C44Aa94K.d.ts +197 -0
- package/dist/payments-B4JchZuJ.js +15 -0
- package/dist/payments-BBGSGRQ7.d.ts +112 -0
- package/dist/permissions-B9aZZ9LR.js +43 -0
- package/dist/permissions-controller-B4uI5IPH.js +33 -0
- package/dist/pg-error-D92B6jlF.js +25 -0
- package/dist/plugin-Ca2qBiFZ.js +47 -0
- package/dist/pool-Bji4lnQM.d.ts +121 -0
- package/dist/pool-errors-JrZie6u3.js +26 -0
- package/dist/ports-C-hdygkZ.js +150 -0
- package/dist/ports-zFqRNXVJ.d.ts +87 -0
- package/dist/postgres/index.d.ts +5 -11
- package/dist/postgres/index.js +7 -9
- package/dist/postgrest-2WjRrtmX.d.ts +51 -0
- package/dist/postgrest-executor-lf8Mt4J0.js +1064 -0
- package/dist/powersync/index.d.ts +203 -21
- package/dist/powersync/index.js +369 -22
- package/dist/preset/index.d.ts +3 -3
- package/dist/preset/index.js +3 -3
- package/dist/preset-om2rbdYw.js +1038 -0
- package/dist/problem-C0SVHhd3.js +161 -0
- package/dist/problem-NGBjN-TO.d.ts +77 -0
- package/dist/project-oNHntJ6T.js +1749 -0
- package/dist/provider-B6qpleR9.js +56 -0
- package/dist/provider-CH8McX3b.d.ts +142 -0
- package/dist/providers-C9sBIBYE.js +62 -0
- package/dist/push-token-CO28k46S.js +15 -0
- package/dist/push-token-a3Ev1U3L.d.ts +22 -0
- package/dist/queries-BLrxg_GL.js +238 -0
- package/dist/query/index.d.ts +3 -3
- package/dist/query/index.js +11 -15
- package/dist/range-BN3kpJAE.d.ts +6 -0
- package/dist/range-Nrh_qtb_.js +6 -0
- package/dist/rank-keys-CEBzd9Xa.js +59 -0
- package/dist/rank-result-B_xLQCBV.d.ts +12 -0
- package/dist/rank-result-DzaTKKhH.js +17 -0
- package/dist/rate-limit-C89Yzwd9.d.ts +48 -0
- package/dist/rate-limit-CRhlLFhP.js +380 -0
- package/dist/rate-limit-DXJbLVg0.js +48 -0
- package/dist/ratelimit-headers-CpB-cDD6.js +61 -0
- package/dist/react/index.d.ts +11 -11
- package/dist/react/index.js +6 -6
- package/dist/react/native/index.d.ts +3 -5
- package/dist/react/native/index.js +5 -5
- package/dist/react/server.d.ts +13 -15
- package/dist/react/server.js +9 -10
- package/dist/react/session.d.ts +4 -6
- package/dist/react/session.js +2 -3
- package/dist/react-C40oomj7.js +1006 -0
- package/dist/react-CqOVutZj.js +80 -0
- package/dist/react-router/index.d.ts +8 -12
- package/dist/react-router/index.js +9 -11
- package/dist/read-set-DEDoIHMM.js +198 -0
- package/dist/realtime/index.d.ts +7 -7
- package/dist/realtime/index.js +6 -7
- package/dist/realtime-status-CocmAOPv.js +10 -0
- package/dist/realtime-status-D3oUx3o4.d.ts +6 -0
- package/dist/record-bindings-jTZw-GVe.js +25 -0
- package/dist/record-form-DCIui2Ol.d.ts +80 -0
- package/dist/record-type-oQxekQTX.js +219 -0
- package/dist/recordings-Dlpq8jUG.d.ts +117 -0
- package/dist/records/index.d.ts +10 -14
- package/dist/records/index.js +13 -16
- package/dist/refresh-B8t_KE3s.js +142 -0
- package/dist/refresh-BK9epzeC.d.ts +52 -0
- package/dist/refusal-DEuFVi4s.d.ts +30 -0
- package/dist/refusal-DhX7Xpfp.js +63 -0
- package/dist/relay-CllqA-lV.js +248 -0
- package/dist/resolve-DVOtYTAc.d.ts +287 -0
- package/dist/resolve-FW8oeXvh.js +927 -0
- package/dist/resolved-names-DYYyh35i.js +130 -0
- package/dist/resource-BfsTJnxZ.d.ts +119 -0
- package/dist/resource-Cn6Bn-_o.js +517 -0
- package/dist/resource-DQ4kIBpa.js +104 -0
- package/dist/resource-execute-DQRS7PFt.d.ts +13 -0
- package/dist/resource-schemas-Bq0g2RCQ.js +81 -0
- package/dist/resource-types-DF6KDAZM.d.ts +155 -0
- package/dist/resources-B0Vy7_wv.js +63 -0
- package/dist/resources-CeY53FiJ.d.ts +5 -0
- package/dist/respond-C2qvP1wv.js +106 -0
- package/dist/respond-CkwkvFdZ.d.ts +108 -0
- package/dist/result-8xza7w5W.js +145 -0
- package/dist/result-DTOQRyGY.d.ts +347 -0
- package/dist/rows-Ce8dsmfM.js +79 -0
- package/dist/rows-D-RqIsRz.js +38 -0
- package/dist/rrule-BLpe2449.js +289 -0
- package/dist/run-keys-BnzqxtYc.d.ts +59 -0
- package/dist/run-state-D0Tbl-nM.d.ts +11 -0
- package/dist/run-state-DGiyDQxH.js +12 -0
- package/dist/run-watch-DJk4Q603.js +52 -0
- package/dist/runtime-qslVrC9l.js +43 -0
- package/dist/sales-lines-Bde9cV5F.d.ts +36 -0
- package/dist/sales-lines-axwWhnLk.js +44 -0
- package/dist/sales-shared-CY3s_wBx.js +21 -0
- package/dist/sandboxes-DDWuD9fh.d.ts +85 -0
- package/dist/schemas-CpoEiAeT.js +213 -0
- package/dist/scope-dD_OAgRU.js +89 -0
- package/dist/scores-Bql-ABl0.d.ts +172 -0
- package/dist/scores-Bvk_JgXL.js +176 -0
- package/dist/search-DtbkD0h0.js +8 -0
- package/dist/server/index.d.ts +35 -69
- package/dist/server/index.js +51 -59
- package/dist/server-types-C3p3jUqr.d.ts +583 -0
- package/dist/session-BOch2y2z.d.ts +96 -0
- package/dist/session-status-DRBRnZHx.d.ts +80 -0
- package/dist/shared-Bmcnxwie.js +16 -0
- package/dist/shared-Ci1g9nl4.js +90 -0
- package/dist/shared-DsBcvj6q.d.ts +9 -0
- package/dist/sign-in-BmigClRh.js +730 -0
- package/dist/sign-in-C9pZE1kM.d.ts +53 -0
- package/dist/sign-in-CXOg2Dwb.js +399 -0
- package/dist/sign-in-Dxyi4aKu.d.ts +83 -0
- package/dist/signatures-CBn7w4VR.js +144 -0
- package/dist/signatures-jPr9JXyw.d.ts +41 -0
- package/dist/signers-Cz5ZhTHH.d.ts +380 -0
- package/dist/signing-keys-BC5_hJN5.js +163 -0
- package/dist/signing-keys-DS-rIVzz.d.ts +117 -0
- package/dist/simplify-BzThKn5b.js +82 -0
- package/dist/solid/index.d.ts +12 -22
- package/dist/solid/index.js +10 -16
- package/dist/solid-start/index.d.ts +7 -9
- package/dist/solid-start/index.js +8 -9
- package/dist/spec/index.d.ts +6 -48
- package/dist/spec/index.js +23 -39
- package/dist/spec-6Vr7sc0Z.js +123 -0
- package/dist/spec-pins-CuQ2anBw.d.ts +125 -0
- package/dist/spec-pins-FKUzgF6K.js +61 -0
- package/dist/sql/index.d.ts +4 -4
- package/dist/sql/index.js +4 -4
- package/dist/sql-BPV51R3A.js +140626 -0
- package/dist/sql-C1K5JALb.js +420 -0
- package/dist/sql-type-XWMeZRAl.js +33 -0
- package/dist/sqlite/index.d.ts +3 -9
- package/dist/sqlite/index.js +5 -8
- package/dist/sso-BEvNf1oW.d.ts +159 -0
- package/dist/sso-CRnaFJh0.js +216 -0
- package/dist/ssr/index.d.ts +5 -5
- package/dist/ssr/index.js +3 -3
- package/dist/standard-BD2aOUsf.js +24 -0
- package/dist/standard-DRX6Ch1j.d.ts +5 -0
- package/dist/stats-BTJgRMEp.js +82 -0
- package/dist/statuses-BTrQ5H4S.js +27 -0
- package/dist/statuses-Bv-0XoYC.js +27 -0
- package/dist/storage/index.d.ts +3 -3
- package/dist/storage/index.js +27 -40
- package/dist/storage-api-COQr77e8.js +9 -0
- package/dist/store-CKKzmsWB.js +68 -0
- package/dist/store-c7QxUHX-.d.ts +81 -0
- package/dist/streams/index.d.ts +3 -7
- package/dist/streams/index.js +5 -6
- package/dist/streams/redis/index.d.ts +1 -3
- package/dist/streams/redis/index.js +6 -7
- package/dist/stripe/index.d.ts +1 -3
- package/dist/stripe/index.js +3 -4
- package/dist/stripe-Bl-sjnl6.d.ts +154 -0
- package/dist/stripe-DKRwRWew.js +31 -0
- package/dist/subject-readers-BARV5rNp.js +48 -0
- package/dist/subject-readers-DWkVSbFr.d.ts +19 -0
- package/dist/subject-type-BarjdHZV.js +7 -0
- package/dist/subjects-BGwLJ3IB.d.ts +148 -0
- package/dist/subjects-vci6Wufh.d.ts +86 -0
- package/dist/subscribers-C57054Pc.js +32 -0
- package/dist/summaries-CUemsYwV.d.ts +67 -0
- package/dist/supabase-mcp-DY32eoax.d.ts +44 -0
- package/dist/supabase-mcp-QvebHckf.js +27 -0
- package/dist/support-rZbdU35s.d.ts +351 -0
- package/dist/support-view-CvDEgyGY.js +17 -0
- package/dist/support-view-WY4Y-A40.d.ts +15 -0
- package/dist/svelte/index.d.ts +11 -21
- package/dist/svelte/index.js +9 -15
- package/dist/sveltekit/index.d.ts +10 -14
- package/dist/sveltekit/index.js +12 -14
- package/dist/table-schema-CwXg7oBz.d.ts +77 -0
- package/dist/table-schema-D-ss9ozY.js +291 -0
- package/dist/tables-BSiVuKKx.js +72 -0
- package/dist/tags-BVLELhOf.d.ts +28 -0
- package/dist/tags-CW-KvjdL.js +38 -0
- package/dist/tanstack-db/index.d.ts +4 -8
- package/dist/tanstack-db/index.js +4 -6
- package/dist/tanstack-start/index.d.ts +8 -12
- package/dist/tanstack-start/index.js +8 -10
- package/dist/tax-BD9dN1rx.d.ts +168 -0
- package/dist/tax-BwckP5dv.js +139 -0
- package/dist/tee-CVOMhEX-.js +100 -0
- package/dist/template-CNq9xcfx.js +125 -0
- package/dist/temporal-DKTdGK9i.js +94 -0
- package/dist/temporal-required-w_2u4EDp.js +19 -0
- package/dist/tenant-BR7fvPj7.js +26 -0
- package/dist/tenant-RKvGBB-U.d.ts +15 -0
- package/dist/tenant-source-46lMuMEn.js +7 -0
- package/dist/testing/index.d.ts +87 -124
- package/dist/testing/index.js +158 -128
- package/dist/timeline-Bs-FGMIJ.js +49 -0
- package/dist/timeline-Ck8OFuAN.d.ts +147 -0
- package/dist/timing-B6yHayKA.js +94 -0
- package/dist/topic-BBBCVLyS.js +640 -0
- package/dist/topic-Dr8VYE4D.d.ts +411 -0
- package/dist/transport-CS4cVH4S.js +30 -0
- package/dist/ttl-cache-C5S0L2wx.js +31 -0
- package/dist/types-BiedVwz_.d.ts +192 -0
- package/dist/types-CCmW3MqI.d.ts +449 -0
- package/dist/types-CL-z0A4K.d.ts +660 -0
- package/dist/types-CvlJNzX4.d.ts +215 -0
- package/dist/types-D9FY9qSJ.d.ts +247 -0
- package/dist/types-DWZubmwk.d.ts +648 -0
- package/dist/types-DnrJ_crV.js +28 -0
- package/dist/types-Pv5WPfIC.d.ts +175 -0
- package/dist/types-WZUVlTXs.d.ts +907 -0
- package/dist/undo-BdoEJ6Ot.d.ts +44 -0
- package/dist/undo-Dki6Ujak.js +43 -0
- package/dist/upload-claim-Bo2mpBz4.js +32 -0
- package/dist/usage-D27Uw426.d.ts +230 -0
- package/dist/user-change-Ngy8z1fZ.js +133 -0
- package/dist/variants-BaMleC56.js +51 -0
- package/dist/vault-Dx0LaNMX.d.ts +60 -0
- package/dist/vercel-connect/index.d.ts +194 -20
- package/dist/vercel-connect/index.js +265 -33
- package/dist/vercel-sandbox/index.d.ts +166 -0
- package/dist/vercel-sandbox/index.js +171 -0
- package/dist/verify-DY_j4GPZ.js +129 -0
- package/dist/verify-DnL0Fgu0.d.ts +144 -0
- package/dist/view-DmEZA1fL.d.ts +95 -0
- package/dist/view-YnesSUEa.js +244 -0
- package/dist/vue/index.d.ts +12 -22
- package/dist/vue/index.js +10 -16
- package/dist/watch-topic-BB7T05sc.d.ts +29 -0
- package/dist/watch-topic-C2KxpeaB.js +56 -0
- package/dist/wire-DIoLA8VL.js +90 -0
- package/dist/wiring-DJBSLdyF.js +12 -0
- package/dist/workflow-sdk/builder/index.d.ts +12 -14
- package/dist/workflow-sdk/builder/index.js +12 -11
- package/dist/workflow-sdk/index.d.ts +62 -6
- package/dist/workflow-sdk/index.js +75 -10
- package/dist/workflow-sdk/world/index.d.ts +13 -20
- package/dist/workflow-sdk/world/index.js +115 -26
- package/dist/workflow-sdk-BL3wzkdp.js +2749 -0
- package/dist/workflow-sdk-D5zRSwxh.js +302 -0
- package/dist/workflow-sdk-DMpVSMB7.d.ts +171 -0
- package/dist/workflows-DKTw2PZo.d.ts +256 -0
- package/dist/yjs/index.d.ts +3 -5
- package/dist/yjs/index.js +6 -7
- package/package.json +45 -31
- package/schemas/config-v1.json +66 -4
- package/schemas/doctor-report-v1.json +1 -0
- package/schemas/snapshot-v2.json +7 -0
- package/skills/better-supabase/SKILL.md +4 -4
- package/skills/better-supabase/references/block-extensions.md +2 -2
- package/skills/better-supabase/references/troubleshooting.md +1 -1
- package/skills/better-supabase/references/ui-recipes.md +591 -325
- package/skills/better-supabase-api/SKILL.md +1 -1
- package/skills/better-supabase-api/references/adapters.md +3 -3
- package/skills/better-supabase-api/references/ai.md +8 -0
- package/skills/better-supabase-api/references/powersync.md +16 -0
- package/skills/better-supabase-auth/SKILL.md +22 -19
- package/skills/better-supabase-auth/references/authorization-providers.md +1 -1
- package/dist/access-sql-CTDNuxRv.js +0 -385
- package/dist/actor-CoveJgya.d.ts +0 -106
- package/dist/actor-go7p9-CJ.js +0 -150
- package/dist/adapter-D4aNBxhm.js +0 -2301
- package/dist/agents-CM_cCtcr.d.ts +0 -117
- package/dist/ai-cache-BFRKxgZ4.js +0 -87
- package/dist/ai-cache-BTGqckta.d.ts +0 -82
- package/dist/ai-chat-B7_vQvxU.d.ts +0 -619
- package/dist/ai-files-m_2z3rH1.js +0 -339
- package/dist/ai-message-DfaP8sis.js +0 -14
- package/dist/ai-schedules-CZEfo-_M.d.ts +0 -166
- package/dist/anchors-7F34QyHa.d.ts +0 -40
- package/dist/api-3C0AWFeP.js +0 -696
- package/dist/api-59rv5hL6.d.ts +0 -495
- package/dist/api-keys-JE-aykZE.d.ts +0 -213
- package/dist/app-tables-yyVncXEt.d.ts +0 -28
- package/dist/approvals-BfEafAzt.d.ts +0 -129
- package/dist/assistant-B49qATbj.d.ts +0 -157
- package/dist/attachments-BXbLnNxm.js +0 -376
- package/dist/attributes-Bzf51_nc.js +0 -47
- package/dist/auth-DyF_LRxd.js +0 -20
- package/dist/auth-link-B4NL84XU.d.ts +0 -104
- package/dist/auth-link-D3-bU6yz.js +0 -118
- package/dist/auth-module-BbmX-N4L.js +0 -52
- package/dist/auth-reply-Dj124sbX.d.ts +0 -11
- package/dist/auth-reply-tlXB2FQ9.js +0 -31
- package/dist/authorization-CDU9tYA_.d.ts +0 -3860
- package/dist/authorization-hooks-BWhkMZfH.d.ts +0 -221
- package/dist/authorizer-B6X09otb.d.ts +0 -118
- package/dist/authorizer-BGhXaDmo.js +0 -172
- package/dist/automation-D41DXyvT.js +0 -75
- package/dist/automations-8L3NEuoq.js +0 -29
- package/dist/automations-BKjJpktQ.js +0 -33
- package/dist/automations-BMuqwZZn.js +0 -314
- package/dist/automations-EzXteupo.js +0 -31
- package/dist/availability-BdeKCHpl.d.ts +0 -236
- package/dist/base64-B9Wlsdj7.js +0 -42
- package/dist/batch-limit-DKVQDz4o.js +0 -5
- package/dist/before-route-B23K2zYU.js +0 -30
- package/dist/bind-p7asfI6H.d.ts +0 -104
- package/dist/block-authors-Bw3zdzgl.js +0 -14
- package/dist/block-authors-DzXLUiIq.d.ts +0 -12
- package/dist/block-env-B8wG3xeh.d.ts +0 -32
- package/dist/block-event-listener-Bu6G0TFH.js +0 -16
- package/dist/block-events-IWAyafO3.js +0 -83
- package/dist/block-fields-BE7pInWZ.d.ts +0 -58
- package/dist/block-fields-BjXgX_5c.js +0 -140
- package/dist/block-helpers-B0f0ZVb5.js +0 -437
- package/dist/block-helpers-D5emQ2O6.d.ts +0 -62
- package/dist/block-hooks-B8itxzEE.d.ts +0 -117
- package/dist/block-hooks-DKtz0HRh.js +0 -130
- package/dist/block-method-C9hWdHom.js +0 -21
- package/dist/block-method-CiVa2G-J.d.ts +0 -14
- package/dist/block-subjects-C1_9DkSA.d.ts +0 -6
- package/dist/block-subjects-DFSuFY1a.js +0 -55
- package/dist/block-tenant-DHp7subc.js +0 -14
- package/dist/block-transport-9EUA3q_I.d.ts +0 -69
- package/dist/bookings-xsmM2TA_.d.ts +0 -289
- package/dist/bucket-SvRQwYS4.d.ts +0 -705
- package/dist/build-CH2N3Yf0.js +0 -2073
- package/dist/build-DbIRFcHQ.js +0 -735
- package/dist/carrier-KzeYXVrW.d.ts +0 -169
- package/dist/casing-DdFWEtqr.js +0 -16
- package/dist/channel-JcMd5lNP.d.ts +0 -105
- package/dist/channels-CfcFPuo_.js +0 -114
- package/dist/claims-Bp9My7XP.js +0 -88
- package/dist/claims-DTy6R6my.js +0 -63
- package/dist/cli/_format-Cax5EsM9.js +0 -101
- package/dist/cli/add-BdhGOwkB.js +0 -1
- package/dist/cli/add-D4w-Axib.js +0 -1231
- package/dist/cli/add-Dggyehsy.js +0 -99
- package/dist/cli/agent-CbuPvI2x.js +0 -185
- package/dist/cli/app-table-files-CiGuwLkO.js +0 -346
- package/dist/cli/arazzo-1.0-BalU61-_.js +0 -532
- package/dist/cli/arazzo-1.1-Bnfasbun.js +0 -705
- package/dist/cli/args-UEwg0l-N.js +0 -27
- package/dist/cli/asyncapi-3.0.0-C78dBjR6.js +0 -5593
- package/dist/cli/asyncapi-3.1.0-g-7aIfV1.js +0 -5833
- package/dist/cli/backfill-DjVjXW_P.js +0 -293
- package/dist/cli/blocks-Bbmb6W_F.js +0 -1
- package/dist/cli/blocks-jRL9K1R8.js +0 -156
- package/dist/cli/cache-BuoIFlUJ.js +0 -607
- package/dist/cli/codemod-DRavXBCb.js +0 -2435
- package/dist/cli/codemod-block-renames-BuSaTE_G.js +0 -239
- package/dist/cli/command-DIPmo0wh.js +0 -997
- package/dist/cli/compare-BmIWVEui.js +0 -9
- package/dist/cli/completion-DxPxMtyP.js +0 -211
- package/dist/cli/completion-DyLMSjOD.js +0 -1
- package/dist/cli/completion-FUgqm2-N.js +0 -30
- package/dist/cli/config-BfapErxs.js +0 -47
- package/dist/cli/config-Cskysxp-.js +0 -2000
- package/dist/cli/config-Df5cXWNN.js +0 -1
- package/dist/cli/config-edit-CrWfk8s3.js +0 -621
- package/dist/cli/config-group-CP-B9uRt.js +0 -390
- package/dist/cli/content-mapper-BCtyfKXl.js +0 -182
- package/dist/cli/db-CQCLx7cx.js +0 -78
- package/dist/cli/db-CWvH1_46.js +0 -247
- package/dist/cli/detect-D9JaAX20.js +0 -84
- package/dist/cli/dist-D_VbPAMR.js +0 -129
- package/dist/cli/dist-DuiMMRbJ.js +0 -1112
- package/dist/cli/doctor-Di2ZekfN.js +0 -4659
- package/dist/cli/env-B2CbnbzD.js +0 -143
- package/dist/cli/env-BK0xKMeU.js +0 -1113
- package/dist/cli/env-Bat6ogep.js +0 -1
- package/dist/cli/env-CynGCICL.js +0 -1
- package/dist/cli/errors-BTe6A15O.js +0 -98
- package/dist/cli/exec-Ca5s-ygi.js +0 -463
- package/dist/cli/fastest-levenshtein-dhRRvrM2.js +0 -120
- package/dist/cli/files-CX71yBm8.js +0 -1010
- package/dist/cli/fresh-import-DzgsGHkX.js +0 -40
- package/dist/cli/gen-STKC9vkK.js +0 -394
- package/dist/cli/guards-CUlDNYZs.js +0 -8
- package/dist/cli/in-stack-diff-Cp-tVPj2.js +0 -186
- package/dist/cli/init-DW6_nIwj.js +0 -559
- package/dist/cli/io-DH1kcmmP.js +0 -37
- package/dist/cli/json5-ChRycquj.js +0 -787
- package/dist/cli/jsonc-C8M0EhHB.js +0 -1
- package/dist/cli/jsonc-D5Fu67jw.js +0 -45
- package/dist/cli/keys-V-HcO-21.js +0 -106
- package/dist/cli/legacy-prefix-R7UChFFl.js +0 -154
- package/dist/cli/live-0G4Plw3K.js +0 -341
- package/dist/cli/mcp-flKS8iU5.js +0 -241
- package/dist/cli/metadata-VARUbXEe.js +0 -150
- package/dist/cli/migrate-Bkq07XcT.js +0 -46
- package/dist/cli/migration-safety-BfVeza5j.js +0 -928
- package/dist/cli/migrations-BCq7Zs2E.js +0 -117
- package/dist/cli/module-migration-lbeUrsYv.js +0 -119
- package/dist/cli/moved-DNOtp9LA.js +0 -254
- package/dist/cli/ohash-BjQY1cBb.js +0 -277
- package/dist/cli/openapi-3.0-t7xwkuRH.js +0 -928
- package/dist/cli/openapi-3.1-CVze7tBS.js +0 -870
- package/dist/cli/openapi-3.2-CFoMYM01.js +0 -1031
- package/dist/cli/orphans-BAboqyVM.js +0 -28
- package/dist/cli/parse-BPf3kGnc.js +0 -182
- package/dist/cli/powersync-B15CfH5Y.js +0 -284
- package/dist/cli/powersync-DnBsDchT.js +0 -1
- package/dist/cli/preset-BwmIfFnh.js +0 -101
- package/dist/cli/print-DjxpBRnv.js +0 -68
- package/dist/cli/prompts-jqnr94b9.js +0 -1140
- package/dist/cli/providers-dyxcHQY3.js +0 -301
- package/dist/cli/redact-KGAk2Ul9.js +0 -38
- package/dist/cli/remove-BLq5gbal.js +0 -239
- package/dist/cli/render-CizUf3RW.js +0 -2225
- package/dist/cli/rolldown-runtime-kJ_i4yPo.js +0 -26
- package/dist/cli/run-ChEjR7yw.js +0 -63
- package/dist/cli/run-ChOY6s4o.js +0 -1459
- package/dist/cli/run-MwM__teL.js +0 -705
- package/dist/cli/seed-BOun22-k.js +0 -1
- package/dist/cli/seed-CDnL4Tnc.js +0 -188
- package/dist/cli/shared-DV5wIv-7.js +0 -151
- package/dist/cli/shell-Btv_4Yhe.js +0 -10
- package/dist/cli/skills-DM3oeIxY.js +0 -121
- package/dist/cli/snapshot-B5LXkVMC.js +0 -729
- package/dist/cli/source-BoLNG_2A.js +0 -320
- package/dist/cli/source-args-v8ljFDfc.js +0 -59
- package/dist/cli/spec-D6QeE2Zx.js +0 -1
- package/dist/cli/spec-Dz-PGCaM.js +0 -7530
- package/dist/cli/sql-layout-zo02f3Dm.js +0 -261
- package/dist/cli/stack-ClESAZYf.js +0 -135
- package/dist/cli/stack-env-3ziggrU3.js +0 -93
- package/dist/cli/stack-status-BkkYRlXG.js +0 -46
- package/dist/cli/stacks-CiDBH1dB.js +0 -232
- package/dist/cli/style-Bm2X5JrN.js +0 -35
- package/dist/cli/supabase-toml-CncmQbO0.js +0 -1164
- package/dist/cli/sync-m-oZ_SyI.js +0 -322
- package/dist/cli/table-dyKddjwo.js +0 -89
- package/dist/cli/toml-DB-MNnFs.js +0 -424
- package/dist/cli/topics-BpdnYmWb.js +0 -30
- package/dist/cli/trace-VbdO6bcN.js +0 -7
- package/dist/cli/upgrade-C9sgVZ5z.js +0 -272
- package/dist/cli/upgrade-WwEJaX3i.js +0 -41
- package/dist/cli/validate-B3lF3-jB.js +0 -7522
- package/dist/cli/version-D2BQuqta.js +0 -4
- package/dist/cli/yaml-CYCbJ6et.js +0 -2252
- package/dist/client-C_mlji5R.js +0 -288
- package/dist/clone-CkG0-hlI.js +0 -33
- package/dist/cloud-event-0pQ9vFNS.d.ts +0 -64
- package/dist/cloud-event-XsM53POL.js +0 -63
- package/dist/codecs-CMWlhHZ0.d.ts +0 -222
- package/dist/codecs-CSUFGrdP.js +0 -358
- package/dist/compiler-BEeVWXPS.d.ts +0 -14
- package/dist/compose-DKW0Tr3e.js +0 -53
- package/dist/composite-BJ9s-IJJ.d.ts +0 -83
- package/dist/composite-CBRbvn5j.js +0 -130
- package/dist/config-bqKaPjst.js +0 -1679
- package/dist/config-r7njjNgh.js +0 -1111
- package/dist/connectors-uC5baoFV.d.ts +0 -147
- package/dist/context-DBicfUNz.js +0 -41
- package/dist/context-nbYYjv7U.d.ts +0 -4344
- package/dist/controller-BEliOBOv.js +0 -79
- package/dist/controller-TRocodqG.d.ts +0 -52
- package/dist/controller-qG-B1eDn.js +0 -73
- package/dist/conversion-Dq1S7xzE.js +0 -77
- package/dist/conversion-g8HzH9My.d.ts +0 -86
- package/dist/cors-h_v7TPxl.js +0 -24
- package/dist/cors-kLq6VM06.d.ts +0 -15
- package/dist/create-blocks-BfrDUSM6.js +0 -370
- package/dist/cron-DdT4ti8a.js +0 -148
- package/dist/cron-route-FjKgRvTY.js +0 -24
- package/dist/csv-2rXGPNtP.js +0 -89
- package/dist/csv-DhHQS2x_.d.ts +0 -28
- package/dist/data-engine-D1BkmBoR.js +0 -173
- package/dist/data-engine-rvbR2C4F.d.ts +0 -273
- package/dist/data-hooks-CdcZfVS1.js +0 -280
- package/dist/db-exception-Lngc1W49.js +0 -31
- package/dist/deal-forecast-CKBnRodz.js +0 -39
- package/dist/deal-forecast-LwO-Z4_C.d.ts +0 -23
- package/dist/define-D-dLADd5.js +0 -2084
- package/dist/define-D8_9X5fZ.d.ts +0 -1263
- package/dist/define-block-BGqOO8B3.js +0 -64
- package/dist/define-block-DWVZSZv1.d.ts +0 -1687
- package/dist/delegation-C7eWP2r8.d.ts +0 -14
- package/dist/delegation-DGOIiT8k.js +0 -153
- package/dist/delivery-Bm0jxmzI.js +0 -29
- package/dist/delivery-n6lZGuGx.d.ts +0 -71
- package/dist/documents-BbwYyynk.d.ts +0 -152
- package/dist/email-B3YxEzwC.d.ts +0 -42
- package/dist/embeddings-I3s5sTDt.d.ts +0 -78
- package/dist/embeddings-vVzseUw0.js +0 -128
- package/dist/ended-EZzN9QTM.d.ts +0 -26
- package/dist/entitlements-B1i1-wfe.d.ts +0 -54
- package/dist/entitlements-tGL6-69B.js +0 -45
- package/dist/entity-naming-Dtyq5sKE.js +0 -131
- package/dist/entity-schema-B1YmMtP8.js +0 -39
- package/dist/envelope-DEI2iX-d.js +0 -90
- package/dist/errors-BVFgt8BZ.js +0 -328
- package/dist/errors-CyxMxzlu.js +0 -44
- package/dist/escape-like-DHfx6jRr.js +0 -7
- package/dist/escape-like-PReMbEEU.d.ts +0 -30
- package/dist/eve-BfhVFV33.d.ts +0 -157
- package/dist/event-calendar-DVLs2wUO.d.ts +0 -65
- package/dist/event-map-CtPFhcOp.js +0 -19
- package/dist/events-B2qbZps6.d.ts +0 -854
- package/dist/events-D6IZ5CE8.js +0 -82
- package/dist/events-DuLhzjP6.js +0 -26
- package/dist/executor-BfirBzOr.d.ts +0 -174
- package/dist/executor-BlS0kCrN.d.ts +0 -104
- package/dist/executor-C2Ne-Scm.js +0 -208
- package/dist/executor-DXQIx4sW.d.ts +0 -37
- package/dist/executor-DqIci3Jb.js +0 -486
- package/dist/executor-WolvKszH.js +0 -843
- package/dist/extension-DTaHjwdc.js +0 -59
- package/dist/extension-DeAd_MqI.js +0 -121
- package/dist/extension-DzCc0IOd.js +0 -103
- package/dist/extension-mGylYROs.js +0 -53
- package/dist/extension-shared-Djm8mGHD.js +0 -60
- package/dist/extra-CGQ2_q3S.js +0 -10
- package/dist/field-errors-tJvehEFc.d.ts +0 -216
- package/dist/field-formats-C6QKA3UR.js +0 -102
- package/dist/field-formats-CAFNkKSN.d.ts +0 -38
- package/dist/fields-BBm49w-E.js +0 -108
- package/dist/fields-snbaZ14h.d.ts +0 -78
- package/dist/filter-evaluate-BRpNiNPG.d.ts +0 -37
- package/dist/filter-evaluate-lCToXzZI.js +0 -217
- package/dist/filter-query-CQ6d5GnQ.js +0 -566
- package/dist/filter-query-DBt7OKuH.d.ts +0 -133
- package/dist/flags-DDKTThrO.d.ts +0 -246
- package/dist/flags-DF_SCqp5.js +0 -279
- package/dist/form-definition-BTpM_tz1.js +0 -363
- package/dist/form-definition-BjEtH8BT.d.ts +0 -119
- package/dist/format-u-65igKI.d.ts +0 -79
- package/dist/framework-DVYTtQXA.d.ts +0 -47
- package/dist/framework-DYEUraqt.js +0 -58
- package/dist/function-contract-DxFNOmsm.d.ts +0 -27
- package/dist/function-contract-pEmsaUIf.js +0 -8
- package/dist/gateway-Ve7cByEr.d.ts +0 -115
- package/dist/gateway-options-BlVCqgb8.d.ts +0 -29
- package/dist/gateway-options-Cl74B7k6.js +0 -27
- package/dist/guards-6F2bCtQR.js +0 -12
- package/dist/guest-actions-1T1DeS5Y.d.ts +0 -5
- package/dist/guest-actions-B7zdhfnh.js +0 -9
- package/dist/history-GH1HJWQV.js +0 -271
- package/dist/hmac-B3CTTlfv.js +0 -23
- package/dist/http-7-UvHjQe.js +0 -28
- package/dist/http-BjjojWg3.js +0 -40
- package/dist/http-DzbloBR-.js +0 -141
- package/dist/image-url-_d7xYsXK.js +0 -84
- package/dist/impersonation-DM3oWNoD.js +0 -62
- package/dist/impersonation-YTa9dZUv.d.ts +0 -28
- package/dist/inbox-c8B86Trp.d.ts +0 -321
- package/dist/index-8US7qlvW.d.ts +0 -158
- package/dist/index-B4wttiLh.d.ts +0 -407
- package/dist/index-BKrxynq9.d.ts +0 -240
- package/dist/index-BM6NmKSc.d.ts +0 -588
- package/dist/index-BkzXwuIN.d.ts +0 -338
- package/dist/index-CWAQRWY8.d.ts +0 -729
- package/dist/index-Cxsnd-OL.d.ts +0 -305
- package/dist/index-DbyDZZlc.d.ts +0 -53
- package/dist/index-NRMMhhEi.d.ts +0 -104
- package/dist/index-X2fkPUwb.d.ts +0 -51
- package/dist/index-pZn6S_iq.d.ts +0 -149
- package/dist/index-zsgNmE8m.d.ts +0 -665
- package/dist/instance-property-hRh88y_s.js +0 -7
- package/dist/instances-C7qUTjhJ.js +0 -16603
- package/dist/invalidate-DMp4eqfF.d.ts +0 -21
- package/dist/iso4217-B-durg_y.js +0 -176
- package/dist/json-DaByVJpw.js +0 -22
- package/dist/json-schema-DHJxiizN.js +0 -888
- package/dist/jwks-cache-DEsKI0hJ.js +0 -49
- package/dist/jws-D0toeQlA.d.ts +0 -66
- package/dist/jws-DOgHJKHb.js +0 -205
- package/dist/kit-B8yWCRN7.d.ts +0 -94
- package/dist/kit-Bcd9wYCV.js +0 -133
- package/dist/knowledge-CsLPACGJ.d.ts +0 -217
- package/dist/knowledge-tCrrU99q.js +0 -300
- package/dist/list-query-BcU8NnNL.d.ts +0 -222
- package/dist/list-query-BnpA2BDg.js +0 -559
- package/dist/live-C21DgbsD.js +0 -275
- package/dist/logger-DWVYUmwi.d.ts +0 -18
- package/dist/logger-glM28NVN.js +0 -21
- package/dist/lookup-BaP5bI27.js +0 -18
- package/dist/management-wtecfrNf.d.ts +0 -57
- package/dist/message-Bg4TKA12.d.ts +0 -99
- package/dist/messages-ecPW_nOv.js +0 -492
- package/dist/messaging-DQP09JsY.d.ts +0 -297
- package/dist/methods-Cund9ZBe.js +0 -11
- package/dist/metric-definition-BjxVn4R5.js +0 -117
- package/dist/metric-definition-EAYI1r2n.d.ts +0 -69
- package/dist/mfa-oIOYTpvc.d.ts +0 -36
- package/dist/model-hwpvole9.d.ts +0 -340
- package/dist/model-messages-CkZSDDHP.js +0 -206
- package/dist/model-messages-DrR4lZ_c.d.ts +0 -34
- package/dist/money-BNRdJQzA.d.ts +0 -91
- package/dist/money-BZl985O-.js +0 -197
- package/dist/money-codec-BJuS2zEW.js +0 -41
- package/dist/my-work-kinds-BU3SlA-6.js +0 -11
- package/dist/node-headers-BPtMP4_V.d.ts +0 -27
- package/dist/node-headers-C71zNQHe.js +0 -55
- package/dist/operations-CB9atU2e.d.ts +0 -6
- package/dist/operations-DVHRHvv6.js +0 -29
- package/dist/optional-peer-C1NbBRJm.js +0 -32
- package/dist/options-3OYOU56e.js +0 -11
- package/dist/options-56zYYXxc.js +0 -10
- package/dist/options-5WvWOkAm.d.ts +0 -26
- package/dist/options-62woPFn3.js +0 -12
- package/dist/options-7ixoOoap.js +0 -10
- package/dist/options-9dSU5RML.js +0 -5
- package/dist/options-B0YZtAkb.d.ts +0 -15
- package/dist/options-B2Kz_tCx.js +0 -10
- package/dist/options-B5E2MGIz.js +0 -15
- package/dist/options-B685YSzQ.js +0 -5
- package/dist/options-B692WoK6.js +0 -9
- package/dist/options-BHU1wc74.js +0 -5
- package/dist/options-BHy0Z5Zd.js +0 -5
- package/dist/options-BJtdsK7b.js +0 -8
- package/dist/options-BKBy5wM_.js +0 -16
- package/dist/options-BKDxrPvE.js +0 -5
- package/dist/options-BLfymS4s.js +0 -5
- package/dist/options-BOCRbzh3.js +0 -5
- package/dist/options-BOqfYsM1.js +0 -13
- package/dist/options-BQWJqwHO.js +0 -9
- package/dist/options-BQunK6_Y.js +0 -8
- package/dist/options-BQyrZjwM.js +0 -28
- package/dist/options-BR9xTHZW.js +0 -5
- package/dist/options-BRUdd5jY.js +0 -8
- package/dist/options-BSsYXjhC.js +0 -9
- package/dist/options-BTmaRzx2.d.ts +0 -60
- package/dist/options-BUCQYAeJ.d.ts +0 -10
- package/dist/options-B_NrjVDt.d.ts +0 -12
- package/dist/options-BawzwlmC.js +0 -11
- package/dist/options-BbLDAp7G.d.ts +0 -10
- package/dist/options-BfPsL7E2.js +0 -9
- package/dist/options-Bfmwwc78.js +0 -8
- package/dist/options-BhsdveDk.js +0 -21
- package/dist/options-BomoTH-8.js +0 -5
- package/dist/options-BtjkzIVh.js +0 -8
- package/dist/options-Bvi9bl4H.js +0 -5
- package/dist/options-BwKNmaJo.js +0 -5
- package/dist/options-BxpLtyk-.js +0 -18
- package/dist/options-BzB2QxL3.js +0 -5
- package/dist/options-C078wBP0.js +0 -5
- package/dist/options-C3AdsFJ6.js +0 -9
- package/dist/options-C7C5OhmL.d.ts +0 -8
- package/dist/options-C87u6eSa.js +0 -10
- package/dist/options-CBAEGxwS.js +0 -8
- package/dist/options-CDSCkYxu.d.ts +0 -14
- package/dist/options-CDUr8zzX.js +0 -8
- package/dist/options-CFjGxfa8.js +0 -5
- package/dist/options-CI6P0xhV.js +0 -10
- package/dist/options-CJFMK9A_.js +0 -8
- package/dist/options-CLpgx7en.js +0 -10
- package/dist/options-COo7_3MX.js +0 -10
- package/dist/options-CSCXNYJO.d.ts +0 -8
- package/dist/options-CTXHj9zr.js +0 -16
- package/dist/options-CTl8T88w.js +0 -11
- package/dist/options-CUIOOv4z.js +0 -15
- package/dist/options-CZDmtsbV.js +0 -8
- package/dist/options-CZTscdPB.js +0 -5
- package/dist/options-CZdKndeo.js +0 -9
- package/dist/options-C_7g9TTq.d.ts +0 -12
- package/dist/options-Cb2FOFj5.js +0 -5
- package/dist/options-CbOstLa7.js +0 -5
- package/dist/options-CcXgWlvm.js +0 -24
- package/dist/options-CfVPctAw.js +0 -89
- package/dist/options-Cjgaf8ub.js +0 -8
- package/dist/options-CoSPgWKy.js +0 -9
- package/dist/options-CpZ2HlSU.js +0 -32
- package/dist/options-CsSe8Nba.js +0 -8
- package/dist/options-CsvJR-r2.js +0 -9
- package/dist/options-Cucv6sWP.js +0 -12
- package/dist/options-CyjL9lTf.js +0 -5
- package/dist/options-D-OOO9V2.d.ts +0 -10
- package/dist/options-D0Y6ZMe8.js +0 -5
- package/dist/options-D0bzZx9a.d.ts +0 -10
- package/dist/options-D0sj5abR.js +0 -9
- package/dist/options-D1hSuf50.d.ts +0 -12
- package/dist/options-D610Fa6T.js +0 -5
- package/dist/options-D96dScev.js +0 -24
- package/dist/options-DFpyP1bg.js +0 -5
- package/dist/options-DJEcS4DX.js +0 -5
- package/dist/options-DJbN3bi9.js +0 -11
- package/dist/options-DKoQoRCy.js +0 -13
- package/dist/options-DM1qaMMQ.js +0 -9
- package/dist/options-DNgSwhsm.js +0 -11
- package/dist/options-DOIwzRXL.js +0 -16
- package/dist/options-DRIgHh4O.d.ts +0 -16
- package/dist/options-DRrZmJyI.js +0 -8
- package/dist/options-DUMUsvml.js +0 -5
- package/dist/options-DWwL5Kaz.js +0 -9
- package/dist/options-DZHZYlpD.js +0 -10
- package/dist/options-DZLkeqWn.js +0 -9
- package/dist/options-DZRpXKQE.js +0 -5
- package/dist/options-DZen3UiC.js +0 -14
- package/dist/options-D_9Vxx7f.js +0 -8
- package/dist/options-DcHl59RC.js +0 -11
- package/dist/options-Dcaql09y.js +0 -11
- package/dist/options-DcnBNYmV.js +0 -8
- package/dist/options-DdpM-fiP.js +0 -9
- package/dist/options-DhoLMknl.js +0 -10
- package/dist/options-DlohRAYd.d.ts +0 -13
- package/dist/options-Dpy-Ruo-.js +0 -14
- package/dist/options-DsVuVRH3.d.ts +0 -17
- package/dist/options-DtAJxfHS.js +0 -8
- package/dist/options-Dz9Yo52Z.js +0 -8
- package/dist/options-HnfETSHr.d.ts +0 -19
- package/dist/options-LqUXTpML.js +0 -8
- package/dist/options-MsloEAIB.js +0 -5
- package/dist/options-P2FxqYpd.js +0 -17
- package/dist/options-_1gAIMq7.d.ts +0 -60
- package/dist/options-aT89JqlB.js +0 -5
- package/dist/options-cVKZu9b0.js +0 -9
- package/dist/options-eTepQ1rZ.js +0 -15
- package/dist/options-fkShrmGQ.js +0 -8
- package/dist/options-gUvfr3no.js +0 -11
- package/dist/options-hynwKWuf.js +0 -20
- package/dist/options-jsOCvLUz.js +0 -10
- package/dist/options-o5wCw8H7.d.ts +0 -14
- package/dist/options-p49DFg3H.js +0 -8
- package/dist/options-pYNpXKcg.js +0 -8
- package/dist/options-qtETCHzW.js +0 -10
- package/dist/options-rnKlqYEr.js +0 -5
- package/dist/options-sU_zGkiV.js +0 -10
- package/dist/options-xq4MXG1M.js +0 -5
- package/dist/options-zzlznRA7.js +0 -10
- package/dist/outbox-BZ712Z3X.d.ts +0 -199
- package/dist/payments-BXvabJOw.js +0 -16
- package/dist/payments-BYcN34Fp.d.ts +0 -114
- package/dist/permissions-controller-BMsqIE5T.js +0 -34
- package/dist/pg-error-B5QLDcbG.js +0 -26
- package/dist/plugin-AKwwe2gF.js +0 -48
- package/dist/pool-DDR1ndk7.d.ts +0 -123
- package/dist/pool-errors-JUBcGrre.js +0 -27
- package/dist/ports-DvpNseap.js +0 -152
- package/dist/ports-hpbyMySO.d.ts +0 -89
- package/dist/postgrest-AJc8hnJU.d.ts +0 -53
- package/dist/postgrest-executor-B_Uezhrm.js +0 -1068
- package/dist/preset-DCdEnJj9.js +0 -1042
- package/dist/problem-Bf0cJ7tk.js +0 -162
- package/dist/problem-DNwN8iGz.d.ts +0 -79
- package/dist/project-B32wb5J6.js +0 -1760
- package/dist/provider-B6g7rBZX.js +0 -57
- package/dist/provider-CWjzAIX9.d.ts +0 -112
- package/dist/push-token-D6REHMMw.js +0 -16
- package/dist/push-token-DQ1ycFPU.d.ts +0 -24
- package/dist/queries-BWYYS9um.js +0 -239
- package/dist/range-DwpWe8e7.js +0 -7
- package/dist/range-p5V4rBhZ.d.ts +0 -8
- package/dist/rank-keys-DcPMt_Jk.js +0 -60
- package/dist/rank-result-BBJIK-k_.js +0 -18
- package/dist/rank-result-Bwe7igy-.d.ts +0 -14
- package/dist/rate-limit-BWKGlhTM.js +0 -49
- package/dist/rate-limit-Bztf32cl.d.ts +0 -50
- package/dist/rate-limit-fZ_d8gSE.js +0 -380
- package/dist/ratelimit-headers-kEcXyO3H.js +0 -62
- package/dist/react-BKCnIuZs.js +0 -79
- package/dist/react-CcrQQl0_.js +0 -1016
- package/dist/read-set-B1sDib5O.js +0 -199
- package/dist/realtime-status-BhNkb-Ow.d.ts +0 -8
- package/dist/realtime-status-asHvhiOh.js +0 -11
- package/dist/record-bindings-Z51mGfhB.js +0 -26
- package/dist/record-form-CubgBrtI.d.ts +0 -82
- package/dist/record-type-DRbnlj5q.js +0 -221
- package/dist/recordings-DeZYx-Kv.d.ts +0 -119
- package/dist/refresh-D02Pbf5B.d.ts +0 -54
- package/dist/refusal-B0VmlAxF.d.ts +0 -32
- package/dist/refusal-DDlInPff.js +0 -64
- package/dist/relay-CIKcAVjf.js +0 -248
- package/dist/replicas-Dyoh3CEg.js +0 -94
- package/dist/resolve-B0mW2m7f.js +0 -932
- package/dist/resolve-CtX6T0c0.d.ts +0 -288
- package/dist/resolved-names-iLBOUaib.js +0 -133
- package/dist/resource-BUJcZKiW.js +0 -520
- package/dist/resource-DvgXqZB_.js +0 -105
- package/dist/resource-WxN0IsvB.d.ts +0 -123
- package/dist/resource-execute-BzqR8DdD.d.ts +0 -15
- package/dist/resource-schemas-up6bKOUi.js +0 -82
- package/dist/resource-types-BVbHgTPg.d.ts +0 -157
- package/dist/resources-BSbRa0Ab.d.ts +0 -7
- package/dist/resources-jb3R6rEa.js +0 -64
- package/dist/respond-CZMWbUs3.js +0 -107
- package/dist/respond-Dzu_-EPH.d.ts +0 -112
- package/dist/result-DZeA5KS6.d.ts +0 -351
- package/dist/result-ntFBW2p2.js +0 -146
- package/dist/rows-BdqXmiB-.js +0 -80
- package/dist/rows-jijHLVE_.js +0 -39
- package/dist/rrule-C9Ot6ax8.js +0 -290
- package/dist/run-state-BMCD_1Lt.d.ts +0 -13
- package/dist/run-state-CgBKzYMW.js +0 -13
- package/dist/run-watch-B-LoK5m1.js +0 -53
- package/dist/runtime-CoKxZibd.js +0 -45
- package/dist/sales-lines-BsmrNHe9.d.ts +0 -38
- package/dist/sales-lines-DO7oRu1o.js +0 -45
- package/dist/sales-shared-BuTA8JK7.js +0 -22
- package/dist/schemas-CLOTvdsC.js +0 -216
- package/dist/scope-DgWjuXUw.js +0 -90
- package/dist/scores-Y8TvyJi1.d.ts +0 -174
- package/dist/scores-bY2Is0kx.js +0 -177
- package/dist/search-Cn_DGluL.js +0 -9
- package/dist/server-types-BkTIxW_H.d.ts +0 -597
- package/dist/session-BOzx2qHC.d.ts +0 -100
- package/dist/session-status-BP8eYVnA.d.ts +0 -82
- package/dist/shared-BeHTi8Fu.js +0 -17
- package/dist/shared-Bf-I13Ht.js +0 -91
- package/dist/shared-CRRfQAKG.d.ts +0 -11
- package/dist/sign-in-BzihC_8k.d.ts +0 -50
- package/dist/sign-in-CmPK1AgM.js +0 -402
- package/dist/sign-in-Cyj3ZlFX.js +0 -703
- package/dist/sign-in-D54FLMQy.d.ts +0 -55
- package/dist/signatures-CX1b4WHa.js +0 -145
- package/dist/signatures-Dkx9OE8j.d.ts +0 -43
- package/dist/signers-ZmxO1I05.d.ts +0 -390
- package/dist/signing-keys-CWtpMask.js +0 -164
- package/dist/signing-keys-udgP7Aod.d.ts +0 -119
- package/dist/simplify-DDO0j0LI.js +0 -83
- package/dist/spec-BMvCCNnd.js +0 -124
- package/dist/spec-pins-BZkKfwY8.d.ts +0 -127
- package/dist/spec-pins-D3zDek-u.js +0 -62
- package/dist/sql-CYt7EhH0.js +0 -421
- package/dist/sql-CyeDg3Yh.js +0 -138146
- package/dist/sql-type-iUSZpaUu.js +0 -34
- package/dist/sso-CkU_4mtK.d.ts +0 -161
- package/dist/sso-DdDpJQzw.js +0 -217
- package/dist/standard-BA3mLh6w.js +0 -25
- package/dist/standard-DBV730sF.d.ts +0 -7
- package/dist/stats-BHl1-zj9.js +0 -83
- package/dist/statuses-Alll5Ip6.js +0 -29
- package/dist/statuses-zRcc2TeZ.js +0 -28
- package/dist/storage-api-Dg78Wqsg.js +0 -10
- package/dist/store-CpheI-lN.d.ts +0 -83
- package/dist/store-McN-2esd.js +0 -69
- package/dist/stripe-BJUfp5jM.js +0 -32
- package/dist/stripe-X22LjuH-.d.ts +0 -156
- package/dist/subject-readers-CB5Te02u.d.ts +0 -21
- package/dist/subject-readers-VHcrWhmq.js +0 -49
- package/dist/subject-type-BRnK7Av3.js +0 -8
- package/dist/subjects-BYCL-6hA.d.ts +0 -145
- package/dist/subjects-CiBNKy2y.d.ts +0 -90
- package/dist/subscribers-BvZxcd63.js +0 -33
- package/dist/summaries-8jQTELIX.d.ts +0 -69
- package/dist/supabase-mcp-Dz9DgrKP.js +0 -28
- package/dist/supabase-mcp-Z4vtsuoO.d.ts +0 -46
- package/dist/support-BxyPOFk4.d.ts +0 -357
- package/dist/support-view-g4YLBeqX.js +0 -18
- package/dist/support-view-nqUWKHEs.d.ts +0 -17
- package/dist/table-schema-BlF6k62Q.d.ts +0 -81
- package/dist/table-schema-C80xItaV.js +0 -293
- package/dist/tables-Cb-3_VWc.js +0 -73
- package/dist/tags-CIZTqtlY.js +0 -39
- package/dist/tags-Cm48BsOa.d.ts +0 -30
- package/dist/tax-BkCNWWMc.js +0 -140
- package/dist/tax-DPShHual.d.ts +0 -170
- package/dist/tee-V97_v1ZS.js +0 -101
- package/dist/template-Drgg3v2J.js +0 -126
- package/dist/temporal-Dbo0fLzc.js +0 -95
- package/dist/temporal-required-DcLhnDhQ.js +0 -20
- package/dist/tenant-BgIiMQpo.js +0 -27
- package/dist/tenant-C9YE_kqK.d.ts +0 -17
- package/dist/tenant-source-bqWpSr86.js +0 -8
- package/dist/timeline--VU3A1e4.js +0 -50
- package/dist/timeline-DvXtXq5q.d.ts +0 -151
- package/dist/timing-dypS0nxW.js +0 -95
- package/dist/topic-DnsNG4Kj.js +0 -643
- package/dist/topic-breZqx_4.d.ts +0 -415
- package/dist/ttl-cache-Bhr9swjT.js +0 -32
- package/dist/types-B-D6fYx2.d.ts +0 -194
- package/dist/types-C3I7S51U.d.ts +0 -461
- package/dist/types-CK2X2wCB.d.ts +0 -618
- package/dist/types-CPl9uJ0G.d.ts +0 -912
- package/dist/types-CwQgFo8c.d.ts +0 -177
- package/dist/types-DMihLukJ.d.ts +0 -251
- package/dist/types-R6syp1el.js +0 -29
- package/dist/types-iCyZ3lMx.d.ts +0 -217
- package/dist/types-nspa5I-a.d.ts +0 -664
- package/dist/undo-0HkWXASn.d.ts +0 -46
- package/dist/undo-BbftL9-4.js +0 -44
- package/dist/upload-claim-B1ZU8ydB.js +0 -33
- package/dist/usage-BkWAPkg2.d.ts +0 -232
- package/dist/user-change-DgWC6RRC.js +0 -135
- package/dist/variants-Cy--Ub-a.js +0 -53
- package/dist/vault-BkdPmL7f.d.ts +0 -62
- package/dist/verify-41mZmspj.d.ts +0 -146
- package/dist/verify-7EucfCnv.js +0 -130
- package/dist/view-C8Ve14ja.js +0 -247
- package/dist/view-C8_xvD-j.d.ts +0 -97
- package/dist/watch-topic-CuaWfCuv.js +0 -57
- package/dist/watch-topic-ItO3dz8m.d.ts +0 -31
- package/dist/wire-ChYn1g21.js +0 -91
- package/dist/wiring-CDNuQoJJ.js +0 -13
- package/dist/workflow-sdk-BWPsdzVK.js +0 -2534
- package/dist/workflow-sdk-Cf0LAOFF.js +0 -242
- package/dist/workflow-sdk-rg3IbCZC.d.ts +0 -163
- package/dist/workflows-xL6t0TXx.d.ts +0 -258
|
@@ -368,7 +368,7 @@ import {
|
|
|
368
368
|
} from "@/components/ui/dialog";
|
|
369
369
|
import { Input } from "@/components/ui/input";
|
|
370
370
|
import { useCommandSearch } from "@/hooks/use-search";
|
|
371
|
-
import { Link } from "@/i18n/navigation";
|
|
371
|
+
import { Link, toAppHref } from "@/i18n/navigation";
|
|
372
372
|
import { blockConfig } from "@/lib/supabase/blocks.generated";
|
|
373
373
|
|
|
374
374
|
/** The API schema `gen` wrote for the search block. */
|
|
@@ -449,7 +449,7 @@ export function CommandSearch() {
|
|
|
449
449
|
{group.items.map((item) => (
|
|
450
450
|
<li key={`${item.subjectType}:${item.subjectId}`}>
|
|
451
451
|
<Link
|
|
452
|
-
href={item.url
|
|
452
|
+
href={toAppHref(item.url)}
|
|
453
453
|
onClick={() => void search.select(item)}
|
|
454
454
|
className="block rounded-md px-2 py-1.5 outline-none hover:bg-muted focus-visible:bg-muted"
|
|
455
455
|
>
|
|
@@ -616,7 +616,7 @@ import { Progress } from "@/components/ui/progress";
|
|
|
616
616
|
import { Skeleton } from "@/components/ui/skeleton";
|
|
617
617
|
import { gettingStarted } from "@/features/onboarding/checklist";
|
|
618
618
|
import { useOnboarding } from "@/hooks/use-onboarding";
|
|
619
|
-
import { Link } from "@/i18n/navigation";
|
|
619
|
+
import { Link, toAppHref } from "@/i18n/navigation";
|
|
620
620
|
import { useAuth } from "@/lib/hooks";
|
|
621
621
|
import { blockConfig } from "@/lib/supabase/blocks.generated";
|
|
622
622
|
|
|
@@ -684,7 +684,7 @@ export function OnboardingCard() {
|
|
|
684
684
|
</span>
|
|
685
685
|
{step.completed ? null : (
|
|
686
686
|
<Link
|
|
687
|
-
href={step.href
|
|
687
|
+
href={toAppHref(step.href)}
|
|
688
688
|
className={buttonVariants({ variant: "outline", size: "sm" })}
|
|
689
689
|
>
|
|
690
690
|
{t("Start")}
|
|
@@ -1158,18 +1158,31 @@ npx shadcn add @better-supabase/use-organizations
|
|
|
1158
1158
|
```
|
|
1159
1159
|
|
|
1160
1160
|
```tsx title="apps/examples/expo-powersync/src/components/organization-switcher.tsx"
|
|
1161
|
+
import type { OrganizationMembership } from "better-supabase/blocks/organizations";
|
|
1162
|
+
|
|
1161
1163
|
import { ActivityIndicator, Pressable, Text, View } from "react-native";
|
|
1162
1164
|
|
|
1165
|
+
import type { OrganizationSource } from "../hooks/use-organizations";
|
|
1166
|
+
|
|
1163
1167
|
import { useOrganizations } from "../hooks/use-organizations";
|
|
1164
1168
|
import { API_SCHEMA } from "../lib/blocks";
|
|
1165
1169
|
|
|
1166
1170
|
/**
|
|
1167
1171
|
* The caller's organizations. Pressing one switches to it, refreshes the
|
|
1168
|
-
* session so the token carries the new tenant, and loads the list again.
|
|
1172
|
+
* session so the token carries the new tenant, and loads the list again. `load`
|
|
1173
|
+
* reads them elsewhere, such as from the PowerSync database.
|
|
1169
1174
|
*/
|
|
1170
|
-
export function OrganizationSwitcher(
|
|
1175
|
+
export function OrganizationSwitcher({
|
|
1176
|
+
load,
|
|
1177
|
+
}: {
|
|
1178
|
+
readonly load?: OrganizationSource<OrganizationMembership>;
|
|
1179
|
+
}) {
|
|
1171
1180
|
const { organizations, activeId, switching, error, switchTo } =
|
|
1172
|
-
useOrganizations(
|
|
1181
|
+
useOrganizations(
|
|
1182
|
+
load === undefined
|
|
1183
|
+
? { schema: API_SCHEMA }
|
|
1184
|
+
: { schema: API_SCHEMA, load },
|
|
1185
|
+
);
|
|
1173
1186
|
|
|
1174
1187
|
if (organizations === undefined) {
|
|
1175
1188
|
return <ActivityIndicator />;
|
|
@@ -1338,6 +1351,8 @@ export function PlanPicker({
|
|
|
1338
1351
|
if (!started.ok) {
|
|
1339
1352
|
toast.error(errorMessage(started.error));
|
|
1340
1353
|
}
|
|
1354
|
+
|
|
1355
|
+
return started;
|
|
1341
1356
|
});
|
|
1342
1357
|
}}
|
|
1343
1358
|
>
|
|
@@ -1940,6 +1955,8 @@ function SettingsSection<E extends SettingEntries>({
|
|
|
1940
1955
|
if (!saved.ok) {
|
|
1941
1956
|
toast.error(errorMessage(saved.error));
|
|
1942
1957
|
}
|
|
1958
|
+
|
|
1959
|
+
return saved;
|
|
1943
1960
|
});
|
|
1944
1961
|
}}
|
|
1945
1962
|
/>
|
|
@@ -2163,24 +2180,47 @@ An organization's members with their roles, where a role change shows at once an
|
|
|
2163
2180
|
Web, with shadcn components:
|
|
2164
2181
|
|
|
2165
2182
|
```bash
|
|
2166
|
-
npx shadcn add avatar button select
|
|
2183
|
+
npx shadcn add avatar badge button empty input select
|
|
2167
2184
|
```
|
|
2168
2185
|
|
|
2169
2186
|
```bash
|
|
2170
2187
|
npx shadcn add @better-supabase/use-organizations
|
|
2171
2188
|
```
|
|
2172
2189
|
|
|
2173
|
-
```tsx title="apps/examples/nextjs/src/features/
|
|
2190
|
+
```tsx title="apps/examples/nextjs/src/features/members/components/member-table.tsx"
|
|
2174
2191
|
"use client";
|
|
2175
2192
|
|
|
2193
|
+
import type { CellContext, ColumnDef } from "@tanstack/react-table";
|
|
2194
|
+
|
|
2195
|
+
import { useTable } from "@tanstack/react-table";
|
|
2176
2196
|
import { DbException } from "better-supabase";
|
|
2177
2197
|
import { UserMinusIcon } from "lucide-react";
|
|
2178
2198
|
import { useExtracted, useFormatter } from "next-intl";
|
|
2199
|
+
import { createContext, use, useCallback, useMemo, useState } from "react";
|
|
2179
2200
|
import { toast } from "sonner";
|
|
2180
2201
|
import * as v from "valibot";
|
|
2181
2202
|
|
|
2203
|
+
import type { DataGridFeatures } from "@/components/reui/data-grid/data-grid";
|
|
2204
|
+
import type { Member } from "@/features/organization/organization-queries";
|
|
2205
|
+
|
|
2206
|
+
import {
|
|
2207
|
+
DataGrid,
|
|
2208
|
+
DataGridContainer,
|
|
2209
|
+
dataGridFeatures,
|
|
2210
|
+
} from "@/components/reui/data-grid/data-grid";
|
|
2211
|
+
import { DataGridScrollArea } from "@/components/reui/data-grid/data-grid-scroll-area";
|
|
2212
|
+
import { DataGridTable } from "@/components/reui/data-grid/data-grid-table";
|
|
2182
2213
|
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
|
|
2214
|
+
import { Badge } from "@/components/ui/badge";
|
|
2183
2215
|
import { Button } from "@/components/ui/button";
|
|
2216
|
+
import {
|
|
2217
|
+
Empty,
|
|
2218
|
+
EmptyContent,
|
|
2219
|
+
EmptyDescription,
|
|
2220
|
+
EmptyHeader,
|
|
2221
|
+
EmptyTitle,
|
|
2222
|
+
} from "@/components/ui/empty";
|
|
2223
|
+
import { Input } from "@/components/ui/input";
|
|
2184
2224
|
import {
|
|
2185
2225
|
Select,
|
|
2186
2226
|
SelectContent,
|
|
@@ -2189,26 +2229,18 @@ import {
|
|
|
2189
2229
|
SelectValue,
|
|
2190
2230
|
} from "@/components/ui/select";
|
|
2191
2231
|
import {
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
TableHeader,
|
|
2197
|
-
TableRow,
|
|
2198
|
-
} from "@/components/ui/table";
|
|
2232
|
+
loadMembers,
|
|
2233
|
+
memberChanged,
|
|
2234
|
+
} from "@/features/organization/organization-actions";
|
|
2235
|
+
import { useRoleLabel } from "@/features/organization/use-role-label";
|
|
2199
2236
|
import { RoleBadge } from "@/features/user/components/role-badge";
|
|
2200
|
-
import { assignableRoles } from "@/features/user/user-permissions";
|
|
2201
2237
|
import { useMembers } from "@/hooks/use-organizations";
|
|
2238
|
+
import { Link } from "@/i18n/navigation";
|
|
2202
2239
|
import { Role } from "@/lib/claims";
|
|
2203
2240
|
import { initials } from "@/lib/initials";
|
|
2204
2241
|
import { blockConfig } from "@/lib/supabase/blocks.generated";
|
|
2205
2242
|
import { useErrorMessage } from "@/lib/use-error-message";
|
|
2206
2243
|
|
|
2207
|
-
import type { Member } from "../organization-queries";
|
|
2208
|
-
|
|
2209
|
-
import { loadMembers, memberChanged } from "../organization-actions";
|
|
2210
|
-
import { useRoleLabel } from "../use-role-label";
|
|
2211
|
-
|
|
2212
2244
|
async function loadOrganizationMembers(): Promise<readonly Member[]> {
|
|
2213
2245
|
const result = await loadMembers({});
|
|
2214
2246
|
|
|
@@ -2219,29 +2251,204 @@ async function loadOrganizationMembers(): Promise<readonly Member[]> {
|
|
|
2219
2251
|
return result.data;
|
|
2220
2252
|
}
|
|
2221
2253
|
|
|
2254
|
+
/** A team as the members table shows it: its name and who is on it. */
|
|
2255
|
+
export interface MemberTeam {
|
|
2256
|
+
readonly id: string;
|
|
2257
|
+
readonly name: string;
|
|
2258
|
+
readonly memberIds: readonly string[];
|
|
2259
|
+
}
|
|
2260
|
+
|
|
2261
|
+
type MemberRow = Member & {
|
|
2262
|
+
readonly teams: readonly MemberTeam[];
|
|
2263
|
+
readonly you: boolean;
|
|
2264
|
+
/** The roles the caller may pick here, empty when the role is fixed. */
|
|
2265
|
+
readonly roleChoices: readonly Role[];
|
|
2266
|
+
readonly removable: boolean;
|
|
2267
|
+
readonly busy: boolean;
|
|
2268
|
+
};
|
|
2269
|
+
|
|
2270
|
+
type MemberCell = CellContext<DataGridFeatures, MemberRow>;
|
|
2271
|
+
|
|
2272
|
+
const ALL_ROLES = "all";
|
|
2273
|
+
|
|
2274
|
+
function MemberCellView({ row }: MemberCell) {
|
|
2275
|
+
const t = useExtracted("members");
|
|
2276
|
+
const member = row.original;
|
|
2277
|
+
|
|
2278
|
+
return (
|
|
2279
|
+
<div className="flex items-center gap-3">
|
|
2280
|
+
<Avatar className="size-8">
|
|
2281
|
+
{member.avatarUrl ? (
|
|
2282
|
+
<AvatarImage src={member.avatarUrl} alt="" />
|
|
2283
|
+
) : null}
|
|
2284
|
+
<AvatarFallback>{initials(member.name, member.email)}</AvatarFallback>
|
|
2285
|
+
</Avatar>
|
|
2286
|
+
<div className="grid min-w-0 leading-tight">
|
|
2287
|
+
<Link
|
|
2288
|
+
href={`/settings/members/${member.userId}`}
|
|
2289
|
+
prefetch
|
|
2290
|
+
className="truncate font-medium hover:underline"
|
|
2291
|
+
>
|
|
2292
|
+
{member.name ?? member.email}
|
|
2293
|
+
{member.you ? (
|
|
2294
|
+
<span className="font-normal text-muted-foreground">
|
|
2295
|
+
{" "}
|
|
2296
|
+
({t("you")})
|
|
2297
|
+
</span>
|
|
2298
|
+
) : null}
|
|
2299
|
+
</Link>
|
|
2300
|
+
<span className="truncate text-xs text-muted-foreground">
|
|
2301
|
+
{member.email}
|
|
2302
|
+
</span>
|
|
2303
|
+
</div>
|
|
2304
|
+
</div>
|
|
2305
|
+
);
|
|
2306
|
+
}
|
|
2307
|
+
|
|
2308
|
+
function TeamsCell({ row }: MemberCell) {
|
|
2309
|
+
const { teams } = row.original;
|
|
2310
|
+
|
|
2311
|
+
if (teams.length === 0) {
|
|
2312
|
+
return <span className="text-muted-foreground">–</span>;
|
|
2313
|
+
}
|
|
2314
|
+
|
|
2315
|
+
return (
|
|
2316
|
+
<div className="flex flex-wrap gap-1">
|
|
2317
|
+
{teams.map((team) => (
|
|
2318
|
+
<Badge key={team.id} variant="outline">
|
|
2319
|
+
{team.name}
|
|
2320
|
+
</Badge>
|
|
2321
|
+
))}
|
|
2322
|
+
</div>
|
|
2323
|
+
);
|
|
2324
|
+
}
|
|
2325
|
+
|
|
2326
|
+
function JoinedCell({ row }: MemberCell) {
|
|
2327
|
+
const format = useFormatter();
|
|
2328
|
+
const { joinedAt } = row.original;
|
|
2329
|
+
|
|
2330
|
+
return (
|
|
2331
|
+
<span className="text-muted-foreground tabular-nums">
|
|
2332
|
+
{joinedAt
|
|
2333
|
+
? format.dateTime(new Date(joinedAt), { dateStyle: "medium" })
|
|
2334
|
+
: "–"}
|
|
2335
|
+
</span>
|
|
2336
|
+
);
|
|
2337
|
+
}
|
|
2338
|
+
|
|
2339
|
+
interface MemberActions {
|
|
2340
|
+
readonly changeRole: (member: Member, role: Role) => Promise<void>;
|
|
2341
|
+
readonly removeMember: (member: Member) => Promise<void>;
|
|
2342
|
+
}
|
|
2343
|
+
|
|
2344
|
+
const MemberActionsContext = createContext<MemberActions | null>(null);
|
|
2345
|
+
|
|
2346
|
+
function useMemberActions(): MemberActions {
|
|
2347
|
+
const actions = use(MemberActionsContext);
|
|
2348
|
+
|
|
2349
|
+
if (actions === null) {
|
|
2350
|
+
throw new Error("Render member cells inside <MemberTable>.");
|
|
2351
|
+
}
|
|
2352
|
+
|
|
2353
|
+
return actions;
|
|
2354
|
+
}
|
|
2355
|
+
|
|
2356
|
+
function RoleCell({ row }: MemberCell) {
|
|
2357
|
+
const t = useExtracted("members");
|
|
2358
|
+
const roleLabel = useRoleLabel();
|
|
2359
|
+
const { changeRole } = useMemberActions();
|
|
2360
|
+
const member = row.original;
|
|
2361
|
+
|
|
2362
|
+
if (member.roleChoices.length === 0) {
|
|
2363
|
+
return <RoleBadge role={member.role} />;
|
|
2364
|
+
}
|
|
2365
|
+
|
|
2366
|
+
const items = member.roleChoices.map((role) => ({
|
|
2367
|
+
value: role,
|
|
2368
|
+
label: roleLabel(role),
|
|
2369
|
+
}));
|
|
2370
|
+
|
|
2371
|
+
return (
|
|
2372
|
+
<Select
|
|
2373
|
+
value={member.role}
|
|
2374
|
+
items={items}
|
|
2375
|
+
disabled={member.busy}
|
|
2376
|
+
onValueChange={(value) => {
|
|
2377
|
+
if (v.is(Role, value)) {
|
|
2378
|
+
void changeRole(member, value);
|
|
2379
|
+
}
|
|
2380
|
+
}}
|
|
2381
|
+
>
|
|
2382
|
+
<SelectTrigger size="sm" className="w-32" aria-label={t("Role")}>
|
|
2383
|
+
<SelectValue />
|
|
2384
|
+
</SelectTrigger>
|
|
2385
|
+
<SelectContent>
|
|
2386
|
+
{items.map((item) => (
|
|
2387
|
+
<SelectItem key={item.value} value={item.value}>
|
|
2388
|
+
{item.label}
|
|
2389
|
+
</SelectItem>
|
|
2390
|
+
))}
|
|
2391
|
+
</SelectContent>
|
|
2392
|
+
</Select>
|
|
2393
|
+
);
|
|
2394
|
+
}
|
|
2395
|
+
|
|
2396
|
+
function ActionsCell({ row }: MemberCell) {
|
|
2397
|
+
const t = useExtracted("members");
|
|
2398
|
+
const { removeMember } = useMemberActions();
|
|
2399
|
+
const member = row.original;
|
|
2400
|
+
|
|
2401
|
+
if (!member.removable) {
|
|
2402
|
+
return null;
|
|
2403
|
+
}
|
|
2404
|
+
|
|
2405
|
+
return (
|
|
2406
|
+
<Button
|
|
2407
|
+
variant="ghost"
|
|
2408
|
+
size="icon-sm"
|
|
2409
|
+
disabled={member.busy}
|
|
2410
|
+
aria-label={t("Remove {name}", {
|
|
2411
|
+
name: member.name ?? member.email ?? "",
|
|
2412
|
+
})}
|
|
2413
|
+
onClick={() => {
|
|
2414
|
+
void removeMember(member);
|
|
2415
|
+
}}
|
|
2416
|
+
>
|
|
2417
|
+
<UserMinusIcon />
|
|
2418
|
+
</Button>
|
|
2419
|
+
);
|
|
2420
|
+
}
|
|
2421
|
+
|
|
2222
2422
|
/**
|
|
2223
|
-
* The organization's members
|
|
2224
|
-
*
|
|
2423
|
+
* The organization's members in a ReUI data grid, with a search and a role
|
|
2424
|
+
* filter. The server renders the rows; a role change shows at once and goes
|
|
2425
|
+
* through `update_member_role` in the browser.
|
|
2225
2426
|
*/
|
|
2226
2427
|
export function MemberTable({
|
|
2227
2428
|
organizationId,
|
|
2228
2429
|
initial,
|
|
2430
|
+
teams,
|
|
2229
2431
|
currentUserId,
|
|
2230
|
-
|
|
2432
|
+
assignable,
|
|
2231
2433
|
canUpdateRole,
|
|
2232
2434
|
canRemove,
|
|
2233
2435
|
}: {
|
|
2234
2436
|
organizationId: string;
|
|
2235
2437
|
initial: readonly Member[];
|
|
2438
|
+
teams: readonly MemberTeam[];
|
|
2236
2439
|
currentUserId: string;
|
|
2237
|
-
|
|
2440
|
+
assignable: readonly Role[];
|
|
2238
2441
|
canUpdateRole: boolean;
|
|
2239
2442
|
canRemove: boolean;
|
|
2240
2443
|
}) {
|
|
2241
|
-
const t = useExtracted("
|
|
2444
|
+
const t = useExtracted("members");
|
|
2242
2445
|
const roleLabel = useRoleLabel();
|
|
2243
2446
|
const errorMessage = useErrorMessage();
|
|
2244
|
-
const
|
|
2447
|
+
const [search, setSearch] = useState("");
|
|
2448
|
+
|
|
2449
|
+
const [roleFilter, setRoleFilter] = useState<Role | typeof ALL_ROLES>(
|
|
2450
|
+
ALL_ROLES,
|
|
2451
|
+
);
|
|
2245
2452
|
|
|
2246
2453
|
const { members, pending, setRole, remove } = useMembers({
|
|
2247
2454
|
organizationId,
|
|
@@ -2253,12 +2460,10 @@ export function MemberTable({
|
|
|
2253
2460
|
},
|
|
2254
2461
|
});
|
|
2255
2462
|
|
|
2256
|
-
const
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
label: roleLabel(role),
|
|
2261
|
-
}));
|
|
2463
|
+
const filterItems = [
|
|
2464
|
+
{ value: ALL_ROLES, label: t("All roles") },
|
|
2465
|
+
...Role.options.map((role) => ({ value: role, label: roleLabel(role) })),
|
|
2466
|
+
];
|
|
2262
2467
|
|
|
2263
2468
|
// Nobody changes their own role or an owner's here; ownership moves by transfer.
|
|
2264
2469
|
const editable = (member: Member) =>
|
|
@@ -2266,130 +2471,146 @@ export function MemberTable({
|
|
|
2266
2471
|
member.role !== "owner" &&
|
|
2267
2472
|
assignable.includes(member.role);
|
|
2268
2473
|
|
|
2269
|
-
const
|
|
2474
|
+
const changeRole = useCallback(
|
|
2475
|
+
async (member: Member, role: Role) => {
|
|
2476
|
+
const result = await setRole(member.userId, role);
|
|
2270
2477
|
|
|
2271
|
-
|
|
2272
|
-
|
|
2478
|
+
if (result.ok) {
|
|
2479
|
+
toast.success(t("Role updated"));
|
|
2480
|
+
} else {
|
|
2481
|
+
toast.error(errorMessage(result.error));
|
|
2482
|
+
}
|
|
2483
|
+
},
|
|
2484
|
+
[setRole, t, errorMessage],
|
|
2485
|
+
);
|
|
2273
2486
|
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
toast.error(errorMessage(result.error));
|
|
2278
|
-
}
|
|
2279
|
-
};
|
|
2487
|
+
const removeMember = useCallback(
|
|
2488
|
+
async (member: Member) => {
|
|
2489
|
+
const result = await remove(member.userId);
|
|
2280
2490
|
|
|
2281
|
-
|
|
2282
|
-
|
|
2491
|
+
if (result.ok) {
|
|
2492
|
+
toast.success(t("Member removed"));
|
|
2493
|
+
} else {
|
|
2494
|
+
toast.error(errorMessage(result.error));
|
|
2495
|
+
}
|
|
2496
|
+
},
|
|
2497
|
+
[remove, t, errorMessage],
|
|
2498
|
+
);
|
|
2283
2499
|
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2500
|
+
const actions = useMemo(
|
|
2501
|
+
() => ({ changeRole, removeMember }),
|
|
2502
|
+
[changeRole, removeMember],
|
|
2503
|
+
);
|
|
2504
|
+
|
|
2505
|
+
const columns: ColumnDef<DataGridFeatures, MemberRow>[] = [
|
|
2506
|
+
{ id: "member", header: t("Member"), cell: MemberCellView, size: 280 },
|
|
2507
|
+
{ accessorKey: "role", header: t("Role"), cell: RoleCell, size: 150 },
|
|
2508
|
+
{ id: "teams", header: t("Teams"), cell: TeamsCell, size: 200 },
|
|
2509
|
+
{
|
|
2510
|
+
accessorKey: "joinedAt",
|
|
2511
|
+
header: t("Joined"),
|
|
2512
|
+
cell: JoinedCell,
|
|
2513
|
+
size: 140,
|
|
2514
|
+
},
|
|
2515
|
+
{ id: "actions", header: "", cell: ActionsCell, size: 56 },
|
|
2516
|
+
];
|
|
2517
|
+
|
|
2518
|
+
const needle = search.trim().toLowerCase();
|
|
2519
|
+
const all = members ?? initial;
|
|
2520
|
+
|
|
2521
|
+
const data: MemberRow[] = all
|
|
2522
|
+
.filter(
|
|
2523
|
+
(member) =>
|
|
2524
|
+
(roleFilter === ALL_ROLES || member.role === roleFilter) &&
|
|
2525
|
+
(needle === "" ||
|
|
2526
|
+
[member.name, member.email].some((text) =>
|
|
2527
|
+
text?.toLowerCase().includes(needle),
|
|
2528
|
+
)),
|
|
2529
|
+
)
|
|
2530
|
+
.map((member) => ({
|
|
2531
|
+
...member,
|
|
2532
|
+
teams: teams.filter((team) => team.memberIds.includes(member.userId)),
|
|
2533
|
+
you: member.userId === currentUserId,
|
|
2534
|
+
roleChoices: canUpdateRole && editable(member) ? assignable : [],
|
|
2535
|
+
removable: canRemove && editable(member),
|
|
2536
|
+
busy: pending.includes(member.userId),
|
|
2537
|
+
}));
|
|
2538
|
+
|
|
2539
|
+
const table = useTable({
|
|
2540
|
+
features: dataGridFeatures,
|
|
2541
|
+
columns,
|
|
2542
|
+
data,
|
|
2543
|
+
getRowId: (row) => row.userId,
|
|
2544
|
+
});
|
|
2545
|
+
|
|
2546
|
+
const clearFilters = () => {
|
|
2547
|
+
setSearch("");
|
|
2548
|
+
setRoleFilter(ALL_ROLES);
|
|
2289
2549
|
};
|
|
2290
2550
|
|
|
2291
2551
|
return (
|
|
2292
|
-
<
|
|
2293
|
-
<
|
|
2294
|
-
<
|
|
2295
|
-
<
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2552
|
+
<MemberActionsContext value={actions}>
|
|
2553
|
+
<div className="flex flex-col gap-3">
|
|
2554
|
+
<div className="flex flex-wrap items-center gap-2">
|
|
2555
|
+
<Input
|
|
2556
|
+
type="search"
|
|
2557
|
+
className="w-56"
|
|
2558
|
+
value={search}
|
|
2559
|
+
placeholder={t("Search members")}
|
|
2560
|
+
aria-label={t("Search members")}
|
|
2561
|
+
onChange={(event) => {
|
|
2562
|
+
setSearch(event.target.value);
|
|
2563
|
+
}}
|
|
2564
|
+
/>
|
|
2565
|
+
<Select
|
|
2566
|
+
value={roleFilter}
|
|
2567
|
+
items={filterItems}
|
|
2568
|
+
onValueChange={(value) => {
|
|
2569
|
+
setRoleFilter(v.is(Role, value) ? value : ALL_ROLES);
|
|
2570
|
+
}}
|
|
2307
2571
|
>
|
|
2308
|
-
<
|
|
2309
|
-
<
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
<
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
>
|
|
2351
|
-
<SelectValue />
|
|
2352
|
-
</SelectTrigger>
|
|
2353
|
-
<SelectContent>
|
|
2354
|
-
{roleItems.map((item) => (
|
|
2355
|
-
<SelectItem key={item.value} value={item.value}>
|
|
2356
|
-
{item.label}
|
|
2357
|
-
</SelectItem>
|
|
2358
|
-
))}
|
|
2359
|
-
</SelectContent>
|
|
2360
|
-
</Select>
|
|
2361
|
-
) : (
|
|
2362
|
-
<RoleBadge role={member.role} />
|
|
2363
|
-
)}
|
|
2364
|
-
</TableCell>
|
|
2365
|
-
<TableCell className="hidden text-muted-foreground sm:table-cell">
|
|
2366
|
-
{member.joinedAt
|
|
2367
|
-
? format.dateTime(new Date(member.joinedAt), {
|
|
2368
|
-
dateStyle: "medium",
|
|
2369
|
-
})
|
|
2370
|
-
: "–"}
|
|
2371
|
-
</TableCell>
|
|
2372
|
-
<TableCell>
|
|
2373
|
-
{canRemove && editable(member) ? (
|
|
2374
|
-
<Button
|
|
2375
|
-
variant="ghost"
|
|
2376
|
-
size="icon-sm"
|
|
2377
|
-
disabled={busy(member)}
|
|
2378
|
-
aria-label={t("Remove {name}", {
|
|
2379
|
-
name: member.name ?? member.email ?? "",
|
|
2380
|
-
})}
|
|
2381
|
-
onClick={() => {
|
|
2382
|
-
void removeMember(member);
|
|
2383
|
-
}}
|
|
2384
|
-
>
|
|
2385
|
-
<UserMinusIcon />
|
|
2386
|
-
</Button>
|
|
2387
|
-
) : null}
|
|
2388
|
-
</TableCell>
|
|
2389
|
-
</TableRow>
|
|
2390
|
-
))}
|
|
2391
|
-
</TableBody>
|
|
2392
|
-
</Table>
|
|
2572
|
+
<SelectTrigger size="sm" className="w-36" aria-label={t("Role")}>
|
|
2573
|
+
<SelectValue />
|
|
2574
|
+
</SelectTrigger>
|
|
2575
|
+
<SelectContent>
|
|
2576
|
+
{filterItems.map((item) => (
|
|
2577
|
+
<SelectItem key={item.value} value={item.value}>
|
|
2578
|
+
{item.label}
|
|
2579
|
+
</SelectItem>
|
|
2580
|
+
))}
|
|
2581
|
+
</SelectContent>
|
|
2582
|
+
</Select>
|
|
2583
|
+
</div>
|
|
2584
|
+
<div data-testid="members">
|
|
2585
|
+
<DataGrid
|
|
2586
|
+
table={table}
|
|
2587
|
+
recordCount={data.length}
|
|
2588
|
+
tableLayout={{ dense: true }}
|
|
2589
|
+
emptyMessage={
|
|
2590
|
+
<Empty>
|
|
2591
|
+
<EmptyHeader>
|
|
2592
|
+
<EmptyTitle>{t("No members match")}</EmptyTitle>
|
|
2593
|
+
<EmptyDescription>
|
|
2594
|
+
{t("Try another name or role.")}
|
|
2595
|
+
</EmptyDescription>
|
|
2596
|
+
</EmptyHeader>
|
|
2597
|
+
<EmptyContent>
|
|
2598
|
+
<Button size="sm" variant="outline" onClick={clearFilters}>
|
|
2599
|
+
{t("Clear filters")}
|
|
2600
|
+
</Button>
|
|
2601
|
+
</EmptyContent>
|
|
2602
|
+
</Empty>
|
|
2603
|
+
}
|
|
2604
|
+
>
|
|
2605
|
+
<DataGridContainer>
|
|
2606
|
+
<DataGridScrollArea>
|
|
2607
|
+
<DataGridTable />
|
|
2608
|
+
</DataGridScrollArea>
|
|
2609
|
+
</DataGridContainer>
|
|
2610
|
+
</DataGrid>
|
|
2611
|
+
</div>
|
|
2612
|
+
</div>
|
|
2613
|
+
</MemberActionsContext>
|
|
2393
2614
|
);
|
|
2394
2615
|
}
|
|
2395
2616
|
```
|
|
@@ -2492,7 +2713,7 @@ npx shadcn add button dialog field input select
|
|
|
2492
2713
|
npx shadcn add @better-supabase/use-organizations
|
|
2493
2714
|
```
|
|
2494
2715
|
|
|
2495
|
-
```tsx title="apps/examples/nextjs/src/features/
|
|
2716
|
+
```tsx title="apps/examples/nextjs/src/features/members/components/invite-member-dialog.tsx"
|
|
2496
2717
|
"use client";
|
|
2497
2718
|
|
|
2498
2719
|
import type { SubmitEvent } from "react";
|
|
@@ -2528,26 +2749,25 @@ import {
|
|
|
2528
2749
|
SelectTrigger,
|
|
2529
2750
|
SelectValue,
|
|
2530
2751
|
} from "@/components/ui/select";
|
|
2531
|
-
import {
|
|
2752
|
+
import { SubmitLabel } from "@/features/offline/components/submit-label";
|
|
2753
|
+
import { invitationSent } from "@/features/organization/organization-actions";
|
|
2754
|
+
import { useInviteLink } from "@/features/organization/use-invite-link";
|
|
2755
|
+
import { useRoleLabel } from "@/features/organization/use-role-label";
|
|
2532
2756
|
import { useInvitations } from "@/hooks/use-organizations";
|
|
2533
2757
|
import { Role } from "@/lib/claims";
|
|
2534
2758
|
import { blockConfig } from "@/lib/supabase/blocks.generated";
|
|
2535
2759
|
import { useErrorMessage } from "@/lib/use-error-message";
|
|
2536
2760
|
|
|
2537
|
-
import { invitationSent } from "../organization-actions";
|
|
2538
|
-
import { useInviteLink } from "../use-invite-link";
|
|
2539
|
-
import { useRoleLabel } from "../use-role-label";
|
|
2540
|
-
|
|
2541
2761
|
/**
|
|
2542
2762
|
* Invites a teammate through `invite_member` in the browser, then shows the
|
|
2543
2763
|
* accept link: the example has no mailer.
|
|
2544
2764
|
*/
|
|
2545
2765
|
export function InviteMemberDialog({
|
|
2546
2766
|
organizationId,
|
|
2547
|
-
|
|
2767
|
+
assignable,
|
|
2548
2768
|
}: {
|
|
2549
2769
|
organizationId: string;
|
|
2550
|
-
|
|
2770
|
+
assignable: readonly Role[];
|
|
2551
2771
|
}) {
|
|
2552
2772
|
const t = useExtracted("organization");
|
|
2553
2773
|
const fieldId = useId();
|
|
@@ -2558,7 +2778,7 @@ export function InviteMemberDialog({
|
|
|
2558
2778
|
const [email, setEmail] = useState("");
|
|
2559
2779
|
const [role, setRole] = useState<Role>("member");
|
|
2560
2780
|
|
|
2561
|
-
const roles =
|
|
2781
|
+
const roles = assignable.map((each) => ({
|
|
2562
2782
|
value: each,
|
|
2563
2783
|
label: roleLabel(each),
|
|
2564
2784
|
}));
|
|
@@ -2696,7 +2916,9 @@ export function InviteMemberDialog({
|
|
|
2696
2916
|
{t("Cancel")}
|
|
2697
2917
|
</DialogClose>
|
|
2698
2918
|
<Button type="submit" disabled={inviting}>
|
|
2699
|
-
{
|
|
2919
|
+
<SubmitLabel pending={inviting}>
|
|
2920
|
+
{t("Send invitation")}
|
|
2921
|
+
</SubmitLabel>
|
|
2700
2922
|
</Button>
|
|
2701
2923
|
</DialogFooter>
|
|
2702
2924
|
</form>
|
|
@@ -3638,6 +3860,8 @@ export function TagInput({ customerId }: { readonly customerId: string }) {
|
|
|
3638
3860
|
if (result.ok) {
|
|
3639
3861
|
setName("");
|
|
3640
3862
|
}
|
|
3863
|
+
|
|
3864
|
+
return result;
|
|
3641
3865
|
})
|
|
3642
3866
|
}
|
|
3643
3867
|
/>
|
|
@@ -3752,6 +3976,7 @@ import {
|
|
|
3752
3976
|
FieldLabel,
|
|
3753
3977
|
} from "@/components/ui/field";
|
|
3754
3978
|
import { Input } from "@/components/ui/input";
|
|
3979
|
+
import { SubmitLabel } from "@/features/offline/components/submit-label";
|
|
3755
3980
|
import { useErrorMessage } from "@/lib/use-error-message";
|
|
3756
3981
|
|
|
3757
3982
|
import { updateProfile } from "../user-actions";
|
|
@@ -3809,7 +4034,7 @@ export function ProfileForm({
|
|
|
3809
4034
|
</Field>
|
|
3810
4035
|
</FieldGroup>
|
|
3811
4036
|
<Button type="submit" disabled={form.pending}>
|
|
3812
|
-
{t("Save")}
|
|
4037
|
+
<SubmitLabel pending={form.pending}>{t("Save")}</SubmitLabel>
|
|
3813
4038
|
</Button>
|
|
3814
4039
|
</form>
|
|
3815
4040
|
);
|
|
@@ -6380,7 +6605,11 @@ export function WorkflowRuns({ tenant }: { tenant: string | null }) {
|
|
|
6380
6605
|
{runs.map((run) => (
|
|
6381
6606
|
<TableRow key={run.id}>
|
|
6382
6607
|
<TableCell>
|
|
6383
|
-
<Link
|
|
6608
|
+
<Link
|
|
6609
|
+
href={`/workflows/${run.id}`}
|
|
6610
|
+
prefetch
|
|
6611
|
+
className="font-medium"
|
|
6612
|
+
>
|
|
6384
6613
|
{workflowName(run.definition)}
|
|
6385
6614
|
</Link>
|
|
6386
6615
|
</TableCell>
|
|
@@ -7405,17 +7634,19 @@ import {
|
|
|
7405
7634
|
EmptyTitle,
|
|
7406
7635
|
} from "@/components/ui/empty";
|
|
7407
7636
|
import { Skeleton } from "@/components/ui/skeleton";
|
|
7637
|
+
import { env } from "@/env";
|
|
7408
7638
|
import { useSupabase } from "@/lib/hooks";
|
|
7409
7639
|
import { blockConfig } from "@/lib/supabase/blocks.generated";
|
|
7410
7640
|
|
|
7411
7641
|
/**
|
|
7412
|
-
* The worker in `public
|
|
7413
|
-
* site root
|
|
7642
|
+
* The app's one service worker in `public/`, which shows the pushes. It must be
|
|
7643
|
+
* served from the site root, and any other registration of the app's worker
|
|
7644
|
+
* must use the same URL, or the two replace each other.
|
|
7414
7645
|
*/
|
|
7415
|
-
const WORKER_URL = "/
|
|
7646
|
+
const WORKER_URL = "/sw.js";
|
|
7416
7647
|
const PUSH_GUIDE = "https://bettersupabase.com/docs/blocks/push";
|
|
7417
7648
|
|
|
7418
|
-
const VAPID_PUBLIC_KEY =
|
|
7649
|
+
const VAPID_PUBLIC_KEY = env.NEXT_PUBLIC_VAPID_PUBLIC_KEY;
|
|
7419
7650
|
|
|
7420
7651
|
type PushState =
|
|
7421
7652
|
| { readonly kind: "checking" }
|
|
@@ -7476,9 +7707,18 @@ export function PushOptIn() {
|
|
|
7476
7707
|
});
|
|
7477
7708
|
|
|
7478
7709
|
const read = () => {
|
|
7479
|
-
currentState().then(
|
|
7480
|
-
|
|
7481
|
-
|
|
7710
|
+
void currentState().then(
|
|
7711
|
+
(state) => {
|
|
7712
|
+
setState(state);
|
|
7713
|
+
|
|
7714
|
+
return state;
|
|
7715
|
+
},
|
|
7716
|
+
() => {
|
|
7717
|
+
setState({ kind: "error" });
|
|
7718
|
+
|
|
7719
|
+
return null;
|
|
7720
|
+
},
|
|
7721
|
+
);
|
|
7482
7722
|
};
|
|
7483
7723
|
|
|
7484
7724
|
const check = () => {
|
|
@@ -9160,7 +9400,7 @@ import { useExtracted } from "next-intl";
|
|
|
9160
9400
|
import { Button } from "@/components/ui/button";
|
|
9161
9401
|
import { Skeleton } from "@/components/ui/skeleton";
|
|
9162
9402
|
import { useSubject } from "@/hooks/use-subjects";
|
|
9163
|
-
import { Link } from "@/i18n/navigation";
|
|
9403
|
+
import { Link, toAppHref } from "@/i18n/navigation";
|
|
9164
9404
|
|
|
9165
9405
|
/**
|
|
9166
9406
|
* A link to any subject in `config.subjects`, titled and routed by
|
|
@@ -9207,7 +9447,7 @@ export function SubjectLink({ subject }: { subject: RecordRef }) {
|
|
|
9207
9447
|
<span className="truncate text-sm font-medium">{title}</span>
|
|
9208
9448
|
) : (
|
|
9209
9449
|
<Link
|
|
9210
|
-
href={resolved.url}
|
|
9450
|
+
href={toAppHref(resolved.url)}
|
|
9211
9451
|
className="truncate text-sm font-medium underline-offset-4 transition-colors hover:underline"
|
|
9212
9452
|
>
|
|
9213
9453
|
{title}
|
|
@@ -9240,7 +9480,7 @@ import { useExtracted } from "next-intl";
|
|
|
9240
9480
|
import { Badge } from "@/components/reui/badge";
|
|
9241
9481
|
import { Skeleton } from "@/components/ui/skeleton";
|
|
9242
9482
|
import { useSubject } from "@/hooks/use-subjects";
|
|
9243
|
-
import { Link } from "@/i18n/navigation";
|
|
9483
|
+
import { Link, toAppHref } from "@/i18n/navigation";
|
|
9244
9484
|
|
|
9245
9485
|
/**
|
|
9246
9486
|
* A compact badge for a subject: its type and title, linking to its page. Rows
|
|
@@ -9269,7 +9509,7 @@ export function SubjectChip({ subject }: { subject: RecordRef }) {
|
|
|
9269
9509
|
<Badge
|
|
9270
9510
|
variant="outline"
|
|
9271
9511
|
className="transition-colors hover:bg-accent"
|
|
9272
|
-
render={<Link href={resolved.url} />}
|
|
9512
|
+
render={<Link href={toAppHref(resolved.url)} />}
|
|
9273
9513
|
>
|
|
9274
9514
|
{content}
|
|
9275
9515
|
</Badge>
|
|
@@ -9556,7 +9796,7 @@ npx shadcn add alert badge button card empty skeleton
|
|
|
9556
9796
|
* with and whether they must sign in with SSO.
|
|
9557
9797
|
*/
|
|
9558
9798
|
export async function SsoSettings() {
|
|
9559
|
-
if (!can(await
|
|
9799
|
+
if (!can(await getPermissions(), "sso.manage")) {
|
|
9560
9800
|
forbidden();
|
|
9561
9801
|
}
|
|
9562
9802
|
|
|
@@ -9761,7 +10001,7 @@ npx shadcn add alert badge button card empty skeleton table
|
|
|
9761
10001
|
* back to the previous one when the duration runs out.
|
|
9762
10002
|
*/
|
|
9763
10003
|
export async function AccessRequestsInbox() {
|
|
9764
|
-
if (!can(await
|
|
10004
|
+
if (!can(await getPermissions(), "access_requests.create")) {
|
|
9765
10005
|
forbidden();
|
|
9766
10006
|
}
|
|
9767
10007
|
|
|
@@ -11339,13 +11579,13 @@ export async function ContactDetail({
|
|
|
11339
11579
|
}: {
|
|
11340
11580
|
params: Promise<{ id: string }>;
|
|
11341
11581
|
}) {
|
|
11342
|
-
const [{ id },
|
|
11582
|
+
const [{ id }, t, permissions] = await Promise.all([
|
|
11343
11583
|
params,
|
|
11344
|
-
getSession(),
|
|
11345
11584
|
getExtracted("crm"),
|
|
11585
|
+
getPermissions(),
|
|
11346
11586
|
]);
|
|
11347
11587
|
|
|
11348
|
-
if (!can(
|
|
11588
|
+
if (!can(permissions, "parties.read")) {
|
|
11349
11589
|
forbidden();
|
|
11350
11590
|
}
|
|
11351
11591
|
|
|
@@ -11476,7 +11716,7 @@ export async function ContactDetail({
|
|
|
11476
11716
|
))}
|
|
11477
11717
|
</ul>
|
|
11478
11718
|
)}
|
|
11479
|
-
{can(
|
|
11719
|
+
{can(permissions, "parties.write") ? (
|
|
11480
11720
|
<LinkPersonForm
|
|
11481
11721
|
companyId={contact.id}
|
|
11482
11722
|
people={contact.candidates.map((person) => ({
|
|
@@ -11527,9 +11767,12 @@ npx shadcn add card empty skeleton
|
|
|
11527
11767
|
* pipeline. Dragging a deal saves its new stage through `moveDeal`.
|
|
11528
11768
|
*/
|
|
11529
11769
|
export async function DealBoard() {
|
|
11530
|
-
const [
|
|
11770
|
+
const [t, permissions] = await Promise.all([
|
|
11771
|
+
getExtracted("crm"),
|
|
11772
|
+
getPermissions(),
|
|
11773
|
+
]);
|
|
11531
11774
|
|
|
11532
|
-
if (!can(
|
|
11775
|
+
if (!can(permissions, "deals.read")) {
|
|
11533
11776
|
forbidden();
|
|
11534
11777
|
}
|
|
11535
11778
|
|
|
@@ -11555,7 +11798,7 @@ export async function DealBoard() {
|
|
|
11555
11798
|
<CardDescription>
|
|
11556
11799
|
{t("Drag a deal to another stage to move it.")}
|
|
11557
11800
|
</CardDescription>
|
|
11558
|
-
{pipeline && can(
|
|
11801
|
+
{pipeline && can(permissions, "deals.write") ? (
|
|
11559
11802
|
<CardAction>
|
|
11560
11803
|
<CreateDealDialog pipelineId={pipeline.id} stages={openStages} />
|
|
11561
11804
|
</CardAction>
|
|
@@ -11572,14 +11815,14 @@ export async function DealBoard() {
|
|
|
11572
11815
|
</EmptyMedia>
|
|
11573
11816
|
<EmptyTitle>{t("No pipeline yet")}</EmptyTitle>
|
|
11574
11817
|
<EmptyDescription>
|
|
11575
|
-
{can(
|
|
11818
|
+
{can(permissions, "pipelines.manage")
|
|
11576
11819
|
? t(
|
|
11577
11820
|
"Start with six stages, from qualified to closed won or lost.",
|
|
11578
11821
|
)
|
|
11579
11822
|
: t("Ask an admin to create the sales pipeline.")}
|
|
11580
11823
|
</EmptyDescription>
|
|
11581
11824
|
</EmptyHeader>
|
|
11582
|
-
{can(
|
|
11825
|
+
{can(permissions, "pipelines.manage") ? (
|
|
11583
11826
|
<EmptyContent>
|
|
11584
11827
|
<CreatePipelineButton />
|
|
11585
11828
|
</EmptyContent>
|
|
@@ -11592,7 +11835,7 @@ export async function DealBoard() {
|
|
|
11592
11835
|
.join(",")}
|
|
11593
11836
|
stages={board.data.stages}
|
|
11594
11837
|
deals={board.data.deals}
|
|
11595
|
-
canMove={can(
|
|
11838
|
+
canMove={can(permissions, "deals.write")}
|
|
11596
11839
|
/>
|
|
11597
11840
|
)}
|
|
11598
11841
|
</CardContent>
|
|
@@ -11627,10 +11870,10 @@ const stepIcons = {
|
|
|
11627
11870
|
|
|
11628
11871
|
/** Render inside `<Suspense>`: the organization's sequences and their steps. */
|
|
11629
11872
|
export async function SequenceBuilder() {
|
|
11630
|
-
const [view,
|
|
11873
|
+
const [view, t, permissions] = await Promise.all([
|
|
11631
11874
|
getSequences(),
|
|
11632
|
-
getSession(),
|
|
11633
11875
|
getExtracted("sequences"),
|
|
11876
|
+
getPermissions(),
|
|
11634
11877
|
]);
|
|
11635
11878
|
|
|
11636
11879
|
if (view.kind === "no-organization") {
|
|
@@ -11654,7 +11897,7 @@ export async function SequenceBuilder() {
|
|
|
11654
11897
|
);
|
|
11655
11898
|
}
|
|
11656
11899
|
|
|
11657
|
-
const manage = can(
|
|
11900
|
+
const manage = can(permissions, "sequences.manage");
|
|
11658
11901
|
|
|
11659
11902
|
if (view.data.length === 0) {
|
|
11660
11903
|
return (
|
|
@@ -11810,13 +12053,13 @@ export async function ActivityTimeline({
|
|
|
11810
12053
|
}: {
|
|
11811
12054
|
subject: { type: ContactKind; id: string };
|
|
11812
12055
|
}) {
|
|
11813
|
-
const [
|
|
11814
|
-
getSession(),
|
|
12056
|
+
const [t, format, permissions] = await Promise.all([
|
|
11815
12057
|
getExtracted("crm"),
|
|
11816
12058
|
getFormatter(),
|
|
12059
|
+
getPermissions(),
|
|
11817
12060
|
]);
|
|
11818
12061
|
|
|
11819
|
-
if (!can(
|
|
12062
|
+
if (!can(permissions, "engagements.read")) {
|
|
11820
12063
|
return null;
|
|
11821
12064
|
}
|
|
11822
12065
|
|
|
@@ -11826,7 +12069,7 @@ export async function ActivityTimeline({
|
|
|
11826
12069
|
return null;
|
|
11827
12070
|
}
|
|
11828
12071
|
|
|
11829
|
-
const canLog = can(
|
|
12072
|
+
const canLog = can(permissions, "engagements.write");
|
|
11830
12073
|
|
|
11831
12074
|
const types = new Map([
|
|
11832
12075
|
["call", t("Call")],
|
|
@@ -11941,14 +12184,14 @@ export async function QuoteBuilder({
|
|
|
11941
12184
|
}: {
|
|
11942
12185
|
params: Promise<{ id: string }>;
|
|
11943
12186
|
}) {
|
|
11944
|
-
const [{ id },
|
|
12187
|
+
const [{ id }, t, locale, permissions] = await Promise.all([
|
|
11945
12188
|
params,
|
|
11946
|
-
getSession(),
|
|
11947
12189
|
getExtracted("crm"),
|
|
11948
12190
|
getLocale(),
|
|
12191
|
+
getPermissions(),
|
|
11949
12192
|
]);
|
|
11950
12193
|
|
|
11951
|
-
if (!can(
|
|
12194
|
+
if (!can(permissions, "quotes.read")) {
|
|
11952
12195
|
forbidden();
|
|
11953
12196
|
}
|
|
11954
12197
|
|
|
@@ -11968,7 +12211,7 @@ export async function QuoteBuilder({
|
|
|
11968
12211
|
notFound();
|
|
11969
12212
|
}
|
|
11970
12213
|
|
|
11971
|
-
const canWrite = can(
|
|
12214
|
+
const canWrite = can(permissions, "quotes.write");
|
|
11972
12215
|
|
|
11973
12216
|
const editable =
|
|
11974
12217
|
canWrite &&
|
|
@@ -12103,14 +12346,14 @@ npx shadcn add badge card empty progress skeleton
|
|
|
12103
12346
|
* are.
|
|
12104
12347
|
*/
|
|
12105
12348
|
export async function TargetsProgress() {
|
|
12106
|
-
const [
|
|
12107
|
-
getSession(),
|
|
12349
|
+
const [t, format, locale, permissions] = await Promise.all([
|
|
12108
12350
|
getExtracted("crm"),
|
|
12109
12351
|
getFormatter(),
|
|
12110
12352
|
getLocale(),
|
|
12353
|
+
getPermissions(),
|
|
12111
12354
|
]);
|
|
12112
12355
|
|
|
12113
|
-
if (!can(
|
|
12356
|
+
if (!can(permissions, "targets.read")) {
|
|
12114
12357
|
return null;
|
|
12115
12358
|
}
|
|
12116
12359
|
|
|
@@ -12120,7 +12363,7 @@ export async function TargetsProgress() {
|
|
|
12120
12363
|
return null;
|
|
12121
12364
|
}
|
|
12122
12365
|
|
|
12123
|
-
const canManage = can(
|
|
12366
|
+
const canManage = can(permissions, "targets.manage");
|
|
12124
12367
|
|
|
12125
12368
|
const amountOf = (target: TargetRow, value: bigint) =>
|
|
12126
12369
|
target.currency === null
|
|
@@ -12273,7 +12516,7 @@ export function WorkItemBoard({
|
|
|
12273
12516
|
errorMessage(result.error),
|
|
12274
12517
|
);
|
|
12275
12518
|
|
|
12276
|
-
return;
|
|
12519
|
+
return result;
|
|
12277
12520
|
}
|
|
12278
12521
|
|
|
12279
12522
|
if (!result.data.ordered) {
|
|
@@ -12281,6 +12524,8 @@ export function WorkItemBoard({
|
|
|
12281
12524
|
t("Moved, but its place in the column wasn't saved."),
|
|
12282
12525
|
);
|
|
12283
12526
|
}
|
|
12527
|
+
|
|
12528
|
+
return result;
|
|
12284
12529
|
});
|
|
12285
12530
|
}}
|
|
12286
12531
|
>
|
|
@@ -12711,7 +12956,7 @@ export function WorkItemGrid({
|
|
|
12711
12956
|
|
|
12712
12957
|
const go = (next: WorkGridQuery) => {
|
|
12713
12958
|
startTransition(() => {
|
|
12714
|
-
router.replace(
|
|
12959
|
+
router.replace(withSearch(pathname, workGridSearch(next)));
|
|
12715
12960
|
});
|
|
12716
12961
|
};
|
|
12717
12962
|
|
|
@@ -13049,13 +13294,13 @@ npx shadcn add alert badge button card empty skeleton table
|
|
|
13049
13294
|
* caller is an approver of the current step.
|
|
13050
13295
|
*/
|
|
13051
13296
|
export async function ApprovalsQueue() {
|
|
13052
|
-
const [
|
|
13053
|
-
getSession(),
|
|
13297
|
+
const [t, format, permissions] = await Promise.all([
|
|
13054
13298
|
getExtracted("approvals"),
|
|
13055
13299
|
getFormatter(),
|
|
13300
|
+
getPermissions(),
|
|
13056
13301
|
]);
|
|
13057
13302
|
|
|
13058
|
-
if (!can(
|
|
13303
|
+
if (!can(permissions, "approvals.read")) {
|
|
13059
13304
|
forbidden();
|
|
13060
13305
|
}
|
|
13061
13306
|
|
|
@@ -13065,8 +13310,8 @@ export async function ApprovalsQueue() {
|
|
|
13065
13310
|
return null;
|
|
13066
13311
|
}
|
|
13067
13312
|
|
|
13068
|
-
const canRequest = can(
|
|
13069
|
-
const canDecide = can(
|
|
13313
|
+
const canRequest = can(permissions, "approvals.request");
|
|
13314
|
+
const canDecide = can(permissions, "approvals.manage");
|
|
13070
13315
|
const customers = queue.kind === "ok" ? queue.data.customers : [];
|
|
13071
13316
|
|
|
13072
13317
|
const actionLabel = (action: string) =>
|
|
@@ -13300,7 +13545,7 @@ export async function MyWorkList() {
|
|
|
13300
13545
|
<span className="truncate">{row.title}</span>
|
|
13301
13546
|
) : (
|
|
13302
13547
|
<Link
|
|
13303
|
-
href={row.url}
|
|
13548
|
+
href={toAppHref(row.url)}
|
|
13304
13549
|
className="truncate font-medium underline-offset-4 transition-colors hover:underline"
|
|
13305
13550
|
>
|
|
13306
13551
|
{row.title}
|
|
@@ -13619,13 +13864,13 @@ export async function CustomFieldsEditor({
|
|
|
13619
13864
|
}: {
|
|
13620
13865
|
searchParams: Promise<Record<string, string | string[] | undefined>>;
|
|
13621
13866
|
}) {
|
|
13622
|
-
const [
|
|
13623
|
-
getSession(),
|
|
13867
|
+
const [t, params, permissions] = await Promise.all([
|
|
13624
13868
|
getExtracted("custom-fields"),
|
|
13625
13869
|
searchParams,
|
|
13870
|
+
getPermissions(),
|
|
13626
13871
|
]);
|
|
13627
13872
|
|
|
13628
|
-
if (!can(
|
|
13873
|
+
if (!can(permissions, "custom_fields.read")) {
|
|
13629
13874
|
forbidden();
|
|
13630
13875
|
}
|
|
13631
13876
|
|
|
@@ -13637,7 +13882,7 @@ export async function CustomFieldsEditor({
|
|
|
13637
13882
|
return null;
|
|
13638
13883
|
}
|
|
13639
13884
|
|
|
13640
|
-
const canManage = can(
|
|
13885
|
+
const canManage = can(permissions, "custom_fields.manage");
|
|
13641
13886
|
|
|
13642
13887
|
return (
|
|
13643
13888
|
<Card data-recipe="custom-fields-editor">
|
|
@@ -13915,6 +14160,8 @@ export function BulkActionBar({
|
|
|
13915
14160
|
onClick={() => {
|
|
13916
14161
|
void run({ action: "delete" }).then(() => {
|
|
13917
14162
|
setConfirming(false);
|
|
14163
|
+
|
|
14164
|
+
return true;
|
|
13918
14165
|
});
|
|
13919
14166
|
}}
|
|
13920
14167
|
>
|
|
@@ -14285,12 +14532,12 @@ npx shadcn add card empty skeleton
|
|
|
14285
14532
|
* with `employees.view_sensitive`.
|
|
14286
14533
|
*/
|
|
14287
14534
|
export async function EmployeeDirectory() {
|
|
14288
|
-
const [
|
|
14289
|
-
getSession(),
|
|
14535
|
+
const [t, permissions] = await Promise.all([
|
|
14290
14536
|
getExtracted("people"),
|
|
14537
|
+
getPermissions(),
|
|
14291
14538
|
]);
|
|
14292
14539
|
|
|
14293
|
-
if (!can(
|
|
14540
|
+
if (!can(permissions, "employees.read")) {
|
|
14294
14541
|
forbidden();
|
|
14295
14542
|
}
|
|
14296
14543
|
|
|
@@ -14300,8 +14547,8 @@ export async function EmployeeDirectory() {
|
|
|
14300
14547
|
return null;
|
|
14301
14548
|
}
|
|
14302
14549
|
|
|
14303
|
-
const canWrite = can(
|
|
14304
|
-
const canViewSensitive = can(
|
|
14550
|
+
const canWrite = can(permissions, "employees.write");
|
|
14551
|
+
const canViewSensitive = can(permissions, "employees.view_sensitive");
|
|
14305
14552
|
|
|
14306
14553
|
const managers =
|
|
14307
14554
|
directory.kind === "ok"
|
|
@@ -14380,13 +14627,13 @@ export async function HiringBoard({
|
|
|
14380
14627
|
}: {
|
|
14381
14628
|
searchParams: Promise<Record<string, string | string[] | undefined>>;
|
|
14382
14629
|
}) {
|
|
14383
|
-
const [
|
|
14384
|
-
getSession(),
|
|
14630
|
+
const [t, query, permissions] = await Promise.all([
|
|
14385
14631
|
getExtracted("people"),
|
|
14386
14632
|
searchParams,
|
|
14633
|
+
getPermissions(),
|
|
14387
14634
|
]);
|
|
14388
14635
|
|
|
14389
|
-
if (!can(
|
|
14636
|
+
if (!can(permissions, "hiring.read")) {
|
|
14390
14637
|
forbidden();
|
|
14391
14638
|
}
|
|
14392
14639
|
|
|
@@ -14396,8 +14643,8 @@ export async function HiringBoard({
|
|
|
14396
14643
|
return null;
|
|
14397
14644
|
}
|
|
14398
14645
|
|
|
14399
|
-
const canManage = can(
|
|
14400
|
-
const canWrite = can(
|
|
14646
|
+
const canManage = can(permissions, "hiring.manage");
|
|
14647
|
+
const canWrite = can(permissions, "hiring.write");
|
|
14401
14648
|
const jobs = board.kind === "ok" ? board.data.jobs : [];
|
|
14402
14649
|
const job = jobs.find((item) => item.id === query["job"]) ?? jobs[0];
|
|
14403
14650
|
|
|
@@ -14533,15 +14780,15 @@ export async function Timesheet({
|
|
|
14533
14780
|
}: {
|
|
14534
14781
|
searchParams: Promise<Record<string, string | string[] | undefined>>;
|
|
14535
14782
|
}) {
|
|
14536
|
-
const [
|
|
14537
|
-
getSession(),
|
|
14783
|
+
const [t, format, query, permissions] = await Promise.all([
|
|
14538
14784
|
getExtracted("people"),
|
|
14539
14785
|
getFormatter(),
|
|
14540
14786
|
searchParams,
|
|
14787
|
+
getPermissions(),
|
|
14541
14788
|
connection(),
|
|
14542
14789
|
]);
|
|
14543
14790
|
|
|
14544
|
-
if (!can(
|
|
14791
|
+
if (!can(permissions, "time_tracking.track")) {
|
|
14545
14792
|
forbidden();
|
|
14546
14793
|
}
|
|
14547
14794
|
|
|
@@ -14746,19 +14993,19 @@ export async function DispatchBoard({
|
|
|
14746
14993
|
}: {
|
|
14747
14994
|
searchParams: Promise<Record<string, string | string[] | undefined>>;
|
|
14748
14995
|
}) {
|
|
14749
|
-
const [
|
|
14750
|
-
getSession(),
|
|
14996
|
+
const [t, format, query, permissions] = await Promise.all([
|
|
14751
14997
|
getExtracted("field"),
|
|
14752
14998
|
getFormatter(),
|
|
14753
14999
|
searchParams,
|
|
15000
|
+
getPermissions(),
|
|
14754
15001
|
connection(),
|
|
14755
15002
|
]);
|
|
14756
15003
|
|
|
14757
|
-
if (!can(
|
|
15004
|
+
if (!can(permissions, "dispatch.read")) {
|
|
14758
15005
|
forbidden();
|
|
14759
15006
|
}
|
|
14760
15007
|
|
|
14761
|
-
const manage = can(
|
|
15008
|
+
const manage = can(permissions, "dispatch.manage");
|
|
14762
15009
|
const monday = mondayOf(query["week"]);
|
|
14763
15010
|
const board = await settle(() => loadDispatchWeek(monday.toString()));
|
|
14764
15011
|
|
|
@@ -14963,15 +15210,15 @@ export async function TechnicianDay({
|
|
|
14963
15210
|
}: {
|
|
14964
15211
|
searchParams: Promise<Record<string, string | string[] | undefined>>;
|
|
14965
15212
|
}) {
|
|
14966
|
-
const [
|
|
14967
|
-
getSession(),
|
|
15213
|
+
const [t, format, query, permissions] = await Promise.all([
|
|
14968
15214
|
getExtracted("field"),
|
|
14969
15215
|
getFormatter(),
|
|
14970
15216
|
searchParams,
|
|
15217
|
+
getPermissions(),
|
|
14971
15218
|
connection(),
|
|
14972
15219
|
]);
|
|
14973
15220
|
|
|
14974
|
-
if (!can(
|
|
15221
|
+
if (!can(permissions, "dispatch.work")) {
|
|
14975
15222
|
forbidden();
|
|
14976
15223
|
}
|
|
14977
15224
|
|
|
@@ -15103,15 +15350,15 @@ export async function ShipmentTracking({
|
|
|
15103
15350
|
}: {
|
|
15104
15351
|
searchParams: Promise<Record<string, string | string[] | undefined>>;
|
|
15105
15352
|
}) {
|
|
15106
|
-
const [
|
|
15107
|
-
getSession(),
|
|
15353
|
+
const [t, format, query, permissions] = await Promise.all([
|
|
15108
15354
|
getExtracted("field"),
|
|
15109
15355
|
getFormatter(),
|
|
15110
15356
|
searchParams,
|
|
15357
|
+
getPermissions(),
|
|
15111
15358
|
connection(),
|
|
15112
15359
|
]);
|
|
15113
15360
|
|
|
15114
|
-
if (!can(
|
|
15361
|
+
if (!can(permissions, "shipments.read")) {
|
|
15115
15362
|
forbidden();
|
|
15116
15363
|
}
|
|
15117
15364
|
|
|
@@ -15125,7 +15372,7 @@ export async function ShipmentTracking({
|
|
|
15125
15372
|
return null;
|
|
15126
15373
|
}
|
|
15127
15374
|
|
|
15128
|
-
const newShipment = can(
|
|
15375
|
+
const newShipment = can(permissions, "shipments.manage") ? (
|
|
15129
15376
|
<NewShipmentDialog />
|
|
15130
15377
|
) : null;
|
|
15131
15378
|
|
|
@@ -15302,24 +15549,25 @@ async function retry() {
|
|
|
15302
15549
|
* billing page still shows the plan.
|
|
15303
15550
|
*/
|
|
15304
15551
|
export async function InvoicesTable() {
|
|
15305
|
-
|
|
15306
|
-
|
|
15307
|
-
|
|
15308
|
-
|
|
15309
|
-
}
|
|
15310
|
-
|
|
15311
|
-
const [list, t, format, locale] = await Promise.all([
|
|
15552
|
+
// One round trip: the invoices read starts with the permission read, and RLS
|
|
15553
|
+
// limits it to what the caller may see either way.
|
|
15554
|
+
const [permissions, list, t, format, locale] = await Promise.all([
|
|
15555
|
+
getPermissions(),
|
|
15312
15556
|
getInvoices(),
|
|
15313
15557
|
getExtracted("billing"),
|
|
15314
15558
|
getFormatter(),
|
|
15315
15559
|
getLocale(),
|
|
15316
15560
|
]);
|
|
15317
15561
|
|
|
15562
|
+
if (!can(permissions, "invoices.read")) {
|
|
15563
|
+
return null;
|
|
15564
|
+
}
|
|
15565
|
+
|
|
15318
15566
|
if (list.kind === "no-organization") {
|
|
15319
15567
|
return null;
|
|
15320
15568
|
}
|
|
15321
15569
|
|
|
15322
|
-
const canWrite = can(
|
|
15570
|
+
const canWrite = can(permissions, "invoices.write");
|
|
15323
15571
|
|
|
15324
15572
|
const status = (value: InvoiceStatus, overdue: boolean) => {
|
|
15325
15573
|
if (overdue) {
|
|
@@ -15486,23 +15734,23 @@ async function retry() {
|
|
|
15486
15734
|
|
|
15487
15735
|
/** Render inside `<Suspense>`: the organization's products as cards. */
|
|
15488
15736
|
export async function ProductCatalogGrid() {
|
|
15489
|
-
|
|
15490
|
-
|
|
15491
|
-
|
|
15492
|
-
forbidden();
|
|
15493
|
-
}
|
|
15494
|
-
|
|
15495
|
-
const [products, t, locale] = await Promise.all([
|
|
15737
|
+
// The read starts with the permission check; RLS guards it either way.
|
|
15738
|
+
const [permissions, products, t, locale] = await Promise.all([
|
|
15739
|
+
getPermissions(),
|
|
15496
15740
|
getProducts(),
|
|
15497
15741
|
getExtracted("shop"),
|
|
15498
15742
|
getLocale(),
|
|
15499
15743
|
]);
|
|
15500
15744
|
|
|
15745
|
+
if (!can(permissions, "catalog.read")) {
|
|
15746
|
+
forbidden();
|
|
15747
|
+
}
|
|
15748
|
+
|
|
15501
15749
|
if (products.kind === "no-organization") {
|
|
15502
15750
|
return null;
|
|
15503
15751
|
}
|
|
15504
15752
|
|
|
15505
|
-
const canManage = can(
|
|
15753
|
+
const canManage = can(permissions, "catalog.manage");
|
|
15506
15754
|
|
|
15507
15755
|
const status = (product: Product) => {
|
|
15508
15756
|
switch (product.status) {
|
|
@@ -15567,7 +15815,7 @@ export async function ProductCatalogGrid() {
|
|
|
15567
15815
|
})}
|
|
15568
15816
|
</p>
|
|
15569
15817
|
<div className="flex items-center gap-2">
|
|
15570
|
-
{can(
|
|
15818
|
+
{can(permissions, "promotions.manage") ? (
|
|
15571
15819
|
<CreatePromotionCodeDialog />
|
|
15572
15820
|
) : null}
|
|
15573
15821
|
{canManage ? <CreateProductDialog variant="outline" /> : null}
|
|
@@ -15628,22 +15876,22 @@ async function retry() {
|
|
|
15628
15876
|
|
|
15629
15877
|
/** Render inside `<Suspense>`: stock per tracked variant and active location. */
|
|
15630
15878
|
export async function InventoryTable() {
|
|
15631
|
-
|
|
15632
|
-
|
|
15633
|
-
|
|
15634
|
-
forbidden();
|
|
15635
|
-
}
|
|
15636
|
-
|
|
15637
|
-
const [stock, t] = await Promise.all([
|
|
15879
|
+
// The read starts with the permission check; RLS guards it either way.
|
|
15880
|
+
const [permissions, stock, t] = await Promise.all([
|
|
15881
|
+
getPermissions(),
|
|
15638
15882
|
getStockLevels(),
|
|
15639
15883
|
getExtracted("shop"),
|
|
15640
15884
|
]);
|
|
15641
15885
|
|
|
15886
|
+
if (!can(permissions, "inventory.read")) {
|
|
15887
|
+
forbidden();
|
|
15888
|
+
}
|
|
15889
|
+
|
|
15642
15890
|
if (stock.kind === "no-organization") {
|
|
15643
15891
|
return null;
|
|
15644
15892
|
}
|
|
15645
15893
|
|
|
15646
|
-
const canManage = can(
|
|
15894
|
+
const canManage = can(permissions, "inventory.manage");
|
|
15647
15895
|
|
|
15648
15896
|
const locationName = new Map(
|
|
15649
15897
|
stock.kind === "ok"
|
|
@@ -15811,9 +16059,9 @@ export async function OrderDetail({
|
|
|
15811
16059
|
}: {
|
|
15812
16060
|
params: Promise<{ id: string }>;
|
|
15813
16061
|
}) {
|
|
15814
|
-
const [{ id },
|
|
16062
|
+
const [{ id }, permissions] = await Promise.all([params, getPermissions()]);
|
|
15815
16063
|
|
|
15816
|
-
if (!can(
|
|
16064
|
+
if (!can(permissions, "orders.read")) {
|
|
15817
16065
|
forbidden();
|
|
15818
16066
|
}
|
|
15819
16067
|
|
|
@@ -15846,7 +16094,7 @@ export async function OrderDetail({
|
|
|
15846
16094
|
}
|
|
15847
16095
|
|
|
15848
16096
|
const view = detail.data;
|
|
15849
|
-
const canManage = can(
|
|
16097
|
+
const canManage = can(permissions, "orders.manage");
|
|
15850
16098
|
const amount = (value: Money) => formatMoney(value, locale);
|
|
15851
16099
|
|
|
15852
16100
|
const problemLabel = (problem: string) => {
|
|
@@ -16084,7 +16332,7 @@ export async function OrderDetail({
|
|
|
16084
16332
|
]
|
|
16085
16333
|
: [],
|
|
16086
16334
|
)}
|
|
16087
|
-
canCreate={can(
|
|
16335
|
+
canCreate={can(permissions, "promotions.manage")}
|
|
16088
16336
|
/>
|
|
16089
16337
|
) : view.promotions.length === 0 ? (
|
|
16090
16338
|
<p className="text-sm text-muted-foreground">
|
|
@@ -16143,14 +16391,17 @@ export async function KitchenDisplay({
|
|
|
16143
16391
|
}: {
|
|
16144
16392
|
searchParams: Promise<Record<string, string | string[] | undefined>>;
|
|
16145
16393
|
}) {
|
|
16146
|
-
const [
|
|
16394
|
+
const [params, permissions] = await Promise.all([
|
|
16395
|
+
searchParams,
|
|
16396
|
+
getPermissions(),
|
|
16397
|
+
]);
|
|
16147
16398
|
|
|
16148
|
-
if (!can(
|
|
16399
|
+
if (!can(permissions, "orders.read") && !can(permissions, "orders.prepare")) {
|
|
16149
16400
|
forbidden();
|
|
16150
16401
|
}
|
|
16151
16402
|
|
|
16152
16403
|
const canPrepare =
|
|
16153
|
-
can(
|
|
16404
|
+
can(permissions, "orders.prepare") || can(permissions, "orders.manage");
|
|
16154
16405
|
|
|
16155
16406
|
const [kitchen, t] = await Promise.all([
|
|
16156
16407
|
getKitchen(
|
|
@@ -16320,6 +16571,8 @@ export function OrderStateBoard({
|
|
|
16320
16571
|
setColumns(meta.previousValue);
|
|
16321
16572
|
toast.error(errorMessage(result.error));
|
|
16322
16573
|
}
|
|
16574
|
+
|
|
16575
|
+
return result;
|
|
16323
16576
|
});
|
|
16324
16577
|
}}
|
|
16325
16578
|
>
|
|
@@ -16595,9 +16848,9 @@ export async function CalendarView({
|
|
|
16595
16848
|
}: {
|
|
16596
16849
|
searchParams: Promise<Record<string, string | string[] | undefined>>;
|
|
16597
16850
|
}) {
|
|
16598
|
-
const
|
|
16851
|
+
const permissions = await getPermissions();
|
|
16599
16852
|
|
|
16600
|
-
if (!can(
|
|
16853
|
+
if (!can(permissions, "calendar.read")) {
|
|
16601
16854
|
forbidden();
|
|
16602
16855
|
}
|
|
16603
16856
|
|
|
@@ -16608,8 +16861,8 @@ export async function CalendarView({
|
|
|
16608
16861
|
connection(),
|
|
16609
16862
|
]);
|
|
16610
16863
|
|
|
16611
|
-
const canWrite = can(
|
|
16612
|
-
const canManage = can(
|
|
16864
|
+
const canWrite = can(permissions, "calendar.write");
|
|
16865
|
+
const canManage = can(permissions, "calendar.manage");
|
|
16613
16866
|
const first = firstOfMonth(query["month"], "UTC");
|
|
16614
16867
|
const weeks = weeksOf(first);
|
|
16615
16868
|
const from = weeks[0]?.[0] ?? first;
|
|
@@ -16918,17 +17171,17 @@ npx shadcn add badge card empty skeleton
|
|
|
16918
17171
|
|
|
16919
17172
|
```tsx title="apps/examples/nextjs/src/features/bookings/components/availability-editor.tsx"
|
|
16920
17173
|
export async function AvailabilityEditor() {
|
|
16921
|
-
|
|
16922
|
-
|
|
16923
|
-
|
|
16924
|
-
forbidden();
|
|
16925
|
-
}
|
|
16926
|
-
|
|
16927
|
-
const [t, setup] = await Promise.all([
|
|
17174
|
+
// The read starts with the permission check; RLS guards it either way.
|
|
17175
|
+
const [permissions, t, setup] = await Promise.all([
|
|
17176
|
+
getPermissions(),
|
|
16928
17177
|
getExtracted("bookings"),
|
|
16929
17178
|
settle(loadBookingSetup),
|
|
16930
17179
|
]);
|
|
16931
17180
|
|
|
17181
|
+
if (!can(permissions, "bookings.manage")) {
|
|
17182
|
+
forbidden();
|
|
17183
|
+
}
|
|
17184
|
+
|
|
16932
17185
|
const page = setup.kind === "ok" ? setup.data.page : null;
|
|
16933
17186
|
|
|
16934
17187
|
return (
|
|
@@ -16951,7 +17204,9 @@ export async function AvailabilityEditor() {
|
|
|
16951
17204
|
{ count: page.liveLinks },
|
|
16952
17205
|
)}
|
|
16953
17206
|
</Badge>
|
|
16954
|
-
{can(
|
|
17207
|
+
{can(permissions, "share_links.create") ? (
|
|
17208
|
+
<BookingLinkButton />
|
|
17209
|
+
) : null}
|
|
16955
17210
|
</CardAction>
|
|
16956
17211
|
) : null}
|
|
16957
17212
|
</CardHeader>
|
|
@@ -17004,19 +17259,19 @@ npx shadcn add card empty skeleton
|
|
|
17004
17259
|
* offset before every occurrence of the event, once per occurrence.
|
|
17005
17260
|
*/
|
|
17006
17261
|
export async function RemindersList() {
|
|
17007
|
-
|
|
17008
|
-
|
|
17009
|
-
|
|
17010
|
-
return null;
|
|
17011
|
-
}
|
|
17012
|
-
|
|
17013
|
-
const [t, format, upcoming] = await Promise.all([
|
|
17262
|
+
// The read starts with the permission check; RLS guards it either way.
|
|
17263
|
+
const [permissions, t, format, upcoming] = await Promise.all([
|
|
17264
|
+
getPermissions(),
|
|
17014
17265
|
getExtracted("calendar"),
|
|
17015
17266
|
getFormatter(),
|
|
17016
17267
|
settle(loadUpcomingReminders),
|
|
17017
17268
|
connection(),
|
|
17018
17269
|
]);
|
|
17019
17270
|
|
|
17271
|
+
if (!can(permissions, "reminders.manage")) {
|
|
17272
|
+
return null;
|
|
17273
|
+
}
|
|
17274
|
+
|
|
17020
17275
|
if (upcoming.kind === "no-organization") {
|
|
17021
17276
|
return null;
|
|
17022
17277
|
}
|
|
@@ -17049,7 +17304,7 @@ export async function RemindersList() {
|
|
|
17049
17304
|
{t("Add an event, then set a reminder for it here.")}
|
|
17050
17305
|
</EmptyDescription>
|
|
17051
17306
|
</EmptyHeader>
|
|
17052
|
-
{calendars.length > 0 && can(
|
|
17307
|
+
{calendars.length > 0 && can(permissions, "calendar.write") ? (
|
|
17053
17308
|
<EmptyContent>
|
|
17054
17309
|
<CreateEventDialog
|
|
17055
17310
|
calendars={calendars}
|
|
@@ -17739,8 +17994,8 @@ import {
|
|
|
17739
17994
|
TableHeader,
|
|
17740
17995
|
TableRow,
|
|
17741
17996
|
} from "@/components/ui/table";
|
|
17997
|
+
import { getPermissions } from "@/features/user/permission-snapshot";
|
|
17742
17998
|
import { can } from "@/features/user/user-permissions";
|
|
17743
|
-
import { getSession } from "@/features/user/user-queries";
|
|
17744
17999
|
import { Link } from "@/i18n/navigation";
|
|
17745
18000
|
|
|
17746
18001
|
import { getTrash } from "../trash-queries";
|
|
@@ -17757,11 +18012,11 @@ async function retry() {
|
|
|
17757
18012
|
* forever.
|
|
17758
18013
|
*/
|
|
17759
18014
|
export async function TrashBin() {
|
|
17760
|
-
const [view,
|
|
18015
|
+
const [view, t, format, permissions] = await Promise.all([
|
|
17761
18016
|
getTrash(),
|
|
17762
|
-
getSession(),
|
|
17763
18017
|
getExtracted("trash"),
|
|
17764
18018
|
getFormatter(),
|
|
18019
|
+
getPermissions(),
|
|
17765
18020
|
]);
|
|
17766
18021
|
|
|
17767
18022
|
if (view.kind === "no-organization") {
|
|
@@ -17773,7 +18028,7 @@ export async function TrashBin() {
|
|
|
17773
18028
|
["drive_node", t("Drive item")],
|
|
17774
18029
|
]);
|
|
17775
18030
|
|
|
17776
|
-
const canPurge = can(
|
|
18031
|
+
const canPurge = can(permissions, "trash.manage");
|
|
17777
18032
|
|
|
17778
18033
|
return (
|
|
17779
18034
|
<Card data-recipe="trash-bin">
|
|
@@ -18151,10 +18406,10 @@ const moderationVariants = {
|
|
|
18151
18406
|
|
|
18152
18407
|
/** Render inside `<Suspense>`: the board's posts, top voted first. */
|
|
18153
18408
|
export async function PostBoard() {
|
|
18154
|
-
const [view,
|
|
18409
|
+
const [view, t, permissions] = await Promise.all([
|
|
18155
18410
|
getBoard(),
|
|
18156
|
-
getSession(),
|
|
18157
18411
|
getExtracted("community"),
|
|
18412
|
+
getPermissions(),
|
|
18158
18413
|
]);
|
|
18159
18414
|
|
|
18160
18415
|
if (view.kind === "no-organization") {
|
|
@@ -18181,7 +18436,7 @@ export async function PostBoard() {
|
|
|
18181
18436
|
const board = view.data;
|
|
18182
18437
|
|
|
18183
18438
|
if (board === null) {
|
|
18184
|
-
const manage = can(
|
|
18439
|
+
const manage = can(permissions, "posts.manage");
|
|
18185
18440
|
|
|
18186
18441
|
return (
|
|
18187
18442
|
<Empty className="border">
|
|
@@ -18209,7 +18464,7 @@ export async function PostBoard() {
|
|
|
18209
18464
|
);
|
|
18210
18465
|
}
|
|
18211
18466
|
|
|
18212
|
-
const write = can(
|
|
18467
|
+
const write = can(permissions, "posts.write");
|
|
18213
18468
|
|
|
18214
18469
|
const statusLabels: Record<PostStatus, string> = {
|
|
18215
18470
|
open: t("Open"),
|
|
@@ -19475,8 +19730,8 @@ import {
|
|
|
19475
19730
|
EmptyTitle,
|
|
19476
19731
|
} from "@/components/ui/empty";
|
|
19477
19732
|
import { Skeleton } from "@/components/ui/skeleton";
|
|
19733
|
+
import { getPermissions } from "@/features/user/permission-snapshot";
|
|
19478
19734
|
import { can } from "@/features/user/user-permissions";
|
|
19479
|
-
import { getSession } from "@/features/user/user-queries";
|
|
19480
19735
|
|
|
19481
19736
|
import { getTemplates } from "../templates-queries";
|
|
19482
19737
|
import { CreateTemplateDialog } from "./create-template-dialog";
|
|
@@ -19490,18 +19745,18 @@ async function retry() {
|
|
|
19490
19745
|
|
|
19491
19746
|
/** The New template button, for members who may manage templates. */
|
|
19492
19747
|
export async function TemplateManagerActions() {
|
|
19493
|
-
const
|
|
19748
|
+
const permissions = await getPermissions();
|
|
19494
19749
|
|
|
19495
|
-
return can(
|
|
19750
|
+
return can(permissions, "templates.manage") ? <CreateTemplateDialog /> : null;
|
|
19496
19751
|
}
|
|
19497
19752
|
|
|
19498
19753
|
/** Render inside `<Suspense>`: the customer templates, each with Use template. */
|
|
19499
19754
|
export async function TemplatesGallery() {
|
|
19500
|
-
const [view,
|
|
19755
|
+
const [view, t, format, permissions] = await Promise.all([
|
|
19501
19756
|
getTemplates(),
|
|
19502
|
-
getSession(),
|
|
19503
19757
|
getExtracted("templates"),
|
|
19504
19758
|
getFormatter(),
|
|
19759
|
+
getPermissions(),
|
|
19505
19760
|
]);
|
|
19506
19761
|
|
|
19507
19762
|
if (view.kind === "no-organization") {
|
|
@@ -19509,7 +19764,7 @@ export async function TemplatesGallery() {
|
|
|
19509
19764
|
}
|
|
19510
19765
|
|
|
19511
19766
|
const canApply =
|
|
19512
|
-
can(
|
|
19767
|
+
can(permissions, "templates.apply") && can(permissions, "customers.write");
|
|
19513
19768
|
|
|
19514
19769
|
if (view.kind === "error") {
|
|
19515
19770
|
return (
|
|
@@ -19542,7 +19797,7 @@ export async function TemplatesGallery() {
|
|
|
19542
19797
|
)}
|
|
19543
19798
|
</EmptyDescription>
|
|
19544
19799
|
</EmptyHeader>
|
|
19545
|
-
{can(
|
|
19800
|
+
{can(permissions, "templates.manage") ? (
|
|
19546
19801
|
<EmptyContent>
|
|
19547
19802
|
<CreateTemplateDialog />
|
|
19548
19803
|
</EmptyContent>
|
|
@@ -19837,6 +20092,8 @@ function DocumentSession({
|
|
|
19837
20092
|
} else {
|
|
19838
20093
|
setFailed(true);
|
|
19839
20094
|
}
|
|
20095
|
+
|
|
20096
|
+
return opened;
|
|
19840
20097
|
});
|
|
19841
20098
|
|
|
19842
20099
|
return () => {
|
|
@@ -20295,14 +20552,14 @@ function EndpointStatusBadge({
|
|
|
20295
20552
|
* delete endpoints, and retry finished deliveries.
|
|
20296
20553
|
*/
|
|
20297
20554
|
export async function WebhookEndpoints() {
|
|
20298
|
-
const [
|
|
20299
|
-
getSession(),
|
|
20555
|
+
const [state, t, format, permissions] = await Promise.all([
|
|
20300
20556
|
loadWebhooksState(),
|
|
20301
20557
|
getExtracted("webhooks"),
|
|
20302
20558
|
getFormatter(),
|
|
20559
|
+
getPermissions(),
|
|
20303
20560
|
]);
|
|
20304
20561
|
|
|
20305
|
-
if (!can(
|
|
20562
|
+
if (!can(permissions, "webhooks.read")) {
|
|
20306
20563
|
forbidden();
|
|
20307
20564
|
}
|
|
20308
20565
|
|
|
@@ -20310,7 +20567,7 @@ export async function WebhookEndpoints() {
|
|
|
20310
20567
|
return null;
|
|
20311
20568
|
}
|
|
20312
20569
|
|
|
20313
|
-
const manage = can(
|
|
20570
|
+
const manage = can(permissions, "webhooks.manage");
|
|
20314
20571
|
|
|
20315
20572
|
const firstEnabled =
|
|
20316
20573
|
state.kind === "ok"
|
|
@@ -20578,13 +20835,13 @@ async function retry() {
|
|
|
20578
20835
|
* them. Members without `service_principals.read` see nothing.
|
|
20579
20836
|
*/
|
|
20580
20837
|
export async function ServicePrincipalsTable() {
|
|
20581
|
-
const [
|
|
20582
|
-
getSession(),
|
|
20838
|
+
const [t, format, permissions] = await Promise.all([
|
|
20583
20839
|
getExtracted("servicePrincipals"),
|
|
20584
20840
|
getFormatter(),
|
|
20841
|
+
getPermissions(),
|
|
20585
20842
|
]);
|
|
20586
20843
|
|
|
20587
|
-
if (!can(
|
|
20844
|
+
if (!can(permissions, "service_principals.read")) {
|
|
20588
20845
|
return null;
|
|
20589
20846
|
}
|
|
20590
20847
|
|
|
@@ -20594,7 +20851,7 @@ export async function ServicePrincipalsTable() {
|
|
|
20594
20851
|
return null;
|
|
20595
20852
|
}
|
|
20596
20853
|
|
|
20597
|
-
const manage = can(
|
|
20854
|
+
const manage = can(permissions, "service_principals.manage");
|
|
20598
20855
|
|
|
20599
20856
|
const roles = new Map([
|
|
20600
20857
|
["owner", t("Owner")],
|
|
@@ -20756,12 +21013,12 @@ async function retry() {
|
|
|
20756
21013
|
* only, so this checks `organization.update` before it reads.
|
|
20757
21014
|
*/
|
|
20758
21015
|
export async function SigningKeysRotation() {
|
|
20759
|
-
const [
|
|
20760
|
-
getSession(),
|
|
21016
|
+
const [t, permissions] = await Promise.all([
|
|
20761
21017
|
getExtracted("signingKeys"),
|
|
21018
|
+
getPermissions(),
|
|
20762
21019
|
]);
|
|
20763
21020
|
|
|
20764
|
-
if (!can(
|
|
21021
|
+
if (!can(permissions, SIGNING_KEYS_PERMISSION)) {
|
|
20765
21022
|
forbidden();
|
|
20766
21023
|
}
|
|
20767
21024
|
|
|
@@ -21145,13 +21402,13 @@ function JobStatusBadge({ status, t }: { status: JobRunStatus; t: Translate }) {
|
|
|
21145
21402
|
* it reads with the database owner.
|
|
21146
21403
|
*/
|
|
21147
21404
|
export async function JobRunsTable() {
|
|
21148
|
-
const [
|
|
21149
|
-
getSession(),
|
|
21405
|
+
const [t, format, permissions] = await Promise.all([
|
|
21150
21406
|
getExtracted("jobs"),
|
|
21151
21407
|
getFormatter(),
|
|
21408
|
+
getPermissions(),
|
|
21152
21409
|
]);
|
|
21153
21410
|
|
|
21154
|
-
if (!can(
|
|
21411
|
+
if (!can(permissions, JOBS_PERMISSION)) {
|
|
21155
21412
|
forbidden();
|
|
21156
21413
|
}
|
|
21157
21414
|
|
|
@@ -22145,7 +22402,7 @@ export function TaskToolbar({
|
|
|
22145
22402
|
|
|
22146
22403
|
const go = (next: TaskQuery) => {
|
|
22147
22404
|
startTransition(() => {
|
|
22148
|
-
router.replace(
|
|
22405
|
+
router.replace(withSearch(pathname, taskSearch(next)));
|
|
22149
22406
|
});
|
|
22150
22407
|
};
|
|
22151
22408
|
|
|
@@ -22297,6 +22554,8 @@ function SaveTaskViewDialog({ query }: { query: TaskQuery }) {
|
|
|
22297
22554
|
setName("");
|
|
22298
22555
|
setOpen(false);
|
|
22299
22556
|
}
|
|
22557
|
+
|
|
22558
|
+
return result;
|
|
22300
22559
|
});
|
|
22301
22560
|
}}
|
|
22302
22561
|
>
|
|
@@ -22891,7 +23150,12 @@ export async function ProjectPage({
|
|
|
22891
23150
|
}: {
|
|
22892
23151
|
params: Promise<{ id: string }>;
|
|
22893
23152
|
}) {
|
|
22894
|
-
const [{ id }, session] = await Promise.all([
|
|
23153
|
+
const [{ id }, session, permissions] = await Promise.all([
|
|
23154
|
+
params,
|
|
23155
|
+
getSession(),
|
|
23156
|
+
getPermissions(),
|
|
23157
|
+
]);
|
|
23158
|
+
|
|
22895
23159
|
const organizationId = tenantOf(session);
|
|
22896
23160
|
|
|
22897
23161
|
if (!organizationId) {
|
|
@@ -23006,7 +23270,7 @@ export async function ProjectPage({
|
|
|
23006
23270
|
authors={Object.fromEntries(
|
|
23007
23271
|
members.data.map((member) => [member.userId, member.name]),
|
|
23008
23272
|
)}
|
|
23009
|
-
canComment={can(
|
|
23273
|
+
canComment={can(permissions, "messages.send")}
|
|
23010
23274
|
/>
|
|
23011
23275
|
</CardContent>
|
|
23012
23276
|
</Card>
|
|
@@ -23041,8 +23305,8 @@ export async function ProjectPage({
|
|
|
23041
23305
|
<ProjectHistory
|
|
23042
23306
|
projectId={record.id}
|
|
23043
23307
|
versions={history.data}
|
|
23044
|
-
canSave={can(
|
|
23045
|
-
canRestore={can(
|
|
23308
|
+
canSave={can(permissions, "versions.create")}
|
|
23309
|
+
canRestore={can(permissions, "versions.restore")}
|
|
23046
23310
|
/>
|
|
23047
23311
|
) : (
|
|
23048
23312
|
<ProjectLoadError title={t("The history didn't load")} />
|
|
@@ -23171,6 +23435,8 @@ export function TaskBoard({
|
|
|
23171
23435
|
setColumns(meta.previousValue);
|
|
23172
23436
|
toast.error(errorMessage(result.error));
|
|
23173
23437
|
}
|
|
23438
|
+
|
|
23439
|
+
return result;
|
|
23174
23440
|
});
|
|
23175
23441
|
}}
|
|
23176
23442
|
>
|
|
@@ -23255,7 +23521,7 @@ export async function TaskCalendar({
|
|
|
23255
23521
|
rows: readonly TaskRow[];
|
|
23256
23522
|
first: Temporal.PlainDate;
|
|
23257
23523
|
today: Temporal.PlainDate;
|
|
23258
|
-
monthHref: (month: string) =>
|
|
23524
|
+
monthHref: (month: string) => AppHref;
|
|
23259
23525
|
}) {
|
|
23260
23526
|
const [t, format] = await Promise.all([
|
|
23261
23527
|
getExtracted("projects"),
|
|
@@ -23427,7 +23693,7 @@ export async function TaskTimeline({
|
|
|
23427
23693
|
members: readonly MemberOption[];
|
|
23428
23694
|
from: Temporal.PlainDate;
|
|
23429
23695
|
today: Temporal.PlainDate;
|
|
23430
|
-
windowHref: (from: string) =>
|
|
23696
|
+
windowHref: (from: string) => AppHref;
|
|
23431
23697
|
}) {
|
|
23432
23698
|
const t = await getExtracted("projects");
|
|
23433
23699
|
const lanes = new Map<string, TaskRow[]>();
|
|
@@ -23549,7 +23815,7 @@ export async function TaskGantt({
|
|
|
23549
23815
|
projects: readonly ProjectOption[];
|
|
23550
23816
|
from: Temporal.PlainDate;
|
|
23551
23817
|
today: Temporal.PlainDate;
|
|
23552
|
-
windowHref: (from: string) =>
|
|
23818
|
+
windowHref: (from: string) => AppHref;
|
|
23553
23819
|
}) {
|
|
23554
23820
|
const t = await getExtracted("projects");
|
|
23555
23821
|
|