@antelopejs/dms-saas 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -2
- package/dist/auth/index.d.ts +1 -0
- package/dist/auth/index.js +1 -0
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/owner-only-permissions-resolver.d.ts +1 -0
- package/dist/auth/owner-only-permissions-resolver.js +25 -0
- package/dist/auth/owner-only-permissions-resolver.js.map +1 -0
- package/dist/billing-state/directory-hooks.d.ts +1 -0
- package/dist/billing-state/directory-hooks.js +35 -0
- package/dist/billing-state/directory-hooks.js.map +1 -0
- package/dist/billing-state/directory.d.ts +29 -0
- package/dist/billing-state/directory.js +152 -0
- package/dist/billing-state/directory.js.map +1 -0
- package/dist/billing-state/index.d.ts +5 -1
- package/dist/billing-state/index.js +14 -2
- package/dist/billing-state/index.js.map +1 -1
- package/dist/billing-state/past-due-banner.d.ts +4 -3
- package/dist/billing-state/past-due-banner.js +30 -10
- package/dist/billing-state/past-due-banner.js.map +1 -1
- package/dist/billing-state/recovery.d.ts +4 -0
- package/dist/billing-state/recovery.js +7 -5
- package/dist/billing-state/recovery.js.map +1 -1
- package/dist/billing-state/trial-ending-banner.d.ts +4 -0
- package/dist/billing-state/trial-ending-banner.js +66 -0
- package/dist/billing-state/trial-ending-banner.js.map +1 -0
- package/dist/config/runtime.d.ts +1 -0
- package/dist/config/runtime.js +5 -0
- package/dist/config/runtime.js.map +1 -1
- package/dist/crons/auto-suspend-past-due.js +4 -5
- package/dist/crons/auto-suspend-past-due.js.map +1 -1
- package/dist/data-api/platformOwner/admin-user-invoices.d.ts +6 -4
- package/dist/data-api/platformOwner/admin-user-invoices.js +52 -30
- package/dist/data-api/platformOwner/admin-user-invoices.js.map +1 -1
- package/dist/data-api/platformOwner/admin-user-workspaces.d.ts +2 -0
- package/dist/data-api/platformOwner/admin-user-workspaces.js +69 -3
- package/dist/data-api/platformOwner/admin-user-workspaces.js.map +1 -1
- package/dist/data-api/platformOwner/credit-note-rows.d.ts +11 -0
- package/dist/data-api/platformOwner/credit-note-rows.js +54 -0
- package/dist/data-api/platformOwner/credit-note-rows.js.map +1 -0
- package/dist/data-api/platformOwner/credit-notes.d.ts +13 -0
- package/dist/data-api/platformOwner/credit-notes.js +149 -10
- package/dist/data-api/platformOwner/credit-notes.js.map +1 -1
- package/dist/data-api/platformOwner/features.d.ts +7 -2
- package/dist/data-api/platformOwner/features.js +151 -37
- package/dist/data-api/platformOwner/features.js.map +1 -1
- package/dist/data-api/platformOwner/invitations.js +29 -9
- package/dist/data-api/platformOwner/invitations.js.map +1 -1
- package/dist/data-api/platformOwner/invoice-cells.d.ts +5 -0
- package/dist/data-api/platformOwner/invoice-cells.js +51 -0
- package/dist/data-api/platformOwner/invoice-cells.js.map +1 -0
- package/dist/data-api/platformOwner/invoice-options.js.map +1 -1
- package/dist/data-api/platformOwner/invoice-rows.d.ts +9 -0
- package/dist/data-api/platformOwner/invoice-rows.js +39 -0
- package/dist/data-api/platformOwner/invoice-rows.js.map +1 -0
- package/dist/data-api/platformOwner/invoices.d.ts +24 -6
- package/dist/data-api/platformOwner/invoices.js +192 -11
- package/dist/data-api/platformOwner/invoices.js.map +1 -1
- package/dist/data-api/platformOwner/members.d.ts +2 -1
- package/dist/data-api/platformOwner/members.js +56 -20
- package/dist/data-api/platformOwner/members.js.map +1 -1
- package/dist/data-api/platformOwner/plan-migrations.d.ts +14 -2
- package/dist/data-api/platformOwner/plan-migrations.js +179 -33
- package/dist/data-api/platformOwner/plan-migrations.js.map +1 -1
- package/dist/data-api/platformOwner/plans.d.ts +30 -6
- package/dist/data-api/platformOwner/plans.js +269 -44
- package/dist/data-api/platformOwner/plans.js.map +1 -1
- package/dist/data-api/platformOwner/segments.d.ts +9 -7
- package/dist/data-api/platformOwner/segments.js +108 -101
- package/dist/data-api/platformOwner/segments.js.map +1 -1
- package/dist/data-api/platformOwner/table-scope.d.ts +6 -0
- package/dist/data-api/platformOwner/table-scope.js +8 -0
- package/dist/data-api/platformOwner/table-scope.js.map +1 -0
- package/dist/data-api/platformOwner/users.d.ts +15 -2
- package/dist/data-api/platformOwner/users.js +171 -15
- package/dist/data-api/platformOwner/users.js.map +1 -1
- package/dist/data-api/platformOwner/workspace-cells.d.ts +12 -0
- package/dist/data-api/platformOwner/workspace-cells.js +90 -0
- package/dist/data-api/platformOwner/workspace-cells.js.map +1 -0
- package/dist/data-api/platformOwner/workspaces.d.ts +26 -4
- package/dist/data-api/platformOwner/workspaces.js +269 -97
- package/dist/data-api/platformOwner/workspaces.js.map +1 -1
- package/dist/data-api/tenant/tenant-invoices.d.ts +4 -0
- package/dist/data-api/tenant/tenant-invoices.js +68 -4
- package/dist/data-api/tenant/tenant-invoices.js.map +1 -1
- package/dist/hooks/register.js +5 -1
- package/dist/hooks/register.js.map +1 -1
- package/dist/i18n/composed-text.d.ts +17 -0
- package/dist/i18n/composed-text.js +71 -0
- package/dist/i18n/composed-text.js.map +1 -0
- package/dist/implementations/dms-saas/billing.d.ts +1 -0
- package/dist/implementations/dms-saas/billing.js +4 -1
- package/dist/implementations/dms-saas/billing.js.map +1 -1
- package/dist/implementations/dms-saas/pages.d.ts +0 -1
- package/dist/implementations/dms-saas/pages.js +0 -4
- package/dist/implementations/dms-saas/pages.js.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/metrics/activity-sources.d.ts +2 -0
- package/dist/metrics/activity-sources.js +60 -0
- package/dist/metrics/activity-sources.js.map +1 -0
- package/dist/metrics/activity.d.ts +25 -0
- package/dist/metrics/activity.js +197 -0
- package/dist/metrics/activity.js.map +1 -0
- package/dist/metrics/directory-summary.d.ts +30 -0
- package/dist/metrics/directory-summary.js +95 -0
- package/dist/metrics/directory-summary.js.map +1 -0
- package/dist/metrics/headline-items.d.ts +32 -0
- package/dist/metrics/headline-items.js +242 -0
- package/dist/metrics/headline-items.js.map +1 -0
- package/dist/metrics/normalised-mrr.d.ts +32 -0
- package/dist/metrics/normalised-mrr.js +75 -0
- package/dist/metrics/normalised-mrr.js.map +1 -0
- package/dist/metrics/revenue.d.ts +30 -0
- package/dist/metrics/revenue.js +126 -0
- package/dist/metrics/revenue.js.map +1 -0
- package/dist/notifications/recipients.d.ts +1 -0
- package/dist/notifications/recipients.js +4 -0
- package/dist/notifications/recipients.js.map +1 -1
- package/dist/notifications/subjects.d.ts +18 -17
- package/dist/notifications/subjects.js +7 -1
- package/dist/notifications/subjects.js.map +1 -1
- package/dist/operator-actions/commands.js +9 -6
- package/dist/operator-actions/commands.js.map +1 -1
- package/dist/operator-actions/invitation-commands.d.ts +7 -1
- package/dist/operator-actions/invitation-commands.js +16 -0
- package/dist/operator-actions/invitation-commands.js.map +1 -1
- package/dist/operator-actions/previews.d.ts +50 -0
- package/dist/operator-actions/previews.js +113 -0
- package/dist/operator-actions/previews.js.map +1 -0
- package/dist/operator-actions/types.d.ts +1 -1
- package/dist/operator-actions/upgrade-preview.d.ts +35 -0
- package/dist/operator-actions/upgrade-preview.js +110 -0
- package/dist/operator-actions/upgrade-preview.js.map +1 -0
- package/dist/operator-billing/billing-rules.d.ts +58 -0
- package/dist/operator-billing/billing-rules.js +90 -0
- package/dist/operator-billing/billing-rules.js.map +1 -0
- package/dist/operator-billing/billing-settings-store.d.ts +3 -0
- package/dist/operator-billing/billing-settings-store.js +34 -0
- package/dist/operator-billing/billing-settings-store.js.map +1 -0
- package/dist/operator-billing/billing-stats.d.ts +37 -0
- package/dist/operator-billing/billing-stats.js +197 -0
- package/dist/operator-billing/billing-stats.js.map +1 -0
- package/dist/operator-billing/credit-allowance.d.ts +17 -0
- package/dist/operator-billing/credit-allowance.js +44 -0
- package/dist/operator-billing/credit-allowance.js.map +1 -0
- package/dist/operator-billing/credit-note-request.d.ts +39 -0
- package/dist/operator-billing/credit-note-request.js +73 -0
- package/dist/operator-billing/credit-note-request.js.map +1 -0
- package/dist/operator-billing/index.d.ts +8 -0
- package/dist/operator-billing/index.js +25 -0
- package/dist/operator-billing/index.js.map +1 -0
- package/dist/operator-billing/invoice-credit.d.ts +41 -0
- package/dist/operator-billing/invoice-credit.js +111 -0
- package/dist/operator-billing/invoice-credit.js.map +1 -0
- package/dist/operator-billing/legal-documents-store.d.ts +12 -0
- package/dist/operator-billing/legal-documents-store.js +46 -0
- package/dist/operator-billing/legal-documents-store.js.map +1 -0
- package/dist/operator-billing/legal-versions.d.ts +5 -0
- package/dist/operator-billing/legal-versions.js +31 -0
- package/dist/operator-billing/legal-versions.js.map +1 -0
- package/dist/pages/block-meta.d.ts +15 -0
- package/dist/pages/block-meta.js +21 -0
- package/dist/pages/block-meta.js.map +1 -0
- package/dist/pages/module.d.ts +1 -3
- package/dist/pages/module.js +1 -8
- package/dist/pages/module.js.map +1 -1
- package/dist/pages/platform/credit-notes.d.ts +1 -0
- package/dist/pages/platform/credit-notes.js +63 -5
- package/dist/pages/platform/credit-notes.js.map +1 -1
- package/dist/pages/platform/dashboard.d.ts +4 -1
- package/dist/pages/platform/dashboard.js +123 -64
- package/dist/pages/platform/dashboard.js.map +1 -1
- package/dist/pages/platform/features.js +83 -12
- package/dist/pages/platform/features.js.map +1 -1
- package/dist/pages/platform/index.d.ts +1 -0
- package/dist/pages/platform/index.js +1 -0
- package/dist/pages/platform/index.js.map +1 -1
- package/dist/pages/platform/invoices.d.ts +6 -0
- package/dist/pages/platform/invoices.js +84 -28
- package/dist/pages/platform/invoices.js.map +1 -1
- package/dist/pages/platform/paths.d.ts +9 -0
- package/dist/pages/platform/paths.js +25 -0
- package/dist/pages/platform/paths.js.map +1 -0
- package/dist/pages/platform/plans/edit.d.ts +2 -2
- package/dist/pages/platform/plans/edit.js +170 -105
- package/dist/pages/platform/plans/edit.js.map +1 -1
- package/dist/pages/platform/plans/index.d.ts +1 -0
- package/dist/pages/platform/plans/index.js +172 -55
- package/dist/pages/platform/plans/index.js.map +1 -1
- package/dist/pages/platform/plans/migrations.d.ts +12 -0
- package/dist/pages/platform/plans/migrations.js +259 -13
- package/dist/pages/platform/plans/migrations.js.map +1 -1
- package/dist/pages/platform/segments/edit.d.ts +17 -0
- package/dist/pages/platform/segments/edit.js +124 -0
- package/dist/pages/platform/segments/edit.js.map +1 -0
- package/dist/pages/platform/segments/index.js +68 -8
- package/dist/pages/platform/segments/index.js.map +1 -1
- package/dist/pages/platform/settings.d.ts +1 -1
- package/dist/pages/platform/settings.js +164 -105
- package/dist/pages/platform/settings.js.map +1 -1
- package/dist/pages/platform/users/detail.js +104 -33
- package/dist/pages/platform/users/detail.js.map +1 -1
- package/dist/pages/platform/users/index.js +52 -18
- package/dist/pages/platform/users/index.js.map +1 -1
- package/dist/pages/platform/workspaces/detail.d.ts +3 -1
- package/dist/pages/platform/workspaces/detail.js +184 -113
- package/dist/pages/platform/workspaces/detail.js.map +1 -1
- package/dist/pages/platform/workspaces/index.d.ts +1 -20
- package/dist/pages/platform/workspaces/index.js +152 -180
- package/dist/pages/platform/workspaces/index.js.map +1 -1
- package/dist/pages/platform/workspaces/shared.d.ts +11 -0
- package/dist/pages/platform/workspaces/shared.js +53 -0
- package/dist/pages/platform/workspaces/shared.js.map +1 -0
- package/dist/pages/public/auth/no-workspace.js +7 -2
- package/dist/pages/public/auth/no-workspace.js.map +1 -1
- package/dist/pages/public/index.js.map +1 -1
- package/dist/pages/public/legal/privacy-policy.d.ts +1 -0
- package/dist/pages/public/legal/privacy-policy.js +9 -4
- package/dist/pages/public/legal/privacy-policy.js.map +1 -1
- package/dist/pages/public/legal/terms-and-conditions.d.ts +1 -0
- package/dist/pages/public/legal/terms-and-conditions.js +9 -4
- package/dist/pages/public/legal/terms-and-conditions.js.map +1 -1
- package/dist/pages/public/legal/terms-of-use.d.ts +1 -0
- package/dist/pages/public/legal/terms-of-use.js +9 -4
- package/dist/pages/public/legal/terms-of-use.js.map +1 -1
- package/dist/pages/public/nav-bar.d.ts +2 -0
- package/dist/pages/public/nav-bar.js +14 -0
- package/dist/pages/public/nav-bar.js.map +1 -0
- package/dist/pages/public/pricing.d.ts +10 -0
- package/dist/pages/public/pricing.js +32 -0
- package/dist/pages/public/pricing.js.map +1 -0
- package/dist/pages/public/register.d.ts +1 -0
- package/dist/pages/public/register.js +6 -3
- package/dist/pages/public/register.js.map +1 -1
- package/dist/pages/public/screens.js +1 -0
- package/dist/pages/public/screens.js.map +1 -1
- package/dist/pages/tenant/billing.d.ts +7 -7
- package/dist/pages/tenant/billing.js +141 -63
- package/dist/pages/tenant/billing.js.map +1 -1
- package/dist/pages/tenant/data-export.d.ts +3 -1
- package/dist/pages/tenant/data-export.js +25 -6
- package/dist/pages/tenant/data-export.js.map +1 -1
- package/dist/pages/tenant/general.d.ts +3 -2
- package/dist/pages/tenant/general.js +91 -11
- package/dist/pages/tenant/general.js.map +1 -1
- package/dist/pages/tenant/index.d.ts +1 -0
- package/dist/pages/tenant/index.js +1 -0
- package/dist/pages/tenant/index.js.map +1 -1
- package/dist/pages/tenant/members-seat-quota.d.ts +3 -0
- package/dist/pages/tenant/members-seat-quota.js +18 -6
- package/dist/pages/tenant/members-seat-quota.js.map +1 -1
- package/dist/pages/tenant/owner-only.d.ts +1 -0
- package/dist/pages/tenant/owner-only.js +14 -0
- package/dist/pages/tenant/owner-only.js.map +1 -0
- package/dist/pages/tenant/workspace-suspended.js +7 -3
- package/dist/pages/tenant/workspace-suspended.js.map +1 -1
- package/dist/plan-changes/applied-upgrade.d.ts +5 -0
- package/dist/plan-changes/applied-upgrade.js +51 -0
- package/dist/plan-changes/applied-upgrade.js.map +1 -0
- package/dist/plan-changes/deferred.js +9 -40
- package/dist/plan-changes/deferred.js.map +1 -1
- package/dist/plan-changes/immediate.d.ts +4 -0
- package/dist/plan-changes/immediate.js +34 -0
- package/dist/plan-changes/immediate.js.map +1 -0
- package/dist/plan-changes/index.d.ts +1 -0
- package/dist/plan-changes/index.js +1 -0
- package/dist/plan-changes/index.js.map +1 -1
- package/dist/plan-changes/pending-target.d.ts +17 -0
- package/dist/plan-changes/pending-target.js +62 -0
- package/dist/plan-changes/pending-target.js.map +1 -0
- package/dist/plans/catalogue-summary.d.ts +24 -0
- package/dist/plans/catalogue-summary.js +97 -0
- package/dist/plans/catalogue-summary.js.map +1 -0
- package/dist/plans/catalogue-usage.d.ts +36 -0
- package/dist/plans/catalogue-usage.js +120 -0
- package/dist/plans/catalogue-usage.js.map +1 -0
- package/dist/plans/feature-guards.d.ts +5 -0
- package/dist/plans/feature-guards.js +31 -0
- package/dist/plans/feature-guards.js.map +1 -0
- package/dist/plans/feature-usage.d.ts +4 -0
- package/dist/plans/feature-usage.js +22 -0
- package/dist/plans/feature-usage.js.map +1 -0
- package/dist/plans/migration-blocks.d.ts +13 -0
- package/dist/plans/migration-blocks.js +337 -0
- package/dist/plans/migration-blocks.js.map +1 -0
- package/dist/plans/migration-detail.d.ts +48 -0
- package/dist/plans/migration-detail.js +80 -0
- package/dist/plans/migration-detail.js.map +1 -0
- package/dist/plans/migration-dialogs.d.ts +8 -0
- package/dist/plans/migration-dialogs.js +103 -0
- package/dist/plans/migration-dialogs.js.map +1 -0
- package/dist/plans/migration-outcomes.d.ts +7 -0
- package/dist/plans/migration-outcomes.js +38 -0
- package/dist/plans/migration-outcomes.js.map +1 -0
- package/dist/plans/migration-realtime.d.ts +2 -0
- package/dist/plans/migration-realtime.js +19 -0
- package/dist/plans/migration-realtime.js.map +1 -0
- package/dist/plans/migration-workspaces.d.ts +40 -0
- package/dist/plans/migration-workspaces.js +121 -0
- package/dist/plans/migration-workspaces.js.map +1 -0
- package/dist/plans/money.d.ts +1 -0
- package/dist/plans/money.js +11 -0
- package/dist/plans/money.js.map +1 -0
- package/dist/plans/plan-access-type.d.ts +25 -0
- package/dist/plans/plan-access-type.js +49 -0
- package/dist/plans/plan-access-type.js.map +1 -0
- package/dist/plans/plan-audience.d.ts +3 -0
- package/dist/plans/plan-audience.js +9 -0
- package/dist/plans/plan-audience.js.map +1 -0
- package/dist/plans/plan-diff.d.ts +13 -0
- package/dist/plans/plan-diff.js +73 -0
- package/dist/plans/plan-diff.js.map +1 -0
- package/dist/plans/plan-permission-tree.d.ts +11 -0
- package/dist/plans/plan-permission-tree.js +58 -0
- package/dist/plans/plan-permission-tree.js.map +1 -0
- package/dist/plans/plan-write.d.ts +17 -0
- package/dist/plans/plan-write.js +111 -0
- package/dist/plans/plan-write.js.map +1 -0
- package/dist/plans/seat-capacity.d.ts +3 -1
- package/dist/plans/seat-capacity.js +10 -2
- package/dist/plans/seat-capacity.js.map +1 -1
- package/dist/plans/seat-hooks.d.ts +1 -0
- package/dist/plans/seat-hooks.js +1 -0
- package/dist/plans/seat-hooks.js.map +1 -1
- package/dist/plans/stripe-sync.d.ts +3 -0
- package/dist/plans/stripe-sync.js +16 -0
- package/dist/plans/stripe-sync.js.map +1 -1
- package/dist/routes/platformOwner/billing-settings.d.ts +11 -35
- package/dist/routes/platformOwner/billing-settings.js +77 -47
- package/dist/routes/platformOwner/billing-settings.js.map +1 -1
- package/dist/routes/platformOwner/billing-stats.d.ts +15 -0
- package/dist/routes/platformOwner/billing-stats.js +106 -0
- package/dist/routes/platformOwner/billing-stats.js.map +1 -0
- package/dist/routes/platformOwner/block-payloads.d.ts +7 -0
- package/dist/routes/platformOwner/block-payloads.js +3 -0
- package/dist/routes/platformOwner/block-payloads.js.map +1 -0
- package/dist/routes/platformOwner/credit-notes-issue.d.ts +7 -8
- package/dist/routes/platformOwner/credit-notes-issue.js +28 -16
- package/dist/routes/platformOwner/credit-notes-issue.js.map +1 -1
- package/dist/routes/platformOwner/dashboard.d.ts +14 -57
- package/dist/routes/platformOwner/dashboard.js +126 -247
- package/dist/routes/platformOwner/dashboard.js.map +1 -1
- package/dist/routes/platformOwner/index.d.ts +7 -0
- package/dist/routes/platformOwner/index.js +7 -0
- package/dist/routes/platformOwner/index.js.map +1 -1
- package/dist/routes/platformOwner/plan-deletion.d.ts +77 -19
- package/dist/routes/platformOwner/plan-deletion.js +219 -67
- package/dist/routes/platformOwner/plan-deletion.js.map +1 -1
- package/dist/routes/platformOwner/plan-dialogs.d.ts +22 -0
- package/dist/routes/platformOwner/plan-dialogs.js +211 -0
- package/dist/routes/platformOwner/plan-dialogs.js.map +1 -0
- package/dist/routes/platformOwner/plan-migration-context.d.ts +9 -0
- package/dist/routes/platformOwner/plan-migration-context.js +147 -0
- package/dist/routes/platformOwner/plan-migration-context.js.map +1 -0
- package/dist/routes/platformOwner/plan-migration-export.d.ts +12 -0
- package/dist/routes/platformOwner/plan-migration-export.js +100 -0
- package/dist/routes/platformOwner/plan-migration-export.js.map +1 -0
- package/dist/routes/platformOwner/plan-migrations.d.ts +43 -0
- package/dist/routes/platformOwner/plan-migrations.js +260 -0
- package/dist/routes/platformOwner/plan-migrations.js.map +1 -0
- package/dist/routes/platformOwner/plans.d.ts +44 -41
- package/dist/routes/platformOwner/plans.js +155 -142
- package/dist/routes/platformOwner/plans.js.map +1 -1
- package/dist/routes/platformOwner/platform-owners.d.ts +8 -6
- package/dist/routes/platformOwner/platform-owners.js +40 -12
- package/dist/routes/platformOwner/platform-owners.js.map +1 -1
- package/dist/routes/platformOwner/segments-export.d.ts +15 -0
- package/dist/routes/platformOwner/segments-export.js +143 -0
- package/dist/routes/platformOwner/segments-export.js.map +1 -0
- package/dist/routes/platformOwner/segments.d.ts +17 -11
- package/dist/routes/platformOwner/segments.js +62 -113
- package/dist/routes/platformOwner/segments.js.map +1 -1
- package/dist/routes/platformOwner/stripe-dashboard.d.ts +6 -0
- package/dist/routes/platformOwner/stripe-dashboard.js +29 -0
- package/dist/routes/platformOwner/stripe-dashboard.js.map +1 -0
- package/dist/routes/platformOwner/users-detail.d.ts +12 -22
- package/dist/routes/platformOwner/users-detail.js +60 -53
- package/dist/routes/platformOwner/users-detail.js.map +1 -1
- package/dist/routes/platformOwner/workspace-detail.d.ts +36 -0
- package/dist/routes/platformOwner/workspace-detail.js +222 -0
- package/dist/routes/platformOwner/workspace-detail.js.map +1 -0
- package/dist/routes/platformOwner/workspace-invitations.d.ts +4 -0
- package/dist/routes/platformOwner/workspace-invitations.js +18 -0
- package/dist/routes/platformOwner/workspace-invitations.js.map +1 -1
- package/dist/routes/platformOwner/workspace-operator-actions.d.ts +14 -2
- package/dist/routes/platformOwner/workspace-operator-actions.js +42 -4
- package/dist/routes/platformOwner/workspace-operator-actions.js.map +1 -1
- package/dist/routes/platformOwner/workspaces-admin.d.ts +17 -12
- package/dist/routes/platformOwner/workspaces-admin.js +122 -28
- package/dist/routes/platformOwner/workspaces-admin.js.map +1 -1
- package/dist/routes/public/index.d.ts +1 -0
- package/dist/routes/public/index.js +1 -0
- package/dist/routes/public/index.js.map +1 -1
- package/dist/routes/public/legal-documents.d.ts +2 -8
- package/dist/routes/public/legal-documents.js +4 -39
- package/dist/routes/public/legal-documents.js.map +1 -1
- package/dist/routes/public/pricing.d.ts +12 -0
- package/dist/routes/public/pricing.js +50 -0
- package/dist/routes/public/pricing.js.map +1 -0
- package/dist/routes/public/public-plan-catalog.d.ts +37 -0
- package/dist/routes/public/public-plan-catalog.js +63 -0
- package/dist/routes/public/public-plan-catalog.js.map +1 -0
- package/dist/routes/public/register.d.ts +13 -0
- package/dist/routes/public/register.js +88 -4
- package/dist/routes/public/register.js.map +1 -1
- package/dist/routes/tenant/billing-pay-invoice.d.ts +13 -0
- package/dist/routes/tenant/billing-pay-invoice.js +82 -0
- package/dist/routes/tenant/billing-pay-invoice.js.map +1 -0
- package/dist/routes/tenant/billing-portal.d.ts +8 -3
- package/dist/routes/tenant/billing-portal.js +34 -16
- package/dist/routes/tenant/billing-portal.js.map +1 -1
- package/dist/routes/tenant/billing-self-refund.d.ts +26 -1
- package/dist/routes/tenant/billing-self-refund.js +95 -46
- package/dist/routes/tenant/billing-self-refund.js.map +1 -1
- package/dist/routes/tenant/complimentary-banner.d.ts +12 -0
- package/dist/routes/tenant/complimentary-banner.js +64 -0
- package/dist/routes/tenant/complimentary-banner.js.map +1 -0
- package/dist/routes/tenant/data-export.js +14 -0
- package/dist/routes/tenant/data-export.js.map +1 -1
- package/dist/routes/tenant/index.d.ts +7 -0
- package/dist/routes/tenant/index.js +7 -0
- package/dist/routes/tenant/index.js.map +1 -1
- package/dist/routes/tenant/tenant-billing.d.ts +1 -0
- package/dist/routes/tenant/tenant-billing.js +18 -13
- package/dist/routes/tenant/tenant-billing.js.map +1 -1
- package/dist/routes/tenant/tenant-plan-authentication.d.ts +13 -0
- package/dist/routes/tenant/tenant-plan-authentication.js +79 -0
- package/dist/routes/tenant/tenant-plan-authentication.js.map +1 -0
- package/dist/routes/tenant/tenant-plan-cancellation.d.ts +12 -0
- package/dist/routes/tenant/tenant-plan-cancellation.js +87 -0
- package/dist/routes/tenant/tenant-plan-cancellation.js.map +1 -0
- package/dist/routes/tenant/tenant-plan-checkout.d.ts +3 -0
- package/dist/routes/tenant/tenant-plan-checkout.js +21 -11
- package/dist/routes/tenant/tenant-plan-checkout.js.map +1 -1
- package/dist/routes/tenant/tenant-plan-ops.d.ts +32 -2
- package/dist/routes/tenant/tenant-plan-ops.js +112 -39
- package/dist/routes/tenant/tenant-plan-ops.js.map +1 -1
- package/dist/routes/tenant/tenant-plan-preview.d.ts +33 -0
- package/dist/routes/tenant/tenant-plan-preview.js +216 -0
- package/dist/routes/tenant/tenant-plan-preview.js.map +1 -0
- package/dist/routes/tenant/tenant-plan-resubscription.d.ts +2 -0
- package/dist/routes/tenant/tenant-plan-resubscription.js +61 -0
- package/dist/routes/tenant/tenant-plan-resubscription.js.map +1 -0
- package/dist/routes/tenant/tenant-plan.d.ts +9 -4
- package/dist/routes/tenant/tenant-plan.js +124 -16
- package/dist/routes/tenant/tenant-plan.js.map +1 -1
- package/dist/routes/tenant/tenant-seats.d.ts +6 -1
- package/dist/routes/tenant/tenant-seats.js +26 -5
- package/dist/routes/tenant/tenant-seats.js.map +1 -1
- package/dist/routes/tenant/tenant-upcoming-invoice.d.ts +26 -0
- package/dist/routes/tenant/tenant-upcoming-invoice.js +200 -0
- package/dist/routes/tenant/tenant-upcoming-invoice.js.map +1 -0
- package/dist/routes/tenant/workspace-access.d.ts +67 -0
- package/dist/routes/tenant/workspace-access.js +224 -0
- package/dist/routes/tenant/workspace-access.js.map +1 -0
- package/dist/routes/tenant/workspaces.d.ts +12 -43
- package/dist/routes/tenant/workspaces.js +82 -192
- package/dist/routes/tenant/workspaces.js.map +1 -1
- package/dist/segments/index.d.ts +29 -0
- package/dist/segments/index.js +116 -0
- package/dist/segments/index.js.map +1 -0
- package/dist/stripe/client.d.ts +1 -0
- package/dist/stripe/client.js +11 -0
- package/dist/stripe/client.js.map +1 -1
- package/dist/stripe/customer-locale.d.ts +3 -0
- package/dist/stripe/customer-locale.js +36 -0
- package/dist/stripe/customer-locale.js.map +1 -0
- package/dist/stripe/dashboard-links.d.ts +2 -0
- package/dist/stripe/dashboard-links.js +8 -0
- package/dist/stripe/dashboard-links.js.map +1 -0
- package/dist/stripe/index.d.ts +3 -0
- package/dist/stripe/index.js +3 -0
- package/dist/stripe/index.js.map +1 -1
- package/dist/stripe/pending-update.d.ts +5 -0
- package/dist/stripe/pending-update.js +56 -0
- package/dist/stripe/pending-update.js.map +1 -0
- package/dist/stripe/plan-schedule.js +4 -1
- package/dist/stripe/plan-schedule.js.map +1 -1
- package/dist/stripe/subscription-cancellation.d.ts +3 -0
- package/dist/stripe/subscription-cancellation.js +26 -0
- package/dist/stripe/subscription-cancellation.js.map +1 -0
- package/dist/stripe/sync-plan.js +5 -6
- package/dist/stripe/sync-plan.js.map +1 -1
- package/dist/stripe/upcoming-invoice.d.ts +9 -0
- package/dist/stripe/upcoming-invoice.js +19 -3
- package/dist/stripe/upcoming-invoice.js.map +1 -1
- package/dist/stripe/webhook-checkout.js +2 -0
- package/dist/stripe/webhook-checkout.js.map +1 -1
- package/dist/stripe/webhook-credit-notes.js +15 -0
- package/dist/stripe/webhook-credit-notes.js.map +1 -1
- package/dist/stripe/webhook-dispatch.js +2 -0
- package/dist/stripe/webhook-dispatch.js.map +1 -1
- package/dist/stripe/webhook-handlers.d.ts +1 -0
- package/dist/stripe/webhook-handlers.js +34 -9
- package/dist/stripe/webhook-handlers.js.map +1 -1
- package/dist/stripe/webhook-shared.d.ts +3 -1
- package/dist/stripe/webhook-shared.js +20 -1
- package/dist/stripe/webhook-shared.js.map +1 -1
- package/dist/stripe/workspace-checkout.d.ts +2 -0
- package/dist/stripe/workspace-checkout.js +4 -0
- package/dist/stripe/workspace-checkout.js.map +1 -1
- package/dist/types/config.d.ts +2 -0
- package/dist/types/config.js.map +1 -1
- package/dist/upcoming-invoice/mapping.js +1 -0
- package/dist/upcoming-invoice/mapping.js.map +1 -1
- package/dist/users/index.d.ts +4 -0
- package/dist/users/index.js +21 -0
- package/dist/users/index.js.map +1 -0
- package/dist/users/platform-role.d.ts +18 -0
- package/dist/users/platform-role.js +127 -0
- package/dist/users/platform-role.js.map +1 -0
- package/dist/users/user-detail.d.ts +43 -0
- package/dist/users/user-detail.js +100 -0
- package/dist/users/user-detail.js.map +1 -0
- package/dist/users/user-facts.d.ts +10 -0
- package/dist/users/user-facts.js +157 -0
- package/dist/users/user-facts.js.map +1 -0
- package/dist/users/user-segments.d.ts +10 -0
- package/dist/users/user-segments.js +32 -0
- package/dist/users/user-segments.js.map +1 -0
- package/dist/utils/billing-displays.d.ts +6 -0
- package/dist/utils/billing-displays.js +17 -0
- package/dist/utils/billing-displays.js.map +1 -0
- package/dist/utils/billing-document-status.d.ts +0 -4
- package/dist/utils/billing-document-status.js +1 -13
- package/dist/utils/billing-document-status.js.map +1 -1
- package/dist/utils/billing-document-type.d.ts +6 -0
- package/dist/utils/billing-document-type.js +13 -0
- package/dist/utils/billing-document-type.js.map +1 -1
- package/dist/utils/csv-file.d.ts +2 -0
- package/dist/utils/csv-file.js +23 -0
- package/dist/utils/csv-file.js.map +1 -0
- package/dist/utils/form-insight-type.d.ts +8 -0
- package/dist/utils/form-insight-type.js +34 -0
- package/dist/utils/form-insight-type.js.map +1 -0
- package/dist/utils/index.d.ts +8 -0
- package/dist/utils/index.js +8 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/language.d.ts +1 -0
- package/dist/utils/language.js +7 -0
- package/dist/utils/language.js.map +1 -0
- package/dist/utils/money.d.ts +2 -0
- package/dist/utils/money.js +24 -0
- package/dist/utils/money.js.map +1 -0
- package/dist/utils/segment-evaluator.d.ts +4 -0
- package/dist/utils/segment-evaluator.js +15 -8
- package/dist/utils/segment-evaluator.js.map +1 -1
- package/dist/utils/segment-explain.d.ts +10 -0
- package/dist/utils/segment-explain.js +31 -0
- package/dist/utils/segment-explain.js.map +1 -0
- package/dist/utils/segment-fields.d.ts +13 -2
- package/dist/utils/segment-fields.js +137 -116
- package/dist/utils/segment-fields.js.map +1 -1
- package/dist/utils/segment-matching.d.ts +14 -3
- package/dist/utils/segment-matching.js +47 -13
- package/dist/utils/segment-matching.js.map +1 -1
- package/dist/utils/segment-preview.d.ts +31 -0
- package/dist/utils/segment-preview.js +83 -0
- package/dist/utils/segment-preview.js.map +1 -0
- package/dist/utils/segment-user-projection.d.ts +3 -0
- package/dist/utils/segment-user-projection.js +31 -0
- package/dist/utils/segment-user-projection.js.map +1 -0
- package/dist/utils/segment-validation.d.ts +14 -0
- package/dist/utils/segment-validation.js +98 -0
- package/dist/utils/segment-validation.js.map +1 -0
- package/dist/utils/status-vocabulary.d.ts +57 -0
- package/dist/utils/status-vocabulary.js +92 -0
- package/dist/utils/status-vocabulary.js.map +1 -0
- package/dist/workers/index.d.ts +1 -0
- package/dist/workers/index.js +1 -0
- package/dist/workers/index.js.map +1 -1
- package/dist/workers/plan-migration-resolution.d.ts +14 -0
- package/dist/workers/plan-migration-resolution.js +99 -0
- package/dist/workers/plan-migration-resolution.js.map +1 -0
- package/dist/workers/plan-migration.d.ts +6 -1
- package/dist/workers/plan-migration.js +152 -37
- package/dist/workers/plan-migration.js.map +1 -1
- package/dist/workspaces/billing-identity-lock.d.ts +1 -0
- package/dist/workspaces/billing-identity-lock.js +18 -0
- package/dist/workspaces/billing-identity-lock.js.map +1 -0
- package/dist/workspaces/complimentary-banner.d.ts +11 -0
- package/dist/workspaces/complimentary-banner.js +83 -0
- package/dist/workspaces/complimentary-banner.js.map +1 -0
- package/dist/workspaces/default-member-role.d.ts +2 -0
- package/dist/workspaces/default-member-role.js +43 -0
- package/dist/workspaces/default-member-role.js.map +1 -0
- package/dist/workspaces/deletion-request.d.ts +2 -0
- package/dist/workspaces/deletion-request.js +5 -0
- package/dist/workspaces/deletion-request.js.map +1 -0
- package/dist/workspaces/deletion.d.ts +1 -1
- package/dist/workspaces/deletion.js +19 -7
- package/dist/workspaces/deletion.js.map +1 -1
- package/dist/workspaces/detail-items.d.ts +15 -0
- package/dist/workspaces/detail-items.js +226 -0
- package/dist/workspaces/detail-items.js.map +1 -0
- package/dist/workspaces/first-payment.d.ts +5 -0
- package/dist/workspaces/first-payment.js +28 -0
- package/dist/workspaces/first-payment.js.map +1 -0
- package/dist/workspaces/free-workspaces-per-card.d.ts +6 -0
- package/dist/workspaces/free-workspaces-per-card.js +58 -0
- package/dist/workspaces/free-workspaces-per-card.js.map +1 -0
- package/dist/workspaces/index.d.ts +7 -0
- package/dist/workspaces/index.js +7 -0
- package/dist/workspaces/index.js.map +1 -1
- package/dist/workspaces/invitations.d.ts +2 -1
- package/dist/workspaces/invitations.js +16 -6
- package/dist/workspaces/invitations.js.map +1 -1
- package/dist/workspaces/my-workspaces.d.ts +13 -0
- package/dist/workspaces/my-workspaces.js +68 -0
- package/dist/workspaces/my-workspaces.js.map +1 -0
- package/dist/workspaces/operator-creation.d.ts +39 -0
- package/dist/workspaces/operator-creation.js +123 -0
- package/dist/workspaces/operator-creation.js.map +1 -0
- package/dist/workspaces/operator-view.d.ts +13 -0
- package/dist/workspaces/operator-view.js +37 -0
- package/dist/workspaces/operator-view.js.map +1 -0
- package/dist/workspaces/owner-contact.d.ts +7 -0
- package/dist/workspaces/owner-contact.js +24 -0
- package/dist/workspaces/owner-contact.js.map +1 -0
- package/dist/workspaces/owner-invitation-email.d.ts +12 -0
- package/dist/workspaces/owner-invitation-email.js +53 -0
- package/dist/workspaces/owner-invitation-email.js.map +1 -0
- package/dist/workspaces/provisioning.d.ts +2 -0
- package/dist/workspaces/provisioning.js +37 -15
- package/dist/workspaces/provisioning.js.map +1 -1
- package/dist/workspaces/self-serve-creation.d.ts +38 -0
- package/dist/workspaces/self-serve-creation.js +106 -0
- package/dist/workspaces/self-serve-creation.js.map +1 -0
- package/dist/workspaces/workspace-glance.d.ts +3 -0
- package/dist/workspaces/workspace-glance.js +93 -0
- package/dist/workspaces/workspace-glance.js.map +1 -0
- package/dist/workspaces/workspace-name.d.ts +2 -0
- package/dist/workspaces/workspace-name.js +14 -0
- package/dist/workspaces/workspace-name.js.map +1 -0
- package/dist/workspaces/workspace-overview.d.ts +41 -0
- package/dist/workspaces/workspace-overview.js +84 -0
- package/dist/workspaces/workspace-overview.js.map +1 -0
- package/dist/workspaces/workspace-owner.d.ts +7 -0
- package/dist/workspaces/workspace-owner.js +14 -0
- package/dist/workspaces/workspace-owner.js.map +1 -0
- package/frontend-vue/app/build/PayInvoiceDialog.vue +40 -0
- package/frontend-vue/app/build/PayInvoicePanel.vue +203 -0
- package/frontend-vue/app/build/PlanChangeReview.vue +415 -0
- package/frontend-vue/app/build/PlanFeatureValueInput.vue +143 -0
- package/frontend-vue/app/build/PlanPermissionPicker.vue +246 -0
- package/frontend-vue/app/build/WorkspaceSwitcherRow.vue +116 -0
- package/frontend-vue/app/build/components/CreditNoteInvoiceSummary.vue +82 -0
- package/frontend-vue/app/build/components/FormFieldRow.vue +97 -0
- package/frontend-vue/app/build/components/FormRows.vue +26 -0
- package/frontend-vue/app/build/components/RequiredLegend.vue +7 -0
- package/frontend-vue/app/build/composables/useCreditNoteDraft.ts +142 -0
- package/frontend-vue/app/build/composables/useCreditNoteTexts.ts +123 -0
- package/frontend-vue/app/build/composables/useLiveFormValues.ts +49 -0
- package/frontend-vue/app/build/day-formats.ts +17 -0
- package/frontend-vue/app/build/highlight.ts +28 -0
- package/frontend-vue/app/build/plan-catalog.ts +161 -0
- package/frontend-vue/app/build/plan-change-heading.ts +81 -0
- package/frontend-vue/app/build/plan-permissions.ts +92 -0
- package/frontend-vue/app/build/plan-retire.ts +83 -0
- package/frontend-vue/app/build/public/AccessTimeline.vue +68 -0
- package/frontend-vue/app/build/public/LegalAcceptance.vue +51 -0
- package/frontend-vue/app/build/public/OtherWorkspaces.vue +88 -0
- package/frontend-vue/app/build/public/PricingComparison.vue +227 -0
- package/frontend-vue/app/build/public/PricingFaq.vue +76 -0
- package/frontend-vue/app/build/public/PublicStage.vue +72 -0
- package/frontend-vue/app/build/public/RegistrationCardField.vue +71 -0
- package/frontend-vue/app/build/public/RegistrationPlanCard.vue +122 -0
- package/frontend-vue/app/build/public/access.ts +118 -0
- package/frontend-vue/app/build/public/chosen-plan.ts +36 -0
- package/frontend-vue/app/build/public/legal.ts +99 -0
- package/frontend-vue/app/build/public/pricing.ts +175 -0
- package/frontend-vue/app/build/public/routes.ts +122 -0
- package/frontend-vue/app/build/public/usePublicFetch.ts +44 -0
- package/frontend-vue/app/build/public/usePublicPlanFormat.ts +52 -0
- package/frontend-vue/app/build/segments/tree.ts +137 -0
- package/frontend-vue/app/build/segments/types.ts +119 -0
- package/frontend-vue/app/build/segments/useSegmentCatalog.ts +58 -0
- package/frontend-vue/app/build/segments/useSegmentDraft.ts +33 -0
- package/frontend-vue/app/build/segments/useSegmentPreview.ts +78 -0
- package/frontend-vue/app/build/segments/useSegmentSentence.ts +60 -0
- package/frontend-vue/app/build/segments/useSegmentWords.ts +204 -0
- package/frontend-vue/app/build/useWorkspaceName.ts +14 -0
- package/frontend-vue/app/build/users/useUserDetail.ts +82 -0
- package/frontend-vue/app/build/workspace-detail/ComplimentaryDialog.vue +219 -0
- package/frontend-vue/app/build/workspace-detail/CreditDialog.vue +243 -0
- package/frontend-vue/app/build/workspace-detail/UpgradeDialog.vue +258 -0
- package/frontend-vue/app/build/workspace-detail/WorkspaceActionDialogs.vue +82 -0
- package/frontend-vue/app/build/workspace-detail/planPrice.ts +26 -0
- package/frontend-vue/app/build/workspace-detail/types.ts +138 -0
- package/frontend-vue/app/build/workspace-detail/useWorkspaceActions.ts +177 -0
- package/frontend-vue/app/build/workspace-detail/useWorkspaceOverview.ts +44 -0
- package/frontend-vue/app/build/workspace-paths.ts +8 -0
- package/frontend-vue/app/components/BillingIdentityFields.vue +294 -161
- package/frontend-vue/app/components/CustomerPortalButton.vue +80 -32
- package/frontend-vue/app/components/DataExport.vue +250 -260
- package/frontend-vue/app/components/DataExportHistory.vue +246 -0
- package/frontend-vue/app/components/DunningTimeline.vue +120 -0
- package/frontend-vue/app/components/IssueCreditNoteModal.vue +318 -116
- package/frontend-vue/app/components/LegalDocumentRelease.vue +64 -0
- package/frontend-vue/app/components/LegalLayout.vue +284 -46
- package/frontend-vue/app/components/MigrationStripeCheck.vue +133 -0
- package/frontend-vue/app/components/PastDueAlert.vue +186 -78
- package/frontend-vue/app/components/PastDueBanner.vue +96 -67
- package/frontend-vue/app/components/PayInvoiceModal.vue +57 -0
- package/frontend-vue/app/components/PaymentMethodCard.vue +159 -163
- package/frontend-vue/app/components/PendingCheckoutModal.vue +61 -61
- package/frontend-vue/app/components/PlanAccessEditor.vue +410 -0
- package/frontend-vue/app/components/PlanCard.vue +358 -261
- package/frontend-vue/app/components/PlanCardPublic.vue +123 -51
- package/frontend-vue/app/components/PlanComparisonModal.vue +373 -309
- package/frontend-vue/app/components/PlanEditorPreview.vue +374 -0
- package/frontend-vue/app/components/PlanLimitInput.vue +92 -0
- package/frontend-vue/app/components/PlanTaxSync.vue +118 -0
- package/frontend-vue/app/components/PlanUpgradeModal.vue +265 -156
- package/frontend-vue/app/components/PlatformNotes.vue +215 -255
- package/frontend-vue/app/components/Pricing.vue +236 -0
- package/frontend-vue/app/components/PublicNavBar.vue +70 -0
- package/frontend-vue/app/components/RefundButton.vue +264 -113
- package/frontend-vue/app/components/RefundExample.vue +86 -0
- package/frontend-vue/app/components/Register.vue +217 -121
- package/frontend-vue/app/components/RegistrationClosed.vue +30 -13
- package/frontend-vue/app/components/RetirePlanModal.vue +829 -0
- package/frontend-vue/app/components/SeatQuotaBanner.vue +240 -90
- package/frontend-vue/app/components/SegmentConditionRow.vue +171 -0
- package/frontend-vue/app/components/SegmentConditionsBuilder.vue +89 -162
- package/frontend-vue/app/components/SegmentConditionsGroup.vue +273 -463
- package/frontend-vue/app/components/SegmentLivePreview.vue +301 -0
- package/frontend-vue/app/components/SegmentLogicToggle.vue +24 -0
- package/frontend-vue/app/components/SegmentRulesText.vue +57 -0
- package/frontend-vue/app/components/SegmentValueInput.vue +165 -0
- package/frontend-vue/app/components/SegmentWords.vue +36 -0
- package/frontend-vue/app/components/TenantBillingForm.vue +142 -103
- package/frontend-vue/app/components/TenantPlanCard.vue +635 -280
- package/frontend-vue/app/components/TrialEndingBanner.vue +76 -0
- package/frontend-vue/app/components/UserPlatformRoleCard.vue +102 -0
- package/frontend-vue/app/components/UserSegmentMatches.vue +123 -0
- package/frontend-vue/app/components/UserSummaryCard.vue +107 -158
- package/frontend-vue/app/components/WorkspaceAdminCreateModal.vue +354 -177
- package/frontend-vue/app/components/WorkspaceCreateModal.vue +372 -252
- package/frontend-vue/app/components/WorkspaceDangerZone.vue +178 -126
- package/frontend-vue/app/components/WorkspaceDetailHeader.vue +262 -19
- package/frontend-vue/app/components/WorkspaceInvitationLink.vue +108 -86
- package/frontend-vue/app/components/WorkspaceOperatorActions.vue +105 -330
- package/frontend-vue/app/components/WorkspaceSuspendButton.vue +34 -158
- package/frontend-vue/app/components/WorkspaceSuspended.vue +390 -149
- package/frontend-vue/app/components/WorkspaceSwitcherWidget.vue +145 -161
- package/frontend-vue/app/composables/useBillingIdentity.ts +97 -95
- package/frontend-vue/app/composables/useBillingStatus.ts +56 -24
- package/frontend-vue/app/composables/useCurrentWorkspace.ts +15 -30
- package/frontend-vue/app/composables/useDaysLeft.ts +20 -0
- package/frontend-vue/app/composables/useExportHistory.ts +209 -120
- package/frontend-vue/app/composables/useInvitationLink.ts +39 -53
- package/frontend-vue/app/composables/useMoneyFormat.ts +64 -33
- package/frontend-vue/app/composables/useMyWorkspaces.ts +41 -32
- package/frontend-vue/app/composables/useNextInvoice.ts +20 -0
- package/frontend-vue/app/composables/usePayInvoice.ts +52 -0
- package/frontend-vue/app/composables/usePendingCheckout.ts +71 -67
- package/frontend-vue/app/composables/usePlanCatalog.ts +16 -0
- package/frontend-vue/app/composables/usePlanChangeReview.ts +115 -0
- package/frontend-vue/app/composables/usePlanComparison.ts +17 -8
- package/frontend-vue/app/composables/usePlanDowngrade.ts +25 -23
- package/frontend-vue/app/composables/usePlanFeatureFormat.ts +238 -202
- package/frontend-vue/app/composables/usePlanPriceLabel.ts +28 -0
- package/frontend-vue/app/composables/useSaasRegistration.ts +516 -301
- package/frontend-vue/app/composables/useSaasStatus.ts +81 -0
- package/frontend-vue/app/composables/useSeatQuota.ts +27 -17
- package/frontend-vue/app/composables/useServerConfirm.ts +44 -0
- package/frontend-vue/app/composables/useStripePaymentElement.ts +3 -5
- package/frontend-vue/app/composables/useTenantPlan.ts +235 -99
- package/frontend-vue/app/composables/useUpgradeAuthentication.ts +37 -0
- package/frontend-vue/app/composables/useWorkspaceFinalization.ts +4 -0
- package/frontend-vue/app/composables/useWorkspaceOverview.ts +58 -0
- package/frontend-vue/app/composables/useWorkspaceRenamed.ts +33 -0
- package/frontend-vue/app/custom-pages/auth/no-workspace.vue +391 -312
- package/frontend-vue/app/plugins/auth-links.ts +38 -17
- package/frontend-vue/app/plugins/billing-data-types.ts +111 -58
- package/frontend-vue/app/plugins/footer-links.ts +13 -33
- package/frontend-vue/app/plugins/segment-conditions-data-type.ts +45 -0
- package/frontend-vue/app/plugins/sidebar-widgets.ts +13 -10
- package/frontend-vue/app/types/runtime-config.ts +9 -4
- package/frontend-vue/dms.frontend.build.ts +7 -0
- package/frontend-vue/dms.frontend.ts +6 -13
- package/frontend-vue/i18n/locales/saas-en-GB.json +499 -1380
- package/frontend-vue/i18n/locales/saas-fr-FR.json +499 -1380
- package/frontend-vue/i18n/locales/saas-operator-billing-en-GB.json +282 -0
- package/frontend-vue/i18n/locales/saas-operator-billing-fr-FR.json +282 -0
- package/frontend-vue/i18n/locales/saas-operator-catalog-en-GB.json +597 -0
- package/frontend-vue/i18n/locales/saas-operator-catalog-fr-FR.json +597 -0
- package/frontend-vue/i18n/locales/saas-operator-users-en-GB.json +505 -0
- package/frontend-vue/i18n/locales/saas-operator-users-fr-FR.json +505 -0
- package/frontend-vue/i18n/locales/saas-operator-workspaces-en-GB.json +595 -0
- package/frontend-vue/i18n/locales/saas-operator-workspaces-fr-FR.json +595 -0
- package/frontend-vue/i18n/locales/saas-public-en-GB.json +304 -0
- package/frontend-vue/i18n/locales/saas-public-fr-FR.json +304 -0
- package/frontend-vue/i18n/locales/saas-tenant-billing-en-GB.json +434 -0
- package/frontend-vue/i18n/locales/saas-tenant-billing-fr-FR.json +434 -0
- package/frontend-vue/i18n/locales/saas-tenant-workspace-en-GB.json +252 -0
- package/frontend-vue/i18n/locales/saas-tenant-workspace-fr-FR.json +252 -0
- package/frontend-vue/package.json +1 -1
- package/package.json +10 -10
- package/frontend-vue/app/components/CardGrid.vue +0 -77
- package/frontend-vue/app/components/DeletePlanModal.vue +0 -223
- package/frontend-vue/app/components/FreeAccessBanner.vue +0 -70
- package/frontend-vue/app/components/PlanCardsDisplay.vue +0 -127
- package/frontend-vue/app/components/PlanInheritancePicker.vue +0 -329
- package/frontend-vue/app/components/RecentActivity.vue +0 -72
- package/frontend-vue/app/components/WorkspaceBillingInfo.vue +0 -68
- package/frontend-vue/app/components/WorkspaceCompAccessButton.vue +0 -198
- package/frontend-vue/app/components/WorkspaceIdentity.vue +0 -99
- package/frontend-vue/app/components/WorkspaceJoinButton.vue +0 -50
- package/frontend-vue/app/components/WorkspaceSummaryCard.vue +0 -185
- package/frontend-vue/app/composables/useDetailRefresh.ts +0 -17
- package/frontend-vue/app/composables/usePastDueBannerAction.ts +0 -20
- package/frontend-vue/app/plugins/plan-cards-display.ts +0 -16
- package/frontend-vue/app/plugins/segment-conditions-data-type.client.ts +0 -122
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sumPaidInvoices = sumPaidInvoices;
|
|
4
|
+
exports.loadUserDetail = loadUserDetail;
|
|
5
|
+
const interface_api_util_1 = require("@antelopejs/interface-api-util");
|
|
6
|
+
const interface_database_1 = require("@antelopejs/interface-database");
|
|
7
|
+
const interface_database_decorators_1 = require("@antelopejs/interface-database-decorators");
|
|
8
|
+
const db_1 = require("@antelopejs/interface-dms/db");
|
|
9
|
+
const db_2 = require("@antelopejs/interface-dms/auth/db");
|
|
10
|
+
const db_3 = require("../db");
|
|
11
|
+
const HTTP_NOT_FOUND = 404;
|
|
12
|
+
const PAID_STATUS = "paid";
|
|
13
|
+
const PASSWORD_METHOD = "password";
|
|
14
|
+
function newestSession(sessions) {
|
|
15
|
+
return [...sessions].sort((a, b) => new Date(b.lastActiveAt).getTime() - new Date(a.lastActiveAt).getTime())[0];
|
|
16
|
+
}
|
|
17
|
+
function latestDate(...dates) {
|
|
18
|
+
const times = dates
|
|
19
|
+
.filter((date) => !!date)
|
|
20
|
+
.map((date) => new Date(date).getTime());
|
|
21
|
+
return times.length > 0 ? new Date(Math.max(...times)) : null;
|
|
22
|
+
}
|
|
23
|
+
async function loadWorkspaces(userId) {
|
|
24
|
+
const rows = await (0, interface_database_decorators_1.GetModel)(db_1.TenantMemberModel, interface_database_1.CROSS_INSTANCE).listByUserWithTenantIds(userId);
|
|
25
|
+
const tenants = await (0, interface_database_decorators_1.GetModel)(db_1.TenantModel).getMany(rows.map((row) => row.tenantId));
|
|
26
|
+
const names = new Map(tenants.map((tenant) => [tenant._id, tenant.name]));
|
|
27
|
+
return rows.map((row) => ({
|
|
28
|
+
tenantId: row.tenantId,
|
|
29
|
+
name: names.get(row.tenantId) ?? row.tenantId,
|
|
30
|
+
isTenantOwner: !!row.member.isTenantOwner,
|
|
31
|
+
joinedAt: row.member.joinedAt ?? null,
|
|
32
|
+
}));
|
|
33
|
+
}
|
|
34
|
+
async function sumPaidInvoices(tenantIds) {
|
|
35
|
+
const invoices = (await Promise.all(tenantIds.map((tenantId) => (0, interface_database_decorators_1.GetModel)(db_3.InvoiceModel, tenantId).getAllInvoices()))).flat();
|
|
36
|
+
const totals = new Map();
|
|
37
|
+
for (const invoice of invoices) {
|
|
38
|
+
if (invoice.status !== PAID_STATUS)
|
|
39
|
+
continue;
|
|
40
|
+
const currency = (invoice.currency || "").toUpperCase();
|
|
41
|
+
totals.set(currency, (totals.get(currency) ?? 0) + invoice.total);
|
|
42
|
+
}
|
|
43
|
+
return [...totals].map(([currency, amount]) => ({ currency, amount }));
|
|
44
|
+
}
|
|
45
|
+
function securityOf(user, sessions, providers) {
|
|
46
|
+
const backupCodes = user.twoFactorBackupCodes ?? [];
|
|
47
|
+
return {
|
|
48
|
+
signInMethods: [
|
|
49
|
+
...(user.password ? [PASSWORD_METHOD] : []),
|
|
50
|
+
...new Set(providers),
|
|
51
|
+
],
|
|
52
|
+
twoFactorMethods: user.twoFactorMethods ?? [],
|
|
53
|
+
backupCodesLeft: user.twoFactorBackupCodesGeneratedAt
|
|
54
|
+
? backupCodes.length
|
|
55
|
+
: null,
|
|
56
|
+
activeSessions: sessions.length,
|
|
57
|
+
sessionLocations: [
|
|
58
|
+
...new Set(sessions.map((session) => session.location).filter(Boolean)),
|
|
59
|
+
],
|
|
60
|
+
isEmailVerified: !!user.isValidated,
|
|
61
|
+
verificationRequestedAt: user.isValidated
|
|
62
|
+
? null
|
|
63
|
+
: (user.validationRequestedAt ?? null),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
async function requireUser(userId) {
|
|
67
|
+
const user = await (0, interface_database_decorators_1.GetModel)(db_2.UserModel).get(userId);
|
|
68
|
+
(0, interface_api_util_1.assert)(user, HTTP_NOT_FOUND, "saas.errors.user.not_found");
|
|
69
|
+
return user;
|
|
70
|
+
}
|
|
71
|
+
async function loadUserDetail(userId, actorId) {
|
|
72
|
+
const user = await requireUser(userId);
|
|
73
|
+
const [workspaces, sessions, identities, segments] = await Promise.all([
|
|
74
|
+
loadWorkspaces(userId),
|
|
75
|
+
(0, interface_database_decorators_1.GetModel)(db_2.SessionModel).getByUserId(userId),
|
|
76
|
+
(0, interface_database_decorators_1.GetModel)(db_2.UserExternalIdentityModel).getByUserId(userId),
|
|
77
|
+
(0, interface_database_decorators_1.GetModel)(db_3.UserSegmentModel).listByUser(userId),
|
|
78
|
+
]);
|
|
79
|
+
const owned = workspaces.filter((workspace) => workspace.isTenantOwner);
|
|
80
|
+
const latest = newestSession(sessions);
|
|
81
|
+
return {
|
|
82
|
+
_id: user._id,
|
|
83
|
+
name: user.name ?? "",
|
|
84
|
+
email: user.email,
|
|
85
|
+
avatar: user.avatar ?? null,
|
|
86
|
+
language: user.language || null,
|
|
87
|
+
createdAt: user.createdAt,
|
|
88
|
+
lastActiveAt: latestDate(user.lastActiveAt, latest?.lastActiveAt),
|
|
89
|
+
lastSession: latest
|
|
90
|
+
? { browser: latest.browser, os: latest.os, location: latest.location }
|
|
91
|
+
: null,
|
|
92
|
+
isPlatformAdmin: !!user.owner,
|
|
93
|
+
isSelf: userId === actorId,
|
|
94
|
+
workspaces,
|
|
95
|
+
billedAsOwner: await sumPaidInvoices(owned.map((w) => w.tenantId)),
|
|
96
|
+
segmentCount: segments.length,
|
|
97
|
+
security: securityOf(user, sessions, identities.map((identity) => identity.provider)),
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=user-detail.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-detail.js","sourceRoot":"","sources":["../../src/users/user-detail.ts"],"names":[],"mappings":";;AA0GA,0CAiBC;AAmCD,wCAmCC;AAjMD,uEAAwD;AACxD,uEAAgE;AAChE,6FAAqE;AACrE,qDAA8E;AAC9E,0DAM2C;AAC3C,8BAAuD;AAEvD,MAAM,cAAc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AAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;QAClE,YAAY,EAAE,QAAQ,CAAC,MAAM;QAC7B,QAAQ,EAAE,UAAU,CAClB,IAAI,EACJ,QAAQ,EACR,UAAU,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAChD;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { KeyValueListItem, StatGroupItem } from "@antelopejs/interface-dms/base";
|
|
2
|
+
import type { UserDetail, UserSecurity } from "./user-detail";
|
|
3
|
+
export declare function userFactItems(user: UserDetail, fallbackCurrency: string): StatGroupItem[];
|
|
4
|
+
export declare function userSecurityItems(security: UserSecurity): KeyValueListItem[];
|
|
5
|
+
export interface UserTabCounts {
|
|
6
|
+
workspaces: number;
|
|
7
|
+
billing: number;
|
|
8
|
+
segments: number;
|
|
9
|
+
}
|
|
10
|
+
export declare function userTabCounts(user: UserDetail, billedDocuments: number): UserTabCounts;
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.userFactItems = userFactItems;
|
|
4
|
+
exports.userSecurityItems = userSecurityItems;
|
|
5
|
+
exports.userTabCounts = userTabCounts;
|
|
6
|
+
const composed_text_1 = require("../i18n/composed-text");
|
|
7
|
+
const language_1 = require("../utils/language");
|
|
8
|
+
const FACTS = "saas.users.detail_facts";
|
|
9
|
+
const SECURITY = "saas.users.security";
|
|
10
|
+
const DETAIL_SEPARATOR = " · ";
|
|
11
|
+
const LOCATION_SEPARATOR = ", ";
|
|
12
|
+
const NAMED_LANGUAGES = new Set(["en", "fr"]);
|
|
13
|
+
const NAMED_SIGN_IN_METHODS = new Set(["password"]);
|
|
14
|
+
const NAMED_TWO_FACTOR_METHODS = new Set(["totp", "email"]);
|
|
15
|
+
function languageName(code) {
|
|
16
|
+
if (!code)
|
|
17
|
+
return `$${FACTS}.no_language`;
|
|
18
|
+
const language = (0, language_1.baseLanguage)(code);
|
|
19
|
+
return language && NAMED_LANGUAGES.has(language)
|
|
20
|
+
? (0, composed_text_1.composed)(`${FACTS}.languages.${language}`)
|
|
21
|
+
: code;
|
|
22
|
+
}
|
|
23
|
+
function billedText(totals, fallbackCurrency) {
|
|
24
|
+
if (totals.length === 0)
|
|
25
|
+
return (0, composed_text_1.valueText)((0, composed_text_1.moneyParam)(0, fallbackCurrency));
|
|
26
|
+
return (0, composed_text_1.sumList)(totals.map((total) => (0, composed_text_1.moneyParam)(total.amount, total.currency)));
|
|
27
|
+
}
|
|
28
|
+
function lastActiveDetail(user) {
|
|
29
|
+
const session = user.lastSession;
|
|
30
|
+
if (!session)
|
|
31
|
+
return undefined;
|
|
32
|
+
return ([session.browser, session.location]
|
|
33
|
+
.filter(Boolean)
|
|
34
|
+
.join(DETAIL_SEPARATOR) || undefined);
|
|
35
|
+
}
|
|
36
|
+
function userFactItems(user, fallbackCurrency) {
|
|
37
|
+
const owned = user.workspaces.filter((workspace) => workspace.isTenantOwner);
|
|
38
|
+
return [
|
|
39
|
+
{
|
|
40
|
+
id: "workspaces",
|
|
41
|
+
icon: "i-ph-buildings",
|
|
42
|
+
eyebrow: `$${FACTS}.workspaces`,
|
|
43
|
+
value: user.workspaces.length,
|
|
44
|
+
detail: (0, composed_text_1.composed)(`${FACTS}.workspaces_detail`, {
|
|
45
|
+
owned: owned.length,
|
|
46
|
+
member: user.workspaces.length - owned.length,
|
|
47
|
+
}),
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
id: "language",
|
|
51
|
+
icon: "i-ph-translate",
|
|
52
|
+
eyebrow: `$${FACTS}.language`,
|
|
53
|
+
value: languageName(user.language),
|
|
54
|
+
detail: user.language ?? undefined,
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
id: "last-active",
|
|
58
|
+
icon: "i-ph-clock",
|
|
59
|
+
eyebrow: `$${FACTS}.last_active`,
|
|
60
|
+
value: user.lastActiveAt
|
|
61
|
+
? (0, composed_text_1.valueText)((0, composed_text_1.relativeParam)(user.lastActiveAt))
|
|
62
|
+
: "$saas.users.never_active",
|
|
63
|
+
detail: lastActiveDetail(user),
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
id: "created",
|
|
67
|
+
icon: "i-ph-calendar-blank",
|
|
68
|
+
eyebrow: `$${FACTS}.created`,
|
|
69
|
+
value: (0, composed_text_1.valueText)((0, composed_text_1.dateParam)(user.createdAt)),
|
|
70
|
+
detail: (0, composed_text_1.valueText)((0, composed_text_1.relativeParam)(user.createdAt)),
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
id: "billed",
|
|
74
|
+
icon: "i-ph-coins",
|
|
75
|
+
eyebrow: `$${FACTS}.billed`,
|
|
76
|
+
value: billedText(user.billedAsOwner, fallbackCurrency),
|
|
77
|
+
detail: (0, composed_text_1.composed)(`${FACTS}.billed_detail`, {
|
|
78
|
+
count: (0, composed_text_1.countParam)(owned.length),
|
|
79
|
+
}),
|
|
80
|
+
},
|
|
81
|
+
];
|
|
82
|
+
}
|
|
83
|
+
function capitalised(word) {
|
|
84
|
+
return word.charAt(0).toUpperCase() + word.slice(1);
|
|
85
|
+
}
|
|
86
|
+
function methodLabel(method) {
|
|
87
|
+
return NAMED_SIGN_IN_METHODS.has(method)
|
|
88
|
+
? (0, composed_text_1.composed)(`${SECURITY}.method.${method}`)
|
|
89
|
+
: capitalised(method);
|
|
90
|
+
}
|
|
91
|
+
function twoFactorLabel(method) {
|
|
92
|
+
return NAMED_TWO_FACTOR_METHODS.has(method)
|
|
93
|
+
? (0, composed_text_1.composed)(`${SECURITY}.two_factor_method.${method}`)
|
|
94
|
+
: method;
|
|
95
|
+
}
|
|
96
|
+
function twoFactorItem(security) {
|
|
97
|
+
const methods = (0, composed_text_1.dotList)(security.twoFactorMethods.map(twoFactorLabel));
|
|
98
|
+
if (!methods) {
|
|
99
|
+
return {
|
|
100
|
+
id: "two-factor",
|
|
101
|
+
label: `$${SECURITY}.two_factor`,
|
|
102
|
+
value: `$${SECURITY}.off`,
|
|
103
|
+
tone: "warning",
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
return {
|
|
107
|
+
id: "two-factor",
|
|
108
|
+
label: `$${SECURITY}.two_factor`,
|
|
109
|
+
value: methods,
|
|
110
|
+
detail: security.backupCodesLeft === null
|
|
111
|
+
? undefined
|
|
112
|
+
: (0, composed_text_1.composed)(`${SECURITY}.backup_codes_left`, {
|
|
113
|
+
count: (0, composed_text_1.countParam)(security.backupCodesLeft),
|
|
114
|
+
}),
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
function verificationItem(security) {
|
|
118
|
+
const isVerified = security.isEmailVerified;
|
|
119
|
+
return {
|
|
120
|
+
id: "email-verified",
|
|
121
|
+
label: `$${SECURITY}.email_verified`,
|
|
122
|
+
type: "status",
|
|
123
|
+
value: isVerified ? `$${SECURITY}.yes` : `$${SECURITY}.not_yet`,
|
|
124
|
+
tone: isVerified ? "success" : "warning",
|
|
125
|
+
detail: !isVerified && security.verificationRequestedAt
|
|
126
|
+
? (0, composed_text_1.composed)(`${SECURITY}.verification_requested`, {
|
|
127
|
+
date: (0, composed_text_1.dateParam)(security.verificationRequestedAt),
|
|
128
|
+
})
|
|
129
|
+
: undefined,
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
function userSecurityItems(security) {
|
|
133
|
+
return [
|
|
134
|
+
{
|
|
135
|
+
id: "sign-in",
|
|
136
|
+
label: `$${SECURITY}.sign_in_methods`,
|
|
137
|
+
value: (0, composed_text_1.dotList)(security.signInMethods.map(methodLabel)) ??
|
|
138
|
+
`$${SECURITY}.no_method`,
|
|
139
|
+
},
|
|
140
|
+
twoFactorItem(security),
|
|
141
|
+
{
|
|
142
|
+
id: "sessions",
|
|
143
|
+
label: `$${SECURITY}.active_sessions`,
|
|
144
|
+
value: security.activeSessions || `$${SECURITY}.no_session`,
|
|
145
|
+
detail: security.sessionLocations.join(LOCATION_SEPARATOR) || undefined,
|
|
146
|
+
},
|
|
147
|
+
verificationItem(security),
|
|
148
|
+
];
|
|
149
|
+
}
|
|
150
|
+
function userTabCounts(user, billedDocuments) {
|
|
151
|
+
return {
|
|
152
|
+
workspaces: user.workspaces.length,
|
|
153
|
+
billing: billedDocuments,
|
|
154
|
+
segments: user.segmentCount,
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
//# sourceMappingURL=user-facts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-facts.js","sourceRoot":"","sources":["../../src/users/user-facts.ts"],"names":[],"mappings":";;AAgEA,sCAiDC;AAgED,8CAkBC;AAiBD,sCASC;AAvND,yDAS+B;AAE/B,gDAAiD;AAEjD,MAAM,KAAK,GAAG,yBAAyB,CAAC;AACxC,MAAM,QAAQ,GAAG,qBAAqB,CAAC;AACvC,MAAM,gBAAgB,GAAG,KAAK,CAAC;AAC/B,MAAM,kBAAkB,GAAG,IAAI,CAAC;AAGhC,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;AAC9C,MAAM,qBAAqB,GAAG,IAAI,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;AACpD,MAAM,wBAAwB,GAAG,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAE5D,SAAS,YAAY,CAAC,IAAmB;IACvC,IAAI,CAAC,IAAI;QAAE,OAAO,IAAI,KAAK,cAAc,CAAC;IAC1C,MAAM,QAAQ,GAAG,IAAA,uBAAY,EAAC,IAAI,CAAC,CAAC;IACpC,OAAO,QAAQ,IAAI,eAAe,CAAC,GAAG,CAAC,QAAQ,CAAC;QAC9C,CAAC,CAAC,IAAA,wBAAQ,EAAC,GAAG,KAAK,cAAc,QAAQ,EAAE,CAAC;QAC5C,CAAC,CAAC,IAAI,CAAC;AACX,CA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
|
2
|
+
export interface UserSegmentMatch {
|
|
3
|
+
_id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
description: string;
|
|
6
|
+
evaluatedAt: Date;
|
|
7
|
+
explanation: ExplainedGroup;
|
|
8
|
+
matchesNow: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function loadUserSegmentMatches(userId: string): Promise<UserSegmentMatch[]>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.loadUserSegmentMatches = loadUserSegmentMatches;
|
|
4
|
+
const interface_api_util_1 = require("@antelopejs/interface-api-util");
|
|
5
|
+
const interface_database_decorators_1 = require("@antelopejs/interface-database-decorators");
|
|
6
|
+
const db_1 = require("@antelopejs/interface-dms/auth/db");
|
|
7
|
+
const db_2 = require("../db");
|
|
8
|
+
const utils_1 = require("../utils");
|
|
9
|
+
const HTTP_NOT_FOUND = 404;
|
|
10
|
+
async function loadUserSegmentMatches(userId) {
|
|
11
|
+
const user = await (0, interface_database_decorators_1.GetModel)(db_1.UserModel).get(userId);
|
|
12
|
+
(0, interface_api_util_1.assert)(user, HTTP_NOT_FOUND, "saas.errors.user.not_found");
|
|
13
|
+
const links = await (0, interface_database_decorators_1.GetModel)(db_2.UserSegmentModel).listByUser(userId);
|
|
14
|
+
if (links.length === 0)
|
|
15
|
+
return [];
|
|
16
|
+
const [segments, projection] = await Promise.all([
|
|
17
|
+
(0, interface_database_decorators_1.GetModel)(db_2.SegmentModel).getMany(links.map((link) => link.segmentId)),
|
|
18
|
+
(0, utils_1.loadUserProjection)(user),
|
|
19
|
+
]);
|
|
20
|
+
const evaluatedAt = new Map(links.map((link) => [link.segmentId, link.evaluatedAt]));
|
|
21
|
+
return segments
|
|
22
|
+
.map((segment) => ({
|
|
23
|
+
_id: segment._id,
|
|
24
|
+
name: segment.name,
|
|
25
|
+
description: segment.description ?? "",
|
|
26
|
+
evaluatedAt: evaluatedAt.get(segment._id) ?? segment.updatedAt,
|
|
27
|
+
explanation: (0, utils_1.explainSegmentGroup)(segment.conditions, projection),
|
|
28
|
+
matchesNow: (0, utils_1.evaluateSegmentGroup)(segment.conditions, projection),
|
|
29
|
+
}))
|
|
30
|
+
.sort((a, b) => a.name.localeCompare(b.name));
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=user-segments.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-segments.js","sourceRoot":"","sources":["../../src/users/user-segments.ts"],"names":[],"mappings":";;AAiCA,wDAwBC;AAzDD,uEAAwD;AACxD,6FAAqE;AACrE,0DAA8D;AAC9D,8BAAuD;AACvD,oCAKkB;AAElB,MAAM,cAAc,GAAG,GAAG,CAAC;AAsBpB,KAAK,UAAU,sBAAsB,CAC1C,MAAc;IAEd,MAAM,IAAI,GAAG,MAAM,IAAA,wCAAQ,EAAC,cAAS,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACnD,IAAA,2BAAM,EAAC,IAAI,EAAE,cAAc,EAAE,4BAA4B,CAAC,CAAC;IAC3D,MAAM,KAAK,GAAG,MAAM,IAAA,wCAAQ,EAAC,qBAAgB,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IAClE,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAClC,MAAM,CAAC,QAAQ,EAAE,UAAU,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAC/C,IAAA,wCAAQ,EAAC,iBAAY,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACnE,IAAA,0BAAkB,EAAC,IAAI,CAAC;KACzB,CAAC,CAAC;IACH,MAAM,WAAW,GAAG,IAAI,GAAG,CACzB,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CACxD,CAAC;IACF,OAAO,QAAQ;SACZ,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QACjB,GAAG,EAAE,OAAO,CAAC,GAAG;QAChB,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,WAAW,EAAE,OAAO,CAAC,WAAW,IAAI,EAAE;QACtC,WAAW,EAAE,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,OAAO,CAAC,SAAS;QAC9D,WAAW,EAAE,IAAA,2BAAmB,EAAC,OAAO,CAAC,UAAU,EAAE,UAAU,CAAC;QAChE,UAAU,EAAE,IAAA,4BAAoB,EAAC,OAAO,CAAC,UAAU,EAAE,UAAU,CAAC;KACjE,CAAC,CAAC;SACF,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AAClD,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.BillingPeriodDisplay = void 0;
|
|
10
|
+
const base_1 = require("@antelopejs/interface-dms/base");
|
|
11
|
+
let BillingPeriodDisplay = class BillingPeriodDisplay extends base_1.ColumnDisplay {
|
|
12
|
+
};
|
|
13
|
+
exports.BillingPeriodDisplay = BillingPeriodDisplay;
|
|
14
|
+
exports.BillingPeriodDisplay = BillingPeriodDisplay = __decorate([
|
|
15
|
+
(0, base_1.RegisterDisplay)("saas:period")
|
|
16
|
+
], BillingPeriodDisplay);
|
|
17
|
+
//# sourceMappingURL=billing-displays.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billing-displays.js","sourceRoot":"","sources":["../../src/utils/billing-displays.ts"],"names":[],"mappings":";;;;;;;;;AAAA,yDAAgF;AAUzE,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,oBAA0C;CAAG,CAAA;AAA1E,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,sBAAe,EAAC,aAAa,CAAC;GAClB,oBAAoB,CAAsD"}
|
|
@@ -1,6 +1,2 @@
|
|
|
1
1
|
import type { FormComponents } from "@antelopejs/interface-dms/base/form-schema";
|
|
2
|
-
import { DefaultDataTypes } from "@antelopejs/interface-dms/base/data-types/default-types";
|
|
3
2
|
export declare const BILLING_DOCUMENT_STATUS_ITEMS: FormComponents.SelectOption[];
|
|
4
|
-
export declare const CREDIT_NOTE_STATUS_ITEMS: FormComponents.SelectOption[];
|
|
5
|
-
export declare function billingDocumentStatusType(): DefaultDataTypes.SelectType;
|
|
6
|
-
export declare function creditNoteStatusType(): DefaultDataTypes.SelectType;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.billingDocumentStatusType = billingDocumentStatusType;
|
|
5
|
-
exports.creditNoteStatusType = creditNoteStatusType;
|
|
6
|
-
const default_types_1 = require("@antelopejs/interface-dms/base/data-types/default-types");
|
|
3
|
+
exports.BILLING_DOCUMENT_STATUS_ITEMS = void 0;
|
|
7
4
|
const db_1 = require("../db");
|
|
8
5
|
const BILLING_DOCUMENT_STATUSES = [
|
|
9
6
|
...db_1.INVOICE_STATUSES,
|
|
@@ -16,13 +13,4 @@ function statusItems(statuses, namespace) {
|
|
|
16
13
|
}));
|
|
17
14
|
}
|
|
18
15
|
exports.BILLING_DOCUMENT_STATUS_ITEMS = statusItems(BILLING_DOCUMENT_STATUSES, "saas.invoices.status");
|
|
19
|
-
exports.CREDIT_NOTE_STATUS_ITEMS = statusItems(db_1.CREDIT_NOTE_STATUSES, "saas.credit_notes.status");
|
|
20
|
-
function billingDocumentStatusType() {
|
|
21
|
-
return new default_types_1.DefaultDataTypes.SelectType({
|
|
22
|
-
items: exports.BILLING_DOCUMENT_STATUS_ITEMS,
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
function creditNoteStatusType() {
|
|
26
|
-
return new default_types_1.DefaultDataTypes.SelectType({ items: exports.CREDIT_NOTE_STATUS_ITEMS });
|
|
27
|
-
}
|
|
28
16
|
//# sourceMappingURL=billing-document-status.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billing-document-status.js","sourceRoot":"","sources":["../../src/utils/billing-document-status.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"billing-document-status.js","sourceRoot":"","sources":["../../src/utils/billing-document-status.ts"],"names":[],"mappings":";;;AAEA,8BAAyC;AAGzC,MAAM,yBAAyB,GAAqC;IAClE,GAAG,qBAAgB;IACnB,QAAQ;CACT,CAAC;AAEF,SAAS,WAAW,CAClB,QAA2B,EAC3B,SAAiB;IAEjB,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAC/B,KAAK,EAAE,IAAI,SAAS,IAAI,MAAM,EAAE;QAChC,KAAK,EAAE,MAAM;KACd,CAAC,CAAC,CAAC;AACN,CAAC;AAGY,QAAA,6BAA6B,GAAG,WAAW,CACtD,yBAAyB,EACzB,sBAAsB,CACvB,CAAC"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import type { BlockText } from "@antelopejs/interface-dms/base";
|
|
1
2
|
import { DefaultDataTypes } from "@antelopejs/interface-dms/base/data-types/default-types";
|
|
2
3
|
export declare class BillingDocumentType extends DefaultDataTypes.StringType {
|
|
3
4
|
}
|
|
5
|
+
export interface BillingDocumentRow {
|
|
6
|
+
documentType?: string | null;
|
|
7
|
+
parentInvoiceNumber?: string | null;
|
|
8
|
+
}
|
|
9
|
+
export declare function billingDocumentLine(row: BillingDocumentRow): BlockText;
|
|
@@ -7,12 +7,25 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.BillingDocumentType = void 0;
|
|
10
|
+
exports.billingDocumentLine = billingDocumentLine;
|
|
10
11
|
const data_types_1 = require("@antelopejs/interface-dms/base/data-types");
|
|
11
12
|
const default_types_1 = require("@antelopejs/interface-dms/base/data-types/default-types");
|
|
13
|
+
const composed_text_1 = require("../i18n/composed-text");
|
|
12
14
|
let BillingDocumentType = class BillingDocumentType extends default_types_1.DefaultDataTypes.StringType {
|
|
13
15
|
};
|
|
14
16
|
exports.BillingDocumentType = BillingDocumentType;
|
|
15
17
|
exports.BillingDocumentType = BillingDocumentType = __decorate([
|
|
16
18
|
(0, data_types_1.RegisterDataType)("billing_document_type")
|
|
17
19
|
], BillingDocumentType);
|
|
20
|
+
const INVOICE = "invoice";
|
|
21
|
+
const CREDIT_NOTE = "credit_note";
|
|
22
|
+
const DOCUMENT_TYPE_KEY = "$saas.invoices.type";
|
|
23
|
+
const CREDIT_NOTE_FOR_KEY = "saas.tenant_billing.invoices.credit_note_for";
|
|
24
|
+
function billingDocumentLine(row) {
|
|
25
|
+
if (row.documentType !== CREDIT_NOTE)
|
|
26
|
+
return `${DOCUMENT_TYPE_KEY}.${INVOICE}`;
|
|
27
|
+
return row.parentInvoiceNumber
|
|
28
|
+
? (0, composed_text_1.composed)(CREDIT_NOTE_FOR_KEY, { invoice: row.parentInvoiceNumber })
|
|
29
|
+
: `${DOCUMENT_TYPE_KEY}.${CREDIT_NOTE}`;
|
|
30
|
+
}
|
|
18
31
|
//# sourceMappingURL=billing-document-type.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billing-document-type.js","sourceRoot":"","sources":["../../src/utils/billing-document-type.ts"],"names":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"billing-document-type.js","sourceRoot":"","sources":["../../src/utils/billing-document-type.ts"],"names":[],"mappings":";;;;;;;;;AAwBA,kDAMC;AA7BD,0EAA6E;AAC7E,2FAA2F;AAC3F,yDAAiD;AAI1C,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,gCAAgB,CAAC,UAAU;CAAG,CAAA;AAA1D,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,6BAAgB,EAAC,uBAAuB,CAAC;GAC7B,mBAAmB,CAAuC;AAEvE,MAAM,OAAO,GAAG,SAAS,CAAC;AAC1B,MAAM,WAAW,GAAG,aAAa,CAAC;AAClC,MAAM,iBAAiB,GAAG,qBAAqB,CAAC;AAChD,MAAM,mBAAmB,GAAG,8CAA8C,CAAC;AAY3E,SAAgB,mBAAmB,CAAC,GAAuB;IACzD,IAAI,GAAG,CAAC,YAAY,KAAK,WAAW;QAClC,OAAO,GAAG,iBAAiB,IAAI,OAAO,EAAE,CAAC;IAC3C,OAAO,GAAG,CAAC,mBAAmB;QAC5B,CAAC,CAAC,IAAA,wBAAQ,EAAC,mBAAmB,EAAE,EAAE,OAAO,EAAE,GAAG,CAAC,mBAAmB,EAAE,CAAC;QACrE,CAAC,CAAC,GAAG,iBAAiB,IAAI,WAAW,EAAE,CAAC;AAC5C,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.CSV_BOM = void 0;
|
|
7
|
+
exports.appendCsvRow = appendCsvRow;
|
|
8
|
+
const node_fs_1 = __importDefault(require("node:fs"));
|
|
9
|
+
const FORMULA_PREFIXES = new Set(["=", "+", "-", "@"]);
|
|
10
|
+
exports.CSV_BOM = "";
|
|
11
|
+
function csvEscape(value) {
|
|
12
|
+
let str = value;
|
|
13
|
+
const first = str.charAt(0);
|
|
14
|
+
if (first && FORMULA_PREFIXES.has(first))
|
|
15
|
+
str = `'${str}`;
|
|
16
|
+
if (/[",\r\n]/.test(str))
|
|
17
|
+
return `"${str.replace(/"/g, '""')}"`;
|
|
18
|
+
return str;
|
|
19
|
+
}
|
|
20
|
+
function appendCsvRow(filePath, row) {
|
|
21
|
+
node_fs_1.default.appendFileSync(filePath, `${row.map(csvEscape).join(",")}\r\n`);
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=csv-file.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"csv-file.js","sourceRoot":"","sources":["../../src/utils/csv-file.ts"],"names":[],"mappings":";;;;;;AAgBA,oCAEC;AAlBD,sDAAyB;AAGzB,MAAM,gBAAgB,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;AAE1C,QAAA,OAAO,GAAG,GAAG,CAAC;AAE3B,SAAS,SAAS,CAAC,KAAa;IAC9B,IAAI,GAAG,GAAG,KAAK,CAAC;IAChB,MAAM,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAC5B,IAAI,KAAK,IAAI,gBAAgB,CAAC,GAAG,CAAC,KAAK,CAAC;QAAE,GAAG,GAAG,IAAI,GAAG,EAAE,CAAC;IAC1D,IAAI,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC;QAAE,OAAO,IAAI,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC;IAChE,OAAO,GAAG,CAAC;AACb,CAAC;AAGD,SAAgB,YAAY,CAAC,QAAgB,EAAE,GAAa;IAC1D,iBAAE,CAAC,cAAc,CAAC,QAAQ,EAAE,GAAG,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACrE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DataType } from "@antelopejs/interface-dms/base/data-types";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
export declare class FormInsightType extends DataType {
|
|
4
|
+
private readonly componentName;
|
|
5
|
+
constructor(componentName: string);
|
|
6
|
+
protected defaultInputComponent(): import("@antelopejs/interface-dms").ComponentInfoSerialized<unknown>;
|
|
7
|
+
getValidation(): z.ZodUnknown;
|
|
8
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.FormInsightType = void 0;
|
|
13
|
+
const custom_1 = require("@antelopejs/interface-dms/base/custom");
|
|
14
|
+
const data_types_1 = require("@antelopejs/interface-dms/base/data-types");
|
|
15
|
+
const zod_1 = require("zod");
|
|
16
|
+
let FormInsightType = class FormInsightType extends data_types_1.DataType {
|
|
17
|
+
componentName;
|
|
18
|
+
constructor(componentName) {
|
|
19
|
+
super([], undefined, { componentName });
|
|
20
|
+
this.componentName = componentName;
|
|
21
|
+
}
|
|
22
|
+
defaultInputComponent() {
|
|
23
|
+
return (0, custom_1.CustomComponent)(this.componentName).serializeSync();
|
|
24
|
+
}
|
|
25
|
+
getValidation() {
|
|
26
|
+
return zod_1.z.unknown();
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
exports.FormInsightType = FormInsightType;
|
|
30
|
+
exports.FormInsightType = FormInsightType = __decorate([
|
|
31
|
+
(0, data_types_1.RegisterDataType)("saas_form_insight"),
|
|
32
|
+
__metadata("design:paramtypes", [String])
|
|
33
|
+
], FormInsightType);
|
|
34
|
+
//# sourceMappingURL=form-insight-type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-insight-type.js","sourceRoot":"","sources":["../../src/utils/form-insight-type.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kEAAwE;AACxE,0EAGmD;AACnD,6BAAwB;AASjB,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,qBAAQ;IACd;IAA7B,YAA6B,aAAqB;QAChD,KAAK,CAAC,EAAE,EAAE,SAAS,EAAE,EAAE,aAAa,EAAE,CAAC,CAAC;QADb,kBAAa,GAAb,aAAa,CAAQ;IAElD,CAAC;IAES,qBAAqB;QAC7B,OAAO,IAAA,wBAAe,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,aAAa,EAAE,CAAC;IAC7D,CAAC;IAED,aAAa;QACX,OAAO,OAAC,CAAC,OAAO,EAAE,CAAC;IACrB,CAAC;CACF,CAAA;AAZY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,6BAAgB,EAAC,mBAAmB,CAAC;;GACzB,eAAe,CAY3B"}
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,18 +1,26 @@
|
|
|
1
|
+
export * from "./billing-displays";
|
|
1
2
|
export * from "./billing-document-status";
|
|
2
3
|
export * from "./billing-document-type";
|
|
3
4
|
export * from "./billing-period-type";
|
|
4
5
|
export * from "./content-language";
|
|
5
6
|
export * from "./email-hash";
|
|
6
7
|
export * from "./export-dataset-stream";
|
|
8
|
+
export * from "./form-insight-type";
|
|
7
9
|
export * from "./invoice-lines-type";
|
|
8
10
|
export * from "./keyed-insert";
|
|
11
|
+
export * from "./money";
|
|
9
12
|
export * from "./money-cents-type";
|
|
10
13
|
export * from "./pagination";
|
|
11
14
|
export * from "./parse-future-date";
|
|
12
15
|
export * from "./row-instance";
|
|
13
16
|
export * from "./segment-conditions-type";
|
|
14
17
|
export * from "./segment-evaluator";
|
|
18
|
+
export * from "./segment-explain";
|
|
15
19
|
export * from "./segment-fields";
|
|
16
20
|
export * from "./segment-matching";
|
|
17
21
|
export * from "./segment-name-cache";
|
|
22
|
+
export * from "./segment-preview";
|
|
23
|
+
export * from "./segment-user-projection";
|
|
24
|
+
export * from "./segment-validation";
|
|
18
25
|
export * from "./time";
|
|
26
|
+
export * from "./status-vocabulary";
|
package/dist/utils/index.js
CHANGED
|
@@ -14,22 +14,30 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./billing-displays"), exports);
|
|
17
18
|
__exportStar(require("./billing-document-status"), exports);
|
|
18
19
|
__exportStar(require("./billing-document-type"), exports);
|
|
19
20
|
__exportStar(require("./billing-period-type"), exports);
|
|
20
21
|
__exportStar(require("./content-language"), exports);
|
|
21
22
|
__exportStar(require("./email-hash"), exports);
|
|
22
23
|
__exportStar(require("./export-dataset-stream"), exports);
|
|
24
|
+
__exportStar(require("./form-insight-type"), exports);
|
|
23
25
|
__exportStar(require("./invoice-lines-type"), exports);
|
|
24
26
|
__exportStar(require("./keyed-insert"), exports);
|
|
27
|
+
__exportStar(require("./money"), exports);
|
|
25
28
|
__exportStar(require("./money-cents-type"), exports);
|
|
26
29
|
__exportStar(require("./pagination"), exports);
|
|
27
30
|
__exportStar(require("./parse-future-date"), exports);
|
|
28
31
|
__exportStar(require("./row-instance"), exports);
|
|
29
32
|
__exportStar(require("./segment-conditions-type"), exports);
|
|
30
33
|
__exportStar(require("./segment-evaluator"), exports);
|
|
34
|
+
__exportStar(require("./segment-explain"), exports);
|
|
31
35
|
__exportStar(require("./segment-fields"), exports);
|
|
32
36
|
__exportStar(require("./segment-matching"), exports);
|
|
33
37
|
__exportStar(require("./segment-name-cache"), exports);
|
|
38
|
+
__exportStar(require("./segment-preview"), exports);
|
|
39
|
+
__exportStar(require("./segment-user-projection"), exports);
|
|
40
|
+
__exportStar(require("./segment-validation"), exports);
|
|
34
41
|
__exportStar(require("./time"), exports);
|
|
42
|
+
__exportStar(require("./status-vocabulary"), exports);
|
|
35
43
|
//# sourceMappingURL=index.js.map
|
package/dist/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,0DAAwC;AACxC,wDAAsC;AACtC,qDAAmC;AACnC,+CAA6B;AAC7B,0DAAwC;AACxC,uDAAqC;AACrC,iDAA+B;AAC/B,qDAAmC;AACnC,+CAA6B;AAC7B,sDAAoC;AACpC,iDAA+B;AAC/B,4DAA0C;AAC1C,sDAAoC;AACpC,mDAAiC;AACjC,qDAAmC;AACnC,uDAAqC;AACrC,yCAAuB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,4DAA0C;AAC1C,0DAAwC;AACxC,wDAAsC;AACtC,qDAAmC;AACnC,+CAA6B;AAC7B,0DAAwC;AACxC,sDAAoC;AACpC,uDAAqC;AACrC,iDAA+B;AAC/B,0CAAwB;AACxB,qDAAmC;AACnC,+CAA6B;AAC7B,sDAAoC;AACpC,iDAA+B;AAC/B,4DAA0C;AAC1C,sDAAoC;AACpC,oDAAkC;AAClC,mDAAiC;AACjC,qDAAmC;AACnC,uDAAqC;AACrC,oDAAkC;AAClC,4DAA0C;AAC1C,uDAAqC;AACrC,yCAAuB;AACvB,sDAAoC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function baseLanguage(language: string | null | undefined): string | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"language.js","sourceRoot":"","sources":["../../src/utils/language.ts"],"names":[],"mappings":";;AAIA,oCAIC;AAJD,SAAgB,YAAY,CAC1B,QAAmC;IAEnC,OAAO,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,WAAW,EAAE,IAAI,SAAS,CAAC;AACpE,CAAC"}
|