53 lines
1.1 KiB
TypeScript
53 lines
1.1 KiB
TypeScript
|
|
/* eslint-disable */
|
||
|
|
/**
|
||
|
|
* Generated `api` utility.
|
||
|
|
*
|
||
|
|
* THIS CODE IS AUTOMATICALLY GENERATED.
|
||
|
|
*
|
||
|
|
* To regenerate, run `npx convex dev`.
|
||
|
|
* @module
|
||
|
|
*/
|
||
|
|
|
||
|
|
import type * as adapter from "../adapter.js";
|
||
|
|
import type * as auth from "../auth.js";
|
||
|
|
|
||
|
|
import type {
|
||
|
|
ApiFromModules,
|
||
|
|
FilterApi,
|
||
|
|
FunctionReference,
|
||
|
|
} from "convex/server";
|
||
|
|
import { anyApi, componentsGeneric } from "convex/server";
|
||
|
|
|
||
|
|
const fullApi: ApiFromModules<{
|
||
|
|
adapter: typeof adapter;
|
||
|
|
auth: typeof auth;
|
||
|
|
}> = anyApi as any;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* A utility for referencing Convex functions in your app's public API.
|
||
|
|
*
|
||
|
|
* Usage:
|
||
|
|
* ```js
|
||
|
|
* const myFunctionReference = api.myModule.myFunction;
|
||
|
|
* ```
|
||
|
|
*/
|
||
|
|
export const api: FilterApi<
|
||
|
|
typeof fullApi,
|
||
|
|
FunctionReference<any, "public">
|
||
|
|
> = anyApi as any;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* A utility for referencing Convex functions in your app's internal API.
|
||
|
|
*
|
||
|
|
* Usage:
|
||
|
|
* ```js
|
||
|
|
* const myFunctionReference = internal.myModule.myFunction;
|
||
|
|
* ```
|
||
|
|
*/
|
||
|
|
export const internal: FilterApi<
|
||
|
|
typeof fullApi,
|
||
|
|
FunctionReference<any, "internal">
|
||
|
|
> = anyApi as any;
|
||
|
|
|
||
|
|
export const components = componentsGeneric() as unknown as {};
|