@antelopejs/dms-saas 0.4.0 → 0.5.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/README.md +37 -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 +83 -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 +172 -55
- 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 +104 -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 +71 -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 +264 -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 +304 -0
- package/frontend-vue/i18n/locales/saas-public-fr-FR.json +304 -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
|
@@ -21,7 +21,11 @@ const base_1 = require("@antelopejs/interface-dms/base");
|
|
|
21
21
|
const default_types_1 = require("@antelopejs/interface-dms/base/data-types/default-types");
|
|
22
22
|
const status_type_1 = require("@antelopejs/interface-dms/base/data-types/status-type");
|
|
23
23
|
const invitations_1 = require("../../workspaces/invitations");
|
|
24
|
+
const time_1 = require("../../utils/time");
|
|
24
25
|
const hidden_filter_1 = require("./hidden-filter");
|
|
26
|
+
const COLUMN = "$saas.workspace_detail.invitations.column";
|
|
27
|
+
const ROLE = "$saas.workspace_detail.members.role";
|
|
28
|
+
const EXPIRING_SOON_DAYS = 2;
|
|
25
29
|
function inviteRowOf(self) {
|
|
26
30
|
return self.table;
|
|
27
31
|
}
|
|
@@ -59,9 +63,10 @@ __decorate([
|
|
|
59
63
|
(0, base_1.Exported)(),
|
|
60
64
|
(0, metadata_1.Sortable)(),
|
|
61
65
|
(0, base_1.Column)({
|
|
62
|
-
name:
|
|
66
|
+
name: `${COLUMN}.email`,
|
|
63
67
|
type: new default_types_1.DefaultDataTypes.EmailType(),
|
|
64
68
|
filterable: true,
|
|
69
|
+
size: 240,
|
|
65
70
|
}),
|
|
66
71
|
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
67
72
|
__metadata("design:type", String)
|
|
@@ -70,8 +75,16 @@ __decorate([
|
|
|
70
75
|
(0, metadata_1.Listable)(),
|
|
71
76
|
(0, base_1.Exported)(),
|
|
72
77
|
(0, base_1.Column)({
|
|
73
|
-
name:
|
|
78
|
+
name: `${COLUMN}.role`,
|
|
74
79
|
type: new default_types_1.DefaultDataTypes.BooleanType(),
|
|
80
|
+
display: new base_1.DefaultDisplays.IndicatorDisplay({
|
|
81
|
+
onLabel: `${ROLE}.workspace_owner`,
|
|
82
|
+
offLabel: `${ROLE}.member`,
|
|
83
|
+
onIcon: "i-ph-crown-simple",
|
|
84
|
+
offIcon: "i-ph-user",
|
|
85
|
+
onTone: "primary",
|
|
86
|
+
offTone: "muted",
|
|
87
|
+
}),
|
|
75
88
|
}),
|
|
76
89
|
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
77
90
|
__metadata("design:type", Boolean)
|
|
@@ -80,12 +93,12 @@ __decorate([
|
|
|
80
93
|
(0, metadata_1.Listable)(["expiresAt"]),
|
|
81
94
|
(0, base_1.Exported)(),
|
|
82
95
|
(0, base_1.Column)({
|
|
83
|
-
name:
|
|
96
|
+
name: `${COLUMN}.status`,
|
|
84
97
|
type: new status_type_1.StatusType({
|
|
85
|
-
onlineLabel: "$saas.
|
|
86
|
-
offlineLabel: "$saas.
|
|
87
|
-
onlineColor: "
|
|
88
|
-
offlineColor: "
|
|
98
|
+
onlineLabel: "$saas.status.owner.invited",
|
|
99
|
+
offlineLabel: "$saas.status.owner.expired",
|
|
100
|
+
onlineColor: "warning",
|
|
101
|
+
offlineColor: "error",
|
|
89
102
|
}),
|
|
90
103
|
}),
|
|
91
104
|
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
@@ -97,8 +110,9 @@ __decorate([
|
|
|
97
110
|
(0, metadata_1.Sortable)(),
|
|
98
111
|
(0, base_1.Exported)(),
|
|
99
112
|
(0, base_1.Column)({
|
|
100
|
-
name:
|
|
113
|
+
name: `${COLUMN}.sent_at`,
|
|
101
114
|
type: new default_types_1.DefaultDataTypes.DateType(),
|
|
115
|
+
display: new base_1.DefaultDisplays.RelativeDateDisplay({ style: "day" }),
|
|
102
116
|
}),
|
|
103
117
|
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
104
118
|
__metadata("design:type", Date)
|
|
@@ -108,8 +122,14 @@ __decorate([
|
|
|
108
122
|
(0, metadata_1.Sortable)(),
|
|
109
123
|
(0, base_1.Exported)(),
|
|
110
124
|
(0, base_1.Column)({
|
|
111
|
-
name:
|
|
125
|
+
name: `${COLUMN}.expires_at`,
|
|
112
126
|
type: new default_types_1.DefaultDataTypes.DateType(),
|
|
127
|
+
display: new base_1.DefaultDisplays.RelativeDateDisplay({
|
|
128
|
+
soonWithinMs: EXPIRING_SOON_DAYS * time_1.MS_PER_DAY,
|
|
129
|
+
soonTone: "warning",
|
|
130
|
+
pastStyle: "day",
|
|
131
|
+
pastTone: "error",
|
|
132
|
+
}),
|
|
113
133
|
}),
|
|
114
134
|
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
115
135
|
__metadata("design:type", Date)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invitations.js","sourceRoot":"","sources":["../../../src/data-api/platformOwner/invitations.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAAuD;AACvD,uEAGwC;AACxC,sEAMiD;AACjD,uEAAgE;AAChE,6FAAkE;AAClE,qDAA2E;AAC3E,yDAA+D;AAC/D,
|
|
1
|
+
{"version":3,"file":"invitations.js","sourceRoot":"","sources":["../../../src/data-api/platformOwner/invitations.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAAuD;AACvD,uEAGwC;AACxC,sEAMiD;AACjD,uEAAgE;AAChE,6FAAkE;AAClE,qDAA2E;AAC3E,yDAA+D;AAC/D,yDAOwC;AACxC,2FAA2F;AAC3F,uFAAmF;AACnF,8DAAkE;AAClE,2CAA8C;AAC9C,mDAAqD;AAErD,MAAM,MAAM,GAAG,2CAA2C,CAAC;AAC3D,MAAM,IAAI,GAAG,qCAAqC,CAAC;AAGnD,MAAM,kBAAkB,GAAG,CAAC,CAAC;AAM7B,SAAS,WAAW,CAAC,IAAa;IAChC,OAAQ,IAA0B,CAAC,KAAK,CAAC;AAC3C,CAAC;AASM,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,IAAA,mCAAc,EACpD,eAAU,EACV;IACE,GAAG,EAAE,sBAAe,CAAC,GAAG;IACxB,IAAI,EAAE,sBAAe,CAAC,IAAI;IAC1B,KAAK,EAAE,sBAAe,CAAC,KAAK;CAC7B,EACD,IAAA,0BAAU,EA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,EAAC,qBAAU,CAAC,QAAQ,CAAC;8BACT,IAAI;qDAAC;6BA/Fb,kBAAkB;IAF9B,IAAA,2CAAsB,GAAE;IACxB,IAAA,oBAAa,GAAE;GACH,kBAAkB,CAgG9B"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { CellSubline, ComposedText } from "@antelopejs/interface-dms/base";
|
|
2
|
+
import type { Invoice } from "../../db";
|
|
3
|
+
export type InvoiceStatusRow = Pick<Invoice, "status" | "attemptCount" | "nextPaymentAttemptAt" | "dueAt" | "autoFinalizesAt">;
|
|
4
|
+
export declare function invoiceStatusDetail(row: InvoiceStatusRow, replacedBy: string | null): CellSubline | null;
|
|
5
|
+
export declare function invoiceWorkspaceDetail(planName: string | null, seats: number | null): ComposedText | string | null;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.invoiceStatusDetail = invoiceStatusDetail;
|
|
4
|
+
exports.invoiceWorkspaceDetail = invoiceWorkspaceDetail;
|
|
5
|
+
const composed_text_1 = require("../../i18n/composed-text");
|
|
6
|
+
const SUB_STATE = "saas.operator_billing.invoices.sub_state";
|
|
7
|
+
const MIN_SEATS_SHOWN = 2;
|
|
8
|
+
const day = (date) => (0, composed_text_1.dateParam)(date, "day");
|
|
9
|
+
function openDetail(row) {
|
|
10
|
+
if (row.attemptCount) {
|
|
11
|
+
return row.nextPaymentAttemptAt
|
|
12
|
+
? {
|
|
13
|
+
text: (0, composed_text_1.composed)(`${SUB_STATE}.retry`, {
|
|
14
|
+
date: day(row.nextPaymentAttemptAt),
|
|
15
|
+
}),
|
|
16
|
+
tone: "error",
|
|
17
|
+
}
|
|
18
|
+
: { text: `$${SUB_STATE}.retries_over`, tone: "error" };
|
|
19
|
+
}
|
|
20
|
+
if (!row.dueAt)
|
|
21
|
+
return null;
|
|
22
|
+
return { text: (0, composed_text_1.composed)(`${SUB_STATE}.due`, { date: day(row.dueAt) }) };
|
|
23
|
+
}
|
|
24
|
+
const STATUS_DETAILS = {
|
|
25
|
+
draft: (row) => row.autoFinalizesAt
|
|
26
|
+
? {
|
|
27
|
+
text: (0, composed_text_1.composed)(`${SUB_STATE}.finalises`, {
|
|
28
|
+
date: day(row.autoFinalizesAt),
|
|
29
|
+
}),
|
|
30
|
+
}
|
|
31
|
+
: null,
|
|
32
|
+
open: (row) => openDetail(row),
|
|
33
|
+
void: (_row, replacedBy) => replacedBy
|
|
34
|
+
? { text: (0, composed_text_1.composed)(`${SUB_STATE}.replaced_by`, { number: replacedBy }) }
|
|
35
|
+
: null,
|
|
36
|
+
uncollectible: () => ({ text: `$${SUB_STATE}.written_off`, tone: "error" }),
|
|
37
|
+
};
|
|
38
|
+
function invoiceStatusDetail(row, replacedBy) {
|
|
39
|
+
return STATUS_DETAILS[row.status]?.(row, replacedBy) ?? null;
|
|
40
|
+
}
|
|
41
|
+
function invoiceWorkspaceDetail(planName, seats) {
|
|
42
|
+
if (!planName)
|
|
43
|
+
return null;
|
|
44
|
+
if (!seats || seats < MIN_SEATS_SHOWN)
|
|
45
|
+
return planName;
|
|
46
|
+
return (0, composed_text_1.composed)("saas.operator_billing.cells.plan_seats", {
|
|
47
|
+
plan: planName,
|
|
48
|
+
seats,
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=invoice-cells.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoice-cells.js","sourceRoot":"","sources":["../../../src/data-api/platformOwner/invoice-cells.ts"],"names":[],"mappings":";;AA+DA,kDAKC;AAGD,wDAUC;AA/ED,4DAA+D;AAY/D,MAAM,SAAS,GAAG,0CAA0C,CAAC;AAC7D,MAAM,eAAe,GAAG,CAAC,CAAC;AAE1B,MAAM,GAAG,GAAG,CAAC,IAAU,EAAE,EAAE,CAAC,IAAA,yBAAS,EAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAEnD,SAAS,UAAU,CAAC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,EAAE,OAAO,EAAE,CAAC;CAC5E,CAAC;AASF,SAAgB,mBAAmB,CACjC,GAAqB,EACrB,UAAyB;IAEzB,OAAO,cAAc,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,UAAU,CAAC,IAAI,IAAI,CAAC;AAC/D,CAAC;AAGD,SAAgB,sBAAsB,CACpC,QAAuB,EACvB,KAAoB;IAEpB,IAAI,CAAC,QAAQ;QAAE,OAAO,IAAI,CAAC;IAC3B,IAAI,CAAC,KAAK,IAAI,KAAK,GAAG,eAAe;QAAE,OAAO,QAAQ,CAAC;IACvD,OAAO,IAAA,wBAAQ,EAAC,wCAAwC,EAAE;QACxD,IAAI,EAAE,QAAQ;QACd,KAAK;KACN,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoice-options.js","sourceRoot":"","sources":["../../../src/data-api/platformOwner/invoice-options.ts"],"names":[],"mappings":";;;AAAA,uEAAwD;AAIxD,MAAM,cAAc,GAAG,GAAG,CAAC;AAC3B,MAAM,qBAAqB,GAAG,SAAS,CAAC;AAG3B,QAAA,oBAAoB,GAAG;IAClC,OAAO,EAAE,EAAE,YAAY,EAAE,CAAC,qBAAqB,EAAE,IAAI,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"invoice-options.js","sourceRoot":"","sources":["../../../src/data-api/platformOwner/invoice-options.ts"],"names":[],"mappings":";;;AAAA,uEAAwD;AAIxD,MAAM,cAAc,GAAG,GAAG,CAAC;AAC3B,MAAM,qBAAqB,GAAG,SAAS,CAAC;AAG3B,QAAA,oBAAoB,GAAG;IAClC,OAAO,EAAE,EAAE,YAAY,EAAE,CAAC,qBAAqB,EAAE,IAAI,CAAC,EAAE;CACpC,CAAC;AAGV,QAAA,cAAc,GAAoB;IAC7C,GAAG,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE;QACnB,IAAA,2BAAM,EACJ,OAAO,CAAC,YAAY,KAAK,qBAAqB,EAC9C,cAAc,EACd,+BAA+B,CAChC,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type Invoice, type InvoiceLine } from "../../db";
|
|
2
|
+
export type CrossInstanceInvoice = Invoice & {
|
|
3
|
+
_instance: string;
|
|
4
|
+
};
|
|
5
|
+
export declare function invoiceRow(self: unknown): CrossInstanceInvoice;
|
|
6
|
+
export declare function workspacePlanName(tenantId: string): Promise<string | null>;
|
|
7
|
+
export declare function invoiceSeats(lines: readonly InvoiceLine[] | null | undefined): number | null;
|
|
8
|
+
export declare function invoiceCreditedAmount(tenantId: string, invoiceId: string): Promise<number | null>;
|
|
9
|
+
export declare function replacingInvoiceNumber(tenantId: string, revisionStripeId: string | null | undefined): Promise<string | null>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.invoiceRow = invoiceRow;
|
|
4
|
+
exports.workspacePlanName = workspacePlanName;
|
|
5
|
+
exports.invoiceSeats = invoiceSeats;
|
|
6
|
+
exports.invoiceCreditedAmount = invoiceCreditedAmount;
|
|
7
|
+
exports.replacingInvoiceNumber = replacingInvoiceNumber;
|
|
8
|
+
const interface_database_decorators_1 = require("@antelopejs/interface-database-decorators");
|
|
9
|
+
const db_1 = require("../../db");
|
|
10
|
+
const credit_allowance_1 = require("../../operator-billing/credit-allowance");
|
|
11
|
+
function invoiceRow(self) {
|
|
12
|
+
return self.table;
|
|
13
|
+
}
|
|
14
|
+
async function workspacePlanName(tenantId) {
|
|
15
|
+
const subscription = await (0, interface_database_decorators_1.GetModel)(db_1.TenantSubscriptionModel, tenantId).findOne();
|
|
16
|
+
if (!subscription?.planId)
|
|
17
|
+
return null;
|
|
18
|
+
const plan = await (0, interface_database_decorators_1.GetModel)(db_1.PlanModel).get(subscription.planId);
|
|
19
|
+
return plan?.name ?? null;
|
|
20
|
+
}
|
|
21
|
+
function invoiceSeats(lines) {
|
|
22
|
+
const quantities = (lines ?? [])
|
|
23
|
+
.filter((line) => line.amount > 0)
|
|
24
|
+
.map((line) => line.quantity ?? 0);
|
|
25
|
+
const seats = Math.max(0, ...quantities);
|
|
26
|
+
return seats > 1 ? seats : null;
|
|
27
|
+
}
|
|
28
|
+
async function invoiceCreditedAmount(tenantId, invoiceId) {
|
|
29
|
+
const notes = await (0, interface_database_decorators_1.GetModel)(db_1.CreditNoteModel, tenantId).findByInvoice(invoiceId);
|
|
30
|
+
const credited = (0, credit_allowance_1.sumIssuedCredits)(notes);
|
|
31
|
+
return credited > 0 ? -credited : null;
|
|
32
|
+
}
|
|
33
|
+
async function replacingInvoiceNumber(tenantId, revisionStripeId) {
|
|
34
|
+
if (!revisionStripeId)
|
|
35
|
+
return null;
|
|
36
|
+
const revision = await (0, interface_database_decorators_1.GetModel)(db_1.InvoiceModel, tenantId).findOneByStripeInvoice(revisionStripeId);
|
|
37
|
+
return revision?.number ?? null;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=invoice-rows.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoice-rows.js","sourceRoot":"","sources":["../../../src/data-api/platformOwner/invoice-rows.ts"],"names":[],"mappings":";;AAmBA,gCAEC;AAOD,8CAUC;AAQD,oCAQC;AASD,sDASC;AAQD,wDAUC;AA1FD,6FAAqE;AACrE,iCAOkB;AAClB,8EAA2E;AAU3E,SAAgB,UAAU,CAAC,IAAa;IACtC,OAAQ,IAA2B,CAAC,KAAK,CAAC;AAC5C,CAAC;AAOM,KAAK,UAAU,iBAAiB,CACrC,QAAgB;IAEhB,MAAM,YAAY,GAAG,MAAM,IAAA,wCAAQ,EACjC,4BAAuB,EACvB,QAAQ,CACT,CAAC,OAAO,EAAE,CAAC;IACZ,IAAI,CAAC,YAAY,EAAE,MAAM;QAAE,OAAO,IAAI,CAAC;IACvC,MAAM,IAAI,GAAG,MAAM,IAAA,wCAAQ,EAAC,c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|
|
1
|
+
import { type CellSubline, type ComposedText } from "@antelopejs/interface-dms/base";
|
|
2
|
+
import { Invoice, type InvoiceLine, InvoiceModel, type InvoiceStatus } from "../../db";
|
|
2
3
|
declare const invoicesDataAPI_base: import("@antelopejs/interface-core/decorators").Class<import("@antelopejs/interface-data-api").ExtractDefCallbacks<{
|
|
4
|
+
exportStart: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<unknown>;
|
|
3
5
|
get: import("@antelopejs/interface-data-api").DataControllerCallback;
|
|
4
|
-
list: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<
|
|
5
|
-
select: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<
|
|
6
|
-
count: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<
|
|
6
|
+
list: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<unknown>;
|
|
7
|
+
select: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<unknown>;
|
|
8
|
+
count: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<unknown>;
|
|
9
|
+
countBatch: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<unknown>;
|
|
7
10
|
}> & {
|
|
8
11
|
table: Invoice;
|
|
9
12
|
}> & import("@antelopejs/interface-core/decorators").Class<object> & {
|
|
@@ -17,9 +20,24 @@ export declare class invoicesDataAPI extends invoicesDataAPI_base {
|
|
|
17
20
|
number: string | null;
|
|
18
21
|
_instance: string;
|
|
19
22
|
workspaceName: string;
|
|
20
|
-
|
|
21
|
-
|
|
23
|
+
get planName(): PromiseLike<string | null>;
|
|
24
|
+
get planDetail(): PromiseLike<ComposedText | string | null>;
|
|
25
|
+
total: number;
|
|
26
|
+
currency: string;
|
|
27
|
+
status: InvoiceStatus;
|
|
28
|
+
dueAt: Date | null;
|
|
29
|
+
get statusDetail(): PromiseLike<CellSubline | null>;
|
|
30
|
+
periodStart: Date | null;
|
|
31
|
+
periodEnd: Date | null;
|
|
22
32
|
issuedAt: Date;
|
|
33
|
+
get credited(): PromiseLike<number | null>;
|
|
34
|
+
get isCreditable(): boolean;
|
|
35
|
+
lines: InvoiceLine[];
|
|
36
|
+
subtotal: number;
|
|
37
|
+
tax: number;
|
|
38
|
+
paidAt: Date | null;
|
|
39
|
+
stripeInvoiceId: string;
|
|
40
|
+
get stripeUrl(): string;
|
|
23
41
|
hostedInvoiceUrl: string | null;
|
|
24
42
|
invoicePdfUrl: string | null;
|
|
25
43
|
}
|
|
@@ -22,19 +22,51 @@ const auth_1 = require("@antelopejs/interface-dms/auth");
|
|
|
22
22
|
const base_1 = require("@antelopejs/interface-dms/base");
|
|
23
23
|
const default_types_1 = require("@antelopejs/interface-dms/base/data-types/default-types");
|
|
24
24
|
const db_2 = require("../../db");
|
|
25
|
+
const credit_allowance_1 = require("../../operator-billing/credit-allowance");
|
|
26
|
+
const client_1 = require("../../stripe/client");
|
|
25
27
|
const utils_1 = require("../../utils");
|
|
28
|
+
const invoice_cells_1 = require("./invoice-cells");
|
|
26
29
|
const hidden_filter_1 = require("./hidden-filter");
|
|
30
|
+
const table_scope_1 = require("./table-scope");
|
|
27
31
|
const invoice_options_1 = require("./invoice-options");
|
|
32
|
+
const invoice_rows_1 = require("./invoice-rows");
|
|
33
|
+
const COLUMN = "$saas.operator_billing.invoices.column";
|
|
34
|
+
const CREDITABLE_STATUSES = new Set(credit_allowance_1.CREDITABLE_INVOICE_STATUSES);
|
|
35
|
+
const withInvoiceScope = (0, table_scope_1.withTableScope)(invoice_options_1.INVOICE_LIST_OPTIONS);
|
|
28
36
|
let invoicesDataAPI = class invoicesDataAPI extends (0, interface_data_api_1.DataController)(db_2.Invoice, {
|
|
29
37
|
get: base_1.TableViewRoutes.Get,
|
|
30
|
-
list:
|
|
31
|
-
select:
|
|
32
|
-
count:
|
|
38
|
+
list: withInvoiceScope(base_1.TableViewRoutes.List),
|
|
39
|
+
select: withInvoiceScope(base_1.TableViewRoutes.Select),
|
|
40
|
+
count: withInvoiceScope(base_1.TableViewRoutes.Count),
|
|
41
|
+
countBatch: withInvoiceScope(base_1.TableViewRoutes.CountBatch),
|
|
42
|
+
...base_1.TableViewRoutes.ExportRoutes,
|
|
43
|
+
exportStart: withInvoiceScope(base_1.TableViewRoutes.ExportRoutes.exportStart),
|
|
33
44
|
}, (0, interface_api_1.Controller)("/api/saas/tables/invoices")) {
|
|
34
45
|
static { invoicesDataAPI_1 = this; }
|
|
35
46
|
static {
|
|
36
47
|
(0, interface_core_1.GetMetadata)(invoicesDataAPI_1, base_1.TableViewMeta).setControllerGuards(invoice_options_1.INVOICE_GUARDS);
|
|
37
48
|
}
|
|
49
|
+
get planName() {
|
|
50
|
+
return (0, invoice_rows_1.workspacePlanName)((0, invoice_rows_1.invoiceRow)(this)._instance);
|
|
51
|
+
}
|
|
52
|
+
get planDetail() {
|
|
53
|
+
const row = (0, invoice_rows_1.invoiceRow)(this);
|
|
54
|
+
return (0, invoice_rows_1.workspacePlanName)(row._instance).then((planName) => (0, invoice_cells_1.invoiceWorkspaceDetail)(planName, (0, invoice_rows_1.invoiceSeats)(row.lines)));
|
|
55
|
+
}
|
|
56
|
+
get statusDetail() {
|
|
57
|
+
const row = (0, invoice_rows_1.invoiceRow)(this);
|
|
58
|
+
return (0, invoice_rows_1.replacingInvoiceNumber)(row._instance, row.latestRevisionStripeId).then((replacedBy) => (0, invoice_cells_1.invoiceStatusDetail)(row, replacedBy));
|
|
59
|
+
}
|
|
60
|
+
get credited() {
|
|
61
|
+
const row = (0, invoice_rows_1.invoiceRow)(this);
|
|
62
|
+
return (0, invoice_rows_1.invoiceCreditedAmount)(row._instance, row._id);
|
|
63
|
+
}
|
|
64
|
+
get isCreditable() {
|
|
65
|
+
return CREDITABLE_STATUSES.has((0, invoice_rows_1.invoiceRow)(this).status);
|
|
66
|
+
}
|
|
67
|
+
get stripeUrl() {
|
|
68
|
+
return (0, client_1.stripeDashboardUrl)(`/invoices/${(0, invoice_rows_1.invoiceRow)(this).stripeInvoiceId}`);
|
|
69
|
+
}
|
|
38
70
|
};
|
|
39
71
|
exports.invoicesDataAPI = invoicesDataAPI;
|
|
40
72
|
__decorate([
|
|
@@ -52,7 +84,6 @@ __decorate([
|
|
|
52
84
|
__decorate([
|
|
53
85
|
(0, base_1.Select)(),
|
|
54
86
|
(0, metadata_1.Listable)(),
|
|
55
|
-
(0, base_1.Exported)(),
|
|
56
87
|
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
57
88
|
__metadata("design:type", String)
|
|
58
89
|
], invoicesDataAPI.prototype, "_id", void 0);
|
|
@@ -63,9 +94,11 @@ __decorate([
|
|
|
63
94
|
(0, metadata_1.Sortable)(),
|
|
64
95
|
(0, base_1.Exported)(),
|
|
65
96
|
(0, base_1.Column)({
|
|
66
|
-
name:
|
|
97
|
+
name: `${COLUMN}.number`,
|
|
67
98
|
type: new default_types_1.DefaultDataTypes.StringType(),
|
|
99
|
+
display: new base_1.DefaultDisplays.MonoDisplay(),
|
|
68
100
|
filterable: true,
|
|
101
|
+
size: 140,
|
|
69
102
|
}),
|
|
70
103
|
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
71
104
|
__metadata("design:type", Object)
|
|
@@ -83,51 +116,199 @@ __decorate([
|
|
|
83
116
|
(0, base_1.Exported)(),
|
|
84
117
|
(0, metadata_1.Sortable)({ noIndex: true }),
|
|
85
118
|
(0, base_1.Column)({
|
|
86
|
-
name:
|
|
119
|
+
name: `${COLUMN}.workspace`,
|
|
87
120
|
type: new default_types_1.DefaultDataTypes.StringType(),
|
|
121
|
+
display: new base_1.DefaultDisplays.IdentityDisplay({
|
|
122
|
+
subtitleField: "planDetail",
|
|
123
|
+
}),
|
|
88
124
|
filterable: true,
|
|
125
|
+
size: 190,
|
|
89
126
|
}),
|
|
90
127
|
(0, metadata_1.Joined)({ table: db_1.Tenant, localKey: "_instance", remoteField: "name" }),
|
|
91
128
|
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
92
129
|
__metadata("design:type", String)
|
|
93
130
|
], invoicesDataAPI.prototype, "workspaceName", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, metadata_1.Listable)(["_instance"]),
|
|
133
|
+
(0, base_1.Exported)(),
|
|
134
|
+
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
135
|
+
__metadata("design:type", Object),
|
|
136
|
+
__metadata("design:paramtypes", [])
|
|
137
|
+
], invoicesDataAPI.prototype, "planName", null);
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, metadata_1.Listable)(["_instance", "lines"]),
|
|
140
|
+
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
141
|
+
__metadata("design:type", Object),
|
|
142
|
+
__metadata("design:paramtypes", [])
|
|
143
|
+
], invoicesDataAPI.prototype, "planDetail", null);
|
|
94
144
|
__decorate([
|
|
95
145
|
(0, base_1.Select)(),
|
|
96
146
|
(0, metadata_1.Listable)(),
|
|
97
147
|
(0, metadata_1.Sortable)(),
|
|
98
148
|
(0, base_1.Exported)(),
|
|
99
149
|
(0, base_1.Column)({
|
|
100
|
-
name:
|
|
150
|
+
name: `${COLUMN}.amount`,
|
|
101
151
|
type: new utils_1.MoneyCentsType(),
|
|
152
|
+
size: 120,
|
|
102
153
|
}),
|
|
103
154
|
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
104
155
|
__metadata("design:type", Number)
|
|
105
|
-
], invoicesDataAPI.prototype, "
|
|
156
|
+
], invoicesDataAPI.prototype, "total", void 0);
|
|
157
|
+
__decorate([
|
|
158
|
+
(0, base_1.Select)(),
|
|
159
|
+
(0, metadata_1.Listable)(),
|
|
160
|
+
(0, base_1.Exported)(),
|
|
161
|
+
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
162
|
+
__metadata("design:type", String)
|
|
163
|
+
], invoicesDataAPI.prototype, "currency", void 0);
|
|
106
164
|
__decorate([
|
|
107
165
|
(0, base_1.Select)(),
|
|
108
166
|
(0, metadata_1.Listable)(),
|
|
109
167
|
(0, metadata_1.Sortable)(),
|
|
110
168
|
(0, base_1.Exported)(),
|
|
111
169
|
(0, base_1.Column)({
|
|
112
|
-
name:
|
|
113
|
-
type: (0, utils_1.
|
|
170
|
+
name: `${COLUMN}.status`,
|
|
171
|
+
type: (0, utils_1.statusType)("invoice"),
|
|
172
|
+
display: (0, utils_1.statusPillDisplay)("invoice", {
|
|
173
|
+
subField: "statusDetail",
|
|
174
|
+
subTone: "muted",
|
|
175
|
+
}),
|
|
114
176
|
filterable: true,
|
|
177
|
+
size: 200,
|
|
115
178
|
}),
|
|
116
179
|
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
117
180
|
__metadata("design:type", String)
|
|
118
181
|
], invoicesDataAPI.prototype, "status", void 0);
|
|
182
|
+
__decorate([
|
|
183
|
+
(0, base_1.Select)(),
|
|
184
|
+
(0, metadata_1.Listable)(),
|
|
185
|
+
(0, base_1.Column)({
|
|
186
|
+
name: `${COLUMN}.due_at`,
|
|
187
|
+
type: new default_types_1.DefaultDataTypes.DateType(),
|
|
188
|
+
isVisible: false,
|
|
189
|
+
}),
|
|
190
|
+
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
191
|
+
__metadata("design:type", Object)
|
|
192
|
+
], invoicesDataAPI.prototype, "dueAt", void 0);
|
|
193
|
+
__decorate([
|
|
194
|
+
(0, metadata_1.Listable)([
|
|
195
|
+
"status",
|
|
196
|
+
"attemptCount",
|
|
197
|
+
"nextPaymentAttemptAt",
|
|
198
|
+
"dueAt",
|
|
199
|
+
"autoFinalizesAt",
|
|
200
|
+
"_instance",
|
|
201
|
+
"latestRevisionStripeId",
|
|
202
|
+
]),
|
|
203
|
+
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
204
|
+
__metadata("design:type", Object),
|
|
205
|
+
__metadata("design:paramtypes", [])
|
|
206
|
+
], invoicesDataAPI.prototype, "statusDetail", null);
|
|
207
|
+
__decorate([
|
|
208
|
+
(0, base_1.Select)(),
|
|
209
|
+
(0, metadata_1.Listable)(),
|
|
210
|
+
(0, metadata_1.Sortable)(),
|
|
211
|
+
(0, base_1.Exported)(),
|
|
212
|
+
(0, base_1.Column)({
|
|
213
|
+
name: `${COLUMN}.period`,
|
|
214
|
+
type: new default_types_1.DefaultDataTypes.DateType(),
|
|
215
|
+
display: new utils_1.BillingPeriodDisplay({ endField: "periodEnd" }),
|
|
216
|
+
size: 150,
|
|
217
|
+
}),
|
|
218
|
+
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
219
|
+
__metadata("design:type", Object)
|
|
220
|
+
], invoicesDataAPI.prototype, "periodStart", void 0);
|
|
221
|
+
__decorate([
|
|
222
|
+
(0, base_1.Select)(),
|
|
223
|
+
(0, metadata_1.Listable)(),
|
|
224
|
+
(0, base_1.Exported)(),
|
|
225
|
+
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
226
|
+
__metadata("design:type", Object)
|
|
227
|
+
], invoicesDataAPI.prototype, "periodEnd", void 0);
|
|
119
228
|
__decorate([
|
|
120
229
|
(0, base_1.Select)(),
|
|
121
230
|
(0, metadata_1.Listable)(),
|
|
122
231
|
(0, metadata_1.Sortable)(),
|
|
123
232
|
(0, base_1.Exported)(),
|
|
124
233
|
(0, base_1.Column)({
|
|
125
|
-
name:
|
|
234
|
+
name: `${COLUMN}.issued_at`,
|
|
126
235
|
type: new default_types_1.DefaultDataTypes.DateType(),
|
|
236
|
+
display: new base_1.DefaultDisplays.RelativeDateDisplay({ style: "day" }),
|
|
237
|
+
size: 120,
|
|
127
238
|
}),
|
|
128
239
|
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
129
240
|
__metadata("design:type", Date)
|
|
130
241
|
], invoicesDataAPI.prototype, "issuedAt", void 0);
|
|
242
|
+
__decorate([
|
|
243
|
+
(0, metadata_1.Listable)(["_instance", "_id"]),
|
|
244
|
+
(0, base_1.Exported)(),
|
|
245
|
+
(0, base_1.Column)({
|
|
246
|
+
name: `${COLUMN}.credited`,
|
|
247
|
+
type: new utils_1.MoneyCentsType(),
|
|
248
|
+
size: 120,
|
|
249
|
+
}),
|
|
250
|
+
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
251
|
+
__metadata("design:type", Object),
|
|
252
|
+
__metadata("design:paramtypes", [])
|
|
253
|
+
], invoicesDataAPI.prototype, "credited", null);
|
|
254
|
+
__decorate([
|
|
255
|
+
(0, metadata_1.Listable)(["status"]),
|
|
256
|
+
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
257
|
+
__metadata("design:type", Boolean),
|
|
258
|
+
__metadata("design:paramtypes", [])
|
|
259
|
+
], invoicesDataAPI.prototype, "isCreditable", null);
|
|
260
|
+
__decorate([
|
|
261
|
+
(0, base_1.Select)(),
|
|
262
|
+
(0, base_1.Column)({
|
|
263
|
+
name: `${COLUMN}.lines`,
|
|
264
|
+
type: new utils_1.InvoiceLinesType(),
|
|
265
|
+
isVisible: false,
|
|
266
|
+
}),
|
|
267
|
+
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
268
|
+
__metadata("design:type", Array)
|
|
269
|
+
], invoicesDataAPI.prototype, "lines", void 0);
|
|
270
|
+
__decorate([
|
|
271
|
+
(0, base_1.Select)(),
|
|
272
|
+
(0, base_1.Column)({
|
|
273
|
+
name: `${COLUMN}.subtotal`,
|
|
274
|
+
type: new utils_1.MoneyCentsType(),
|
|
275
|
+
isVisible: false,
|
|
276
|
+
}),
|
|
277
|
+
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
278
|
+
__metadata("design:type", Number)
|
|
279
|
+
], invoicesDataAPI.prototype, "subtotal", void 0);
|
|
280
|
+
__decorate([
|
|
281
|
+
(0, base_1.Select)(),
|
|
282
|
+
(0, base_1.Column)({
|
|
283
|
+
name: `${COLUMN}.tax`,
|
|
284
|
+
type: new utils_1.MoneyCentsType(),
|
|
285
|
+
isVisible: false,
|
|
286
|
+
}),
|
|
287
|
+
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
288
|
+
__metadata("design:type", Number)
|
|
289
|
+
], invoicesDataAPI.prototype, "tax", void 0);
|
|
290
|
+
__decorate([
|
|
291
|
+
(0, base_1.Select)(),
|
|
292
|
+
(0, base_1.Column)({
|
|
293
|
+
name: `${COLUMN}.paid_at`,
|
|
294
|
+
type: new default_types_1.DefaultDataTypes.DateType(),
|
|
295
|
+
isVisible: false,
|
|
296
|
+
}),
|
|
297
|
+
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
298
|
+
__metadata("design:type", Object)
|
|
299
|
+
], invoicesDataAPI.prototype, "paidAt", void 0);
|
|
300
|
+
__decorate([
|
|
301
|
+
(0, base_1.Select)(),
|
|
302
|
+
(0, metadata_1.Listable)(),
|
|
303
|
+
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
304
|
+
__metadata("design:type", String)
|
|
305
|
+
], invoicesDataAPI.prototype, "stripeInvoiceId", void 0);
|
|
306
|
+
__decorate([
|
|
307
|
+
(0, metadata_1.Listable)(["stripeInvoiceId"]),
|
|
308
|
+
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
309
|
+
__metadata("design:type", String),
|
|
310
|
+
__metadata("design:paramtypes", [])
|
|
311
|
+
], invoicesDataAPI.prototype, "stripeUrl", null);
|
|
131
312
|
__decorate([
|
|
132
313
|
(0, base_1.Select)(),
|
|
133
314
|
(0, metadata_1.Listable)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoices.js","sourceRoot":"","sources":["../../../src/data-api/platformOwner/invoices.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6DAAuD;AACvD,+DAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"invoices.js","sourceRoot":"","sources":["../../../src/data-api/platformOwner/invoices.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6DAAuD;AACvD,+DAAyD;AAC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E,IAAI,gCAAgB,CAAC,QAAQ,EAAE;QACrC,SAAS,EAAE,KAAK;KACjB,CAAC;IACD,IAAA,iBAAM,EAAC,qBAAU,CAAC,QAAQ,CAAC;;+CACA;AAKpB;IAHP,IAAA,aAAM,GAAE;IACR,IAAA,mBAAQ,GAAE;IACV,IAAA,iBAAM,EAAC,qBAAU,CAAC,QAAQ,CAAC;;wDACI;AAEhC;IAAC,IAAA,mBAAQ,EAAC,CAAC,iBAAiB,CAAC,CAAC;IAC7B,IAAA,iBAAM,EAAC,qBAAU,CAAC,QAAQ,CAAC;;;gDAG3B;AAKO;IAHP,IAAA,aAAM,GAAE;IACR,IAAA,mBAAQ,GAAE;IACV,IAAA,iBAAM,EAAC,qBAAU,CAAC,QAAQ,CAAC;;yDACY;AAKhC;IAHP,IAAA,aAAM,GAAE;IACR,IAAA,mBAAQ,GAAE;IACV,IAAA,iBAAM,EAAC,qBAAU,CAAC,QAAQ,CAAC;;sDACS;0BAlQ1B,eAAe;IAF3B,IAAA,2CAAsB,GAAE;IACxB,IAAA,oBAAa,GAAE;GACH,eAAe,CAmQ3B"}
|
|
@@ -15,10 +15,11 @@ export declare class membersDataAPI extends membersDataAPI_base {
|
|
|
15
15
|
_id: string;
|
|
16
16
|
userId: string;
|
|
17
17
|
_instance: string;
|
|
18
|
-
workspaceName: string;
|
|
19
18
|
name: string;
|
|
20
19
|
email: string;
|
|
20
|
+
isPlatformAdmin: boolean;
|
|
21
21
|
isTenantOwner: boolean;
|
|
22
22
|
joinedAt: Date;
|
|
23
|
+
lastActiveAt: Date | null;
|
|
23
24
|
}
|
|
24
25
|
export {};
|