kitcn 0.25.6 → 0.25.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/aggregate/index.d.ts +1 -1
- package/dist/auth/generated/index.d.ts +1 -1
- package/dist/auth/index.d.ts +12 -12
- package/dist/cli.mjs +1 -1
- package/dist/{generated-contract-disabled-BEc4d98x.d.ts → generated-contract-disabled-D_-_iJXw.d.ts} +29 -29
- package/dist/{local-env-CiPqNKS_.mjs → local-env-9Qtfn3wR.mjs} +69 -12
- package/dist/orm/index.d.ts +1 -1
- package/dist/orm/migrations/index.d.ts +1 -1
- package/dist/watcher.mjs +1 -1
- package/dist/{where-clause-compiler-eTewPUGq.d.ts → where-clause-compiler-CwSrhq51.d.ts} +62 -62
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# kitcn
|
|
2
2
|
|
|
3
|
+
## 0.25.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#379](https://github.com/udecode/kitcn/pull/379) [`53fe88e`](https://github.com/udecode/kitcn/commit/53fe88e6911cdabdfcccba20337bfdadb7b6e5be) Thanks [@zbeyens](https://github.com/zbeyens)! - ## Patches
|
|
8
|
+
|
|
9
|
+
- Fix codegen schema loading with constrained required environment values.
|
|
10
|
+
- Fix first-run codegen when schema triggers import newly generated callers.
|
|
11
|
+
|
|
3
12
|
## 0.25.6
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Bn as ConvexTextBuilderInitial, Xt as ConvexTableWithColumns } from "../capabilities-DtDfpdcH.js";
|
|
2
|
-
import { C as ConvexNumberBuilderInitial, E as ConvexIdBuilderInitial, N as ConvexCustomBuilderInitial } from "../where-clause-compiler-
|
|
2
|
+
import { C as ConvexNumberBuilderInitial, E as ConvexIdBuilderInitial, N as ConvexCustomBuilderInitial } from "../where-clause-compiler-CwSrhq51.js";
|
|
3
3
|
import * as convex_values0 from "convex/values";
|
|
4
4
|
import { GenericId, Infer, Value } from "convex/values";
|
|
5
5
|
import { DocumentByName, GenericDataModel, GenericDatabaseReader, GenericDatabaseWriter, TableNamesInDataModel } from "convex/server";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as defineAuth, _ as GenericAuthBeforeResult, b as GenericAuthTriggerHandlers, g as BetterAuthOptionsWithoutDatabase, i as getGeneratedAuthDisabledReason, n as GeneratedAuthDisabledReasonKind, r as createDisabledAuthRuntime, t as AuthRuntime, v as GenericAuthDefinition, x as GenericAuthTriggers, y as GenericAuthTriggerChange } from "../../generated-contract-disabled-
|
|
1
|
+
import { S as defineAuth, _ as GenericAuthBeforeResult, b as GenericAuthTriggerHandlers, g as BetterAuthOptionsWithoutDatabase, i as getGeneratedAuthDisabledReason, n as GeneratedAuthDisabledReasonKind, r as createDisabledAuthRuntime, t as AuthRuntime, v as GenericAuthDefinition, x as GenericAuthTriggers, y as GenericAuthTriggerChange } from "../../generated-contract-disabled-D_-_iJXw.js";
|
|
2
2
|
export { type AuthRuntime, BetterAuthOptionsWithoutDatabase, type GeneratedAuthDisabledReasonKind, GenericAuthBeforeResult, GenericAuthDefinition, GenericAuthTriggerChange, GenericAuthTriggerHandlers, GenericAuthTriggers, createDisabledAuthRuntime, defineAuth, getGeneratedAuthDisabledReason };
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as QueryCtxWithPreferredOrmQueryTable, n as LookupByIdResultByCtx, t as DocByCtx } from "../query-context-DJONf8X5.js";
|
|
2
2
|
import { t as GetAuth } from "../types-Bf3XQex5.js";
|
|
3
3
|
import { t as GenericCtx } from "../context-utils-DwZ3Cam1.js";
|
|
4
|
-
import { S as defineAuth, _ as GenericAuthBeforeResult, a as AuthFunctions, b as GenericAuthTriggerHandlers, c as createApi, d as deleteOneHandler, f as findManyHandler, g as BetterAuthOptionsWithoutDatabase, h as updateOneHandler, i as getGeneratedAuthDisabledReason, l as createHandler, m as updateManyHandler, n as GeneratedAuthDisabledReasonKind, o as Triggers, p as findOneHandler, r as createDisabledAuthRuntime, s as createClient, t as AuthRuntime, u as deleteManyHandler, v as GenericAuthDefinition, x as GenericAuthTriggers, y as GenericAuthTriggerChange } from "../generated-contract-disabled-
|
|
4
|
+
import { S as defineAuth, _ as GenericAuthBeforeResult, a as AuthFunctions, b as GenericAuthTriggerHandlers, c as createApi, d as deleteOneHandler, f as findManyHandler, g as BetterAuthOptionsWithoutDatabase, h as updateOneHandler, i as getGeneratedAuthDisabledReason, l as createHandler, m as updateManyHandler, n as GeneratedAuthDisabledReasonKind, o as Triggers, p as findOneHandler, r as createDisabledAuthRuntime, s as createClient, t as AuthRuntime, u as deleteManyHandler, v as GenericAuthDefinition, x as GenericAuthTriggers, y as GenericAuthTriggerChange } from "../generated-contract-disabled-D_-_iJXw.js";
|
|
5
5
|
import * as convex_values0 from "convex/values";
|
|
6
6
|
import { Infer } from "convex/values";
|
|
7
7
|
import { AuthConfig, DocumentByName, GenericDataModel, GenericMutationCtx, GenericQueryCtx, GenericSchema, PaginationOptions, PaginationResult, SchemaDefinition, TableNamesInDataModel } from "convex/server";
|
|
@@ -111,27 +111,27 @@ type AdapterPaginationOptions = PaginationOptions & {
|
|
|
111
111
|
};
|
|
112
112
|
declare const adapterWhereValidator: convex_values0.VObject<{
|
|
113
113
|
mode?: "sensitive" | "insensitive" | undefined;
|
|
114
|
+
operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
114
115
|
connector?: "AND" | "OR" | undefined;
|
|
115
|
-
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
116
116
|
value: string | number | boolean | string[] | number[] | null;
|
|
117
117
|
field: string;
|
|
118
118
|
}, {
|
|
119
119
|
connector: convex_values0.VUnion<"AND" | "OR" | undefined, [convex_values0.VLiteral<"AND", "required">, convex_values0.VLiteral<"OR", "required">], "optional", never>;
|
|
120
120
|
field: convex_values0.VString<string, "required">;
|
|
121
121
|
mode: convex_values0.VUnion<"sensitive" | "insensitive" | undefined, [convex_values0.VLiteral<"sensitive", "required">, convex_values0.VLiteral<"insensitive", "required">], "optional", never>;
|
|
122
|
-
operator: convex_values0.VUnion<"
|
|
122
|
+
operator: convex_values0.VUnion<"eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined, [convex_values0.VLiteral<"lt", "required">, convex_values0.VLiteral<"lte", "required">, convex_values0.VLiteral<"gt", "required">, convex_values0.VLiteral<"gte", "required">, convex_values0.VLiteral<"eq", "required">, convex_values0.VLiteral<"in", "required">, convex_values0.VLiteral<"not_in", "required">, convex_values0.VLiteral<"ne", "required">, convex_values0.VLiteral<"contains", "required">, convex_values0.VLiteral<"starts_with", "required">, convex_values0.VLiteral<"ends_with", "required">], "optional", never>;
|
|
123
123
|
value: convex_values0.VUnion<string | number | boolean | string[] | number[] | null, [convex_values0.VString<string, "required">, convex_values0.VFloat64<number, "required">, convex_values0.VBoolean<boolean, "required">, convex_values0.VArray<string[], convex_values0.VString<string, "required">, "required">, convex_values0.VArray<number[], convex_values0.VFloat64<number, "required">, "required">, convex_values0.VNull<null, "required">], "required", never>;
|
|
124
|
-
}, "required", "mode" | "
|
|
124
|
+
}, "required", "mode" | "operator" | "value" | "field" | "connector">;
|
|
125
125
|
declare const adapterArgsValidator: convex_values0.VObject<{
|
|
126
|
-
|
|
126
|
+
limit?: number | undefined;
|
|
127
127
|
where?: {
|
|
128
128
|
mode?: "sensitive" | "insensitive" | undefined;
|
|
129
|
+
operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
129
130
|
connector?: "AND" | "OR" | undefined;
|
|
130
|
-
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
131
131
|
value: string | number | boolean | string[] | number[] | null;
|
|
132
132
|
field: string;
|
|
133
133
|
}[] | undefined;
|
|
134
|
-
|
|
134
|
+
select?: string[] | undefined;
|
|
135
135
|
offset?: number | undefined;
|
|
136
136
|
sortBy?: {
|
|
137
137
|
field: string;
|
|
@@ -152,24 +152,24 @@ declare const adapterArgsValidator: convex_values0.VObject<{
|
|
|
152
152
|
}, "optional", "field" | "direction">;
|
|
153
153
|
where: convex_values0.VArray<{
|
|
154
154
|
mode?: "sensitive" | "insensitive" | undefined;
|
|
155
|
+
operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
155
156
|
connector?: "AND" | "OR" | undefined;
|
|
156
|
-
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
157
157
|
value: string | number | boolean | string[] | number[] | null;
|
|
158
158
|
field: string;
|
|
159
159
|
}[] | undefined, convex_values0.VObject<{
|
|
160
160
|
mode?: "sensitive" | "insensitive" | undefined;
|
|
161
|
+
operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
161
162
|
connector?: "AND" | "OR" | undefined;
|
|
162
|
-
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
163
163
|
value: string | number | boolean | string[] | number[] | null;
|
|
164
164
|
field: string;
|
|
165
165
|
}, {
|
|
166
166
|
connector: convex_values0.VUnion<"AND" | "OR" | undefined, [convex_values0.VLiteral<"AND", "required">, convex_values0.VLiteral<"OR", "required">], "optional", never>;
|
|
167
167
|
field: convex_values0.VString<string, "required">;
|
|
168
168
|
mode: convex_values0.VUnion<"sensitive" | "insensitive" | undefined, [convex_values0.VLiteral<"sensitive", "required">, convex_values0.VLiteral<"insensitive", "required">], "optional", never>;
|
|
169
|
-
operator: convex_values0.VUnion<"
|
|
169
|
+
operator: convex_values0.VUnion<"eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined, [convex_values0.VLiteral<"lt", "required">, convex_values0.VLiteral<"lte", "required">, convex_values0.VLiteral<"gt", "required">, convex_values0.VLiteral<"gte", "required">, convex_values0.VLiteral<"eq", "required">, convex_values0.VLiteral<"in", "required">, convex_values0.VLiteral<"not_in", "required">, convex_values0.VLiteral<"ne", "required">, convex_values0.VLiteral<"contains", "required">, convex_values0.VLiteral<"starts_with", "required">, convex_values0.VLiteral<"ends_with", "required">], "optional", never>;
|
|
170
170
|
value: convex_values0.VUnion<string | number | boolean | string[] | number[] | null, [convex_values0.VString<string, "required">, convex_values0.VFloat64<number, "required">, convex_values0.VBoolean<boolean, "required">, convex_values0.VArray<string[], convex_values0.VString<string, "required">, "required">, convex_values0.VArray<number[], convex_values0.VFloat64<number, "required">, "required">, convex_values0.VNull<null, "required">], "required", never>;
|
|
171
|
-
}, "required", "mode" | "
|
|
172
|
-
}, "required", "
|
|
171
|
+
}, "required", "mode" | "operator" | "value" | "field" | "connector">, "optional">;
|
|
172
|
+
}, "required", "limit" | "where" | "model" | "select" | "offset" | "sortBy" | "sortBy.field" | "sortBy.direction">;
|
|
173
173
|
declare const hasUniqueFields: (betterAuthSchema: BetterAuthDBSchema, model: string, input: Record<string, any>) => boolean;
|
|
174
174
|
declare const checkUniqueFields: <Schema extends SchemaDefinition<any, any>>(ctx: GenericQueryCtx<GenericDataModel>, schema: Schema, betterAuthSchema: BetterAuthDBSchema, table: string, input: Record<string, any>, doc?: Record<string, any>) => Promise<void>;
|
|
175
175
|
declare const selectFields: <T extends TableNamesInDataModel<GenericDataModel>, D extends DocumentByName<GenericDataModel, T>>(doc: D | null, select?: string[]) => D | null;
|
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { C as Columns, D as TableName, E as RlsPolicies, O as createSystemFields, S as getRankIndexes, T as OrmSchemaExtensions, _ as loadEsbuild, a as generateMeta, b as getAggregateIndexes, c as resolveSchemaDefaultExport, f as createProjectJiti, g as loadDotenv, h as loadClackPrompts, i as resolveConfiguredBackend, l as schemaDeclaresAggregateIndexes, m as loadBabelParser, n as withLocalCodegenEnv, o as getConvexConfig, p as CRPC_BUILDER_STUB_SOURCE, r as loadCliConfig, s as collectSchemaTables, t as getLocalBackendEnvVars, u as logger, v as highlighter, w as EnableRLS, x as getIndexes, y as isColorEnabled } from "./local-env-
|
|
2
|
+
import { C as Columns, D as TableName, E as RlsPolicies, O as createSystemFields, S as getRankIndexes, T as OrmSchemaExtensions, _ as loadEsbuild, a as generateMeta, b as getAggregateIndexes, c as resolveSchemaDefaultExport, f as createProjectJiti, g as loadDotenv, h as loadClackPrompts, i as resolveConfiguredBackend, l as schemaDeclaresAggregateIndexes, m as loadBabelParser, n as withLocalCodegenEnv, o as getConvexConfig, p as CRPC_BUILDER_STUB_SOURCE, r as loadCliConfig, s as collectSchemaTables, t as getLocalBackendEnvVars, u as logger, v as highlighter, w as EnableRLS, x as getIndexes, y as isColorEnabled } from "./local-env-9Qtfn3wR.mjs";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import fs, { existsSync, readFileSync } from "node:fs";
|
|
5
5
|
import path, { basename, delimiter, dirname, extname, isAbsolute, join, posix, relative, resolve } from "node:path";
|
package/dist/{generated-contract-disabled-BEc4d98x.d.ts → generated-contract-disabled-D_-_iJXw.d.ts}
RENAMED
|
@@ -181,10 +181,18 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
|
|
|
181
181
|
};
|
|
182
182
|
}, Promise<any>>;
|
|
183
183
|
deleteMany: convex_server0.RegisteredMutation<"internal", {
|
|
184
|
+
paginationOpts: {
|
|
185
|
+
id?: number;
|
|
186
|
+
endCursor?: string | null;
|
|
187
|
+
maximumRowsRead?: number;
|
|
188
|
+
maximumBytesRead?: number;
|
|
189
|
+
numItems: number;
|
|
190
|
+
cursor: string | null;
|
|
191
|
+
};
|
|
184
192
|
input: {
|
|
185
193
|
where?: {
|
|
194
|
+
operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
186
195
|
connector?: "AND" | "OR" | undefined;
|
|
187
|
-
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
188
196
|
value: string | number | boolean | string[] | number[] | null;
|
|
189
197
|
field: string;
|
|
190
198
|
}[] | undefined;
|
|
@@ -193,14 +201,6 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
|
|
|
193
201
|
where?: any[] | undefined;
|
|
194
202
|
model: string;
|
|
195
203
|
};
|
|
196
|
-
paginationOpts: {
|
|
197
|
-
id?: number;
|
|
198
|
-
endCursor?: string | null;
|
|
199
|
-
maximumRowsRead?: number;
|
|
200
|
-
maximumBytesRead?: number;
|
|
201
|
-
numItems: number;
|
|
202
|
-
cursor: string | null;
|
|
203
|
-
};
|
|
204
204
|
}, Promise<{
|
|
205
205
|
count: number;
|
|
206
206
|
ids: any[];
|
|
@@ -212,8 +212,8 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
|
|
|
212
212
|
deleteOne: convex_server0.RegisteredMutation<"internal", {
|
|
213
213
|
input: {
|
|
214
214
|
where?: {
|
|
215
|
+
operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
215
216
|
connector?: "AND" | "OR" | undefined;
|
|
216
|
-
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
217
217
|
value: string | number | boolean | string[] | number[] | null;
|
|
218
218
|
field: string;
|
|
219
219
|
}[] | undefined;
|
|
@@ -224,21 +224,20 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
|
|
|
224
224
|
};
|
|
225
225
|
}, Promise<Record<string, unknown> | undefined>>;
|
|
226
226
|
findMany: convex_server0.RegisteredQuery<"internal", {
|
|
227
|
+
limit?: number | undefined;
|
|
227
228
|
join?: any;
|
|
228
229
|
where?: {
|
|
229
230
|
mode?: "sensitive" | "insensitive" | undefined;
|
|
231
|
+
operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
230
232
|
connector?: "AND" | "OR" | undefined;
|
|
231
|
-
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
232
233
|
value: string | number | boolean | string[] | number[] | null;
|
|
233
234
|
field: string;
|
|
234
235
|
}[] | undefined;
|
|
235
|
-
limit?: number | undefined;
|
|
236
236
|
offset?: number | undefined;
|
|
237
237
|
sortBy?: {
|
|
238
238
|
field: string;
|
|
239
239
|
direction: "asc" | "desc";
|
|
240
240
|
} | undefined;
|
|
241
|
-
model: string;
|
|
242
241
|
paginationOpts: {
|
|
243
242
|
id?: number;
|
|
244
243
|
endCursor?: string | null;
|
|
@@ -247,47 +246,48 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
|
|
|
247
246
|
numItems: number;
|
|
248
247
|
cursor: string | null;
|
|
249
248
|
};
|
|
249
|
+
model: string;
|
|
250
250
|
}, Promise<PaginationResult<convex_server0.GenericDocument>>>;
|
|
251
251
|
findOne: convex_server0.RegisteredQuery<"internal", {
|
|
252
252
|
join?: any;
|
|
253
|
-
select?: string[] | undefined;
|
|
254
253
|
where?: {
|
|
255
254
|
mode?: "sensitive" | "insensitive" | undefined;
|
|
255
|
+
operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
256
256
|
connector?: "AND" | "OR" | undefined;
|
|
257
|
-
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
258
257
|
value: string | number | boolean | string[] | number[] | null;
|
|
259
258
|
field: string;
|
|
260
259
|
}[] | undefined;
|
|
260
|
+
select?: string[] | undefined;
|
|
261
261
|
model: string;
|
|
262
262
|
}, Promise<convex_server0.GenericDocument | null>>;
|
|
263
263
|
getLatestJwks: convex_server0.RegisteredAction<"internal", {}, Promise<unknown>>;
|
|
264
264
|
rotateKeys: convex_server0.RegisteredAction<"internal", {}, Promise<unknown>>;
|
|
265
265
|
updateMany: convex_server0.RegisteredMutation<"internal", {
|
|
266
|
+
paginationOpts: {
|
|
267
|
+
id?: number;
|
|
268
|
+
endCursor?: string | null;
|
|
269
|
+
maximumRowsRead?: number;
|
|
270
|
+
maximumBytesRead?: number;
|
|
271
|
+
numItems: number;
|
|
272
|
+
cursor: string | null;
|
|
273
|
+
};
|
|
266
274
|
input: {
|
|
267
275
|
where?: {
|
|
276
|
+
operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
268
277
|
connector?: "AND" | "OR" | undefined;
|
|
269
|
-
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
270
278
|
value: string | number | boolean | string[] | number[] | null;
|
|
271
279
|
field: string;
|
|
272
280
|
}[] | undefined;
|
|
273
|
-
model: string;
|
|
274
281
|
update: {
|
|
275
282
|
[x: string]: unknown;
|
|
276
283
|
[x: number]: unknown;
|
|
277
284
|
[x: symbol]: unknown;
|
|
278
285
|
};
|
|
286
|
+
model: string;
|
|
279
287
|
} | {
|
|
280
288
|
where?: any[] | undefined;
|
|
281
|
-
model: string;
|
|
282
289
|
update: any;
|
|
283
|
-
|
|
284
|
-
paginationOpts: {
|
|
285
|
-
id?: number;
|
|
286
|
-
endCursor?: string | null;
|
|
287
|
-
maximumRowsRead?: number;
|
|
288
|
-
maximumBytesRead?: number;
|
|
289
|
-
numItems: number;
|
|
290
|
-
cursor: string | null;
|
|
290
|
+
model: string;
|
|
291
291
|
};
|
|
292
292
|
}, Promise<{
|
|
293
293
|
count: number;
|
|
@@ -300,21 +300,21 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
|
|
|
300
300
|
updateOne: convex_server0.RegisteredMutation<"internal", {
|
|
301
301
|
input: {
|
|
302
302
|
where?: {
|
|
303
|
+
operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
303
304
|
connector?: "AND" | "OR" | undefined;
|
|
304
|
-
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
305
305
|
value: string | number | boolean | string[] | number[] | null;
|
|
306
306
|
field: string;
|
|
307
307
|
}[] | undefined;
|
|
308
|
-
model: string;
|
|
309
308
|
update: {
|
|
310
309
|
[x: string]: unknown;
|
|
311
310
|
[x: number]: unknown;
|
|
312
311
|
[x: symbol]: unknown;
|
|
313
312
|
};
|
|
313
|
+
model: string;
|
|
314
314
|
} | {
|
|
315
315
|
where?: any[] | undefined;
|
|
316
|
-
model: string;
|
|
317
316
|
update: any;
|
|
317
|
+
model: string;
|
|
318
318
|
};
|
|
319
319
|
}, Promise<any>>;
|
|
320
320
|
};
|
|
@@ -473,22 +473,71 @@ export class CRPCError extends Error {
|
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
475
|
|
|
476
|
+
const parseEnvForCodegen = (schema) => {
|
|
477
|
+
if (typeof schema?.safeParse !== "function") {
|
|
478
|
+
return schema.parse(process.env);
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
const result = schema.safeParse(process.env);
|
|
482
|
+
if (result?.success === true) return result.data;
|
|
483
|
+
|
|
484
|
+
const issues = result?.error?.issues;
|
|
485
|
+
if (!Array.isArray(issues) || issues.length === 0) {
|
|
486
|
+
return schema.parse(process.env);
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
const missingFieldIssues = new Map();
|
|
490
|
+
for (const [key, field] of Object.entries(schema.shape)) {
|
|
491
|
+
if (
|
|
492
|
+
process.env[key] !== undefined ||
|
|
493
|
+
typeof field?.safeParse !== "function"
|
|
494
|
+
) {
|
|
495
|
+
continue;
|
|
496
|
+
}
|
|
497
|
+
const fieldResult = field.safeParse(undefined);
|
|
498
|
+
if (
|
|
499
|
+
fieldResult?.success === false &&
|
|
500
|
+
Array.isArray(fieldResult.error?.issues)
|
|
501
|
+
) {
|
|
502
|
+
missingFieldIssues.set(key, fieldResult.error.issues);
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
const isMissingFieldIssue = (issue) => {
|
|
507
|
+
if (!Array.isArray(issue?.path) || issue.path.length === 0) return false;
|
|
508
|
+
const [key, ...path] = issue.path;
|
|
509
|
+
const fieldIssues = missingFieldIssues.get(key);
|
|
510
|
+
return fieldIssues?.some(
|
|
511
|
+
(fieldIssue) =>
|
|
512
|
+
fieldIssue?.code === issue.code &&
|
|
513
|
+
JSON.stringify(fieldIssue.path ?? []) === JSON.stringify(path)
|
|
514
|
+
);
|
|
515
|
+
};
|
|
516
|
+
if (!issues.every(isMissingFieldIssue)) {
|
|
517
|
+
return schema.parse(process.env);
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
const data = {};
|
|
521
|
+
for (const [key, field] of Object.entries(schema.shape)) {
|
|
522
|
+
if (typeof field?.safeParse !== "function") {
|
|
523
|
+
return schema.parse(process.env);
|
|
524
|
+
}
|
|
525
|
+
const fieldResult = field.safeParse(process.env[key]);
|
|
526
|
+
if (fieldResult?.success === true) {
|
|
527
|
+
data[key] = fieldResult.data;
|
|
528
|
+
} else if (!missingFieldIssues.has(key)) {
|
|
529
|
+
return schema.parse(process.env);
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
return data;
|
|
533
|
+
};
|
|
534
|
+
|
|
476
535
|
export const createEnv = ({ schema }) => () => {
|
|
477
536
|
if (typeof schema?.parse !== "function") return process.env;
|
|
478
537
|
if (globalThis.__KITCN_CODEGEN__ !== true || !schema.shape) {
|
|
479
538
|
return schema.parse(process.env);
|
|
480
539
|
}
|
|
481
|
-
|
|
482
|
-
Object.entries(schema.shape).map(([key, zodType]) => {
|
|
483
|
-
const result = zodType?.safeParse?.(undefined);
|
|
484
|
-
if (result?.success) return [key, result.data];
|
|
485
|
-
if (Array.isArray(zodType?.options) && zodType.options.length > 0) {
|
|
486
|
-
return [key, zodType.options[0]];
|
|
487
|
-
}
|
|
488
|
-
return [key, ""];
|
|
489
|
-
})
|
|
490
|
-
);
|
|
491
|
-
return schema.parse({ ...fallback, ...process.env });
|
|
540
|
+
return parseEnvForCodegen(schema);
|
|
492
541
|
};
|
|
493
542
|
export const createHttpRouter = (_app, httpRouter) => httpRouter ?? {};
|
|
494
543
|
export const createCallerFactory = () => () => ({});
|
|
@@ -3911,7 +3960,15 @@ async function generateMeta(sharedDir, options) {
|
|
|
3911
3960
|
};
|
|
3912
3961
|
let sharedJitiInstance;
|
|
3913
3962
|
const getSharedJitiInstance = () => sharedJitiInstance ??= createProjectJiti();
|
|
3914
|
-
const
|
|
3963
|
+
const schemaRuntimeModules = listFilesRecursive(functionsDir).filter((file) => file.endsWith(".ts") && isValidConvexFile(file)).map((file) => file.replace(TS_EXTENSION_RE, ""));
|
|
3964
|
+
const schemaRuntimePlaceholders = ensureGeneratedRuntimePlaceholders(functionsDir, schemaRuntimeModules, resolveModuleRuntimeExportNames(schemaRuntimeModules, normalizedTrimSegments));
|
|
3965
|
+
const schemaMetadata = await (async () => {
|
|
3966
|
+
try {
|
|
3967
|
+
return await withCodegenParseSentinel(() => resolveSchemaMetadataForCodegen(functionsDir, debug, getSharedJitiInstance));
|
|
3968
|
+
} finally {
|
|
3969
|
+
for (const schemaRuntimePlaceholder of schemaRuntimePlaceholders) fs.rmSync(schemaRuntimePlaceholder, { force: true });
|
|
3970
|
+
}
|
|
3971
|
+
})();
|
|
3915
3972
|
const hasOrmSchemaMetadata = schemaMetadata.hasOrmSchema;
|
|
3916
3973
|
const hasRelationsMetadata = schemaMetadata.hasRelations;
|
|
3917
3974
|
const hasRelationsExport = hasNamedExport(path.join(functionsDir, "schema.ts"), "relations");
|
package/dist/orm/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { $n as BinaryExpression, $t as OrmLifecycleOperation, A as DatabaseWithMutations, An as ConvexCheckConfig, Ar as AnyColumn, At as VectorQueryConfig, B as RlsContext, Bn as ConvexTextBuilderInitial, Br as IsUnique, Bt as RelationsBuilderColumnConfig, C as MigrationTableName, Cn as aggregateIndex, Cr as notBetween, Ct as OrderDirection, D as defineMigrationSet, Dn as uniqueIndex, Dt as ReturningResult, E as defineMigration, En as searchIndex, Er as startsWith, Et as ReturningAll, Fn as ConvexUniqueConstraintConfig, Fr as ColumnBuilderWithTableName, Ft as ExtractTablesWithRelations, Gt as defineRelations, H as EdgeMetadata, In as check, Ir as ColumnDataType, It as ManyConfig, Jt as ConvexDeletionConfig, Kt as defineRelationsPart, Ln as foreignKey, Lr as DrizzleEntity, Lt as OneConfig, M as OrmReader$1, Mn as ConvexForeignKeyConfig, Mr as ColumnBuilderBaseConfig, Mt as unsetToken, N as OrmWriter$1, Nn as ConvexUniqueConstraintBuilder, Nr as ColumnBuilderRuntimeConfig, O as detectMigrationDrift, On as vectorIndex, Or as SystemFields, Ot as ReturningSelection, Pn as ConvexUniqueConstraintBuilderOn, Pr as ColumnBuilderTypeConfig, Pt as ExtractTablesFromSchema, Qn as TableName, Qt as OrmLifecycleChange, Rn as unique, Rr as HasDefault, Rt as RelationsBuilder, S as MigrationStep, Sn as ConvexVectorIndexConfig, Sr as not, St as OrderByClause, T as buildMigrationPlan, Tn as rankIndex, Tr as or, Tt as PredicateWhereIndexConfig, U as extractRelationsConfig, Un as Brand, Ut as TableRelationalConfig, V as RlsMode, Vn as text, Vr as NotNull, Wn as Columns, Wt as TablesRelationalConfig, Xn as OrmSchemaRelations, Xt as ConvexTableWithColumns, Yn as OrmSchemaExtensions, Yt as ConvexTable, Zn as OrmSchemaTriggers, Zt as DiscriminatorBuilderConfig, _ as MigrationMigrateOne, _n as ConvexSearchIndexBuilder, _r as isNull, _t as MutationPaginateConfig, an as RlsPolicyConfig, ar as and, at as CountConfig, b as MigrationSet, bn as ConvexVectorIndexBuilder, br as lte, bt as MutationReturning, cn as RlsRole, cr as endsWith, ct as FilterOperators, d as MigrationDefinition, dn as ConvexAggregateIndexBuilder, dr as gt, dt as InferModelFromColumns, en as TableConfig, er as ExpressionVisitor, et as AggregateConfig, f as MigrationDirection, fn as ConvexAggregateIndexBuilderOn, fr as gte, ft as InferSelectModel, g as MigrationManifestEntry, gn as ConvexRankIndexBuilderOn, gr as isNotNull, gt as MutationExecutionMode, h as MigrationDriftIssue, hn as ConvexRankIndexBuilder, hr as isFieldReference, ht as MutationExecuteResult, i as OrmMigrationCapability, in as RlsPolicy, ir as UnaryExpression, it as BuildRelationResult, j as DatabaseWithQuery, jn as ConvexForeignKeyBuilder, jr as ColumnBuilder, jt as VectorSearchProvider, kn as ConvexCheckBuilder, kt as UpdateSet, ln as RlsRoleConfig, lr as eq, lt as GetColumnData, m as MigrationDocContext, mn as ConvexIndexBuilderOn, mr as inArray, mt as MutationExecuteConfig, n as OrmCapabilities, nn as deletion, nr as FilterExpression, nt as AggregateResult, on as RlsPolicyToOption, or as between, ot as CountResult, p as MigrationDoc, pn as ConvexIndexBuilder, pr as ilike, pt as InsertValue, qn as OrmSchemaExtensionTables, qt as ConvexDeletionBuilder, r as OrmCapability, rn as discriminator, rr as LogicalExpression, rt as BuildQueryResult, sn as rlsPolicy, sr as contains, st as DBQueryConfig, t as OrmAggregateCapability, tn as convexTable, tr as FieldReference, tt as AggregateFieldValue, u as MigrationAppliedState, un as rlsRole, ur as fieldRef, ut as InferInsertModel, v as MigrationPlan, vn as ConvexSearchIndexBuilderOn, vr as like, vt as MutationPaginatedResult, w as MigrationWriteMode, wn as index, wr as notInArray, wt as PaginatedResult, x as MigrationStateMap, xn as ConvexVectorIndexBuilderOn, xr as ne, xt as MutationRunMode, y as MigrationRunStatus, yn as ConvexSearchIndexConfig, yr as lt, yt as MutationResult, zn as ConvexTextBuilder, zr as IsPrimaryKey, zt as RelationsBuilderColumnBase } from "../capabilities-DtDfpdcH.js";
|
|
2
|
-
import { $ as OrmClientWithApi$1, A as ConvexDateMode, B as ConvexBytesBuilderInitial, C as ConvexNumberBuilderInitial, D as id, E as ConvexIdBuilderInitial, F as custom, G as ConvexBigIntBuilder, H as ConvexBooleanBuilder, I as json, J as CreateOrmOptions, K as ConvexBigIntBuilderInitial, L as objectOf, M as ConvexCustomBuilder, N as ConvexCustomBuilderInitial, O as ConvexDateBuilder, P as arrayOf, Q as OrmClientBase$1, R as unionOf, S as ConvexNumberBuilder, St as defineTriggers, T as ConvexIdBuilder, U as ConvexBooleanBuilderInitial, V as bytes, W as boolean, X as GenericOrmCtx$1, Y as GenericOrm$1, Z as OrmApiResult, _ as ConvexTimestampMode, _t as OrmBeforeResult, a as requireSchemaRelations, at as ScheduledMutationBatchArgs, b as ConvexTextEnumBuilderInitial, bt as OrmTriggerContext, c as TableConfigResult, ct as scheduledDeleteFactory, d as OrmNotFoundError, et as OrmFunctions, f as ConvexVectorBuilder, g as ConvexTimestampBuilderInitial, gt as defineSchemaExtension, h as ConvexTimestampBuilder, ht as SchemaExtension, i as getSchemaTriggers, it as createOrm, j as date, k as ConvexDateBuilderInitial, l as getTableColumns, m as vector, n as defineSchema, nt as OrmWriterCtx, o as asc, ot as scheduledMutationBatchFactory, p as ConvexVectorBuilderInitial, q as bigint, r as getSchemaRelations, rt as ResolveOrmSchema, s as desc, st as ScheduledDeleteArgs, t as WhereClauseResult, tt as OrmReaderCtx, u as getTableConfig, v as timestamp, vt as OrmTableTriggers, w as integer, x as textEnum, xt as OrmTriggers, y as ConvexTextEnumBuilder, yt as OrmTriggerChange, z as ConvexBytesBuilder } from "../where-clause-compiler-
|
|
2
|
+
import { $ as OrmClientWithApi$1, A as ConvexDateMode, B as ConvexBytesBuilderInitial, C as ConvexNumberBuilderInitial, D as id, E as ConvexIdBuilderInitial, F as custom, G as ConvexBigIntBuilder, H as ConvexBooleanBuilder, I as json, J as CreateOrmOptions, K as ConvexBigIntBuilderInitial, L as objectOf, M as ConvexCustomBuilder, N as ConvexCustomBuilderInitial, O as ConvexDateBuilder, P as arrayOf, Q as OrmClientBase$1, R as unionOf, S as ConvexNumberBuilder, St as defineTriggers, T as ConvexIdBuilder, U as ConvexBooleanBuilderInitial, V as bytes, W as boolean, X as GenericOrmCtx$1, Y as GenericOrm$1, Z as OrmApiResult, _ as ConvexTimestampMode, _t as OrmBeforeResult, a as requireSchemaRelations, at as ScheduledMutationBatchArgs, b as ConvexTextEnumBuilderInitial, bt as OrmTriggerContext, c as TableConfigResult, ct as scheduledDeleteFactory, d as OrmNotFoundError, et as OrmFunctions, f as ConvexVectorBuilder, g as ConvexTimestampBuilderInitial, gt as defineSchemaExtension, h as ConvexTimestampBuilder, ht as SchemaExtension, i as getSchemaTriggers, it as createOrm, j as date, k as ConvexDateBuilderInitial, l as getTableColumns, m as vector, n as defineSchema, nt as OrmWriterCtx, o as asc, ot as scheduledMutationBatchFactory, p as ConvexVectorBuilderInitial, q as bigint, r as getSchemaRelations, rt as ResolveOrmSchema, s as desc, st as ScheduledDeleteArgs, t as WhereClauseResult, tt as OrmReaderCtx, u as getTableConfig, v as timestamp, vt as OrmTableTriggers, w as integer, x as textEnum, xt as OrmTriggers, y as ConvexTextEnumBuilder, yt as OrmTriggerChange, z as ConvexBytesBuilder } from "../where-clause-compiler-CwSrhq51.js";
|
|
3
3
|
import { i as pretendRequired, n as deprecated, r as pretend } from "../validators-wOIjhkfN.js";
|
|
4
4
|
import { a as QueryCtxWithPreferredOrmQueryTable, i as QueryCtxWithOrmQueryTable, n as LookupByIdResultByCtx, o as getByIdWithOrmQueryFallback, r as QueryCtxWithOptionalOrmQueryTable, t as DocByCtx } from "../query-context-DJONf8X5.js";
|
|
5
5
|
import { DefineSchemaOptions, GenericDatabaseReader, GenericDatabaseWriter, GenericSchema, SchemaDefinition } from "convex/server";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { C as MigrationTableName, D as defineMigrationSet, E as defineMigration, O as detectMigrationDrift, S as MigrationStep, T as buildMigrationPlan, _ as MigrationMigrateOne, a as MigrationCancelArgs, b as MigrationSet, c as MigrationStatusArgs, d as MigrationDefinition, f as MigrationDirection, g as MigrationManifestEntry, h as MigrationDriftIssue, l as createMigrationHandlers, m as MigrationDocContext, o as MigrationRunArgs, p as MigrationDoc, s as MigrationRunChunkArgs, u as MigrationAppliedState, v as MigrationPlan, w as MigrationWriteMode, x as MigrationStateMap, y as MigrationRunStatus } from "../../capabilities-DtDfpdcH.js";
|
|
2
|
-
import { Ct as migrationCapability, dt as MIGRATION_STORAGE_TABLE_NAMES, ft as injectMigrationStorageTables, lt as MIGRATION_RUN_TABLE, mt as migrationStorageTables, pt as migrationExtension, ut as MIGRATION_STATE_TABLE } from "../../where-clause-compiler-
|
|
2
|
+
import { Ct as migrationCapability, dt as MIGRATION_STORAGE_TABLE_NAMES, ft as injectMigrationStorageTables, lt as MIGRATION_RUN_TABLE, mt as migrationStorageTables, pt as migrationExtension, ut as MIGRATION_STATE_TABLE } from "../../where-clause-compiler-CwSrhq51.js";
|
|
3
3
|
export { MIGRATION_RUN_TABLE, MIGRATION_STATE_TABLE, MIGRATION_STORAGE_TABLE_NAMES, type MigrationAppliedState, type MigrationCancelArgs, type MigrationDefinition, type MigrationDirection, type MigrationDoc, type MigrationDocContext, type MigrationDriftIssue, type MigrationManifestEntry, type MigrationMigrateOne, type MigrationPlan, type MigrationRunArgs, type MigrationRunChunkArgs, type MigrationRunStatus, type MigrationSet, type MigrationStateMap, type MigrationStatusArgs, type MigrationStep, type MigrationTableName, type MigrationWriteMode, buildMigrationPlan, createMigrationHandlers, defineMigration, defineMigrationSet, detectMigrationDrift, injectMigrationStorageTables, migrationCapability, migrationExtension, migrationStorageTables };
|
package/dist/watcher.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as generateMeta, d as PARSE_SNAPSHOT_SUFFIX, i as resolveConfiguredBackend, n as withLocalCodegenEnv, o as getConvexConfig, r as loadCliConfig, u as logger } from "./local-env-
|
|
2
|
+
import { a as generateMeta, d as PARSE_SNAPSHOT_SUFFIX, i as resolveConfiguredBackend, n as withLocalCodegenEnv, o as getConvexConfig, r as loadCliConfig, u as logger } from "./local-env-9Qtfn3wR.mjs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
5
|
|
|
@@ -102,6 +102,15 @@ declare const migrationStorageTables: {
|
|
|
102
102
|
fieldName: "status";
|
|
103
103
|
};
|
|
104
104
|
};
|
|
105
|
+
direction: ConvexTextBuilderInitial<""> & {
|
|
106
|
+
_: {
|
|
107
|
+
tableName: "migration_state";
|
|
108
|
+
};
|
|
109
|
+
} & {
|
|
110
|
+
_: {
|
|
111
|
+
fieldName: "direction";
|
|
112
|
+
};
|
|
113
|
+
};
|
|
105
114
|
cursor: ConvexTextBuilderInitial<""> & {
|
|
106
115
|
_: {
|
|
107
116
|
tableName: "migration_state";
|
|
@@ -111,13 +120,17 @@ declare const migrationStorageTables: {
|
|
|
111
120
|
fieldName: "cursor";
|
|
112
121
|
};
|
|
113
122
|
};
|
|
114
|
-
|
|
123
|
+
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
124
|
+
_: {
|
|
125
|
+
notNull: true;
|
|
126
|
+
};
|
|
127
|
+
} & {
|
|
115
128
|
_: {
|
|
116
129
|
tableName: "migration_state";
|
|
117
130
|
};
|
|
118
131
|
} & {
|
|
119
132
|
_: {
|
|
120
|
-
fieldName: "
|
|
133
|
+
fieldName: "updatedAt";
|
|
121
134
|
};
|
|
122
135
|
};
|
|
123
136
|
migrationId: ConvexTextBuilderInitial<""> & {
|
|
@@ -190,19 +203,6 @@ declare const migrationStorageTables: {
|
|
|
190
203
|
fieldName: "startedAt";
|
|
191
204
|
};
|
|
192
205
|
};
|
|
193
|
-
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
194
|
-
_: {
|
|
195
|
-
notNull: true;
|
|
196
|
-
};
|
|
197
|
-
} & {
|
|
198
|
-
_: {
|
|
199
|
-
tableName: "migration_state";
|
|
200
|
-
};
|
|
201
|
-
} & {
|
|
202
|
-
_: {
|
|
203
|
-
fieldName: "updatedAt";
|
|
204
|
-
};
|
|
205
|
-
};
|
|
206
206
|
completedAt: ConvexNumberBuilderInitial<""> & {
|
|
207
207
|
_: {
|
|
208
208
|
tableName: "migration_state";
|
|
@@ -269,7 +269,7 @@ declare const migrationStorageTables: {
|
|
|
269
269
|
fieldName: "direction";
|
|
270
270
|
};
|
|
271
271
|
};
|
|
272
|
-
|
|
272
|
+
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
273
273
|
_: {
|
|
274
274
|
notNull: true;
|
|
275
275
|
};
|
|
@@ -279,10 +279,10 @@ declare const migrationStorageTables: {
|
|
|
279
279
|
};
|
|
280
280
|
} & {
|
|
281
281
|
_: {
|
|
282
|
-
fieldName: "
|
|
282
|
+
fieldName: "updatedAt";
|
|
283
283
|
};
|
|
284
284
|
};
|
|
285
|
-
|
|
285
|
+
runId: ConvexTextBuilderInitial<""> & {
|
|
286
286
|
_: {
|
|
287
287
|
notNull: true;
|
|
288
288
|
};
|
|
@@ -292,10 +292,10 @@ declare const migrationStorageTables: {
|
|
|
292
292
|
};
|
|
293
293
|
} & {
|
|
294
294
|
_: {
|
|
295
|
-
fieldName: "
|
|
295
|
+
fieldName: "runId";
|
|
296
296
|
};
|
|
297
297
|
};
|
|
298
|
-
|
|
298
|
+
startedAt: ConvexNumberBuilderInitial<""> & {
|
|
299
299
|
_: {
|
|
300
300
|
notNull: true;
|
|
301
301
|
};
|
|
@@ -305,7 +305,7 @@ declare const migrationStorageTables: {
|
|
|
305
305
|
};
|
|
306
306
|
} & {
|
|
307
307
|
_: {
|
|
308
|
-
fieldName: "
|
|
308
|
+
fieldName: "startedAt";
|
|
309
309
|
};
|
|
310
310
|
};
|
|
311
311
|
completedAt: ConvexNumberBuilderInitial<""> & {
|
|
@@ -1008,7 +1008,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1008
1008
|
readonly aggregate_bucket: ConvexTableWithColumns<{
|
|
1009
1009
|
name: "aggregate_bucket";
|
|
1010
1010
|
columns: {
|
|
1011
|
-
|
|
1011
|
+
count: ConvexNumberBuilderInitial<""> & {
|
|
1012
1012
|
_: {
|
|
1013
1013
|
notNull: true;
|
|
1014
1014
|
};
|
|
@@ -1018,10 +1018,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1018
1018
|
};
|
|
1019
1019
|
} & {
|
|
1020
1020
|
_: {
|
|
1021
|
-
fieldName: "
|
|
1021
|
+
fieldName: "count";
|
|
1022
1022
|
};
|
|
1023
1023
|
};
|
|
1024
|
-
|
|
1024
|
+
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
1025
1025
|
_: {
|
|
1026
1026
|
notNull: true;
|
|
1027
1027
|
};
|
|
@@ -1031,7 +1031,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1031
1031
|
};
|
|
1032
1032
|
} & {
|
|
1033
1033
|
_: {
|
|
1034
|
-
fieldName: "
|
|
1034
|
+
fieldName: "updatedAt";
|
|
1035
1035
|
};
|
|
1036
1036
|
};
|
|
1037
1037
|
indexName: ConvexTextBuilderInitial<""> & {
|
|
@@ -1323,11 +1323,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1323
1323
|
readonly aggregate_extrema: ConvexTableWithColumns<{
|
|
1324
1324
|
name: "aggregate_extrema";
|
|
1325
1325
|
columns: {
|
|
1326
|
-
|
|
1327
|
-
_: {
|
|
1328
|
-
$type: convex_values0.Value;
|
|
1329
|
-
};
|
|
1330
|
-
} & {
|
|
1326
|
+
count: ConvexNumberBuilderInitial<""> & {
|
|
1331
1327
|
_: {
|
|
1332
1328
|
notNull: true;
|
|
1333
1329
|
};
|
|
@@ -1337,10 +1333,14 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1337
1333
|
};
|
|
1338
1334
|
} & {
|
|
1339
1335
|
_: {
|
|
1340
|
-
fieldName: "
|
|
1336
|
+
fieldName: "count";
|
|
1341
1337
|
};
|
|
1342
1338
|
};
|
|
1343
|
-
|
|
1339
|
+
value: ConvexCustomBuilderInitial<"", convex_values0.VAny<any, "required", string>> & {
|
|
1340
|
+
_: {
|
|
1341
|
+
$type: convex_values0.Value;
|
|
1342
|
+
};
|
|
1343
|
+
} & {
|
|
1344
1344
|
_: {
|
|
1345
1345
|
notNull: true;
|
|
1346
1346
|
};
|
|
@@ -1350,10 +1350,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1350
1350
|
};
|
|
1351
1351
|
} & {
|
|
1352
1352
|
_: {
|
|
1353
|
-
fieldName: "
|
|
1353
|
+
fieldName: "value";
|
|
1354
1354
|
};
|
|
1355
1355
|
};
|
|
1356
|
-
|
|
1356
|
+
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
1357
1357
|
_: {
|
|
1358
1358
|
notNull: true;
|
|
1359
1359
|
};
|
|
@@ -1363,7 +1363,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1363
1363
|
};
|
|
1364
1364
|
} & {
|
|
1365
1365
|
_: {
|
|
1366
|
-
fieldName: "
|
|
1366
|
+
fieldName: "updatedAt";
|
|
1367
1367
|
};
|
|
1368
1368
|
};
|
|
1369
1369
|
indexName: ConvexTextBuilderInitial<""> & {
|
|
@@ -1611,7 +1611,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1611
1611
|
fieldName: "cursor";
|
|
1612
1612
|
};
|
|
1613
1613
|
};
|
|
1614
|
-
|
|
1614
|
+
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
1615
1615
|
_: {
|
|
1616
1616
|
notNull: true;
|
|
1617
1617
|
};
|
|
@@ -1621,10 +1621,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1621
1621
|
};
|
|
1622
1622
|
} & {
|
|
1623
1623
|
_: {
|
|
1624
|
-
fieldName: "
|
|
1624
|
+
fieldName: "updatedAt";
|
|
1625
1625
|
};
|
|
1626
1626
|
};
|
|
1627
|
-
|
|
1627
|
+
processed: ConvexNumberBuilderInitial<""> & {
|
|
1628
1628
|
_: {
|
|
1629
1629
|
notNull: true;
|
|
1630
1630
|
};
|
|
@@ -1634,10 +1634,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1634
1634
|
};
|
|
1635
1635
|
} & {
|
|
1636
1636
|
_: {
|
|
1637
|
-
fieldName: "
|
|
1637
|
+
fieldName: "processed";
|
|
1638
1638
|
};
|
|
1639
1639
|
};
|
|
1640
|
-
|
|
1640
|
+
startedAt: ConvexNumberBuilderInitial<""> & {
|
|
1641
1641
|
_: {
|
|
1642
1642
|
notNull: true;
|
|
1643
1643
|
};
|
|
@@ -1647,7 +1647,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1647
1647
|
};
|
|
1648
1648
|
} & {
|
|
1649
1649
|
_: {
|
|
1650
|
-
fieldName: "
|
|
1650
|
+
fieldName: "startedAt";
|
|
1651
1651
|
};
|
|
1652
1652
|
};
|
|
1653
1653
|
completedAt: ConvexNumberBuilderInitial<""> & {
|
|
@@ -1744,6 +1744,15 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1744
1744
|
fieldName: "status";
|
|
1745
1745
|
};
|
|
1746
1746
|
};
|
|
1747
|
+
direction: ConvexTextBuilderInitial<""> & {
|
|
1748
|
+
_: {
|
|
1749
|
+
tableName: "migration_state";
|
|
1750
|
+
};
|
|
1751
|
+
} & {
|
|
1752
|
+
_: {
|
|
1753
|
+
fieldName: "direction";
|
|
1754
|
+
};
|
|
1755
|
+
};
|
|
1747
1756
|
cursor: ConvexTextBuilderInitial<""> & {
|
|
1748
1757
|
_: {
|
|
1749
1758
|
tableName: "migration_state";
|
|
@@ -1753,13 +1762,17 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1753
1762
|
fieldName: "cursor";
|
|
1754
1763
|
};
|
|
1755
1764
|
};
|
|
1756
|
-
|
|
1765
|
+
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
1766
|
+
_: {
|
|
1767
|
+
notNull: true;
|
|
1768
|
+
};
|
|
1769
|
+
} & {
|
|
1757
1770
|
_: {
|
|
1758
1771
|
tableName: "migration_state";
|
|
1759
1772
|
};
|
|
1760
1773
|
} & {
|
|
1761
1774
|
_: {
|
|
1762
|
-
fieldName: "
|
|
1775
|
+
fieldName: "updatedAt";
|
|
1763
1776
|
};
|
|
1764
1777
|
};
|
|
1765
1778
|
migrationId: ConvexTextBuilderInitial<""> & {
|
|
@@ -1832,19 +1845,6 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1832
1845
|
fieldName: "startedAt";
|
|
1833
1846
|
};
|
|
1834
1847
|
};
|
|
1835
|
-
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
1836
|
-
_: {
|
|
1837
|
-
notNull: true;
|
|
1838
|
-
};
|
|
1839
|
-
} & {
|
|
1840
|
-
_: {
|
|
1841
|
-
tableName: "migration_state";
|
|
1842
|
-
};
|
|
1843
|
-
} & {
|
|
1844
|
-
_: {
|
|
1845
|
-
fieldName: "updatedAt";
|
|
1846
|
-
};
|
|
1847
|
-
};
|
|
1848
1848
|
completedAt: ConvexNumberBuilderInitial<""> & {
|
|
1849
1849
|
_: {
|
|
1850
1850
|
tableName: "migration_state";
|
|
@@ -1911,7 +1911,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1911
1911
|
fieldName: "direction";
|
|
1912
1912
|
};
|
|
1913
1913
|
};
|
|
1914
|
-
|
|
1914
|
+
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
1915
1915
|
_: {
|
|
1916
1916
|
notNull: true;
|
|
1917
1917
|
};
|
|
@@ -1921,10 +1921,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1921
1921
|
};
|
|
1922
1922
|
} & {
|
|
1923
1923
|
_: {
|
|
1924
|
-
fieldName: "
|
|
1924
|
+
fieldName: "updatedAt";
|
|
1925
1925
|
};
|
|
1926
1926
|
};
|
|
1927
|
-
|
|
1927
|
+
runId: ConvexTextBuilderInitial<""> & {
|
|
1928
1928
|
_: {
|
|
1929
1929
|
notNull: true;
|
|
1930
1930
|
};
|
|
@@ -1934,10 +1934,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1934
1934
|
};
|
|
1935
1935
|
} & {
|
|
1936
1936
|
_: {
|
|
1937
|
-
fieldName: "
|
|
1937
|
+
fieldName: "runId";
|
|
1938
1938
|
};
|
|
1939
1939
|
};
|
|
1940
|
-
|
|
1940
|
+
startedAt: ConvexNumberBuilderInitial<""> & {
|
|
1941
1941
|
_: {
|
|
1942
1942
|
notNull: true;
|
|
1943
1943
|
};
|
|
@@ -1947,7 +1947,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1947
1947
|
};
|
|
1948
1948
|
} & {
|
|
1949
1949
|
_: {
|
|
1950
|
-
fieldName: "
|
|
1950
|
+
fieldName: "startedAt";
|
|
1951
1951
|
};
|
|
1952
1952
|
};
|
|
1953
1953
|
completedAt: ConvexNumberBuilderInitial<""> & {
|