Skip to content

Commit 017500a

Browse files
Revert "ignore generated convex code"
This reverts commit 0eee823.
1 parent 367bcd2 commit 017500a

File tree

6 files changed

+489
-1
lines changed

6 files changed

+489
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@ yarn.lock
1919
dist
2020
.vscode/
2121
.env.local
22-
convex/_generated

convex/_generated/api.d.ts

Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
/* eslint-disable */
2+
/**
3+
* Generated `api` utility.
4+
*
5+
* THIS CODE IS AUTOMATICALLY GENERATED.
6+
*
7+
* To regenerate, run `npx convex dev`.
8+
* @module
9+
*/
10+
11+
import type * as http from "../http.js";
12+
import type * as stats from "../stats.js";
13+
14+
import type {
15+
ApiFromModules,
16+
FilterApi,
17+
FunctionReference,
18+
} from "convex/server";
19+
/**
20+
* A utility for referencing Convex functions in your app's API.
21+
*
22+
* Usage:
23+
* ```js
24+
* const myFunctionReference = api.myModule.myFunction;
25+
* ```
26+
*/
27+
declare const fullApi: ApiFromModules<{
28+
http: typeof http;
29+
stats: typeof stats;
30+
}>;
31+
declare const fullApiWithMounts: typeof fullApi;
32+
33+
export declare const api: FilterApi<
34+
typeof fullApiWithMounts,
35+
FunctionReference<any, "public">
36+
>;
37+
export declare const internal: FilterApi<
38+
typeof fullApiWithMounts,
39+
FunctionReference<any, "internal">
40+
>;
41+
42+
export declare const components: {
43+
ossStats: {
44+
github: {
45+
getGithubOwners: FunctionReference<
46+
"query",
47+
"internal",
48+
{ owners: Array<string> },
49+
Array<null | {
50+
contributorCount: number;
51+
dependentCount: number;
52+
dependentCountPrevious?: { count: number; updatedAt: number };
53+
dependentCountUpdatedAt?: number;
54+
name: string;
55+
nameNormalized: string;
56+
starCount: number;
57+
updatedAt: number;
58+
}>
59+
>;
60+
updateGithubOwner: FunctionReference<
61+
"mutation",
62+
"internal",
63+
{ name: string },
64+
any
65+
>;
66+
updateGithubOwnerStats: FunctionReference<
67+
"action",
68+
"internal",
69+
{ githubAccessToken: string; owner: string; page?: number },
70+
any
71+
>;
72+
updateGithubRepoStars: FunctionReference<
73+
"mutation",
74+
"internal",
75+
{ name: string; owner: string; starCount: number },
76+
any
77+
>;
78+
updateGithubRepos: FunctionReference<
79+
"mutation",
80+
"internal",
81+
{
82+
repos: Array<{
83+
contributorCount: number;
84+
dependentCount: number;
85+
name: string;
86+
owner: string;
87+
starCount: number;
88+
}>;
89+
},
90+
any
91+
>;
92+
};
93+
lib: {
94+
clearAndSync: FunctionReference<
95+
"action",
96+
"internal",
97+
{
98+
githubAccessToken: string;
99+
githubOwners: Array<string>;
100+
minStars: number;
101+
npmOrgs: Array<string>;
102+
},
103+
any
104+
>;
105+
clearPage: FunctionReference<
106+
"mutation",
107+
"internal",
108+
{ tableName: "githubRepos" | "npmPackages" },
109+
{ isDone: boolean }
110+
>;
111+
clearTable: FunctionReference<
112+
"action",
113+
"internal",
114+
{ tableName: "githubRepos" | "npmPackages" },
115+
null
116+
>;
117+
sync: FunctionReference<
118+
"action",
119+
"internal",
120+
{
121+
githubAccessToken: string;
122+
githubOwners: Array<string>;
123+
minStars: number;
124+
npmOrgs: Array<string>;
125+
},
126+
null
127+
>;
128+
};
129+
npm: {
130+
getNpmOrgs: FunctionReference<
131+
"query",
132+
"internal",
133+
{ names: Array<string> },
134+
Array<null | {
135+
dayOfWeekAverages: Array<number>;
136+
downloadCount: number;
137+
downloadCountUpdatedAt: number;
138+
name: string;
139+
updatedAt: number;
140+
}>
141+
>;
142+
updateNpmOrg: FunctionReference<
143+
"mutation",
144+
"internal",
145+
{ name: string },
146+
any
147+
>;
148+
updateNpmOrgStats: FunctionReference<
149+
"action",
150+
"internal",
151+
{ org: string; page?: number },
152+
any
153+
>;
154+
updateNpmPackagesForOrg: FunctionReference<
155+
"mutation",
156+
"internal",
157+
{
158+
org: string;
159+
packages: Array<{
160+
dayOfWeekAverages: Array<number>;
161+
downloadCount: number;
162+
name: string;
163+
}>;
164+
},
165+
any
166+
>;
167+
};
168+
};
169+
};

convex/_generated/api.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/* eslint-disable */
2+
/**
3+
* Generated `api` utility.
4+
*
5+
* THIS CODE IS AUTOMATICALLY GENERATED.
6+
*
7+
* To regenerate, run `npx convex dev`.
8+
* @module
9+
*/
10+
11+
import { anyApi, componentsGeneric } from "convex/server";
12+
13+
/**
14+
* A utility for referencing Convex functions in your app's API.
15+
*
16+
* Usage:
17+
* ```js
18+
* const myFunctionReference = api.myModule.myFunction;
19+
* ```
20+
*/
21+
export const api = anyApi;
22+
export const internal = anyApi;
23+
export const components = componentsGeneric();

convex/_generated/dataModel.d.ts

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
/* eslint-disable */
2+
/**
3+
* Generated data model types.
4+
*
5+
* THIS CODE IS AUTOMATICALLY GENERATED.
6+
*
7+
* To regenerate, run `npx convex dev`.
8+
* @module
9+
*/
10+
11+
import { AnyDataModel } from "convex/server";
12+
import type { GenericId } from "convex/values";
13+
14+
/**
15+
* No `schema.ts` file found!
16+
*
17+
* This generated code has permissive types like `Doc = any` because
18+
* Convex doesn't know your schema. If you'd like more type safety, see
19+
* https://docs.convex.dev/using/schemas for instructions on how to add a
20+
* schema file.
21+
*
22+
* After you change a schema, rerun codegen with `npx convex dev`.
23+
*/
24+
25+
/**
26+
* The names of all of your Convex tables.
27+
*/
28+
export type TableNames = string;
29+
30+
/**
31+
* The type of a document stored in Convex.
32+
*/
33+
export type Doc = any;
34+
35+
/**
36+
* An identifier for a document in Convex.
37+
*
38+
* Convex documents are uniquely identified by their `Id`, which is accessible
39+
* on the `_id` field. To learn more, see [Document IDs](https://docs.convex.dev/using/document-ids).
40+
*
41+
* Documents can be loaded using `db.get(id)` in query and mutation functions.
42+
*
43+
* IDs are just strings at runtime, but this type can be used to distinguish them from other
44+
* strings when type checking.
45+
*/
46+
export type Id<TableName extends TableNames = TableNames> =
47+
GenericId<TableName>;
48+
49+
/**
50+
* A type describing your Convex data model.
51+
*
52+
* This type includes information about what tables you have, the type of
53+
* documents stored in those tables, and the indexes defined on them.
54+
*
55+
* This type is used to parameterize methods like `queryGeneric` and
56+
* `mutationGeneric` to make them type-safe.
57+
*/
58+
export type DataModel = AnyDataModel;

0 commit comments

Comments
 (0)