@coursebuilder/core
Version:
Core package for Course Builder
70 lines (67 loc) • 2.64 kB
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-BjQ3VSch.js';
import { MagicLinkEmailType, HTMLEmailParams } from './send-verification-request.js';
import '@auth/core/adapters';
import '../schemas/coupon-schema.js';
import 'zod';
import '../schemas/merchant-coupon-schema.js';
import '../schemas/merchant-customer-schema.js';
import '../schemas/merchant-product-schema.js';
import '../schemas/price-schema.js';
import '../schemas/product-schema.js';
import '../schemas/purchase-schema.js';
import '../schemas/purchase-user-transfer-schema.js';
import '../schemas/resource-progress-schema.js';
import '../schemas/user-schema.js';
import '../schemas/video-resource.js';
import '../schemas/upgradable-product-schema.js';
import '../schemas/merchant-charge-schema.js';
import '../schemas/merchant-price-schema.js';
import '../schemas/content-resource-schema.js';
import '../schemas/merchant-account-schema.js';
import '../schemas/merchant-session.js';
import '../schemas/merchant-subscription.js';
import '../schemas/organization-member.js';
import '../schemas/organization-schema.js';
import '../schemas/subscription.js';
import '@auth/core/providers/nodemailer';
import 'ai';
import 'cookie';
import 'inngest';
import 'stripe';
import './utils/logger.js';
import '@auth/core/providers';
import '../schemas/subscriber-schema.js';
import '../providers/partykit.js';
import '../providers/slack.js';
import '../schemas/purchase-info.js';
import '../schemas/subscription-info.js';
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 };