@saasicat/ui-vue 0.7.0 → 0.8.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/dist/{chunk-A3W2N26K.js → chunk-7N3CJTOA.js} +7 -227
- package/dist/{chunk-X5SQ5HMB.js → chunk-TBLXKSTR.js} +0 -137
- package/dist/{chunk-QZOSDCNP.js → chunk-TY2WYKME.js} +1 -1
- package/dist/client/index.cjs +112 -467
- package/dist/client/index.d.cts +4 -62
- package/dist/client/index.d.ts +4 -62
- package/dist/client/index.js +2 -6
- package/dist/index.cjs +204 -583
- package/dist/index.d.cts +10 -55
- package/dist/index.d.ts +10 -55
- package/dist/index.js +74 -101
- package/dist/{messages-7b0P8W75.d.ts → messages-BIYw32u1.d.cts} +0 -67
- package/dist/{messages-7b0P8W75.d.cts → messages-BIYw32u1.d.ts} +0 -67
- package/dist/quasar/index.cjs +0 -136
- package/dist/quasar/index.d.cts +2 -2
- package/dist/quasar/index.d.ts +2 -2
- package/dist/quasar/index.js +2 -2
- package/dist/{use-super-admin-i18n-B3v3-SWZ.d.ts → use-super-admin-i18n-CWNu_W3u.d.ts} +1 -1
- package/dist/{use-super-admin-i18n-DMktRVEt.d.cts → use-super-admin-i18n-DL_qI1BY.d.cts} +1 -1
- package/package.json +2 -2
- package/src/client/i18n/messages/nav.ts +0 -2
- package/src/client/i18n/messages/plan-versions.ts +0 -143
- package/src/client/index.ts +0 -2
- package/src/client/nav-builder.ts +9 -4
- package/src/index.ts +0 -1
- package/src/pages-standard/AdminLayout.vue +1 -1
- package/src/pages-standard/plan-versions/PlanVersionsDiff.vue +1 -1
- package/src/pages-standard/plan-versions/PlanVersionsTimeline.vue +1 -1
- package/src/pages-standard/plan-versions/catalog-history.types.ts +37 -0
- package/src/pages-standard/plan-versions/format.ts +2 -38
- package/src/client/plan-versions-catalog.ts +0 -380
- package/src/pages-standard/PlanVersionsPage.vue +0 -220
- package/src/pages-standard/plan-versions/PlanVersionHeader.vue +0 -309
- package/src/pages-standard/plan-versions/PlanVersionStatusBadge.vue +0 -48
- package/src/pages-standard/plan-versions/PlanVersionsAudit.vue +0 -326
- package/src/pages-standard/plan-versions/PlanVersionsKpi.vue +0 -65
- package/src/pages-standard/plan-versions/PlanVersionsList.vue +0 -315
- package/src/pages-standard/plan-versions/PlanVersionsMatrix.vue +0 -261
- package/src/pages-standard/plan-versions/types.ts +0 -33
- package/src/vue/use-plan-versions.ts +0 -83
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BootLoaderOptions, ManifestLoaderOptions, BuildRouteEntry, SidebarSection, NavBuilderOptions, BatchColumnData, BatchColumnFetcherOptions, BootLoader, ManifestLoader } from './client/index.cjs';
|
|
2
|
-
export { ADMIN_UI_VERSION, BatchColumnDriftError, BatchColumnFetcher, BatchColumnRow, BatchColumnValue, BootLoadError,
|
|
3
|
-
import { H as HttpClient, c as ActionRegistry, A as ActionHandler, K as KvStore, S as SaLocale } from './messages-
|
|
4
|
-
export { d as ActionDefNotInManifestError, D as DEFAULT_SA_LOCALE, e as HttpResponse, M as MessageTree, f as MissingHandlerError, P as PartialMessages, R as ResolvedAction, g as SA_INTL_LOCALES, h as SA_LOCALES, i as SA_MESSAGES, a as SaMessages, b as SaMessagesOverrides, T as TranslationOf, j as defaultHttpClient, k as defaultKvStore, l as defineMessages, m as mergeMessages, r as resolveMessages } from './messages-
|
|
5
|
-
import { A as ActionsMap, a as SuperAdminBrand, b as SuperAdminEndpoints, E as ExtensionsMap, c as SuperAdminLoginAdapter } from './use-super-admin-i18n-
|
|
6
|
-
export { f as ExtensionLoader, I as InstallPlugin, g as SUPER_ADMIN_ACTIONS_KEY, h as SUPER_ADMIN_BRAND_KEY, i as SUPER_ADMIN_ENDPOINTS_KEY, j as SUPER_ADMIN_EXTENSIONS_KEY, k as SUPER_ADMIN_HTTP_KEY, l as SUPER_ADMIN_I18N_KEY, m as SUPER_ADMIN_LOGIN_ADAPTER_KEY, n as SUPER_ADMIN_MANIFEST_KEY, o as SUPER_ADMIN_NOTIFY_KEY, p as SuperAdminAuthGuardOptions, S as SuperAdminGuardOptions, e as SuperAdminI18n, d as SuperAdminI18nOptions, q as SuperAdminLoginResult, r as SuperAdminManifestGuardOptions, U as UiNotify, s as UiNotifyKind, t as UiNotifyOptions, u as buildNavigationGuard, v as createSuperAdminI18n, w as useSaMessages, x as useSuperAdminI18n } from './use-super-admin-i18n-
|
|
7
|
-
import { AdminManifest, TenantListFilter, TenantDto, AuditQuery, AuditEntry, FeatureUiRegistry, PromoPreviewResponse, OnboardingSelectionRequest, PublicMarketingBundle, FeatureDef, FeatureKey, PublicBootResponse, DiscoverySnapshot, CapabilityCatalogEntryRow, FeatureCatalogEntryRow, QuotaCatalogEntryRow, ReviewCatalogEntryData, CatalogEntryI18n, UpdateCatalogEntryBaseData, SyncDiscoveryResult, BundleVersionRow, CreateBundleVersionDraftData, BundleVersionMutationResult, UpdateBundleVersionDraftData, BundleRow, CreateBundleData, UpdateBundleData, SubscriptionBundleRecord, MarketingProjectionFilter, MarketingProjectionRow, CreateMarketingProjectionData, UpdateMarketingProjectionData, PromotionRow, CreatePromotionData, UpdatePromotionData, PlanVersionRow
|
|
2
|
+
export { ADMIN_UI_VERSION, BatchColumnDriftError, BatchColumnFetcher, BatchColumnRow, BatchColumnValue, BootLoadError, CachedManifestEntry, DEFAULT_STANDARD_PAGE_ROUTES, HttpJsonError, ManifestLoadError, MessageParams, ParamStyle, SidebarItem, buildRoutes, buildSidebar, defaultSectionOrder, formatCurrency, formatMessage, getJson, postJson, resolveExtension, trimTrailingSlashes } from './client/index.cjs';
|
|
3
|
+
import { H as HttpClient, c as ActionRegistry, A as ActionHandler, K as KvStore, S as SaLocale } from './messages-BIYw32u1.cjs';
|
|
4
|
+
export { d as ActionDefNotInManifestError, D as DEFAULT_SA_LOCALE, e as HttpResponse, M as MessageTree, f as MissingHandlerError, P as PartialMessages, R as ResolvedAction, g as SA_INTL_LOCALES, h as SA_LOCALES, i as SA_MESSAGES, a as SaMessages, b as SaMessagesOverrides, T as TranslationOf, j as defaultHttpClient, k as defaultKvStore, l as defineMessages, m as mergeMessages, r as resolveMessages } from './messages-BIYw32u1.cjs';
|
|
5
|
+
import { A as ActionsMap, a as SuperAdminBrand, b as SuperAdminEndpoints, E as ExtensionsMap, c as SuperAdminLoginAdapter } from './use-super-admin-i18n-DL_qI1BY.cjs';
|
|
6
|
+
export { f as ExtensionLoader, I as InstallPlugin, g as SUPER_ADMIN_ACTIONS_KEY, h as SUPER_ADMIN_BRAND_KEY, i as SUPER_ADMIN_ENDPOINTS_KEY, j as SUPER_ADMIN_EXTENSIONS_KEY, k as SUPER_ADMIN_HTTP_KEY, l as SUPER_ADMIN_I18N_KEY, m as SUPER_ADMIN_LOGIN_ADAPTER_KEY, n as SUPER_ADMIN_MANIFEST_KEY, o as SUPER_ADMIN_NOTIFY_KEY, p as SuperAdminAuthGuardOptions, S as SuperAdminGuardOptions, e as SuperAdminI18n, d as SuperAdminI18nOptions, q as SuperAdminLoginResult, r as SuperAdminManifestGuardOptions, U as UiNotify, s as UiNotifyKind, t as UiNotifyOptions, u as buildNavigationGuard, v as createSuperAdminI18n, w as useSaMessages, x as useSuperAdminI18n } from './use-super-admin-i18n-DL_qI1BY.cjs';
|
|
7
|
+
import { AdminManifest, TenantListFilter, TenantDto, AuditQuery, AuditEntry, FeatureUiRegistry, PromoPreviewResponse, OnboardingSelectionRequest, PublicMarketingBundle, FeatureDef, FeatureKey, PublicBootResponse, DiscoverySnapshot, CapabilityCatalogEntryRow, FeatureCatalogEntryRow, QuotaCatalogEntryRow, ReviewCatalogEntryData, CatalogEntryI18n, UpdateCatalogEntryBaseData, SyncDiscoveryResult, BundleVersionRow, CreateBundleVersionDraftData, BundleVersionMutationResult, UpdateBundleVersionDraftData, BundleRow, CreateBundleData, UpdateBundleData, SubscriptionBundleRecord, MarketingProjectionFilter, MarketingProjectionRow, CreateMarketingProjectionData, UpdateMarketingProjectionData, PromotionRow, CreatePromotionData, UpdatePromotionData, PlanVersionRow, CreatePlanVersionDraftData, PlanVersionMutationResult, UpdatePlanVersionDraftData, PlanRow, CreatePlanData, UpdatePlanData, TenantActionDef } from '@saasicat/types';
|
|
8
8
|
import { RouteRecordRaw, NavigationGuardWithThis } from 'vue-router';
|
|
9
9
|
import * as vue from 'vue';
|
|
10
10
|
import { Ref, InjectionKey, App, ComputedRef } from 'vue';
|
|
@@ -623,51 +623,6 @@ interface SubscriptionDraft {
|
|
|
623
623
|
}
|
|
624
624
|
declare function useSubscriptionDraft(options: UseSubscriptionDraftOptions): SubscriptionDraft;
|
|
625
625
|
|
|
626
|
-
/**
|
|
627
|
-
* Generic filter shape for versions lists.
|
|
628
|
-
* `state`: 'draft' (publishedAt null), 'live' (publishedAt set, supersededAt null),
|
|
629
|
-
* 'superseded' (supersededAt set), 'all' (default).
|
|
630
|
-
*/
|
|
631
|
-
interface PlanVersionListFilter {
|
|
632
|
-
state?: 'draft' | 'live' | 'superseded' | 'all';
|
|
633
|
-
/** PlanId (`'BASIC'`, `'STANDARD'`, …). */
|
|
634
|
-
planId?: string;
|
|
635
|
-
}
|
|
636
|
-
/**
|
|
637
|
-
* Generic versions row shape. Depending on the endpoint, the consumer backend
|
|
638
|
-
* returns slightly different fields; the platform composable takes the universal ones.
|
|
639
|
-
*/
|
|
640
|
-
interface PlanVersionRow {
|
|
641
|
-
id: string;
|
|
642
|
-
version: number;
|
|
643
|
-
publishedAt: string | null;
|
|
644
|
-
supersededAt: string | null;
|
|
645
|
-
nonRegressive: boolean;
|
|
646
|
-
changeNote?: string;
|
|
647
|
-
[extra: string]: unknown;
|
|
648
|
-
}
|
|
649
|
-
interface VersionsOptions {
|
|
650
|
-
/**
|
|
651
|
-
* Fully qualified versions-list endpoint including the app globalPrefix
|
|
652
|
-
* (`/api/admin/plan-versions`, `/api/v1/admin/plan-versions`, …). Mandatory.
|
|
653
|
-
*/
|
|
654
|
-
endpoint: string;
|
|
655
|
-
filter?: Ref<PlanVersionListFilter>;
|
|
656
|
-
http?: UseApiListOptions<Record<string, unknown>>['http'];
|
|
657
|
-
getAuthToken?: () => string | null;
|
|
658
|
-
autoLoad?: boolean;
|
|
659
|
-
}
|
|
660
|
-
interface VersionsResult extends UseApiListResult<PlanVersionRow> {
|
|
661
|
-
filter: Ref<PlanVersionListFilter>;
|
|
662
|
-
}
|
|
663
|
-
/**
|
|
664
|
-
* Read-only catalog view for PlanVersions (lift-and-shift from a
|
|
665
|
-
* consumer admin).
|
|
666
|
-
* Called `usePlanVersionsCatalog` since M6 Pack 2a, because `usePlanVersions`
|
|
667
|
-
* from `use-plans.ts` is now the lifecycle editor (createDraft/publish).
|
|
668
|
-
*/
|
|
669
|
-
declare const usePlanVersionsCatalog: (options: VersionsOptions) => VersionsResult;
|
|
670
|
-
|
|
671
626
|
type BulkItemKind = 'plan';
|
|
672
627
|
type BulkItemStatus = 'pending' | 'publishing' | 'published' | 'failed';
|
|
673
628
|
interface BulkPublishItem {
|
|
@@ -1067,7 +1022,7 @@ interface UsePlanVersionsOptions {
|
|
|
1067
1022
|
autoLoad?: boolean;
|
|
1068
1023
|
}
|
|
1069
1024
|
interface UsePlanVersionsResult {
|
|
1070
|
-
versions: Ref<PlanVersionRow
|
|
1025
|
+
versions: Ref<PlanVersionRow[]>;
|
|
1071
1026
|
loading: Ref<boolean>;
|
|
1072
1027
|
error: Ref<Error | null>;
|
|
1073
1028
|
load: () => Promise<void>;
|
|
@@ -1093,7 +1048,7 @@ interface UsePlanVersionsResult {
|
|
|
1093
1048
|
* Terminates a live PlanVersion with `endsAt` (without a successor
|
|
1094
1049
|
* version). Idempotent — a second call with a different date overwrites.
|
|
1095
1050
|
*/
|
|
1096
|
-
terminateVersion: (versionId: string, endsAt: string) => Promise<PlanVersionRow
|
|
1051
|
+
terminateVersion: (versionId: string, endsAt: string) => Promise<PlanVersionRow>;
|
|
1097
1052
|
}
|
|
1098
1053
|
declare function usePlanVersions(options: UsePlanVersionsOptions): UsePlanVersionsResult;
|
|
1099
1054
|
|
|
@@ -1106,7 +1061,7 @@ interface UseLivePlanVersionsOptions {
|
|
|
1106
1061
|
}
|
|
1107
1062
|
interface UseLivePlanVersionsResult {
|
|
1108
1063
|
/** `planKey → live PlanVersion` (or null when the plan has no live version). */
|
|
1109
|
-
livePlanVersions: Ref<Record<string, PlanVersionRow
|
|
1064
|
+
livePlanVersions: Ref<Record<string, PlanVersionRow | null>>;
|
|
1110
1065
|
loading: Ref<boolean>;
|
|
1111
1066
|
error: Ref<Error | null>;
|
|
1112
1067
|
/** Forces a reload of all live versions. */
|
|
@@ -1801,4 +1756,4 @@ declare const DEFAULT_I18N_EN: TenantPlanSectionI18n;
|
|
|
1801
1756
|
/** Default map for the given UI locale — fallback layer under the `i18n` prop. */
|
|
1802
1757
|
declare function defaultTenantPlanSectionI18n(locale: SaLocale): TenantPlanSectionI18n;
|
|
1803
1758
|
|
|
1804
|
-
export { ActionHandler, ActionRegistry, ActionsMap, type ApiListResponse, BatchColumnData, BatchColumnFetcherOptions, type BillingCycleStr, BootLoader, BootLoaderOptions, BuildRouteEntry, type BulkItemKind, type BulkItemStatus, type BulkPublishItem, type BundleAddPreviewShape, type BundleCancelPreviewShape, type BundlePreviewIssueShape, type BundlePreviewShape, type BundlePreviewSnapshotShape, BundlesApiError, CATALOG_DEFAULT_LOCALE, type CatalogBundle, CatalogEntriesApiError, type CatalogPlan, type ConfirmDialogState, type CreateAdminRoutesOptions, type CreateManifestStoreOptions, type CreatePlatformLoadersOptions, DEFAULT_I18N_DE, DEFAULT_I18N_EN, DEFAULT_YEARLY_FACTOR, DiscoveryLoadError, type DraftPricing, ENTITLEMENT_INJECTION_KEY, type EmailHistoryDetail, type EmailHistoryFilter, type EmailHistoryListResult, type EmailHistoryResendResult, type EmailHistoryRow, type EmailHistoryStatus, type EntitlementSnapshotShape, ExtensionsMap, type FeatureRegistryEntry, type FeatureRouterGuardOptions, type FeatureRowMarkers, HttpClient, KvStore, ManifestLoader, ManifestLoaderOptions, type ManifestStoreActions, type ManifestStoreDefinition, type ManifestStoreState, MarketingProjectionsApiError, type MfaDialogState, NavBuilderOptions, type PackageSnapshotShape, type PilotCopy, type PilotCreatePayload, type PilotCreateResult, type PilotEditPayload, type PilotEditResult, type PlanChangePreviewShape, type PlanSnapshotShape,
|
|
1759
|
+
export { ActionHandler, ActionRegistry, ActionsMap, type ApiListResponse, BatchColumnData, BatchColumnFetcherOptions, type BillingCycleStr, BootLoader, BootLoaderOptions, BuildRouteEntry, type BulkItemKind, type BulkItemStatus, type BulkPublishItem, type BundleAddPreviewShape, type BundleCancelPreviewShape, type BundlePreviewIssueShape, type BundlePreviewShape, type BundlePreviewSnapshotShape, BundlesApiError, CATALOG_DEFAULT_LOCALE, type CatalogBundle, CatalogEntriesApiError, type CatalogPlan, type ConfirmDialogState, type CreateAdminRoutesOptions, type CreateManifestStoreOptions, type CreatePlatformLoadersOptions, DEFAULT_I18N_DE, DEFAULT_I18N_EN, DEFAULT_YEARLY_FACTOR, DiscoveryLoadError, type DraftPricing, ENTITLEMENT_INJECTION_KEY, type EmailHistoryDetail, type EmailHistoryFilter, type EmailHistoryListResult, type EmailHistoryResendResult, type EmailHistoryRow, type EmailHistoryStatus, type EntitlementSnapshotShape, ExtensionsMap, type FeatureRegistryEntry, type FeatureRouterGuardOptions, type FeatureRowMarkers, HttpClient, KvStore, ManifestLoader, ManifestLoaderOptions, type ManifestStoreActions, type ManifestStoreDefinition, type ManifestStoreState, MarketingProjectionsApiError, type MfaDialogState, NavBuilderOptions, type PackageSnapshotShape, type PilotCopy, type PilotCreatePayload, type PilotCreateResult, type PilotEditPayload, type PilotEditResult, type PlanChangePreviewShape, type PlanSnapshotShape, PlannedOnlyFeatureError, PlansApiError, type PlatformEmailProvider, type PlatformEmailTestInput, type PlatformEmailTestResult, type PlatformEmailWriteInput, type PlatformLoaders, type PlatformTenantActionRow, type PlatformTenantActionTone, type PlatformTenantActionsOptions, type PlatformTenantActionsResult, type PriceLineItem, ProjectPageHost, type PromoCodeCreatePayload, type PromoCodeDurationType, type PromoCodePlanOption, type PromoCodeUpdatePayload, type PromoCodeValueType, type PromoState, type PromoStatus, PromotionsApiError, type QuotaMeta, type RedundantFeatureHintShape, type ResolvedTenantAction, SaLocale, SidebarSection, type SubscriptionBundleShape, type SubscriptionDraft, SuperAdminBrand, SuperAdminEndpoints, SuperAdminLoginAdapter, type TenantActionFlowProviders, type TenantActionInput, type TenantManifestNavItem, type TenantManifestShape, type TenantPlanSectionI18n, type TenantRowLike, TenantSubscriptionBundlesApiError, type UsageSnapshotShape, type UseActionsResult, type UseApiListOptions, type UseApiListResult, type UseAuditEntriesOptions, type UseAuditEntriesResult, type UseBatchColumnsResult, type UseBulkPublishOptions, type UseBulkPublishResult, type UseBundleVersionsMapOptions, type UseBundleVersionsMapResult, type UseBundleVersionsOptions, type UseBundleVersionsResult, type UseBundlesOptions, type UseBundlesResult, type UseCatalogEntriesOptions, type UseCatalogEntriesResult, type UseDiscoveryOptions, type UseDiscoveryResult, type UseEntitlementOptions, type UseEntitlementResult, type UseLivePlanVersionsOptions, type UseLivePlanVersionsResult, type UseManifestResult, type UseMarketingProjectionsOptions, type UseMarketingProjectionsResult, type UseNavResult, type UsePlanEditorOptions, type UsePlanEditorResult, type UsePlanVersionsOptions, type UsePlanVersionsResult, type UsePlansOptions, type UsePlansResult, type UsePromotionsOptions, type UsePromotionsResult, type UsePublicBootResult, type UseSubscriptionDraftOptions, type UseTenantActionFlowResult, type UseTenantBillingCatalogOptions, type UseTenantBillingCatalogResult, type UseTenantBillingOptions, type UseTenantBillingResult, type UseTenantManifestOptions, type UseTenantManifestResult, type UseTenantSubscriptionBundlesOptions, type UseTenantSubscriptionBundlesResult, type UseTenantsOptions, type UseTenantsResult, buildFeatureRegistry, buildFeatureRouterGuard, buildQuotaRegistry, createAdminRoutes, createManifestStore, createPlatformLoaders, createProjectPageHostRoute, defaultIconForActionKey, defaultTenantPlanSectionI18n, defaultToneForActionKey, provideEntitlement, useActions, useApiList, useAuditEntries, useBatchColumns, useBulkPublish, useBundleVersions, useBundleVersionsMap, useBundles, useCatalogEntries, useDiscovery, useEntitlement, useInjectedEntitlement, useLivePlanVersions, useManifest, useMarketingProjections, useNav, usePlanEditor, usePlanVersions, usePlans, usePlatformTenantActions, usePromotions, usePublicBoot, useSubscriptionDraft, useSuperAdminActions, useSuperAdminBrand, useSuperAdminEndpoints, useSuperAdminExtensions, useSuperAdminHttp, useSuperAdminLoginAdapter, useSuperAdminManifest, useTenantActionFlow, useTenantBilling, useTenantBillingCatalog, useTenantManifest, useTenantSubscriptionBundles, useTenants };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BootLoaderOptions, ManifestLoaderOptions, BuildRouteEntry, SidebarSection, NavBuilderOptions, BatchColumnData, BatchColumnFetcherOptions, BootLoader, ManifestLoader } from './client/index.js';
|
|
2
|
-
export { ADMIN_UI_VERSION, BatchColumnDriftError, BatchColumnFetcher, BatchColumnRow, BatchColumnValue, BootLoadError,
|
|
3
|
-
import { H as HttpClient, c as ActionRegistry, A as ActionHandler, K as KvStore, S as SaLocale } from './messages-
|
|
4
|
-
export { d as ActionDefNotInManifestError, D as DEFAULT_SA_LOCALE, e as HttpResponse, M as MessageTree, f as MissingHandlerError, P as PartialMessages, R as ResolvedAction, g as SA_INTL_LOCALES, h as SA_LOCALES, i as SA_MESSAGES, a as SaMessages, b as SaMessagesOverrides, T as TranslationOf, j as defaultHttpClient, k as defaultKvStore, l as defineMessages, m as mergeMessages, r as resolveMessages } from './messages-
|
|
5
|
-
import { A as ActionsMap, a as SuperAdminBrand, b as SuperAdminEndpoints, E as ExtensionsMap, c as SuperAdminLoginAdapter } from './use-super-admin-i18n-
|
|
6
|
-
export { f as ExtensionLoader, I as InstallPlugin, g as SUPER_ADMIN_ACTIONS_KEY, h as SUPER_ADMIN_BRAND_KEY, i as SUPER_ADMIN_ENDPOINTS_KEY, j as SUPER_ADMIN_EXTENSIONS_KEY, k as SUPER_ADMIN_HTTP_KEY, l as SUPER_ADMIN_I18N_KEY, m as SUPER_ADMIN_LOGIN_ADAPTER_KEY, n as SUPER_ADMIN_MANIFEST_KEY, o as SUPER_ADMIN_NOTIFY_KEY, p as SuperAdminAuthGuardOptions, S as SuperAdminGuardOptions, e as SuperAdminI18n, d as SuperAdminI18nOptions, q as SuperAdminLoginResult, r as SuperAdminManifestGuardOptions, U as UiNotify, s as UiNotifyKind, t as UiNotifyOptions, u as buildNavigationGuard, v as createSuperAdminI18n, w as useSaMessages, x as useSuperAdminI18n } from './use-super-admin-i18n-
|
|
7
|
-
import { AdminManifest, TenantListFilter, TenantDto, AuditQuery, AuditEntry, FeatureUiRegistry, PromoPreviewResponse, OnboardingSelectionRequest, PublicMarketingBundle, FeatureDef, FeatureKey, PublicBootResponse, DiscoverySnapshot, CapabilityCatalogEntryRow, FeatureCatalogEntryRow, QuotaCatalogEntryRow, ReviewCatalogEntryData, CatalogEntryI18n, UpdateCatalogEntryBaseData, SyncDiscoveryResult, BundleVersionRow, CreateBundleVersionDraftData, BundleVersionMutationResult, UpdateBundleVersionDraftData, BundleRow, CreateBundleData, UpdateBundleData, SubscriptionBundleRecord, MarketingProjectionFilter, MarketingProjectionRow, CreateMarketingProjectionData, UpdateMarketingProjectionData, PromotionRow, CreatePromotionData, UpdatePromotionData, PlanVersionRow
|
|
2
|
+
export { ADMIN_UI_VERSION, BatchColumnDriftError, BatchColumnFetcher, BatchColumnRow, BatchColumnValue, BootLoadError, CachedManifestEntry, DEFAULT_STANDARD_PAGE_ROUTES, HttpJsonError, ManifestLoadError, MessageParams, ParamStyle, SidebarItem, buildRoutes, buildSidebar, defaultSectionOrder, formatCurrency, formatMessage, getJson, postJson, resolveExtension, trimTrailingSlashes } from './client/index.js';
|
|
3
|
+
import { H as HttpClient, c as ActionRegistry, A as ActionHandler, K as KvStore, S as SaLocale } from './messages-BIYw32u1.js';
|
|
4
|
+
export { d as ActionDefNotInManifestError, D as DEFAULT_SA_LOCALE, e as HttpResponse, M as MessageTree, f as MissingHandlerError, P as PartialMessages, R as ResolvedAction, g as SA_INTL_LOCALES, h as SA_LOCALES, i as SA_MESSAGES, a as SaMessages, b as SaMessagesOverrides, T as TranslationOf, j as defaultHttpClient, k as defaultKvStore, l as defineMessages, m as mergeMessages, r as resolveMessages } from './messages-BIYw32u1.js';
|
|
5
|
+
import { A as ActionsMap, a as SuperAdminBrand, b as SuperAdminEndpoints, E as ExtensionsMap, c as SuperAdminLoginAdapter } from './use-super-admin-i18n-CWNu_W3u.js';
|
|
6
|
+
export { f as ExtensionLoader, I as InstallPlugin, g as SUPER_ADMIN_ACTIONS_KEY, h as SUPER_ADMIN_BRAND_KEY, i as SUPER_ADMIN_ENDPOINTS_KEY, j as SUPER_ADMIN_EXTENSIONS_KEY, k as SUPER_ADMIN_HTTP_KEY, l as SUPER_ADMIN_I18N_KEY, m as SUPER_ADMIN_LOGIN_ADAPTER_KEY, n as SUPER_ADMIN_MANIFEST_KEY, o as SUPER_ADMIN_NOTIFY_KEY, p as SuperAdminAuthGuardOptions, S as SuperAdminGuardOptions, e as SuperAdminI18n, d as SuperAdminI18nOptions, q as SuperAdminLoginResult, r as SuperAdminManifestGuardOptions, U as UiNotify, s as UiNotifyKind, t as UiNotifyOptions, u as buildNavigationGuard, v as createSuperAdminI18n, w as useSaMessages, x as useSuperAdminI18n } from './use-super-admin-i18n-CWNu_W3u.js';
|
|
7
|
+
import { AdminManifest, TenantListFilter, TenantDto, AuditQuery, AuditEntry, FeatureUiRegistry, PromoPreviewResponse, OnboardingSelectionRequest, PublicMarketingBundle, FeatureDef, FeatureKey, PublicBootResponse, DiscoverySnapshot, CapabilityCatalogEntryRow, FeatureCatalogEntryRow, QuotaCatalogEntryRow, ReviewCatalogEntryData, CatalogEntryI18n, UpdateCatalogEntryBaseData, SyncDiscoveryResult, BundleVersionRow, CreateBundleVersionDraftData, BundleVersionMutationResult, UpdateBundleVersionDraftData, BundleRow, CreateBundleData, UpdateBundleData, SubscriptionBundleRecord, MarketingProjectionFilter, MarketingProjectionRow, CreateMarketingProjectionData, UpdateMarketingProjectionData, PromotionRow, CreatePromotionData, UpdatePromotionData, PlanVersionRow, CreatePlanVersionDraftData, PlanVersionMutationResult, UpdatePlanVersionDraftData, PlanRow, CreatePlanData, UpdatePlanData, TenantActionDef } from '@saasicat/types';
|
|
8
8
|
import { RouteRecordRaw, NavigationGuardWithThis } from 'vue-router';
|
|
9
9
|
import * as vue from 'vue';
|
|
10
10
|
import { Ref, InjectionKey, App, ComputedRef } from 'vue';
|
|
@@ -623,51 +623,6 @@ interface SubscriptionDraft {
|
|
|
623
623
|
}
|
|
624
624
|
declare function useSubscriptionDraft(options: UseSubscriptionDraftOptions): SubscriptionDraft;
|
|
625
625
|
|
|
626
|
-
/**
|
|
627
|
-
* Generic filter shape for versions lists.
|
|
628
|
-
* `state`: 'draft' (publishedAt null), 'live' (publishedAt set, supersededAt null),
|
|
629
|
-
* 'superseded' (supersededAt set), 'all' (default).
|
|
630
|
-
*/
|
|
631
|
-
interface PlanVersionListFilter {
|
|
632
|
-
state?: 'draft' | 'live' | 'superseded' | 'all';
|
|
633
|
-
/** PlanId (`'BASIC'`, `'STANDARD'`, …). */
|
|
634
|
-
planId?: string;
|
|
635
|
-
}
|
|
636
|
-
/**
|
|
637
|
-
* Generic versions row shape. Depending on the endpoint, the consumer backend
|
|
638
|
-
* returns slightly different fields; the platform composable takes the universal ones.
|
|
639
|
-
*/
|
|
640
|
-
interface PlanVersionRow {
|
|
641
|
-
id: string;
|
|
642
|
-
version: number;
|
|
643
|
-
publishedAt: string | null;
|
|
644
|
-
supersededAt: string | null;
|
|
645
|
-
nonRegressive: boolean;
|
|
646
|
-
changeNote?: string;
|
|
647
|
-
[extra: string]: unknown;
|
|
648
|
-
}
|
|
649
|
-
interface VersionsOptions {
|
|
650
|
-
/**
|
|
651
|
-
* Fully qualified versions-list endpoint including the app globalPrefix
|
|
652
|
-
* (`/api/admin/plan-versions`, `/api/v1/admin/plan-versions`, …). Mandatory.
|
|
653
|
-
*/
|
|
654
|
-
endpoint: string;
|
|
655
|
-
filter?: Ref<PlanVersionListFilter>;
|
|
656
|
-
http?: UseApiListOptions<Record<string, unknown>>['http'];
|
|
657
|
-
getAuthToken?: () => string | null;
|
|
658
|
-
autoLoad?: boolean;
|
|
659
|
-
}
|
|
660
|
-
interface VersionsResult extends UseApiListResult<PlanVersionRow> {
|
|
661
|
-
filter: Ref<PlanVersionListFilter>;
|
|
662
|
-
}
|
|
663
|
-
/**
|
|
664
|
-
* Read-only catalog view for PlanVersions (lift-and-shift from a
|
|
665
|
-
* consumer admin).
|
|
666
|
-
* Called `usePlanVersionsCatalog` since M6 Pack 2a, because `usePlanVersions`
|
|
667
|
-
* from `use-plans.ts` is now the lifecycle editor (createDraft/publish).
|
|
668
|
-
*/
|
|
669
|
-
declare const usePlanVersionsCatalog: (options: VersionsOptions) => VersionsResult;
|
|
670
|
-
|
|
671
626
|
type BulkItemKind = 'plan';
|
|
672
627
|
type BulkItemStatus = 'pending' | 'publishing' | 'published' | 'failed';
|
|
673
628
|
interface BulkPublishItem {
|
|
@@ -1067,7 +1022,7 @@ interface UsePlanVersionsOptions {
|
|
|
1067
1022
|
autoLoad?: boolean;
|
|
1068
1023
|
}
|
|
1069
1024
|
interface UsePlanVersionsResult {
|
|
1070
|
-
versions: Ref<PlanVersionRow
|
|
1025
|
+
versions: Ref<PlanVersionRow[]>;
|
|
1071
1026
|
loading: Ref<boolean>;
|
|
1072
1027
|
error: Ref<Error | null>;
|
|
1073
1028
|
load: () => Promise<void>;
|
|
@@ -1093,7 +1048,7 @@ interface UsePlanVersionsResult {
|
|
|
1093
1048
|
* Terminates a live PlanVersion with `endsAt` (without a successor
|
|
1094
1049
|
* version). Idempotent — a second call with a different date overwrites.
|
|
1095
1050
|
*/
|
|
1096
|
-
terminateVersion: (versionId: string, endsAt: string) => Promise<PlanVersionRow
|
|
1051
|
+
terminateVersion: (versionId: string, endsAt: string) => Promise<PlanVersionRow>;
|
|
1097
1052
|
}
|
|
1098
1053
|
declare function usePlanVersions(options: UsePlanVersionsOptions): UsePlanVersionsResult;
|
|
1099
1054
|
|
|
@@ -1106,7 +1061,7 @@ interface UseLivePlanVersionsOptions {
|
|
|
1106
1061
|
}
|
|
1107
1062
|
interface UseLivePlanVersionsResult {
|
|
1108
1063
|
/** `planKey → live PlanVersion` (or null when the plan has no live version). */
|
|
1109
|
-
livePlanVersions: Ref<Record<string, PlanVersionRow
|
|
1064
|
+
livePlanVersions: Ref<Record<string, PlanVersionRow | null>>;
|
|
1110
1065
|
loading: Ref<boolean>;
|
|
1111
1066
|
error: Ref<Error | null>;
|
|
1112
1067
|
/** Forces a reload of all live versions. */
|
|
@@ -1801,4 +1756,4 @@ declare const DEFAULT_I18N_EN: TenantPlanSectionI18n;
|
|
|
1801
1756
|
/** Default map for the given UI locale — fallback layer under the `i18n` prop. */
|
|
1802
1757
|
declare function defaultTenantPlanSectionI18n(locale: SaLocale): TenantPlanSectionI18n;
|
|
1803
1758
|
|
|
1804
|
-
export { ActionHandler, ActionRegistry, ActionsMap, type ApiListResponse, BatchColumnData, BatchColumnFetcherOptions, type BillingCycleStr, BootLoader, BootLoaderOptions, BuildRouteEntry, type BulkItemKind, type BulkItemStatus, type BulkPublishItem, type BundleAddPreviewShape, type BundleCancelPreviewShape, type BundlePreviewIssueShape, type BundlePreviewShape, type BundlePreviewSnapshotShape, BundlesApiError, CATALOG_DEFAULT_LOCALE, type CatalogBundle, CatalogEntriesApiError, type CatalogPlan, type ConfirmDialogState, type CreateAdminRoutesOptions, type CreateManifestStoreOptions, type CreatePlatformLoadersOptions, DEFAULT_I18N_DE, DEFAULT_I18N_EN, DEFAULT_YEARLY_FACTOR, DiscoveryLoadError, type DraftPricing, ENTITLEMENT_INJECTION_KEY, type EmailHistoryDetail, type EmailHistoryFilter, type EmailHistoryListResult, type EmailHistoryResendResult, type EmailHistoryRow, type EmailHistoryStatus, type EntitlementSnapshotShape, ExtensionsMap, type FeatureRegistryEntry, type FeatureRouterGuardOptions, type FeatureRowMarkers, HttpClient, KvStore, ManifestLoader, ManifestLoaderOptions, type ManifestStoreActions, type ManifestStoreDefinition, type ManifestStoreState, MarketingProjectionsApiError, type MfaDialogState, NavBuilderOptions, type PackageSnapshotShape, type PilotCopy, type PilotCreatePayload, type PilotCreateResult, type PilotEditPayload, type PilotEditResult, type PlanChangePreviewShape, type PlanSnapshotShape,
|
|
1759
|
+
export { ActionHandler, ActionRegistry, ActionsMap, type ApiListResponse, BatchColumnData, BatchColumnFetcherOptions, type BillingCycleStr, BootLoader, BootLoaderOptions, BuildRouteEntry, type BulkItemKind, type BulkItemStatus, type BulkPublishItem, type BundleAddPreviewShape, type BundleCancelPreviewShape, type BundlePreviewIssueShape, type BundlePreviewShape, type BundlePreviewSnapshotShape, BundlesApiError, CATALOG_DEFAULT_LOCALE, type CatalogBundle, CatalogEntriesApiError, type CatalogPlan, type ConfirmDialogState, type CreateAdminRoutesOptions, type CreateManifestStoreOptions, type CreatePlatformLoadersOptions, DEFAULT_I18N_DE, DEFAULT_I18N_EN, DEFAULT_YEARLY_FACTOR, DiscoveryLoadError, type DraftPricing, ENTITLEMENT_INJECTION_KEY, type EmailHistoryDetail, type EmailHistoryFilter, type EmailHistoryListResult, type EmailHistoryResendResult, type EmailHistoryRow, type EmailHistoryStatus, type EntitlementSnapshotShape, ExtensionsMap, type FeatureRegistryEntry, type FeatureRouterGuardOptions, type FeatureRowMarkers, HttpClient, KvStore, ManifestLoader, ManifestLoaderOptions, type ManifestStoreActions, type ManifestStoreDefinition, type ManifestStoreState, MarketingProjectionsApiError, type MfaDialogState, NavBuilderOptions, type PackageSnapshotShape, type PilotCopy, type PilotCreatePayload, type PilotCreateResult, type PilotEditPayload, type PilotEditResult, type PlanChangePreviewShape, type PlanSnapshotShape, PlannedOnlyFeatureError, PlansApiError, type PlatformEmailProvider, type PlatformEmailTestInput, type PlatformEmailTestResult, type PlatformEmailWriteInput, type PlatformLoaders, type PlatformTenantActionRow, type PlatformTenantActionTone, type PlatformTenantActionsOptions, type PlatformTenantActionsResult, type PriceLineItem, ProjectPageHost, type PromoCodeCreatePayload, type PromoCodeDurationType, type PromoCodePlanOption, type PromoCodeUpdatePayload, type PromoCodeValueType, type PromoState, type PromoStatus, PromotionsApiError, type QuotaMeta, type RedundantFeatureHintShape, type ResolvedTenantAction, SaLocale, SidebarSection, type SubscriptionBundleShape, type SubscriptionDraft, SuperAdminBrand, SuperAdminEndpoints, SuperAdminLoginAdapter, type TenantActionFlowProviders, type TenantActionInput, type TenantManifestNavItem, type TenantManifestShape, type TenantPlanSectionI18n, type TenantRowLike, TenantSubscriptionBundlesApiError, type UsageSnapshotShape, type UseActionsResult, type UseApiListOptions, type UseApiListResult, type UseAuditEntriesOptions, type UseAuditEntriesResult, type UseBatchColumnsResult, type UseBulkPublishOptions, type UseBulkPublishResult, type UseBundleVersionsMapOptions, type UseBundleVersionsMapResult, type UseBundleVersionsOptions, type UseBundleVersionsResult, type UseBundlesOptions, type UseBundlesResult, type UseCatalogEntriesOptions, type UseCatalogEntriesResult, type UseDiscoveryOptions, type UseDiscoveryResult, type UseEntitlementOptions, type UseEntitlementResult, type UseLivePlanVersionsOptions, type UseLivePlanVersionsResult, type UseManifestResult, type UseMarketingProjectionsOptions, type UseMarketingProjectionsResult, type UseNavResult, type UsePlanEditorOptions, type UsePlanEditorResult, type UsePlanVersionsOptions, type UsePlanVersionsResult, type UsePlansOptions, type UsePlansResult, type UsePromotionsOptions, type UsePromotionsResult, type UsePublicBootResult, type UseSubscriptionDraftOptions, type UseTenantActionFlowResult, type UseTenantBillingCatalogOptions, type UseTenantBillingCatalogResult, type UseTenantBillingOptions, type UseTenantBillingResult, type UseTenantManifestOptions, type UseTenantManifestResult, type UseTenantSubscriptionBundlesOptions, type UseTenantSubscriptionBundlesResult, type UseTenantsOptions, type UseTenantsResult, buildFeatureRegistry, buildFeatureRouterGuard, buildQuotaRegistry, createAdminRoutes, createManifestStore, createPlatformLoaders, createProjectPageHostRoute, defaultIconForActionKey, defaultTenantPlanSectionI18n, defaultToneForActionKey, provideEntitlement, useActions, useApiList, useAuditEntries, useBatchColumns, useBulkPublish, useBundleVersions, useBundleVersionsMap, useBundles, useCatalogEntries, useDiscovery, useEntitlement, useInjectedEntitlement, useLivePlanVersions, useManifest, useMarketingProjections, useNav, usePlanEditor, usePlanVersions, usePlans, usePlatformTenantActions, usePromotions, usePublicBoot, useSubscriptionDraft, useSuperAdminActions, useSuperAdminBrand, useSuperAdminEndpoints, useSuperAdminExtensions, useSuperAdminHttp, useSuperAdminLoginAdapter, useSuperAdminManifest, useTenantActionFlow, useTenantBilling, useTenantBillingCatalog, useTenantManifest, useTenantSubscriptionBundles, useTenants };
|