@antelopejs/dms-saas 0.4.0 → 0.5.1
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/README.md +42 -2
- package/dist/auth/index.d.ts +1 -0
- package/dist/auth/index.js +1 -0
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/owner-only-permissions-resolver.d.ts +1 -0
- package/dist/auth/owner-only-permissions-resolver.js +25 -0
- package/dist/auth/owner-only-permissions-resolver.js.map +1 -0
- package/dist/billing-state/directory-hooks.d.ts +1 -0
- package/dist/billing-state/directory-hooks.js +35 -0
- package/dist/billing-state/directory-hooks.js.map +1 -0
- package/dist/billing-state/directory.d.ts +29 -0
- package/dist/billing-state/directory.js +152 -0
- package/dist/billing-state/directory.js.map +1 -0
- package/dist/billing-state/index.d.ts +5 -1
- package/dist/billing-state/index.js +14 -2
- package/dist/billing-state/index.js.map +1 -1
- package/dist/billing-state/past-due-banner.d.ts +4 -3
- package/dist/billing-state/past-due-banner.js +30 -10
- package/dist/billing-state/past-due-banner.js.map +1 -1
- package/dist/billing-state/recovery.d.ts +4 -0
- package/dist/billing-state/recovery.js +7 -5
- package/dist/billing-state/recovery.js.map +1 -1
- package/dist/billing-state/trial-ending-banner.d.ts +4 -0
- package/dist/billing-state/trial-ending-banner.js +66 -0
- package/dist/billing-state/trial-ending-banner.js.map +1 -0
- package/dist/config/runtime.d.ts +1 -0
- package/dist/config/runtime.js +5 -0
- package/dist/config/runtime.js.map +1 -1
- package/dist/crons/auto-suspend-past-due.js +4 -5
- package/dist/crons/auto-suspend-past-due.js.map +1 -1
- package/dist/data-api/platformOwner/admin-user-invoices.d.ts +6 -4
- package/dist/data-api/platformOwner/admin-user-invoices.js +52 -30
- package/dist/data-api/platformOwner/admin-user-invoices.js.map +1 -1
- package/dist/data-api/platformOwner/admin-user-workspaces.d.ts +2 -0
- package/dist/data-api/platformOwner/admin-user-workspaces.js +69 -3
- package/dist/data-api/platformOwner/admin-user-workspaces.js.map +1 -1
- package/dist/data-api/platformOwner/credit-note-rows.d.ts +11 -0
- package/dist/data-api/platformOwner/credit-note-rows.js +54 -0
- package/dist/data-api/platformOwner/credit-note-rows.js.map +1 -0
- package/dist/data-api/platformOwner/credit-notes.d.ts +13 -0
- package/dist/data-api/platformOwner/credit-notes.js +149 -10
- package/dist/data-api/platformOwner/credit-notes.js.map +1 -1
- package/dist/data-api/platformOwner/features.d.ts +7 -2
- package/dist/data-api/platformOwner/features.js +151 -37
- package/dist/data-api/platformOwner/features.js.map +1 -1
- package/dist/data-api/platformOwner/invitations.js +29 -9
- package/dist/data-api/platformOwner/invitations.js.map +1 -1
- package/dist/data-api/platformOwner/invoice-cells.d.ts +5 -0
- package/dist/data-api/platformOwner/invoice-cells.js +51 -0
- package/dist/data-api/platformOwner/invoice-cells.js.map +1 -0
- package/dist/data-api/platformOwner/invoice-options.js.map +1 -1
- package/dist/data-api/platformOwner/invoice-rows.d.ts +9 -0
- package/dist/data-api/platformOwner/invoice-rows.js +39 -0
- package/dist/data-api/platformOwner/invoice-rows.js.map +1 -0
- package/dist/data-api/platformOwner/invoices.d.ts +24 -6
- package/dist/data-api/platformOwner/invoices.js +192 -11
- package/dist/data-api/platformOwner/invoices.js.map +1 -1
- package/dist/data-api/platformOwner/members.d.ts +2 -1
- package/dist/data-api/platformOwner/members.js +56 -20
- package/dist/data-api/platformOwner/members.js.map +1 -1
- package/dist/data-api/platformOwner/plan-migrations.d.ts +14 -2
- package/dist/data-api/platformOwner/plan-migrations.js +179 -33
- package/dist/data-api/platformOwner/plan-migrations.js.map +1 -1
- package/dist/data-api/platformOwner/plans.d.ts +30 -6
- package/dist/data-api/platformOwner/plans.js +269 -44
- package/dist/data-api/platformOwner/plans.js.map +1 -1
- package/dist/data-api/platformOwner/segments.d.ts +9 -7
- package/dist/data-api/platformOwner/segments.js +108 -101
- package/dist/data-api/platformOwner/segments.js.map +1 -1
- package/dist/data-api/platformOwner/table-scope.d.ts +6 -0
- package/dist/data-api/platformOwner/table-scope.js +8 -0
- package/dist/data-api/platformOwner/table-scope.js.map +1 -0
- package/dist/data-api/platformOwner/users.d.ts +15 -2
- package/dist/data-api/platformOwner/users.js +171 -15
- package/dist/data-api/platformOwner/users.js.map +1 -1
- package/dist/data-api/platformOwner/workspace-cells.d.ts +12 -0
- package/dist/data-api/platformOwner/workspace-cells.js +90 -0
- package/dist/data-api/platformOwner/workspace-cells.js.map +1 -0
- package/dist/data-api/platformOwner/workspaces.d.ts +26 -4
- package/dist/data-api/platformOwner/workspaces.js +269 -97
- package/dist/data-api/platformOwner/workspaces.js.map +1 -1
- package/dist/data-api/tenant/tenant-invoices.d.ts +4 -0
- package/dist/data-api/tenant/tenant-invoices.js +68 -4
- package/dist/data-api/tenant/tenant-invoices.js.map +1 -1
- package/dist/hooks/register.js +5 -1
- package/dist/hooks/register.js.map +1 -1
- package/dist/i18n/composed-text.d.ts +17 -0
- package/dist/i18n/composed-text.js +71 -0
- package/dist/i18n/composed-text.js.map +1 -0
- package/dist/implementations/dms-saas/billing.d.ts +1 -0
- package/dist/implementations/dms-saas/billing.js +4 -1
- package/dist/implementations/dms-saas/billing.js.map +1 -1
- package/dist/implementations/dms-saas/pages.d.ts +0 -1
- package/dist/implementations/dms-saas/pages.js +0 -4
- package/dist/implementations/dms-saas/pages.js.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/metrics/activity-sources.d.ts +2 -0
- package/dist/metrics/activity-sources.js +60 -0
- package/dist/metrics/activity-sources.js.map +1 -0
- package/dist/metrics/activity.d.ts +25 -0
- package/dist/metrics/activity.js +197 -0
- package/dist/metrics/activity.js.map +1 -0
- package/dist/metrics/directory-summary.d.ts +30 -0
- package/dist/metrics/directory-summary.js +95 -0
- package/dist/metrics/directory-summary.js.map +1 -0
- package/dist/metrics/headline-items.d.ts +32 -0
- package/dist/metrics/headline-items.js +242 -0
- package/dist/metrics/headline-items.js.map +1 -0
- package/dist/metrics/normalised-mrr.d.ts +32 -0
- package/dist/metrics/normalised-mrr.js +75 -0
- package/dist/metrics/normalised-mrr.js.map +1 -0
- package/dist/metrics/revenue.d.ts +30 -0
- package/dist/metrics/revenue.js +126 -0
- package/dist/metrics/revenue.js.map +1 -0
- package/dist/notifications/recipients.d.ts +1 -0
- package/dist/notifications/recipients.js +4 -0
- package/dist/notifications/recipients.js.map +1 -1
- package/dist/notifications/subjects.d.ts +18 -17
- package/dist/notifications/subjects.js +7 -1
- package/dist/notifications/subjects.js.map +1 -1
- package/dist/operator-actions/commands.js +9 -6
- package/dist/operator-actions/commands.js.map +1 -1
- package/dist/operator-actions/invitation-commands.d.ts +7 -1
- package/dist/operator-actions/invitation-commands.js +16 -0
- package/dist/operator-actions/invitation-commands.js.map +1 -1
- package/dist/operator-actions/previews.d.ts +50 -0
- package/dist/operator-actions/previews.js +113 -0
- package/dist/operator-actions/previews.js.map +1 -0
- package/dist/operator-actions/types.d.ts +1 -1
- package/dist/operator-actions/upgrade-preview.d.ts +35 -0
- package/dist/operator-actions/upgrade-preview.js +110 -0
- package/dist/operator-actions/upgrade-preview.js.map +1 -0
- package/dist/operator-billing/billing-rules.d.ts +58 -0
- package/dist/operator-billing/billing-rules.js +90 -0
- package/dist/operator-billing/billing-rules.js.map +1 -0
- package/dist/operator-billing/billing-settings-store.d.ts +3 -0
- package/dist/operator-billing/billing-settings-store.js +34 -0
- package/dist/operator-billing/billing-settings-store.js.map +1 -0
- package/dist/operator-billing/billing-stats.d.ts +37 -0
- package/dist/operator-billing/billing-stats.js +197 -0
- package/dist/operator-billing/billing-stats.js.map +1 -0
- package/dist/operator-billing/credit-allowance.d.ts +17 -0
- package/dist/operator-billing/credit-allowance.js +44 -0
- package/dist/operator-billing/credit-allowance.js.map +1 -0
- package/dist/operator-billing/credit-note-request.d.ts +39 -0
- package/dist/operator-billing/credit-note-request.js +73 -0
- package/dist/operator-billing/credit-note-request.js.map +1 -0
- package/dist/operator-billing/index.d.ts +8 -0
- package/dist/operator-billing/index.js +25 -0
- package/dist/operator-billing/index.js.map +1 -0
- package/dist/operator-billing/invoice-credit.d.ts +41 -0
- package/dist/operator-billing/invoice-credit.js +111 -0
- package/dist/operator-billing/invoice-credit.js.map +1 -0
- package/dist/operator-billing/legal-documents-store.d.ts +12 -0
- package/dist/operator-billing/legal-documents-store.js +46 -0
- package/dist/operator-billing/legal-documents-store.js.map +1 -0
- package/dist/operator-billing/legal-versions.d.ts +5 -0
- package/dist/operator-billing/legal-versions.js +31 -0
- package/dist/operator-billing/legal-versions.js.map +1 -0
- package/dist/pages/block-meta.d.ts +15 -0
- package/dist/pages/block-meta.js +21 -0
- package/dist/pages/block-meta.js.map +1 -0
- package/dist/pages/module.d.ts +1 -3
- package/dist/pages/module.js +1 -8
- package/dist/pages/module.js.map +1 -1
- package/dist/pages/platform/credit-notes.d.ts +1 -0
- package/dist/pages/platform/credit-notes.js +63 -5
- package/dist/pages/platform/credit-notes.js.map +1 -1
- package/dist/pages/platform/dashboard.d.ts +4 -1
- package/dist/pages/platform/dashboard.js +123 -64
- package/dist/pages/platform/dashboard.js.map +1 -1
- package/dist/pages/platform/features.js +85 -12
- package/dist/pages/platform/features.js.map +1 -1
- package/dist/pages/platform/index.d.ts +1 -0
- package/dist/pages/platform/index.js +1 -0
- package/dist/pages/platform/index.js.map +1 -1
- package/dist/pages/platform/invoices.d.ts +6 -0
- package/dist/pages/platform/invoices.js +84 -28
- package/dist/pages/platform/invoices.js.map +1 -1
- package/dist/pages/platform/paths.d.ts +9 -0
- package/dist/pages/platform/paths.js +25 -0
- package/dist/pages/platform/paths.js.map +1 -0
- package/dist/pages/platform/plans/edit.d.ts +2 -2
- package/dist/pages/platform/plans/edit.js +170 -105
- package/dist/pages/platform/plans/edit.js.map +1 -1
- package/dist/pages/platform/plans/index.d.ts +1 -0
- package/dist/pages/platform/plans/index.js +177 -54
- package/dist/pages/platform/plans/index.js.map +1 -1
- package/dist/pages/platform/plans/migrations.d.ts +12 -0
- package/dist/pages/platform/plans/migrations.js +259 -13
- package/dist/pages/platform/plans/migrations.js.map +1 -1
- package/dist/pages/platform/segments/edit.d.ts +17 -0
- package/dist/pages/platform/segments/edit.js +124 -0
- package/dist/pages/platform/segments/edit.js.map +1 -0
- package/dist/pages/platform/segments/index.js +68 -8
- package/dist/pages/platform/segments/index.js.map +1 -1
- package/dist/pages/platform/settings.d.ts +1 -1
- package/dist/pages/platform/settings.js +164 -105
- package/dist/pages/platform/settings.js.map +1 -1
- package/dist/pages/platform/users/detail.js +112 -33
- package/dist/pages/platform/users/detail.js.map +1 -1
- package/dist/pages/platform/users/index.js +52 -18
- package/dist/pages/platform/users/index.js.map +1 -1
- package/dist/pages/platform/workspaces/detail.d.ts +3 -1
- package/dist/pages/platform/workspaces/detail.js +184 -113
- package/dist/pages/platform/workspaces/detail.js.map +1 -1
- package/dist/pages/platform/workspaces/index.d.ts +1 -20
- package/dist/pages/platform/workspaces/index.js +152 -180
- package/dist/pages/platform/workspaces/index.js.map +1 -1
- package/dist/pages/platform/workspaces/shared.d.ts +11 -0
- package/dist/pages/platform/workspaces/shared.js +53 -0
- package/dist/pages/platform/workspaces/shared.js.map +1 -0
- package/dist/pages/public/auth/no-workspace.js +7 -2
- package/dist/pages/public/auth/no-workspace.js.map +1 -1
- package/dist/pages/public/index.js.map +1 -1
- package/dist/pages/public/legal/privacy-policy.d.ts +1 -0
- package/dist/pages/public/legal/privacy-policy.js +9 -4
- package/dist/pages/public/legal/privacy-policy.js.map +1 -1
- package/dist/pages/public/legal/terms-and-conditions.d.ts +1 -0
- package/dist/pages/public/legal/terms-and-conditions.js +9 -4
- package/dist/pages/public/legal/terms-and-conditions.js.map +1 -1
- package/dist/pages/public/legal/terms-of-use.d.ts +1 -0
- package/dist/pages/public/legal/terms-of-use.js +9 -4
- package/dist/pages/public/legal/terms-of-use.js.map +1 -1
- package/dist/pages/public/nav-bar.d.ts +2 -0
- package/dist/pages/public/nav-bar.js +14 -0
- package/dist/pages/public/nav-bar.js.map +1 -0
- package/dist/pages/public/pricing.d.ts +10 -0
- package/dist/pages/public/pricing.js +32 -0
- package/dist/pages/public/pricing.js.map +1 -0
- package/dist/pages/public/register.d.ts +1 -0
- package/dist/pages/public/register.js +6 -3
- package/dist/pages/public/register.js.map +1 -1
- package/dist/pages/public/screens.js +1 -0
- package/dist/pages/public/screens.js.map +1 -1
- package/dist/pages/tenant/billing.d.ts +7 -7
- package/dist/pages/tenant/billing.js +141 -63
- package/dist/pages/tenant/billing.js.map +1 -1
- package/dist/pages/tenant/data-export.d.ts +3 -1
- package/dist/pages/tenant/data-export.js +25 -6
- package/dist/pages/tenant/data-export.js.map +1 -1
- package/dist/pages/tenant/general.d.ts +3 -2
- package/dist/pages/tenant/general.js +91 -11
- package/dist/pages/tenant/general.js.map +1 -1
- package/dist/pages/tenant/index.d.ts +1 -0
- package/dist/pages/tenant/index.js +1 -0
- package/dist/pages/tenant/index.js.map +1 -1
- package/dist/pages/tenant/members-seat-quota.d.ts +3 -0
- package/dist/pages/tenant/members-seat-quota.js +18 -6
- package/dist/pages/tenant/members-seat-quota.js.map +1 -1
- package/dist/pages/tenant/owner-only.d.ts +1 -0
- package/dist/pages/tenant/owner-only.js +14 -0
- package/dist/pages/tenant/owner-only.js.map +1 -0
- package/dist/pages/tenant/workspace-suspended.js +7 -3
- package/dist/pages/tenant/workspace-suspended.js.map +1 -1
- package/dist/plan-changes/applied-upgrade.d.ts +5 -0
- package/dist/plan-changes/applied-upgrade.js +51 -0
- package/dist/plan-changes/applied-upgrade.js.map +1 -0
- package/dist/plan-changes/deferred.js +9 -40
- package/dist/plan-changes/deferred.js.map +1 -1
- package/dist/plan-changes/immediate.d.ts +4 -0
- package/dist/plan-changes/immediate.js +34 -0
- package/dist/plan-changes/immediate.js.map +1 -0
- package/dist/plan-changes/index.d.ts +1 -0
- package/dist/plan-changes/index.js +1 -0
- package/dist/plan-changes/index.js.map +1 -1
- package/dist/plan-changes/pending-target.d.ts +17 -0
- package/dist/plan-changes/pending-target.js +62 -0
- package/dist/plan-changes/pending-target.js.map +1 -0
- package/dist/plans/catalogue-summary.d.ts +24 -0
- package/dist/plans/catalogue-summary.js +97 -0
- package/dist/plans/catalogue-summary.js.map +1 -0
- package/dist/plans/catalogue-usage.d.ts +36 -0
- package/dist/plans/catalogue-usage.js +120 -0
- package/dist/plans/catalogue-usage.js.map +1 -0
- package/dist/plans/feature-guards.d.ts +5 -0
- package/dist/plans/feature-guards.js +31 -0
- package/dist/plans/feature-guards.js.map +1 -0
- package/dist/plans/feature-usage.d.ts +4 -0
- package/dist/plans/feature-usage.js +22 -0
- package/dist/plans/feature-usage.js.map +1 -0
- package/dist/plans/migration-blocks.d.ts +13 -0
- package/dist/plans/migration-blocks.js +337 -0
- package/dist/plans/migration-blocks.js.map +1 -0
- package/dist/plans/migration-detail.d.ts +48 -0
- package/dist/plans/migration-detail.js +80 -0
- package/dist/plans/migration-detail.js.map +1 -0
- package/dist/plans/migration-dialogs.d.ts +8 -0
- package/dist/plans/migration-dialogs.js +103 -0
- package/dist/plans/migration-dialogs.js.map +1 -0
- package/dist/plans/migration-outcomes.d.ts +7 -0
- package/dist/plans/migration-outcomes.js +38 -0
- package/dist/plans/migration-outcomes.js.map +1 -0
- package/dist/plans/migration-realtime.d.ts +2 -0
- package/dist/plans/migration-realtime.js +19 -0
- package/dist/plans/migration-realtime.js.map +1 -0
- package/dist/plans/migration-workspaces.d.ts +40 -0
- package/dist/plans/migration-workspaces.js +121 -0
- package/dist/plans/migration-workspaces.js.map +1 -0
- package/dist/plans/money.d.ts +1 -0
- package/dist/plans/money.js +11 -0
- package/dist/plans/money.js.map +1 -0
- package/dist/plans/plan-access-type.d.ts +25 -0
- package/dist/plans/plan-access-type.js +49 -0
- package/dist/plans/plan-access-type.js.map +1 -0
- package/dist/plans/plan-audience.d.ts +3 -0
- package/dist/plans/plan-audience.js +9 -0
- package/dist/plans/plan-audience.js.map +1 -0
- package/dist/plans/plan-diff.d.ts +13 -0
- package/dist/plans/plan-diff.js +73 -0
- package/dist/plans/plan-diff.js.map +1 -0
- package/dist/plans/plan-permission-tree.d.ts +11 -0
- package/dist/plans/plan-permission-tree.js +58 -0
- package/dist/plans/plan-permission-tree.js.map +1 -0
- package/dist/plans/plan-write.d.ts +17 -0
- package/dist/plans/plan-write.js +111 -0
- package/dist/plans/plan-write.js.map +1 -0
- package/dist/plans/seat-capacity.d.ts +3 -1
- package/dist/plans/seat-capacity.js +10 -2
- package/dist/plans/seat-capacity.js.map +1 -1
- package/dist/plans/seat-hooks.d.ts +1 -0
- package/dist/plans/seat-hooks.js +1 -0
- package/dist/plans/seat-hooks.js.map +1 -1
- package/dist/plans/stripe-sync.d.ts +3 -0
- package/dist/plans/stripe-sync.js +16 -0
- package/dist/plans/stripe-sync.js.map +1 -1
- package/dist/routes/platformOwner/billing-settings.d.ts +11 -35
- package/dist/routes/platformOwner/billing-settings.js +77 -47
- package/dist/routes/platformOwner/billing-settings.js.map +1 -1
- package/dist/routes/platformOwner/billing-stats.d.ts +15 -0
- package/dist/routes/platformOwner/billing-stats.js +106 -0
- package/dist/routes/platformOwner/billing-stats.js.map +1 -0
- package/dist/routes/platformOwner/block-payloads.d.ts +7 -0
- package/dist/routes/platformOwner/block-payloads.js +3 -0
- package/dist/routes/platformOwner/block-payloads.js.map +1 -0
- package/dist/routes/platformOwner/credit-notes-issue.d.ts +7 -8
- package/dist/routes/platformOwner/credit-notes-issue.js +28 -16
- package/dist/routes/platformOwner/credit-notes-issue.js.map +1 -1
- package/dist/routes/platformOwner/dashboard.d.ts +14 -57
- package/dist/routes/platformOwner/dashboard.js +126 -247
- package/dist/routes/platformOwner/dashboard.js.map +1 -1
- package/dist/routes/platformOwner/index.d.ts +7 -0
- package/dist/routes/platformOwner/index.js +7 -0
- package/dist/routes/platformOwner/index.js.map +1 -1
- package/dist/routes/platformOwner/plan-deletion.d.ts +77 -19
- package/dist/routes/platformOwner/plan-deletion.js +219 -67
- package/dist/routes/platformOwner/plan-deletion.js.map +1 -1
- package/dist/routes/platformOwner/plan-dialogs.d.ts +22 -0
- package/dist/routes/platformOwner/plan-dialogs.js +211 -0
- package/dist/routes/platformOwner/plan-dialogs.js.map +1 -0
- package/dist/routes/platformOwner/plan-migration-context.d.ts +9 -0
- package/dist/routes/platformOwner/plan-migration-context.js +147 -0
- package/dist/routes/platformOwner/plan-migration-context.js.map +1 -0
- package/dist/routes/platformOwner/plan-migration-export.d.ts +12 -0
- package/dist/routes/platformOwner/plan-migration-export.js +100 -0
- package/dist/routes/platformOwner/plan-migration-export.js.map +1 -0
- package/dist/routes/platformOwner/plan-migrations.d.ts +43 -0
- package/dist/routes/platformOwner/plan-migrations.js +260 -0
- package/dist/routes/platformOwner/plan-migrations.js.map +1 -0
- package/dist/routes/platformOwner/plans.d.ts +44 -41
- package/dist/routes/platformOwner/plans.js +155 -142
- package/dist/routes/platformOwner/plans.js.map +1 -1
- package/dist/routes/platformOwner/platform-owners.d.ts +8 -6
- package/dist/routes/platformOwner/platform-owners.js +40 -12
- package/dist/routes/platformOwner/platform-owners.js.map +1 -1
- package/dist/routes/platformOwner/segments-export.d.ts +15 -0
- package/dist/routes/platformOwner/segments-export.js +143 -0
- package/dist/routes/platformOwner/segments-export.js.map +1 -0
- package/dist/routes/platformOwner/segments.d.ts +17 -11
- package/dist/routes/platformOwner/segments.js +62 -113
- package/dist/routes/platformOwner/segments.js.map +1 -1
- package/dist/routes/platformOwner/stripe-dashboard.d.ts +6 -0
- package/dist/routes/platformOwner/stripe-dashboard.js +29 -0
- package/dist/routes/platformOwner/stripe-dashboard.js.map +1 -0
- package/dist/routes/platformOwner/users-detail.d.ts +12 -22
- package/dist/routes/platformOwner/users-detail.js +60 -53
- package/dist/routes/platformOwner/users-detail.js.map +1 -1
- package/dist/routes/platformOwner/workspace-detail.d.ts +36 -0
- package/dist/routes/platformOwner/workspace-detail.js +222 -0
- package/dist/routes/platformOwner/workspace-detail.js.map +1 -0
- package/dist/routes/platformOwner/workspace-invitations.d.ts +4 -0
- package/dist/routes/platformOwner/workspace-invitations.js +18 -0
- package/dist/routes/platformOwner/workspace-invitations.js.map +1 -1
- package/dist/routes/platformOwner/workspace-operator-actions.d.ts +14 -2
- package/dist/routes/platformOwner/workspace-operator-actions.js +42 -4
- package/dist/routes/platformOwner/workspace-operator-actions.js.map +1 -1
- package/dist/routes/platformOwner/workspaces-admin.d.ts +17 -12
- package/dist/routes/platformOwner/workspaces-admin.js +122 -28
- package/dist/routes/platformOwner/workspaces-admin.js.map +1 -1
- package/dist/routes/public/index.d.ts +1 -0
- package/dist/routes/public/index.js +1 -0
- package/dist/routes/public/index.js.map +1 -1
- package/dist/routes/public/legal-documents.d.ts +2 -8
- package/dist/routes/public/legal-documents.js +4 -39
- package/dist/routes/public/legal-documents.js.map +1 -1
- package/dist/routes/public/pricing.d.ts +12 -0
- package/dist/routes/public/pricing.js +50 -0
- package/dist/routes/public/pricing.js.map +1 -0
- package/dist/routes/public/public-plan-catalog.d.ts +37 -0
- package/dist/routes/public/public-plan-catalog.js +63 -0
- package/dist/routes/public/public-plan-catalog.js.map +1 -0
- package/dist/routes/public/register.d.ts +13 -0
- package/dist/routes/public/register.js +88 -4
- package/dist/routes/public/register.js.map +1 -1
- package/dist/routes/tenant/billing-pay-invoice.d.ts +13 -0
- package/dist/routes/tenant/billing-pay-invoice.js +82 -0
- package/dist/routes/tenant/billing-pay-invoice.js.map +1 -0
- package/dist/routes/tenant/billing-portal.d.ts +8 -3
- package/dist/routes/tenant/billing-portal.js +34 -16
- package/dist/routes/tenant/billing-portal.js.map +1 -1
- package/dist/routes/tenant/billing-self-refund.d.ts +26 -1
- package/dist/routes/tenant/billing-self-refund.js +95 -46
- package/dist/routes/tenant/billing-self-refund.js.map +1 -1
- package/dist/routes/tenant/complimentary-banner.d.ts +12 -0
- package/dist/routes/tenant/complimentary-banner.js +64 -0
- package/dist/routes/tenant/complimentary-banner.js.map +1 -0
- package/dist/routes/tenant/data-export.js +14 -0
- package/dist/routes/tenant/data-export.js.map +1 -1
- package/dist/routes/tenant/index.d.ts +7 -0
- package/dist/routes/tenant/index.js +7 -0
- package/dist/routes/tenant/index.js.map +1 -1
- package/dist/routes/tenant/tenant-billing.d.ts +1 -0
- package/dist/routes/tenant/tenant-billing.js +18 -13
- package/dist/routes/tenant/tenant-billing.js.map +1 -1
- package/dist/routes/tenant/tenant-plan-authentication.d.ts +13 -0
- package/dist/routes/tenant/tenant-plan-authentication.js +79 -0
- package/dist/routes/tenant/tenant-plan-authentication.js.map +1 -0
- package/dist/routes/tenant/tenant-plan-cancellation.d.ts +12 -0
- package/dist/routes/tenant/tenant-plan-cancellation.js +87 -0
- package/dist/routes/tenant/tenant-plan-cancellation.js.map +1 -0
- package/dist/routes/tenant/tenant-plan-checkout.d.ts +3 -0
- package/dist/routes/tenant/tenant-plan-checkout.js +21 -11
- package/dist/routes/tenant/tenant-plan-checkout.js.map +1 -1
- package/dist/routes/tenant/tenant-plan-ops.d.ts +32 -2
- package/dist/routes/tenant/tenant-plan-ops.js +112 -39
- package/dist/routes/tenant/tenant-plan-ops.js.map +1 -1
- package/dist/routes/tenant/tenant-plan-preview.d.ts +33 -0
- package/dist/routes/tenant/tenant-plan-preview.js +216 -0
- package/dist/routes/tenant/tenant-plan-preview.js.map +1 -0
- package/dist/routes/tenant/tenant-plan-resubscription.d.ts +2 -0
- package/dist/routes/tenant/tenant-plan-resubscription.js +61 -0
- package/dist/routes/tenant/tenant-plan-resubscription.js.map +1 -0
- package/dist/routes/tenant/tenant-plan.d.ts +9 -4
- package/dist/routes/tenant/tenant-plan.js +124 -16
- package/dist/routes/tenant/tenant-plan.js.map +1 -1
- package/dist/routes/tenant/tenant-seats.d.ts +6 -1
- package/dist/routes/tenant/tenant-seats.js +26 -5
- package/dist/routes/tenant/tenant-seats.js.map +1 -1
- package/dist/routes/tenant/tenant-upcoming-invoice.d.ts +26 -0
- package/dist/routes/tenant/tenant-upcoming-invoice.js +200 -0
- package/dist/routes/tenant/tenant-upcoming-invoice.js.map +1 -0
- package/dist/routes/tenant/workspace-access.d.ts +67 -0
- package/dist/routes/tenant/workspace-access.js +224 -0
- package/dist/routes/tenant/workspace-access.js.map +1 -0
- package/dist/routes/tenant/workspaces.d.ts +12 -43
- package/dist/routes/tenant/workspaces.js +82 -192
- package/dist/routes/tenant/workspaces.js.map +1 -1
- package/dist/segments/index.d.ts +29 -0
- package/dist/segments/index.js +116 -0
- package/dist/segments/index.js.map +1 -0
- package/dist/stripe/client.d.ts +1 -0
- package/dist/stripe/client.js +11 -0
- package/dist/stripe/client.js.map +1 -1
- package/dist/stripe/customer-locale.d.ts +3 -0
- package/dist/stripe/customer-locale.js +36 -0
- package/dist/stripe/customer-locale.js.map +1 -0
- package/dist/stripe/dashboard-links.d.ts +2 -0
- package/dist/stripe/dashboard-links.js +8 -0
- package/dist/stripe/dashboard-links.js.map +1 -0
- package/dist/stripe/index.d.ts +3 -0
- package/dist/stripe/index.js +3 -0
- package/dist/stripe/index.js.map +1 -1
- package/dist/stripe/pending-update.d.ts +5 -0
- package/dist/stripe/pending-update.js +56 -0
- package/dist/stripe/pending-update.js.map +1 -0
- package/dist/stripe/plan-schedule.js +4 -1
- package/dist/stripe/plan-schedule.js.map +1 -1
- package/dist/stripe/subscription-cancellation.d.ts +3 -0
- package/dist/stripe/subscription-cancellation.js +26 -0
- package/dist/stripe/subscription-cancellation.js.map +1 -0
- package/dist/stripe/sync-plan.js +5 -6
- package/dist/stripe/sync-plan.js.map +1 -1
- package/dist/stripe/upcoming-invoice.d.ts +9 -0
- package/dist/stripe/upcoming-invoice.js +19 -3
- package/dist/stripe/upcoming-invoice.js.map +1 -1
- package/dist/stripe/webhook-checkout.js +2 -0
- package/dist/stripe/webhook-checkout.js.map +1 -1
- package/dist/stripe/webhook-credit-notes.js +15 -0
- package/dist/stripe/webhook-credit-notes.js.map +1 -1
- package/dist/stripe/webhook-dispatch.js +2 -0
- package/dist/stripe/webhook-dispatch.js.map +1 -1
- package/dist/stripe/webhook-handlers.d.ts +1 -0
- package/dist/stripe/webhook-handlers.js +34 -9
- package/dist/stripe/webhook-handlers.js.map +1 -1
- package/dist/stripe/webhook-shared.d.ts +3 -1
- package/dist/stripe/webhook-shared.js +20 -1
- package/dist/stripe/webhook-shared.js.map +1 -1
- package/dist/stripe/workspace-checkout.d.ts +2 -0
- package/dist/stripe/workspace-checkout.js +4 -0
- package/dist/stripe/workspace-checkout.js.map +1 -1
- package/dist/types/config.d.ts +2 -0
- package/dist/types/config.js.map +1 -1
- package/dist/upcoming-invoice/mapping.js +1 -0
- package/dist/upcoming-invoice/mapping.js.map +1 -1
- package/dist/users/index.d.ts +4 -0
- package/dist/users/index.js +21 -0
- package/dist/users/index.js.map +1 -0
- package/dist/users/platform-role.d.ts +18 -0
- package/dist/users/platform-role.js +127 -0
- package/dist/users/platform-role.js.map +1 -0
- package/dist/users/user-detail.d.ts +43 -0
- package/dist/users/user-detail.js +100 -0
- package/dist/users/user-detail.js.map +1 -0
- package/dist/users/user-facts.d.ts +10 -0
- package/dist/users/user-facts.js +157 -0
- package/dist/users/user-facts.js.map +1 -0
- package/dist/users/user-segments.d.ts +10 -0
- package/dist/users/user-segments.js +32 -0
- package/dist/users/user-segments.js.map +1 -0
- package/dist/utils/billing-displays.d.ts +6 -0
- package/dist/utils/billing-displays.js +17 -0
- package/dist/utils/billing-displays.js.map +1 -0
- package/dist/utils/billing-document-status.d.ts +0 -4
- package/dist/utils/billing-document-status.js +1 -13
- package/dist/utils/billing-document-status.js.map +1 -1
- package/dist/utils/billing-document-type.d.ts +6 -0
- package/dist/utils/billing-document-type.js +13 -0
- package/dist/utils/billing-document-type.js.map +1 -1
- package/dist/utils/csv-file.d.ts +2 -0
- package/dist/utils/csv-file.js +23 -0
- package/dist/utils/csv-file.js.map +1 -0
- package/dist/utils/form-insight-type.d.ts +8 -0
- package/dist/utils/form-insight-type.js +34 -0
- package/dist/utils/form-insight-type.js.map +1 -0
- package/dist/utils/index.d.ts +8 -0
- package/dist/utils/index.js +8 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/language.d.ts +1 -0
- package/dist/utils/language.js +7 -0
- package/dist/utils/language.js.map +1 -0
- package/dist/utils/money.d.ts +2 -0
- package/dist/utils/money.js +24 -0
- package/dist/utils/money.js.map +1 -0
- package/dist/utils/segment-evaluator.d.ts +4 -0
- package/dist/utils/segment-evaluator.js +15 -8
- package/dist/utils/segment-evaluator.js.map +1 -1
- package/dist/utils/segment-explain.d.ts +10 -0
- package/dist/utils/segment-explain.js +31 -0
- package/dist/utils/segment-explain.js.map +1 -0
- package/dist/utils/segment-fields.d.ts +13 -2
- package/dist/utils/segment-fields.js +137 -116
- package/dist/utils/segment-fields.js.map +1 -1
- package/dist/utils/segment-matching.d.ts +14 -3
- package/dist/utils/segment-matching.js +47 -13
- package/dist/utils/segment-matching.js.map +1 -1
- package/dist/utils/segment-preview.d.ts +31 -0
- package/dist/utils/segment-preview.js +83 -0
- package/dist/utils/segment-preview.js.map +1 -0
- package/dist/utils/segment-user-projection.d.ts +3 -0
- package/dist/utils/segment-user-projection.js +31 -0
- package/dist/utils/segment-user-projection.js.map +1 -0
- package/dist/utils/segment-validation.d.ts +14 -0
- package/dist/utils/segment-validation.js +98 -0
- package/dist/utils/segment-validation.js.map +1 -0
- package/dist/utils/status-vocabulary.d.ts +57 -0
- package/dist/utils/status-vocabulary.js +92 -0
- package/dist/utils/status-vocabulary.js.map +1 -0
- package/dist/workers/index.d.ts +1 -0
- package/dist/workers/index.js +1 -0
- package/dist/workers/index.js.map +1 -1
- package/dist/workers/plan-migration-resolution.d.ts +14 -0
- package/dist/workers/plan-migration-resolution.js +99 -0
- package/dist/workers/plan-migration-resolution.js.map +1 -0
- package/dist/workers/plan-migration.d.ts +6 -1
- package/dist/workers/plan-migration.js +152 -37
- package/dist/workers/plan-migration.js.map +1 -1
- package/dist/workspaces/billing-identity-lock.d.ts +1 -0
- package/dist/workspaces/billing-identity-lock.js +18 -0
- package/dist/workspaces/billing-identity-lock.js.map +1 -0
- package/dist/workspaces/complimentary-banner.d.ts +11 -0
- package/dist/workspaces/complimentary-banner.js +83 -0
- package/dist/workspaces/complimentary-banner.js.map +1 -0
- package/dist/workspaces/default-member-role.d.ts +2 -0
- package/dist/workspaces/default-member-role.js +43 -0
- package/dist/workspaces/default-member-role.js.map +1 -0
- package/dist/workspaces/deletion-request.d.ts +2 -0
- package/dist/workspaces/deletion-request.js +5 -0
- package/dist/workspaces/deletion-request.js.map +1 -0
- package/dist/workspaces/deletion.d.ts +1 -1
- package/dist/workspaces/deletion.js +19 -7
- package/dist/workspaces/deletion.js.map +1 -1
- package/dist/workspaces/detail-items.d.ts +15 -0
- package/dist/workspaces/detail-items.js +226 -0
- package/dist/workspaces/detail-items.js.map +1 -0
- package/dist/workspaces/first-payment.d.ts +5 -0
- package/dist/workspaces/first-payment.js +28 -0
- package/dist/workspaces/first-payment.js.map +1 -0
- package/dist/workspaces/free-workspaces-per-card.d.ts +6 -0
- package/dist/workspaces/free-workspaces-per-card.js +58 -0
- package/dist/workspaces/free-workspaces-per-card.js.map +1 -0
- package/dist/workspaces/index.d.ts +7 -0
- package/dist/workspaces/index.js +7 -0
- package/dist/workspaces/index.js.map +1 -1
- package/dist/workspaces/invitations.d.ts +2 -1
- package/dist/workspaces/invitations.js +16 -6
- package/dist/workspaces/invitations.js.map +1 -1
- package/dist/workspaces/my-workspaces.d.ts +13 -0
- package/dist/workspaces/my-workspaces.js +68 -0
- package/dist/workspaces/my-workspaces.js.map +1 -0
- package/dist/workspaces/operator-creation.d.ts +39 -0
- package/dist/workspaces/operator-creation.js +123 -0
- package/dist/workspaces/operator-creation.js.map +1 -0
- package/dist/workspaces/operator-view.d.ts +13 -0
- package/dist/workspaces/operator-view.js +37 -0
- package/dist/workspaces/operator-view.js.map +1 -0
- package/dist/workspaces/owner-contact.d.ts +7 -0
- package/dist/workspaces/owner-contact.js +24 -0
- package/dist/workspaces/owner-contact.js.map +1 -0
- package/dist/workspaces/owner-invitation-email.d.ts +12 -0
- package/dist/workspaces/owner-invitation-email.js +53 -0
- package/dist/workspaces/owner-invitation-email.js.map +1 -0
- package/dist/workspaces/provisioning.d.ts +2 -0
- package/dist/workspaces/provisioning.js +37 -15
- package/dist/workspaces/provisioning.js.map +1 -1
- package/dist/workspaces/self-serve-creation.d.ts +38 -0
- package/dist/workspaces/self-serve-creation.js +106 -0
- package/dist/workspaces/self-serve-creation.js.map +1 -0
- package/dist/workspaces/workspace-glance.d.ts +3 -0
- package/dist/workspaces/workspace-glance.js +93 -0
- package/dist/workspaces/workspace-glance.js.map +1 -0
- package/dist/workspaces/workspace-name.d.ts +2 -0
- package/dist/workspaces/workspace-name.js +14 -0
- package/dist/workspaces/workspace-name.js.map +1 -0
- package/dist/workspaces/workspace-overview.d.ts +41 -0
- package/dist/workspaces/workspace-overview.js +84 -0
- package/dist/workspaces/workspace-overview.js.map +1 -0
- package/dist/workspaces/workspace-owner.d.ts +7 -0
- package/dist/workspaces/workspace-owner.js +14 -0
- package/dist/workspaces/workspace-owner.js.map +1 -0
- package/frontend-vue/app/build/PayInvoiceDialog.vue +40 -0
- package/frontend-vue/app/build/PayInvoicePanel.vue +203 -0
- package/frontend-vue/app/build/PlanChangeReview.vue +415 -0
- package/frontend-vue/app/build/PlanFeatureValueInput.vue +143 -0
- package/frontend-vue/app/build/PlanPermissionPicker.vue +246 -0
- package/frontend-vue/app/build/WorkspaceSwitcherRow.vue +116 -0
- package/frontend-vue/app/build/components/CreditNoteInvoiceSummary.vue +82 -0
- package/frontend-vue/app/build/components/FormFieldRow.vue +97 -0
- package/frontend-vue/app/build/components/FormRows.vue +26 -0
- package/frontend-vue/app/build/components/RequiredLegend.vue +7 -0
- package/frontend-vue/app/build/composables/useCreditNoteDraft.ts +142 -0
- package/frontend-vue/app/build/composables/useCreditNoteTexts.ts +123 -0
- package/frontend-vue/app/build/composables/useLiveFormValues.ts +49 -0
- package/frontend-vue/app/build/day-formats.ts +17 -0
- package/frontend-vue/app/build/highlight.ts +28 -0
- package/frontend-vue/app/build/plan-catalog.ts +161 -0
- package/frontend-vue/app/build/plan-change-heading.ts +81 -0
- package/frontend-vue/app/build/plan-permissions.ts +92 -0
- package/frontend-vue/app/build/plan-retire.ts +83 -0
- package/frontend-vue/app/build/public/AccessTimeline.vue +68 -0
- package/frontend-vue/app/build/public/LegalAcceptance.vue +51 -0
- package/frontend-vue/app/build/public/OtherWorkspaces.vue +88 -0
- package/frontend-vue/app/build/public/PricingComparison.vue +227 -0
- package/frontend-vue/app/build/public/PricingFaq.vue +76 -0
- package/frontend-vue/app/build/public/PublicStage.vue +72 -0
- package/frontend-vue/app/build/public/RegistrationCardField.vue +74 -0
- package/frontend-vue/app/build/public/RegistrationPlanCard.vue +122 -0
- package/frontend-vue/app/build/public/access.ts +118 -0
- package/frontend-vue/app/build/public/chosen-plan.ts +36 -0
- package/frontend-vue/app/build/public/legal.ts +99 -0
- package/frontend-vue/app/build/public/pricing.ts +175 -0
- package/frontend-vue/app/build/public/routes.ts +122 -0
- package/frontend-vue/app/build/public/usePublicFetch.ts +44 -0
- package/frontend-vue/app/build/public/usePublicPlanFormat.ts +52 -0
- package/frontend-vue/app/build/segments/tree.ts +137 -0
- package/frontend-vue/app/build/segments/types.ts +119 -0
- package/frontend-vue/app/build/segments/useSegmentCatalog.ts +58 -0
- package/frontend-vue/app/build/segments/useSegmentDraft.ts +33 -0
- package/frontend-vue/app/build/segments/useSegmentPreview.ts +78 -0
- package/frontend-vue/app/build/segments/useSegmentSentence.ts +60 -0
- package/frontend-vue/app/build/segments/useSegmentWords.ts +204 -0
- package/frontend-vue/app/build/useWorkspaceName.ts +14 -0
- package/frontend-vue/app/build/users/useUserDetail.ts +82 -0
- package/frontend-vue/app/build/workspace-detail/ComplimentaryDialog.vue +219 -0
- package/frontend-vue/app/build/workspace-detail/CreditDialog.vue +243 -0
- package/frontend-vue/app/build/workspace-detail/UpgradeDialog.vue +258 -0
- package/frontend-vue/app/build/workspace-detail/WorkspaceActionDialogs.vue +82 -0
- package/frontend-vue/app/build/workspace-detail/planPrice.ts +26 -0
- package/frontend-vue/app/build/workspace-detail/types.ts +138 -0
- package/frontend-vue/app/build/workspace-detail/useWorkspaceActions.ts +177 -0
- package/frontend-vue/app/build/workspace-detail/useWorkspaceOverview.ts +44 -0
- package/frontend-vue/app/build/workspace-paths.ts +8 -0
- package/frontend-vue/app/components/BillingIdentityFields.vue +294 -161
- package/frontend-vue/app/components/CustomerPortalButton.vue +80 -32
- package/frontend-vue/app/components/DataExport.vue +250 -260
- package/frontend-vue/app/components/DataExportHistory.vue +246 -0
- package/frontend-vue/app/components/DunningTimeline.vue +120 -0
- package/frontend-vue/app/components/IssueCreditNoteModal.vue +318 -116
- package/frontend-vue/app/components/LegalDocumentRelease.vue +64 -0
- package/frontend-vue/app/components/LegalLayout.vue +284 -46
- package/frontend-vue/app/components/MigrationStripeCheck.vue +133 -0
- package/frontend-vue/app/components/PastDueAlert.vue +186 -78
- package/frontend-vue/app/components/PastDueBanner.vue +96 -67
- package/frontend-vue/app/components/PayInvoiceModal.vue +57 -0
- package/frontend-vue/app/components/PaymentMethodCard.vue +159 -163
- package/frontend-vue/app/components/PendingCheckoutModal.vue +61 -61
- package/frontend-vue/app/components/PlanAccessEditor.vue +410 -0
- package/frontend-vue/app/components/PlanCard.vue +358 -261
- package/frontend-vue/app/components/PlanCardPublic.vue +123 -51
- package/frontend-vue/app/components/PlanComparisonModal.vue +373 -309
- package/frontend-vue/app/components/PlanEditorPreview.vue +374 -0
- package/frontend-vue/app/components/PlanLimitInput.vue +92 -0
- package/frontend-vue/app/components/PlanTaxSync.vue +118 -0
- package/frontend-vue/app/components/PlanUpgradeModal.vue +265 -156
- package/frontend-vue/app/components/PlatformNotes.vue +215 -255
- package/frontend-vue/app/components/Pricing.vue +236 -0
- package/frontend-vue/app/components/PublicNavBar.vue +70 -0
- package/frontend-vue/app/components/RefundButton.vue +265 -113
- package/frontend-vue/app/components/RefundExample.vue +86 -0
- package/frontend-vue/app/components/Register.vue +217 -121
- package/frontend-vue/app/components/RegistrationClosed.vue +30 -13
- package/frontend-vue/app/components/RetirePlanModal.vue +829 -0
- package/frontend-vue/app/components/SeatQuotaBanner.vue +240 -90
- package/frontend-vue/app/components/SegmentConditionRow.vue +171 -0
- package/frontend-vue/app/components/SegmentConditionsBuilder.vue +89 -162
- package/frontend-vue/app/components/SegmentConditionsGroup.vue +273 -463
- package/frontend-vue/app/components/SegmentLivePreview.vue +301 -0
- package/frontend-vue/app/components/SegmentLogicToggle.vue +24 -0
- package/frontend-vue/app/components/SegmentRulesText.vue +57 -0
- package/frontend-vue/app/components/SegmentValueInput.vue +165 -0
- package/frontend-vue/app/components/SegmentWords.vue +36 -0
- package/frontend-vue/app/components/TenantBillingForm.vue +142 -103
- package/frontend-vue/app/components/TenantPlanCard.vue +635 -280
- package/frontend-vue/app/components/TrialEndingBanner.vue +76 -0
- package/frontend-vue/app/components/UserPlatformRoleCard.vue +102 -0
- package/frontend-vue/app/components/UserSegmentMatches.vue +123 -0
- package/frontend-vue/app/components/UserSummaryCard.vue +107 -158
- package/frontend-vue/app/components/WorkspaceAdminCreateModal.vue +354 -177
- package/frontend-vue/app/components/WorkspaceCreateModal.vue +372 -252
- package/frontend-vue/app/components/WorkspaceDangerZone.vue +178 -126
- package/frontend-vue/app/components/WorkspaceDetailHeader.vue +262 -19
- package/frontend-vue/app/components/WorkspaceInvitationLink.vue +108 -86
- package/frontend-vue/app/components/WorkspaceOperatorActions.vue +105 -330
- package/frontend-vue/app/components/WorkspaceSuspendButton.vue +34 -158
- package/frontend-vue/app/components/WorkspaceSuspended.vue +390 -149
- package/frontend-vue/app/components/WorkspaceSwitcherWidget.vue +145 -161
- package/frontend-vue/app/composables/useBillingIdentity.ts +97 -95
- package/frontend-vue/app/composables/useBillingStatus.ts +56 -24
- package/frontend-vue/app/composables/useCurrentWorkspace.ts +15 -30
- package/frontend-vue/app/composables/useDaysLeft.ts +20 -0
- package/frontend-vue/app/composables/useExportHistory.ts +209 -120
- package/frontend-vue/app/composables/useInvitationLink.ts +39 -53
- package/frontend-vue/app/composables/useMoneyFormat.ts +64 -33
- package/frontend-vue/app/composables/useMyWorkspaces.ts +41 -32
- package/frontend-vue/app/composables/useNextInvoice.ts +20 -0
- package/frontend-vue/app/composables/usePayInvoice.ts +52 -0
- package/frontend-vue/app/composables/usePendingCheckout.ts +71 -67
- package/frontend-vue/app/composables/usePlanCatalog.ts +16 -0
- package/frontend-vue/app/composables/usePlanChangeReview.ts +115 -0
- package/frontend-vue/app/composables/usePlanComparison.ts +17 -8
- package/frontend-vue/app/composables/usePlanDowngrade.ts +25 -23
- package/frontend-vue/app/composables/usePlanFeatureFormat.ts +238 -202
- package/frontend-vue/app/composables/usePlanPriceLabel.ts +28 -0
- package/frontend-vue/app/composables/useSaasRegistration.ts +516 -301
- package/frontend-vue/app/composables/useSaasStatus.ts +81 -0
- package/frontend-vue/app/composables/useSeatQuota.ts +27 -17
- package/frontend-vue/app/composables/useServerConfirm.ts +44 -0
- package/frontend-vue/app/composables/useStripePaymentElement.ts +3 -5
- package/frontend-vue/app/composables/useTenantPlan.ts +235 -99
- package/frontend-vue/app/composables/useUpgradeAuthentication.ts +37 -0
- package/frontend-vue/app/composables/useWorkspaceFinalization.ts +4 -0
- package/frontend-vue/app/composables/useWorkspaceOverview.ts +58 -0
- package/frontend-vue/app/composables/useWorkspaceRenamed.ts +33 -0
- package/frontend-vue/app/custom-pages/auth/no-workspace.vue +391 -312
- package/frontend-vue/app/plugins/auth-links.ts +38 -17
- package/frontend-vue/app/plugins/billing-data-types.ts +111 -58
- package/frontend-vue/app/plugins/footer-links.ts +13 -33
- package/frontend-vue/app/plugins/segment-conditions-data-type.ts +45 -0
- package/frontend-vue/app/plugins/sidebar-widgets.ts +13 -10
- package/frontend-vue/app/types/runtime-config.ts +9 -4
- package/frontend-vue/dms.frontend.build.ts +7 -0
- package/frontend-vue/dms.frontend.ts +6 -13
- package/frontend-vue/i18n/locales/saas-en-GB.json +499 -1380
- package/frontend-vue/i18n/locales/saas-fr-FR.json +499 -1380
- package/frontend-vue/i18n/locales/saas-operator-billing-en-GB.json +282 -0
- package/frontend-vue/i18n/locales/saas-operator-billing-fr-FR.json +282 -0
- package/frontend-vue/i18n/locales/saas-operator-catalog-en-GB.json +597 -0
- package/frontend-vue/i18n/locales/saas-operator-catalog-fr-FR.json +597 -0
- package/frontend-vue/i18n/locales/saas-operator-users-en-GB.json +505 -0
- package/frontend-vue/i18n/locales/saas-operator-users-fr-FR.json +505 -0
- package/frontend-vue/i18n/locales/saas-operator-workspaces-en-GB.json +595 -0
- package/frontend-vue/i18n/locales/saas-operator-workspaces-fr-FR.json +595 -0
- package/frontend-vue/i18n/locales/saas-public-en-GB.json +305 -0
- package/frontend-vue/i18n/locales/saas-public-fr-FR.json +305 -0
- package/frontend-vue/i18n/locales/saas-tenant-billing-en-GB.json +434 -0
- package/frontend-vue/i18n/locales/saas-tenant-billing-fr-FR.json +434 -0
- package/frontend-vue/i18n/locales/saas-tenant-workspace-en-GB.json +252 -0
- package/frontend-vue/i18n/locales/saas-tenant-workspace-fr-FR.json +252 -0
- package/frontend-vue/package.json +1 -1
- package/package.json +10 -10
- package/frontend-vue/app/components/CardGrid.vue +0 -77
- package/frontend-vue/app/components/DeletePlanModal.vue +0 -223
- package/frontend-vue/app/components/FreeAccessBanner.vue +0 -70
- package/frontend-vue/app/components/PlanCardsDisplay.vue +0 -127
- package/frontend-vue/app/components/PlanInheritancePicker.vue +0 -329
- package/frontend-vue/app/components/RecentActivity.vue +0 -72
- package/frontend-vue/app/components/WorkspaceBillingInfo.vue +0 -68
- package/frontend-vue/app/components/WorkspaceCompAccessButton.vue +0 -198
- package/frontend-vue/app/components/WorkspaceIdentity.vue +0 -99
- package/frontend-vue/app/components/WorkspaceJoinButton.vue +0 -50
- package/frontend-vue/app/components/WorkspaceSummaryCard.vue +0 -185
- package/frontend-vue/app/composables/useDetailRefresh.ts +0 -17
- package/frontend-vue/app/composables/usePastDueBannerAction.ts +0 -20
- package/frontend-vue/app/plugins/plan-cards-display.ts +0 -16
- package/frontend-vue/app/plugins/segment-conditions-data-type.client.ts +0 -122
|
@@ -20,12 +20,46 @@ const base_1 = require("@antelopejs/interface-dms/base");
|
|
|
20
20
|
const default_types_1 = require("@antelopejs/interface-dms/base/data-types/default-types");
|
|
21
21
|
const db_1 = require("../../db");
|
|
22
22
|
const utils_1 = require("../../utils");
|
|
23
|
+
const NUMBER_COLUMN_SIZE = 165;
|
|
24
|
+
const PERIOD_COLUMN_SIZE = 130;
|
|
25
|
+
const AMOUNT_COLUMN_SIZE = 120;
|
|
26
|
+
const TAX_COLUMN_SIZE = 80;
|
|
27
|
+
const STATUS_COLUMN_SIZE = 190;
|
|
28
|
+
const DATE_COLUMN_SIZE = 120;
|
|
29
|
+
const TENANT_COLUMN = "$saas.tenant_billing.invoices.column";
|
|
30
|
+
const PAYMENT_STATUS_TYPE = new default_types_1.DefaultDataTypes.SelectType({
|
|
31
|
+
items: [
|
|
32
|
+
...(0, utils_1.statusItems)("invoice"),
|
|
33
|
+
{
|
|
34
|
+
label: (0, utils_1.statusLabelKey)("invoice", utils_1.PAYMENT_FAILED_STATUS),
|
|
35
|
+
value: utils_1.PAYMENT_FAILED_STATUS,
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
});
|
|
39
|
+
function documentRowOf(self) {
|
|
40
|
+
return self.table;
|
|
41
|
+
}
|
|
42
|
+
function paymentStatusRowOf(self) {
|
|
43
|
+
return self.table;
|
|
44
|
+
}
|
|
45
|
+
function invoicePaymentStatus(row) {
|
|
46
|
+
return row.status === "open" && row.attemptCount
|
|
47
|
+
? utils_1.PAYMENT_FAILED_STATUS
|
|
48
|
+
: row.status;
|
|
49
|
+
}
|
|
23
50
|
let tenantInvoicesDataAPI = class tenantInvoicesDataAPI extends (0, interface_data_api_1.DataController)(db_1.Invoice, {
|
|
24
51
|
get: base_1.TableViewRoutes.Get,
|
|
25
52
|
list: base_1.TableViewRoutes.List,
|
|
26
53
|
select: base_1.TableViewRoutes.Select,
|
|
27
54
|
count: base_1.TableViewRoutes.Count,
|
|
55
|
+
countBatch: base_1.TableViewRoutes.CountBatch,
|
|
28
56
|
}, (0, interface_api_1.Controller)("/api/saas/tenant/tables/invoices")) {
|
|
57
|
+
get documentLine() {
|
|
58
|
+
return (0, utils_1.billingDocumentLine)(documentRowOf(this));
|
|
59
|
+
}
|
|
60
|
+
get paymentStatus() {
|
|
61
|
+
return invoicePaymentStatus(paymentStatusRowOf(this));
|
|
62
|
+
}
|
|
29
63
|
};
|
|
30
64
|
exports.tenantInvoicesDataAPI = tenantInvoicesDataAPI;
|
|
31
65
|
__decorate([
|
|
@@ -42,12 +76,14 @@ __decorate([
|
|
|
42
76
|
], tenantInvoicesDataAPI.prototype, "_id", void 0);
|
|
43
77
|
__decorate([
|
|
44
78
|
(0, base_1.Select)(),
|
|
79
|
+
(0, metadata_1.Listable)(),
|
|
45
80
|
(0, metadata_1.Sortable)(),
|
|
46
81
|
(0, base_1.Exported)(),
|
|
47
82
|
(0, base_1.Column)({
|
|
48
83
|
name: "$saas.invoices.column.type",
|
|
49
84
|
type: new utils_1.BillingDocumentType(),
|
|
50
85
|
filterable: true,
|
|
86
|
+
isVisible: false,
|
|
51
87
|
}),
|
|
52
88
|
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
53
89
|
__metadata("design:type", String)
|
|
@@ -61,11 +97,19 @@ __decorate([
|
|
|
61
97
|
(0, base_1.Column)({
|
|
62
98
|
name: "$saas.invoices.column.number",
|
|
63
99
|
type: new default_types_1.DefaultDataTypes.StringType(),
|
|
100
|
+
display: new base_1.DefaultDisplays.TwoLineDisplay({ subField: "documentLine" }),
|
|
64
101
|
filterable: true,
|
|
102
|
+
size: NUMBER_COLUMN_SIZE,
|
|
65
103
|
}),
|
|
66
104
|
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
67
105
|
__metadata("design:type", Object)
|
|
68
106
|
], tenantInvoicesDataAPI.prototype, "number", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, metadata_1.Listable)(["documentType", "parentInvoiceNumber"]),
|
|
109
|
+
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
110
|
+
__metadata("design:type", Object),
|
|
111
|
+
__metadata("design:paramtypes", [])
|
|
112
|
+
], tenantInvoicesDataAPI.prototype, "documentLine", null);
|
|
69
113
|
__decorate([
|
|
70
114
|
(0, base_1.Select)(),
|
|
71
115
|
(0, base_1.Column)({
|
|
@@ -84,6 +128,7 @@ __decorate([
|
|
|
84
128
|
(0, base_1.Column)({
|
|
85
129
|
name: "$saas.invoices.column.period",
|
|
86
130
|
type: new utils_1.BillingPeriodType(),
|
|
131
|
+
size: PERIOD_COLUMN_SIZE,
|
|
87
132
|
}),
|
|
88
133
|
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
89
134
|
__metadata("design:type", Object)
|
|
@@ -100,18 +145,21 @@ __decorate([
|
|
|
100
145
|
(0, metadata_1.Sortable)(),
|
|
101
146
|
(0, base_1.Exported)(),
|
|
102
147
|
(0, base_1.Column)({
|
|
103
|
-
name:
|
|
148
|
+
name: `${TENANT_COLUMN}.excl_vat`,
|
|
104
149
|
type: new utils_1.MoneyCentsType(),
|
|
150
|
+
size: AMOUNT_COLUMN_SIZE,
|
|
105
151
|
}),
|
|
106
152
|
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
107
153
|
__metadata("design:type", Number)
|
|
108
154
|
], tenantInvoicesDataAPI.prototype, "subtotal", void 0);
|
|
109
155
|
__decorate([
|
|
110
156
|
(0, base_1.Select)(),
|
|
157
|
+
(0, metadata_1.Listable)(),
|
|
111
158
|
(0, base_1.Exported)(),
|
|
112
159
|
(0, base_1.Column)({
|
|
113
|
-
name:
|
|
160
|
+
name: `${TENANT_COLUMN}.vat`,
|
|
114
161
|
type: new utils_1.MoneyCentsType(),
|
|
162
|
+
size: TAX_COLUMN_SIZE,
|
|
115
163
|
}),
|
|
116
164
|
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
117
165
|
__metadata("design:type", Number)
|
|
@@ -122,8 +170,9 @@ __decorate([
|
|
|
122
170
|
(0, metadata_1.Sortable)(),
|
|
123
171
|
(0, base_1.Exported)(),
|
|
124
172
|
(0, base_1.Column)({
|
|
125
|
-
name:
|
|
173
|
+
name: `${TENANT_COLUMN}.total`,
|
|
126
174
|
type: new utils_1.MoneyCentsType(),
|
|
175
|
+
size: AMOUNT_COLUMN_SIZE,
|
|
127
176
|
}),
|
|
128
177
|
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
129
178
|
__metadata("design:type", Number)
|
|
@@ -151,12 +200,26 @@ __decorate([
|
|
|
151
200
|
(0, base_1.Exported)(),
|
|
152
201
|
(0, base_1.Column)({
|
|
153
202
|
name: "$saas.invoices.column.status",
|
|
154
|
-
type: (0, utils_1.
|
|
203
|
+
type: (0, utils_1.statusType)("invoice"),
|
|
204
|
+
display: (0, utils_1.statusPillDisplay)("invoice"),
|
|
155
205
|
filterable: true,
|
|
206
|
+
isVisible: false,
|
|
156
207
|
}),
|
|
157
208
|
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
158
209
|
__metadata("design:type", String)
|
|
159
210
|
], tenantInvoicesDataAPI.prototype, "status", void 0);
|
|
211
|
+
__decorate([
|
|
212
|
+
(0, metadata_1.Listable)(["status", "attemptCount"]),
|
|
213
|
+
(0, base_1.Column)({
|
|
214
|
+
name: "$saas.invoices.column.status",
|
|
215
|
+
type: PAYMENT_STATUS_TYPE,
|
|
216
|
+
display: (0, utils_1.statusPillDisplay)("invoice"),
|
|
217
|
+
size: STATUS_COLUMN_SIZE,
|
|
218
|
+
}),
|
|
219
|
+
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
220
|
+
__metadata("design:type", String),
|
|
221
|
+
__metadata("design:paramtypes", [])
|
|
222
|
+
], tenantInvoicesDataAPI.prototype, "paymentStatus", null);
|
|
160
223
|
__decorate([
|
|
161
224
|
(0, base_1.Select)(),
|
|
162
225
|
(0, base_1.Column)({
|
|
@@ -195,6 +258,7 @@ __decorate([
|
|
|
195
258
|
(0, base_1.Column)({
|
|
196
259
|
name: "$saas.invoices.column.issued_at",
|
|
197
260
|
type: new default_types_1.DefaultDataTypes.DateType(),
|
|
261
|
+
size: DATE_COLUMN_SIZE,
|
|
198
262
|
}),
|
|
199
263
|
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
200
264
|
__metadata("design:type", Date)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenant-invoices.js","sourceRoot":"","sources":["../../../src/data-api/tenant/tenant-invoices.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAAuD;AACvD,uEAGwC;AACxC,sEAMiD;AACjD,6FAAkE;AAClE,6EAA8E;AAC9E,yDAA0D;AAC1D,
|
|
1
|
+
{"version":3,"file":"tenant-invoices.js","sourceRoot":"","sources":["../../../src/data-api/tenant/tenant-invoices.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAAuD;AACvD,uEAGwC;AACxC,sEAMiD;AACjD,6FAAkE;AAClE,6EAA8E;AAC9E,yDAA0D;AAC1D,yDAQwC;AACxC,2FAA2F;AAE3F,iCAAiD;AACjD,uCAWqB;AAWrB,MAAM,kBAAkB,GAAG,GAAG,CAAC;AAC/B,MAAM,kBAAkB,GAAG,GAAG,CAAC;AAC/B,MAAM,kBAAkB,GAAG,GAAG,CAAC;AAC/B,MAAM,eAAe,GAAG,EAAE,CAAC;AAC3B,MAAM,kBAAkB,GAAG,GAAG,CAAC;AAC/B,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAC7B,MAAM,aAAa,GAAG,sCAAsC,CAAC;AAE7D,MAAM,mBAAmB,GAAG,IAAI,gCAAgB,CAAC,UAAU,CAAC;IAC1D,KAAK,EAAE;QACL,GAAG,IAAA,mBAAW,EAAC,SAAS,CAAC;QACzB;YACE,KAAK,EAAE,IAAA,sBAAc,EAAC,SAAS,EAAE,6B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CAAC;;4DACS;gCA1N1B,qBAAqB;IAFjC,IAAA,2CAAsB,GAAE;IACxB,IAAA,eAAQ,GAAE;GACE,qBAAqB,CA2NjC"}
|
package/dist/hooks/register.js
CHANGED
|
@@ -13,6 +13,7 @@ const routes_1 = require("../routes");
|
|
|
13
13
|
const workers_1 = require("../workers");
|
|
14
14
|
const default_plan_1 = require("../workspaces/default-plan");
|
|
15
15
|
const tenant_export_1 = require("./tenant-export");
|
|
16
|
+
const billing_settings_store_1 = require("../operator-billing/billing-settings-store");
|
|
16
17
|
function throwDatabaseInitializationFailures(results) {
|
|
17
18
|
const failures = results.flatMap((result) => result.status === "rejected" ? [result.reason] : []);
|
|
18
19
|
if (failures.length === 0)
|
|
@@ -50,7 +51,10 @@ function registerSaasHookListeners() {
|
|
|
50
51
|
return undefined;
|
|
51
52
|
});
|
|
52
53
|
(0, hooks_1.RegisterHook)(hooks_1.Hook.DATABASE_INITIALIZED, async () => {
|
|
53
|
-
await
|
|
54
|
+
await Promise.all([
|
|
55
|
+
(0, routes_1.ensureLegalDocumentsSingleton)(),
|
|
56
|
+
(0, billing_settings_store_1.ensureBillingSettingsRow)(),
|
|
57
|
+
]);
|
|
54
58
|
const results = await Promise.allSettled([
|
|
55
59
|
(0, workers_1.resumePendingPlanMigrations)(),
|
|
56
60
|
(0, default_plan_1.backfillDefaultSubscriptions)().then(billing_state_1.recomputeAllTenantBillingStates),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register.js","sourceRoot":"","sources":["../../src/hooks/register.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"register.js","sourceRoot":"","sources":["../../src/hooks/register.ts"],"names":[],"mappings":";;AAqDA,8DAmCC;AAxFD,6FAAqE;AACrE,2DAKyC;AACzC,8CAA4E;AAC5E,oDAAmE;AACnE,8BAAgD;AAChD,0DAA4E;AAC5E,4CAAiD;AACjD,sDAA+D;AAC/D,sCAA0D;AAC1D,wCAAyD;AACzD,6DAA0E;AAC1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AAE;QAC1D,MAAM,IAAA,wCAAQ,EAAC,4BAAuB,CAAC,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;QAClE,MAAM,iBAAiB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAC3C,OAAO,SAAS,CAAC;IACnB,CAAC,CACF,CAAC;IAKF,IAAA,oBAAY,EAAC,YAAI,CAAC,oBAAoB,EAAE,GAAG,EAAE;QAC3C,IAAA,qCAAuB,GAAE,CAAC;QAC1B,OAAO,SAAS,CAAC;IACnB,CAAC,CAAC,CAAC;IACH,IAAA,oBAAY,EAAC,YAAI,CAAC,oBAAoB,EAAE,KAAK,IAAI,EAAE;QACjD,MAAM,OAAO,CAAC,GAAG,CAAC;YAChB,IAAA,sCAA6B,GAAE;YAC/B,IAAA,iDAAwB,GAAE;SAC3B,CAAC,CAAC;QACH,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC;YACvC,IAAA,qCAA2B,GAAE;YAG7B,IAAA,2CAA4B,GAAE,CAAC,IAAI,CAAC,+CAA+B,CAAC;YACpE,IAAA,wDAAqC,GAAE;SACxC,CAAC,CAAC;QACH,mCAAmC,CAAC,OAAO,CAAC,CAAC;QAC7C,OAAO,SAAS,CAAC;IACnB,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { CellTone, ComposedText, ComposedTextDateFormat, ComposedTextDateParam, ComposedTextMoneyParam, ComposedTextParam, ComposedTextRelativeDateParam, Tone } from "@antelopejs/interface-dms/base";
|
|
2
|
+
export declare function composed(key: string, params?: Record<string, ComposedTextParam>): ComposedText;
|
|
3
|
+
export declare function moneyParam(valueMinor: number, currency: string): ComposedTextMoneyParam;
|
|
4
|
+
export declare function dateParam(date: Date | string, format?: ComposedTextDateFormat): ComposedTextDateParam;
|
|
5
|
+
export declare function listDateFormat(date: Date, now: Date): ComposedTextDateFormat;
|
|
6
|
+
export declare function relativeParam(date: Date | string): ComposedTextRelativeDateParam;
|
|
7
|
+
export declare function countParam(value: number): {
|
|
8
|
+
readonly type: "count";
|
|
9
|
+
readonly value: number;
|
|
10
|
+
};
|
|
11
|
+
export declare function valueText(value: ComposedTextParam): ComposedText;
|
|
12
|
+
type TextList = (parts: readonly ComposedTextParam[]) => ComposedText | null;
|
|
13
|
+
export declare const dotList: TextList;
|
|
14
|
+
export declare const commaList: TextList;
|
|
15
|
+
export declare const sumList: TextList;
|
|
16
|
+
export declare function cellToneOf(tone: Tone): CellTone;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sumList = exports.commaList = exports.dotList = void 0;
|
|
4
|
+
exports.composed = composed;
|
|
5
|
+
exports.moneyParam = moneyParam;
|
|
6
|
+
exports.dateParam = dateParam;
|
|
7
|
+
exports.listDateFormat = listDateFormat;
|
|
8
|
+
exports.relativeParam = relativeParam;
|
|
9
|
+
exports.countParam = countParam;
|
|
10
|
+
exports.valueText = valueText;
|
|
11
|
+
exports.cellToneOf = cellToneOf;
|
|
12
|
+
const DOT_LIST_KEY = "saas.text.dot_list";
|
|
13
|
+
const COMMA_LIST_KEY = "saas.text.comma_list";
|
|
14
|
+
const SUM_LIST_KEY = "saas.text.sum_list";
|
|
15
|
+
const VALUE_KEY = "saas.text.value";
|
|
16
|
+
function composed(key, params) {
|
|
17
|
+
return params ? { key, params } : { key };
|
|
18
|
+
}
|
|
19
|
+
function moneyParam(valueMinor, currency) {
|
|
20
|
+
return { type: "money", value: valueMinor, currency: currency.toUpperCase() };
|
|
21
|
+
}
|
|
22
|
+
function dateParam(date, format = "medium") {
|
|
23
|
+
return { type: "date", value: new Date(date).toISOString(), format };
|
|
24
|
+
}
|
|
25
|
+
function listDateFormat(date, now) {
|
|
26
|
+
return date.getUTCFullYear() === now.getUTCFullYear() ? "day" : "medium";
|
|
27
|
+
}
|
|
28
|
+
function relativeParam(date) {
|
|
29
|
+
return { type: "relative", value: new Date(date).toISOString() };
|
|
30
|
+
}
|
|
31
|
+
function countParam(value) {
|
|
32
|
+
return { type: "count", value };
|
|
33
|
+
}
|
|
34
|
+
function valueText(value) {
|
|
35
|
+
return composed(VALUE_KEY, { value });
|
|
36
|
+
}
|
|
37
|
+
function joinWith(key, parts) {
|
|
38
|
+
const [first, ...rest] = parts;
|
|
39
|
+
if (first === undefined)
|
|
40
|
+
return null;
|
|
41
|
+
const tail = joinWith(key, rest);
|
|
42
|
+
return tail === null ? first : composed(key, { first, rest: tail });
|
|
43
|
+
}
|
|
44
|
+
function listJoinedBy(key) {
|
|
45
|
+
return (parts) => {
|
|
46
|
+
const joined = joinWith(key, parts);
|
|
47
|
+
return joined === null ? null : asText(joined);
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.dotList = listJoinedBy(DOT_LIST_KEY);
|
|
51
|
+
exports.commaList = listJoinedBy(COMMA_LIST_KEY);
|
|
52
|
+
exports.sumList = listJoinedBy(SUM_LIST_KEY);
|
|
53
|
+
function isComposedText(value) {
|
|
54
|
+
return typeof value === "object" && "key" in value;
|
|
55
|
+
}
|
|
56
|
+
function asText(value) {
|
|
57
|
+
return isComposedText(value) ? value : valueText(value);
|
|
58
|
+
}
|
|
59
|
+
const CELL_TONES = {
|
|
60
|
+
neutral: "muted",
|
|
61
|
+
primary: "primary",
|
|
62
|
+
secondary: "muted",
|
|
63
|
+
success: "success",
|
|
64
|
+
warning: "warning",
|
|
65
|
+
error: "error",
|
|
66
|
+
info: "info",
|
|
67
|
+
};
|
|
68
|
+
function cellToneOf(tone) {
|
|
69
|
+
return CELL_TONES[tone];
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=composed-text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composed-text.js","sourceRoot":"","sources":["../../src/i18n/composed-text.ts"],"names":[],"mappings":";;;AA2BA,4BAKC;AAGD,gCAKC;AAGD,8BAKC;A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AO,EAAE,SAAS;IAClB,SAAS,EAAE,OAAO;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;CACb,CAAC;AAGF,SAAgB,UAAU,CAAC,IAAU;IACnC,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { TenantCustomerBalance, TenantCustomerBalanceScope, UpcomingInvoicePreview, UpcomingInvoicePreviewScope } from "@antelopejs/interface-dms-saas/billing";
|
|
2
2
|
export declare function GetTenantCustomerBalance(scope: TenantCustomerBalanceScope): Promise<TenantCustomerBalance>;
|
|
3
3
|
export declare function GetUpcomingInvoicePreview(scope: UpcomingInvoicePreviewScope): Promise<UpcomingInvoicePreview>;
|
|
4
|
+
export { recomputeTenantBillingState as RecomputeTenantBillingState } from "../../billing-state";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RecomputeTenantBillingState = void 0;
|
|
3
4
|
exports.GetTenantCustomerBalance = GetTenantCustomerBalance;
|
|
4
5
|
exports.GetUpcomingInvoicePreview = GetUpcomingInvoicePreview;
|
|
5
6
|
const interface_api_1 = require("@antelopejs/interface-api");
|
|
@@ -14,7 +15,7 @@ const preview_1 = require("../../upcoming-invoice/preview");
|
|
|
14
15
|
const billing_1 = require("@antelopejs/interface-dms-saas/billing");
|
|
15
16
|
const HTTP_FORBIDDEN = 403;
|
|
16
17
|
const HTTP_BAD_GATEWAY = 502;
|
|
17
|
-
const TENANT_MEMBER_REQUIRED = "
|
|
18
|
+
const TENANT_MEMBER_REQUIRED = "error.tenant_member_required";
|
|
18
19
|
const PROVIDER_UNAVAILABLE = "saas.errors.billing.customer_balance_provider_unavailable";
|
|
19
20
|
async function assertAuthorizedTenant(scope) {
|
|
20
21
|
const membership = await (0, interface_database_decorators_1.GetModel)(db_1.TenantMemberModel, scope.tenantId).getByUser(scope.userId);
|
|
@@ -52,4 +53,6 @@ async function GetUpcomingInvoicePreview(scope) {
|
|
|
52
53
|
await assertAuthorizedTenant(scope);
|
|
53
54
|
return (0, preview_1.getUpcomingInvoicePreview)(scope.tenantId);
|
|
54
55
|
}
|
|
56
|
+
var billing_state_1 = require("../../billing-state");
|
|
57
|
+
Object.defineProperty(exports, "RecomputeTenantBillingState", { enumerable: true, get: function () { return billing_state_1.recomputeTenantBillingState; } });
|
|
55
58
|
//# sourceMappingURL=billing.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billing.js","sourceRoot":"","sources":["../../../src/implementations/dms-saas/billing.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"billing.js","sourceRoot":"","sources":["../../../src/implementations/dms-saas/billing.ts"],"names":[],"mappings":";;;AA0CA,4DA4BC;AAGD,8DAKC;AA9ED,6DAAuD;AACvD,uEAAwD;AACxD,gEAA6D;AAC7D,6FAAqE;AACrE,qDAAiE;AACjE,2EAA6E;AAQ7E,iCAAmD;AACnD,oEAA8E;AAC9E,4DAA2E;AAC3E,oEAAqF;AAErF,MAAM,cAAc,GAAG,GAAG,CAAC;AAC3B,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAC7B,MAAM,sBAAsB,GAAG,8BAA8B,CAAC;AAC9D,MAAM,oBAAoB,GACxB,2DAA2D,CAAC;AAE9D,KAAK,UAAU,sBAAsB,CACnC,KAAiC;IAEjC,MAAM,UAAU,GAAG,MAAM,IAAA,wCAAQ,EAC/B,sBAAiB,EACjB,KAAK,CAAC,QAAQ,CACf,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B,IAAA,2BAAM,EAAC,UAAU,EAAE,cAAc,EAAE,sBAAsB,CAAC,CAAC;IAC3D,MAAM,IAAA,kCAAkB,EAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,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BAAsB,CAAC,KAAK,CAAC,CAAC;IACpC,OAAO,IAAA,mCAAyB,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;AACnD,CAAC;AAGD,qDAAiG;AAAxF,4HAAA,2BAA2B,OAA+B"}
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetPlatformSaasModule = GetPlatformSaasModule;
|
|
4
|
-
exports.GetWorkspaceSettingsCategory = GetWorkspaceSettingsCategory;
|
|
5
4
|
const module_1 = require("../../pages/module");
|
|
6
5
|
function GetPlatformSaasModule() {
|
|
7
6
|
return module_1.saasModule;
|
|
8
7
|
}
|
|
9
|
-
function GetWorkspaceSettingsCategory() {
|
|
10
|
-
return module_1.workspaceSettingsCategory;
|
|
11
|
-
}
|
|
12
8
|
//# sourceMappingURL=pages.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pages.js","sourceRoot":"","sources":["../../../src/implementations/dms-saas/pages.ts"],"names":[],"mappings":";;AAGA,sDAEC;
|
|
1
|
+
{"version":3,"file":"pages.js","sourceRoot":"","sources":["../../../src/implementations/dms-saas/pages.ts"],"names":[],"mappings":";;AAGA,sDAEC;AAJD,+CAAgD;AAEhD,SAAgB,qBAAqB;IACnC,OAAO,mBAAU,CAAC;AACpB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -51,6 +51,7 @@ const workspaceLifecycleInterface = __importStar(require("@antelopejs/interface-
|
|
|
51
51
|
const auth_1 = require("./auth");
|
|
52
52
|
const automation_1 = require("./automation");
|
|
53
53
|
const billing_state_1 = require("./billing-state");
|
|
54
|
+
const directory_hooks_1 = require("./billing-state/directory-hooks");
|
|
54
55
|
const config_1 = require("./config");
|
|
55
56
|
const crons_1 = require("./crons");
|
|
56
57
|
const hooks_1 = require("./hooks");
|
|
@@ -73,9 +74,11 @@ async function construct(config) {
|
|
|
73
74
|
(0, stripe_1.initStripeClient)(config.stripe);
|
|
74
75
|
(0, hooks_1.registerSaasHookListeners)();
|
|
75
76
|
(0, auth_1.registerPlanPermissionsResolver)();
|
|
77
|
+
(0, auth_1.registerOwnerOnlyPermissionsResolver)();
|
|
76
78
|
(0, auth_1.registerSubscriptionAccessGate)();
|
|
77
79
|
(0, plans_1.registerSeatHooks)();
|
|
78
|
-
(0,
|
|
80
|
+
(0, directory_hooks_1.registerWorkspaceDirectoryHooks)();
|
|
81
|
+
(0, billing_state_1.registerBillingLayoutBanners)();
|
|
79
82
|
(0, interface_core_1.ImplementInterface)(billingInterface, billingImplementation);
|
|
80
83
|
(0, interface_core_1.ImplementInterface)(invoiceLineItemsInterface, invoiceLineItemsImplementation);
|
|
81
84
|
(0, interface_core_1.ImplementInterface)(pagesInterface, pagesImplementation);
|
|
@@ -92,6 +95,7 @@ async function construct(config) {
|
|
|
92
95
|
stripePublishableKey: config.stripe.publishableKey,
|
|
93
96
|
admissionMode: config.admissionMode ?? "open",
|
|
94
97
|
registrationPaymentMethod: (0, config_1.getRegistrationPaymentMethodPolicy)(),
|
|
98
|
+
publicScreens: (0, pages_1.resolvePublicScreensToRegister)(config),
|
|
95
99
|
},
|
|
96
100
|
},
|
|
97
101
|
});
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CA,8BA4CC;AAED,sBAGC;AAED,oBAWC;AA1GD,0DAA6B;AAC7B,+DAAgE;AAChE,gEAA6D;AAC7D,yDAAmE;AACnE,yEAA6E;AAC7E,yFAA2E;AAC3E,6GAA+F;AAC/F,qFAAuE;AACvE,gHAAkG;AAElG,iCAIgB;AAChB,6CAG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AAE,CAAC;QAMX,sBAAsB,EAAE,CAAC,6BAA6B,CAAC;QACvD,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,oBAAoB,EAAE,MAAM,CAAC,MAAM,CAAC,cAAc;gBAClD,aAAa,EAAE,MAAM,CAAC,aAAa,IAAI,MAAM;gBAC7C,yBAAyB,EAAE,IAAA,2CAAkC,GAAE;gBAE/D,aAAa,EAAE,IAAA,sCAA8B,EAAC,MAAM,CAAC;aACtD;SACF;KACF,CAAC,CAAC;AACL,CAAC;AAEM,KAAK,UAAU,KAAK;IACzB,mBAAmB,GAAG,IAAA,yBAAiB,GAAE,CAAC;IAC1C,IAAA,oCAAuB,GAAE,CAAC;AAC5B,CAAC;AAEM,KAAK,UAAU,IAAI;IACxB,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,UAAU,CACxC,mBAAmB,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CACxD,CAAC;IACF,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE,CAAC;QACjC,IAAI,QAAQ,CAAC,MAAM,KAAK,UAAU,EAAE,CAAC;YACnC,iBAAO,CAAC,KAAK,CAAC,4BAA4B,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;QAC/D,CAAC;IACH,CAAC;IACD,mBAAmB,GAAG,EAAE,CAAC;IACzB,IAAA,sCAAyB,GAAE,CAAC;AAC9B,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.loadActivitySources = loadActivitySources;
|
|
4
|
+
const interface_database_1 = require("@antelopejs/interface-database");
|
|
5
|
+
const interface_database_decorators_1 = require("@antelopejs/interface-database-decorators");
|
|
6
|
+
const db_1 = require("@antelopejs/interface-dms/db");
|
|
7
|
+
const db_2 = require("../db");
|
|
8
|
+
const operator_action_model_1 = require("../operator-actions/db/operator-action.model");
|
|
9
|
+
const row_instance_1 = require("../utils/row-instance");
|
|
10
|
+
const SOURCE_OVERFETCH = 4;
|
|
11
|
+
const SUCCEEDED_STATUS = "succeeded";
|
|
12
|
+
async function workspaceNames(tenantIds) {
|
|
13
|
+
const unique = [...new Set(tenantIds)];
|
|
14
|
+
if (unique.length === 0)
|
|
15
|
+
return new Map();
|
|
16
|
+
const tenants = await (0, interface_database_decorators_1.GetModel)(db_1.TenantModel).getMany(unique);
|
|
17
|
+
return new Map(tenants.map((tenant) => [tenant._id, tenant.name]));
|
|
18
|
+
}
|
|
19
|
+
async function platformSources(limit) {
|
|
20
|
+
const depth = limit * SOURCE_OVERFETCH;
|
|
21
|
+
const [documents, actions, workspaces] = await Promise.all([
|
|
22
|
+
(0, interface_database_decorators_1.GetModel)(db_2.InvoiceModel, interface_database_1.CROSS_INSTANCE)
|
|
23
|
+
.table.orderBy("issuedAt", "desc")
|
|
24
|
+
.slice(0, depth)
|
|
25
|
+
.run(),
|
|
26
|
+
(0, interface_database_decorators_1.GetModel)(operator_action_model_1.OperatorActionModel)
|
|
27
|
+
.table.orderBy("createdAt", "desc")
|
|
28
|
+
.filter((row) => row.key("status").eq(SUCCEEDED_STATUS))
|
|
29
|
+
.slice(0, depth)
|
|
30
|
+
.run(),
|
|
31
|
+
(0, interface_database_decorators_1.GetModel)(db_1.TenantModel)
|
|
32
|
+
.table.orderBy("createdAt", "desc")
|
|
33
|
+
.slice(0, depth)
|
|
34
|
+
.pluck("_id", "name", "createdAt")
|
|
35
|
+
.run(),
|
|
36
|
+
]);
|
|
37
|
+
const names = await workspaceNames([
|
|
38
|
+
...documents.map((document) => (0, row_instance_1.getRowInstance)(document)),
|
|
39
|
+
...actions.map((action) => action.tenantId),
|
|
40
|
+
]);
|
|
41
|
+
return { documents, actions, workspaces, names };
|
|
42
|
+
}
|
|
43
|
+
async function workspaceSources(tenantId) {
|
|
44
|
+
const [documents, actions, tenant] = await Promise.all([
|
|
45
|
+
(0, interface_database_decorators_1.GetModel)(db_2.InvoiceModel, tenantId).getAllInvoices(),
|
|
46
|
+
(0, interface_database_decorators_1.GetModel)(operator_action_model_1.OperatorActionModel)
|
|
47
|
+
.table.getAll(tenantId, "tenantId")
|
|
48
|
+
.run(),
|
|
49
|
+
(0, interface_database_decorators_1.GetModel)(db_1.TenantModel).get(tenantId),
|
|
50
|
+
]);
|
|
51
|
+
const workspaces = tenant
|
|
52
|
+
? [{ _id: tenant._id, name: tenant.name, createdAt: tenant.createdAt }]
|
|
53
|
+
: [];
|
|
54
|
+
const names = new Map(tenant ? [[tenant._id, tenant.name]] : []);
|
|
55
|
+
return { documents, actions, workspaces, names };
|
|
56
|
+
}
|
|
57
|
+
async function loadActivitySources(tenantId, limit) {
|
|
58
|
+
return tenantId ? workspaceSources(tenantId) : platformSources(limit);
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=activity-sources.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity-sources.js","sourceRoot":"","sources":["../../src/metrics/activity-sources.ts"],"names":[],"mappings":";;AAiEA,kDAKC;AAtED,uEAAgE;AAChE,6FAAqE;AACrE,qDAA2D;AAC3D,8BAAmD;AACnD,wFAAmF;AAEnF,wDAAuD;AAKvD,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAC3B,MAAM,gBAAgB,GAAG,WAAW,CAAC;AAGrC,KAAK,UAAU,cAAc,CAC3B,SAAmB;IAEnB,MAAM,MAAM,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC;IACvC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,GAAG,EAAE,CAAC;IAC1C,MAAM,OAAO,GAAG,MAAM,IAAA,wCAAQ,EAAC,gBAAW,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAC5D,OAAO,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,C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,UAAU,EAAE,KAAK,EAAE,CAAC;AACnD,CAAC;AAED,KAAK,UAAU,gBAAgB,CAAC,QAAgB;IAC9C,MAAM,CAAC,SAAS,EAAE,OAAO,EAAE,MAAM,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACrD,IAAA,wCAAQ,EAAC,iBAAY,EAAE,QAAQ,CAAC,CAAC,cAAc,EAAE;QACjD,IAAA,wCAAQ,EAAC,2CAAmB,CAAC;aAC1B,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,UAAU,CAAC;aAClC,GAAG,EAA+B;QACrC,IAAA,wCAAQ,EAAC,gBAAW,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC;KACpC,CAAC,CAAC;IACH,MAAM,UAAU,GAAwB,MAAM;QAC5C,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,SAAS,EAAE,CAAC;QACvE,CAAC,CAAC,EAAE,CAAC;IACP,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IACjE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;AACnD,CAAC;AAGM,KAAK,UAAU,mBAAmB,CACvC,QAAuB,EACvB,KAAa;IAEb,OAAO,QAAQ,CAAC,CAAC,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;AACxE,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ActivityFeedItem } from "@antelopejs/interface-dms/base";
|
|
2
|
+
import type { Invoice } from "../db";
|
|
3
|
+
import type { OperatorAction } from "../operator-actions/db/operator-action.table";
|
|
4
|
+
export declare const ACTIVITY_KINDS: readonly ["all", "billing", "lifecycle"];
|
|
5
|
+
export type ActivityKind = (typeof ACTIVITY_KINDS)[number];
|
|
6
|
+
export interface ActivityWorkspace {
|
|
7
|
+
_id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
createdAt: Date;
|
|
10
|
+
}
|
|
11
|
+
export interface ActivitySources {
|
|
12
|
+
documents: Invoice[];
|
|
13
|
+
actions: OperatorAction[];
|
|
14
|
+
workspaces: ActivityWorkspace[];
|
|
15
|
+
names: ReadonlyMap<string, string>;
|
|
16
|
+
}
|
|
17
|
+
export interface ActivityOptions {
|
|
18
|
+
kind: ActivityKind;
|
|
19
|
+
limit: number;
|
|
20
|
+
linkOf?: (tenantId: string) => string;
|
|
21
|
+
now?: Date;
|
|
22
|
+
}
|
|
23
|
+
export declare function buildActivityFeed(sources: ActivitySources, options: ActivityOptions): ActivityFeedItem[];
|
|
24
|
+
export declare function isFlatFeed(value: unknown): boolean;
|
|
25
|
+
export declare function parseActivityKind(value: unknown): ActivityKind;
|