UNPKG

@coursebuilder/core

Version:

Core package for Course Builder

56 lines (53 loc) 2.05 kB
import { CourseBuilderConfig } from '../index.js'; import { I as InternalOptions, R as RequestInternal, C as Cookie, b as CallbacksOptions } from '../adapters-BjQ3VSch.js'; import '@auth/core'; import 'inngest'; import './utils/logger.js'; import '../schemas/user-schema.js'; import 'zod'; import './pricing/format-prices-for-product.js'; import '../schemas/product-schema.js'; import '../schemas/purchase-schema.js'; import '@auth/core/adapters'; import '../schemas/coupon-schema.js'; 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/purchase-user-transfer-schema.js'; import '../schemas/resource-progress-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 'stripe'; 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'; 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 };