Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "ignore generated convex code" #332

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ yarn.lock
dist
.vscode/
.env.local
convex/_generated
169 changes: 169 additions & 0 deletions convex/_generated/api.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
/* eslint-disable */
/**
* Generated `api` utility.
*
* THIS CODE IS AUTOMATICALLY GENERATED.
*
* To regenerate, run `npx convex dev`.
* @module
*/

import type * as http from "../http.js";
import type * as stats from "../stats.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<{
http: typeof http;
stats: typeof stats;
}>;
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: {
ossStats: {
github: {
getGithubOwners: FunctionReference<
"query",
"internal",
{ owners: Array<string> },
Array<null | {
contributorCount: number;
dependentCount: number;
dependentCountPrevious?: { count: number; updatedAt: number };
dependentCountUpdatedAt?: number;
name: string;
nameNormalized: string;
starCount: number;
updatedAt: number;
}>
>;
updateGithubOwner: FunctionReference<
"mutation",
"internal",
{ name: string },
any
>;
updateGithubOwnerStats: FunctionReference<
"action",
"internal",
{ githubAccessToken: string; owner: string; page?: number },
any
>;
updateGithubRepoStars: FunctionReference<
"mutation",
"internal",
{ name: string; owner: string; starCount: number },
any
>;
updateGithubRepos: FunctionReference<
"mutation",
"internal",
{
repos: Array<{
contributorCount: number;
dependentCount: number;
name: string;
owner: string;
starCount: number;
}>;
},
any
>;
};
lib: {
clearAndSync: FunctionReference<
"action",
"internal",
{
githubAccessToken: string;
githubOwners: Array<string>;
minStars: number;
npmOrgs: Array<string>;
},
any
>;
clearPage: FunctionReference<
"mutation",
"internal",
{ tableName: "githubRepos" | "npmPackages" },
{ isDone: boolean }
>;
clearTable: FunctionReference<
"action",
"internal",
{ tableName: "githubRepos" | "npmPackages" },
null
>;
sync: FunctionReference<
"action",
"internal",
{
githubAccessToken: string;
githubOwners: Array<string>;
minStars: number;
npmOrgs: Array<string>;
},
null
>;
};
npm: {
getNpmOrgs: FunctionReference<
"query",
"internal",
{ names: Array<string> },
Array<null | {
dayOfWeekAverages: Array<number>;
downloadCount: number;
downloadCountUpdatedAt: number;
name: string;
updatedAt: number;
}>
>;
updateNpmOrg: FunctionReference<
"mutation",
"internal",
{ name: string },
any
>;
updateNpmOrgStats: FunctionReference<
"action",
"internal",
{ org: string; page?: number },
any
>;
updateNpmPackagesForOrg: FunctionReference<
"mutation",
"internal",
{
org: string;
packages: Array<{
dayOfWeekAverages: Array<number>;
downloadCount: number;
name: string;
}>;
},
any
>;
};
};
};
23 changes: 23 additions & 0 deletions convex/_generated/api.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/* eslint-disable */
/**
* Generated `api` utility.
*
* THIS CODE IS AUTOMATICALLY GENERATED.
*
* To regenerate, run `npx convex dev`.
* @module
*/

import { anyApi, componentsGeneric } from "convex/server";

/**
* A utility for referencing Convex functions in your app's API.
*
* Usage:
* ```js
* const myFunctionReference = api.myModule.myFunction;
* ```
*/
export const api = anyApi;
export const internal = anyApi;
export const components = componentsGeneric();
58 changes: 58 additions & 0 deletions convex/_generated/dataModel.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
/* eslint-disable */
/**
* Generated data model types.
*
* THIS CODE IS AUTOMATICALLY GENERATED.
*
* To regenerate, run `npx convex dev`.
* @module
*/

import { AnyDataModel } from "convex/server";
import type { GenericId } from "convex/values";

/**
* No `schema.ts` file found!
*
* This generated code has permissive types like `Doc = any` because
* Convex doesn't know your schema. If you'd like more type safety, see
* https://docs.convex.dev/using/schemas for instructions on how to add a
* schema file.
*
* After you change a schema, rerun codegen with `npx convex dev`.
*/

/**
* The names of all of your Convex tables.
*/
export type TableNames = string;

/**
* The type of a document stored in Convex.
*/
export type Doc = any;

/**
* An identifier for a document in Convex.
*
* Convex documents are uniquely identified by their `Id`, which is accessible
* on the `_id` field. To learn more, see [Document IDs](https://docs.convex.dev/using/document-ids).
*
* Documents can be loaded using `db.get(id)` in query and mutation functions.
*
* IDs are just strings at runtime, but this type can be used to distinguish them from other
* strings when type checking.
*/
export type Id<TableName extends TableNames = TableNames> =
GenericId<TableName>;

/**
* A type describing your Convex data model.
*
* This type includes information about what tables you have, the type of
* documents stored in those tables, and the indexes defined on them.
*
* This type is used to parameterize methods like `queryGeneric` and
* `mutationGeneric` to make them type-safe.
*/
export type DataModel = AnyDataModel;
Loading
Loading