@antelopejs/dms-saas 0.3.15 → 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 +61 -14
- 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 +8 -2
- package/dist/data-api/platformOwner/features.js +155 -35
- 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 -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 +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 +45 -42
- package/dist/routes/platformOwner/plans.js +162 -143
- 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 +125 -15
- 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/content-language.d.ts +2 -0
- package/dist/utils/content-language.js +12 -0
- package/dist/utils/content-language.js.map +1 -0
- 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 +9 -0
- package/dist/utils/index.js +9 -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 -310
- 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 -281
- 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/composables/usePlanFeatureLabel.ts +0 -24
- package/frontend-vue/app/plugins/plan-cards-display.client.ts +0 -16
- package/frontend-vue/app/plugins/segment-conditions-data-type.client.ts +0 -122
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-operator-actions.js","sourceRoot":"","sources":["../../../src/routes/platformOwner/workspace-operator-actions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6DAMmC;AACnC,uEAAwD;AACxD,6FAA4E;AAC5E,qDAA2D;AAC3D,yDAA+D;AAE/D,
|
|
1
|
+
{"version":3,"file":"workspace-operator-actions.js","sourceRoot":"","sources":["../../../src/routes/platformOwner/workspace-operator-actions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6DAMmC;AACnC,uEAAwD;AACxD,6FAA4E;AAC5E,qDAA2D;AAC3D,yDAA+D;AAE/D,6DAQgC;AAChC,2FAAsF;AACtF,8DAQyC;AACzC,4EAGgD;AAChD,+FAA0F;AAC1F,kEAA2E;AAE3E,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAC7B,MAAM,cAAc,GAAG,GAAG,CAAC;AA+B3B,SAAS,aAAa,CAAC,KAAc,EAAE,SAAiB;IACtD,MAAM,UAAU,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACjE,IAAA,2BAAM,EAAC,UAAU,EAAE,gBAAgB,EAAE,SAAS,CAAC,CAAC;IAChD,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,SAAS,aAAa,CAAC,IAAmB;IACxC,OAAO,aAAa,CAClB,IAAI,CAAC,WAAW,EAChB,2CAA2C,CAC5C,CAAC;AACJ,CAAC;AAED,SAAS,aAAa,CAAC,IAAuB;IAC5C,IAAA,2BAAM,EACJ,OAAO,IAAI,CAAC,WAAW,KAAK,QAAQ,EACpC,gBAAgB,E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C;IAE1B,WAAA,IAAA,oBAAa,GAAE,CAAA;IACf,WAAA,IAAA,yBAAS,EAAC,UAAU,EAAE,OAAO,CAAC,CAAA;IAC9B,WAAA,IAAA,wBAAQ,GAAE,CAAA;;;;uEAQZ;AAIK;IADL,IAAA,mBAAG,EAAC,4BAA4B,CAAC;IAE/B,WAAA,IAAA,oBAAa,GAAE,CAAA;IACf,WAAA,IAAA,yBAAS,EAAC,UAAU,EAAE,OAAO,CAAC,CAAA;IAC9B,WAAA,IAAA,yBAAS,EAAC,QAAQ,EAAE,OAAO,CAAC,CAAA;;;;+EAM9B;AAGK;IADL,IAAA,oBAAI,EAAC,oBAAoB,CAAC;IAExB,WAAA,IAAA,oBAAa,GAAE,CAAA;IACf,WAAA,IAAA,yBAAS,EAAC,UAAU,EAAE,OAAO,CAAC,CAAA;IAC9B,WAAA,IAAA,wBAAQ,GAAE,CAAA;;;;qEAYZ;AAIK;IADL,IAAA,oBAAI,EAAC,2BAA2B,CAAC;IAE/B,WAAA,IAAA,oBAAa,GAAE,CAAA;IACf,WAAA,IAAA,yBAAS,EAAC,UAAU,EAAE,OAAO,CAAC,CAAA;IAC9B,WAAA,IAAA,wBAAQ,GAAE,CAAA;;;;yEAWZ"}
|
|
@@ -1,27 +1,32 @@
|
|
|
1
1
|
import { TenantModel } from "@antelopejs/interface-dms/db";
|
|
2
|
-
import type
|
|
3
|
-
import { type
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
hasStripeSubscription: boolean;
|
|
8
|
-
freeUntil: Date | null;
|
|
9
|
-
domainTransition: SubscriptionTransition | null;
|
|
10
|
-
deletionStartedAt: Date | null;
|
|
11
|
-
}
|
|
2
|
+
import { type User, UserModel } from "@antelopejs/interface-dms/auth/db";
|
|
3
|
+
import { type ConfirmDialogSerialized } from "@antelopejs/interface-dms/base/table-view";
|
|
4
|
+
import { PlanModel } from "../../db";
|
|
5
|
+
import { type ComplimentaryImpact } from "../../operator-actions/previews";
|
|
6
|
+
import { type CreatedWorkspace, type CreateWorkspaceBody, type OwnerLookup } from "../../workspaces/operator-creation";
|
|
12
7
|
interface GrantFreeAccessBody {
|
|
13
|
-
planId
|
|
8
|
+
planId?: unknown;
|
|
14
9
|
freeUntil?: string | null;
|
|
10
|
+
acknowledgeCancellation?: unknown;
|
|
11
|
+
}
|
|
12
|
+
interface JoinResult {
|
|
13
|
+
joined: true;
|
|
15
14
|
}
|
|
16
15
|
declare const SaasWorkspacesAdminController_base: import("@antelopejs/interface-api").ControllerClass<object>;
|
|
17
16
|
export declare class SaasWorkspacesAdminController extends SaasWorkspacesAdminController_base {
|
|
18
17
|
tenantModel: TenantModel;
|
|
19
18
|
planModel: PlanModel;
|
|
20
|
-
|
|
19
|
+
userModel: UserModel;
|
|
20
|
+
private assertTenantExists;
|
|
21
|
+
lookUpOwnerEmail(_user: User, email: unknown): Promise<OwnerLookup>;
|
|
22
|
+
createWorkspace(user: User, body: CreateWorkspaceBody): Promise<CreatedWorkspace>;
|
|
23
|
+
getComplimentaryImpact(_user: User, tenantId: string): Promise<ComplimentaryImpact>;
|
|
21
24
|
grantFreeAccess(user: User, tenantId: string, body: GrantFreeAccessBody): Promise<{
|
|
22
25
|
tenantId: string;
|
|
23
26
|
planId: string;
|
|
24
27
|
freeUntil: Date | null;
|
|
25
28
|
}>;
|
|
29
|
+
joinConfirmation(user: User, tenantId: string): Promise<ConfirmDialogSerialized>;
|
|
30
|
+
joinAsMember(user: User, tenantId: string): Promise<JoinResult>;
|
|
26
31
|
}
|
|
27
32
|
export {};
|
|
@@ -19,22 +19,58 @@ const interface_api_util_1 = require("@antelopejs/interface-api-util");
|
|
|
19
19
|
const interface_database_decorators_1 = require("@antelopejs/interface-database-decorators");
|
|
20
20
|
const db_1 = require("@antelopejs/interface-dms/db");
|
|
21
21
|
const tenant_lifecycle_1 = require("@antelopejs/interface-dms/tenant-lifecycle");
|
|
22
|
+
const tenant_ownership_1 = require("@antelopejs/interface-dms/tenant-ownership");
|
|
22
23
|
const auth_1 = require("@antelopejs/interface-dms/auth");
|
|
24
|
+
const db_2 = require("@antelopejs/interface-dms/auth/db");
|
|
25
|
+
const table_view_1 = require("@antelopejs/interface-dms/base/table-view");
|
|
23
26
|
const billing_state_1 = require("../../billing-state");
|
|
24
|
-
const
|
|
27
|
+
const db_3 = require("../../db");
|
|
25
28
|
const notifications_1 = require("../../notifications");
|
|
29
|
+
const previews_1 = require("../../operator-actions/previews");
|
|
26
30
|
const stripe_1 = require("../../stripe");
|
|
27
31
|
const utils_1 = require("../../utils");
|
|
28
32
|
const complimentary_1 = require("../../workspaces/complimentary");
|
|
33
|
+
const operator_view_1 = require("../../workspaces/operator-view");
|
|
34
|
+
const operator_creation_1 = require("../../workspaces/operator-creation");
|
|
35
|
+
const plan_audience_1 = require("../../plans/plan-audience");
|
|
29
36
|
const HTTP_NOT_FOUND = 404;
|
|
30
37
|
const HTTP_BAD_REQUEST = 400;
|
|
38
|
+
const HTTP_CONFLICT = 409;
|
|
31
39
|
const ACTIVE_STATUS = "active";
|
|
32
40
|
const COMP_ICON = "i-ph-gift";
|
|
33
|
-
const ANY_AUDIENCE = "any";
|
|
34
41
|
const NOTIF_COMP_TITLE = "$saas.notifications.payload.complimentary_access_granted.title";
|
|
35
42
|
const NOTIF_COMP_DESC = "$saas.notifications.payload.complimentary_access_granted.description";
|
|
43
|
+
const JOIN = "$saas.workspace_detail.join";
|
|
44
|
+
function joinConfirmationDialog(view, isMember) {
|
|
45
|
+
const maxMembers = view.plan?.maxMembers ?? db_3.PLAN_UNLIMITED;
|
|
46
|
+
const params = {
|
|
47
|
+
name: view.tenant.name,
|
|
48
|
+
seats: view.seats.occupied,
|
|
49
|
+
max: maxMembers === db_3.PLAN_UNLIMITED ? "∞" : maxMembers,
|
|
50
|
+
};
|
|
51
|
+
if (isMember)
|
|
52
|
+
return {
|
|
53
|
+
title: `${JOIN}.already_title`,
|
|
54
|
+
description: `${JOIN}.already_description`,
|
|
55
|
+
params,
|
|
56
|
+
blocked: true,
|
|
57
|
+
};
|
|
58
|
+
return {
|
|
59
|
+
title: `${JOIN}.title`,
|
|
60
|
+
description: `${JOIN}.description`,
|
|
61
|
+
params,
|
|
62
|
+
icon: "i-ph-user-plus",
|
|
63
|
+
color: "primary",
|
|
64
|
+
confirmLabel: `${JOIN}.confirm`,
|
|
65
|
+
impact: [
|
|
66
|
+
{ icon: "i-ph-armchair", label: `${JOIN}.impact_seat` },
|
|
67
|
+
{ icon: "i-ph-eye", label: `${JOIN}.impact_visible` },
|
|
68
|
+
{ icon: "i-ph-sign-out", label: `${JOIN}.impact_leave` },
|
|
69
|
+
],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
36
72
|
async function upsertFreeSubscription(tenantId, planId, freeUntil, createdBy) {
|
|
37
|
-
const tenantSubscriptionModel = (0, interface_database_decorators_1.GetModel)(
|
|
73
|
+
const tenantSubscriptionModel = (0, interface_database_decorators_1.GetModel)(db_3.TenantSubscriptionModel, tenantId);
|
|
38
74
|
const existing = await tenantSubscriptionModel.findOne();
|
|
39
75
|
const operationId = (0, node_crypto_1.randomUUID)();
|
|
40
76
|
if (existing)
|
|
@@ -77,38 +113,60 @@ async function upsertFreeSubscription(tenantId, planId, freeUntil, createdBy) {
|
|
|
77
113
|
}
|
|
78
114
|
async function assertPlanIsAvailableForTenant(plan, tenantId) {
|
|
79
115
|
(0, interface_api_util_1.assert)(plan && !plan.isDeleted && plan.isActive, HTTP_BAD_REQUEST, "saas.errors.plan.invalid");
|
|
80
|
-
const billingInfo = await (0, interface_database_decorators_1.GetModel)(
|
|
81
|
-
(0, interface_api_util_1.assert)(plan
|
|
82
|
-
|
|
116
|
+
const billingInfo = await (0, interface_database_decorators_1.GetModel)(db_3.TenantBillingInfoModel, tenantId).findOne();
|
|
117
|
+
(0, interface_api_util_1.assert)((0, plan_audience_1.isPlanOfferedTo)(plan, billingInfo?.customerType), HTTP_BAD_REQUEST, "saas.errors.plan.not_available_for_customer_type");
|
|
118
|
+
return plan;
|
|
119
|
+
}
|
|
120
|
+
async function assertCancellationAcknowledged(tenantId, body) {
|
|
121
|
+
const subscription = await (0, interface_database_decorators_1.GetModel)(db_3.TenantSubscriptionModel, tenantId).findOne();
|
|
122
|
+
(0, interface_api_util_1.assert)(!subscription?.stripeSubscriptionId ||
|
|
123
|
+
body.acknowledgeCancellation === true, HTTP_BAD_REQUEST, "saas.errors.workspace.cancellation_not_acknowledged");
|
|
83
124
|
}
|
|
84
125
|
class SaasWorkspacesAdminController extends (0, interface_api_1.Controller)("/api/saas/workspaces") {
|
|
85
|
-
async
|
|
126
|
+
async assertTenantExists(tenantId) {
|
|
86
127
|
const tenant = await this.tenantModel.get(tenantId);
|
|
87
128
|
(0, interface_api_util_1.assert)(tenant, HTTP_NOT_FOUND, "saas.errors.workspace.not_found");
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
129
|
+
}
|
|
130
|
+
async lookUpOwnerEmail(_user, email) {
|
|
131
|
+
(0, interface_api_util_1.assert)(typeof email === "string" && email.trim(), HTTP_BAD_REQUEST, "saas.errors.workspace_create.owner_email");
|
|
132
|
+
return (0, operator_creation_1.lookUpOwner)(email);
|
|
133
|
+
}
|
|
134
|
+
async createWorkspace(user, body) {
|
|
135
|
+
const input = (0, operator_creation_1.validateWorkspaceInput)(body);
|
|
136
|
+
await (0, operator_creation_1.loadPlanForAccess)(input);
|
|
137
|
+
return (0, operator_creation_1.createWorkspaceForOwner)(input, user);
|
|
138
|
+
}
|
|
139
|
+
async getComplimentaryImpact(_user, tenantId) {
|
|
140
|
+
return (0, previews_1.loadComplimentaryImpact)(tenantId);
|
|
97
141
|
}
|
|
98
142
|
async grantFreeAccess(user, tenantId, body) {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
const plan = await this.planModel.get(
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
await (0, tenant_lifecycle_1.runTenantLifecycleOperation)(tenantId, () => upsertFreeSubscription(tenantId, body.planId, freeUntil, user._id));
|
|
143
|
+
await this.assertTenantExists(tenantId);
|
|
144
|
+
const planId = typeof body.planId === "string" ? body.planId : "";
|
|
145
|
+
const plan = await assertPlanIsAvailableForTenant(planId ? await this.planModel.get(planId) : undefined, tenantId);
|
|
146
|
+
await assertCancellationAcknowledged(tenantId, body);
|
|
147
|
+
const freeUntil = (0, utils_1.parseFutureDate)(body.freeUntil, "saas.errors.workspace_create.free_until_past");
|
|
148
|
+
await (0, tenant_lifecycle_1.runTenantLifecycleOperation)(tenantId, () => upsertFreeSubscription(tenantId, plan._id, freeUntil, user._id));
|
|
106
149
|
await (0, notifications_1.notifyTenantOwners)(tenantId, notifications_1.complimentaryAccessGrantedSubject, {
|
|
107
150
|
icon: COMP_ICON,
|
|
108
151
|
title: NOTIF_COMP_TITLE,
|
|
109
152
|
description: NOTIF_COMP_DESC,
|
|
110
153
|
});
|
|
111
|
-
return { tenantId, planId:
|
|
154
|
+
return { tenantId, planId: plan._id, freeUntil };
|
|
155
|
+
}
|
|
156
|
+
async joinConfirmation(user, tenantId) {
|
|
157
|
+
const view = await (0, operator_view_1.loadWorkspaceOperatorView)(tenantId);
|
|
158
|
+
const membership = await (0, interface_database_decorators_1.GetModel)(db_1.TenantMemberModel, tenantId).getByUser(user._id);
|
|
159
|
+
return (0, table_view_1.serializeConfirmDialog)(joinConfirmationDialog(view, !!membership));
|
|
160
|
+
}
|
|
161
|
+
async joinAsMember(user, tenantId) {
|
|
162
|
+
await this.assertTenantExists(tenantId);
|
|
163
|
+
const existing = await (0, interface_database_decorators_1.GetModel)(db_1.TenantMemberModel, tenantId).getByUser(user._id);
|
|
164
|
+
(0, interface_api_util_1.assert)(!existing, HTTP_CONFLICT, "saas.errors.workspace.already_member");
|
|
165
|
+
await (0, tenant_ownership_1.applyTenantOwnership)(this.userModel, user._id, tenantId, {
|
|
166
|
+
roleIds: [],
|
|
167
|
+
isTenantOwner: false,
|
|
168
|
+
});
|
|
169
|
+
return { joined: true };
|
|
112
170
|
}
|
|
113
171
|
}
|
|
114
172
|
exports.SaasWorkspacesAdminController = SaasWorkspacesAdminController;
|
|
@@ -117,17 +175,37 @@ __decorate([
|
|
|
117
175
|
__metadata("design:type", db_1.TenantModel)
|
|
118
176
|
], SaasWorkspacesAdminController.prototype, "tenantModel", void 0);
|
|
119
177
|
__decorate([
|
|
120
|
-
(0, interface_database_decorators_1.Model)(
|
|
121
|
-
__metadata("design:type",
|
|
178
|
+
(0, interface_database_decorators_1.Model)(db_3.PlanModel),
|
|
179
|
+
__metadata("design:type", db_3.PlanModel)
|
|
122
180
|
], SaasWorkspacesAdminController.prototype, "planModel", void 0);
|
|
123
181
|
__decorate([
|
|
124
|
-
(0,
|
|
182
|
+
(0, interface_database_decorators_1.Model)(db_2.UserModel),
|
|
183
|
+
__metadata("design:type", db_2.UserModel)
|
|
184
|
+
], SaasWorkspacesAdminController.prototype, "userModel", void 0);
|
|
185
|
+
__decorate([
|
|
186
|
+
(0, interface_api_1.Get)("/owner-lookup"),
|
|
187
|
+
__param(0, (0, auth_1.AuthOwnerOnly)()),
|
|
188
|
+
__param(1, (0, interface_api_1.Parameter)("email", "query")),
|
|
189
|
+
__metadata("design:type", Function),
|
|
190
|
+
__metadata("design:paramtypes", [Function, Object]),
|
|
191
|
+
__metadata("design:returntype", Promise)
|
|
192
|
+
], SaasWorkspacesAdminController.prototype, "lookUpOwnerEmail", null);
|
|
193
|
+
__decorate([
|
|
194
|
+
(0, interface_api_1.Post)("/create"),
|
|
195
|
+
__param(0, (0, auth_1.AuthOwnerOnly)()),
|
|
196
|
+
__param(1, (0, interface_api_1.JSONBody)()),
|
|
197
|
+
__metadata("design:type", Function),
|
|
198
|
+
__metadata("design:paramtypes", [Function, Object]),
|
|
199
|
+
__metadata("design:returntype", Promise)
|
|
200
|
+
], SaasWorkspacesAdminController.prototype, "createWorkspace", null);
|
|
201
|
+
__decorate([
|
|
202
|
+
(0, interface_api_1.Get)("/:tenantId/complimentary-impact"),
|
|
125
203
|
__param(0, (0, auth_1.AuthOwnerOnly)()),
|
|
126
204
|
__param(1, (0, interface_api_1.Parameter)("tenantId", "param")),
|
|
127
205
|
__metadata("design:type", Function),
|
|
128
206
|
__metadata("design:paramtypes", [Function, String]),
|
|
129
207
|
__metadata("design:returntype", Promise)
|
|
130
|
-
], SaasWorkspacesAdminController.prototype, "
|
|
208
|
+
], SaasWorkspacesAdminController.prototype, "getComplimentaryImpact", null);
|
|
131
209
|
__decorate([
|
|
132
210
|
(0, interface_api_1.Post)("/:tenantId/grant-free-access"),
|
|
133
211
|
__param(0, (0, auth_1.AuthOwnerOnly)()),
|
|
@@ -137,4 +215,20 @@ __decorate([
|
|
|
137
215
|
__metadata("design:paramtypes", [Function, String, Object]),
|
|
138
216
|
__metadata("design:returntype", Promise)
|
|
139
217
|
], SaasWorkspacesAdminController.prototype, "grantFreeAccess", null);
|
|
218
|
+
__decorate([
|
|
219
|
+
(0, interface_api_1.Get)("/:tenantId/join-confirmation"),
|
|
220
|
+
__param(0, (0, auth_1.AuthOwnerOnly)()),
|
|
221
|
+
__param(1, (0, interface_api_1.Parameter)("tenantId", "param")),
|
|
222
|
+
__metadata("design:type", Function),
|
|
223
|
+
__metadata("design:paramtypes", [Function, String]),
|
|
224
|
+
__metadata("design:returntype", Promise)
|
|
225
|
+
], SaasWorkspacesAdminController.prototype, "joinConfirmation", null);
|
|
226
|
+
__decorate([
|
|
227
|
+
(0, interface_api_1.Post)("/:tenantId/join"),
|
|
228
|
+
__param(0, (0, auth_1.AuthOwnerOnly)()),
|
|
229
|
+
__param(1, (0, interface_api_1.Parameter)("tenantId", "param")),
|
|
230
|
+
__metadata("design:type", Function),
|
|
231
|
+
__metadata("design:paramtypes", [Function, String]),
|
|
232
|
+
__metadata("design:returntype", Promise)
|
|
233
|
+
], SaasWorkspacesAdminController.prototype, "joinAsMember", null);
|
|
140
234
|
//# sourceMappingURL=workspaces-admin.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspaces-admin.js","sourceRoot":"","sources":["../../../src/routes/platformOwner/workspaces-admin.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAAyC;AACzC,6DAMmC;AACnC,uEAAwD;AACxD,6FAA4E;AAC5E,
|
|
1
|
+
{"version":3,"file":"workspaces-admin.js","sourceRoot":"","sources":["../../../src/routes/platformOwner/workspaces-admin.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAAyC;AACzC,6DAMmC;AACnC,uEAAwD;AACxD,6FAA4E;AAC5E,qDAA8E;AAC9E,iFAAyF;AACzF,iFAAkF;AAClF,yDAA+D;AAC/D,0DAAyE;AAEzE,0EAGmD;AACnD,uDAAkE;AAClE,iCAOkB;AAClB,uDAG6B;AAC7B,8DAGyC;AACzC,yCAA+C;AAC/C,uCAA8C;AAC9C,kEAAuE;AACvE,kEAGwC;AACxC,0EAQ4C;AAC5C,6DAA4D;AAE5D,MAAM,cAAc,GAAG,GAAG,CAAC;AAC3B,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAC7B,MAAM,aAAa,GAAG,GAAG,CAAC;AAE1B,MAAM,aAAa,GAA6B,QAAQ,CAAC;AAEzD,MAAM,SAAS,GAAG,WAAW,CAAC;AAE9B,MAAM,gBAAgB,GACpB,gEAAgE,CAAC;AACnE,MAAM,eAAe,GACnB,sEAAsE,CAAC;AAgBzE,MAAM,IAAI,GAAG,6BAA6B,CAAC;AAM3C,SAAS,sBAAsB,CAC7B,IAA2B,EAC3B,QAAiB;IAEjB,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,EAAE,UAAU,IAAI,mBAAc,CAAC;IAC3D,MAAM,MAAM,GAAG;QACb,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI;QACtB,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ;QAC1B,GAAG,EAAE,UAAU,KAAK,mBAAc,CAAC,CAAC,CAAC,GAAG,CAAC,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;;2EAGhC;AAGK;IADL,IAAA,oBAAI,EAAC,8BAA8B,CAAC;IAElC,WAAA,IAAA,oBAAa,GAAE,CAAA;IACf,WAAA,IAAA,yBAAS,EAAC,UAAU,EAAE,OAAO,CAAC,CAAA;IAC9B,WAAA,IAAA,wBAAQ,GAAE,CAAA;;;;oEAsBZ;AAIK;IADL,IAAA,mBAAG,EAAC,8BAA8B,CAAC;IAEjC,WAAA,IAAA,oBAAa,GAAE,CAAA;IACf,WAAA,IAAA,yBAAS,EAAC,UAAU,EAAE,OAAO,CAAC,CAAA;;;;qEAOhC;AAOK;IADL,IAAA,oBAAI,EAAC,iBAAiB,CAAC;IAErB,WAAA,IAAA,oBAAa,GAAE,CAAA;IACf,WAAA,IAAA,yBAAS,EAAC,UAAU,EAAE,OAAO,CAAC,CAAA;;;;iEAYhC"}
|
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./legal-documents"), exports);
|
|
18
|
+
__exportStar(require("./pricing"), exports);
|
|
18
19
|
__exportStar(require("./register"), exports);
|
|
19
20
|
__exportStar(require("./webhooks"), exports);
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/routes/public/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,6CAA2B;AAC3B,6CAA2B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/routes/public/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,4CAA0B;AAC1B,6CAA2B;AAC3B,6CAA2B"}
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
import type { User } from "@antelopejs/interface-dms/auth/db";
|
|
2
1
|
import { LegalDocumentsModel } from "../../db";
|
|
3
|
-
|
|
4
|
-
termsOfUse: string;
|
|
5
|
-
termsAndConditions: string;
|
|
6
|
-
privacyPolicy: string;
|
|
7
|
-
}
|
|
2
|
+
import { type PublishedLegalDocuments } from "../../operator-billing";
|
|
8
3
|
export declare function ensureLegalDocumentsSingleton(): Promise<void>;
|
|
9
4
|
declare const LegalDocumentsController_base: import("@antelopejs/interface-api").ControllerClass<object>;
|
|
10
5
|
export declare class LegalDocumentsController extends LegalDocumentsController_base {
|
|
11
6
|
legalDocumentsModel: LegalDocumentsModel;
|
|
12
|
-
get(): Promise<
|
|
13
|
-
update(_user: User, body: LegalDocumentsBody): Promise<import("@antelopejs/interface-dms-saas/db").LegalDocuments | undefined>;
|
|
7
|
+
get(): Promise<PublishedLegalDocuments>;
|
|
14
8
|
}
|
|
15
9
|
export {};
|
|
@@ -8,46 +8,19 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
12
|
exports.LegalDocumentsController = void 0;
|
|
16
13
|
exports.ensureLegalDocumentsSingleton = ensureLegalDocumentsSingleton;
|
|
17
14
|
const interface_api_1 = require("@antelopejs/interface-api");
|
|
18
15
|
const interface_database_decorators_1 = require("@antelopejs/interface-database-decorators");
|
|
19
|
-
const auth_1 = require("@antelopejs/interface-dms/auth");
|
|
20
16
|
const db_1 = require("../../db");
|
|
21
|
-
const
|
|
22
|
-
_id: db_1.LEGAL_DOCUMENTS_SINGLETON_ID,
|
|
23
|
-
termsOfUse: "",
|
|
24
|
-
termsAndConditions: "",
|
|
25
|
-
privacyPolicy: "",
|
|
26
|
-
updatedAt: new Date(0),
|
|
27
|
-
};
|
|
17
|
+
const operator_billing_1 = require("../../operator-billing");
|
|
28
18
|
async function ensureLegalDocumentsSingleton() {
|
|
29
|
-
|
|
30
|
-
const existing = await legalDocumentsModel.get(db_1.LEGAL_DOCUMENTS_SINGLETON_ID);
|
|
31
|
-
if (existing)
|
|
32
|
-
return;
|
|
33
|
-
await legalDocumentsModel.insert([
|
|
34
|
-
{ ...EMPTY_DOCUMENTS, updatedAt: new Date() },
|
|
35
|
-
]);
|
|
19
|
+
await (0, operator_billing_1.ensureLegalDocumentsRow)((0, interface_database_decorators_1.GetModel)(db_1.LegalDocumentsModel));
|
|
36
20
|
}
|
|
37
21
|
class LegalDocumentsController extends (0, interface_api_1.Controller)("/api/saas/legal-documents") {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
return existing ?? EMPTY_DOCUMENTS;
|
|
41
|
-
}
|
|
42
|
-
async update(_user, body) {
|
|
43
|
-
await ensureLegalDocumentsSingleton();
|
|
44
|
-
await this.legalDocumentsModel.update(db_1.LEGAL_DOCUMENTS_SINGLETON_ID, {
|
|
45
|
-
termsOfUse: body.termsOfUse,
|
|
46
|
-
termsAndConditions: body.termsAndConditions,
|
|
47
|
-
privacyPolicy: body.privacyPolicy,
|
|
48
|
-
updatedAt: new Date(),
|
|
49
|
-
});
|
|
50
|
-
return this.legalDocumentsModel.get(db_1.LEGAL_DOCUMENTS_SINGLETON_ID);
|
|
22
|
+
get() {
|
|
23
|
+
return (0, operator_billing_1.readLegalDocuments)(this.legalDocumentsModel);
|
|
51
24
|
}
|
|
52
25
|
}
|
|
53
26
|
exports.LegalDocumentsController = LegalDocumentsController;
|
|
@@ -61,12 +34,4 @@ __decorate([
|
|
|
61
34
|
__metadata("design:paramtypes", []),
|
|
62
35
|
__metadata("design:returntype", Promise)
|
|
63
36
|
], LegalDocumentsController.prototype, "get", null);
|
|
64
|
-
__decorate([
|
|
65
|
-
(0, interface_api_1.Put)("/"),
|
|
66
|
-
__param(0, (0, auth_1.AuthOwnerOnly)()),
|
|
67
|
-
__param(1, (0, interface_api_1.JSONBody)()),
|
|
68
|
-
__metadata("design:type", Function),
|
|
69
|
-
__metadata("design:paramtypes", [Function, Object]),
|
|
70
|
-
__metadata("design:returntype", Promise)
|
|
71
|
-
], LegalDocumentsController.prototype, "update", null);
|
|
72
37
|
//# sourceMappingURL=legal-documents.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legal-documents.js","sourceRoot":"","sources":["../../../src/routes/public/legal-documents.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"legal-documents.js","sourceRoot":"","sources":["../../../src/routes/public/legal-documents.ts"],"names":[],"mappings":";;;;;;;;;;;;AAUA,sEAEC;AAZD,6DAA4D;AAC5D,6FAA4E;AAC5E,iCAA+C;AAC/C,6DAIgC;AAGzB,KAAK,UAAU,6BAA6B;IACjD,MAAM,IAAA,0CAAuB,EAAC,IAAA,wCAAQ,EAAC,wBAAmB,CAAC,CAAC,CAAC;AAC/D,CAAC;AAOD,MAAa,wBAAyB,SAAQ,IAAA,0BAAU,EACtD,2BAA2B,CAC5B;IAKC,GAAG;QACD,OAAO,IAAA,qCAAkB,EAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;IACtD,CAAC;CACF;AAVD,4DAUC;AANS;IADP,IAAA,qCAAK,EAAC,wBAAmB,CAAC;8BACE,wBAAmB;qEAAC;AAGjD;IADC,IAAA,mBAAG,EAAC,GAAG,CAAC;;;;mDAGR"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PlanModel } from "../../db";
|
|
2
|
+
import { type PublicBillingRules, type PublicPlanCatalog } from "./public-plan-catalog";
|
|
3
|
+
export interface PublicPricing extends PublicPlanCatalog {
|
|
4
|
+
rules: PublicBillingRules;
|
|
5
|
+
defaultPlanId: string | null;
|
|
6
|
+
}
|
|
7
|
+
declare const SaasPricingController_base: import("@antelopejs/interface-api").ControllerClass<object>;
|
|
8
|
+
export declare class SaasPricingController extends SaasPricingController_base {
|
|
9
|
+
planModel: PlanModel;
|
|
10
|
+
getPricing(language: unknown): Promise<PublicPricing>;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.SaasPricingController = void 0;
|
|
16
|
+
const interface_api_1 = require("@antelopejs/interface-api");
|
|
17
|
+
const interface_database_decorators_1 = require("@antelopejs/interface-database-decorators");
|
|
18
|
+
const db_1 = require("../../db");
|
|
19
|
+
const content_language_1 = require("../../utils/content-language");
|
|
20
|
+
const workspaces_1 = require("../../workspaces");
|
|
21
|
+
const public_plan_catalog_1 = require("./public-plan-catalog");
|
|
22
|
+
class SaasPricingController extends (0, interface_api_1.Controller)("/api/saas/pricing") {
|
|
23
|
+
async getPricing(language) {
|
|
24
|
+
const [plans, rules, defaultPlan] = await Promise.all([
|
|
25
|
+
this.planModel.findPubliclyVisible(),
|
|
26
|
+
(0, public_plan_catalog_1.loadPublicBillingRules)(),
|
|
27
|
+
(0, workspaces_1.resolveDefaultPlan)(),
|
|
28
|
+
]);
|
|
29
|
+
const catalog = await (0, public_plan_catalog_1.loadPublicPlanCatalog)(plans, (0, content_language_1.requestLocale)(language));
|
|
30
|
+
const isDefaultOnSale = plans.some((plan) => plan._id === defaultPlan?._id);
|
|
31
|
+
return {
|
|
32
|
+
...catalog,
|
|
33
|
+
rules,
|
|
34
|
+
defaultPlanId: isDefaultOnSale ? (defaultPlan?._id ?? null) : null,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.SaasPricingController = SaasPricingController;
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, interface_database_decorators_1.Model)(db_1.PlanModel),
|
|
41
|
+
__metadata("design:type", db_1.PlanModel)
|
|
42
|
+
], SaasPricingController.prototype, "planModel", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, interface_api_1.Get)("/"),
|
|
45
|
+
__param(0, (0, interface_api_1.Parameter)(content_language_1.CONTENT_LANGUAGE_HEADER, "header")),
|
|
46
|
+
__metadata("design:type", Function),
|
|
47
|
+
__metadata("design:paramtypes", [Object]),
|
|
48
|
+
__metadata("design:returntype", Promise)
|
|
49
|
+
], SaasPricingController.prototype, "getPricing", null);
|
|
50
|
+
//# sourceMappingURL=pricing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pricing.js","sourceRoot":"","sources":["../../../src/routes/public/pricing.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6DAAuE;AACvE,6FAAkE;AAClE,iCAAqC;AACrC,mEAGsC;AACtC,iDAAsD;AACtD,+DAK+B;AAc/B,MAAa,qBAAsB,SAAQ,IAAA,0BAAU,EAAC,mBAAmB,CAAC;IAKlE,AAAN,KAAK,CAAC,UAAU,CACgC,QAAiB;QAE/D,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,WAAW,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;YACpD,IAAI,CAAC,SAAS,CAAC,mBAAmB,EAAE;YACpC,IAAA,4CAAsB,GAAE;YACxB,IAAA,+BAAkB,GAAE;SACrB,CAAC,CAAC;QACH,MAAM,OAAO,GAAG,MAAM,IAAA,2CAAqB,EAAC,KAAK,EAAE,IAAA,gCAAa,EAAC,QAAQ,CAAC,CAAC,CAAC;QAC5E,MAAM,eAAe,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,KAAK,WAAW,EAAE,GAAG,CAAC,CAAC;QAC5E,OAAO;YACL,GAAG,OAAO;YACV,KAAK;YACL,aAAa,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI;SACnE,CAAC;IACJ,CAAC;CACF;AArBD,sDAqBC;AAnBS;IADP,IAAA,qCAAK,EAAC,cAAS,CAAC;8BACE,cAAS;wDAAC;AAGvB;IADL,IAAA,mBAAG,EAAC,GAAG,CAAC;IAEN,WAAA,IAAA,yBAAS,EAAC,0CAAuB,EAAE,QAAQ,CAAC,CAAA;;;;uDAc9C"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type BillingSettings, type Plan, type PlanAudience, type PlanBillingMode, type PlanInterval, type RefundProrataMode } from "../../db";
|
|
2
|
+
import { type TenantPlanFeature } from "../../plans";
|
|
3
|
+
export interface PublicPlan {
|
|
4
|
+
_id: string;
|
|
5
|
+
slug: string;
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
audience: PlanAudience;
|
|
9
|
+
price: number;
|
|
10
|
+
currency: string;
|
|
11
|
+
interval: PlanInterval;
|
|
12
|
+
billingMode: PlanBillingMode;
|
|
13
|
+
trialDays: number;
|
|
14
|
+
maxMembers: number;
|
|
15
|
+
borderColor: string | null;
|
|
16
|
+
borderLabel: string | null;
|
|
17
|
+
order: number;
|
|
18
|
+
inheritsFromPlanId: string | null;
|
|
19
|
+
featureValues: Record<string, unknown>;
|
|
20
|
+
}
|
|
21
|
+
export interface PublicPlanCatalog {
|
|
22
|
+
plans: PublicPlan[];
|
|
23
|
+
features: TenantPlanFeature[];
|
|
24
|
+
}
|
|
25
|
+
export interface PublicMoneyBackGuarantee {
|
|
26
|
+
windowDays: number;
|
|
27
|
+
mode: RefundProrataMode;
|
|
28
|
+
}
|
|
29
|
+
export interface PublicBillingRules {
|
|
30
|
+
moneyBackGuarantee: PublicMoneyBackGuarantee | null;
|
|
31
|
+
dataRetentionDays: number;
|
|
32
|
+
maxFreeWorkspacesPerCard: number;
|
|
33
|
+
}
|
|
34
|
+
export declare function toPublicBillingRules(settings: BillingSettings): PublicBillingRules;
|
|
35
|
+
export declare function findPlanByReference(plans: Plan[], reference: unknown): Plan | undefined;
|
|
36
|
+
export declare function loadPublicPlanCatalog(plans: Plan[], locale: string): Promise<PublicPlanCatalog>;
|
|
37
|
+
export declare function loadPublicBillingRules(): Promise<PublicBillingRules>;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toPublicBillingRules = toPublicBillingRules;
|
|
4
|
+
exports.findPlanByReference = findPlanByReference;
|
|
5
|
+
exports.loadPublicPlanCatalog = loadPublicPlanCatalog;
|
|
6
|
+
exports.loadPublicBillingRules = loadPublicBillingRules;
|
|
7
|
+
const interface_database_decorators_1 = require("@antelopejs/interface-database-decorators");
|
|
8
|
+
const db_1 = require("../../db");
|
|
9
|
+
const plans_1 = require("../../plans");
|
|
10
|
+
const billing_settings_store_1 = require("../../operator-billing/billing-settings-store");
|
|
11
|
+
function toPublicPlan(plan, featureValues) {
|
|
12
|
+
return {
|
|
13
|
+
_id: plan._id,
|
|
14
|
+
slug: plan.slug,
|
|
15
|
+
name: plan.name,
|
|
16
|
+
description: plan.description ?? "",
|
|
17
|
+
audience: plan.audience,
|
|
18
|
+
price: plan.price,
|
|
19
|
+
currency: plan.currency,
|
|
20
|
+
interval: plan.interval,
|
|
21
|
+
billingMode: plan.billingMode,
|
|
22
|
+
trialDays: plan.trialDays ?? 0,
|
|
23
|
+
maxMembers: plan.maxMembers,
|
|
24
|
+
borderColor: plan.borderColor ?? null,
|
|
25
|
+
borderLabel: plan.borderLabel ?? null,
|
|
26
|
+
order: plan.order,
|
|
27
|
+
inheritsFromPlanId: plan.inheritsFromPlanId ?? null,
|
|
28
|
+
featureValues,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function toPublicBillingRules(settings) {
|
|
32
|
+
return {
|
|
33
|
+
moneyBackGuarantee: settings.moneyBackGuaranteeEnabled
|
|
34
|
+
? {
|
|
35
|
+
windowDays: settings.moneyBackGuaranteeWindowDays,
|
|
36
|
+
mode: settings.moneyBackGuaranteeMode,
|
|
37
|
+
}
|
|
38
|
+
: null,
|
|
39
|
+
dataRetentionDays: settings.dataRetentionDaysAfterCancellation,
|
|
40
|
+
maxFreeWorkspacesPerCard: settings.maxFreeWorkspacesPerCard,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function findPlanByReference(plans, reference) {
|
|
44
|
+
if (typeof reference !== "string" || reference.length === 0)
|
|
45
|
+
return;
|
|
46
|
+
return (plans.find((plan) => plan.slug === reference) ??
|
|
47
|
+
plans.find((plan) => plan._id === reference));
|
|
48
|
+
}
|
|
49
|
+
async function loadPublicPlanCatalog(plans, locale) {
|
|
50
|
+
const catalog = await (0, plans_1.buildTenantPlanCatalog)((0, interface_database_decorators_1.GetModel)(db_1.PlanModel), (0, interface_database_decorators_1.GetModel)(db_1.FeatureModel), plans, locale);
|
|
51
|
+
const plansById = new Map(plans.map((plan) => [plan._id, plan]));
|
|
52
|
+
return {
|
|
53
|
+
plans: catalog.plans.flatMap((view) => {
|
|
54
|
+
const plan = plansById.get(view._id);
|
|
55
|
+
return plan ? [toPublicPlan(plan, view.featureValues)] : [];
|
|
56
|
+
}),
|
|
57
|
+
features: catalog.features,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
async function loadPublicBillingRules() {
|
|
61
|
+
return toPublicBillingRules(await (0, billing_settings_store_1.loadBillingSettings)());
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=public-plan-catalog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-plan-catalog.js","sourceRoot":"","sources":["../../../src/routes/public/public-plan-catalog.ts"],"names":[],"mappings":";;AAoGA,oDAaC;AAQD,kDASC;AASD,sDAkBC;AAGD,wDAEC;AAlKD,6FAAqE;AACrE,iCASkB;AAClB,uCAA6E;AAC7E,0FAAoF;AA2DpF,SAAS,YAAY,CACnB,IAAU,EACV,aAAsC;IAEtC,OAAO;QACL,GAAG,EAAE,IAAI,CAAC,GAAG;QACb,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,WAAW,EAAE,IAAI,CAAC,WAAW,IAAI,EAAE;QACnC,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,SAAS,EAAE,IAAI,CAAC,SAAS,IAAI,CAAC;QAC9B,UAAU,EAAE,IAAI,CAAC,UAAU;QAC3B,WAAW,EAAE,IAAI,CAAC,WAAW,IAAI,IAAI;QACrC,WAAW,EAAE,IAAI,CAAC,WAAW,IAAI,IAAI;QACrC,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,kBAAkB,EAAE,IAAI,CAAC,kBAAkB,IAAI,IAAI;QACnD,aAAa;KACd,CAAC;AACJ,CAAC;AAOD,SAAgB,oBAAoB,CAClC,QAAyB;IAEzB,OAAO;QACL,kBAAkB,EAAE,QAAQ,CAAC,yBAAyB;YACpD,C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