@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,99 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed, onMounted, ref, watch } from "vue";
|
|
3
|
+
|
|
4
|
+
const { t } = useI18n();
|
|
5
|
+
const toast = useToast();
|
|
6
|
+
const { resolveApiError } = useApiErrorMessage();
|
|
7
|
+
const { workspace, load, rename } = useCurrentWorkspace();
|
|
8
|
+
|
|
9
|
+
const name = ref("");
|
|
10
|
+
const isLoading = ref(true);
|
|
11
|
+
const isSaving = ref(false);
|
|
12
|
+
const loadError = ref<string | null>(null);
|
|
13
|
+
|
|
14
|
+
const savedName = computed(() => workspace.value?.name ?? "");
|
|
15
|
+
const isDirty = computed(() => name.value.trim() !== savedName.value);
|
|
16
|
+
const canSave = computed(() => isDirty.value && !!name.value.trim());
|
|
17
|
+
|
|
18
|
+
watch(savedName, (value) => {
|
|
19
|
+
name.value = value;
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
async function initialize(): Promise<void> {
|
|
23
|
+
try {
|
|
24
|
+
await load();
|
|
25
|
+
name.value = savedName.value;
|
|
26
|
+
loadError.value = null;
|
|
27
|
+
} catch (error) {
|
|
28
|
+
loadError.value = resolveApiError(
|
|
29
|
+
error,
|
|
30
|
+
"saas.workspace.general.error.load",
|
|
31
|
+
);
|
|
32
|
+
} finally {
|
|
33
|
+
isLoading.value = false;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function reset(): void {
|
|
38
|
+
name.value = savedName.value;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
async function save(): Promise<void> {
|
|
42
|
+
if (!canSave.value || isSaving.value) return;
|
|
43
|
+
isSaving.value = true;
|
|
44
|
+
try {
|
|
45
|
+
await rename(name.value.trim());
|
|
46
|
+
toast.add({
|
|
47
|
+
title: t("saas.workspace.general.renamed"),
|
|
48
|
+
color: "success",
|
|
49
|
+
icon: "i-ph-check-circle",
|
|
50
|
+
});
|
|
51
|
+
} catch (error) {
|
|
52
|
+
toast.add({
|
|
53
|
+
title: resolveApiError(error, "saas.workspace.general.error.rename"),
|
|
54
|
+
color: "error",
|
|
55
|
+
icon: "i-ph-warning-circle",
|
|
56
|
+
});
|
|
57
|
+
} finally {
|
|
58
|
+
isSaving.value = false;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
onMounted(initialize);
|
|
63
|
+
</script>
|
|
64
|
+
|
|
65
|
+
<template>
|
|
66
|
+
<div class="flex flex-col gap-4">
|
|
67
|
+
<p class="text-muted text-sm">
|
|
68
|
+
{{ $t("saas.workspace.general.identity_intro") }}
|
|
69
|
+
</p>
|
|
70
|
+
<USkeleton v-if="isLoading" class="h-10 w-full" />
|
|
71
|
+
<p v-else-if="loadError" class="text-error text-sm">{{ loadError }}</p>
|
|
72
|
+
<template v-else>
|
|
73
|
+
<UFormField
|
|
74
|
+
:label="$t('saas.workspace.general.name')"
|
|
75
|
+
:description="$t('saas.workspace.general.name_hint')"
|
|
76
|
+
>
|
|
77
|
+
<UInput v-model="name" class="w-full" />
|
|
78
|
+
</UFormField>
|
|
79
|
+
<div class="flex justify-end gap-2">
|
|
80
|
+
<UButton
|
|
81
|
+
color="neutral"
|
|
82
|
+
variant="outline"
|
|
83
|
+
:disabled="!isDirty || isSaving"
|
|
84
|
+
@click="reset"
|
|
85
|
+
>
|
|
86
|
+
{{ $t("saas.workspace.general.reset") }}
|
|
87
|
+
</UButton>
|
|
88
|
+
<UButton
|
|
89
|
+
color="primary"
|
|
90
|
+
:disabled="!canSave"
|
|
91
|
+
:loading="isSaving"
|
|
92
|
+
@click="save"
|
|
93
|
+
>
|
|
94
|
+
{{ $t("saas.workspace.general.save") }}
|
|
95
|
+
</UButton>
|
|
96
|
+
</div>
|
|
97
|
+
</template>
|
|
98
|
+
</div>
|
|
99
|
+
</template>
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed, ref } from "vue";
|
|
3
|
+
|
|
4
|
+
const { $authFetch } = useAuthFetch();
|
|
5
|
+
const nuxtApp = useDmsApp();
|
|
6
|
+
const toast = useToast();
|
|
7
|
+
const { resolveApiError } = useApiErrorMessage();
|
|
8
|
+
|
|
9
|
+
const props = defineProps<{
|
|
10
|
+
routeParams?: Record<string, string>;
|
|
11
|
+
}>();
|
|
12
|
+
|
|
13
|
+
const tenantId = computed(() => props.routeParams?.id ?? "");
|
|
14
|
+
const { trigger } = useDetailRefresh(tenantId.value);
|
|
15
|
+
const isJoining = ref(false);
|
|
16
|
+
|
|
17
|
+
async function joinAsMember(): Promise<void> {
|
|
18
|
+
isJoining.value = true;
|
|
19
|
+
try {
|
|
20
|
+
await $authFetch(`/api/saas/workspaces/${tenantId.value}/join`, {
|
|
21
|
+
method: "POST",
|
|
22
|
+
});
|
|
23
|
+
toast.add({
|
|
24
|
+
title: nuxtApp.$i18n.t("saas.workspaces.join.success"),
|
|
25
|
+
color: "success",
|
|
26
|
+
icon: "i-ph-check-circle",
|
|
27
|
+
});
|
|
28
|
+
trigger();
|
|
29
|
+
} catch (error) {
|
|
30
|
+
toast.add({
|
|
31
|
+
title: resolveApiError(error, "saas.workspaces.join.error"),
|
|
32
|
+
color: "error",
|
|
33
|
+
icon: "i-ph-warning-circle",
|
|
34
|
+
});
|
|
35
|
+
} finally {
|
|
36
|
+
isJoining.value = false;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
</script>
|
|
40
|
+
|
|
41
|
+
<template>
|
|
42
|
+
<UButton
|
|
43
|
+
icon="i-ph-user-plus"
|
|
44
|
+
color="primary"
|
|
45
|
+
:loading="isJoining"
|
|
46
|
+
@click="joinAsMember"
|
|
47
|
+
>
|
|
48
|
+
{{ $t("saas.workspaces.join.button") }}
|
|
49
|
+
</UButton>
|
|
50
|
+
</template>
|
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed, onMounted, ref, watch } from "vue";
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
routeParams?: Record<string, string>;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
interface EligibleUpgradePlan {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
price: number;
|
|
12
|
+
currency: string;
|
|
13
|
+
interval: string;
|
|
14
|
+
maxMembers: number;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
interface OperatorOptions {
|
|
18
|
+
currentPlanId: string | null;
|
|
19
|
+
currentPlanName: string | null;
|
|
20
|
+
currency: string | null;
|
|
21
|
+
customerBalanceCents: number | null;
|
|
22
|
+
hasStripeCustomer: boolean;
|
|
23
|
+
hasStripeSubscription: boolean;
|
|
24
|
+
eligibleUpgradePlans: EligibleUpgradePlan[];
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const props = defineProps<Props>();
|
|
28
|
+
const { $authFetch } = useAuthFetch();
|
|
29
|
+
const { t } = useDmsApp().$i18n;
|
|
30
|
+
const toast = useToast();
|
|
31
|
+
const { resolveApiError } = useApiErrorMessage();
|
|
32
|
+
const tenantId = computed(() => props.routeParams?.id ?? "");
|
|
33
|
+
const { trigger, triggerRef } = useDetailRefresh(tenantId.value);
|
|
34
|
+
|
|
35
|
+
const options = ref<OperatorOptions | null>(null);
|
|
36
|
+
const isLoading = ref(true);
|
|
37
|
+
const isSubmitting = ref(false);
|
|
38
|
+
const isUpgradeOpen = ref(false);
|
|
39
|
+
const isCreditOpen = ref(false);
|
|
40
|
+
const selectedPlanId = ref<string | undefined>();
|
|
41
|
+
const creditAmountCents = ref<number | undefined>();
|
|
42
|
+
const creditReason = ref("");
|
|
43
|
+
const upgradeOperationId = ref(crypto.randomUUID());
|
|
44
|
+
const creditOperationId = ref(crypto.randomUUID());
|
|
45
|
+
|
|
46
|
+
const planItems = computed(() =>
|
|
47
|
+
(options.value?.eligibleUpgradePlans ?? []).map((plan) => ({
|
|
48
|
+
value: plan.id,
|
|
49
|
+
label: `${plan.name} · ${formatPlanPrice(plan)}`,
|
|
50
|
+
})),
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
const selectedPlan = computed(() =>
|
|
54
|
+
options.value?.eligibleUpgradePlans.find(
|
|
55
|
+
(plan) => plan.id === selectedPlanId.value,
|
|
56
|
+
),
|
|
57
|
+
);
|
|
58
|
+
|
|
59
|
+
const availableCredit = computed(() => {
|
|
60
|
+
const balance = options.value?.customerBalanceCents;
|
|
61
|
+
return balance === null || balance === undefined
|
|
62
|
+
? null
|
|
63
|
+
: Math.max(0, -balance);
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
function formatPlanPrice(plan: EligibleUpgradePlan): string {
|
|
67
|
+
return `${formatCents(plan.price * 100, plan.currency)}/${t(
|
|
68
|
+
`saas.plans.cycle.${plan.interval}`,
|
|
69
|
+
)}`;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
function formatCents(amountCents: number, currency?: string | null): string {
|
|
73
|
+
return new Intl.NumberFormat(undefined, {
|
|
74
|
+
style: "currency",
|
|
75
|
+
currency: currency ?? "EUR",
|
|
76
|
+
}).format(amountCents / 100);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
async function loadOptions(): Promise<void> {
|
|
80
|
+
if (!tenantId.value) return;
|
|
81
|
+
isLoading.value = true;
|
|
82
|
+
try {
|
|
83
|
+
options.value = await $authFetch<OperatorOptions>(
|
|
84
|
+
`/api/saas/workspaces/${tenantId.value}/operator-options`,
|
|
85
|
+
);
|
|
86
|
+
} catch (error) {
|
|
87
|
+
toast.add({
|
|
88
|
+
title: resolveApiError(error, "saas.workspaces.operator.error.load"),
|
|
89
|
+
color: "error",
|
|
90
|
+
icon: "i-ph-warning-circle",
|
|
91
|
+
});
|
|
92
|
+
} finally {
|
|
93
|
+
isLoading.value = false;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function openUpgrade(): void {
|
|
98
|
+
selectedPlanId.value = options.value?.eligibleUpgradePlans[0]?.id;
|
|
99
|
+
upgradeOperationId.value = crypto.randomUUID();
|
|
100
|
+
isUpgradeOpen.value = true;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
function openCredit(): void {
|
|
104
|
+
creditAmountCents.value = undefined;
|
|
105
|
+
creditReason.value = "";
|
|
106
|
+
creditOperationId.value = crypto.randomUUID();
|
|
107
|
+
isCreditOpen.value = true;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
async function submitUpgrade(): Promise<void> {
|
|
111
|
+
if (!selectedPlan.value) return;
|
|
112
|
+
const succeeded = await submitAction(
|
|
113
|
+
"upgrade",
|
|
114
|
+
{
|
|
115
|
+
operationId: upgradeOperationId.value,
|
|
116
|
+
planId: selectedPlan.value.id,
|
|
117
|
+
},
|
|
118
|
+
"saas.workspaces.operator.upgrade.success",
|
|
119
|
+
);
|
|
120
|
+
if (succeeded) isUpgradeOpen.value = false;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
async function submitCredit(): Promise<void> {
|
|
124
|
+
if (!creditAmountCents.value || !creditReason.value.trim()) return;
|
|
125
|
+
const succeeded = await submitAction(
|
|
126
|
+
"balance-credit",
|
|
127
|
+
{
|
|
128
|
+
operationId: creditOperationId.value,
|
|
129
|
+
amountCents: creditAmountCents.value,
|
|
130
|
+
reason: creditReason.value.trim(),
|
|
131
|
+
},
|
|
132
|
+
"saas.workspaces.operator.credit.success",
|
|
133
|
+
);
|
|
134
|
+
if (succeeded) isCreditOpen.value = false;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
async function submitAction(
|
|
138
|
+
path: string,
|
|
139
|
+
body: Record<string, unknown>,
|
|
140
|
+
successKey: string,
|
|
141
|
+
): Promise<boolean> {
|
|
142
|
+
isSubmitting.value = true;
|
|
143
|
+
try {
|
|
144
|
+
await $authFetch(`/api/saas/workspaces/${tenantId.value}/${path}`, {
|
|
145
|
+
method: "POST",
|
|
146
|
+
body,
|
|
147
|
+
});
|
|
148
|
+
toast.add({
|
|
149
|
+
title: t(successKey),
|
|
150
|
+
color: "success",
|
|
151
|
+
icon: "i-ph-check-circle",
|
|
152
|
+
});
|
|
153
|
+
trigger();
|
|
154
|
+
return true;
|
|
155
|
+
} catch (error) {
|
|
156
|
+
toast.add({
|
|
157
|
+
title: resolveApiError(error, "saas.workspaces.operator.error.action"),
|
|
158
|
+
color: "error",
|
|
159
|
+
icon: "i-ph-warning-circle",
|
|
160
|
+
});
|
|
161
|
+
trigger();
|
|
162
|
+
return false;
|
|
163
|
+
} finally {
|
|
164
|
+
isSubmitting.value = false;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
onMounted(loadOptions);
|
|
169
|
+
watch(triggerRef, loadOptions);
|
|
170
|
+
</script>
|
|
171
|
+
|
|
172
|
+
<template>
|
|
173
|
+
<UCard>
|
|
174
|
+
<template #header>
|
|
175
|
+
<div>
|
|
176
|
+
<h3 class="font-semibold">
|
|
177
|
+
{{ $t("saas.workspaces.operator.title") }}
|
|
178
|
+
</h3>
|
|
179
|
+
<p class="text-muted mt-1 text-sm">
|
|
180
|
+
{{ $t("saas.workspaces.operator.description") }}
|
|
181
|
+
</p>
|
|
182
|
+
</div>
|
|
183
|
+
</template>
|
|
184
|
+
|
|
185
|
+
<div v-if="isLoading" class="flex justify-center py-5">
|
|
186
|
+
<UIcon name="i-ph-circle-notch" class="size-5 animate-spin" />
|
|
187
|
+
</div>
|
|
188
|
+
|
|
189
|
+
<div v-else-if="options" class="space-y-5">
|
|
190
|
+
<div class="grid gap-2 sm:grid-cols-2 lg:grid-cols-1">
|
|
191
|
+
<UButton
|
|
192
|
+
block
|
|
193
|
+
icon="i-ph-arrow-circle-up"
|
|
194
|
+
:disabled="!options.eligibleUpgradePlans.length"
|
|
195
|
+
@click="openUpgrade"
|
|
196
|
+
>
|
|
197
|
+
{{ $t("saas.workspaces.operator.upgrade.button") }}
|
|
198
|
+
</UButton>
|
|
199
|
+
<UButton
|
|
200
|
+
block
|
|
201
|
+
color="neutral"
|
|
202
|
+
variant="soft"
|
|
203
|
+
icon="i-ph-coins"
|
|
204
|
+
:disabled="!options.hasStripeCustomer"
|
|
205
|
+
@click="openCredit"
|
|
206
|
+
>
|
|
207
|
+
{{ $t("saas.workspaces.operator.credit.button") }}
|
|
208
|
+
</UButton>
|
|
209
|
+
</div>
|
|
210
|
+
|
|
211
|
+
<p v-if="!options.eligibleUpgradePlans.length" class="text-muted text-sm">
|
|
212
|
+
{{ $t("saas.workspaces.operator.upgrade.unavailable") }}
|
|
213
|
+
</p>
|
|
214
|
+
|
|
215
|
+
<p v-if="!options.hasStripeCustomer" class="text-muted text-sm">
|
|
216
|
+
{{ $t("saas.workspaces.operator.credit.unavailable") }}
|
|
217
|
+
</p>
|
|
218
|
+
|
|
219
|
+
<p v-if="availableCredit !== null" class="text-muted text-sm">
|
|
220
|
+
{{
|
|
221
|
+
$t("saas.workspaces.operator.credit.available", {
|
|
222
|
+
amount: formatCents(availableCredit, options.currency),
|
|
223
|
+
})
|
|
224
|
+
}}
|
|
225
|
+
</p>
|
|
226
|
+
</div>
|
|
227
|
+
|
|
228
|
+
<UModal
|
|
229
|
+
:open="isUpgradeOpen"
|
|
230
|
+
:title="$t('saas.workspaces.operator.upgrade.title')"
|
|
231
|
+
@update:open="isUpgradeOpen = $event"
|
|
232
|
+
>
|
|
233
|
+
<template #body>
|
|
234
|
+
<form class="space-y-4" @submit.prevent="submitUpgrade">
|
|
235
|
+
<UFormField
|
|
236
|
+
name="planId"
|
|
237
|
+
:label="$t('saas.workspaces.operator.upgrade.plan_label')"
|
|
238
|
+
>
|
|
239
|
+
<USelect
|
|
240
|
+
v-model="selectedPlanId"
|
|
241
|
+
name="upgrade-plan"
|
|
242
|
+
:items="planItems"
|
|
243
|
+
class="w-full"
|
|
244
|
+
/>
|
|
245
|
+
</UFormField>
|
|
246
|
+
<UAlert
|
|
247
|
+
v-if="selectedPlan"
|
|
248
|
+
color="warning"
|
|
249
|
+
variant="subtle"
|
|
250
|
+
icon="i-ph-warning"
|
|
251
|
+
:title="$t('saas.workspaces.operator.confirm.title')"
|
|
252
|
+
:description="
|
|
253
|
+
$t('saas.workspaces.operator.upgrade.confirm', {
|
|
254
|
+
current: options?.currentPlanName,
|
|
255
|
+
target: selectedPlan.name,
|
|
256
|
+
price: formatPlanPrice(selectedPlan),
|
|
257
|
+
})
|
|
258
|
+
"
|
|
259
|
+
/>
|
|
260
|
+
</form>
|
|
261
|
+
</template>
|
|
262
|
+
<template #footer>
|
|
263
|
+
<div class="flex w-full justify-end gap-2">
|
|
264
|
+
<UButton variant="ghost" @click="isUpgradeOpen = false">
|
|
265
|
+
{{ $t("common.cancel") }}
|
|
266
|
+
</UButton>
|
|
267
|
+
<UButton
|
|
268
|
+
:loading="isSubmitting"
|
|
269
|
+
:disabled="!selectedPlan"
|
|
270
|
+
@click="submitUpgrade"
|
|
271
|
+
>
|
|
272
|
+
{{ $t("saas.workspaces.operator.confirm.submit") }}
|
|
273
|
+
</UButton>
|
|
274
|
+
</div>
|
|
275
|
+
</template>
|
|
276
|
+
</UModal>
|
|
277
|
+
|
|
278
|
+
<UModal
|
|
279
|
+
:open="isCreditOpen"
|
|
280
|
+
:title="$t('saas.workspaces.operator.credit.title')"
|
|
281
|
+
@update:open="isCreditOpen = $event"
|
|
282
|
+
>
|
|
283
|
+
<template #body>
|
|
284
|
+
<form class="space-y-4" @submit.prevent="submitCredit">
|
|
285
|
+
<UFormField
|
|
286
|
+
name="amountCents"
|
|
287
|
+
:label="$t('saas.workspaces.operator.credit.amount_label')"
|
|
288
|
+
>
|
|
289
|
+
<UInput
|
|
290
|
+
v-model.number="creditAmountCents"
|
|
291
|
+
name="credit-amount-cents"
|
|
292
|
+
type="number"
|
|
293
|
+
min="1"
|
|
294
|
+
step="1"
|
|
295
|
+
class="w-full"
|
|
296
|
+
/>
|
|
297
|
+
</UFormField>
|
|
298
|
+
<UFormField
|
|
299
|
+
name="reason"
|
|
300
|
+
:label="$t('saas.workspaces.operator.credit.reason_label')"
|
|
301
|
+
>
|
|
302
|
+
<UTextarea
|
|
303
|
+
v-model="creditReason"
|
|
304
|
+
name="credit-reason"
|
|
305
|
+
:maxlength="500"
|
|
306
|
+
class="w-full"
|
|
307
|
+
/>
|
|
308
|
+
</UFormField>
|
|
309
|
+
<UAlert
|
|
310
|
+
v-if="creditAmountCents && creditReason.trim()"
|
|
311
|
+
color="warning"
|
|
312
|
+
variant="subtle"
|
|
313
|
+
icon="i-ph-warning"
|
|
314
|
+
:title="$t('saas.workspaces.operator.confirm.title')"
|
|
315
|
+
:description="
|
|
316
|
+
$t('saas.workspaces.operator.credit.confirm', {
|
|
317
|
+
amount: formatCents(creditAmountCents, options?.currency),
|
|
318
|
+
reason: creditReason.trim(),
|
|
319
|
+
})
|
|
320
|
+
"
|
|
321
|
+
/>
|
|
322
|
+
</form>
|
|
323
|
+
</template>
|
|
324
|
+
<template #footer>
|
|
325
|
+
<div class="flex w-full justify-end gap-2">
|
|
326
|
+
<UButton variant="ghost" @click="isCreditOpen = false">
|
|
327
|
+
{{ $t("common.cancel") }}
|
|
328
|
+
</UButton>
|
|
329
|
+
<UButton
|
|
330
|
+
:loading="isSubmitting"
|
|
331
|
+
:disabled="!creditAmountCents || !creditReason.trim()"
|
|
332
|
+
@click="submitCredit"
|
|
333
|
+
>
|
|
334
|
+
{{ $t("saas.workspaces.operator.confirm.submit") }}
|
|
335
|
+
</UButton>
|
|
336
|
+
</div>
|
|
337
|
+
</template>
|
|
338
|
+
</UModal>
|
|
339
|
+
</UCard>
|
|
340
|
+
</template>
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed, onMounted, ref, watch } from "vue";
|
|
3
|
+
|
|
4
|
+
interface WorkspaceSummaryData {
|
|
5
|
+
_id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
status: string | null;
|
|
8
|
+
planName: string | null;
|
|
9
|
+
currency: string;
|
|
10
|
+
mrr: number;
|
|
11
|
+
membersCount: number;
|
|
12
|
+
createdAt: string;
|
|
13
|
+
subscription: { stripeCustomerId: string | null } | null;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
type BadgeColor =
|
|
17
|
+
| "primary"
|
|
18
|
+
| "secondary"
|
|
19
|
+
| "success"
|
|
20
|
+
| "info"
|
|
21
|
+
| "warning"
|
|
22
|
+
| "error"
|
|
23
|
+
| "neutral";
|
|
24
|
+
|
|
25
|
+
const STATUS_COLOR: Record<string, BadgeColor> = {
|
|
26
|
+
active: "success",
|
|
27
|
+
trialing: "info",
|
|
28
|
+
past_due: "warning",
|
|
29
|
+
suspended: "error",
|
|
30
|
+
cancelled: "error",
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
const props = defineProps<{
|
|
34
|
+
routeParams?: Record<string, string>;
|
|
35
|
+
}>();
|
|
36
|
+
|
|
37
|
+
const { $authFetch } = useAuthFetch();
|
|
38
|
+
|
|
39
|
+
const tenantId = computed(() => props.routeParams?.id ?? "");
|
|
40
|
+
const { triggerRef } = useDetailRefresh(tenantId.value);
|
|
41
|
+
const workspace = ref<WorkspaceSummaryData | null>(null);
|
|
42
|
+
const isLoading = ref(true);
|
|
43
|
+
|
|
44
|
+
const statusColor = computed(
|
|
45
|
+
() => STATUS_COLOR[workspace.value?.status ?? ""] ?? "neutral",
|
|
46
|
+
);
|
|
47
|
+
|
|
48
|
+
const formattedMrr = computed(() => {
|
|
49
|
+
if (!workspace.value) return "";
|
|
50
|
+
return new Intl.NumberFormat(undefined, {
|
|
51
|
+
style: "currency",
|
|
52
|
+
currency: workspace.value.currency || "EUR",
|
|
53
|
+
minimumFractionDigits: 0,
|
|
54
|
+
maximumFractionDigits: 0,
|
|
55
|
+
}).format(workspace.value.mrr);
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
function formatDate(value: string | null): string {
|
|
59
|
+
if (!value) return "—";
|
|
60
|
+
return new Date(value).toLocaleDateString("fr-FR", {
|
|
61
|
+
day: "2-digit",
|
|
62
|
+
month: "short",
|
|
63
|
+
year: "numeric",
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
async function load(): Promise<void> {
|
|
68
|
+
if (!tenantId.value) return;
|
|
69
|
+
isLoading.value = true;
|
|
70
|
+
try {
|
|
71
|
+
workspace.value = await $authFetch<WorkspaceSummaryData>(
|
|
72
|
+
`/api/saas/workspaces/${tenantId.value}`,
|
|
73
|
+
);
|
|
74
|
+
} finally {
|
|
75
|
+
isLoading.value = false;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
onMounted(load);
|
|
80
|
+
watch(triggerRef, () => {
|
|
81
|
+
void load();
|
|
82
|
+
});
|
|
83
|
+
</script>
|
|
84
|
+
|
|
85
|
+
<template>
|
|
86
|
+
<DmsCard>
|
|
87
|
+
<div v-if="isLoading" class="flex justify-center py-6">
|
|
88
|
+
<UIcon name="i-ph-spinner" class="animate-spin text-2xl" />
|
|
89
|
+
</div>
|
|
90
|
+
<div v-else-if="workspace" class="flex flex-col gap-5">
|
|
91
|
+
<div class="flex items-start gap-4">
|
|
92
|
+
<div
|
|
93
|
+
class="flex size-16 items-center justify-center rounded-lg bg-primary/15 text-primary"
|
|
94
|
+
>
|
|
95
|
+
<UIcon name="i-ph-building" class="text-3xl" />
|
|
96
|
+
</div>
|
|
97
|
+
<div class="flex-1 min-w-0">
|
|
98
|
+
<div class="flex flex-wrap items-center gap-2">
|
|
99
|
+
<h2 class="text-xl font-semibold truncate">
|
|
100
|
+
{{ workspace.name }}
|
|
101
|
+
</h2>
|
|
102
|
+
<UBadge
|
|
103
|
+
v-if="workspace.status"
|
|
104
|
+
:color="statusColor"
|
|
105
|
+
variant="subtle"
|
|
106
|
+
>
|
|
107
|
+
{{ $t(`saas.workspaces.status.${workspace.status}`) }}
|
|
108
|
+
</UBadge>
|
|
109
|
+
</div>
|
|
110
|
+
<div class="mt-2 flex flex-col gap-1 text-sm text-muted">
|
|
111
|
+
<div class="flex items-center gap-2">
|
|
112
|
+
<UIcon name="i-ph-users" />
|
|
113
|
+
<span>
|
|
114
|
+
{{
|
|
115
|
+
$t("saas.workspaces.summary.members", {
|
|
116
|
+
count: workspace.membersCount,
|
|
117
|
+
})
|
|
118
|
+
}}
|
|
119
|
+
</span>
|
|
120
|
+
</div>
|
|
121
|
+
</div>
|
|
122
|
+
</div>
|
|
123
|
+
<div class="text-right shrink-0">
|
|
124
|
+
<UBadge
|
|
125
|
+
v-if="workspace.planName"
|
|
126
|
+
color="primary"
|
|
127
|
+
variant="soft"
|
|
128
|
+
class="text-base"
|
|
129
|
+
>
|
|
130
|
+
{{ workspace.planName }}
|
|
131
|
+
</UBadge>
|
|
132
|
+
<p class="mt-2 text-2xl font-bold">
|
|
133
|
+
{{ formattedMrr }}
|
|
134
|
+
<span class="text-sm font-normal text-muted">
|
|
135
|
+
{{ $t("saas.workspaces.summary.per_month") }}
|
|
136
|
+
</span>
|
|
137
|
+
</p>
|
|
138
|
+
</div>
|
|
139
|
+
</div>
|
|
140
|
+
|
|
141
|
+
<USeparator />
|
|
142
|
+
|
|
143
|
+
<dl class="grid grid-cols-2 gap-3 text-sm lg:grid-cols-4">
|
|
144
|
+
<div>
|
|
145
|
+
<dt class="text-muted">
|
|
146
|
+
{{ $t("saas.workspaces.column.created_at") }}
|
|
147
|
+
</dt>
|
|
148
|
+
<dd class="mt-0.5">{{ formatDate(workspace.createdAt) }}</dd>
|
|
149
|
+
</div>
|
|
150
|
+
<div>
|
|
151
|
+
<dt class="text-muted">
|
|
152
|
+
{{ $t("saas.workspaces.column.stripe_customer") }}
|
|
153
|
+
</dt>
|
|
154
|
+
<dd class="mt-0.5 truncate">
|
|
155
|
+
{{ workspace.subscription?.stripeCustomerId ?? "—" }}
|
|
156
|
+
</dd>
|
|
157
|
+
</div>
|
|
158
|
+
</dl>
|
|
159
|
+
</div>
|
|
160
|
+
</DmsCard>
|
|
161
|
+
</template>
|