better-supabase 0.48.0 → 0.49.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/{activities-D39qA-Af.d.ts → activities-C2v_Sq4w.d.ts} +1 -1
- package/dist/{ai-schedules-g-uKxgU2.d.ts → ai-schedules-BOiaFIva.d.ts} +1 -1
- package/dist/ai-sdk/agents/index.d.ts +2 -2
- package/dist/{app-tables-C7zbYd0g.d.ts → app-tables-D6Na4nwb.d.ts} +1 -1
- package/dist/audit-files/index.js +5 -8
- package/dist/{authorization-BjOM8pzj.d.ts → authorization-N4bh4KQS.d.ts} +1 -1
- package/dist/{automations-ByU4cU9J.js → automations-Ce0jNNIe.js} +1 -1
- package/dist/{banking-reads-Cj4f6_eG.js → banking-reads-D4Yuz4uX.js} +1 -1
- package/dist/{bind-DR7RV4WY.d.ts → bind-ChYzUApb.d.ts} +3 -3
- package/dist/{block-env-CxI_lxyr.d.ts → block-env-buLS8m9m.d.ts} +4 -4
- package/dist/{block-subjects-BLcM5e4I.js → block-subjects-rv7V0R6O.js} +7 -4
- package/dist/{block-tables-CSLUgF1o.d.ts → block-tables-Pd7nOPv3.d.ts} +1 -1
- package/dist/blocks/access-requests/index.d.ts +1 -1
- package/dist/blocks/access-requests/index.js +2 -1
- package/dist/blocks/accounting/index.d.ts +1 -1
- package/dist/blocks/accounting/index.js +1 -1
- package/dist/blocks/acknowledgements/index.d.ts +1 -1
- package/dist/blocks/acknowledgements/index.js +1 -1
- package/dist/blocks/activities/index.d.ts +4 -4
- package/dist/blocks/activities/index.js +1 -1
- package/dist/blocks/advisories/index.d.ts +1 -1
- package/dist/blocks/advisories/index.js +2 -1
- package/dist/blocks/agent-checkout/index.d.ts +1 -1
- package/dist/blocks/agent-checkout/index.js +4 -3
- package/dist/blocks/agents/index.d.ts +1 -1
- package/dist/blocks/agents/index.js +2 -1
- package/dist/blocks/ai-cache/index.d.ts +1 -1
- package/dist/blocks/ai-cache/index.js +3 -2
- package/dist/blocks/ai-chat/index.d.ts +1 -1
- package/dist/blocks/ai-chat/index.js +2 -1
- package/dist/blocks/ai-evals/index.d.ts +1 -1
- package/dist/blocks/ai-evals/index.js +3 -2
- package/dist/blocks/ai-files/index.d.ts +1 -1
- package/dist/blocks/ai-files/index.js +3 -2
- package/dist/blocks/ai-guardrails/index.d.ts +1 -1
- package/dist/blocks/ai-guardrails/index.js +3 -2
- package/dist/blocks/ai-keys/index.d.ts +1 -1
- package/dist/blocks/ai-keys/index.js +2 -1
- package/dist/blocks/ai-schedules/index.d.ts +2 -2
- package/dist/blocks/ai-schedules/index.js +2 -1
- package/dist/blocks/announcements/index.d.ts +4 -4
- package/dist/blocks/announcements/index.js +2 -1
- package/dist/blocks/api-keys/index.d.ts +1 -1
- package/dist/blocks/api-keys/index.js +1 -1
- package/dist/blocks/appraisals/index.d.ts +1 -1
- package/dist/blocks/appraisals/index.js +3 -2
- package/dist/blocks/approvals/index.d.ts +1 -1
- package/dist/blocks/approvals/index.js +1 -1
- package/dist/blocks/assets/index.d.ts +2 -2
- package/dist/blocks/assets/index.js +1 -1
- package/dist/blocks/assignment/index.d.ts +1 -1
- package/dist/blocks/assignment/index.js +1 -1
- package/dist/blocks/attachments/index.d.ts +5 -5
- package/dist/blocks/attachments/index.js +1 -1
- package/dist/blocks/audit/index.d.ts +2 -2
- package/dist/blocks/audit/index.js +1 -1
- package/dist/blocks/automations/index.d.ts +3 -3
- package/dist/blocks/automations/index.js +3 -2
- package/dist/blocks/banking/index.d.ts +1 -2
- package/dist/blocks/banking/index.js +2 -2
- package/dist/blocks/billable-time/index.d.ts +1 -1
- package/dist/blocks/billable-time/index.js +1 -1
- package/dist/blocks/billing/index.d.ts +61 -4
- package/dist/blocks/billing/index.js +52 -3
- package/dist/blocks/bookings/index.d.ts +2 -2
- package/dist/blocks/bookings/index.js +1 -1
- package/dist/blocks/bulk/index.d.ts +1 -1
- package/dist/blocks/bulk/index.js +2 -1
- package/dist/blocks/calendar/index.d.ts +3 -3
- package/dist/blocks/calendar/index.js +1 -1
- package/dist/blocks/care/index.d.ts +27 -27
- package/dist/blocks/care/index.js +31 -29
- package/dist/blocks/care-plans/index.d.ts +3 -3
- package/dist/blocks/care-plans/index.js +2 -2
- package/dist/blocks/cases/index.d.ts +3 -3
- package/dist/blocks/cases/index.js +1 -1
- package/dist/blocks/catalog/index.d.ts +2 -2
- package/dist/blocks/catalog/index.js +1 -1
- package/dist/blocks/channels/index.d.ts +1 -1
- package/dist/blocks/channels/index.js +2 -1
- package/dist/blocks/clinical-decision-support/index.d.ts +1 -1
- package/dist/blocks/clinical-decision-support/index.js +3 -2
- package/dist/blocks/cms/index.d.ts +5 -5
- package/dist/blocks/cms/index.js +7 -6
- package/dist/blocks/collaboration/index.d.ts +6 -6
- package/dist/blocks/collaboration/index.js +8 -7
- package/dist/blocks/collections/index.d.ts +1 -1
- package/dist/blocks/collections/index.js +3 -2
- package/dist/blocks/comments/index.d.ts +2 -2
- package/dist/blocks/comments/index.js +1 -1
- package/dist/blocks/commerce/index.d.ts +5 -5
- package/dist/blocks/commerce/index.js +7 -6
- package/dist/blocks/commissions/index.d.ts +254 -0
- package/dist/blocks/commissions/index.js +231 -0
- package/dist/blocks/compliance/index.d.ts +1 -1
- package/dist/blocks/compliance/index.js +3 -2
- package/dist/blocks/connectors/index.d.ts +1 -1
- package/dist/blocks/connectors/index.js +2 -1
- package/dist/blocks/consents/index.d.ts +2 -2
- package/dist/blocks/consents/index.js +1 -1
- package/dist/blocks/contacts/index.d.ts +2 -2
- package/dist/blocks/contacts/index.js +1 -1
- package/dist/blocks/content/index.d.ts +2 -2
- package/dist/blocks/content/index.js +1 -1
- package/dist/blocks/contracts/index.d.ts +1 -1
- package/dist/blocks/contracts/index.js +4 -3
- package/dist/blocks/courses/index.d.ts +3 -3
- package/dist/blocks/courses/index.js +1 -1
- package/dist/blocks/created-by/index.d.ts +2 -2
- package/dist/blocks/created-by/index.js +2 -1
- package/dist/blocks/crm/index.d.ts +16 -16
- package/dist/blocks/crm/index.js +18 -17
- package/dist/blocks/custom-fields/index.d.ts +1 -1
- package/dist/blocks/custom-fields/index.js +2 -1
- package/dist/blocks/dam/index.d.ts +2 -2
- package/dist/blocks/dam/index.js +3 -2
- package/dist/blocks/data-lifecycle/index.d.ts +2 -2
- package/dist/blocks/data-lifecycle/index.js +1 -1
- package/dist/blocks/deals/index.d.ts +1 -1
- package/dist/blocks/deals/index.js +1 -1
- package/dist/blocks/dispatch/index.d.ts +2 -2
- package/dist/blocks/dispatch/index.js +1 -1
- package/dist/blocks/document-templates/index.d.ts +1 -1
- package/dist/blocks/document-templates/index.js +3 -2
- package/dist/blocks/documents/index.d.ts +1 -1
- package/dist/blocks/documents/index.js +2 -1
- package/dist/blocks/domains/index.d.ts +1 -1
- package/dist/blocks/domains/index.js +3 -2
- package/dist/blocks/donations/index.d.ts +1 -1
- package/dist/blocks/donations/index.js +4 -3
- package/dist/blocks/drive/index.d.ts +5 -5
- package/dist/blocks/drive/index.js +1 -1
- package/dist/blocks/e-prescribing/index.d.ts +1 -1
- package/dist/blocks/e-prescribing/index.js +3 -2
- package/dist/blocks/employees/index.d.ts +1 -1
- package/dist/blocks/employees/index.js +1 -1
- package/dist/blocks/enrichment/index.d.ts +1 -1
- package/dist/blocks/enrichment/index.js +1 -1
- package/dist/blocks/enrollments/index.d.ts +2 -2
- package/dist/blocks/enrollments/index.js +1 -1
- package/dist/blocks/entitlements/index.d.ts +3 -3
- package/dist/blocks/entitlements/index.js +1 -1
- package/dist/blocks/events/index.d.ts +3 -3
- package/dist/blocks/events/index.js +5 -4
- package/dist/blocks/expenses/index.d.ts +1 -1
- package/dist/blocks/expenses/index.js +4 -3
- package/dist/blocks/field-history/index.d.ts +1 -1
- package/dist/blocks/field-history/index.js +1 -1
- package/dist/blocks/filespace/index.d.ts +8 -8
- package/dist/blocks/filespace/index.js +9 -8
- package/dist/blocks/finance/index.d.ts +31 -6
- package/dist/blocks/finance/index.js +48 -15
- package/dist/blocks/flags/index.d.ts +1 -1
- package/dist/blocks/flags/index.js +2 -1
- package/dist/blocks/forecasts/index.d.ts +1 -1
- package/dist/blocks/forecasts/index.js +1 -1
- package/dist/blocks/forms/index.d.ts +3 -3
- package/dist/blocks/forms/index.js +1 -1
- package/dist/blocks/funding/index.d.ts +2 -2
- package/dist/blocks/funding/index.js +1 -1
- package/dist/blocks/goals/index.d.ts +1 -1
- package/dist/blocks/goals/index.js +1 -1
- package/dist/blocks/governance/index.d.ts +4 -4
- package/dist/blocks/governance/index.js +6 -5
- package/dist/blocks/guests/index.d.ts +1 -1
- package/dist/blocks/guests/index.js +1 -1
- package/dist/blocks/hiring/index.d.ts +1 -1
- package/dist/blocks/hiring/index.js +1 -1
- package/dist/blocks/identities/index.d.ts +1 -1
- package/dist/blocks/identities/index.js +3 -2
- package/dist/blocks/imports/index.d.ts +2 -2
- package/dist/blocks/imports/index.js +2 -1
- package/dist/blocks/inbox/index.d.ts +6 -6
- package/dist/blocks/inbox/index.js +1 -1
- package/dist/blocks/incidents/index.d.ts +1 -1
- package/dist/blocks/incidents/index.js +3 -2
- package/dist/blocks/index.d.ts +8 -6
- package/dist/blocks/index.js +1 -1
- package/dist/blocks/inspections/index.d.ts +2 -2
- package/dist/blocks/inspections/index.js +2 -1
- package/dist/blocks/inventory/index.d.ts +1 -1
- package/dist/blocks/inventory/index.js +1 -1
- package/dist/blocks/invoices/index.d.ts +2 -2
- package/dist/blocks/invoices/index.js +1 -1
- package/dist/blocks/knowledge/index.d.ts +1 -1
- package/dist/blocks/knowledge/index.js +1 -1
- package/dist/blocks/lead-scoring/index.d.ts +2 -2
- package/dist/blocks/lead-scoring/index.js +1 -1
- package/dist/blocks/learning/index.d.ts +3 -3
- package/dist/blocks/learning/index.js +5 -4
- package/dist/blocks/leases/index.d.ts +1 -1
- package/dist/blocks/leases/index.js +4 -3
- package/dist/blocks/leave/index.d.ts +1 -1
- package/dist/blocks/leave/index.js +1 -1
- package/dist/blocks/ledger/index.d.ts +1 -1
- package/dist/blocks/ledger/index.js +4 -3
- package/dist/blocks/legal-entities/index.d.ts +2 -2
- package/dist/blocks/legal-entities/index.js +3 -2
- package/dist/blocks/lims/index.d.ts +2 -2
- package/dist/blocks/lims/index.js +3 -2
- package/dist/blocks/mail-sync/index.d.ts +3 -3
- package/dist/blocks/mail-sync/index.js +1 -1
- package/dist/blocks/maintenance/index.d.ts +2 -2
- package/dist/blocks/maintenance/index.js +1 -1
- package/dist/blocks/manufacturing/index.d.ts +2 -2
- package/dist/blocks/manufacturing/index.js +4 -3
- package/dist/blocks/medications/index.d.ts +1 -1
- package/dist/blocks/medications/index.js +1 -1
- package/dist/blocks/meetings/index.d.ts +3 -3
- package/dist/blocks/meetings/index.js +1 -1
- package/dist/blocks/memberships/index.d.ts +2 -2
- package/dist/blocks/memberships/index.js +2 -1
- package/dist/blocks/memory/index.d.ts +1 -1
- package/dist/blocks/memory/index.js +3 -2
- package/dist/blocks/messaging/index.d.ts +5 -5
- package/dist/blocks/messaging/index.js +2 -1
- package/dist/blocks/metrics/index.d.ts +1 -1
- package/dist/blocks/metrics/index.js +2 -1
- package/dist/blocks/mfa/index.d.ts +2 -2
- package/dist/blocks/mfa/index.js +2 -1
- package/dist/blocks/moderation/index.d.ts +2 -2
- package/dist/blocks/moderation/index.js +3 -2
- package/dist/blocks/notifications/index.d.ts +56 -5
- package/dist/blocks/notifications/index.js +83 -3
- package/dist/blocks/numbering/index.d.ts +1 -1
- package/dist/blocks/numbering/index.js +1 -1
- package/dist/blocks/oauth-server/index.d.ts +1 -1
- package/dist/blocks/oauth-server/index.js +3 -2
- package/dist/blocks/observations/index.d.ts +2 -2
- package/dist/blocks/observations/index.js +1 -1
- package/dist/blocks/onboarding/index.d.ts +2 -2
- package/dist/blocks/onboarding/index.js +1 -1
- package/dist/blocks/orders/index.d.ts +1 -1
- package/dist/blocks/orders/index.js +2 -2
- package/dist/blocks/organizations/index.d.ts +2 -2
- package/dist/blocks/organizations/index.js +1 -1
- package/dist/blocks/outbox/index.d.ts +1 -1
- package/dist/blocks/outbox/index.js +1 -1
- package/dist/blocks/passes/index.d.ts +2 -2
- package/dist/blocks/passes/index.js +1 -1
- package/dist/blocks/payroll-export/index.d.ts +2 -2
- package/dist/blocks/payroll-export/index.js +1 -1
- package/dist/blocks/people/index.d.ts +7 -7
- package/dist/blocks/people/index.js +9 -8
- package/dist/blocks/periods/index.d.ts +1 -1
- package/dist/blocks/periods/index.js +3 -2
- package/dist/blocks/permissions/index.d.ts +3 -3
- package/dist/blocks/permissions/index.js +4 -3
- package/dist/blocks/pipelines/index.d.ts +1 -1
- package/dist/blocks/pipelines/index.js +1 -1
- package/dist/blocks/posts/index.d.ts +2 -2
- package/dist/blocks/posts/index.js +2 -1
- package/dist/blocks/procurement/index.d.ts +5 -5
- package/dist/blocks/procurement/index.js +7 -6
- package/dist/blocks/profiles/index.d.ts +1 -1
- package/dist/blocks/profiles/index.js +1 -1
- package/dist/blocks/projects/index.d.ts +7 -7
- package/dist/blocks/projects/index.js +10 -9
- package/dist/blocks/promotions/index.d.ts +1 -1
- package/dist/blocks/promotions/index.js +2 -2
- package/dist/blocks/prompts/index.d.ts +1 -1
- package/dist/blocks/prompts/index.js +3 -2
- package/dist/blocks/push/index.d.ts +2 -2
- package/dist/blocks/push/index.js +2 -1
- package/dist/blocks/qualifications/index.d.ts +2 -2
- package/dist/blocks/qualifications/index.js +1 -1
- package/dist/blocks/queue/index.d.ts +35 -3
- package/dist/blocks/queue/index.js +46 -2
- package/dist/blocks/quotes/index.d.ts +1 -1
- package/dist/blocks/quotes/index.js +1 -1
- package/dist/blocks/rank/index.d.ts +1 -1
- package/dist/blocks/rank/index.js +2 -1
- package/dist/blocks/reactions/index.d.ts +4 -4
- package/dist/blocks/reactions/index.js +1 -1
- package/dist/blocks/recruiting/index.d.ts +4 -4
- package/dist/blocks/recruiting/index.js +6 -5
- package/dist/blocks/referrals/index.d.ts +149 -0
- package/dist/blocks/referrals/index.js +146 -0
- package/dist/blocks/relations/index.d.ts +1 -1
- package/dist/blocks/relations/index.js +2 -1
- package/dist/blocks/reminders/index.d.ts +1 -1
- package/dist/blocks/reminders/index.js +1 -1
- package/dist/blocks/reviews/index.d.ts +1 -1
- package/dist/blocks/reviews/index.js +3 -2
- package/dist/blocks/rfqs/index.d.ts +2 -2
- package/dist/blocks/rfqs/index.js +1 -1
- package/dist/blocks/risks/index.d.ts +2 -2
- package/dist/blocks/risks/index.js +2 -1
- package/dist/blocks/saas/index.d.ts +12 -12
- package/dist/blocks/saas/index.js +14 -13
- package/dist/blocks/sales/index.d.ts +1 -1
- package/dist/blocks/sales/index.js +1 -1
- package/dist/blocks/saved-views/index.d.ts +2 -2
- package/dist/blocks/saved-views/index.js +2 -1
- package/dist/blocks/scheduling/index.d.ts +4 -4
- package/dist/blocks/scheduling/index.js +6 -5
- package/dist/blocks/scores/index.d.ts +2 -2
- package/dist/blocks/scores/index.js +3 -2
- package/dist/blocks/search/index.d.ts +3 -3
- package/dist/blocks/search/index.js +1 -1
- package/dist/blocks/security-events/index.d.ts +1 -1
- package/dist/blocks/security-events/index.js +3 -2
- package/dist/blocks/segments/index.d.ts +2 -2
- package/dist/blocks/segments/index.js +1 -1
- package/dist/blocks/sequences/index.d.ts +3 -3
- package/dist/blocks/sequences/index.js +1 -1
- package/dist/blocks/service/index.d.ts +7 -7
- package/dist/blocks/service/index.js +9 -8
- package/dist/blocks/service-accounts/index.d.ts +1 -1
- package/dist/blocks/service-accounts/index.js +2 -1
- package/dist/blocks/sessions/index.d.ts +2 -2
- package/dist/blocks/sessions/index.js +2 -1
- package/dist/blocks/settings/index.d.ts +2 -2
- package/dist/blocks/settings/index.js +1 -1
- package/dist/blocks/share-links/index.d.ts +1 -1
- package/dist/blocks/share-links/index.js +1 -1
- package/dist/blocks/shifts/index.d.ts +2 -2
- package/dist/blocks/shifts/index.js +1 -1
- package/dist/blocks/shipments/index.d.ts +2 -2
- package/dist/blocks/shipments/index.js +4 -3
- package/dist/blocks/signatures/index.d.ts +2 -2
- package/dist/blocks/signatures/index.js +1 -1
- package/dist/blocks/signing-keys/index.d.ts +1 -1
- package/dist/blocks/signing-keys/index.js +2 -1
- package/dist/blocks/sla/index.d.ts +1 -1
- package/dist/blocks/sla/index.js +1 -1
- package/dist/blocks/sso/index.d.ts +1 -1
- package/dist/blocks/sso/index.js +2 -1
- package/dist/blocks/state-machine/index.d.ts +1 -1
- package/dist/blocks/state-machine/index.js +1 -1
- package/dist/blocks/subjects/index.d.ts +2 -2
- package/dist/blocks/subjects/index.js +1 -1
- package/dist/blocks/support/index.d.ts +5 -5
- package/dist/blocks/support/index.js +7 -6
- package/dist/blocks/tags/index.d.ts +2 -2
- package/dist/blocks/tags/index.js +1 -1
- package/dist/blocks/tasks/index.d.ts +2 -2
- package/dist/blocks/tasks/index.js +1 -1
- package/dist/blocks/tax/index.d.ts +2 -2
- package/dist/blocks/tax/index.js +1 -1
- package/dist/blocks/teams/index.d.ts +1 -1
- package/dist/blocks/teams/index.js +1 -1
- package/dist/blocks/templates/index.d.ts +1 -1
- package/dist/blocks/templates/index.js +2 -1
- package/dist/blocks/tills/index.d.ts +1 -1
- package/dist/blocks/tills/index.js +4 -3
- package/dist/blocks/time-tracking/index.d.ts +2 -2
- package/dist/blocks/time-tracking/index.js +1 -1
- package/dist/blocks/timeline/index.d.ts +1 -1
- package/dist/blocks/timeline/index.js +1 -1
- package/dist/blocks/trash/index.d.ts +1 -1
- package/dist/blocks/trash/index.js +1 -1
- package/dist/blocks/undo/index.d.ts +2 -2
- package/dist/blocks/undo/index.js +3 -2
- package/dist/blocks/updated-at/index.d.ts +2 -2
- package/dist/blocks/updated-at/index.js +2 -1
- package/dist/blocks/usage/index.d.ts +2 -2
- package/dist/blocks/usage/index.js +3 -2
- package/dist/blocks/vercel-marketplace/index.d.ts +1 -1
- package/dist/blocks/vercel-marketplace/index.js +3 -2
- package/dist/blocks/versions/index.d.ts +1 -1
- package/dist/blocks/versions/index.js +1 -1
- package/dist/blocks/waitlist/index.d.ts +1 -1
- package/dist/blocks/waitlist/index.js +2 -1
- package/dist/blocks/warehouse/index.d.ts +1 -1
- package/dist/blocks/warehouse/index.js +3 -2
- package/dist/blocks/webhooks/index.d.ts +1 -1
- package/dist/blocks/webhooks/index.js +4 -2
- package/dist/blocks/workflow-editor/index.d.ts +4 -4
- package/dist/blocks/workflow-editor/index.js +2 -1
- package/dist/blocks/workflows/index.d.ts +4 -4
- package/dist/blocks/workflows/index.js +2 -1
- package/dist/{blocks-SAugFNo4.d.ts → blocks-ERs7xZ7E.d.ts} +93 -18
- package/dist/{care-plans-sql-BrhEfxVx.js → care-plans-sql-DOfShX0z.js} +1 -1
- package/dist/claims/index.d.ts +3 -3
- package/dist/cli/add-4-omCrbh.js +1 -0
- package/dist/cli/{add-BiX01SYs.js → add-BXfK7N0H.js} +2 -2
- package/dist/cli/{add-BfnDHlvk.js → add-Ca3FNbhm.js} +37 -17
- package/dist/cli/{app-table-files-k2OIuQXL.js → app-table-files-BR0zwJ7T.js} +3 -3
- package/dist/cli/{app-tables-CB9PQrKi.js → app-tables-DAHcDTFh.js} +2 -2
- package/dist/cli/{backfill-CpZgv1A6.js → backfill-DHD9e6XO.js} +3 -3
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-CGGPe0K4.js → blocks-C4J4d_Jx.js} +1 -1
- package/dist/cli/{blocks-DE0qZ1Yz.js → blocks-DtEsw6CG.js} +1 -1
- package/dist/cli/{cache-XYhIgXzI.js → cache-DyhfGbUV.js} +1 -1
- package/dist/cli/{codemod-BWmvfKSo.js → codemod-B7EdR7Fu.js} +1 -1
- package/dist/cli/{config-Ci9vE9Cp.js → config-C-DXllAX.js} +9 -1
- package/dist/cli/{config-BbnenK6U.js → config-DyGupd-1.js} +1 -1
- package/dist/cli/{content-mapper-M1H8j6CJ.js → content-mapper-BM9asZuL.js} +2 -2
- package/dist/cli/{db-BV4gtLuC.js → db-CVoN3aLl.js} +2 -2
- package/dist/cli/{doctor-Be05oUmw.js → doctor-BuE0Ry7T.js} +134 -19
- package/dist/cli/{gen-z-_Dpjmo.js → gen-DMAd__D1.js} +14 -14
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +7 -7
- package/dist/cli/{init-ifBOh5bq.js → init-BfpkhVgY.js} +9 -9
- package/dist/cli/{live-J-In94dl.js → live-XBM0kzT3.js} +2 -2
- package/dist/cli/{mcp-C7mf6KH9.js → mcp-C9HqqPIV.js} +2 -2
- package/dist/cli/{metadata-CYDEPSi_.js → metadata-dYoVRApT.js} +3 -3
- package/dist/cli/{migrate-rQRFctMv.js → migrate-DLWnaHNN.js} +1 -1
- package/dist/cli/{migration-safety-B2AVPCUM.js → migration-safety-Bh7VzARh.js} +2 -2
- package/dist/cli/{migrations-ClUStdUL.js → migrations-Cq5hkJsa.js} +2 -2
- package/dist/cli/{module-migration-BsnMUveg.js → module-migration-BUd_MAbE.js} +2 -2
- package/dist/cli/{powersync-BwNqqNym.js → powersync-Cb8xtLDc.js} +3 -3
- package/dist/cli/powersync-ZBM_emZL.js +1 -0
- package/dist/cli/{print-YW7AmWMX.js → print-BVeE5vr_.js} +2 -2
- package/dist/cli/{providers-BsjqZkxi.js → providers-xmyaROnG.js} +1 -1
- package/dist/cli/{prune-workflows-CO0e6RBk.js → prune-workflows-DUOBOuHp.js} +3 -3
- package/dist/cli/{remove-BA8niaOg.js → remove-BuasHmdF.js} +6 -6
- package/dist/cli/{render-Bn_Tmgd6.js → render-Hvu_ZKtr.js} +4 -4
- package/dist/cli/{run-DT8Mga9C.js → run-DMZQUy5b.js} +33 -33
- package/dist/cli/{run-DF3mWO-N.js → run-KdsUN7Qj.js} +9 -9
- package/dist/cli/{seed-B-YNTxgm.js → seed-C7eiVpBy.js} +2 -2
- package/dist/cli/seed-Ki7TgmY1.js +1 -0
- package/dist/cli/{shared-BnQS0aaB.js → shared-3cetvs_N.js} +1 -1
- package/dist/cli/{snapshot-CcduGETT.js → snapshot-D7h2oWfS.js} +3 -3
- package/dist/cli/{source-D5-MimKN.js → source-ENOc1zZ9.js} +1 -1
- package/dist/cli/{source-args-jRFa0bN2.js → source-args-Deg53QHe.js} +1 -1
- package/dist/cli/{spec-Bhcub30h.js → spec-CfKQ2Xxd.js} +1 -1
- package/dist/cli/{spec-CabrFVxG.js → spec-DGaKqtfR.js} +2 -2
- package/dist/cli/{sql-layout-BNeDrYab.js → sql-layout-CGlyhvQ1.js} +2 -2
- package/dist/cli/{sync-CMnEdcF7.js → sync-DFJfT7dH.js} +4 -4
- package/dist/cli/{upgrade-DWNNxAoj.js → upgrade-C2Kdvrj-.js} +5 -5
- package/dist/cli/{upgrade-CQiB_nLU.js → upgrade-DSi7r0MG.js} +2 -2
- package/dist/cli/{version-PZu75_DM.js → version-AGe2VWGm.js} +1 -1
- package/dist/client/index.d.ts +5 -5
- package/dist/client/native/index.d.ts +4 -4
- package/dist/{codecs-hCAYRsL2.js → codecs-jdyv13IU.js} +2 -2
- package/dist/commerce/index.js +3 -3
- package/dist/commissions-values-BrfR5JCS.js +17 -0
- package/dist/config/index.d.ts +4 -4
- package/dist/config/index.js +4 -4
- package/dist/{config-loQV70qq.js → config-DYtSlwsi.js} +3 -3
- package/dist/{config-ClmKXrmI.js → config-gJ9FX0jc.js} +47 -4
- package/dist/{context-oS96_5av.d.ts → context-DNwBlpKo.d.ts} +40 -5
- package/dist/contract/index.d.ts +3 -3
- package/dist/{controller-BES51lfW.d.ts → controller-DfgxFNFx.d.ts} +1 -1
- package/dist/{controller-8a5AvYC-.js → controller-IWNfCm-Y.js} +1 -1
- package/dist/{conversion-DK-9E21e.d.ts → conversion-BzVxeYqk.d.ts} +1 -1
- package/dist/{copy-CPMVxt7Y.js → copy-D0kQ1zJy.js} +1 -1
- package/dist/create/index.d.ts +4 -4
- package/dist/create/index.js +3 -3
- package/dist/create/lite/index.d.ts +2 -2
- package/dist/create/lite/index.js +2 -2
- package/dist/{deal-forecast-CRj39Mqw.js → deal-forecast-CgzuxYtf.js} +1 -1
- package/dist/{define-block-B00AycyT.d.ts → define-block-DiW9g10_.d.ts} +7 -1
- package/dist/{define-block-CCnA8LbO.js → define-block-DyZiZQrx.js} +1 -0
- package/dist/{drive-BRl5srH7.d.ts → drive-CvgLTJA9.d.ts} +1 -1
- package/dist/e-invoicing/index.d.ts +1 -1
- package/dist/e-invoicing/index.js +1 -1
- package/dist/{entitlements-Def4tw1y.d.ts → entitlements-5nbdIitJ.d.ts} +1 -1
- package/dist/{extract-6-eperTu.d.ts → extract-DpiLKlbp.d.ts} +1 -1
- package/dist/{field-errors-_5ma7dOu.d.ts → field-errors-BCX7RCEc.d.ts} +5 -5
- package/dist/{manifest-CReD46Ml.d.ts → index-1001GtVL.d.ts} +114 -2
- package/dist/{index-CJDZP8D_.d.ts → index-7UV0pNYj.d.ts} +2 -2
- package/dist/{index-llgHOU63.d.ts → index-B1NcZsVD.d.ts} +8 -8
- package/dist/{index-CLfgO2tI.d.ts → index-B2C1NczA.d.ts} +4 -4
- package/dist/{index-DQcBzMPc.d.ts → index-B8Mjb-KA.d.ts} +1 -1
- package/dist/{index-DcMBM8KN.d.ts → index-BB5n8R_s.d.ts} +1 -1
- package/dist/{index-D3z1ulT9.d.ts → index-BGgGwWcn.d.ts} +1 -1
- package/dist/{index-DDsGsDpo.d.ts → index-BK8zPigx.d.ts} +1 -1
- package/dist/{index-DlHpkeH6.d.ts → index-BLL45v55.d.ts} +1 -1
- package/dist/{index-CoTCj9tb.d.ts → index-BMYIwvDA.d.ts} +1 -1
- package/dist/{index-DgtoDNfn.d.ts → index-BNBFiyOR.d.ts} +1 -1
- package/dist/{index-BS8EG1sv.d.ts → index-BW0aDURc.d.ts} +1 -1
- package/dist/{index-OrSSX49l.d.ts → index-BZ1Akcrg.d.ts} +1 -1
- package/dist/{index-DZ7AyHGe.d.ts → index-Bdg6ee4m.d.ts} +1 -1
- package/dist/{index-4XXy4RAc.d.ts → index-Bn5v6soX.d.ts} +1 -1
- package/dist/{index-ByfxpFB2.d.ts → index-BolFrOMw.d.ts} +2 -2
- package/dist/{index-BRDlC3VX.d.ts → index-Bopuqb8z.d.ts} +3 -3
- package/dist/{index-CdzulKV8.d.ts → index-CFT7e_HH.d.ts} +2 -2
- package/dist/{index-9lj_xmJ3.d.ts → index-CRSNN2v9.d.ts} +8 -8
- package/dist/{index-D8AUz50D.d.ts → index-CakXRuAZ.d.ts} +2 -2
- package/dist/{index-CIjwxSMw.d.ts → index-CurH6bgW.d.ts} +2 -2
- package/dist/{index-DnUv0ft8.d.ts → index-D25Ry5R9.d.ts} +1 -1
- package/dist/{index-U2HTpZhD.d.ts → index-D48wVmDj.d.ts} +1 -1
- package/dist/{index-a4XujbCp.d.ts → index-D5LnplxJ.d.ts} +4 -4
- package/dist/{index-B0sgM96O.d.ts → index-D6y6ojUX.d.ts} +2 -2
- package/dist/{index-trDWOpUD.d.ts → index-DHwPGqLY.d.ts} +2 -2
- package/dist/{index-B3X8Yz54.d.ts → index-DMlTXcWp.d.ts} +2 -2
- package/dist/{index-BzP3aXZD.d.ts → index-DZTavebO.d.ts} +1 -1
- package/dist/{index-BclA8VxQ.d.ts → index-DkWXofPH.d.ts} +1 -1
- package/dist/{index-BA_vuNkT.d.ts → index-DplKvjCs.d.ts} +1 -1
- package/dist/{index-B79YuD2v.d.ts → index-EHczIYa7.d.ts} +3 -3
- package/dist/{index-BFrhLaf5.d.ts → index-IKK8zWTN.d.ts} +2 -2
- package/dist/{index-Ddi2Xhg8.d.ts → index-S6axmDQL.d.ts} +2 -2
- package/dist/{index-CIJgMT3P.d.ts → index-ZI4sMVPT.d.ts} +2 -2
- package/dist/{index-C_3tUs3G.d.ts → index-iaMOudmP.d.ts} +1 -1
- package/dist/{index-BB3U1ds5.d.ts → index-kidoYhB8.d.ts} +1 -1
- package/dist/index.js +1 -1
- package/dist/{instances-ceZ-orgq.js → instances-ukDFg8oN.js} +342 -23
- package/dist/{invoices-BmVemfWS.d.ts → invoices-C-Fh07qA.d.ts} +1 -1
- package/dist/{manifest-BXSsp-Cl.d.ts → manifest--M7GmEPg.d.ts} +1 -1
- package/dist/{manifest-C_S0cz7X.js → manifest--eIzr9Tj.js} +2 -1
- package/dist/{manifest-DJllrEQG.js → manifest--qnXa2lK.js} +2 -1
- package/dist/{manifest-Dwe06yil.js → manifest-0PDfKdtc.js} +3 -2
- package/dist/{manifest-BhnrsEa1.d.ts → manifest-0vrTq9Uf.d.ts} +1 -1
- package/dist/{manifest-DP5NczoE.js → manifest-1Xiu6zqs.js} +3 -2
- package/dist/{manifest-ByyHf3rr.d.ts → manifest-1lzhOO0z.d.ts} +1 -1
- package/dist/{manifest-BOGvvspH.js → manifest-6MuVEQnP.js} +8 -4
- package/dist/{manifest-DG7YDnDd.js → manifest-A_VPz6fq.js} +3 -2
- package/dist/{manifest-DV8KMolR.js → manifest-B3QwQDTx.js} +2 -1
- package/dist/{manifest-Cf9QTxjI.js → manifest-B4CVN-Kx.js} +3 -2
- package/dist/{manifest-DhYoxy6k.js → manifest-B709eXLx.js} +2 -1
- package/dist/{manifest-BQmucr5m.d.ts → manifest-B7MpuCmz.d.ts} +1 -1
- package/dist/{manifest-Bbu-ubW6.d.ts → manifest-B83YpMlz.d.ts} +1 -1
- package/dist/{manifest-CqJjxStv.d.ts → manifest-B9KmOzmT.d.ts} +1 -1
- package/dist/{manifest-C4UBDE_L.js → manifest-BAgqRR7p.js} +2 -1
- package/dist/{manifest-bDyJmTlO.js → manifest-BDGVge5o.js} +3 -2
- package/dist/{manifest-wUaP6BQ7.js → manifest-BEZ8HltH.js} +2 -1
- package/dist/{manifest-DaeYdl46.js → manifest-BFJvys4-.js} +4 -3
- package/dist/{manifest-DS1kvnEv.d.ts → manifest-BHNrIQ8X.d.ts} +1 -1
- package/dist/{manifest-BC9t0sdd.js → manifest-BHhBqtFw.js} +2 -1
- package/dist/{manifest-Cq2DUdkJ.js → manifest-BKD8DbQT.js} +6 -5
- package/dist/{manifest-BID85FTD.d.ts → manifest-BKDSuS3x.d.ts} +2 -2
- package/dist/{manifest-DUQxpNRM.d.ts → manifest-BKegpJgn.d.ts} +1 -1
- package/dist/{manifest-DSj2RpBr.js → manifest-BQJV63RV.js} +2 -1
- package/dist/{manifest-K4gZCLhk.js → manifest-BQwqV6dQ.js} +3 -1
- package/dist/{manifest-Cnh_IP2z.js → manifest-BR_uGpTd.js} +2 -1
- package/dist/{manifest-DOyy6Xsw.d.ts → manifest-BRd1q660.d.ts} +1 -1
- package/dist/{manifest-Bno8pGBC.js → manifest-BSQh5dw2.js} +2 -1
- package/dist/{manifest-i7N-wK8c.d.ts → manifest-BTC6dWdq.d.ts} +1 -1
- package/dist/{manifest-BLIdN5a_.js → manifest-BW7wdKXA.js} +5 -4
- package/dist/{manifest-CgvFWT2u.js → manifest-BXNDl7bx.js} +2 -1
- package/dist/{manifest-kMa4r3fv.js → manifest-BZP0wKpE.js} +4 -3
- package/dist/{manifest-DuQWeue6.js → manifest-B_3_99xa.js} +3 -2
- package/dist/{manifest-BnxuDY97.d.ts → manifest-Bbtt8mb1.d.ts} +1 -1
- package/dist/{manifest-CZGGddOA.d.ts → manifest-BcdRITPc.d.ts} +1 -1
- package/dist/{manifest-CddtUQsB.js → manifest-BdmDmQtx.js} +2 -1
- package/dist/{manifest-CklVzHZN.d.ts → manifest-BfAXsd-X.d.ts} +1 -1
- package/dist/{manifest-DumCddiN.js → manifest-BfOHwSNK.js} +7 -6
- package/dist/{manifest-BxyGSQDf.js → manifest-BgMjraZw.js} +2 -1
- package/dist/{manifest-Du41K-0_.d.ts → manifest-BhBqFYV4.d.ts} +1 -1
- package/dist/{manifest-Bg5gjjDP.d.ts → manifest-BkS073Py.d.ts} +1 -1
- package/dist/{manifest-X_aLkNvq.js → manifest-BoSzgLUl.js} +4 -3
- package/dist/{manifest-CfBqObZ5.js → manifest-Bpzxyvxc.js} +4 -3
- package/dist/{manifest-D1YoxzeP.js → manifest-Bx_0qkBP.js} +3 -2
- package/dist/{manifest-BZ5IAL8q.d.ts → manifest-Bz3xNPJL.d.ts} +6 -1
- package/dist/{manifest-CFPH94A1.d.ts → manifest-C-_0WkGx.d.ts} +1 -1
- package/dist/{manifest-ConxGWQ-.d.ts → manifest-C0f5YJ7x.d.ts} +1 -1
- package/dist/{manifest-B4PaYDC2.d.ts → manifest-C3RDEoAr.d.ts} +2 -2
- package/dist/{manifest-DR6N0LUt.d.ts → manifest-C3VB7-hM.d.ts} +1 -1
- package/dist/{manifest-DJz-jKBy.js → manifest-C8Boo7Ps.js} +4 -3
- package/dist/{manifest-W1SbwKSj.js → manifest-C95-cClh.js} +2 -1
- package/dist/{manifest-C-sGHHvr.d.ts → manifest-CCXaDWdN.d.ts} +1 -1
- package/dist/{manifest-C6j7vH4c.d.ts → manifest-CHsjS47_.d.ts} +1 -1
- package/dist/{manifest-D67fd79e.d.ts → manifest-CIJTIKo3.d.ts} +1 -1
- package/dist/{manifest-BbsL9igY.d.ts → manifest-CJByGKJ_.d.ts} +1 -1
- package/dist/{manifest-DbnCNIbZ.d.ts → manifest-CJb0PtMj.d.ts} +1 -1
- package/dist/{manifest-CfcytxHT.d.ts → manifest-CKxnGCVY.d.ts} +1 -1
- package/dist/{manifest-Gj3MS6k9.d.ts → manifest-CLphqjtj.d.ts} +1 -1
- package/dist/{manifest-DVwB6GGL.js → manifest-COZUTRxz.js} +3 -2
- package/dist/{manifest-B2Pp7SEu.js → manifest-CPYEEX6u.js} +2 -1
- package/dist/{manifest-DD7MK9BW.d.ts → manifest-CQFlAwfU.d.ts} +2 -2
- package/dist/{manifest-Ceokse8n.d.ts → manifest-CR-6QDLZ.d.ts} +1 -1
- package/dist/{manifest-vNLet6F5.js → manifest-CRXxYu5L.js} +2 -1
- package/dist/{manifest-Q4aEEHjj.js → manifest-CWaCXYgf.js} +3 -2
- package/dist/{manifest-Bpzb2m6F.js → manifest-CX8DVTzn.js} +4 -3
- package/dist/{manifest-155HuVi4.js → manifest-CYNC6a1d.js} +2 -1
- package/dist/{manifest-B5LbGYS4.js → manifest-C_hIU5kk.js} +3 -2
- package/dist/{manifest-D4MO5Cw0.js → manifest-CbxMRPGY.js} +2 -1
- package/dist/{manifest-CxhnJ0HS.js → manifest-Cfvr-BhF.js} +2 -1
- package/dist/manifest-Cj5IjsCB.js +16 -0
- package/dist/{manifest-DaArvOLq.js → manifest-Cj_ZnW6k.js} +2 -1
- package/dist/{manifest-D6iuF7tg.js → manifest-CkYNs6PX.js} +3 -2
- package/dist/{manifest-DIc0gnqc.js → manifest-ClbUuESE.js} +3 -2
- package/dist/{manifest-CuIl6RP_.js → manifest-CtOwRTvP.js} +2 -1
- package/dist/{manifest-Cxp20EUq.js → manifest-Cu_4X5Rm.js} +2 -1
- package/dist/{manifest-Do5KE-U_.d.ts → manifest-Cxz4_mWy.d.ts} +7 -1
- package/dist/{manifest-Xb13Wzgf.js → manifest-Czv_oJ77.js} +4 -2
- package/dist/{manifest-DRwJ4vk4.d.ts → manifest-D2qeEjrC.d.ts} +1 -1
- package/dist/{manifest-BDJIiEya.d.ts → manifest-D3HTgmR3.d.ts} +1 -1
- package/dist/{manifest-Zznk8MMo.d.ts → manifest-D7R4sM8L.d.ts} +1 -1
- package/dist/{manifest-D3YlwpBi.d.ts → manifest-D7slgR5H.d.ts} +1 -1
- package/dist/{manifest-B0nH6lH0.d.ts → manifest-D7y9_k5i.d.ts} +1 -1
- package/dist/{manifest-z3KH7lcy.d.ts → manifest-D7yeYU0f.d.ts} +1 -1
- package/dist/{manifest-C8QX2UDq.js → manifest-D84UV5p6.js} +5 -8
- package/dist/{manifest-CBBM0qqj.js → manifest-D8JpSvuE.js} +4 -3
- package/dist/{manifest-CJXhUvZ1.d.ts → manifest-DBJ5nBG9.d.ts} +1 -1
- package/dist/{manifest-ChSYx5eW.js → manifest-DBsPHetA.js} +5 -3
- package/dist/{manifest-CGVCmsBO.js → manifest-DCC3phPq.js} +2 -1
- package/dist/{manifest-CRbgI4Qg.d.ts → manifest-DDkncgRB.d.ts} +1 -1
- package/dist/{manifest-DSr5imkP.js → manifest-DHYr9yD1.js} +3 -2
- package/dist/{manifest-BuHnJDCN.js → manifest-DHt1h5GN.js} +3 -2
- package/dist/{manifest-CHwfjKUw.d.ts → manifest-DI_Vz152.d.ts} +1 -1
- package/dist/{manifest-D6UCPVG4.js → manifest-DJ5nCW5K.js} +2 -1
- package/dist/{manifest-CMRaUAXu.js → manifest-DJRHzb6v.js} +7 -2
- package/dist/{manifest-BYrW9Uem.js → manifest-DKY9HGin.js} +2 -1
- package/dist/{manifest-nSgX7nL1.d.ts → manifest-DLv_WaSF.d.ts} +1 -1
- package/dist/{manifest-DBdpyUu_.js → manifest-DM2T_dN2.js} +5 -4
- package/dist/{manifest-CNEDhbqI.js → manifest-DNaSpmZ3.js} +3 -2
- package/dist/{manifest-BMcbaFBU.d.ts → manifest-DPFn2x18.d.ts} +1 -1
- package/dist/{manifest-DEl9UiYb.js → manifest-DS2PjAgW.js} +2 -1
- package/dist/{manifest-BfTf2V6E.js → manifest-DVnOUxy4.js} +4 -3
- package/dist/{manifest-Dexf6I0e.js → manifest-DW2_P6AT.js} +4 -3
- package/dist/{manifest-C7dc_j0u.d.ts → manifest-D_iJU__f.d.ts} +1 -1
- package/dist/{manifest-CyAlixZk.d.ts → manifest-Dagm1cVO.d.ts} +1 -1
- package/dist/{manifest-BP5R93We.d.ts → manifest-Db-GUsLH.d.ts} +1 -1
- package/dist/{manifest-CA2p9Zga.js → manifest-DbjDYuCE.js} +3 -2
- package/dist/{manifest-B0C85KCk.d.ts → manifest-Dbq6t-bI.d.ts} +1 -1
- package/dist/{manifest-D1Yyn2dQ.d.ts → manifest-DdFl3BYM.d.ts} +1 -1
- package/dist/{manifest-DYEKxUXY.js → manifest-DeCjklgV.js} +2 -1
- package/dist/{manifest-Bj1dFsWc.js → manifest-DemyeI_z.js} +2 -1
- package/dist/{manifest-DRU-64iu.d.ts → manifest-Di0UrbTw.d.ts} +1 -1
- package/dist/{manifest-DIGjwpba.d.ts → manifest-Dj9AIgTy.d.ts} +1 -1
- package/dist/{manifest-Dfpxslwm.d.ts → manifest-DjVqN_iK.d.ts} +1 -1
- package/dist/{manifest-CLekLziu.js → manifest-Dm_5DTyx.js} +2 -1
- package/dist/{manifest-BhxbjEKX.js → manifest-DnZw4JWP.js} +4 -3
- package/dist/{manifest-B9BrBGxf.js → manifest-DpwaOTir.js} +3 -2
- package/dist/{manifest-DzjzA7JV.js → manifest-Dqgqm1Zo.js} +2 -1
- package/dist/{manifest-BIuELzCj.js → manifest-DqwQmPZb.js} +2 -1
- package/dist/{manifest-CfcTrYyH.js → manifest-DsYIWD--.js} +2 -1
- package/dist/{manifest-BoSqQtc_.d.ts → manifest-DwVl4YC4.d.ts} +1 -1
- package/dist/{manifest-CsjUuK3b.d.ts → manifest-Dz2IkqqY.d.ts} +1 -1
- package/dist/{manifest-DKICxHyD.js → manifest-FAVN8Bg9.js} +2 -1
- package/dist/{manifest-UclKhPQb.js → manifest-FJi1pYoB.js} +10 -9
- package/dist/{manifest-Cj2S4RR-.js → manifest-FkY_rpfH.js} +6 -5
- package/dist/{manifest-BbH87MG5.js → manifest-Hx3FBHKX.js} +2 -1
- package/dist/{manifest-CRJXdgOx.js → manifest-ITF-BpEi.js} +2 -1
- package/dist/{manifest-C_epqyiP.js → manifest-J6kJX8YL.js} +2 -1
- package/dist/{manifest-C5ItHs20.js → manifest-JvgqqKRq.js} +3 -2
- package/dist/{manifest-CuLahaTy.d.ts → manifest-K_42e50M.d.ts} +1 -1
- package/dist/{manifest-BVy_iYaK.d.ts → manifest-OS0pwPRn.d.ts} +1 -1
- package/dist/{manifest-h-rpCQ8y.d.ts → manifest-UbBXSkXn.d.ts} +1 -1
- package/dist/{manifest-BSlz5VjY.js → manifest-_qzN4kUG.js} +2 -1
- package/dist/{manifest-BgMzFL4H.js → manifest-cqfeLW8g.js} +2 -1
- package/dist/{manifest-CCLJTMsY.js → manifest-gCNbUW-X.js} +3 -2
- package/dist/{manifest-Ci26ea5h.d.ts → manifest-gGOpzRmJ.d.ts} +1 -1
- package/dist/{manifest-DuQVJ36p.d.ts → manifest-mu_UflgB.d.ts} +1 -1
- package/dist/{manifest-BTjTE68V.d.ts → manifest-n9XQtQXA.d.ts} +1 -1
- package/dist/{manifest-CIgakSwf.js → manifest-o-EzlFwZ.js} +2 -1
- package/dist/{manifest-1vQFNg_j.d.ts → manifest-ppItbSA5.d.ts} +1 -1
- package/dist/{manifest-DurhFGmh.js → manifest-qb_YXiWK.js} +3 -2
- package/dist/{manifest-CcMQg8U2.d.ts → manifest-roKO06Ko.d.ts} +1 -1
- package/dist/{manifest-6X7L3UX7.js → manifest-xD290bNh.js} +2 -1
- package/dist/{manifest-CJJEgRi-.d.ts → manifest-yPcrAK5N.d.ts} +1 -1
- package/dist/{manifest-DugL8A5q.d.ts → manifest-ycsWja2O.d.ts} +1 -1
- package/dist/mapper/bin.js +6 -6
- package/dist/mcp/index.d.ts +1 -1
- package/dist/{money-codec-DNhD4iy-.js → money-codec-CvUy3_Ep.js} +1 -1
- package/dist/{money-DH--bbYr.js → money-hWAOR9jq.js} +5 -7
- package/dist/next/index.d.ts +7 -7
- package/dist/next/index.js +4 -4
- package/dist/{operations-wexZqk3S.d.ts → operations-Di203azT.d.ts} +1 -1
- package/dist/{options-Dp1VR9Jk.js → options-C3FFnaE-.js} +2 -1
- package/dist/otel/index.js +4 -4
- package/dist/{payments-D7GPsu-r.js → payments-D89SVEgj.js} +1 -1
- package/dist/{payroll-export-Dxl1-7NV.js → payroll-export-BJNe4-XZ.js} +1 -1
- package/dist/{permissions-hc26hFC7.d.ts → permissions-C7GgjgTA.d.ts} +1 -1
- package/dist/{permissions-controller-BYGsjLdD.js → permissions-controller-YLyW9i7T.js} +1 -1
- package/dist/{permissions-model-Dk-gaZiy.js → permissions-model-COgjsFbE.js} +27 -19
- package/dist/{ports-DxX6NGHt.d.ts → ports-6EMtxwGE.d.ts} +1 -1
- package/dist/powersync/index.d.ts +3 -3
- package/dist/preset/index.d.ts +4 -4
- package/dist/preset/index.js +3 -3
- package/dist/{preset-DZBi6G6G.js → preset-Be8m6-PH.js} +239 -68
- package/dist/{preview-Cnx-eBFM.d.ts → preview-Dlc_7tMK.d.ts} +2 -2
- package/dist/{project-yulopQiw.js → project-CwZtBezd.js} +7 -7
- package/dist/{push-token-Da8q6hZJ.d.ts → push-token-CQnqTZrb.d.ts} +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/query/index.js +1 -1
- package/dist/react/index.d.ts +5 -5
- package/dist/react/index.js +1 -1
- package/dist/react/native/index.d.ts +1 -1
- package/dist/react/server.d.ts +5 -5
- package/dist/react/server.js +1 -1
- package/dist/{react-CWCEsvZt.js → react-CsgcTKRk.js} +2 -2
- package/dist/realtime/index.d.ts +3 -3
- package/dist/{record-form-bXNjpTar.d.ts → record-form-DqGcUu0C.d.ts} +1 -1
- package/dist/{record-type-DvIobORB.js → record-type-SZywJ0Rp.js} +1 -1
- package/dist/{recordings-B-eiiYGA.d.ts → recordings-CiYHdFPa.d.ts} +3 -2
- package/dist/records/index.d.ts +7 -7
- package/dist/records/index.js +4 -4
- package/dist/referrals-values-EXlMZA7X.js +12 -0
- package/dist/{renames-BBwigNjY.js → renames-PnqMkqit.js} +32 -1
- package/dist/{sales-BG4bqW2M.js → sales-C8o3E5U3.js} +9 -8
- package/dist/{sales-lines-Bd8g7q9G.js → sales-lines-COFwijz1.js} +1 -1
- package/dist/scaled-CyfvEWZ6.js +18 -0
- package/dist/server/index.d.ts +3 -3
- package/dist/solid/index.d.ts +5 -5
- package/dist/sql/index.d.ts +5 -5
- package/dist/sql/index.js +3 -3
- package/dist/{sql-CwBIyfvf.js → sql-BPU70zf9.js} +5334 -1266
- package/dist/ssr/index.d.ts +1 -1
- package/dist/svelte/index.d.ts +5 -5
- package/dist/{tax-l1cp5Rg8.js → tax-D_M90sFh.js} +1 -1
- package/dist/{tax-sql-CdSPknff.js → tax-sql-B9CeB0jG.js} +1 -1
- package/dist/{tenant-Dd8cwx17.d.ts → tenant-DHLx2ZkL.d.ts} +1 -1
- package/dist/testing/index.d.ts +8 -8
- package/dist/testing/index.js +3 -3
- package/dist/{timeline-B2rcgQTF.d.ts → timeline-9mP3m30L.d.ts} +2 -2
- package/dist/{topic-DybM_LFL.d.ts → topic-BKsRT4gu.d.ts} +1 -1
- package/dist/{types-CWMsjQl4.d.ts → types-D9r3axee.d.ts} +2 -2
- package/dist/vue/index.d.ts +5 -5
- package/dist/{watch-topic-x9vTgTzq.d.ts → watch-topic-M1yL9NiW.d.ts} +1 -1
- package/dist/webmcp/index.d.ts +1 -1
- package/dist/workflow-sdk/world/index.js +1 -1
- package/dist/{workflow-sdk-BJlx0ANA.js → workflow-sdk-CcoFSLFn.js} +1 -1
- package/dist/yjs/index.d.ts +1 -1
- package/package.json +9 -1
- package/schemas/config-v1.json +60 -0
- package/schemas/design-v1.json +15 -0
- package/schemas/doctor-report-v1.json +4 -0
- package/skills/better-supabase/references/e-invoicing-and-audit-files.md +3 -3
- package/dist/cli/add-C89zg0l9.js +0 -1
- package/dist/cli/powersync-CiHEx435.js +0 -1
- package/dist/cli/seed-CYX1MRFK.js +0 -1
- package/dist/index-B8TJqIoS.d.ts +0 -117
- package/dist/manifest-DxhdqsLf.js +0 -15
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/// <reference lib="esnext.temporal" />
|
|
2
|
+
import { t as AsyncResult } from "../../result-CMqlHv82.js";
|
|
3
|
+
import { Dt as Events } from "../../events-D5aC9hkx.js";
|
|
4
|
+
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
5
|
+
import { n as BlockOptions } from "../../block-helpers-gyK33E0Z.js";
|
|
6
|
+
import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BO7p8KHh.js";
|
|
7
|
+
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-DOK9DyaZ.js";
|
|
8
|
+
import { c as BlockOf } from "../../define-block-DiW9g10_.js";
|
|
9
|
+
/** Where a referral stands: attributed at signup, qualified, then rewarded. */
|
|
10
|
+
declare const REFERRAL_STATUSES: readonly ["attributed", "qualified", "rewarded", "void"];
|
|
11
|
+
/** Where a referral stands: attributed at signup, qualified, then rewarded. */
|
|
12
|
+
type ReferralStatus = (typeof REFERRAL_STATUSES)[number];
|
|
13
|
+
/** The reward a referral earns: an amount of a ledger unit. */
|
|
14
|
+
interface ReferralReward {
|
|
15
|
+
/** In the unit's smallest amount. */
|
|
16
|
+
readonly amount: bigint;
|
|
17
|
+
/** The ledger unit, such as `EUR` or `points`. */
|
|
18
|
+
readonly unit: string;
|
|
19
|
+
}
|
|
20
|
+
interface ReferralCode {
|
|
21
|
+
readonly id: string;
|
|
22
|
+
readonly organizationId: string;
|
|
23
|
+
readonly code: string;
|
|
24
|
+
readonly referrerId: string;
|
|
25
|
+
readonly invitationId?: string;
|
|
26
|
+
readonly reward?: ReferralReward;
|
|
27
|
+
readonly maxUses?: number;
|
|
28
|
+
readonly uses: number;
|
|
29
|
+
readonly active: boolean;
|
|
30
|
+
readonly expiresAt?: Temporal.Instant;
|
|
31
|
+
readonly createdAt: Temporal.Instant;
|
|
32
|
+
}
|
|
33
|
+
interface Referral {
|
|
34
|
+
readonly id: string;
|
|
35
|
+
readonly organizationId: string;
|
|
36
|
+
readonly codeId: string;
|
|
37
|
+
readonly referrerId: string;
|
|
38
|
+
readonly referredUserId?: string;
|
|
39
|
+
readonly referredOrganizationId?: string;
|
|
40
|
+
readonly referredEmail?: string;
|
|
41
|
+
readonly status: ReferralStatus;
|
|
42
|
+
/** What the code promised when the referral was attributed. */
|
|
43
|
+
readonly reward?: ReferralReward;
|
|
44
|
+
readonly qualifiedAt?: Temporal.Instant;
|
|
45
|
+
readonly rewardedAt?: Temporal.Instant;
|
|
46
|
+
readonly ledgerTransactionId?: string;
|
|
47
|
+
readonly createdAt: Temporal.Instant;
|
|
48
|
+
}
|
|
49
|
+
interface CreateReferralCodeInput {
|
|
50
|
+
/** The member who shares the code. The caller by default. */
|
|
51
|
+
readonly referrerId?: string;
|
|
52
|
+
/** Four to 32 letters or digits. Generated when omitted. */
|
|
53
|
+
readonly code?: string;
|
|
54
|
+
/** Attributes the referral when this invitation is accepted. */
|
|
55
|
+
readonly invitationId?: string;
|
|
56
|
+
readonly reward?: ReferralReward;
|
|
57
|
+
readonly maxUses?: number;
|
|
58
|
+
readonly expiresAt?: Temporal.Instant;
|
|
59
|
+
}
|
|
60
|
+
interface AttributeReferralInput {
|
|
61
|
+
readonly code: string;
|
|
62
|
+
readonly referredUserId?: string;
|
|
63
|
+
readonly referredOrganizationId?: string;
|
|
64
|
+
readonly referredEmail?: string;
|
|
65
|
+
}
|
|
66
|
+
interface ReferralListOptions {
|
|
67
|
+
readonly referrerId?: string;
|
|
68
|
+
readonly status?: ReferralStatus;
|
|
69
|
+
/** At most 500; 100 by default. */
|
|
70
|
+
readonly limit?: number;
|
|
71
|
+
}
|
|
72
|
+
interface ReferralsOptions extends BlockOptions {
|
|
73
|
+
readonly hooks?: BlockHooks<Referrals>;
|
|
74
|
+
readonly logger?: Logger;
|
|
75
|
+
}
|
|
76
|
+
interface Referrals {
|
|
77
|
+
createCode(input?: CreateReferralCodeInput): AsyncResult<ReferralCode>;
|
|
78
|
+
/**
|
|
79
|
+
* Attributes the user or organization that signed up with a code. Calling it
|
|
80
|
+
* again for the same user or organization returns the first referral.
|
|
81
|
+
*/
|
|
82
|
+
attribute(input: AttributeReferralInput): AsyncResult<Referral>;
|
|
83
|
+
/**
|
|
84
|
+
* Marks the referral of a user or organization as qualified after the event
|
|
85
|
+
* that earns the reward, and posts the reward to the ledger once. Resolves to
|
|
86
|
+
* `undefined` when nothing referred them.
|
|
87
|
+
*/
|
|
88
|
+
qualify(input: {
|
|
89
|
+
readonly referredUserId?: string;
|
|
90
|
+
readonly referredOrganizationId?: string;
|
|
91
|
+
/** What qualified it, such as `invoices/inv_1`. */
|
|
92
|
+
readonly source?: string;
|
|
93
|
+
}): AsyncResult<Referral | undefined>;
|
|
94
|
+
/** Voids a referral and reverses a reward already posted. */
|
|
95
|
+
void(input: {
|
|
96
|
+
readonly referralId: string;
|
|
97
|
+
readonly reason?: string;
|
|
98
|
+
}): AsyncResult<Referral>;
|
|
99
|
+
listCodes(list?: {
|
|
100
|
+
readonly referrerId?: string;
|
|
101
|
+
readonly limit?: number;
|
|
102
|
+
}): AsyncResult<readonly ReferralCode[]>;
|
|
103
|
+
listReferrals(list?: ReferralListOptions): AsyncResult<readonly Referral[]>;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Referrals: a code per member, attribution when the referred user or
|
|
107
|
+
* organization signs up, and a reward posted once to the ledger when the
|
|
108
|
+
* referral qualifies.
|
|
109
|
+
*/
|
|
110
|
+
export declare function createReferrals(options: ReferralsOptions): Referrals;
|
|
111
|
+
/** What the `referral_code.*` events carry. */
|
|
112
|
+
interface ReferralCodeEventData {
|
|
113
|
+
readonly organizationId: string;
|
|
114
|
+
readonly id: string;
|
|
115
|
+
readonly code: string;
|
|
116
|
+
readonly referrerId: string;
|
|
117
|
+
/** The invitation the code was made for, when there is one. */
|
|
118
|
+
readonly invitationId: string | null;
|
|
119
|
+
}
|
|
120
|
+
/** What the `referral.*` events carry. */
|
|
121
|
+
interface ReferralEventData {
|
|
122
|
+
readonly organizationId: string;
|
|
123
|
+
readonly id: string;
|
|
124
|
+
readonly codeId: string;
|
|
125
|
+
readonly referrerId: string;
|
|
126
|
+
readonly referredUserId: string | null;
|
|
127
|
+
readonly referredOrganizationId: string | null;
|
|
128
|
+
/** `attributed`, `qualified`, `rewarded` or `void`. */
|
|
129
|
+
readonly status: string;
|
|
130
|
+
}
|
|
131
|
+
/** What `referral.rewarded` adds: the reward posted to the ledger. */
|
|
132
|
+
interface ReferralRewardedEventData extends ReferralEventData {
|
|
133
|
+
/** The reward in the unit's smallest amount, as text. */
|
|
134
|
+
readonly amount: string;
|
|
135
|
+
readonly unit: string;
|
|
136
|
+
}
|
|
137
|
+
/** The events of the `referrals` block: type to data. */
|
|
138
|
+
type ReferralsEvents = {
|
|
139
|
+
readonly "referral_code.created": ReferralCodeEventData;
|
|
140
|
+
readonly "referral.attributed": ReferralEventData;
|
|
141
|
+
readonly "referral.qualified": ReferralEventData;
|
|
142
|
+
readonly "referral.rewarded": ReferralRewardedEventData;
|
|
143
|
+
readonly "referral.voided": ReferralEventData;
|
|
144
|
+
};
|
|
145
|
+
/** The `referrals` block's event types, for its manifest and `onBlockEvent`. */
|
|
146
|
+
export declare const referralsEvents: Events<ReferralsEvents>;
|
|
147
|
+
/** The `referrals` block's manifest. */
|
|
148
|
+
export declare const referralsBlock: BlockOf<"referrals", typeof createReferrals, ReferralsEvents>;
|
|
149
|
+
export { type AttributeReferralInput, type BlockHooks, type BlockTransport, type BlockTransportMiddleware, type CreateReferralCodeInput, type Referral, type ReferralCode, type ReferralCodeEventData, type ReferralEventData, type ReferralListOptions, type ReferralReward, type ReferralRewardedEventData, type ReferralStatus, type Referrals, type ReferralsEvents, type ReferralsOptions, type RpcClient, dbTransport, extendBlock, rpcTransport, sqlTransport, withBlockHooks, wrapTransport };
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { t as temporal } from "../../temporal-required-DK3ImZW6.js";
|
|
2
|
+
import { n as referralsSqlOptions, t as REFERRAL_STATUSES } from "../../referrals-values-EXlMZA7X.js";
|
|
3
|
+
import { n as event, t as defineEvents } from "../../event-map-DxfsFgQT.js";
|
|
4
|
+
import { B as textOf, C as optionalInstant, K as rpcTransport, N as recordsOf, T as optionalText, W as dbTransport, a as bigintOf, d as enumOrThrow, j as recordOf, n as applyTemporal, o as blockCall, q as sqlTransport } from "../../block-helpers-CCl3V9ku.js";
|
|
5
|
+
import { i as wrapTransport, n as extendBlock, r as withBlockHooks } from "../../block-hooks-C2_d17_b.js";
|
|
6
|
+
import { n as defineBlock } from "../../define-block-DyZiZQrx.js";
|
|
7
|
+
import { t as requireTenant } from "../../block-tenant-DHvDBWgF.js";
|
|
8
|
+
// src/blocks/referrals/referrals.ts
|
|
9
|
+
function rewardOf(amount, unit) {
|
|
10
|
+
const value = bigintOf(amount, "rewardAmount");
|
|
11
|
+
return value > 0n && typeof unit === "string" ? {
|
|
12
|
+
amount: value,
|
|
13
|
+
unit
|
|
14
|
+
} : void 0;
|
|
15
|
+
}
|
|
16
|
+
function codeOf(value, fn) {
|
|
17
|
+
const row = recordOf(value, fn);
|
|
18
|
+
const reward = rewardOf(row["rewardAmount"], row["rewardUnit"]);
|
|
19
|
+
const invitationId = optionalText(row["invitationId"]);
|
|
20
|
+
const expiresAt = optionalInstant(row["expiresAt"]);
|
|
21
|
+
return {
|
|
22
|
+
id: textOf(row["id"]),
|
|
23
|
+
organizationId: textOf(row["organizationId"]),
|
|
24
|
+
code: textOf(row["code"]),
|
|
25
|
+
referrerId: textOf(row["referrerId"]),
|
|
26
|
+
uses: Number(row["uses"]),
|
|
27
|
+
active: row["active"] === true,
|
|
28
|
+
createdAt: temporal().Instant.from(textOf(row["createdAt"])),
|
|
29
|
+
...invitationId === void 0 ? {} : { invitationId },
|
|
30
|
+
...reward === void 0 ? {} : { reward },
|
|
31
|
+
...typeof row["maxUses"] === "number" ? { maxUses: row["maxUses"] } : {},
|
|
32
|
+
...expiresAt === void 0 ? {} : { expiresAt }
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
function referralOf(value, fn) {
|
|
36
|
+
const row = recordOf(value, fn);
|
|
37
|
+
const reward = rewardOf(row["rewardAmount"], row["rewardUnit"]);
|
|
38
|
+
const referredUserId = optionalText(row["referredUserId"]);
|
|
39
|
+
const referredOrganizationId = optionalText(row["referredOrganizationId"]);
|
|
40
|
+
const referredEmail = optionalText(row["referredEmail"]);
|
|
41
|
+
const qualifiedAt = optionalInstant(row["qualifiedAt"]);
|
|
42
|
+
const rewardedAt = optionalInstant(row["rewardedAt"]);
|
|
43
|
+
const ledgerTransactionId = optionalText(row["ledgerTransactionId"]);
|
|
44
|
+
return {
|
|
45
|
+
id: textOf(row["id"]),
|
|
46
|
+
organizationId: textOf(row["organizationId"]),
|
|
47
|
+
codeId: textOf(row["codeId"]),
|
|
48
|
+
referrerId: textOf(row["referrerId"]),
|
|
49
|
+
status: enumOrThrow(row["status"], REFERRAL_STATUSES, "referral status"),
|
|
50
|
+
createdAt: temporal().Instant.from(textOf(row["createdAt"])),
|
|
51
|
+
...referredUserId === void 0 ? {} : { referredUserId },
|
|
52
|
+
...referredOrganizationId === void 0 ? {} : { referredOrganizationId },
|
|
53
|
+
...referredEmail === void 0 ? {} : { referredEmail },
|
|
54
|
+
...reward === void 0 ? {} : { reward },
|
|
55
|
+
...qualifiedAt === void 0 ? {} : { qualifiedAt },
|
|
56
|
+
...rewardedAt === void 0 ? {} : { rewardedAt },
|
|
57
|
+
...ledgerTransactionId === void 0 ? {} : { ledgerTransactionId }
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
const definedOf = (input) => Object.fromEntries(Object.entries(input).filter(([, value]) => value !== void 0));
|
|
61
|
+
/**
|
|
62
|
+
* Referrals: a code per member, attribution when the referred user or
|
|
63
|
+
* organization signs up, and a reward posted once to the ledger when the
|
|
64
|
+
* referral qualifies.
|
|
65
|
+
*/
|
|
66
|
+
function createReferrals(options) {
|
|
67
|
+
applyTemporal(options);
|
|
68
|
+
const call = blockCall(options.transport, options.schema, options.mappers);
|
|
69
|
+
const tenant = () => requireTenant(options.tenant);
|
|
70
|
+
return withBlockHooks({
|
|
71
|
+
createCode: (input = {}) => tenant().andThen((organizationId) => call("create_referral_code", {
|
|
72
|
+
tenant: organizationId,
|
|
73
|
+
...definedOf({
|
|
74
|
+
referrer_id: input.referrerId,
|
|
75
|
+
code: input.code,
|
|
76
|
+
invitation_id: input.invitationId,
|
|
77
|
+
reward_amount: input.reward?.amount.toString(),
|
|
78
|
+
reward_unit: input.reward?.unit,
|
|
79
|
+
max_uses: input.maxUses,
|
|
80
|
+
expires_at: input.expiresAt?.toString()
|
|
81
|
+
})
|
|
82
|
+
}, (value) => codeOf(value, "create_referral_code"))),
|
|
83
|
+
attribute: (input) => tenant().andThen((organizationId) => call("attribute_referral", {
|
|
84
|
+
tenant: organizationId,
|
|
85
|
+
code: input.code,
|
|
86
|
+
...definedOf({
|
|
87
|
+
referred_user: input.referredUserId,
|
|
88
|
+
referred_org: input.referredOrganizationId,
|
|
89
|
+
referred_email: input.referredEmail
|
|
90
|
+
})
|
|
91
|
+
}, (value) => referralOf(value, "attribute_referral"))),
|
|
92
|
+
qualify: (input) => tenant().andThen((organizationId) => call("qualify_referral", {
|
|
93
|
+
tenant: organizationId,
|
|
94
|
+
...definedOf({
|
|
95
|
+
referred_user: input.referredUserId,
|
|
96
|
+
referred_org: input.referredOrganizationId,
|
|
97
|
+
source: input.source
|
|
98
|
+
})
|
|
99
|
+
}, (value) => value === null || value === void 0 ? void 0 : referralOf(value, "qualify_referral"))),
|
|
100
|
+
void: ({ referralId, reason }) => call("void_referral", {
|
|
101
|
+
referral_id: referralId,
|
|
102
|
+
...definedOf({ reason })
|
|
103
|
+
}, (value) => referralOf(value, "void_referral")),
|
|
104
|
+
listCodes: (list = {}) => tenant().andThen((organizationId) => call("list_referral_codes", {
|
|
105
|
+
tenant: organizationId,
|
|
106
|
+
filters: definedOf({
|
|
107
|
+
referrer: list.referrerId,
|
|
108
|
+
limit: list.limit
|
|
109
|
+
})
|
|
110
|
+
}, (value) => recordsOf(value, "list_referral_codes").map((row) => codeOf(row, "list_referral_codes")))),
|
|
111
|
+
listReferrals: (list = {}) => tenant().andThen((organizationId) => call("list_referrals", {
|
|
112
|
+
tenant: organizationId,
|
|
113
|
+
filters: definedOf({
|
|
114
|
+
referrer: list.referrerId,
|
|
115
|
+
status: list.status,
|
|
116
|
+
limit: list.limit
|
|
117
|
+
})
|
|
118
|
+
}, (value) => recordsOf(value, "list_referrals").map((row) => referralOf(row, "list_referrals"))))
|
|
119
|
+
}, options.hooks, {
|
|
120
|
+
block: "referrals",
|
|
121
|
+
...options.logger ? { logger: options.logger } : {}
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
// src/blocks/referrals/events.ts
|
|
125
|
+
/** The `referrals` block's event types, for its manifest and `onBlockEvent`. */
|
|
126
|
+
const referralsEvents = defineEvents({
|
|
127
|
+
"referral_code.created": event(),
|
|
128
|
+
"referral.attributed": event(),
|
|
129
|
+
"referral.qualified": event(),
|
|
130
|
+
"referral.rewarded": event(),
|
|
131
|
+
"referral.voided": event()
|
|
132
|
+
});
|
|
133
|
+
// src/blocks/referrals/manifest.ts
|
|
134
|
+
/** The `referrals` block's manifest. */
|
|
135
|
+
const referralsBlock = defineBlock({
|
|
136
|
+
name: "referrals",
|
|
137
|
+
sql: ["referrals"],
|
|
138
|
+
events: referralsEvents,
|
|
139
|
+
schemas: {},
|
|
140
|
+
options: { referrals: referralsSqlOptions },
|
|
141
|
+
create: createReferrals,
|
|
142
|
+
recipes: [],
|
|
143
|
+
category: "commerce",
|
|
144
|
+
description: "Referral codes per member, attribution when the referred user or organization signs up, and a reward posted once to the ledger when the referral qualifies."
|
|
145
|
+
});
|
|
146
|
+
export { createReferrals, dbTransport, extendBlock, referralsBlock, referralsEvents, rpcTransport, sqlTransport, withBlockHooks, wrapTransport };
|
|
@@ -8,7 +8,7 @@ import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
|
8
8
|
import { s as BlockTenantOptions } from "../../block-helpers-gyK33E0Z.js";
|
|
9
9
|
import { t as BlockTransport } from "../../block-transport-BO7p8KHh.js";
|
|
10
10
|
import { n as BlockHooks } from "../../block-hooks-DOK9DyaZ.js";
|
|
11
|
-
import { E as RecordBinding, G as EntitySchema, M as RecordBindingWrite, c as BlockOf } from "../../define-block-
|
|
11
|
+
import { E as RecordBinding, G as EntitySchema, M as RecordBindingWrite, c as BlockOf } from "../../define-block-DiW9g10_.js";
|
|
12
12
|
import { a as UndoToken } from "../../undo-DXZw1dFP.js";
|
|
13
13
|
interface LinkInput<F extends object = Record<never, never>> {
|
|
14
14
|
/**
|
|
@@ -5,7 +5,7 @@ import { B as textOf, N as recordsOf, h as instantOf, j as recordOf, o as blockC
|
|
|
5
5
|
import { r as withBlockHooks } from "../../block-hooks-C2_d17_b.js";
|
|
6
6
|
import { n as entitySchema } from "../../entity-schema-DEIz0I8i.js";
|
|
7
7
|
import { t as defineRecordBinding } from "../../record-bindings-jTZw-GVe.js";
|
|
8
|
-
import { n as defineBlock } from "../../define-block-
|
|
8
|
+
import { n as defineBlock } from "../../define-block-DyZiZQrx.js";
|
|
9
9
|
import { i as subjectRefOf } from "../../block-subjects-ok-uZ1UU.js";
|
|
10
10
|
import { a as readAllFields, l as writeFields, n as blockFields, o as readFields, s as rowFields } from "../../block-fields-B6_zYPTF.js";
|
|
11
11
|
import { i as undoToken } from "../../undo-DNRfstwk.js";
|
|
@@ -317,6 +317,7 @@ const relationsBlock = defineBlock({
|
|
|
317
317
|
create: createRelations,
|
|
318
318
|
record: relationsBinding,
|
|
319
319
|
category: "work",
|
|
320
|
+
description: "Typed links between subjects (blocks, parent, relates, or your own kinds), with inverse names, cycle checks, one-target kinds, walks and rollups.",
|
|
320
321
|
recipes: ["related-items-panel"]
|
|
321
322
|
});
|
|
322
323
|
export { createRelations, relationInput, relationsBinding, relationsBlock, relationsEvents, toGanttTasks, toTreeItems, unlinkRelationInput };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as deliverReminder, a as ReminderJobs, b as remindersEvents, c as ReminderWhen, d as SavedReminder, f as createReminders, g as ReminderPlanInput, h as PlannedDelivery, i as ReminderJobPayload, l as Reminders, m as DeliveryPayload, n as REMINDER_DELIVERY_QUEUE, o as ReminderScheduleOptions, p as reminderJobSchema, r as ReminderEntry, s as ReminderScheduleResult, t as remindersBlock, u as RemindersOptions, v as planReminderDeliveries, y as RemindersEvents } from "../../manifest-
|
|
1
|
+
import { _ as deliverReminder, a as ReminderJobs, b as remindersEvents, c as ReminderWhen, d as SavedReminder, f as createReminders, g as ReminderPlanInput, h as PlannedDelivery, i as ReminderJobPayload, l as Reminders, m as DeliveryPayload, n as REMINDER_DELIVERY_QUEUE, o as ReminderScheduleOptions, p as reminderJobSchema, r as ReminderEntry, s as ReminderScheduleResult, t as remindersBlock, u as RemindersOptions, v as planReminderDeliveries, y as RemindersEvents } from "../../manifest-CR-6QDLZ.js";
|
|
2
2
|
import { a as weekdayName, r as expandRule, t as ExpandInput } from "../../recurrence-C8ZyBzKr.js";
|
|
3
3
|
import "../../index-DMnXy2Rv.js";
|
|
4
4
|
export { type DeliveryPayload, type ExpandInput, type PlannedDelivery, REMINDER_DELIVERY_QUEUE, type ReminderEntry, type ReminderJobPayload, type ReminderJobs, type ReminderPlanInput, type ReminderScheduleOptions, type ReminderScheduleResult, type ReminderWhen, type Reminders, type RemindersEvents, type RemindersOptions, type SavedReminder, createReminders, deliverReminder, expandRule, planReminderDeliveries, reminderJobSchema, remindersBlock, remindersEvents, weekdayName };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { r as weekdayName, t as expandRule } from "../../recurrence-dskDvlcP.js";
|
|
2
|
-
import { a as deliverReminder, i as reminderJobSchema, n as REMINDER_DELIVERY_QUEUE, o as planReminderDeliveries, r as createReminders, s as remindersEvents, t as remindersBlock } from "../../manifest
|
|
2
|
+
import { a as deliverReminder, i as reminderJobSchema, n as REMINDER_DELIVERY_QUEUE, o as planReminderDeliveries, r as createReminders, s as remindersEvents, t as remindersBlock } from "../../manifest--qnXa2lK.js";
|
|
3
3
|
export { REMINDER_DELIVERY_QUEUE, createReminders, deliverReminder, expandRule, planReminderDeliveries, reminderJobSchema, remindersBlock, remindersEvents, weekdayName };
|
|
@@ -7,7 +7,7 @@ import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
|
7
7
|
import { r as BlockTemporalOptions } from "../../block-helpers-gyK33E0Z.js";
|
|
8
8
|
import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BO7p8KHh.js";
|
|
9
9
|
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-DOK9DyaZ.js";
|
|
10
|
-
import { c as BlockOf } from "../../define-block-
|
|
10
|
+
import { c as BlockOf } from "../../define-block-DiW9g10_.js";
|
|
11
11
|
interface ReviewsOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockTemporalOptions {
|
|
12
12
|
readonly transport: BlockTransport;
|
|
13
13
|
/**
|
|
@@ -4,7 +4,7 @@ import { t as reviewsSqlOptions } from "../../options-D848Os4l.js";
|
|
|
4
4
|
import { n as event, t as defineEvents } from "../../event-map-DxfsFgQT.js";
|
|
5
5
|
import { B as textOf, C as optionalInstant, K as rpcTransport, N as recordsOf, P as requiredInstant, T as optionalText, W as dbTransport, d as enumOrThrow, j as recordOf, m as instantArg, n as applyTemporal, o as blockCall, q as sqlTransport } from "../../block-helpers-CCl3V9ku.js";
|
|
6
6
|
import { i as wrapTransport, n as extendBlock, r as withBlockHooks } from "../../block-hooks-C2_d17_b.js";
|
|
7
|
-
import { n as defineBlock } from "../../define-block-
|
|
7
|
+
import { n as defineBlock } from "../../define-block-DyZiZQrx.js";
|
|
8
8
|
import { n as blockFields } from "../../block-fields-B6_zYPTF.js";
|
|
9
9
|
// src/blocks/reviews/reviews.ts
|
|
10
10
|
const STATUSES = [
|
|
@@ -130,6 +130,7 @@ const reviewsBlock = defineBlock({
|
|
|
130
130
|
options: { reviews: reviewsSqlOptions },
|
|
131
131
|
events: reviewsEvents,
|
|
132
132
|
create: createReviews,
|
|
133
|
-
category: "commerce"
|
|
133
|
+
category: "commerce",
|
|
134
|
+
description: "Ratings and reviews of catalog products and other subjects: one per user and subject, verified against paid orders, moderated before or after publishing through the moderation block, with a per-subject aggregate public storefronts can read."
|
|
134
135
|
});
|
|
135
136
|
export { createReviews, dbTransport, extendBlock, reviewsBlock, reviewsEvents, rpcTransport, sqlTransport, withBlockHooks, wrapTransport };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BO7p8KHh.js";
|
|
2
2
|
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-DOK9DyaZ.js";
|
|
3
|
-
import { G as EntitySchema } from "../../define-block-
|
|
4
|
-
import { C as RfqEventData, E as rfqsEvents, S as createRfqs, T as RfqsEvents, _ as RfqStatus, a as RfqComparisonQuote, b as Rfqs, c as RfqLine, d as RfqOffer, f as RfqQuote, g as RfqQuoteStatus, h as RfqQuoteLineInput, i as RfqComparisonLine, l as RfqLineInput, m as RfqQuoteLine, n as Rfq, o as RfqDetail, p as RfqQuoteInput, r as RfqComparison, s as RfqInput, t as rfqsBlock, u as RfqListOptions, v as RfqSupplier, w as RfqQuoteEventData, x as RfqsOptions, y as RfqSupplierStatus } from "../../manifest-
|
|
3
|
+
import { G as EntitySchema } from "../../define-block-DiW9g10_.js";
|
|
4
|
+
import { C as RfqEventData, E as rfqsEvents, S as createRfqs, T as RfqsEvents, _ as RfqStatus, a as RfqComparisonQuote, b as Rfqs, c as RfqLine, d as RfqOffer, f as RfqQuote, g as RfqQuoteStatus, h as RfqQuoteLineInput, i as RfqComparisonLine, l as RfqLineInput, m as RfqQuoteLine, n as Rfq, o as RfqDetail, p as RfqQuoteInput, r as RfqComparison, s as RfqInput, t as rfqsBlock, u as RfqListOptions, v as RfqSupplier, w as RfqQuoteEventData, x as RfqsOptions, y as RfqSupplierStatus } from "../../manifest-DDkncgRB.js";
|
|
5
5
|
/** What `createRfq` takes, with the bounds the SQL checks. */
|
|
6
6
|
export declare const rfqInputSchema: EntitySchema<RfqInput>;
|
|
7
7
|
export { type BlockHooks, type BlockTransport, type BlockTransportMiddleware, type Rfq, type RfqComparison, type RfqComparisonLine, type RfqComparisonQuote, type RfqDetail, type RfqEventData, type RfqInput, type RfqLine, type RfqLineInput, type RfqListOptions, type RfqOffer, type RfqQuote, type RfqQuoteEventData, type RfqQuoteInput, type RfqQuoteLine, type RfqQuoteLineInput, type RfqQuoteStatus, type RfqStatus, type RfqSupplier, type RfqSupplierStatus, type Rfqs, type RfqsEvents, type RfqsOptions, type RpcClient, createRfqs, dbTransport, extendBlock, rfqsBlock, rfqsEvents, rpcTransport, sqlTransport, withBlockHooks, wrapTransport };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { K as rpcTransport, W as dbTransport, q as sqlTransport } from "../../block-helpers-CCl3V9ku.js";
|
|
2
2
|
import { i as wrapTransport, n as extendBlock, r as withBlockHooks } from "../../block-hooks-C2_d17_b.js";
|
|
3
|
-
import { i as createRfqs, n as rfqInputSchema, r as rfqsEvents, t as rfqsBlock } from "../../manifest-
|
|
3
|
+
import { i as createRfqs, n as rfqInputSchema, r as rfqsEvents, t as rfqsBlock } from "../../manifest-BoSzgLUl.js";
|
|
4
4
|
export { createRfqs, dbTransport, extendBlock, rfqInputSchema, rfqsBlock, rfqsEvents, rpcTransport, sqlTransport, withBlockHooks, wrapTransport };
|
|
@@ -7,8 +7,8 @@ import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
|
7
7
|
import { n as BlockOptions } from "../../block-helpers-gyK33E0Z.js";
|
|
8
8
|
import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BO7p8KHh.js";
|
|
9
9
|
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-DOK9DyaZ.js";
|
|
10
|
-
import { F as RiskMatrixBand, I as RiskMatrixLevel, N as RisksSqlOptions, P as risksSqlOptions } from "../../blocks-
|
|
11
|
-
import { G as EntitySchema, c as BlockOf } from "../../define-block-
|
|
10
|
+
import { F as RiskMatrixBand, I as RiskMatrixLevel, N as RisksSqlOptions, P as risksSqlOptions } from "../../blocks-ERs7xZ7E.js";
|
|
11
|
+
import { G as EntitySchema, c as BlockOf } from "../../define-block-DiW9g10_.js";
|
|
12
12
|
declare const STATUSES: readonly ["identified", "assessed", "treating", "accepted", "closed"];
|
|
13
13
|
declare const TREATMENTS: readonly ["mitigate", "accept", "transfer", "avoid"];
|
|
14
14
|
declare const SCORINGS: readonly ["product", "sum"];
|
|
@@ -5,7 +5,7 @@ import { n as event, t as defineEvents } from "../../event-map-DxfsFgQT.js";
|
|
|
5
5
|
import { B as textOf, C as optionalInstant, K as rpcTransport, N as recordsOf, P as requiredInstant, T as optionalText, W as dbTransport, d as enumOrThrow, j as recordOf, n as applyTemporal, o as blockCall, q as sqlTransport } from "../../block-helpers-CCl3V9ku.js";
|
|
6
6
|
import { i as wrapTransport, n as extendBlock, r as withBlockHooks } from "../../block-hooks-C2_d17_b.js";
|
|
7
7
|
import { n as entitySchema } from "../../entity-schema-DEIz0I8i.js";
|
|
8
|
-
import { n as defineBlock } from "../../define-block-
|
|
8
|
+
import { n as defineBlock } from "../../define-block-DyZiZQrx.js";
|
|
9
9
|
import { n as blockFields } from "../../block-fields-B6_zYPTF.js";
|
|
10
10
|
import { t as requireTenant } from "../../block-tenant-DHvDBWgF.js";
|
|
11
11
|
// src/blocks/risks/risks.ts
|
|
@@ -366,6 +366,7 @@ const risksBlock = defineBlock({
|
|
|
366
366
|
create: createRisks,
|
|
367
367
|
recipes: ["risk-register", "risk-heatmap"],
|
|
368
368
|
category: "work",
|
|
369
|
+
description: "A risk register per organization: risks numbered RSK-0001, scored on a configurable likelihood by impact matrix before and after controls, with an assessment history snapshotted in versions, treatment, scheduled reviews, barriers linked through relations, and a heatmap.",
|
|
369
370
|
schedules: [{
|
|
370
371
|
name: "review-due",
|
|
371
372
|
cron: "0 6 * * *",
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { t as AsyncResult } from "../../result-CMqlHv82.js";
|
|
2
2
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
3
3
|
import { n as BlockHooks } from "../../block-hooks-DOK9DyaZ.js";
|
|
4
|
-
import { Q as BlockContext, c as BlockOf, h as PartClients, p as CompositeOptions } from "../../define-block-
|
|
4
|
+
import { Q as BlockContext, c as BlockOf, h as PartClients, p as CompositeOptions } from "../../define-block-DiW9g10_.js";
|
|
5
5
|
import { f as CreatedApiKey } from "../../api-keys-DAPc3sq_.js";
|
|
6
|
-
import { t as apiKeysBlock } from "../../index-
|
|
7
|
-
import { t as auditBlock } from "../../manifest-
|
|
8
|
-
import { t as billingBlock } from "../../manifest-
|
|
9
|
-
import { t as entitlementsBlock } from "../../manifest-
|
|
10
|
-
import { t as notificationsBlock } from "../../manifest-
|
|
11
|
-
import { t as onboardingBlock } from "../../manifest-
|
|
12
|
-
import { k as InvitationSent, x as organizationsBlock } from "../../index-
|
|
13
|
-
import { t as outboxBlock } from "../../manifest-
|
|
14
|
-
import { t as profilesBlock } from "../../manifest-
|
|
15
|
-
import { t as settingsBlock } from "../../manifest-
|
|
16
|
-
import { t as teamsBlock } from "../../manifest-
|
|
6
|
+
import { t as apiKeysBlock } from "../../index-DHwPGqLY.js";
|
|
7
|
+
import { t as auditBlock } from "../../manifest-CKxnGCVY.js";
|
|
8
|
+
import { t as billingBlock } from "../../manifest-K_42e50M.js";
|
|
9
|
+
import { t as entitlementsBlock } from "../../manifest-B83YpMlz.js";
|
|
10
|
+
import { t as notificationsBlock } from "../../manifest-Bz3xNPJL.js";
|
|
11
|
+
import { t as onboardingBlock } from "../../manifest-B9KmOzmT.js";
|
|
12
|
+
import { k as InvitationSent, x as organizationsBlock } from "../../index-DMlTXcWp.js";
|
|
13
|
+
import { t as outboxBlock } from "../../manifest-B7MpuCmz.js";
|
|
14
|
+
import { t as profilesBlock } from "../../manifest-BHNrIQ8X.js";
|
|
15
|
+
import { t as settingsBlock } from "../../manifest-ycsWja2O.js";
|
|
16
|
+
import { t as teamsBlock } from "../../manifest-Db-GUsLH.js";
|
|
17
17
|
/** The blocks `saas` is made of, by block name. */
|
|
18
18
|
export declare const saasParts: {
|
|
19
19
|
readonly organizations: typeof organizationsBlock;
|
|
@@ -2,18 +2,18 @@ import { n as dbError } from "../../errors-CXPerGIl.js";
|
|
|
2
2
|
import { t as temporal } from "../../temporal-required-DK3ImZW6.js";
|
|
3
3
|
import { r as err, t as AsyncResult } from "../../result-DrBaeIVt.js";
|
|
4
4
|
import { r as withBlockHooks } from "../../block-hooks-C2_d17_b.js";
|
|
5
|
-
import { n as defineBlock } from "../../define-block-
|
|
6
|
-
import { t as auditBlock } from "../../manifest-
|
|
7
|
-
import { t as outboxBlock } from "../../manifest-
|
|
8
|
-
import { t as organizationsBlock } from "../../manifest-
|
|
9
|
-
import { t as profilesBlock } from "../../manifest-
|
|
10
|
-
import { t as notificationsBlock } from "../../manifest-
|
|
11
|
-
import { t as entitlementsBlock } from "../../manifest-
|
|
12
|
-
import { t as teamsBlock } from "../../manifest-
|
|
13
|
-
import { t as apiKeysBlock } from "../../manifest-
|
|
14
|
-
import { t as billingBlock } from "../../manifest-
|
|
15
|
-
import { t as onboardingBlock } from "../../manifest-
|
|
16
|
-
import { t as settingsBlock } from "../../manifest-
|
|
5
|
+
import { n as defineBlock } from "../../define-block-DyZiZQrx.js";
|
|
6
|
+
import { t as auditBlock } from "../../manifest-BdmDmQtx.js";
|
|
7
|
+
import { t as outboxBlock } from "../../manifest-CtOwRTvP.js";
|
|
8
|
+
import { t as organizationsBlock } from "../../manifest-DJRHzb6v.js";
|
|
9
|
+
import { t as profilesBlock } from "../../manifest-Dm_5DTyx.js";
|
|
10
|
+
import { t as notificationsBlock } from "../../manifest-BQwqV6dQ.js";
|
|
11
|
+
import { t as entitlementsBlock } from "../../manifest-Hx3FBHKX.js";
|
|
12
|
+
import { t as teamsBlock } from "../../manifest-B709eXLx.js";
|
|
13
|
+
import { t as apiKeysBlock } from "../../manifest-DsYIWD--.js";
|
|
14
|
+
import { t as billingBlock } from "../../manifest-Cj_ZnW6k.js";
|
|
15
|
+
import { t as onboardingBlock } from "../../manifest-DeCjklgV.js";
|
|
16
|
+
import { t as settingsBlock } from "../../manifest-BQJV63RV.js";
|
|
17
17
|
// src/blocks/saas/saas.ts
|
|
18
18
|
const MAX_GRACE_HOURS = 720;
|
|
19
19
|
/**
|
|
@@ -81,6 +81,7 @@ const saasBlock = defineBlock({
|
|
|
81
81
|
name: "saas",
|
|
82
82
|
composes: saasParts,
|
|
83
83
|
create: createSaas,
|
|
84
|
-
category: "tenancy"
|
|
84
|
+
category: "tenancy",
|
|
85
|
+
description: "Organizations, teams, profiles, billing, entitlements, notifications, audit, API keys, settings, onboarding and the outbox installed together for a multi-tenant product."
|
|
85
86
|
});
|
|
86
87
|
export { createKeyRotator, createSaas, saasBlock, saasParts };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as Sales, c as createSales, d as salesParts, i as ClosedWon, l as SalesClients, n as AcceptedQuote, o as SalesOptions, r as BilledQuote, s as createDealClosers, t as salesBlock, u as SalesParts } from "../../index-
|
|
1
|
+
import { a as Sales, c as createSales, d as salesParts, i as ClosedWon, l as SalesClients, n as AcceptedQuote, o as SalesOptions, r as BilledQuote, s as createDealClosers, t as salesBlock, u as SalesParts } from "../../index-B1NcZsVD.js";
|
|
2
2
|
export { type AcceptedQuote, type BilledQuote, type ClosedWon, type Sales, type SalesClients, type SalesOptions, type SalesParts, createDealClosers, createSales, salesBlock, salesParts };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { r as createDealClosers, i as createSales, t as salesBlock, n as salesParts } from "../../sales-
|
|
1
|
+
export { r as createDealClosers, i as createSales, t as salesBlock, n as salesParts } from "../../sales-C8o3E5U3.js";
|
|
@@ -5,9 +5,9 @@ import { Dt as Events, tt as SaasEventData } from "../../events-D5aC9hkx.js";
|
|
|
5
5
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
6
6
|
import { t as BlockTransport } from "../../block-transport-BO7p8KHh.js";
|
|
7
7
|
import { n as BlockHooks } from "../../block-hooks-DOK9DyaZ.js";
|
|
8
|
-
import { c as BlockOf, rn as RankNeighbors } from "../../define-block-
|
|
8
|
+
import { c as BlockOf, rn as RankNeighbors } from "../../define-block-DiW9g10_.js";
|
|
9
9
|
import { p as ListQueryInput } from "../../list-query-CU_-CG3O.js";
|
|
10
|
-
import { n as Controller } from "../../controller-
|
|
10
|
+
import { n as Controller } from "../../controller-DfgxFNFx.js";
|
|
11
11
|
export declare const SAVED_VIEW_KINDS: readonly ["table", "board", "calendar", "timeline", "gantt"];
|
|
12
12
|
type SavedViewKind = (typeof SAVED_VIEW_KINDS)[number];
|
|
13
13
|
export declare const SAVED_VIEW_SCOPES: readonly ["user", "team", "tenant"];
|
|
@@ -6,7 +6,7 @@ import { n as event, t as defineEvents } from "../../event-map-DxfsFgQT.js";
|
|
|
6
6
|
import { t as defineController } from "../../controller-BJmh7gFm.js";
|
|
7
7
|
import { B as textOf, N as recordsOf, T as optionalText, j as recordOf, o as blockCall } from "../../block-helpers-CCl3V9ku.js";
|
|
8
8
|
import { r as withBlockHooks } from "../../block-hooks-C2_d17_b.js";
|
|
9
|
-
import { n as defineBlock } from "../../define-block-
|
|
9
|
+
import { n as defineBlock } from "../../define-block-DyZiZQrx.js";
|
|
10
10
|
import { a as readAllFields, l as writeFields, n as blockFields, o as readFields, s as rowFields } from "../../block-fields-B6_zYPTF.js";
|
|
11
11
|
import { n as rankBetweenResult, t as neighborsForIndex } from "../../rank-result-5Se-KHhE.js";
|
|
12
12
|
// src/blocks/saved-views/types.ts
|
|
@@ -469,6 +469,7 @@ const savedViewsBlock = defineBlock({
|
|
|
469
469
|
create: createSavedViews,
|
|
470
470
|
client: "saved-views",
|
|
471
471
|
category: "work",
|
|
472
|
+
description: "Named, ranked list states (filters, sort, columns, grouping, density) for one user, a team or the whole tenant.",
|
|
472
473
|
recipes: [
|
|
473
474
|
"record-form",
|
|
474
475
|
"record-grid",
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { t as AsyncResult } from "../../result-CMqlHv82.js";
|
|
3
3
|
import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
4
4
|
import { n as BlockHooks } from "../../block-hooks-DOK9DyaZ.js";
|
|
5
|
-
import { Q as BlockContext, c as BlockOf, p as CompositeOptions } from "../../define-block-
|
|
5
|
+
import { Q as BlockContext, c as BlockOf, p as CompositeOptions } from "../../define-block-DiW9g10_.js";
|
|
6
6
|
import { m as PlacedBooking, r as BookingCustomer } from "../../bookings-D9gc3XSX.js";
|
|
7
|
-
import { t as bookingsBlock } from "../../manifest-
|
|
8
|
-
import { t as calendarBlock } from "../../manifest-
|
|
9
|
-
import { c as ReminderWhen, d as SavedReminder, t as remindersBlock } from "../../manifest-
|
|
7
|
+
import { t as bookingsBlock } from "../../manifest-DBJ5nBG9.js";
|
|
8
|
+
import { t as calendarBlock } from "../../manifest-roKO06Ko.js";
|
|
9
|
+
import { c as ReminderWhen, d as SavedReminder, t as remindersBlock } from "../../manifest-CR-6QDLZ.js";
|
|
10
10
|
/** The blocks `scheduling` is made of, by block name. */
|
|
11
11
|
export declare const schedulingParts: {
|
|
12
12
|
readonly bookings: typeof bookingsBlock;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as ok } from "../../result-DrBaeIVt.js";
|
|
2
2
|
import { r as withBlockHooks } from "../../block-hooks-C2_d17_b.js";
|
|
3
|
-
import { n as defineBlock } from "../../define-block-
|
|
4
|
-
import { t as calendarBlock } from "../../manifest-
|
|
5
|
-
import { t as bookingsBlock } from "../../manifest-
|
|
6
|
-
import { t as remindersBlock } from "../../manifest
|
|
3
|
+
import { n as defineBlock } from "../../define-block-DyZiZQrx.js";
|
|
4
|
+
import { t as calendarBlock } from "../../manifest-Cu_4X5Rm.js";
|
|
5
|
+
import { t as bookingsBlock } from "../../manifest-CbxMRPGY.js";
|
|
6
|
+
import { t as remindersBlock } from "../../manifest--qnXa2lK.js";
|
|
7
7
|
// src/blocks/scheduling/scheduling.ts
|
|
8
8
|
/** Creates the `scheduling` helpers over the clients of its parts. */
|
|
9
9
|
function createScheduling(options) {
|
|
@@ -45,6 +45,7 @@ const schedulingBlock = defineBlock({
|
|
|
45
45
|
name: "scheduling",
|
|
46
46
|
composes: schedulingParts,
|
|
47
47
|
create: createScheduling,
|
|
48
|
-
category: "scheduling"
|
|
48
|
+
category: "scheduling",
|
|
49
|
+
description: "Bookings, a calendar and reminders installed together for appointments."
|
|
49
50
|
});
|
|
50
51
|
export { createScheduling, schedulingBlock, schedulingParts };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Dt as Events } from "../../events-D5aC9hkx.js";
|
|
2
2
|
import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BO7p8KHh.js";
|
|
3
3
|
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-DOK9DyaZ.js";
|
|
4
|
-
import { M as ScoresSqlOptions } from "../../blocks-
|
|
5
|
-
import { E as RecordBinding, c as BlockOf } from "../../define-block-
|
|
4
|
+
import { M as ScoresSqlOptions } from "../../blocks-ERs7xZ7E.js";
|
|
5
|
+
import { E as RecordBinding, c as BlockOf } from "../../define-block-DiW9g10_.js";
|
|
6
6
|
import { a as ScoreMetric, c as ScoreModelInput, d as Scores, f as ScoresOptions, i as ScoreBreakdown, l as ScoreModelVersion, n as Score, o as ScoreModel, p as createScores, r as ScoreBand, s as ScoreModelDetail, t as ComputedScore, u as ScoreRule } from "../../scores-Ch3tBr07.js";
|
|
7
7
|
/** `score_model.created`, `score_model.updated` and `score_model.deleted`. */
|
|
8
8
|
interface ScoreModelEventData {
|
|
@@ -3,7 +3,7 @@ import { n as event, t as defineEvents } from "../../event-map-DxfsFgQT.js";
|
|
|
3
3
|
import { K as rpcTransport, W as dbTransport, q as sqlTransport } from "../../block-helpers-CCl3V9ku.js";
|
|
4
4
|
import { i as wrapTransport, n as extendBlock, r as withBlockHooks } from "../../block-hooks-C2_d17_b.js";
|
|
5
5
|
import { t as defineRecordBinding } from "../../record-bindings-jTZw-GVe.js";
|
|
6
|
-
import { n as defineBlock } from "../../define-block-
|
|
6
|
+
import { n as defineBlock } from "../../define-block-DyZiZQrx.js";
|
|
7
7
|
import { n as createScores } from "../../scores-CQt_G6T-.js";
|
|
8
8
|
// src/blocks/scores/events.ts
|
|
9
9
|
/** The `scores` block's event types, for its manifest and `onBlockEvent`. */
|
|
@@ -33,6 +33,7 @@ const scoresBlock = defineBlock({
|
|
|
33
33
|
events: scoresEvents,
|
|
34
34
|
create: createScores,
|
|
35
35
|
record: scoresBinding,
|
|
36
|
-
category: "growth"
|
|
36
|
+
category: "growth",
|
|
37
|
+
description: "Tenant-editable scoring models: rules (a filter tree over the rules field catalog worth points) and metrics (a number times a weight, or a record's vote score) that write versioned scores with bands to any subject. Lead scoring and health scoring are models."
|
|
37
38
|
});
|
|
38
39
|
export { createScores, dbTransport, extendBlock, rpcTransport, scoresBinding, scoresBlock, scoresEvents, sqlTransport, withBlockHooks, wrapTransport };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { b as DbError } from "../../result-CMqlHv82.js";
|
|
2
2
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BO7p8KHh.js";
|
|
3
3
|
import { i as EventSink } from "../../cloud-event-CQAnJsbp.js";
|
|
4
|
-
import { i as KeyboardPort } from "../../ports-
|
|
5
|
-
import { n as Controller } from "../../controller-
|
|
6
|
-
import { a as SearchHit, c as SearchQuery, i as Search, l as SearchUserItem, n as Embedder, o as SearchListOptions, r as PendingEmbedding, s as SearchOptions, t as searchBlock, u as createSearch } from "../../manifest-
|
|
4
|
+
import { i as KeyboardPort } from "../../ports-6EMtxwGE.js";
|
|
5
|
+
import { n as Controller } from "../../controller-DfgxFNFx.js";
|
|
6
|
+
import { a as SearchHit, c as SearchQuery, i as Search, l as SearchUserItem, n as Embedder, o as SearchListOptions, r as PendingEmbedding, s as SearchOptions, t as searchBlock, u as createSearch } from "../../manifest-yPcrAK5N.js";
|
|
7
7
|
/** What an event does to the index. */
|
|
8
8
|
type SearchSinkAction = "remove" | "refresh";
|
|
9
9
|
/**
|