flnxi-Wu/lib/license/index.ts
2026-05-28 15:11:36 +08:00

58 lines
1.0 KiB
TypeScript

// 导出类型
export * from './types';
// 导出服务
export {
activate,
activateFreeTrial,
verify,
heartbeat,
runLicenseVerification,
runLicenseHeartbeat,
getLicense,
isFeatureEnabled,
checkLimit,
getLicenseType,
isExpired,
startHeartbeat,
stopHeartbeat,
initLicenseService,
} from './license-service';
// 导出限制检查工具
export {
canCreateUser,
canUploadMaterial,
canUseCustomTemplates,
canUseDepartmentIsolation,
canUseIntranetPenetration,
canUseSystemSettings,
canUseApiAccess,
} from './check-limits';
export {
getCachedPremiumModuleManifest,
syncPremiumModules,
hasPremiumModule,
} from './premium-module-service';
// 导出指纹服务
export {
generateFingerprint,
getInstanceId,
calculateFingerprintMatchScore,
isFingerprintMatch,
} from './fingerprint-service';
// 导出加密服务
export {
verifySignature,
verifyLicenseSignature,
signLocalIntegrity,
verifyLocalIntegrity,
encryptLocal,
decryptLocal,
hashData,
generateId,
} from './crypto-service';