@coursebuilder/core
Version:
Core package for Course Builder
56 lines (53 loc) • 2.08 kB
text/typescript
import { CourseBuilderConfig } from '../index.cjs';
import { I as InternalOptions, R as RequestInternal, C as Cookie, b as CallbacksOptions } from '../adapters-DK4L3hbS.cjs';
import '@auth/core';
import 'inngest';
import './utils/logger.cjs';
import '../schemas/user-schema.cjs';
import 'zod';
import './pricing/format-prices-for-product.cjs';
import '../schemas/product-schema.cjs';
import '../schemas/purchase-schema.cjs';
import '@auth/core/adapters';
import '../schemas/coupon-schema.cjs';
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/purchase-user-transfer-schema.cjs';
import '../schemas/resource-progress-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 'stripe';
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';
interface InitParams {
url: URL;
courseBuilderOptions: CourseBuilderConfig;
providerId?: string;
action: InternalOptions['action'];
isPost: boolean;
cookies: RequestInternal['cookies'];
}
declare function init({ url, courseBuilderOptions, providerId, action, isPost, cookies: reqCookies, }: InitParams): Promise<{
options: InternalOptions;
cookies: Cookie[];
}>;
declare const defaultCallbacks: CallbacksOptions;
export { defaultCallbacks, init };