@coursebuilder/core
Version:
Core package for Course Builder
60 lines (57 loc) • 2.37 kB
text/typescript
import { CourseBuilderError } from '../../errors.cjs';
import { CourseBuilderConfig } from '../../index.cjs';
import { R as RequestInternal, k as CourseBuilderAction, a as ResponseInternal } from '../../adapters-DK4L3hbS.cjs';
import '@auth/core';
import 'inngest';
import './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';
/**
* takes a `Request` object and converts it into an internal request object
* that we use throughout the system
* @param req
* @param config
* @returns
*/
declare function toInternalRequest(req: Request, config: CourseBuilderConfig): Promise<RequestInternal | undefined>;
declare function parseActionAndProviderId(pathname: string, base: string): {
action: CourseBuilderAction;
providerId?: string;
};
declare class UnknownAction extends CourseBuilderError {
static type: string;
}
declare function toResponse(res: ResponseInternal): Response;
export { UnknownAction, parseActionAndProviderId, toInternalRequest, toResponse };