UNPKG

@novu/framework

Version:

The Code-First Notifications Workflow SDK.

35 lines (32 loc) 1.27 kB
import { S as ServeHandlerOptions } from '../index-S0QKfWxm.cjs'; export { C as Client, N as NovuRequestHandler, w as workflow } from '../index-S0QKfWxm.cjs'; export { C as CronExpression, S as SeverityLevelEnum, W as Workflow, p as providerSchemas } from '../health-check.types-D_KcRiM_.cjs'; import { S as SupportedFrameworkName } from '../server.types-BRWsA1CA.cjs'; import 'json-schema-to-ts'; import 'zod'; declare const frameworkName: SupportedFrameworkName; /** * In Remix, serve and register any declared workflows with Novu, making them * available to be triggered by events. * * Remix requires that you export both a "loader" for serving `GET` requests, * and an "action" for serving other requests, therefore exporting both is * required. * * See {@link https://remix.run/docs/en/v1/guides/resource-routes} * * @example * ```ts * import { serve } from "@novu/framework/remix"; * import { myWorkflow } from "./src/novu/workflows"; * * const handler = serve({ workflows: [myWorkflow] }); * * export { handler as loader, handler as action }; * ``` */ declare const serve: (options: ServeHandlerOptions) => ((ctx: { request: Request; context?: unknown; }) => Promise<Response>); export { ServeHandlerOptions, frameworkName, serve };