UNPKG

editia-core

Version:

Core services and utilities for Editia applications - Authentication, Monetization, Video Generation Types, and Database Management

21 lines 1.85 kB
/** * Editia Core Types - Main Export File * * This file provides a centralized export point for all types used in Editia Core. * It organizes types by category and provides backward compatibility. */ export type { Database, Tables, TablesInsert, TablesUpdate, Enums, CompositeTypes, TableRow, TableInsert, TableUpdate, DatabaseEnum, } from './database'; export type { FeatureId, Action, UsageField, UsageInfo, FeatureAccessResult, UsageValidationResult, MonetizationCheckResult, } from './monetization'; export { FEATURES, ACTIONS, USAGE_FIELDS, FEATURE_TO_ACTION_MAP, ACTION_TO_USAGE_FIELD_MAP, FEATURE_TO_USAGE_FIELD_MAP, getActionForFeature, getUsageFieldForAction, getUsageFieldForFeature, isValidFeatureId, isValidAction, isValidUsageField, } from './monetization'; export type { UserUsage, UsageLimit, UsageTrackingResult, DetailedUsageInfo, UsageSummary, } from './usage-tracking'; export type { PlanIdentifier, User, SubscriptionPlan, FeatureFlag, EditorialProfile, VoiceClone, Video, } from './database'; export { DEFAULT_PLAN_LIMITS, PLAN_HIERARCHY, FEATURE_FLAGS, USAGE_RESET_PERIODS, USAGE_WARNING_THRESHOLDS, MAXIMUM_LIMITS, MINIMUM_LIMITS, CACHE_TIMEOUTS, MONETIZATION_ERROR_CODES, } from './constants'; export type { FeatureFlagId, MonetizationErrorCode, } from './constants'; export { isValidPlanIdentifier, getPlanLevel, hasPlanAccess, calculateRemainingUsage, hasReachedLimit, getUsagePercentage, } from './database'; export { FeatureIdLegacy, ActionLegacy, UsageFieldLegacy, UserUsageLegacy, LEGACY_FEATURES, LEGACY_ACTIONS, toFeatureId, toAction, toUsageField, toLegacyUserUsage, showDeprecationWarning, } from './compatibility'; export * from './database'; export * from './monetization'; export * from './usage-tracking'; export * from './constants'; export * from './compatibility'; //# sourceMappingURL=index.d.ts.map