@coursebuilder/core
Version:
Core package for Course Builder
70 lines (67 loc) • 2.67 kB
text/typescript
import { AuthConfig } from '@auth/core';
import { EmailConfig } from '@auth/core/src/providers';
import { Theme } from '@auth/core/types';
import { c as CourseBuilderAdapter } from '../adapters-DK4L3hbS.cjs';
import { MagicLinkEmailType, HTMLEmailParams } from './send-verification-request.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/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';
declare function createVerificationUrl({ email, emailProvider, adapter, callbackUrl, expiresAt, authOptions, baseUrl, }: {
email: string;
authOptions: AuthConfig;
emailProvider: EmailConfig;
adapter: CourseBuilderAdapter;
callbackUrl?: string;
baseUrl: string;
expiresAt?: Date;
}): Promise<{
url: string;
token: string;
expires: Date;
} | undefined>;
declare function sendServerEmail({ email, callbackUrl, emailProvider, type, html, text, expiresAt, authOptions, adapter, baseUrl, merchantChargeId, }: {
authOptions: AuthConfig;
email: string;
callbackUrl: string;
emailProvider?: EmailConfig;
type?: MagicLinkEmailType;
html?: (options: HTMLEmailParams, theme?: Theme) => Promise<string>;
text?: (options: HTMLEmailParams, theme?: Theme) => Promise<string>;
expiresAt?: Date | null;
adapter: CourseBuilderAdapter;
baseUrl: string;
merchantChargeId?: string | null;
}): Promise<void>;
export { createVerificationUrl, sendServerEmail };