@antelopejs/dms-saas 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +190 -0
- package/README.md +658 -0
- package/dist/auth/index.d.ts +3 -0
- package/dist/auth/index.js +20 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/auth/oauth-entry.d.ts +5 -0
- package/dist/auth/oauth-entry.js +10 -0
- package/dist/auth/oauth-entry.js.map +1 -0
- package/dist/auth/plan-permissions-resolver.d.ts +1 -0
- package/dist/auth/plan-permissions-resolver.js +44 -0
- package/dist/auth/plan-permissions-resolver.js.map +1 -0
- package/dist/auth/subscription-access-gate.d.ts +8 -0
- package/dist/auth/subscription-access-gate.js +38 -0
- package/dist/auth/subscription-access-gate.js.map +1 -0
- package/dist/automation/index.d.ts +44 -0
- package/dist/automation/index.js +209 -0
- package/dist/automation/index.js.map +1 -0
- package/dist/billing-state/index.d.ts +5 -0
- package/dist/billing-state/index.js +58 -0
- package/dist/billing-state/index.js.map +1 -0
- package/dist/billing-state/recovery.d.ts +22 -0
- package/dist/billing-state/recovery.js +81 -0
- package/dist/billing-state/recovery.js.map +1 -0
- package/dist/config/dev-mode.d.ts +3 -0
- package/dist/config/dev-mode.js +27 -0
- package/dist/config/dev-mode.js.map +1 -0
- package/dist/config/index.d.ts +2 -0
- package/dist/config/index.js +19 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/runtime.d.ts +6 -0
- package/dist/config/runtime.js +54 -0
- package/dist/config/runtime.js.map +1 -0
- package/dist/crons/auto-suspend-past-due.d.ts +2 -0
- package/dist/crons/auto-suspend-past-due.js +43 -0
- package/dist/crons/auto-suspend-past-due.js.map +1 -0
- package/dist/crons/cleanup-stripe-webhook-events.d.ts +2 -0
- package/dist/crons/cleanup-stripe-webhook-events.js +27 -0
- package/dist/crons/cleanup-stripe-webhook-events.js.map +1 -0
- package/dist/crons/expire-free-workspaces.d.ts +2 -0
- package/dist/crons/expire-free-workspaces.js +36 -0
- package/dist/crons/expire-free-workspaces.js.map +1 -0
- package/dist/crons/hard-delete-cancelled.d.ts +2 -0
- package/dist/crons/hard-delete-cancelled.js +55 -0
- package/dist/crons/hard-delete-cancelled.js.map +1 -0
- package/dist/crons/index.d.ts +8 -0
- package/dist/crons/index.js +25 -0
- package/dist/crons/index.js.map +1 -0
- package/dist/crons/notify-free-workspaces-ending-soon.d.ts +2 -0
- package/dist/crons/notify-free-workspaces-ending-soon.js +69 -0
- package/dist/crons/notify-free-workspaces-ending-soon.js.map +1 -0
- package/dist/crons/recompute-billing-state.d.ts +2 -0
- package/dist/crons/recompute-billing-state.js +19 -0
- package/dist/crons/recompute-billing-state.js.map +1 -0
- package/dist/crons/recompute-segments.d.ts +2 -0
- package/dist/crons/recompute-segments.js +19 -0
- package/dist/crons/recompute-segments.js.map +1 -0
- package/dist/crons/reconcile-workspace-lifecycle.d.ts +2 -0
- package/dist/crons/reconcile-workspace-lifecycle.js +19 -0
- package/dist/crons/reconcile-workspace-lifecycle.js.map +1 -0
- package/dist/crons/register.d.ts +2 -0
- package/dist/crons/register.js +24 -0
- package/dist/crons/register.js.map +1 -0
- package/dist/crons/subscription-notifications.d.ts +2 -0
- package/dist/crons/subscription-notifications.js +55 -0
- package/dist/crons/subscription-notifications.js.map +1 -0
- package/dist/data-api/index.d.ts +2 -0
- package/dist/data-api/index.js +19 -0
- package/dist/data-api/index.js.map +1 -0
- package/dist/data-api/platformOwner/admin-user-invoices.d.ts +27 -0
- package/dist/data-api/platformOwner/admin-user-invoices.js +158 -0
- package/dist/data-api/platformOwner/admin-user-invoices.js.map +1 -0
- package/dist/data-api/platformOwner/admin-user-workspaces.d.ts +22 -0
- package/dist/data-api/platformOwner/admin-user-workspaces.js +97 -0
- package/dist/data-api/platformOwner/admin-user-workspaces.js.map +1 -0
- package/dist/data-api/platformOwner/credit-notes.d.ts +24 -0
- package/dist/data-api/platformOwner/credit-notes.js +133 -0
- package/dist/data-api/platformOwner/credit-notes.js.map +1 -0
- package/dist/data-api/platformOwner/features.d.ts +30 -0
- package/dist/data-api/platformOwner/features.js +141 -0
- package/dist/data-api/platformOwner/features.js.map +1 -0
- package/dist/data-api/platformOwner/hidden-filter.d.ts +1 -0
- package/dist/data-api/platformOwner/hidden-filter.js +18 -0
- package/dist/data-api/platformOwner/hidden-filter.js.map +1 -0
- package/dist/data-api/platformOwner/index.d.ts +12 -0
- package/dist/data-api/platformOwner/index.js +29 -0
- package/dist/data-api/platformOwner/index.js.map +1 -0
- package/dist/data-api/platformOwner/invoice-options.d.ts +7 -0
- package/dist/data-api/platformOwner/invoice-options.js +14 -0
- package/dist/data-api/platformOwner/invoice-options.js.map +1 -0
- package/dist/data-api/platformOwner/invoices.d.ts +26 -0
- package/dist/data-api/platformOwner/invoices.js +147 -0
- package/dist/data-api/platformOwner/invoices.js.map +1 -0
- package/dist/data-api/platformOwner/members.d.ts +24 -0
- package/dist/data-api/platformOwner/members.js +125 -0
- package/dist/data-api/platformOwner/members.js.map +1 -0
- package/dist/data-api/platformOwner/plan-migrations.d.ts +24 -0
- package/dist/data-api/platformOwner/plan-migrations.js +138 -0
- package/dist/data-api/platformOwner/plan-migrations.js.map +1 -0
- package/dist/data-api/platformOwner/plans.d.ts +30 -0
- package/dist/data-api/platformOwner/plans.js +228 -0
- package/dist/data-api/platformOwner/plans.js.map +1 -0
- package/dist/data-api/platformOwner/segments.d.ts +29 -0
- package/dist/data-api/platformOwner/segments.js +223 -0
- package/dist/data-api/platformOwner/segments.js.map +1 -0
- package/dist/data-api/platformOwner/support.d.ts +58 -0
- package/dist/data-api/platformOwner/support.js +111 -0
- package/dist/data-api/platformOwner/support.js.map +1 -0
- package/dist/data-api/platformOwner/users.d.ts +22 -0
- package/dist/data-api/platformOwner/users.js +128 -0
- package/dist/data-api/platformOwner/users.js.map +1 -0
- package/dist/data-api/platformOwner/workspaces.d.ts +22 -0
- package/dist/data-api/platformOwner/workspaces.js +153 -0
- package/dist/data-api/platformOwner/workspaces.js.map +1 -0
- package/dist/data-api/support-fields.d.ts +49 -0
- package/dist/data-api/support-fields.js +166 -0
- package/dist/data-api/support-fields.js.map +1 -0
- package/dist/data-api/support-routes.d.ts +10 -0
- package/dist/data-api/support-routes.js +71 -0
- package/dist/data-api/support-routes.js.map +1 -0
- package/dist/data-api/tenant/index.d.ts +2 -0
- package/dist/data-api/tenant/index.js +19 -0
- package/dist/data-api/tenant/index.js.map +1 -0
- package/dist/data-api/tenant/support.d.ts +39 -0
- package/dist/data-api/tenant/support.js +53 -0
- package/dist/data-api/tenant/support.js.map +1 -0
- package/dist/data-api/tenant/tenant-invoices.d.ts +37 -0
- package/dist/data-api/tenant/tenant-invoices.js +242 -0
- package/dist/data-api/tenant/tenant-invoices.js.map +1 -0
- package/dist/db/index.d.ts +1 -0
- package/dist/db/index.js +18 -0
- package/dist/db/index.js.map +1 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.js +20 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/register.d.ts +1 -0
- package/dist/hooks/register.js +57 -0
- package/dist/hooks/register.js.map +1 -0
- package/dist/hooks/tenant-export.d.ts +2 -0
- package/dist/hooks/tenant-export.js +64 -0
- package/dist/hooks/tenant-export.js.map +1 -0
- package/dist/hooks/tenant-provisioning.d.ts +3 -0
- package/dist/hooks/tenant-provisioning.js +12 -0
- package/dist/hooks/tenant-provisioning.js.map +1 -0
- package/dist/implementations/dms-saas/billing.d.ts +2 -0
- package/dist/implementations/dms-saas/billing.js +49 -0
- package/dist/implementations/dms-saas/billing.js.map +1 -0
- package/dist/implementations/dms-saas/invoice-line-items.d.ts +11 -0
- package/dist/implementations/dms-saas/invoice-line-items.js +24 -0
- package/dist/implementations/dms-saas/invoice-line-items.js.map +1 -0
- package/dist/implementations/dms-saas/pages.d.ts +3 -0
- package/dist/implementations/dms-saas/pages.js +12 -0
- package/dist/implementations/dms-saas/pages.js.map +1 -0
- package/dist/implementations/dms-saas/workspace-lifecycle.d.ts +2 -0
- package/dist/implementations/dms-saas/workspace-lifecycle.js +23 -0
- package/dist/implementations/dms-saas/workspace-lifecycle.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +107 -0
- package/dist/index.js.map +1 -0
- package/dist/invoice-line-items/billing-window.d.ts +3 -0
- package/dist/invoice-line-items/billing-window.js +19 -0
- package/dist/invoice-line-items/billing-window.js.map +1 -0
- package/dist/invoice-line-items/index.d.ts +1 -0
- package/dist/invoice-line-items/index.js +18 -0
- package/dist/invoice-line-items/index.js.map +1 -0
- package/dist/invoice-line-items/injection.d.ts +2 -0
- package/dist/invoice-line-items/injection.js +171 -0
- package/dist/invoice-line-items/injection.js.map +1 -0
- package/dist/notifications/index.d.ts +2 -0
- package/dist/notifications/index.js +19 -0
- package/dist/notifications/index.js.map +1 -0
- package/dist/notifications/recipients.d.ts +14 -0
- package/dist/notifications/recipients.js +87 -0
- package/dist/notifications/recipients.js.map +1 -0
- package/dist/notifications/subjects.d.ts +21 -0
- package/dist/notifications/subjects.js +121 -0
- package/dist/notifications/subjects.js.map +1 -0
- package/dist/operator-actions/commands.d.ts +41 -0
- package/dist/operator-actions/commands.js +233 -0
- package/dist/operator-actions/commands.js.map +1 -0
- package/dist/operator-actions/db/index.d.ts +4 -0
- package/dist/operator-actions/db/index.js +21 -0
- package/dist/operator-actions/db/index.js.map +1 -0
- package/dist/operator-actions/db/lifecycle-delivery.model.d.ts +29 -0
- package/dist/operator-actions/db/lifecycle-delivery.model.js +85 -0
- package/dist/operator-actions/db/lifecycle-delivery.model.js.map +1 -0
- package/dist/operator-actions/db/lifecycle-delivery.table.d.ts +26 -0
- package/dist/operator-actions/db/lifecycle-delivery.table.js +107 -0
- package/dist/operator-actions/db/lifecycle-delivery.table.js.map +1 -0
- package/dist/operator-actions/db/operator-action.model.d.ts +33 -0
- package/dist/operator-actions/db/operator-action.model.js +63 -0
- package/dist/operator-actions/db/operator-action.model.js.map +1 -0
- package/dist/operator-actions/db/operator-action.table.d.ts +21 -0
- package/dist/operator-actions/db/operator-action.table.js +95 -0
- package/dist/operator-actions/db/operator-action.table.js.map +1 -0
- package/dist/operator-actions/index.d.ts +3 -0
- package/dist/operator-actions/index.js +20 -0
- package/dist/operator-actions/index.js.map +1 -0
- package/dist/operator-actions/journal.d.ts +22 -0
- package/dist/operator-actions/journal.js +183 -0
- package/dist/operator-actions/journal.js.map +1 -0
- package/dist/operator-actions/lifecycle-consumers.d.ts +12 -0
- package/dist/operator-actions/lifecycle-consumers.js +28 -0
- package/dist/operator-actions/lifecycle-consumers.js.map +1 -0
- package/dist/operator-actions/lifecycle-outbox.d.ts +19 -0
- package/dist/operator-actions/lifecycle-outbox.js +229 -0
- package/dist/operator-actions/lifecycle-outbox.js.map +1 -0
- package/dist/operator-actions/types.d.ts +11 -0
- package/dist/operator-actions/types.js +3 -0
- package/dist/operator-actions/types.js.map +1 -0
- package/dist/pages/definitions.d.ts +1 -0
- package/dist/pages/definitions.js +18 -0
- package/dist/pages/definitions.js.map +1 -0
- package/dist/pages/index.d.ts +4 -0
- package/dist/pages/index.js +21 -0
- package/dist/pages/index.js.map +1 -0
- package/dist/pages/module.d.ts +5 -0
- package/dist/pages/module.js +15 -0
- package/dist/pages/module.js.map +1 -0
- package/dist/pages/platform/categories.d.ts +6 -0
- package/dist/pages/platform/categories.js +48 -0
- package/dist/pages/platform/categories.js.map +1 -0
- package/dist/pages/platform/credit-notes.d.ts +9 -0
- package/dist/pages/platform/credit-notes.js +40 -0
- package/dist/pages/platform/credit-notes.js.map +1 -0
- package/dist/pages/platform/dashboard.d.ts +10 -0
- package/dist/pages/platform/dashboard.js +95 -0
- package/dist/pages/platform/dashboard.js.map +1 -0
- package/dist/pages/platform/features.d.ts +9 -0
- package/dist/pages/platform/features.js +42 -0
- package/dist/pages/platform/features.js.map +1 -0
- package/dist/pages/platform/index.d.ts +15 -0
- package/dist/pages/platform/index.js +32 -0
- package/dist/pages/platform/index.js.map +1 -0
- package/dist/pages/platform/invoices.d.ts +9 -0
- package/dist/pages/platform/invoices.js +63 -0
- package/dist/pages/platform/invoices.js.map +1 -0
- package/dist/pages/platform/plans/edit.d.ts +17 -0
- package/dist/pages/platform/plans/edit.js +213 -0
- package/dist/pages/platform/plans/edit.js.map +1 -0
- package/dist/pages/platform/plans/index.d.ts +9 -0
- package/dist/pages/platform/plans/index.js +99 -0
- package/dist/pages/platform/plans/index.js.map +1 -0
- package/dist/pages/platform/plans/migrations.d.ts +9 -0
- package/dist/pages/platform/plans/migrations.js +38 -0
- package/dist/pages/platform/plans/migrations.js.map +1 -0
- package/dist/pages/platform/segments/index.d.ts +9 -0
- package/dist/pages/platform/segments/index.js +59 -0
- package/dist/pages/platform/segments/index.js.map +1 -0
- package/dist/pages/platform/settings.d.ts +9 -0
- package/dist/pages/platform/settings.js +147 -0
- package/dist/pages/platform/settings.js.map +1 -0
- package/dist/pages/platform/support.d.ts +9 -0
- package/dist/pages/platform/support.js +29 -0
- package/dist/pages/platform/support.js.map +1 -0
- package/dist/pages/platform/users/detail.d.ts +9 -0
- package/dist/pages/platform/users/detail.js +78 -0
- package/dist/pages/platform/users/detail.js.map +1 -0
- package/dist/pages/platform/users/index.d.ts +9 -0
- package/dist/pages/platform/users/index.js +77 -0
- package/dist/pages/platform/users/index.js.map +1 -0
- package/dist/pages/platform/workspaces/detail.d.ts +9 -0
- package/dist/pages/platform/workspaces/detail.js +120 -0
- package/dist/pages/platform/workspaces/detail.js.map +1 -0
- package/dist/pages/platform/workspaces/index.d.ts +35 -0
- package/dist/pages/platform/workspaces/index.js +300 -0
- package/dist/pages/platform/workspaces/index.js.map +1 -0
- package/dist/pages/public/auth/index.d.ts +1 -0
- package/dist/pages/public/auth/index.js +18 -0
- package/dist/pages/public/auth/index.js.map +1 -0
- package/dist/pages/public/auth/no-workspace.d.ts +9 -0
- package/dist/pages/public/auth/no-workspace.js +26 -0
- package/dist/pages/public/auth/no-workspace.js.map +1 -0
- package/dist/pages/public/index.d.ts +3 -0
- package/dist/pages/public/index.js +20 -0
- package/dist/pages/public/index.js.map +1 -0
- package/dist/pages/public/legal/index.d.ts +3 -0
- package/dist/pages/public/legal/index.js +20 -0
- package/dist/pages/public/legal/index.js.map +1 -0
- package/dist/pages/public/legal/privacy-policy.d.ts +9 -0
- package/dist/pages/public/legal/privacy-policy.js +29 -0
- package/dist/pages/public/legal/privacy-policy.js.map +1 -0
- package/dist/pages/public/legal/terms-and-conditions.d.ts +9 -0
- package/dist/pages/public/legal/terms-and-conditions.js +29 -0
- package/dist/pages/public/legal/terms-and-conditions.js.map +1 -0
- package/dist/pages/public/legal/terms-of-use.d.ts +9 -0
- package/dist/pages/public/legal/terms-of-use.js +29 -0
- package/dist/pages/public/legal/terms-of-use.js.map +1 -0
- package/dist/pages/public/register.d.ts +9 -0
- package/dist/pages/public/register.js +29 -0
- package/dist/pages/public/register.js.map +1 -0
- package/dist/pages/public/screens.d.ts +3 -0
- package/dist/pages/public/screens.js +50 -0
- package/dist/pages/public/screens.js.map +1 -0
- package/dist/pages/tenant/billing.d.ts +15 -0
- package/dist/pages/tenant/billing.js +87 -0
- package/dist/pages/tenant/billing.js.map +1 -0
- package/dist/pages/tenant/data-export.d.ts +10 -0
- package/dist/pages/tenant/data-export.js +32 -0
- package/dist/pages/tenant/data-export.js.map +1 -0
- package/dist/pages/tenant/general.d.ts +10 -0
- package/dist/pages/tenant/general.js +33 -0
- package/dist/pages/tenant/general.js.map +1 -0
- package/dist/pages/tenant/index.d.ts +6 -0
- package/dist/pages/tenant/index.js +23 -0
- package/dist/pages/tenant/index.js.map +1 -0
- package/dist/pages/tenant/members-seat-quota.d.ts +3 -0
- package/dist/pages/tenant/members-seat-quota.js +25 -0
- package/dist/pages/tenant/members-seat-quota.js.map +1 -0
- package/dist/pages/tenant/support.d.ts +9 -0
- package/dist/pages/tenant/support.js +27 -0
- package/dist/pages/tenant/support.js.map +1 -0
- package/dist/pages/tenant/workspace-suspended.d.ts +9 -0
- package/dist/pages/tenant/workspace-suspended.js +26 -0
- package/dist/pages/tenant/workspace-suspended.js.map +1 -0
- package/dist/plan-changes/deferred.d.ts +18 -0
- package/dist/plan-changes/deferred.js +225 -0
- package/dist/plan-changes/deferred.js.map +1 -0
- package/dist/plan-changes/index.d.ts +1 -0
- package/dist/plan-changes/index.js +18 -0
- package/dist/plan-changes/index.js.map +1 -0
- package/dist/plans/index.d.ts +4 -0
- package/dist/plans/index.js +21 -0
- package/dist/plans/index.js.map +1 -0
- package/dist/plans/seat-capacity.d.ts +9 -0
- package/dist/plans/seat-capacity.js +38 -0
- package/dist/plans/seat-capacity.js.map +1 -0
- package/dist/plans/seat-hooks.d.ts +1 -0
- package/dist/plans/seat-hooks.js +80 -0
- package/dist/plans/seat-hooks.js.map +1 -0
- package/dist/plans/seat-sync.d.ts +10 -0
- package/dist/plans/seat-sync.js +23 -0
- package/dist/plans/seat-sync.js.map +1 -0
- package/dist/routes/index.d.ts +3 -0
- package/dist/routes/index.js +20 -0
- package/dist/routes/index.js.map +1 -0
- package/dist/routes/platformOwner/billing-settings.d.ts +20 -0
- package/dist/routes/platformOwner/billing-settings.js +98 -0
- package/dist/routes/platformOwner/billing-settings.js.map +1 -0
- package/dist/routes/platformOwner/credit-notes-issue.d.ts +16 -0
- package/dist/routes/platformOwner/credit-notes-issue.js +56 -0
- package/dist/routes/platformOwner/credit-notes-issue.js.map +1 -0
- package/dist/routes/platformOwner/dashboard.d.ts +62 -0
- package/dist/routes/platformOwner/dashboard.js +310 -0
- package/dist/routes/platformOwner/dashboard.js.map +1 -0
- package/dist/routes/platformOwner/index.d.ts +12 -0
- package/dist/routes/platformOwner/index.js +29 -0
- package/dist/routes/platformOwner/index.js.map +1 -0
- package/dist/routes/platformOwner/plan-deletion.d.ts +30 -0
- package/dist/routes/platformOwner/plan-deletion.js +156 -0
- package/dist/routes/platformOwner/plan-deletion.js.map +1 -0
- package/dist/routes/platformOwner/plans.d.ts +99 -0
- package/dist/routes/platformOwner/plans.js +376 -0
- package/dist/routes/platformOwner/plans.js.map +1 -0
- package/dist/routes/platformOwner/platform-notes.d.ts +36 -0
- package/dist/routes/platformOwner/platform-notes.js +149 -0
- package/dist/routes/platformOwner/platform-notes.js.map +1 -0
- package/dist/routes/platformOwner/platform-owners.d.ts +12 -0
- package/dist/routes/platformOwner/platform-owners.js +77 -0
- package/dist/routes/platformOwner/platform-owners.js.map +1 -0
- package/dist/routes/platformOwner/segments.d.ts +24 -0
- package/dist/routes/platformOwner/segments.js +174 -0
- package/dist/routes/platformOwner/segments.js.map +1 -0
- package/dist/routes/platformOwner/support.d.ts +21 -0
- package/dist/routes/platformOwner/support.js +180 -0
- package/dist/routes/platformOwner/support.js.map +1 -0
- package/dist/routes/platformOwner/users-detail.d.ts +26 -0
- package/dist/routes/platformOwner/users-detail.js +82 -0
- package/dist/routes/platformOwner/users-detail.js.map +1 -0
- package/dist/routes/platformOwner/workspace-operator-actions.d.ts +34 -0
- package/dist/routes/platformOwner/workspace-operator-actions.js +183 -0
- package/dist/routes/platformOwner/workspace-operator-actions.js.map +1 -0
- package/dist/routes/platformOwner/workspaces-admin.d.ts +27 -0
- package/dist/routes/platformOwner/workspaces-admin.js +140 -0
- package/dist/routes/platformOwner/workspaces-admin.js.map +1 -0
- package/dist/routes/public/index.d.ts +3 -0
- package/dist/routes/public/index.js +20 -0
- package/dist/routes/public/index.js.map +1 -0
- package/dist/routes/public/legal-documents.d.ts +15 -0
- package/dist/routes/public/legal-documents.js +72 -0
- package/dist/routes/public/legal-documents.js.map +1 -0
- package/dist/routes/public/register.d.ts +48 -0
- package/dist/routes/public/register.js +193 -0
- package/dist/routes/public/register.js.map +1 -0
- package/dist/routes/public/webhooks/index.d.ts +1 -0
- package/dist/routes/public/webhooks/index.js +18 -0
- package/dist/routes/public/webhooks/index.js.map +1 -0
- package/dist/routes/public/webhooks/stripe.d.ts +7 -0
- package/dist/routes/public/webhooks/stripe.js +41 -0
- package/dist/routes/public/webhooks/stripe.js.map +1 -0
- package/dist/routes/tenant/billing-portal.d.ts +31 -0
- package/dist/routes/tenant/billing-portal.js +117 -0
- package/dist/routes/tenant/billing-portal.js.map +1 -0
- package/dist/routes/tenant/billing-self-refund.d.ts +18 -0
- package/dist/routes/tenant/billing-self-refund.js +199 -0
- package/dist/routes/tenant/billing-self-refund.js.map +1 -0
- package/dist/routes/tenant/data-export.d.ts +16 -0
- package/dist/routes/tenant/data-export.js +102 -0
- package/dist/routes/tenant/data-export.js.map +1 -0
- package/dist/routes/tenant/index.d.ts +9 -0
- package/dist/routes/tenant/index.js +26 -0
- package/dist/routes/tenant/index.js.map +1 -0
- package/dist/routes/tenant/support.d.ts +27 -0
- package/dist/routes/tenant/support.js +185 -0
- package/dist/routes/tenant/support.js.map +1 -0
- package/dist/routes/tenant/tenant-billing.d.ts +26 -0
- package/dist/routes/tenant/tenant-billing.js +148 -0
- package/dist/routes/tenant/tenant-billing.js.map +1 -0
- package/dist/routes/tenant/tenant-plan-ops.d.ts +57 -0
- package/dist/routes/tenant/tenant-plan-ops.js +244 -0
- package/dist/routes/tenant/tenant-plan-ops.js.map +1 -0
- package/dist/routes/tenant/tenant-plan.d.ts +19 -0
- package/dist/routes/tenant/tenant-plan.js +172 -0
- package/dist/routes/tenant/tenant-plan.js.map +1 -0
- package/dist/routes/tenant/tenant-seats.d.ts +17 -0
- package/dist/routes/tenant/tenant-seats.js +58 -0
- package/dist/routes/tenant/tenant-seats.js.map +1 -0
- package/dist/routes/tenant/workspaces.d.ts +78 -0
- package/dist/routes/tenant/workspaces.js +301 -0
- package/dist/routes/tenant/workspaces.js.map +1 -0
- package/dist/stripe/client.d.ts +6 -0
- package/dist/stripe/client.js +44 -0
- package/dist/stripe/client.js.map +1 -0
- package/dist/stripe/customer-balance.d.ts +12 -0
- package/dist/stripe/customer-balance.js +16 -0
- package/dist/stripe/customer-balance.js.map +1 -0
- package/dist/stripe/customer-billing.d.ts +33 -0
- package/dist/stripe/customer-billing.js +140 -0
- package/dist/stripe/customer-billing.js.map +1 -0
- package/dist/stripe/index.d.ts +11 -0
- package/dist/stripe/index.js +28 -0
- package/dist/stripe/index.js.map +1 -0
- package/dist/stripe/plan-schedule.d.ts +9 -0
- package/dist/stripe/plan-schedule.js +83 -0
- package/dist/stripe/plan-schedule.js.map +1 -0
- package/dist/stripe/proration.d.ts +2 -0
- package/dist/stripe/proration.js +19 -0
- package/dist/stripe/proration.js.map +1 -0
- package/dist/stripe/sync-plan.d.ts +2 -0
- package/dist/stripe/sync-plan.js +66 -0
- package/dist/stripe/sync-plan.js.map +1 -0
- package/dist/stripe/webhook-checkout.d.ts +3 -0
- package/dist/stripe/webhook-checkout.js +157 -0
- package/dist/stripe/webhook-checkout.js.map +1 -0
- package/dist/stripe/webhook-credit-notes.d.ts +3 -0
- package/dist/stripe/webhook-credit-notes.js +192 -0
- package/dist/stripe/webhook-credit-notes.js.map +1 -0
- package/dist/stripe/webhook-dispatch.d.ts +2 -0
- package/dist/stripe/webhook-dispatch.js +45 -0
- package/dist/stripe/webhook-dispatch.js.map +1 -0
- package/dist/stripe/webhook-handlers.d.ts +11 -0
- package/dist/stripe/webhook-handlers.js +318 -0
- package/dist/stripe/webhook-handlers.js.map +1 -0
- package/dist/stripe/webhook-shared.d.ts +28 -0
- package/dist/stripe/webhook-shared.js +126 -0
- package/dist/stripe/webhook-shared.js.map +1 -0
- package/dist/stripe/workspace-checkout.d.ts +29 -0
- package/dist/stripe/workspace-checkout.js +106 -0
- package/dist/stripe/workspace-checkout.js.map +1 -0
- package/dist/support/admissions.d.ts +36 -0
- package/dist/support/admissions.js +136 -0
- package/dist/support/admissions.js.map +1 -0
- package/dist/support/attachments.d.ts +12 -0
- package/dist/support/attachments.js +56 -0
- package/dist/support/attachments.js.map +1 -0
- package/dist/support/config.d.ts +19 -0
- package/dist/support/config.js +75 -0
- package/dist/support/config.js.map +1 -0
- package/dist/support/index.d.ts +6 -0
- package/dist/support/index.js +23 -0
- package/dist/support/index.js.map +1 -0
- package/dist/support/operations.d.ts +51 -0
- package/dist/support/operations.js +109 -0
- package/dist/support/operations.js.map +1 -0
- package/dist/support/plans.d.ts +6 -0
- package/dist/support/plans.js +130 -0
- package/dist/support/plans.js.map +1 -0
- package/dist/support/publications.d.ts +8 -0
- package/dist/support/publications.js +106 -0
- package/dist/support/publications.js.map +1 -0
- package/dist/support/recovery.d.ts +7 -0
- package/dist/support/recovery.js +43 -0
- package/dist/support/recovery.js.map +1 -0
- package/dist/support/service.d.ts +51 -0
- package/dist/support/service.js +143 -0
- package/dist/support/service.js.map +1 -0
- package/dist/support/transitions.d.ts +4 -0
- package/dist/support/transitions.js +29 -0
- package/dist/support/transitions.js.map +1 -0
- package/dist/support/uploads.d.ts +39 -0
- package/dist/support/uploads.js +115 -0
- package/dist/support/uploads.js.map +1 -0
- package/dist/support/validation.d.ts +15 -0
- package/dist/support/validation.js +54 -0
- package/dist/support/validation.js.map +1 -0
- package/dist/types/config.d.ts +16 -0
- package/dist/types/config.js +3 -0
- package/dist/types/config.js.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +18 -0
- package/dist/types/index.js.map +1 -0
- package/dist/utils/billing-document-type.d.ts +3 -0
- package/dist/utils/billing-document-type.js +18 -0
- package/dist/utils/billing-document-type.js.map +1 -0
- package/dist/utils/billing-period-type.d.ts +3 -0
- package/dist/utils/billing-period-type.js +18 -0
- package/dist/utils/billing-period-type.js.map +1 -0
- package/dist/utils/email-hash.d.ts +1 -0
- package/dist/utils/email-hash.js +8 -0
- package/dist/utils/email-hash.js.map +1 -0
- package/dist/utils/export-dataset-stream.d.ts +19 -0
- package/dist/utils/export-dataset-stream.js +40 -0
- package/dist/utils/export-dataset-stream.js.map +1 -0
- package/dist/utils/index.d.ts +15 -0
- package/dist/utils/index.js +32 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/invoice-lines-type.d.ts +27 -0
- package/dist/utils/invoice-lines-type.js +34 -0
- package/dist/utils/invoice-lines-type.js.map +1 -0
- package/dist/utils/money-cents-type.d.ts +3 -0
- package/dist/utils/money-cents-type.js +18 -0
- package/dist/utils/money-cents-type.js.map +1 -0
- package/dist/utils/pagination.d.ts +22 -0
- package/dist/utils/pagination.js +35 -0
- package/dist/utils/pagination.js.map +1 -0
- package/dist/utils/parse-future-date.d.ts +1 -0
- package/dist/utils/parse-future-date.js +15 -0
- package/dist/utils/parse-future-date.js.map +1 -0
- package/dist/utils/row-instance.d.ts +1 -0
- package/dist/utils/row-instance.js +8 -0
- package/dist/utils/row-instance.js.map +1 -0
- package/dist/utils/segment-conditions-type.d.ts +33 -0
- package/dist/utils/segment-conditions-type.js +86 -0
- package/dist/utils/segment-conditions-type.js.map +1 -0
- package/dist/utils/segment-evaluator.d.ts +3 -0
- package/dist/utils/segment-evaluator.js +117 -0
- package/dist/utils/segment-evaluator.js.map +1 -0
- package/dist/utils/segment-fields.d.ts +19 -0
- package/dist/utils/segment-fields.js +212 -0
- package/dist/utils/segment-fields.js.map +1 -0
- package/dist/utils/segment-matching.d.ts +56 -0
- package/dist/utils/segment-matching.js +200 -0
- package/dist/utils/segment-matching.js.map +1 -0
- package/dist/utils/segment-name-cache.d.ts +2 -0
- package/dist/utils/segment-name-cache.js +22 -0
- package/dist/utils/segment-name-cache.js.map +1 -0
- package/dist/utils/time.d.ts +3 -0
- package/dist/utils/time.js +10 -0
- package/dist/utils/time.js.map +1 -0
- package/dist/workers/index.d.ts +1 -0
- package/dist/workers/index.js +18 -0
- package/dist/workers/index.js.map +1 -0
- package/dist/workers/plan-migration.d.ts +4 -0
- package/dist/workers/plan-migration.js +206 -0
- package/dist/workers/plan-migration.js.map +1 -0
- package/dist/workspaces/billing-profile.d.ts +3 -0
- package/dist/workspaces/billing-profile.js +55 -0
- package/dist/workspaces/billing-profile.js.map +1 -0
- package/dist/workspaces/complimentary.d.ts +7 -0
- package/dist/workspaces/complimentary.js +47 -0
- package/dist/workspaces/complimentary.js.map +1 -0
- package/dist/workspaces/db/card-capacity.model.d.ts +30 -0
- package/dist/workspaces/db/card-capacity.model.js +98 -0
- package/dist/workspaces/db/card-capacity.model.js.map +1 -0
- package/dist/workspaces/db/card-capacity.table.d.ts +11 -0
- package/dist/workspaces/db/card-capacity.table.js +34 -0
- package/dist/workspaces/db/card-capacity.table.js.map +1 -0
- package/dist/workspaces/db/provisioning-attempt.model.d.ts +24 -0
- package/dist/workspaces/db/provisioning-attempt.model.js +33 -0
- package/dist/workspaces/db/provisioning-attempt.model.js.map +1 -0
- package/dist/workspaces/db/provisioning-attempt.table.d.ts +18 -0
- package/dist/workspaces/db/provisioning-attempt.table.js +77 -0
- package/dist/workspaces/db/provisioning-attempt.table.js.map +1 -0
- package/dist/workspaces/db/trial-identity.model.d.ts +25 -0
- package/dist/workspaces/db/trial-identity.model.js +62 -0
- package/dist/workspaces/db/trial-identity.model.js.map +1 -0
- package/dist/workspaces/db/trial-identity.table.d.ts +7 -0
- package/dist/workspaces/db/trial-identity.table.js +34 -0
- package/dist/workspaces/db/trial-identity.table.js.map +1 -0
- package/dist/workspaces/deletion.d.ts +8 -0
- package/dist/workspaces/deletion.js +75 -0
- package/dist/workspaces/deletion.js.map +1 -0
- package/dist/workspaces/free-workspace-guard.d.ts +11 -0
- package/dist/workspaces/free-workspace-guard.js +96 -0
- package/dist/workspaces/free-workspace-guard.js.map +1 -0
- package/dist/workspaces/index.d.ts +6 -0
- package/dist/workspaces/index.js +23 -0
- package/dist/workspaces/index.js.map +1 -0
- package/dist/workspaces/provisioning-rollback.d.ts +2 -0
- package/dist/workspaces/provisioning-rollback.js +78 -0
- package/dist/workspaces/provisioning-rollback.js.map +1 -0
- package/dist/workspaces/provisioning-state.d.ts +6 -0
- package/dist/workspaces/provisioning-state.js +91 -0
- package/dist/workspaces/provisioning-state.js.map +1 -0
- package/dist/workspaces/provisioning.d.ts +49 -0
- package/dist/workspaces/provisioning.js +263 -0
- package/dist/workspaces/provisioning.js.map +1 -0
- package/dist/workspaces/registration-extras.d.ts +1 -0
- package/dist/workspaces/registration-extras.js +50 -0
- package/dist/workspaces/registration-extras.js.map +1 -0
- package/dist/workspaces/suspension.d.ts +13 -0
- package/dist/workspaces/suspension.js +124 -0
- package/dist/workspaces/suspension.js.map +1 -0
- package/frontend-vue/.editorconfig +12 -0
- package/frontend-vue/.prettierrc +11 -0
- package/frontend-vue/app/build/.gitkeep +0 -0
- package/frontend-vue/app/components/CardGrid.vue +77 -0
- package/frontend-vue/app/components/CustomerPortalButton.vue +45 -0
- package/frontend-vue/app/components/DataExport.vue +300 -0
- package/frontend-vue/app/components/DeletePlanModal.vue +223 -0
- package/frontend-vue/app/components/FreeAccessBanner.vue +70 -0
- package/frontend-vue/app/components/InvoiceLines.vue +57 -0
- package/frontend-vue/app/components/IssueCreditNoteModal.vue +128 -0
- package/frontend-vue/app/components/LegalLayout.vue +63 -0
- package/frontend-vue/app/components/LoadFailure.vue +25 -0
- package/frontend-vue/app/components/PastDueAlert.vue +96 -0
- package/frontend-vue/app/components/PaymentMethodCard.vue +86 -0
- package/frontend-vue/app/components/PlanCard.vue +294 -0
- package/frontend-vue/app/components/PlanCardPublic.vue +59 -0
- package/frontend-vue/app/components/PlanCardsDisplay.vue +127 -0
- package/frontend-vue/app/components/PlanComparisonModal.vue +213 -0
- package/frontend-vue/app/components/PlanInheritancePicker.vue +329 -0
- package/frontend-vue/app/components/PlatformNotes.vue +281 -0
- package/frontend-vue/app/components/PlatformSupport.vue +461 -0
- package/frontend-vue/app/components/RecentActivity.vue +72 -0
- package/frontend-vue/app/components/RefundButton.vue +126 -0
- package/frontend-vue/app/components/Register.vue +174 -0
- package/frontend-vue/app/components/RegistrationClosed.vue +15 -0
- package/frontend-vue/app/components/SeatQuotaBanner.vue +78 -0
- package/frontend-vue/app/components/SegmentConditionsBuilder.vue +176 -0
- package/frontend-vue/app/components/SegmentConditionsGroup.vue +494 -0
- package/frontend-vue/app/components/SupportAttachmentUpload.vue +140 -0
- package/frontend-vue/app/components/SupportThreadHistory.vue +139 -0
- package/frontend-vue/app/components/TenantBillingForm.vue +208 -0
- package/frontend-vue/app/components/TenantPlanCard.vue +223 -0
- package/frontend-vue/app/components/TenantSupport.vue +415 -0
- package/frontend-vue/app/components/UserSummaryCard.vue +166 -0
- package/frontend-vue/app/components/WorkspaceBillingInfo.vue +68 -0
- package/frontend-vue/app/components/WorkspaceCompAccessButton.vue +198 -0
- package/frontend-vue/app/components/WorkspaceCreateModal.vue +256 -0
- package/frontend-vue/app/components/WorkspaceDangerZone.vue +146 -0
- package/frontend-vue/app/components/WorkspaceDetailHeader.vue +24 -0
- package/frontend-vue/app/components/WorkspaceIdentity.vue +99 -0
- package/frontend-vue/app/components/WorkspaceJoinButton.vue +50 -0
- package/frontend-vue/app/components/WorkspaceOperatorActions.vue +340 -0
- package/frontend-vue/app/components/WorkspaceSummaryCard.vue +161 -0
- package/frontend-vue/app/components/WorkspaceSuspendButton.vue +167 -0
- package/frontend-vue/app/components/WorkspaceSuspended.vue +164 -0
- package/frontend-vue/app/components/WorkspaceSwitcherWidget.vue +247 -0
- package/frontend-vue/app/composables/useApiErrorMessage.ts +35 -0
- package/frontend-vue/app/composables/useBillingCountries.ts +54 -0
- package/frontend-vue/app/composables/useBillingDocumentType.ts +7 -0
- package/frontend-vue/app/composables/useBillingStatus.ts +39 -0
- package/frontend-vue/app/composables/useCurrentWorkspace.ts +43 -0
- package/frontend-vue/app/composables/useDetailRefresh.ts +17 -0
- package/frontend-vue/app/composables/useExportHistory.ts +143 -0
- package/frontend-vue/app/composables/useInvoiceLines.ts +22 -0
- package/frontend-vue/app/composables/useMoneyFormat.ts +49 -0
- package/frontend-vue/app/composables/useMyWorkspaces.ts +47 -0
- package/frontend-vue/app/composables/usePlanFeatureFormat.ts +60 -0
- package/frontend-vue/app/composables/usePlanIntervalLabel.ts +30 -0
- package/frontend-vue/app/composables/useSaasRegistration.ts +522 -0
- package/frontend-vue/app/composables/useSeatQuota.ts +18 -0
- package/frontend-vue/app/composables/useSharedRequest.ts +54 -0
- package/frontend-vue/app/composables/useStripePaymentElement.ts +74 -0
- package/frontend-vue/app/composables/useSubscriptionAccess.ts +12 -0
- package/frontend-vue/app/composables/useSupportRequest.ts +74 -0
- package/frontend-vue/app/composables/useTenantPlan.ts +95 -0
- package/frontend-vue/app/composables/useTenantSwitch.ts +22 -0
- package/frontend-vue/app/composables/useWorkspaceAccessCache.ts +25 -0
- package/frontend-vue/app/custom-pages/auth/no-workspace.vue +495 -0
- package/frontend-vue/app/middleware/workspace-suspended.global.ts +56 -0
- package/frontend-vue/app/plugins/auth-links.ts +24 -0
- package/frontend-vue/app/plugins/billing-data-types.ts +62 -0
- package/frontend-vue/app/plugins/footer-links.ts +36 -0
- package/frontend-vue/app/plugins/plan-cards-display.client.ts +16 -0
- package/frontend-vue/app/plugins/segment-conditions-data-type.client.ts +122 -0
- package/frontend-vue/app/plugins/sidebar-widgets.ts +13 -0
- package/frontend-vue/app/types/support.ts +123 -0
- package/frontend-vue/dms.frontend.ts +68 -0
- package/frontend-vue/eslint.config.mjs +13 -0
- package/frontend-vue/i18n/locales/saas-en-GB.json +1285 -0
- package/frontend-vue/i18n/locales/saas-fr-FR.json +1285 -0
- package/frontend-vue/package.json +27 -0
- package/frontend-vue/pnpm-lock.yaml +4948 -0
- package/frontend-vue/pnpm-workspace.yaml +2 -0
- package/frontend-vue/server/routes/auth/finalize-workspace.post.ts +61 -0
- package/package.json +91 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { User } from "@antelopejs/interface-dms/auth/db";
|
|
2
|
+
import { InvoiceModel } from "../../db";
|
|
3
|
+
interface IssueCreditNoteBody {
|
|
4
|
+
invoiceId: string;
|
|
5
|
+
amount: number;
|
|
6
|
+
mode: "credit_to_balance" | "refund";
|
|
7
|
+
reason: string;
|
|
8
|
+
}
|
|
9
|
+
declare const SaasCreditNotesIssueController_base: import("@antelopejs/interface-api").ControllerClass<object>;
|
|
10
|
+
export declare class SaasCreditNotesIssueController extends SaasCreditNotesIssueController_base {
|
|
11
|
+
issue(_user: User, body: IssueCreditNoteBody, invoiceModel: InvoiceModel): Promise<{
|
|
12
|
+
stripeCreditNoteId: string;
|
|
13
|
+
number: string;
|
|
14
|
+
}>;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,56 @@
|
|
|
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.SaasCreditNotesIssueController = void 0;
|
|
16
|
+
const interface_api_1 = require("@antelopejs/interface-api");
|
|
17
|
+
const interface_api_util_1 = require("@antelopejs/interface-api-util");
|
|
18
|
+
const interface_database_1 = require("@antelopejs/interface-database");
|
|
19
|
+
const interface_database_decorators_1 = require("@antelopejs/interface-database-decorators");
|
|
20
|
+
const auth_1 = require("@antelopejs/interface-dms/auth");
|
|
21
|
+
const db_1 = require("../../db");
|
|
22
|
+
const stripe_1 = require("../../stripe");
|
|
23
|
+
const HTTP_BAD_REQUEST = 400;
|
|
24
|
+
const HTTP_NOT_FOUND = 404;
|
|
25
|
+
class SaasCreditNotesIssueController extends (0, interface_api_1.Controller)("/api/saas/credit-notes") {
|
|
26
|
+
async issue(_user, body, invoiceModel) {
|
|
27
|
+
const invoice = await invoiceModel.get(body.invoiceId);
|
|
28
|
+
(0, interface_api_util_1.assert)(invoice && invoice.documentType !== "credit_note", HTTP_NOT_FOUND, "saas.errors.invoice.not_found");
|
|
29
|
+
(0, interface_api_util_1.assert)(body.amount > 0 && body.amount <= invoice.amount, HTTP_BAD_REQUEST, "saas.errors.invoice.invalid_amount");
|
|
30
|
+
const stripe = (0, stripe_1.getStripeClient)();
|
|
31
|
+
const isRefund = body.mode === "refund";
|
|
32
|
+
const creditNote = await stripe.creditNotes.create({
|
|
33
|
+
invoice: invoice.stripeInvoiceId,
|
|
34
|
+
amount: body.amount,
|
|
35
|
+
refund_amount: isRefund ? body.amount : undefined,
|
|
36
|
+
credit_amount: isRefund ? undefined : body.amount,
|
|
37
|
+
memo: body.reason,
|
|
38
|
+
reason: "order_change",
|
|
39
|
+
});
|
|
40
|
+
return {
|
|
41
|
+
stripeCreditNoteId: creditNote.id,
|
|
42
|
+
number: creditNote.number,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.SaasCreditNotesIssueController = SaasCreditNotesIssueController;
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, interface_api_1.Post)("/issue"),
|
|
49
|
+
__param(0, (0, auth_1.AuthOwnerOnly)()),
|
|
50
|
+
__param(1, (0, interface_api_1.JSONBody)()),
|
|
51
|
+
__param(2, (0, interface_database_decorators_1.Model)(db_1.InvoiceModel, interface_database_1.CROSS_INSTANCE)),
|
|
52
|
+
__metadata("design:type", Function),
|
|
53
|
+
__metadata("design:paramtypes", [Function, Object, db_1.InvoiceModel]),
|
|
54
|
+
__metadata("design:returntype", Promise)
|
|
55
|
+
], SaasCreditNotesIssueController.prototype, "issue", null);
|
|
56
|
+
//# sourceMappingURL=credit-notes-issue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credit-notes-issue.js","sourceRoot":"","sources":["../../../src/routes/platformOwner/credit-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YACjC,MAAM,EAAE,UAAU,CAAC,MAAM;SAC1B,CAAC;IACJ,CAAC;CACF;AAnCD,wEAmCC;AA/BO;IADL,IAAA,oBAAI,EAAC,QAAQ,CAAC;IAEZ,WAAA,IAAA,oBAAa,GAAE,CAAA;IACf,WAAA,IAAA,wBAAQ,GAAE,CAAA;IACV,WAAA,IAAA,qCAAK,EAAC,iBAAY,EAAE,mCAAc,CAAC,CAAA;;uDAAe,iBAAY;;2DA2BhE"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { TenantModel } from "@antelopejs/interface-dms/db";
|
|
2
|
+
import type { User } from "@antelopejs/interface-dms/auth/db";
|
|
3
|
+
import { InvoiceModel, PlanModel, TenantBillingStateModel, TenantSubscriptionModel } from "../../db";
|
|
4
|
+
interface TopListItem {
|
|
5
|
+
id: string;
|
|
6
|
+
title: string;
|
|
7
|
+
value: number;
|
|
8
|
+
}
|
|
9
|
+
interface ChartPoint {
|
|
10
|
+
x: string;
|
|
11
|
+
y: number;
|
|
12
|
+
}
|
|
13
|
+
interface ChartSeries {
|
|
14
|
+
name: string;
|
|
15
|
+
data: ChartPoint[];
|
|
16
|
+
}
|
|
17
|
+
interface DonutSlice {
|
|
18
|
+
label: string;
|
|
19
|
+
value: number;
|
|
20
|
+
}
|
|
21
|
+
interface ActivityEntry {
|
|
22
|
+
id: string;
|
|
23
|
+
icon: string;
|
|
24
|
+
iconColor: string;
|
|
25
|
+
title: string;
|
|
26
|
+
subtitle: string;
|
|
27
|
+
timestamp: string;
|
|
28
|
+
}
|
|
29
|
+
declare const SaasDashboardController_base: import("@antelopejs/interface-api").ControllerClass<object>;
|
|
30
|
+
export declare class SaasDashboardController extends SaasDashboardController_base {
|
|
31
|
+
tenantModel: TenantModel;
|
|
32
|
+
tenantSubscriptionModel: TenantSubscriptionModel;
|
|
33
|
+
planModel: PlanModel;
|
|
34
|
+
invoiceModel: InvoiceModel;
|
|
35
|
+
tenantBillingStateModel: TenantBillingStateModel;
|
|
36
|
+
kpiWorkspaces(_user: User): Promise<{
|
|
37
|
+
value: number;
|
|
38
|
+
}>;
|
|
39
|
+
kpiMrr(_user: User): Promise<{
|
|
40
|
+
value: number;
|
|
41
|
+
}>;
|
|
42
|
+
kpiActive(_user: User): Promise<{
|
|
43
|
+
value: number;
|
|
44
|
+
}>;
|
|
45
|
+
kpiOpen(_user: User): Promise<{
|
|
46
|
+
value: number;
|
|
47
|
+
}>;
|
|
48
|
+
kpiStateActive(_user: User): Promise<{
|
|
49
|
+
value: number;
|
|
50
|
+
}>;
|
|
51
|
+
kpiStateFree(_user: User): Promise<{
|
|
52
|
+
value: number;
|
|
53
|
+
}>;
|
|
54
|
+
kpiStatePastDue(_user: User): Promise<{
|
|
55
|
+
value: number;
|
|
56
|
+
}>;
|
|
57
|
+
topPlans(_user: User): Promise<TopListItem[]>;
|
|
58
|
+
chartRevenue(_user: User): Promise<ChartSeries[]>;
|
|
59
|
+
chartSubscriptionsByStatus(_user: User): Promise<DonutSlice[]>;
|
|
60
|
+
recentActivity(_user: User): Promise<ActivityEntry[]>;
|
|
61
|
+
}
|
|
62
|
+
export {};
|
|
@@ -0,0 +1,310 @@
|
|
|
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.SaasDashboardController = void 0;
|
|
16
|
+
const interface_api_1 = require("@antelopejs/interface-api");
|
|
17
|
+
const interface_database_1 = require("@antelopejs/interface-database");
|
|
18
|
+
const interface_database_decorators_1 = require("@antelopejs/interface-database-decorators");
|
|
19
|
+
const db_1 = require("@antelopejs/interface-dms/db");
|
|
20
|
+
const auth_1 = require("@antelopejs/interface-dms/auth");
|
|
21
|
+
const db_2 = require("../../db");
|
|
22
|
+
const time_1 = require("../../utils/time");
|
|
23
|
+
const ACTIVE_STATUS = "active";
|
|
24
|
+
const TRIALING_STATUS = "trialing";
|
|
25
|
+
const FREE_STATUS = "free";
|
|
26
|
+
const PAST_DUE_STATUS = "past_due";
|
|
27
|
+
const OPEN_STATUS = "open";
|
|
28
|
+
const PAID_STATUS = "paid";
|
|
29
|
+
const PRICE_DIVIDER = 100;
|
|
30
|
+
const REVENUE_BUCKETS = 12;
|
|
31
|
+
const DAYS_PER_MONTH = 30;
|
|
32
|
+
const TOP_PLANS_LIMIT = 10;
|
|
33
|
+
const RECENT_ACTIVITY_LIMIT = 12;
|
|
34
|
+
const CURRENCY_SYMBOL = "€";
|
|
35
|
+
const STATUS_LABELS = {
|
|
36
|
+
active: "Active",
|
|
37
|
+
trialing: "Trialing",
|
|
38
|
+
past_due: "Past due",
|
|
39
|
+
suspended: "Suspended",
|
|
40
|
+
cancelled: "Cancelled",
|
|
41
|
+
pending_payment: "Pending payment",
|
|
42
|
+
};
|
|
43
|
+
const UNKNOWN_STATUS_LABEL = "Unknown";
|
|
44
|
+
function formatStatusLabel(status) {
|
|
45
|
+
return STATUS_LABELS[status] ?? UNKNOWN_STATUS_LABEL;
|
|
46
|
+
}
|
|
47
|
+
function toTimestamp(value) {
|
|
48
|
+
if (value instanceof Date)
|
|
49
|
+
return value.toISOString();
|
|
50
|
+
if (typeof value === "string")
|
|
51
|
+
return value;
|
|
52
|
+
return "";
|
|
53
|
+
}
|
|
54
|
+
function formatInvoiceAmount(amount) {
|
|
55
|
+
return `${CURRENCY_SYMBOL}${((amount ?? 0) / PRICE_DIVIDER).toFixed(2)}`;
|
|
56
|
+
}
|
|
57
|
+
class SaasDashboardController extends (0, interface_api_1.Controller)("/api/saas/dashboard") {
|
|
58
|
+
async kpiWorkspaces(_user) {
|
|
59
|
+
const value = await this.tenantModel.table.count().run();
|
|
60
|
+
return { value };
|
|
61
|
+
}
|
|
62
|
+
async kpiMrr(_user) {
|
|
63
|
+
const rows = await this.tenantSubscriptionModel.table
|
|
64
|
+
.getAll([ACTIVE_STATUS, TRIALING_STATUS], "status")
|
|
65
|
+
.pluck("planId")
|
|
66
|
+
.run();
|
|
67
|
+
const planPriceCache = new Map();
|
|
68
|
+
let total = 0;
|
|
69
|
+
for (const row of rows) {
|
|
70
|
+
const planId = row.planId;
|
|
71
|
+
if (!planId)
|
|
72
|
+
continue;
|
|
73
|
+
let price = planPriceCache.get(planId);
|
|
74
|
+
if (price === undefined) {
|
|
75
|
+
const plan = await this.planModel.get(planId);
|
|
76
|
+
price = plan?.price ?? null;
|
|
77
|
+
planPriceCache.set(planId, price);
|
|
78
|
+
}
|
|
79
|
+
if (price !== null)
|
|
80
|
+
total += price;
|
|
81
|
+
}
|
|
82
|
+
return { value: Math.round(total * PRICE_DIVIDER) / PRICE_DIVIDER };
|
|
83
|
+
}
|
|
84
|
+
async kpiActive(_user) {
|
|
85
|
+
const value = await this.tenantSubscriptionModel.table
|
|
86
|
+
.getAll([ACTIVE_STATUS, TRIALING_STATUS], "status")
|
|
87
|
+
.count()
|
|
88
|
+
.run();
|
|
89
|
+
return { value };
|
|
90
|
+
}
|
|
91
|
+
async kpiOpen(_user) {
|
|
92
|
+
const value = await this.invoiceModel.table
|
|
93
|
+
.getAll(OPEN_STATUS, "status")
|
|
94
|
+
.count()
|
|
95
|
+
.run();
|
|
96
|
+
return { value };
|
|
97
|
+
}
|
|
98
|
+
async kpiStateActive(_user) {
|
|
99
|
+
return {
|
|
100
|
+
value: await this.tenantBillingStateModel.countByState(ACTIVE_STATUS),
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
async kpiStateFree(_user) {
|
|
104
|
+
return {
|
|
105
|
+
value: await this.tenantBillingStateModel.countByState(FREE_STATUS),
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
async kpiStatePastDue(_user) {
|
|
109
|
+
return {
|
|
110
|
+
value: await this.tenantBillingStateModel.countByState(PAST_DUE_STATUS),
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
async topPlans(_user) {
|
|
114
|
+
const rows = await this.tenantSubscriptionModel.table
|
|
115
|
+
.getAll([ACTIVE_STATUS, TRIALING_STATUS], "status")
|
|
116
|
+
.pluck("planId")
|
|
117
|
+
.run();
|
|
118
|
+
const counts = new Map();
|
|
119
|
+
for (const row of rows) {
|
|
120
|
+
const planId = row.planId;
|
|
121
|
+
if (!planId)
|
|
122
|
+
continue;
|
|
123
|
+
counts.set(planId, (counts.get(planId) ?? 0) + 1);
|
|
124
|
+
}
|
|
125
|
+
const planIds = Array.from(counts.keys());
|
|
126
|
+
const plans = await Promise.all(planIds.map((id) => this.planModel.get(id)));
|
|
127
|
+
const items = [];
|
|
128
|
+
for (let i = 0; i < planIds.length; i += 1) {
|
|
129
|
+
const plan = plans[i];
|
|
130
|
+
if (!plan)
|
|
131
|
+
continue;
|
|
132
|
+
items.push({
|
|
133
|
+
id: plan._id,
|
|
134
|
+
title: plan.name,
|
|
135
|
+
value: counts.get(planIds[i]) ?? 0,
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
items.sort((a, b) => b.value - a.value);
|
|
139
|
+
return items.slice(0, TOP_PLANS_LIMIT);
|
|
140
|
+
}
|
|
141
|
+
async chartRevenue(_user) {
|
|
142
|
+
const now = Date.now();
|
|
143
|
+
const buckets = new Map();
|
|
144
|
+
for (let bucket = REVENUE_BUCKETS - 1; bucket >= 0; bucket -= 1) {
|
|
145
|
+
const date = new Date(now - bucket * DAYS_PER_MONTH * time_1.MS_PER_DAY);
|
|
146
|
+
const key = `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, "0")}`;
|
|
147
|
+
buckets.set(key, 0);
|
|
148
|
+
}
|
|
149
|
+
const cutoff = new Date(now - REVENUE_BUCKETS * DAYS_PER_MONTH * time_1.MS_PER_DAY);
|
|
150
|
+
const invoices = await this.invoiceModel.table
|
|
151
|
+
.getAll(PAID_STATUS, "status")
|
|
152
|
+
.filter((row) => row.key("issuedAt").ge(cutoff))
|
|
153
|
+
.pluck("amount", "issuedAt")
|
|
154
|
+
.run();
|
|
155
|
+
for (const invoice of invoices) {
|
|
156
|
+
const rawIssued = invoice.issuedAt;
|
|
157
|
+
if (!rawIssued)
|
|
158
|
+
continue;
|
|
159
|
+
const issued = rawIssued instanceof Date ? rawIssued : new Date(rawIssued);
|
|
160
|
+
const key = `${issued.getFullYear()}-${String(issued.getMonth() + 1).padStart(2, "0")}`;
|
|
161
|
+
if (buckets.has(key)) {
|
|
162
|
+
buckets.set(key, (buckets.get(key) ?? 0) + (invoice.amount ?? 0) / PRICE_DIVIDER);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
const data = Array.from(buckets.entries()).map(([x, y]) => ({ x, y }));
|
|
166
|
+
return [{ name: "revenue", data }];
|
|
167
|
+
}
|
|
168
|
+
async chartSubscriptionsByStatus(_user) {
|
|
169
|
+
const rows = await this.tenantSubscriptionModel.table.pluck("status").run();
|
|
170
|
+
const counts = new Map();
|
|
171
|
+
for (const row of rows) {
|
|
172
|
+
const status = row.status;
|
|
173
|
+
if (!status)
|
|
174
|
+
continue;
|
|
175
|
+
counts.set(status, (counts.get(status) ?? 0) + 1);
|
|
176
|
+
}
|
|
177
|
+
return Array.from(counts.entries()).map(([status, value]) => ({
|
|
178
|
+
label: formatStatusLabel(status),
|
|
179
|
+
value,
|
|
180
|
+
}));
|
|
181
|
+
}
|
|
182
|
+
async recentActivity(_user) {
|
|
183
|
+
const tenants = await this.tenantModel.table
|
|
184
|
+
.pluck("_id", "name", "createdAt")
|
|
185
|
+
.run();
|
|
186
|
+
const invoices = await this.invoiceModel.table
|
|
187
|
+
.getAll(PAID_STATUS, "status")
|
|
188
|
+
.pluck("_id", "amount", "issuedAt")
|
|
189
|
+
.run();
|
|
190
|
+
const entries = [
|
|
191
|
+
...tenants.map((tenant) => ({
|
|
192
|
+
id: `workspace-${tenant._id}`,
|
|
193
|
+
icon: "i-ph-building",
|
|
194
|
+
iconColor: "primary",
|
|
195
|
+
title: tenant.name ?? "",
|
|
196
|
+
subtitle: "saas.dashboard.activity.workspace_created",
|
|
197
|
+
timestamp: toTimestamp(tenant.createdAt),
|
|
198
|
+
})),
|
|
199
|
+
...invoices.map((invoice) => ({
|
|
200
|
+
id: `invoice-${invoice._id}`,
|
|
201
|
+
icon: "i-ph-receipt",
|
|
202
|
+
iconColor: "success",
|
|
203
|
+
title: formatInvoiceAmount(invoice.amount),
|
|
204
|
+
subtitle: "saas.dashboard.activity.invoice_paid",
|
|
205
|
+
timestamp: toTimestamp(invoice.issuedAt),
|
|
206
|
+
})),
|
|
207
|
+
];
|
|
208
|
+
entries.sort((a, b) => b.timestamp.localeCompare(a.timestamp));
|
|
209
|
+
return entries.slice(0, RECENT_ACTIVITY_LIMIT);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
exports.SaasDashboardController = SaasDashboardController;
|
|
213
|
+
__decorate([
|
|
214
|
+
(0, interface_database_decorators_1.Model)(db_1.TenantModel),
|
|
215
|
+
__metadata("design:type", db_1.TenantModel)
|
|
216
|
+
], SaasDashboardController.prototype, "tenantModel", void 0);
|
|
217
|
+
__decorate([
|
|
218
|
+
(0, interface_database_decorators_1.Model)(db_2.TenantSubscriptionModel, interface_database_1.CROSS_INSTANCE),
|
|
219
|
+
__metadata("design:type", db_2.TenantSubscriptionModel)
|
|
220
|
+
], SaasDashboardController.prototype, "tenantSubscriptionModel", void 0);
|
|
221
|
+
__decorate([
|
|
222
|
+
(0, interface_database_decorators_1.Model)(db_2.PlanModel),
|
|
223
|
+
__metadata("design:type", db_2.PlanModel)
|
|
224
|
+
], SaasDashboardController.prototype, "planModel", void 0);
|
|
225
|
+
__decorate([
|
|
226
|
+
(0, interface_database_decorators_1.Model)(db_2.InvoiceModel, interface_database_1.CROSS_INSTANCE),
|
|
227
|
+
__metadata("design:type", db_2.InvoiceModel)
|
|
228
|
+
], SaasDashboardController.prototype, "invoiceModel", void 0);
|
|
229
|
+
__decorate([
|
|
230
|
+
(0, interface_database_decorators_1.Model)(db_2.TenantBillingStateModel),
|
|
231
|
+
__metadata("design:type", db_2.TenantBillingStateModel)
|
|
232
|
+
], SaasDashboardController.prototype, "tenantBillingStateModel", void 0);
|
|
233
|
+
__decorate([
|
|
234
|
+
(0, interface_api_1.Get)("/kpi/workspaces"),
|
|
235
|
+
__param(0, (0, auth_1.AuthOwnerOnly)()),
|
|
236
|
+
__metadata("design:type", Function),
|
|
237
|
+
__metadata("design:paramtypes", [Function]),
|
|
238
|
+
__metadata("design:returntype", Promise)
|
|
239
|
+
], SaasDashboardController.prototype, "kpiWorkspaces", null);
|
|
240
|
+
__decorate([
|
|
241
|
+
(0, interface_api_1.Get)("/kpi/mrr"),
|
|
242
|
+
__param(0, (0, auth_1.AuthOwnerOnly)()),
|
|
243
|
+
__metadata("design:type", Function),
|
|
244
|
+
__metadata("design:paramtypes", [Function]),
|
|
245
|
+
__metadata("design:returntype", Promise)
|
|
246
|
+
], SaasDashboardController.prototype, "kpiMrr", null);
|
|
247
|
+
__decorate([
|
|
248
|
+
(0, interface_api_1.Get)("/kpi/active-subscriptions"),
|
|
249
|
+
__param(0, (0, auth_1.AuthOwnerOnly)()),
|
|
250
|
+
__metadata("design:type", Function),
|
|
251
|
+
__metadata("design:paramtypes", [Function]),
|
|
252
|
+
__metadata("design:returntype", Promise)
|
|
253
|
+
], SaasDashboardController.prototype, "kpiActive", null);
|
|
254
|
+
__decorate([
|
|
255
|
+
(0, interface_api_1.Get)("/kpi/open-invoices"),
|
|
256
|
+
__param(0, (0, auth_1.AuthOwnerOnly)()),
|
|
257
|
+
__metadata("design:type", Function),
|
|
258
|
+
__metadata("design:paramtypes", [Function]),
|
|
259
|
+
__metadata("design:returntype", Promise)
|
|
260
|
+
], SaasDashboardController.prototype, "kpiOpen", null);
|
|
261
|
+
__decorate([
|
|
262
|
+
(0, interface_api_1.Get)("/kpi/state-active"),
|
|
263
|
+
__param(0, (0, auth_1.AuthOwnerOnly)()),
|
|
264
|
+
__metadata("design:type", Function),
|
|
265
|
+
__metadata("design:paramtypes", [Function]),
|
|
266
|
+
__metadata("design:returntype", Promise)
|
|
267
|
+
], SaasDashboardController.prototype, "kpiStateActive", null);
|
|
268
|
+
__decorate([
|
|
269
|
+
(0, interface_api_1.Get)("/kpi/state-free"),
|
|
270
|
+
__param(0, (0, auth_1.AuthOwnerOnly)()),
|
|
271
|
+
__metadata("design:type", Function),
|
|
272
|
+
__metadata("design:paramtypes", [Function]),
|
|
273
|
+
__metadata("design:returntype", Promise)
|
|
274
|
+
], SaasDashboardController.prototype, "kpiStateFree", null);
|
|
275
|
+
__decorate([
|
|
276
|
+
(0, interface_api_1.Get)("/kpi/state-past-due"),
|
|
277
|
+
__param(0, (0, auth_1.AuthOwnerOnly)()),
|
|
278
|
+
__metadata("design:type", Function),
|
|
279
|
+
__metadata("design:paramtypes", [Function]),
|
|
280
|
+
__metadata("design:returntype", Promise)
|
|
281
|
+
], SaasDashboardController.prototype, "kpiStatePastDue", null);
|
|
282
|
+
__decorate([
|
|
283
|
+
(0, interface_api_1.Get)("/top-plans"),
|
|
284
|
+
__param(0, (0, auth_1.AuthOwnerOnly)()),
|
|
285
|
+
__metadata("design:type", Function),
|
|
286
|
+
__metadata("design:paramtypes", [Function]),
|
|
287
|
+
__metadata("design:returntype", Promise)
|
|
288
|
+
], SaasDashboardController.prototype, "topPlans", null);
|
|
289
|
+
__decorate([
|
|
290
|
+
(0, interface_api_1.Get)("/chart/revenue"),
|
|
291
|
+
__param(0, (0, auth_1.AuthOwnerOnly)()),
|
|
292
|
+
__metadata("design:type", Function),
|
|
293
|
+
__metadata("design:paramtypes", [Function]),
|
|
294
|
+
__metadata("design:returntype", Promise)
|
|
295
|
+
], SaasDashboardController.prototype, "chartRevenue", null);
|
|
296
|
+
__decorate([
|
|
297
|
+
(0, interface_api_1.Get)("/chart/subscriptions-by-status"),
|
|
298
|
+
__param(0, (0, auth_1.AuthOwnerOnly)()),
|
|
299
|
+
__metadata("design:type", Function),
|
|
300
|
+
__metadata("design:paramtypes", [Function]),
|
|
301
|
+
__metadata("design:returntype", Promise)
|
|
302
|
+
], SaasDashboardController.prototype, "chartSubscriptionsByStatus", null);
|
|
303
|
+
__decorate([
|
|
304
|
+
(0, interface_api_1.Get)("/recent-activity"),
|
|
305
|
+
__param(0, (0, auth_1.AuthOwnerOnly)()),
|
|
306
|
+
__metadata("design:type", Function),
|
|
307
|
+
__metadata("design:paramtypes", [Function]),
|
|
308
|
+
__metadata("design:returntype", Promise)
|
|
309
|
+
], SaasDashboardController.prototype, "recentActivity", null);
|
|
310
|
+
//# sourceMappingURL=dashboard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboard.js","sourceRoot":"","sources":["../../../src/routes/platformOwner/dashboard.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6DAA4D;AAC5D,uEAAgE;AAChE,6FAAkE;AAClE,qDAA2D;AAC3D,yDAA+D;AAE/D,iCAKkB;AAClB,2CAA8C;AAE9C,MAAM,aAAa,GAAG,QAAQ,CAAC;AAC/B,MAAM,eAAe,GAAG,UAAU,CAAC;AACnC,MAAM,WAAW,GAAG,MAAM,CAAC;AAC3B,MAAM,eAAe,GAAG,UAAU,CAAC;AACnC,MAAM,WAAW,GAAG,MAAM,CAAC;AA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AAa,GAAE,CAAA;;;;yEAajB;AAGK;IADL,IAAA,mBAAG,EAAC,kBAAkB,CAAC;IACF,WAAA,IAAA,oBAAa,GAAE,CAAA;;;;6DA4BpC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from "./billing-settings";
|
|
2
|
+
export * from "./credit-notes-issue";
|
|
3
|
+
export * from "./dashboard";
|
|
4
|
+
export * from "./plan-deletion";
|
|
5
|
+
export * from "./plans";
|
|
6
|
+
export * from "./platform-notes";
|
|
7
|
+
export * from "./platform-owners";
|
|
8
|
+
export * from "./segments";
|
|
9
|
+
export * from "./support";
|
|
10
|
+
export * from "./users-detail";
|
|
11
|
+
export * from "./workspace-operator-actions";
|
|
12
|
+
export * from "./workspaces-admin";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./billing-settings"), exports);
|
|
18
|
+
__exportStar(require("./credit-notes-issue"), exports);
|
|
19
|
+
__exportStar(require("./dashboard"), exports);
|
|
20
|
+
__exportStar(require("./plan-deletion"), exports);
|
|
21
|
+
__exportStar(require("./plans"), exports);
|
|
22
|
+
__exportStar(require("./platform-notes"), exports);
|
|
23
|
+
__exportStar(require("./platform-owners"), exports);
|
|
24
|
+
__exportStar(require("./segments"), exports);
|
|
25
|
+
__exportStar(require("./support"), exports);
|
|
26
|
+
__exportStar(require("./users-detail"), exports);
|
|
27
|
+
__exportStar(require("./workspace-operator-actions"), exports);
|
|
28
|
+
__exportStar(require("./workspaces-admin"), exports);
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/routes/platformOwner/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,uDAAqC;AACrC,8CAA4B;AAC5B,kDAAgC;AAChC,0CAAwB;AACxB,mDAAiC;AACjC,oDAAkC;AAClC,6CAA2B;AAC3B,4CAA0B;AAC1B,iDAA+B;AAC/B,+DAA6C;AAC7C,qDAAmC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { User } from "@antelopejs/interface-dms/auth/db";
|
|
2
|
+
import { PlanMigrationModel, PlanModel, TenantSubscriptionModel } from "../../db";
|
|
3
|
+
interface DeleteWithMigrationBody {
|
|
4
|
+
targetPlanId: string;
|
|
5
|
+
notifyMembers?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const SaasPlanDeletionController_base: import("@antelopejs/interface-api").ControllerClass<object>;
|
|
8
|
+
export declare class SaasPlanDeletionController extends SaasPlanDeletionController_base {
|
|
9
|
+
planModel: PlanModel;
|
|
10
|
+
planMigrationModel: PlanMigrationModel;
|
|
11
|
+
tenantSubscriptionModel: TenantSubscriptionModel;
|
|
12
|
+
migrationStatus(_user: User, migrationId: string): Promise<{
|
|
13
|
+
migration: import("@antelopejs/interface-dms-saas/dist/db/tables/planMigrations.table").PlanMigration;
|
|
14
|
+
sourcePlanRetained: boolean;
|
|
15
|
+
scope: string;
|
|
16
|
+
reconciliation: string;
|
|
17
|
+
}>;
|
|
18
|
+
prepare(_user: User, fromPlanId: string, targetPlanId: string): Promise<{
|
|
19
|
+
affectedTenantsCount: number;
|
|
20
|
+
removedPermissions: string[];
|
|
21
|
+
addedPermissions: string[];
|
|
22
|
+
unchangedPermissions: string[];
|
|
23
|
+
}>;
|
|
24
|
+
migrateAndDelete(user: User, fromPlanId: string, body: DeleteWithMigrationBody): Promise<{
|
|
25
|
+
migrationId: string;
|
|
26
|
+
sourcePlanRetained: boolean;
|
|
27
|
+
scope: string;
|
|
28
|
+
}>;
|
|
29
|
+
}
|
|
30
|
+
export {};
|