|
| 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 | +}; |
0 commit comments