mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
* improvement(billing): improve against direct subscription creation bypasses * more usage of block/unblock helpers * address bugbot comments * fail closed * only run dup check for orgs
45 lines
1.5 KiB
TypeScript
45 lines
1.5 KiB
TypeScript
/**
|
|
* Billing System - Main Entry Point
|
|
* Provides clean, organized exports for the billing system
|
|
*/
|
|
|
|
export * from '@/lib/billing/calculations/usage-monitor'
|
|
export * from '@/lib/billing/core/billing'
|
|
export * from '@/lib/billing/core/organization'
|
|
export * from '@/lib/billing/core/subscription'
|
|
export {
|
|
getHighestPrioritySubscription as getActiveSubscription,
|
|
getUserSubscriptionState as getSubscriptionState,
|
|
hasAccessControlAccess,
|
|
hasActiveSubscription,
|
|
hasCredentialSetsAccess,
|
|
hasSSOAccess,
|
|
isEnterpriseOrgAdminOrOwner,
|
|
isEnterprisePlan as hasEnterprisePlan,
|
|
isOrganizationOnEnterprisePlan,
|
|
isOrganizationOnTeamOrEnterprisePlan,
|
|
isProPlan as hasProPlan,
|
|
isTeamOrgAdminOrOwner,
|
|
isTeamPlan as hasTeamPlan,
|
|
sendPlanWelcomeEmail,
|
|
} from '@/lib/billing/core/subscription'
|
|
export * from '@/lib/billing/core/usage'
|
|
export {
|
|
checkUsageStatus,
|
|
getTeamUsageLimits,
|
|
getUserUsageData as getUsageData,
|
|
getUserUsageLimit as getUsageLimit,
|
|
updateUserUsageLimit as updateUsageLimit,
|
|
} from '@/lib/billing/core/usage'
|
|
export * from '@/lib/billing/credits/balance'
|
|
export * from '@/lib/billing/credits/purchase'
|
|
export {
|
|
blockOrgMembers,
|
|
getOrgMemberIds,
|
|
unblockOrgMembers,
|
|
} from '@/lib/billing/organizations/membership'
|
|
export * from '@/lib/billing/subscriptions/utils'
|
|
export { canEditUsageLimit as canEditLimit } from '@/lib/billing/subscriptions/utils'
|
|
export * from '@/lib/billing/types'
|
|
export * from '@/lib/billing/validation/seat-management'
|