Skip to content

Commit ead88a7

Browse files
fix
1 parent fef7f6b commit ead88a7

File tree

6 files changed

+577
-1
lines changed

6 files changed

+577
-1
lines changed

packages/backend/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11

22
.env.local
3-
_generated
Lines changed: 257 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,257 @@
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 healthCheck from "../healthCheck.js";
12+
import type * as http from "../http.js";
13+
import type * as stats from "../stats.js";
14+
15+
import type {
16+
ApiFromModules,
17+
FilterApi,
18+
FunctionReference,
19+
} from "convex/server";
20+
21+
/**
22+
* A utility for referencing Convex functions in your app's API.
23+
*
24+
* Usage:
25+
* ```js
26+
* const myFunctionReference = api.myModule.myFunction;
27+
* ```
28+
*/
29+
declare const fullApi: ApiFromModules<{
30+
healthCheck: typeof healthCheck;
31+
http: typeof http;
32+
stats: typeof stats;
33+
}>;
34+
declare const fullApiWithMounts: typeof fullApi;
35+
36+
export declare const api: FilterApi<
37+
typeof fullApiWithMounts,
38+
FunctionReference<any, "public">
39+
>;
40+
export declare const internal: FilterApi<
41+
typeof fullApiWithMounts,
42+
FunctionReference<any, "internal">
43+
>;
44+
45+
export declare const components: {
46+
ossStats: {
47+
github: {
48+
getGithubOwners: FunctionReference<
49+
"query",
50+
"internal",
51+
{ owners: Array<string> },
52+
Array<null | {
53+
contributorCount: number;
54+
dependentCount: number;
55+
dependentCountPrevious?: { count: number; updatedAt: number };
56+
dependentCountUpdatedAt?: number;
57+
name: string;
58+
nameNormalized: string;
59+
starCount: number;
60+
updatedAt: number;
61+
}>
62+
>;
63+
getGithubRepo: FunctionReference<
64+
"query",
65+
"internal",
66+
{ name: string },
67+
null | {
68+
contributorCount: number;
69+
dependentCount: number;
70+
dependentCountPrevious?: { count: number; updatedAt: number };
71+
dependentCountUpdatedAt?: number;
72+
name: string;
73+
nameNormalized: string;
74+
owner: string;
75+
ownerNormalized: string;
76+
starCount: number;
77+
updatedAt: number;
78+
}
79+
>;
80+
getGithubRepos: FunctionReference<
81+
"query",
82+
"internal",
83+
{ names: Array<string> },
84+
Array<null | {
85+
contributorCount: number;
86+
dependentCount: number;
87+
dependentCountPrevious?: { count: number; updatedAt: number };
88+
dependentCountUpdatedAt?: number;
89+
name: string;
90+
nameNormalized: string;
91+
owner: string;
92+
ownerNormalized: string;
93+
starCount: number;
94+
updatedAt: number;
95+
}>
96+
>;
97+
updateGithubOwner: FunctionReference<
98+
"mutation",
99+
"internal",
100+
{ name: string },
101+
any
102+
>;
103+
updateGithubOwnerStats: FunctionReference<
104+
"action",
105+
"internal",
106+
{ githubAccessToken: string; owner: string; page?: number },
107+
any
108+
>;
109+
updateGithubRepoStars: FunctionReference<
110+
"mutation",
111+
"internal",
112+
{ name: string; owner: string; starCount: number },
113+
any
114+
>;
115+
updateGithubRepoStats: FunctionReference<
116+
"action",
117+
"internal",
118+
{ githubAccessToken: string; repo: string },
119+
any
120+
>;
121+
updateGithubRepos: FunctionReference<
122+
"mutation",
123+
"internal",
124+
{
125+
repos: Array<{
126+
contributorCount: number;
127+
dependentCount: number;
128+
name: string;
129+
owner: string;
130+
starCount: number;
131+
}>;
132+
},
133+
any
134+
>;
135+
};
136+
lib: {
137+
clearAndSync: FunctionReference<
138+
"action",
139+
"internal",
140+
{
141+
githubAccessToken: string;
142+
githubOwners?: Array<string>;
143+
githubRepos?: Array<string>;
144+
minStars?: number;
145+
npmOrgs?: Array<string>;
146+
npmPackages?: Array<string>;
147+
},
148+
any
149+
>;
150+
clearPage: FunctionReference<
151+
"mutation",
152+
"internal",
153+
{ tableName: "githubRepos" | "npmPackages" },
154+
{ isDone: boolean }
155+
>;
156+
clearTable: FunctionReference<
157+
"action",
158+
"internal",
159+
{ tableName: "githubRepos" | "npmPackages" },
160+
null
161+
>;
162+
sync: FunctionReference<
163+
"action",
164+
"internal",
165+
{
166+
githubAccessToken: string;
167+
githubOwners?: Array<string>;
168+
githubRepos?: Array<string>;
169+
minStars?: number;
170+
npmOrgs?: Array<string>;
171+
npmPackages?: Array<string>;
172+
},
173+
null
174+
>;
175+
};
176+
npm: {
177+
getNpmOrgs: FunctionReference<
178+
"query",
179+
"internal",
180+
{ names: Array<string> },
181+
Array<null | {
182+
dayOfWeekAverages: Array<number>;
183+
downloadCount: number;
184+
downloadCountUpdatedAt: number;
185+
name: string;
186+
updatedAt: number;
187+
}>
188+
>;
189+
getNpmPackage: FunctionReference<
190+
"query",
191+
"internal",
192+
{ name: string },
193+
null | {
194+
dayOfWeekAverages: Array<number>;
195+
downloadCount: number;
196+
downloadCountUpdatedAt?: number;
197+
name: string;
198+
org?: string;
199+
updatedAt: number;
200+
}
201+
>;
202+
getNpmPackages: FunctionReference<
203+
"query",
204+
"internal",
205+
{ names: Array<string> },
206+
{
207+
dayOfWeekAverages: Array<number>;
208+
downloadCount: number;
209+
downloadCountUpdatedAt: number;
210+
updatedAt: number;
211+
}
212+
>;
213+
updateNpmOrg: FunctionReference<
214+
"mutation",
215+
"internal",
216+
{ name: string },
217+
any
218+
>;
219+
updateNpmOrgStats: FunctionReference<
220+
"action",
221+
"internal",
222+
{ org: string; page?: number },
223+
any
224+
>;
225+
updateNpmPackage: FunctionReference<
226+
"mutation",
227+
"internal",
228+
{
229+
dayOfWeekAverages: Array<number>;
230+
downloadCount: number;
231+
name: string;
232+
},
233+
any
234+
>;
235+
updateNpmPackageStats: FunctionReference<
236+
"action",
237+
"internal",
238+
{ name: string },
239+
any
240+
>;
241+
updateNpmPackagesForOrg: FunctionReference<
242+
"mutation",
243+
"internal",
244+
{
245+
org: string;
246+
packages: Array<{
247+
dayOfWeekAverages: Array<number>;
248+
downloadCount: number;
249+
isNotFound?: boolean;
250+
name: string;
251+
}>;
252+
},
253+
any
254+
>;
255+
};
256+
};
257+
};
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();
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)