mirror of
https://github.com/LukeHagar/polar.git
synced 2025-12-09 12:47:46 +00:00
wip
This commit is contained in:
68
src/component/_generated/api.d.ts
vendored
Normal file
68
src/component/_generated/api.d.ts
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Generated `api` utility.
|
||||
*
|
||||
* THIS CODE IS AUTOMATICALLY GENERATED.
|
||||
*
|
||||
* To regenerate, run `npx convex dev`.
|
||||
* @module
|
||||
*/
|
||||
|
||||
import type * as email_index from "../email/index.js";
|
||||
import type * as email_templates_subscriptionEmail from "../email/templates/subscriptionEmail.js";
|
||||
import type * as init from "../init.js";
|
||||
import type * as lib from "../lib.js";
|
||||
import type * as polar from "../polar.js";
|
||||
|
||||
import type {
|
||||
ApiFromModules,
|
||||
FilterApi,
|
||||
FunctionReference,
|
||||
} from "convex/server";
|
||||
/**
|
||||
* A utility for referencing Convex functions in your app's API.
|
||||
*
|
||||
* Usage:
|
||||
* ```js
|
||||
* const myFunctionReference = api.myModule.myFunction;
|
||||
* ```
|
||||
*/
|
||||
declare const fullApi: ApiFromModules<{
|
||||
"email/index": typeof email_index;
|
||||
"email/templates/subscriptionEmail": typeof email_templates_subscriptionEmail;
|
||||
init: typeof init;
|
||||
lib: typeof lib;
|
||||
polar: typeof polar;
|
||||
}>;
|
||||
export type Mounts = {
|
||||
lib: {
|
||||
getOnboardingCheckoutUrl: FunctionReference<
|
||||
"action",
|
||||
"public",
|
||||
{
|
||||
polarAccessToken: string;
|
||||
successUrl: string;
|
||||
userEmail: string;
|
||||
userId: string;
|
||||
},
|
||||
any
|
||||
>;
|
||||
listPlans: FunctionReference<"query", "public", {}, any>;
|
||||
setSubscriptionPending: FunctionReference<"mutation", "public", any, any>;
|
||||
};
|
||||
};
|
||||
// For now fullApiWithMounts is only fullApi which provides
|
||||
// jump-to-definition in component client code.
|
||||
// Use Mounts for the same type without the inference.
|
||||
declare const fullApiWithMounts: typeof fullApi;
|
||||
|
||||
export declare const api: FilterApi<
|
||||
typeof fullApiWithMounts,
|
||||
FunctionReference<any, "public">
|
||||
>;
|
||||
export declare const internal: FilterApi<
|
||||
typeof fullApiWithMounts,
|
||||
FunctionReference<any, "internal">
|
||||
>;
|
||||
|
||||
export declare const components: {};
|
||||
Reference in New Issue
Block a user