UNPKG

@coursebuilder/core

Version:

Core package for Course Builder

62 lines (59 loc) 2.36 kB
import { Theme } from '@auth/core/types'; import { c as CourseBuilderAdapter } from '../adapters-DK4L3hbS.cjs'; import '@auth/core/adapters'; import '../schemas/coupon-schema.cjs'; import 'zod'; import '../schemas/merchant-coupon-schema.cjs'; import '../schemas/merchant-customer-schema.cjs'; import '../schemas/merchant-product-schema.cjs'; import '../schemas/price-schema.cjs'; import '../schemas/product-schema.cjs'; import '../schemas/purchase-schema.cjs'; import '../schemas/purchase-user-transfer-schema.cjs'; import '../schemas/resource-progress-schema.cjs'; import '../schemas/user-schema.cjs'; import '../schemas/video-resource.cjs'; import '../schemas/upgradable-product-schema.cjs'; import '../schemas/merchant-charge-schema.cjs'; import '../schemas/merchant-price-schema.cjs'; import '../schemas/content-resource-schema.cjs'; import '../schemas/merchant-account-schema.cjs'; import '../schemas/merchant-session.cjs'; import '../schemas/merchant-subscription.cjs'; import '../schemas/organization-member.cjs'; import '../schemas/organization-schema.cjs'; import '../schemas/subscription.cjs'; import '@auth/core'; import '@auth/core/providers/nodemailer'; import 'ai'; import 'cookie'; import 'inngest'; import 'stripe'; import './utils/logger.cjs'; import '@auth/core/providers'; import '../schemas/subscriber-schema.cjs'; import '../providers/partykit.cjs'; import '../providers/slack.cjs'; import '../schemas/purchase-info.cjs'; import '../schemas/subscription-info.cjs'; type MagicLinkEmailType = 'login' | 'signup' | 'reset' | 'purchase' | 'upgrade' | 'transfer'; type HTMLEmailParams = Record<'url' | 'host' | 'email', string> & { expires?: Date; merchantChargeId?: string | null; }; interface SendVerificationRequestParams { identifier: string; name?: string; url: string; expires: Date; provider: any; token: string; theme?: Theme; } declare const sendVerificationRequest: (params: SendVerificationRequestParams & { type?: MagicLinkEmailType; merchantChargeId?: string | null; html?: (options: HTMLEmailParams, theme?: Theme) => Promise<string>; text?: (options: HTMLEmailParams, theme?: Theme) => Promise<string>; }, adapter: CourseBuilderAdapter) => Promise<void>; export { type HTMLEmailParams, type MagicLinkEmailType, type SendVerificationRequestParams, sendVerificationRequest };