better-convex 0.10.0 → 0.10.2
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/dist/aggregate/index.d.ts +1 -4
- package/dist/auth/index.d.ts +58 -59
- package/dist/auth/nextjs/index.d.ts +0 -1
- package/dist/cli.mjs +1 -1
- package/dist/{codegen-CMQIKrqh.mjs → codegen-CJiil63j.mjs} +122 -46
- package/dist/orm/index.d.ts +1 -1
- package/dist/plugins/index.d.ts +4 -4
- package/dist/plugins/ratelimit/index.d.ts +1 -4
- package/dist/server/index.d.ts +0 -1
- package/dist/watcher.mjs +47 -9
- package/dist/{where-clause-compiler-DjFwXrQn.d.ts → where-clause-compiler-BCECnxsG.d.ts} +8 -11
- package/package.json +1 -1
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import { Jn as ConvexTextBuilderInitial, Ot as ConvexCustomBuilderInitial, in as ConvexTableWithColumns, vt as ConvexNumberBuilderInitial, xt as ConvexIdBuilderInitial } from "../where-clause-compiler-DjFwXrQn.js";
|
|
3
|
-
import "../query-context-ji7By8u0.js";
|
|
4
|
-
import "../orm/index.js";
|
|
1
|
+
import { Dt as ConvexCustomBuilderInitial, _t as ConvexNumberBuilderInitial, bt as ConvexIdBuilderInitial, qn as ConvexTextBuilderInitial, rn as ConvexTableWithColumns } from "../where-clause-compiler-BCECnxsG.js";
|
|
5
2
|
import * as convex_values0 from "convex/values";
|
|
6
3
|
import { GenericId, Infer, Value } from "convex/values";
|
|
7
4
|
import { DocumentByName, GenericDataModel, GenericDatabaseReader, GenericDatabaseWriter, TableNamesInDataModel } from "convex/server";
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import "../validators-BcQFm1oY.js";
|
|
2
1
|
import { a as QueryCtxWithPreferredOrmQueryTable, n as LookupByIdResultByCtx, t as DocByCtx } from "../query-context-ji7By8u0.js";
|
|
3
2
|
import { t as GetAuth } from "../types-CM67ko7K.js";
|
|
4
3
|
import { A as GenericCtx } from "../procedure-caller-kZJx_hmP.js";
|
|
@@ -183,13 +182,13 @@ type AdapterPaginationOptions = PaginationOptions & {
|
|
|
183
182
|
};
|
|
184
183
|
declare const adapterWhereValidator: convex_values0.VObject<{
|
|
185
184
|
connector?: "AND" | "OR" | undefined;
|
|
186
|
-
operator?: "
|
|
185
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
187
186
|
value: string | number | boolean | string[] | number[] | null;
|
|
188
187
|
field: string;
|
|
189
188
|
}, {
|
|
190
189
|
connector: convex_values0.VUnion<"AND" | "OR" | undefined, [convex_values0.VLiteral<"AND", "required">, convex_values0.VLiteral<"OR", "required">], "optional", never>;
|
|
191
190
|
field: convex_values0.VString<string, "required">;
|
|
192
|
-
operator: convex_values0.VUnion<"
|
|
191
|
+
operator: convex_values0.VUnion<"lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "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>;
|
|
193
192
|
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>;
|
|
194
193
|
}, "required", "value" | "connector" | "field" | "operator">;
|
|
195
194
|
declare const adapterArgsValidator: convex_values0.VObject<{
|
|
@@ -197,12 +196,12 @@ declare const adapterArgsValidator: convex_values0.VObject<{
|
|
|
197
196
|
select?: string[] | undefined;
|
|
198
197
|
offset?: number | undefined;
|
|
199
198
|
sortBy?: {
|
|
200
|
-
field: string;
|
|
201
199
|
direction: "asc" | "desc";
|
|
200
|
+
field: string;
|
|
202
201
|
} | undefined;
|
|
203
202
|
where?: {
|
|
204
203
|
connector?: "AND" | "OR" | undefined;
|
|
205
|
-
operator?: "
|
|
204
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
206
205
|
value: string | number | boolean | string[] | number[] | null;
|
|
207
206
|
field: string;
|
|
208
207
|
}[] | undefined;
|
|
@@ -213,29 +212,29 @@ declare const adapterArgsValidator: convex_values0.VObject<{
|
|
|
213
212
|
offset: convex_values0.VFloat64<number | undefined, "optional">;
|
|
214
213
|
select: convex_values0.VArray<string[] | undefined, convex_values0.VString<string, "required">, "optional">;
|
|
215
214
|
sortBy: convex_values0.VObject<{
|
|
216
|
-
field: string;
|
|
217
215
|
direction: "asc" | "desc";
|
|
216
|
+
field: string;
|
|
218
217
|
} | undefined, {
|
|
219
218
|
direction: convex_values0.VUnion<"asc" | "desc", [convex_values0.VLiteral<"asc", "required">, convex_values0.VLiteral<"desc", "required">], "required", never>;
|
|
220
219
|
field: convex_values0.VString<string, "required">;
|
|
221
|
-
}, "optional", "
|
|
220
|
+
}, "optional", "direction" | "field">;
|
|
222
221
|
where: convex_values0.VArray<{
|
|
223
222
|
connector?: "AND" | "OR" | undefined;
|
|
224
|
-
operator?: "
|
|
223
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
225
224
|
value: string | number | boolean | string[] | number[] | null;
|
|
226
225
|
field: string;
|
|
227
226
|
}[] | undefined, convex_values0.VObject<{
|
|
228
227
|
connector?: "AND" | "OR" | undefined;
|
|
229
|
-
operator?: "
|
|
228
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
230
229
|
value: string | number | boolean | string[] | number[] | null;
|
|
231
230
|
field: string;
|
|
232
231
|
}, {
|
|
233
232
|
connector: convex_values0.VUnion<"AND" | "OR" | undefined, [convex_values0.VLiteral<"AND", "required">, convex_values0.VLiteral<"OR", "required">], "optional", never>;
|
|
234
233
|
field: convex_values0.VString<string, "required">;
|
|
235
|
-
operator: convex_values0.VUnion<"
|
|
234
|
+
operator: convex_values0.VUnion<"lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "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>;
|
|
236
235
|
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>;
|
|
237
236
|
}, "required", "value" | "connector" | "field" | "operator">, "optional">;
|
|
238
|
-
}, "required", "limit" | "model" | "select" | "offset" | "sortBy" | "where" | "sortBy.
|
|
237
|
+
}, "required", "limit" | "model" | "select" | "offset" | "sortBy" | "where" | "sortBy.direction" | "sortBy.field">;
|
|
239
238
|
declare const hasUniqueFields: (betterAuthSchema: BetterAuthDBSchema, model: string, input: Record<string, any>) => boolean;
|
|
240
239
|
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>;
|
|
241
240
|
declare const selectFields: <T extends TableNamesInDataModel<GenericDataModel>, D extends DocumentByName<GenericDataModel, T>>(doc: D | null, select?: string[]) => Promise<D | null>;
|
|
@@ -360,10 +359,18 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
|
|
|
360
359
|
};
|
|
361
360
|
}, Promise<any>>;
|
|
362
361
|
deleteMany: convex_server0.RegisteredMutation<"internal", {
|
|
362
|
+
paginationOpts: {
|
|
363
|
+
id?: number;
|
|
364
|
+
endCursor?: string | null;
|
|
365
|
+
maximumRowsRead?: number;
|
|
366
|
+
maximumBytesRead?: number;
|
|
367
|
+
numItems: number;
|
|
368
|
+
cursor: string | null;
|
|
369
|
+
};
|
|
363
370
|
input: {
|
|
364
371
|
where?: {
|
|
365
372
|
connector?: "AND" | "OR" | undefined;
|
|
366
|
-
operator?: "
|
|
373
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
367
374
|
value: string | number | boolean | string[] | number[] | null;
|
|
368
375
|
field: string;
|
|
369
376
|
}[] | undefined;
|
|
@@ -372,14 +379,6 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
|
|
|
372
379
|
where?: any[] | undefined;
|
|
373
380
|
model: string;
|
|
374
381
|
};
|
|
375
|
-
paginationOpts: {
|
|
376
|
-
id?: number;
|
|
377
|
-
endCursor?: string | null;
|
|
378
|
-
maximumRowsRead?: number;
|
|
379
|
-
maximumBytesRead?: number;
|
|
380
|
-
numItems: number;
|
|
381
|
-
cursor: string | null;
|
|
382
|
-
};
|
|
383
382
|
}, Promise<{
|
|
384
383
|
count: number;
|
|
385
384
|
ids: any[];
|
|
@@ -392,7 +391,7 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
|
|
|
392
391
|
input: {
|
|
393
392
|
where?: {
|
|
394
393
|
connector?: "AND" | "OR" | undefined;
|
|
395
|
-
operator?: "
|
|
394
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
396
395
|
value: string | number | boolean | string[] | number[] | null;
|
|
397
396
|
field: string;
|
|
398
397
|
}[] | undefined;
|
|
@@ -403,16 +402,16 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
|
|
|
403
402
|
};
|
|
404
403
|
}, Promise<Record<string, unknown> | undefined>>;
|
|
405
404
|
findMany: convex_server0.RegisteredQuery<"internal", {
|
|
406
|
-
limit?: number | undefined;
|
|
407
405
|
join?: any;
|
|
406
|
+
limit?: number | undefined;
|
|
408
407
|
offset?: number | undefined;
|
|
409
408
|
sortBy?: {
|
|
410
|
-
field: string;
|
|
411
409
|
direction: "asc" | "desc";
|
|
410
|
+
field: string;
|
|
412
411
|
} | undefined;
|
|
413
412
|
where?: {
|
|
414
413
|
connector?: "AND" | "OR" | undefined;
|
|
415
|
-
operator?: "
|
|
414
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
416
415
|
value: string | number | boolean | string[] | number[] | null;
|
|
417
416
|
field: string;
|
|
418
417
|
}[] | undefined;
|
|
@@ -431,7 +430,7 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
|
|
|
431
430
|
select?: string[] | undefined;
|
|
432
431
|
where?: {
|
|
433
432
|
connector?: "AND" | "OR" | undefined;
|
|
434
|
-
operator?: "
|
|
433
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
435
434
|
value: string | number | boolean | string[] | number[] | null;
|
|
436
435
|
field: string;
|
|
437
436
|
}[] | undefined;
|
|
@@ -440,10 +439,18 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
|
|
|
440
439
|
getLatestJwks: convex_server0.RegisteredAction<"internal", {}, Promise<unknown>>;
|
|
441
440
|
rotateKeys: convex_server0.RegisteredAction<"internal", {}, Promise<unknown>>;
|
|
442
441
|
updateMany: convex_server0.RegisteredMutation<"internal", {
|
|
442
|
+
paginationOpts: {
|
|
443
|
+
id?: number;
|
|
444
|
+
endCursor?: string | null;
|
|
445
|
+
maximumRowsRead?: number;
|
|
446
|
+
maximumBytesRead?: number;
|
|
447
|
+
numItems: number;
|
|
448
|
+
cursor: string | null;
|
|
449
|
+
};
|
|
443
450
|
input: {
|
|
444
451
|
where?: {
|
|
445
452
|
connector?: "AND" | "OR" | undefined;
|
|
446
|
-
operator?: "
|
|
453
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
447
454
|
value: string | number | boolean | string[] | number[] | null;
|
|
448
455
|
field: string;
|
|
449
456
|
}[] | undefined;
|
|
@@ -458,14 +465,6 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
|
|
|
458
465
|
update: any;
|
|
459
466
|
model: string;
|
|
460
467
|
};
|
|
461
|
-
paginationOpts: {
|
|
462
|
-
id?: number;
|
|
463
|
-
endCursor?: string | null;
|
|
464
|
-
maximumRowsRead?: number;
|
|
465
|
-
maximumBytesRead?: number;
|
|
466
|
-
numItems: number;
|
|
467
|
-
cursor: string | null;
|
|
468
|
-
};
|
|
469
468
|
}, Promise<{
|
|
470
469
|
count: number;
|
|
471
470
|
ids: any[];
|
|
@@ -478,7 +477,7 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
|
|
|
478
477
|
input: {
|
|
479
478
|
where?: {
|
|
480
479
|
connector?: "AND" | "OR" | undefined;
|
|
481
|
-
operator?: "
|
|
480
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
482
481
|
value: string | number | boolean | string[] | number[] | null;
|
|
483
482
|
field: string;
|
|
484
483
|
}[] | undefined;
|
|
@@ -19156,10 +19155,18 @@ declare const createAuthRuntime: <DataModel extends GenericDataModel, Schema ext
|
|
|
19156
19155
|
};
|
|
19157
19156
|
}, Promise<any>>;
|
|
19158
19157
|
deleteMany: convex_server0.RegisteredMutation<"internal", {
|
|
19158
|
+
paginationOpts: {
|
|
19159
|
+
id?: number;
|
|
19160
|
+
endCursor?: string | null;
|
|
19161
|
+
maximumRowsRead?: number;
|
|
19162
|
+
maximumBytesRead?: number;
|
|
19163
|
+
numItems: number;
|
|
19164
|
+
cursor: string | null;
|
|
19165
|
+
};
|
|
19159
19166
|
input: {
|
|
19160
19167
|
where?: {
|
|
19161
19168
|
connector?: "AND" | "OR" | undefined;
|
|
19162
|
-
operator?: "
|
|
19169
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
19163
19170
|
value: string | number | boolean | string[] | number[] | null;
|
|
19164
19171
|
field: string;
|
|
19165
19172
|
}[] | undefined;
|
|
@@ -19168,14 +19175,6 @@ declare const createAuthRuntime: <DataModel extends GenericDataModel, Schema ext
|
|
|
19168
19175
|
where?: any[] | undefined;
|
|
19169
19176
|
model: string;
|
|
19170
19177
|
};
|
|
19171
|
-
paginationOpts: {
|
|
19172
|
-
id?: number;
|
|
19173
|
-
endCursor?: string | null;
|
|
19174
|
-
maximumRowsRead?: number;
|
|
19175
|
-
maximumBytesRead?: number;
|
|
19176
|
-
numItems: number;
|
|
19177
|
-
cursor: string | null;
|
|
19178
|
-
};
|
|
19179
19178
|
}, Promise<{
|
|
19180
19179
|
count: number;
|
|
19181
19180
|
ids: any[];
|
|
@@ -19188,7 +19187,7 @@ declare const createAuthRuntime: <DataModel extends GenericDataModel, Schema ext
|
|
|
19188
19187
|
input: {
|
|
19189
19188
|
where?: {
|
|
19190
19189
|
connector?: "AND" | "OR" | undefined;
|
|
19191
|
-
operator?: "
|
|
19190
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
19192
19191
|
value: string | number | boolean | string[] | number[] | null;
|
|
19193
19192
|
field: string;
|
|
19194
19193
|
}[] | undefined;
|
|
@@ -19199,16 +19198,16 @@ declare const createAuthRuntime: <DataModel extends GenericDataModel, Schema ext
|
|
|
19199
19198
|
};
|
|
19200
19199
|
}, Promise<Record<string, unknown> | undefined>>;
|
|
19201
19200
|
findMany: convex_server0.RegisteredQuery<"internal", {
|
|
19202
|
-
limit?: number | undefined;
|
|
19203
19201
|
join?: any;
|
|
19202
|
+
limit?: number | undefined;
|
|
19204
19203
|
offset?: number | undefined;
|
|
19205
19204
|
sortBy?: {
|
|
19206
|
-
field: string;
|
|
19207
19205
|
direction: "asc" | "desc";
|
|
19206
|
+
field: string;
|
|
19208
19207
|
} | undefined;
|
|
19209
19208
|
where?: {
|
|
19210
19209
|
connector?: "AND" | "OR" | undefined;
|
|
19211
|
-
operator?: "
|
|
19210
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
19212
19211
|
value: string | number | boolean | string[] | number[] | null;
|
|
19213
19212
|
field: string;
|
|
19214
19213
|
}[] | undefined;
|
|
@@ -19227,7 +19226,7 @@ declare const createAuthRuntime: <DataModel extends GenericDataModel, Schema ext
|
|
|
19227
19226
|
select?: string[] | undefined;
|
|
19228
19227
|
where?: {
|
|
19229
19228
|
connector?: "AND" | "OR" | undefined;
|
|
19230
|
-
operator?: "
|
|
19229
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
19231
19230
|
value: string | number | boolean | string[] | number[] | null;
|
|
19232
19231
|
field: string;
|
|
19233
19232
|
}[] | undefined;
|
|
@@ -19236,10 +19235,18 @@ declare const createAuthRuntime: <DataModel extends GenericDataModel, Schema ext
|
|
|
19236
19235
|
getLatestJwks: convex_server0.RegisteredAction<"internal", {}, Promise<unknown>>;
|
|
19237
19236
|
rotateKeys: convex_server0.RegisteredAction<"internal", {}, Promise<unknown>>;
|
|
19238
19237
|
updateMany: convex_server0.RegisteredMutation<"internal", {
|
|
19238
|
+
paginationOpts: {
|
|
19239
|
+
id?: number;
|
|
19240
|
+
endCursor?: string | null;
|
|
19241
|
+
maximumRowsRead?: number;
|
|
19242
|
+
maximumBytesRead?: number;
|
|
19243
|
+
numItems: number;
|
|
19244
|
+
cursor: string | null;
|
|
19245
|
+
};
|
|
19239
19246
|
input: {
|
|
19240
19247
|
where?: {
|
|
19241
19248
|
connector?: "AND" | "OR" | undefined;
|
|
19242
|
-
operator?: "
|
|
19249
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
19243
19250
|
value: string | number | boolean | string[] | number[] | null;
|
|
19244
19251
|
field: string;
|
|
19245
19252
|
}[] | undefined;
|
|
@@ -19254,14 +19261,6 @@ declare const createAuthRuntime: <DataModel extends GenericDataModel, Schema ext
|
|
|
19254
19261
|
update: any;
|
|
19255
19262
|
model: string;
|
|
19256
19263
|
};
|
|
19257
|
-
paginationOpts: {
|
|
19258
|
-
id?: number;
|
|
19259
|
-
endCursor?: string | null;
|
|
19260
|
-
maximumRowsRead?: number;
|
|
19261
|
-
maximumBytesRead?: number;
|
|
19262
|
-
numItems: number;
|
|
19263
|
-
cursor: string | null;
|
|
19264
|
-
};
|
|
19265
19264
|
}, Promise<{
|
|
19266
19265
|
count: number;
|
|
19267
19266
|
ids: any[];
|
|
@@ -19274,7 +19273,7 @@ declare const createAuthRuntime: <DataModel extends GenericDataModel, Schema ext
|
|
|
19274
19273
|
input: {
|
|
19275
19274
|
where?: {
|
|
19276
19275
|
connector?: "AND" | "OR" | undefined;
|
|
19277
|
-
operator?: "
|
|
19276
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
19278
19277
|
value: string | number | boolean | string[] | number[] | null;
|
|
19279
19278
|
field: string;
|
|
19280
19279
|
}[] | undefined;
|
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { n as getConvexConfig, t as generateMeta } from "./codegen-
|
|
2
|
+
import { n as getConvexConfig, t as generateMeta } from "./codegen-CJiil63j.mjs";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
5
5
|
import fs from "node:fs";
|
|
@@ -583,72 +583,148 @@ function emitGeneratedModuleRuntimeFile(outputFile, functionsDir, moduleName, pr
|
|
|
583
583
|
const handlerRegistryLines = hasHandlerRegistry ? emitProcedureRegistryEntries(handlerEntries, outputFile, functionsDir, moduleName) : [];
|
|
584
584
|
const handlerRegistryBody = handlerRegistryLines.length > 0 ? `\n${handlerRegistryLines.join("\n")}\n` : "\n";
|
|
585
585
|
const allEntriesAreCrpc = callerEntries.length > 0 && callerEntries.length === handlerEntries.length;
|
|
586
|
-
const
|
|
587
|
-
const
|
|
588
|
-
|
|
586
|
+
const handlerRegistryDeclaration = hasHandlerRegistry ? allEntriesAreCrpc ? "\n const handlerRegistry = procedureRegistry;\n" : `\n const handlerRegistry = {${handlerRegistryBody}} as const;\n` : "";
|
|
587
|
+
const handlerTypeDeclarations = hasHandlerRegistry ? `
|
|
588
|
+
type ProcedureHandlerContext = QueryCtx | MutationCtx;
|
|
589
|
+
type GeneratedProcedureHandler<
|
|
590
|
+
TCtx extends ProcedureHandlerContext = ProcedureHandlerContext,
|
|
591
|
+
> = TCtx extends MutationCtx
|
|
592
|
+
? ProcedureCallerFromRegistry<ProcedureHandlerRegistry, 'mutation'>
|
|
593
|
+
: ProcedureCallerFromRegistry<ProcedureHandlerRegistry, 'query'>;
|
|
594
|
+
` : "";
|
|
595
|
+
const handlerFactoryHelpers = hasHandlerRegistry ? `
|
|
596
|
+
function createHandlerFromRegistryFactory() {
|
|
597
|
+
const { createGenericHandlerFactory } =
|
|
598
|
+
(require('better-convex/server') as RuntimeServerModule);
|
|
599
|
+
const { handlerRegistry } = buildProcedureRegistry();
|
|
600
|
+
return createGenericHandlerFactory<
|
|
601
|
+
QueryCtx,
|
|
602
|
+
MutationCtx,
|
|
603
|
+
ProcedureHandlerRegistry
|
|
604
|
+
>(handlerRegistry);
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
type HandlerFactory = ReturnType<typeof createHandlerFromRegistryFactory>;
|
|
608
|
+
|
|
609
|
+
let cachedCreateHandlerFromRegistry: HandlerFactory | undefined;
|
|
610
|
+
|
|
611
|
+
function getCreateHandlerFromRegistry(): HandlerFactory {
|
|
612
|
+
if (cachedCreateHandlerFromRegistry) {
|
|
613
|
+
return cachedCreateHandlerFromRegistry;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
const generatedHandlerFactory = createHandlerFromRegistryFactory();
|
|
617
|
+
cachedCreateHandlerFromRegistry = generatedHandlerFactory;
|
|
618
|
+
|
|
619
|
+
return generatedHandlerFactory;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
` : "";
|
|
623
|
+
const handlerExport = hasHandlerRegistry ? `
|
|
624
|
+
export function ${handlerExportName}<TCtx extends ProcedureHandlerContext>(
|
|
625
|
+
ctx: TCtx
|
|
626
|
+
): GeneratedProcedureHandler<TCtx> {
|
|
627
|
+
const createHandlerFromRegistry = getCreateHandlerFromRegistry();
|
|
628
|
+
return createHandlerFromRegistry(ctx) as GeneratedProcedureHandler<TCtx>;
|
|
629
|
+
}
|
|
630
|
+
` : "";
|
|
589
631
|
return `// biome-ignore-all format: generated
|
|
590
632
|
// This file is auto-generated by better-convex
|
|
591
633
|
// Do not edit manually. Run \`better-convex codegen\` to regenerate.
|
|
592
634
|
|
|
593
|
-
import {
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
type ProcedureCallerFromRegistry,
|
|
598
|
-
type ProcedureScheduleCallerFromRegistry,
|
|
635
|
+
import type {
|
|
636
|
+
ProcedureActionCallerFromRegistry,
|
|
637
|
+
ProcedureCallerFromRegistry,
|
|
638
|
+
ProcedureScheduleCallerFromRegistry,
|
|
599
639
|
} from 'better-convex/server';
|
|
600
|
-
import { api, internal } from '${runtimeApiImportPath}';
|
|
601
640
|
import type { ActionCtx, MutationCtx, QueryCtx } from '${generatedServerImportPath}';
|
|
641
|
+
import type { OrmTriggerContext } from 'better-convex/orm';
|
|
642
|
+
|
|
643
|
+
type RuntimeServerModule = typeof import('better-convex/server');
|
|
644
|
+
|
|
645
|
+
function createProcedureRegistry() {
|
|
646
|
+
const { typedProcedureResolver } =
|
|
647
|
+
(require('better-convex/server') as RuntimeServerModule);
|
|
648
|
+
const { api, internal } =
|
|
649
|
+
(require(${JSON.stringify(runtimeApiImportPath)}) as typeof import('${runtimeApiImportPath}'));
|
|
650
|
+
|
|
651
|
+
const procedureRegistry = {${callerRegistryBody}} as const;
|
|
652
|
+
${handlerRegistryDeclaration}
|
|
653
|
+
return {
|
|
654
|
+
procedureRegistry,
|
|
655
|
+
${hasHandlerRegistry ? " handlerRegistry,\n" : ""} };
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
type ProcedureRegistryBundle = ReturnType<typeof createProcedureRegistry>;
|
|
659
|
+
type ProcedureCallerRegistry = ProcedureRegistryBundle['procedureRegistry'];
|
|
660
|
+
${hasHandlerRegistry ? `type ProcedureHandlerRegistry = ProcedureRegistryBundle['handlerRegistry'];
|
|
661
|
+
` : ""}
|
|
662
|
+
|
|
663
|
+
let cachedProcedureRegistry: ProcedureRegistryBundle | undefined;
|
|
602
664
|
|
|
603
|
-
|
|
665
|
+
function buildProcedureRegistry(): ProcedureRegistryBundle {
|
|
666
|
+
if (cachedProcedureRegistry) {
|
|
667
|
+
return cachedProcedureRegistry;
|
|
668
|
+
}
|
|
604
669
|
|
|
605
|
-
|
|
670
|
+
const procedureRegistryBundle = createProcedureRegistry();
|
|
671
|
+
cachedProcedureRegistry = procedureRegistryBundle;
|
|
672
|
+
|
|
673
|
+
return procedureRegistryBundle;
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
type MutationCallerContext = MutationCtx | OrmTriggerContext<any, MutationCtx>;
|
|
677
|
+
type ProcedureCallerContext = QueryCtx | MutationCallerContext | ActionCtx;
|
|
606
678
|
type GeneratedProcedureCaller<
|
|
607
679
|
TCtx extends ProcedureCallerContext = ProcedureCallerContext,
|
|
608
|
-
> = TCtx extends
|
|
609
|
-
? ProcedureCallerFromRegistry<
|
|
610
|
-
schedule: ProcedureScheduleCallerFromRegistry<
|
|
680
|
+
> = TCtx extends MutationCallerContext
|
|
681
|
+
? ProcedureCallerFromRegistry<ProcedureCallerRegistry, 'mutation'> & {
|
|
682
|
+
schedule: ProcedureScheduleCallerFromRegistry<ProcedureCallerRegistry>;
|
|
611
683
|
}
|
|
612
684
|
: TCtx extends ActionCtx
|
|
613
|
-
? ProcedureCallerFromRegistry<
|
|
614
|
-
actions: ProcedureActionCallerFromRegistry<
|
|
615
|
-
schedule: ProcedureScheduleCallerFromRegistry<
|
|
685
|
+
? ProcedureCallerFromRegistry<ProcedureCallerRegistry, 'mutation'> & {
|
|
686
|
+
actions: ProcedureActionCallerFromRegistry<ProcedureCallerRegistry>;
|
|
687
|
+
schedule: ProcedureScheduleCallerFromRegistry<ProcedureCallerRegistry>;
|
|
616
688
|
}
|
|
617
|
-
: ProcedureCallerFromRegistry<
|
|
618
|
-
${
|
|
619
|
-
type ProcedureHandlerContext = QueryCtx | MutationCtx;
|
|
620
|
-
type GeneratedProcedureHandler<
|
|
621
|
-
TCtx extends ProcedureHandlerContext = ProcedureHandlerContext,
|
|
622
|
-
> = TCtx extends MutationCtx
|
|
623
|
-
? ProcedureCallerFromRegistry<typeof ${handlerRegistryIdentifier}, 'mutation'>
|
|
624
|
-
: ProcedureCallerFromRegistry<typeof ${handlerRegistryIdentifier}, 'query'>;
|
|
625
|
-
` : ""}
|
|
689
|
+
: ProcedureCallerFromRegistry<ProcedureCallerRegistry, 'query'>;
|
|
690
|
+
${handlerTypeDeclarations}
|
|
626
691
|
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
692
|
+
function createCallerFromRegistryFactory() {
|
|
693
|
+
const { createGenericCallerFactory } =
|
|
694
|
+
(require('better-convex/server') as RuntimeServerModule);
|
|
695
|
+
const { procedureRegistry } = buildProcedureRegistry();
|
|
696
|
+
return createGenericCallerFactory<
|
|
697
|
+
QueryCtx,
|
|
698
|
+
MutationCtx,
|
|
699
|
+
ProcedureCallerRegistry,
|
|
700
|
+
ActionCtx
|
|
701
|
+
>(procedureRegistry);
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
type CallerFactory = ReturnType<typeof createCallerFromRegistryFactory>;
|
|
705
|
+
|
|
706
|
+
let cachedCreateCallerFromRegistry: CallerFactory | undefined;
|
|
707
|
+
|
|
708
|
+
function getCreateCallerFromRegistry(): CallerFactory {
|
|
709
|
+
if (cachedCreateCallerFromRegistry) {
|
|
710
|
+
return cachedCreateCallerFromRegistry;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
const generatedCallerFactory = createCallerFromRegistryFactory();
|
|
714
|
+
cachedCreateCallerFromRegistry = generatedCallerFactory;
|
|
715
|
+
|
|
716
|
+
return generatedCallerFactory;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
${handlerFactoryHelpers}
|
|
639
720
|
|
|
640
721
|
export function ${callerExportName}<TCtx extends ProcedureCallerContext>(
|
|
641
722
|
ctx: TCtx
|
|
642
723
|
): GeneratedProcedureCaller<TCtx> {
|
|
724
|
+
const createCallerFromRegistry = getCreateCallerFromRegistry();
|
|
643
725
|
return createCallerFromRegistry(ctx) as GeneratedProcedureCaller<TCtx>;
|
|
644
726
|
}
|
|
645
|
-
${
|
|
646
|
-
export function ${handlerExportName}<TCtx extends ProcedureHandlerContext>(
|
|
647
|
-
ctx: TCtx
|
|
648
|
-
): GeneratedProcedureHandler<TCtx> {
|
|
649
|
-
return createHandlerFromRegistry(ctx) as GeneratedProcedureHandler<TCtx>;
|
|
650
|
-
}
|
|
651
|
-
` : ""}
|
|
727
|
+
${handlerExport}
|
|
652
728
|
`;
|
|
653
729
|
}
|
|
654
730
|
function hasNamedExport(filePath, exportName) {
|
package/dist/orm/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as pretendRequired, n as deprecated, r as pretend } from "../validators-BcQFm1oY.js";
|
|
2
|
-
import { $ as
|
|
2
|
+
import { $ as DatabaseWithQuery, $n as BuildRelationResult, $r as notInArray, $t as defineRelationsPart, A as MigrationRunArgs, An as aggregateIndex, Ar as FieldReference, At as json, B as MigrationMigrateOne, Bn as ConvexUniqueConstraintBuilder, Br as gt, Bt as bigint, C as OrmBeforeResult, Cn as ConvexRankIndexBuilderOn, Cr as ReturningSelection, Ct as ConvexDateBuilderInitial, D as OrmTriggers, Dn as ConvexVectorIndexBuilder, Dr as unsetToken, Dt as ConvexCustomBuilderInitial, E as OrmTriggerContext, En as ConvexSearchIndexConfig, Er as VectorSearchProvider, Et as ConvexCustomBuilder, F as MigrationDirection, Fn as vectorIndex, Fr as between, Ft as ConvexBooleanBuilder, G as MigrationStep, Gn as unique, Gr as isNotNull, Gt as ManyConfig, H as MigrationRunStatus, Hn as ConvexUniqueConstraintConfig, Hr as ilike, Ht as CountBackfillKickoffArgs, I as MigrationDoc, In as ConvexCheckBuilder, Ir as contains, It as ConvexBooleanBuilderInitial, J as buildMigrationPlan, Jn as text, Jr as lt, Jt as RelationsBuilderColumnBase, K as MigrationTableName, Kn as ConvexTextBuilder, Kr as isNull, Kt as OneConfig, L as MigrationDocContext, Ln as ConvexCheckConfig, Lr as endsWith, Lt as boolean, M as MigrationStatusArgs, Mn as rankIndex, Mr as LogicalExpression, Mt as ConvexBytesBuilder, N as MigrationAppliedState, Nn as searchIndex, Nr as UnaryExpression, Nt as ConvexBytesBuilderInitial, O as defineTriggers, On as ConvexVectorIndexBuilderOn, Or as BinaryExpression, Ot as arrayOf, P as MigrationDefinition, Pn as uniqueIndex, Pr as and, Pt as bytes, Q as DatabaseWithMutations, Qn as BuildQueryResult, Qr as notBetween, Qt as defineRelations, R as MigrationDriftIssue, Rn as ConvexForeignKeyBuilder, Rr as eq, Rt as ConvexBigIntBuilder, S as scheduledDeleteFactory, Sn as ConvexRankIndexBuilder, Sr as ReturningResult, St as ConvexDateBuilder, T as OrmTriggerChange, Tn as ConvexSearchIndexBuilderOn, Tr as VectorQueryConfig, Tt as date, U as MigrationSet, Un as check, Ur as inArray, Ut as CountBackfillStatusArgs, V as MigrationPlan, Vn as ConvexUniqueConstraintBuilderOn, Vr as gte, Vt as CountBackfillChunkArgs, W as MigrationStateMap, Wn as foreignKey, Wr as isFieldReference, Wt as ExtractTablesWithRelations, X as defineMigrationSet, Xn as AggregateFieldValue, Xr as ne, Xt as TableRelationalConfig, Y as defineMigration, Yn as AggregateConfig, Yr as lte, Yt as RelationsBuilderColumnConfig, Z as detectMigrationDrift, Zn as AggregateResult, Zr as not, Zt as TablesRelationalConfig, _ as OrmWriterCtx, _i as IsPrimaryKey, _n as rlsRole, _r as OrderByClause, _t as ConvexNumberBuilderInitial, a as TableConfigResult, ai as OrmSchemaPluginTables, an as OrmLifecycleChange, ar as InferInsertModel, at as extractRelationsConfig, b as scheduledMutationBatchFactory, bn as ConvexIndexBuilder, br as PredicateWhereIndexConfig, bt as ConvexIdBuilderInitial, c as OrmNotFoundError, ci as AnyColumn, cn as convexTable, cr as InsertValue, ct as vector, d as GenericOrmCtx, di as ColumnBuilderRuntimeConfig, dn as RlsPolicy, dr as MutationExecutionMode, dt as ConvexTimestampMode, ei as or, en as ConvexDeletionBuilder, er as CountConfig, et as OrmReader, f as OrmApiResult, fi as ColumnBuilderTypeConfig, fn as RlsPolicyConfig, fr as MutationPaginateConfig, ft as timestamp, g as OrmReaderCtx, gi as HasDefault, gn as RlsRoleConfig, gr as MutationRunMode, gt as ConvexNumberBuilder, h as OrmFunctions, hi as DrizzleEntity, hn as RlsRole, hr as MutationReturning, ht as textEnum, i as desc, ii as OrmSchemaPlugin, in as DiscriminatorBuilderConfig, ir as GetColumnData, it as EdgeMetadata, j as MigrationRunChunkArgs, jn as index, jr as FilterExpression, jt as objectOf, k as MigrationCancelArgs, kn as ConvexVectorIndexConfig, kr as ExpressionVisitor, kt as custom, l as CreateOrmOptions, li as ColumnBuilder, ln as deletion, lr as MutationExecuteConfig, lt as ConvexTimestampBuilder, m as OrmClientWithApi, mi as ColumnDataType, mn as rlsPolicy, mr as MutationResult, mt as ConvexTextEnumBuilderInitial, n as defineSchema, ni as Brand, nn as ConvexTable, nr as DBQueryConfig, nt as RlsContext, o as getTableColumns, oi as TableName, on as OrmLifecycleOperation, or as InferModelFromColumns, ot as ConvexVectorBuilder, p as OrmClientBase, pi as ColumnBuilderWithTableName, pn as RlsPolicyToOption, pr as MutationPaginatedResult, pt as ConvexTextEnumBuilder, q as MigrationWriteMode, qn as ConvexTextBuilderInitial, qr as like, qt as RelationsBuilder, r as asc, ri as Columns, rr as FilterOperators, rt as RlsMode, s as getTableConfig, si as SystemFields, sn as TableConfig, sr as InferSelectModel, st as ConvexVectorBuilderInitial, t as WhereClauseResult, ti as startsWith, tn as ConvexDeletionConfig, tr as CountResult, tt as OrmWriter, u as GenericOrm, ui as ColumnBuilderBaseConfig, un as discriminator, ur as MutationExecuteResult, ut as ConvexTimestampBuilderInitial, v as createOrm, vi as IsUnique, vn as ConvexAggregateIndexBuilder, vr as OrderDirection, vt as integer, w as OrmTableTriggers, wn as ConvexSearchIndexBuilder, wr as UpdateSet, wt as ConvexDateMode, x as ScheduledDeleteArgs, xn as ConvexIndexBuilderOn, xr as ReturningAll, xt as id, y as ScheduledMutationBatchArgs, yi as NotNull, yn as ConvexAggregateIndexBuilderOn, yr as PaginatedResult, yt as ConvexIdBuilder, z as MigrationManifestEntry, zn as ConvexForeignKeyConfig, zr as fieldRef, zt as ConvexBigIntBuilderInitial } from "../where-clause-compiler-BCECnxsG.js";
|
|
3
3
|
import { a as QueryCtxWithPreferredOrmQueryTable, i as QueryCtxWithOrmQueryTable, n as LookupByIdResultByCtx, o as getByIdWithOrmQueryFallback, r as QueryCtxWithOptionalOrmQueryTable, t as DocByCtx } from "../query-context-ji7By8u0.js";
|
|
4
4
|
import { DefineSchemaOptions, GenericSchema, SchemaDefinition } from "convex/server";
|
|
5
5
|
export { type AggregateConfig, type AggregateFieldValue, type AggregateResult, type AnyColumn, type BinaryExpression, Brand, type BuildQueryResult, type BuildRelationResult, type ColumnBuilder, type ColumnBuilderBaseConfig, type ColumnBuilderRuntimeConfig, type ColumnBuilderTypeConfig, type ColumnBuilderWithTableName, type ColumnDataType, Columns, type ConvexAggregateIndexBuilder, type ConvexAggregateIndexBuilderOn, type ConvexBigIntBuilder, type ConvexBigIntBuilderInitial, type ConvexBooleanBuilder, type ConvexBooleanBuilderInitial, type ConvexBytesBuilder, type ConvexBytesBuilderInitial, type ConvexCheckBuilder, type ConvexCheckConfig, type ConvexCustomBuilder, type ConvexCustomBuilderInitial, type ConvexDateBuilder, type ConvexDateBuilderInitial, type ConvexDateMode, type ConvexDeletionBuilder, type ConvexDeletionConfig, type ConvexForeignKeyBuilder, type ConvexForeignKeyConfig, type ConvexIdBuilder, type ConvexIdBuilderInitial, type ConvexIndexBuilder, type ConvexIndexBuilderOn, type ConvexNumberBuilder, type ConvexNumberBuilderInitial, type ConvexRankIndexBuilder, type ConvexRankIndexBuilderOn, type ConvexSearchIndexBuilder, type ConvexSearchIndexBuilderOn, type ConvexSearchIndexConfig, type ConvexTable, type ConvexTextBuilder, type ConvexTextBuilderInitial, type ConvexTextEnumBuilder, type ConvexTextEnumBuilderInitial, type ConvexTimestampBuilder, type ConvexTimestampBuilderInitial, type ConvexTimestampMode, type ConvexUniqueConstraintBuilder, type ConvexUniqueConstraintBuilderOn, type ConvexUniqueConstraintConfig, type ConvexVectorBuilder, type ConvexVectorBuilderInitial, type ConvexVectorIndexBuilder, type ConvexVectorIndexBuilderOn, type ConvexVectorIndexConfig, type CountBackfillChunkArgs, type CountBackfillKickoffArgs, type CountBackfillStatusArgs, type CountConfig, type CountResult, type CreateOrmOptions, type DBQueryConfig, type DatabaseWithMutations, type DatabaseWithQuery, type DefineSchemaOptions, type DiscriminatorBuilderConfig, type DocByCtx, type DrizzleEntity, type EdgeMetadata, type ExpressionVisitor, type ExtractTablesWithRelations, type FieldReference, type FilterExpression, type FilterOperators, type GenericOrm, type GenericOrmCtx, type GenericSchema, type GetColumnData, type HasDefault, type InferInsertModel, type InferModelFromColumns, type InferSelectModel, type InsertValue, type IsPrimaryKey, type IsUnique, type LogicalExpression, type LookupByIdResultByCtx, type ManyConfig, 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, type MutationExecuteConfig, type MutationExecuteResult, type MutationExecutionMode, type MutationPaginateConfig, type MutationPaginatedResult, type MutationResult, type MutationReturning, type MutationRunMode, type NotNull, type OneConfig, type OrderByClause, type OrderDirection, type OrmApiResult, type OrmBeforeResult, type OrmClientBase, type OrmClientWithApi, type OrmFunctions, type OrmLifecycleChange, type OrmLifecycleOperation, OrmNotFoundError, type OrmReader, type OrmReaderCtx, type OrmSchemaPlugin, OrmSchemaPluginTables, type OrmTableTriggers, type OrmTriggerChange, type OrmTriggerContext, type OrmTriggers, type OrmWriter, type OrmWriterCtx, type PaginatedResult, type PredicateWhereIndexConfig, type QueryCtxWithOptionalOrmQueryTable, type QueryCtxWithOrmQueryTable, type QueryCtxWithPreferredOrmQueryTable, type RelationsBuilder, type RelationsBuilderColumnBase, type RelationsBuilderColumnConfig, type ReturningAll, type ReturningResult, type ReturningSelection, type RlsContext, type RlsMode, RlsPolicy, type RlsPolicyConfig, type RlsPolicyToOption, RlsRole, type RlsRoleConfig, type ScheduledDeleteArgs, type ScheduledMutationBatchArgs, type SchemaDefinition, type SystemFields, type TableConfig, type TableConfigResult, TableName, type TableRelationalConfig, type TablesRelationalConfig, type UnaryExpression, type UpdateSet, type VectorQueryConfig, type VectorSearchProvider, type WhereClauseResult, aggregateIndex, and, arrayOf, asc, between, bigint, boolean, buildMigrationPlan, bytes, check, contains, convexTable, createOrm, custom, date, defineMigration, defineMigrationSet, defineRelations, defineRelationsPart, defineSchema, defineTriggers, deletion, deprecated, desc, detectMigrationDrift, discriminator, endsWith, eq, extractRelationsConfig, fieldRef, foreignKey, getByIdWithOrmQueryFallback, getTableColumns, getTableConfig, gt, gte, id, ilike, inArray, index, integer, isFieldReference, isNotNull, isNull, json, like, lt, lte, ne, not, notBetween, notInArray, objectOf, or, pretend, pretendRequired, rankIndex, rlsPolicy, rlsRole, scheduledDeleteFactory, scheduledMutationBatchFactory, searchIndex, startsWith, text, textEnum, timestamp, unique, uniqueIndex, unsetToken, vector, vectorIndex };
|
package/dist/plugins/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import { ai as OrmSchemaPlugin, k as migrationPlugin } from "../where-clause-compiler-DjFwXrQn.js";
|
|
3
|
-
import "../query-context-ji7By8u0.js";
|
|
4
|
-
import "../orm/index.js";
|
|
1
|
+
import { ii as OrmSchemaPlugin } from "../where-clause-compiler-BCECnxsG.js";
|
|
5
2
|
|
|
3
|
+
//#region src/orm/migrations/schema.d.ts
|
|
4
|
+
declare function migrationPlugin(): OrmSchemaPlugin;
|
|
5
|
+
//#endregion
|
|
6
6
|
//#region src/orm/aggregate-index/schema.d.ts
|
|
7
7
|
declare function aggregatePlugin(): OrmSchemaPlugin;
|
|
8
8
|
//#endregion
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import { ai as OrmSchemaPlugin } from "../../where-clause-compiler-DjFwXrQn.js";
|
|
3
|
-
import "../../query-context-ji7By8u0.js";
|
|
4
|
-
import "../../orm/index.js";
|
|
1
|
+
import { ii as OrmSchemaPlugin } from "../../where-clause-compiler-BCECnxsG.js";
|
|
5
2
|
import * as convex_server0 from "convex/server";
|
|
6
3
|
|
|
7
4
|
//#region src/plugins/ratelimit/duration.d.ts
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import "../validators-BcQFm1oY.js";
|
|
2
1
|
import { $ as QueryProcedureBuilder, A as GenericCtx, B as ConvexContext, C as CRPC_ERROR_CODE_TO_HTTP, Ct as zodToConvex, D as toCRPCError, E as isCRPCError, F as isRunMutationCtx, G as CallerOpts, H as LazyCaller, I as requireActionCtx, J as createApiLeaf, K as ServerCaller, L as requireMutationCtx, M as isActionCtx, N as isMutationCtx, O as CreateEnvOptions, P as isQueryCtx, Q as ProcedureBuilder, R as requireQueryCtx, S as CRPC_ERROR_CODES_BY_KEY, St as zodOutputToConvexFields, T as getHTTPStatusCodeFromError, U as createLazyCaller, V as createCallerFactory, W as CallerMeta, X as CRPCFunctionTypeHint, Y as ActionProcedureBuilder, Z as MutationProcedureBuilder, _ as WithHttpRouter, _t as zCustomAction, a as ProcedureCaller, at as handleHttpError, b as CRPCError, bt as zid, c as ProcedureFromFunctionReference, ct as ConvexValidatorFromZodOutput, d as createGenericCallerFactory, dt as Zid, et as createMiddlewareFactory, f as createGenericHandlerFactory, ft as ZodFromValidatorBase, g as typedProcedureResolver, gt as withSystemFields, h as defineProcedure, ht as convexToZodFields, i as ProcedureActionCallerFromRegistry, it as extractPathParams, j as RunMutationCtx, k as createEnv, l as ProcedureSchedulableCallerFromRegistry, lt as CustomBuilder, m as createProcedureHandlerFactory, mt as convexToZod, n as GeneratedProcedureRegistry, nt as HttpProcedureBuilder, o as ProcedureCallerFromRegistry, ot as matchPathParams, p as createProcedureCallerFactory, pt as ZodValidatorFromConvex, q as createServerCaller, r as GeneratedProcedureRegistryEntry, rt as createHttpProcedureBuilder, s as ProcedureDefinition, st as ConvexValidatorFromZod, t as CreateProcedureCallerFactoryOptions, tt as initCRPC, u as ProcedureScheduleCallerFromRegistry, ut as ZCustomCtx, v as inferApiInputs, vt as zCustomMutation, w as getCRPCErrorFromUnknown, wt as zodToConvexFields, x as CRPCErrorCode, xt as zodOutputToConvex, y as inferApiOutputs, yt as zCustomQuery, z as requireRunMutationCtx } from "../procedure-caller-kZJx_hmP.js";
|
|
3
2
|
import { A as GetRawInputFn, B as Simplify, C as HttpProcedure, D as ProcedureMeta, E as InferHttpInput, F as MiddlewareMarker, I as MiddlewareNext, L as MiddlewareResult, M as MergeZodObjects, N as MiddlewareBuilder, O as AnyMiddleware, P as MiddlewareFunction, R as Overwrite, S as HttpMethod, T as HttpRouteDefinition, V as UnsetMarker, _ as extractRouteMap, b as HttpActionHandler, d as CRPCHttpRouter, f as HttpRouterDef, g as createHttpRouterFactory, h as createHttpRouter, j as IntersectIfDefined, k as AnyMiddlewareBuilder, m as HttpRouterWithHono, p as HttpRouterRecord, v as CRPCHonoHandler, w as HttpProcedureBuilderDef, x as HttpHandlerOpts, y as HttpActionConstructor, z as ResolveIfSet } from "../http-types-BK7FuIcR.js";
|
|
4
3
|
export { ActionProcedureBuilder, AnyMiddleware, AnyMiddlewareBuilder, CRPCError, CRPCErrorCode, CRPCFunctionTypeHint, CRPCHonoHandler, CRPCHttpRouter, CRPC_ERROR_CODES_BY_KEY, CRPC_ERROR_CODE_TO_HTTP, CallerMeta, CallerOpts, ConvexContext, ConvexValidatorFromZod, ConvexValidatorFromZodOutput, CreateEnvOptions, CreateProcedureCallerFactoryOptions, CustomBuilder, GeneratedProcedureRegistry, GeneratedProcedureRegistryEntry, GenericCtx, GetRawInputFn, HttpActionConstructor, HttpActionHandler, HttpHandlerOpts, HttpMethod, HttpProcedure, HttpProcedureBuilder, HttpProcedureBuilderDef, HttpRouteDefinition, HttpRouterDef, HttpRouterRecord, HttpRouterWithHono, InferHttpInput, IntersectIfDefined, LazyCaller, MergeZodObjects, MiddlewareBuilder, MiddlewareFunction, MiddlewareMarker, MiddlewareNext, MiddlewareResult, MutationProcedureBuilder, Overwrite, ProcedureActionCallerFromRegistry, ProcedureBuilder, ProcedureCaller, ProcedureCallerFromRegistry, ProcedureDefinition, ProcedureFromFunctionReference, ProcedureMeta, ProcedureSchedulableCallerFromRegistry, ProcedureScheduleCallerFromRegistry, QueryProcedureBuilder, ResolveIfSet, RunMutationCtx, ServerCaller, Simplify, UnsetMarker, WithHttpRouter, ZCustomCtx, Zid, ZodFromValidatorBase, ZodValidatorFromConvex, convexToZod, convexToZodFields, createApiLeaf, createCallerFactory, createEnv, createGenericCallerFactory, createGenericHandlerFactory, createHttpProcedureBuilder, createHttpRouter, createHttpRouterFactory, createLazyCaller, createMiddlewareFactory, createProcedureCallerFactory, createProcedureHandlerFactory, createServerCaller, defineProcedure, extractPathParams, extractRouteMap, getCRPCErrorFromUnknown, getHTTPStatusCodeFromError, handleHttpError, inferApiInputs, inferApiOutputs, initCRPC, isActionCtx, isCRPCError, isMutationCtx, isQueryCtx, isRunMutationCtx, matchPathParams, requireActionCtx, requireMutationCtx, requireQueryCtx, requireRunMutationCtx, toCRPCError, typedProcedureResolver, withSystemFields, zCustomAction, zCustomMutation, zCustomQuery, zid, zodOutputToConvex, zodOutputToConvexFields, zodToConvex, zodToConvexFields };
|
package/dist/watcher.mjs
CHANGED
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { n as getConvexConfig, t as generateMeta } from "./codegen-
|
|
2
|
+
import { n as getConvexConfig, t as generateMeta } from "./codegen-CJiil63j.mjs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
5
|
|
|
6
6
|
//#region src/cli/watcher.ts
|
|
7
7
|
function getWatchPatterns(functionsDir) {
|
|
8
8
|
const convexDir = path.dirname(functionsDir);
|
|
9
|
-
return [
|
|
9
|
+
return [
|
|
10
|
+
path.join(functionsDir, "**", "*.ts"),
|
|
11
|
+
path.join(functionsDir, "_generated", "**", "*.js"),
|
|
12
|
+
path.join(convexDir, "routers", "**", "*.ts")
|
|
13
|
+
];
|
|
14
|
+
}
|
|
15
|
+
function getIgnoredWatchPatterns(functionsDir, outputFile) {
|
|
16
|
+
return [
|
|
17
|
+
path.join(functionsDir, "generated", "**", "*.ts"),
|
|
18
|
+
path.join(functionsDir, "**", "*.runtime.ts"),
|
|
19
|
+
path.join(functionsDir, "generated.ts"),
|
|
20
|
+
outputFile
|
|
21
|
+
];
|
|
10
22
|
}
|
|
11
23
|
async function startWatcher(opts) {
|
|
12
24
|
const outputDir = opts?.outputDir ?? (process.env.BETTER_CONVEX_API_OUTPUT_DIR || void 0);
|
|
@@ -16,21 +28,47 @@ async function startWatcher(opts) {
|
|
|
16
28
|
const debounceMs = opts?.debounceMs ?? 100;
|
|
17
29
|
const resolveConfig = opts?.getConvexConfig ?? getConvexConfig;
|
|
18
30
|
const runGenerateMeta = opts?.generateMeta ?? generateMeta;
|
|
19
|
-
const { functionsDir } = resolveConfig(outputDir);
|
|
31
|
+
const { functionsDir, outputFile } = resolveConfig(outputDir);
|
|
20
32
|
const watchPatterns = getWatchPatterns(functionsDir);
|
|
33
|
+
const ignoredWatchPatterns = getIgnoredWatchPatterns(functionsDir, outputFile);
|
|
21
34
|
const watch = opts?.watch ?? (await import("chokidar")).watch;
|
|
22
35
|
let debounceTimer = null;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
36
|
+
let generateMetaInFlight = false;
|
|
37
|
+
let generateMetaQueued = false;
|
|
38
|
+
const runGenerateMetaSafely = async () => {
|
|
39
|
+
if (generateMetaInFlight) {
|
|
40
|
+
generateMetaQueued = true;
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
generateMetaInFlight = true;
|
|
44
|
+
try {
|
|
45
|
+
await runGenerateMeta(outputDir, {
|
|
27
46
|
debug,
|
|
28
47
|
silent: true,
|
|
29
48
|
api: generateApi,
|
|
30
49
|
auth: generateAuth
|
|
31
50
|
});
|
|
51
|
+
} catch (error) {
|
|
52
|
+
console.error("Watch codegen error:", error);
|
|
53
|
+
} finally {
|
|
54
|
+
generateMetaInFlight = false;
|
|
55
|
+
if (generateMetaQueued) {
|
|
56
|
+
generateMetaQueued = false;
|
|
57
|
+
scheduleGenerateMeta();
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
const scheduleGenerateMeta = () => {
|
|
62
|
+
if (debounceTimer) clearTimeout(debounceTimer);
|
|
63
|
+
debounceTimer = setTimeout(() => {
|
|
64
|
+
debounceTimer = null;
|
|
65
|
+
runGenerateMetaSafely();
|
|
32
66
|
}, debounceMs);
|
|
33
|
-
}
|
|
67
|
+
};
|
|
68
|
+
watch(watchPatterns, {
|
|
69
|
+
ignoreInitial: true,
|
|
70
|
+
ignored: ignoredWatchPatterns
|
|
71
|
+
}).on("add", scheduleGenerateMeta).on("change", scheduleGenerateMeta).on("unlink", scheduleGenerateMeta).on("error", (err) => console.error("Watch error:", err));
|
|
34
72
|
}
|
|
35
73
|
if (process.argv[1] && path.resolve(process.argv[1]) === fileURLToPath(import.meta.url)) startWatcher().catch((error) => {
|
|
36
74
|
console.error("Watch error:", error);
|
|
@@ -38,4 +76,4 @@ if (process.argv[1] && path.resolve(process.argv[1]) === fileURLToPath(import.me
|
|
|
38
76
|
});
|
|
39
77
|
|
|
40
78
|
//#endregion
|
|
41
|
-
export { getWatchPatterns, startWatcher };
|
|
79
|
+
export { getIgnoredWatchPatterns, getWatchPatterns, startWatcher };
|
|
@@ -3420,9 +3420,6 @@ type MigrationCancelArgs = {
|
|
|
3420
3420
|
runId?: string;
|
|
3421
3421
|
};
|
|
3422
3422
|
//#endregion
|
|
3423
|
-
//#region src/orm/migrations/schema.d.ts
|
|
3424
|
-
declare function migrationPlugin(): OrmSchemaPlugin;
|
|
3425
|
-
//#endregion
|
|
3426
3423
|
//#region src/orm/triggers.d.ts
|
|
3427
3424
|
type MaybePromise<T> = T | Promise<T>;
|
|
3428
3425
|
type AnyRecord = Record<string, unknown>;
|
|
@@ -3431,7 +3428,7 @@ type TriggerTableName<TSchema extends TablesRelationalConfig> = { [K in KnownKey
|
|
|
3431
3428
|
type TriggerDoc<TSchema extends TablesRelationalConfig, TTableName extends TriggerTableName<TSchema>> = TSchema[TTableName] extends TableRelationalConfig ? InferSelectModel<TSchema[TTableName]['table']> : never;
|
|
3432
3429
|
type TriggerInsertData<TSchema extends TablesRelationalConfig, TTableName extends TriggerTableName<TSchema>> = TSchema[TTableName] extends TableRelationalConfig ? InferInsertModel<TSchema[TTableName]['table']> : never;
|
|
3433
3430
|
type TriggerUpdateData<TSchema extends TablesRelationalConfig, TTableName extends TriggerTableName<TSchema>> = Partial<TriggerInsertData<TSchema, TTableName>>;
|
|
3434
|
-
type OrmTriggerContext<TSchema extends TablesRelationalConfig, TExtraCtx extends
|
|
3431
|
+
type OrmTriggerContext<TSchema extends TablesRelationalConfig, TExtraCtx extends object = {}> = Omit<TExtraCtx, 'db' | 'innerDb' | 'orm'> & {
|
|
3435
3432
|
db: GenericDatabaseWriter<any>;
|
|
3436
3433
|
innerDb: GenericDatabaseWriter<any>;
|
|
3437
3434
|
orm: OrmWriter<TSchema>;
|
|
@@ -3445,13 +3442,13 @@ type OrmTriggerChange<TDoc = AnyRecord, TId = TriggerChangeId<TDoc>> = OrmLifecy
|
|
|
3445
3442
|
type OrmBeforeResult<TData extends AnyRecord> = void | false | {
|
|
3446
3443
|
data: Partial<TData>;
|
|
3447
3444
|
};
|
|
3448
|
-
type OrmBeforeHook<TData extends AnyRecord, TCtx extends
|
|
3449
|
-
type OrmAfterHook<TDoc extends AnyRecord, TCtx extends
|
|
3450
|
-
type OrmChangeHook<TDoc extends AnyRecord, TCtx extends
|
|
3445
|
+
type OrmBeforeHook<TData extends AnyRecord, TCtx extends object> = (data: TData, ctx: TCtx) => MaybePromise<OrmBeforeResult<TData>>;
|
|
3446
|
+
type OrmAfterHook<TDoc extends AnyRecord, TCtx extends object> = (doc: TDoc, ctx: TCtx) => MaybePromise<void>;
|
|
3447
|
+
type OrmChangeHook<TDoc extends AnyRecord, TCtx extends object> = ((change: OrmTriggerChange<TDoc>, ctx: TCtx) => MaybePromise<void>) | {
|
|
3451
3448
|
(): unknown;
|
|
3452
3449
|
(change: OrmTriggerChange<TDoc>, ctx: TCtx): MaybePromise<void>;
|
|
3453
3450
|
};
|
|
3454
|
-
type OrmTableTriggers<TDoc extends AnyRecord, TInsert extends AnyRecord, TUpdate extends AnyRecord, TCtx extends
|
|
3451
|
+
type OrmTableTriggers<TDoc extends AnyRecord, TInsert extends AnyRecord, TUpdate extends AnyRecord, TCtx extends object> = {
|
|
3455
3452
|
create?: {
|
|
3456
3453
|
before?: OrmBeforeHook<TInsert, TCtx>;
|
|
3457
3454
|
after?: OrmAfterHook<TDoc, TCtx>;
|
|
@@ -3466,9 +3463,9 @@ type OrmTableTriggers<TDoc extends AnyRecord, TInsert extends AnyRecord, TUpdate
|
|
|
3466
3463
|
};
|
|
3467
3464
|
change?: OrmChangeHook<TDoc, TCtx>;
|
|
3468
3465
|
};
|
|
3469
|
-
type OrmTriggers<TSchema extends TablesRelationalConfig, TExtraCtx extends
|
|
3466
|
+
type OrmTriggers<TSchema extends TablesRelationalConfig, TExtraCtx extends object = {}> = { [TTableName in TriggerTableName<TSchema>]?: OrmTableTriggers<TriggerDoc<TSchema, TTableName>, TriggerInsertData<TSchema, TTableName>, TriggerUpdateData<TSchema, TTableName>, OrmTriggerContext<TSchema, TExtraCtx>> };
|
|
3470
3467
|
declare function defineTriggers<TSchema extends TablesRelationalConfig>(schema: TSchema, triggers: OrmTriggers<TSchema>): OrmTriggers<TSchema>;
|
|
3471
|
-
declare function defineTriggers<TSchema extends TablesRelationalConfig, TExtraCtx extends
|
|
3468
|
+
declare function defineTriggers<TSchema extends TablesRelationalConfig, TExtraCtx extends object>(schema: TSchema, triggers: OrmTriggers<TSchema, TExtraCtx>): OrmTriggers<TSchema, TExtraCtx>;
|
|
3472
3469
|
//#endregion
|
|
3473
3470
|
//#region src/orm/scheduled-delete.d.ts
|
|
3474
3471
|
type ScheduledDeleteArgs = {
|
|
@@ -3695,4 +3692,4 @@ interface IndexLike {
|
|
|
3695
3692
|
indexName: string;
|
|
3696
3693
|
}
|
|
3697
3694
|
//#endregion
|
|
3698
|
-
export {
|
|
3695
|
+
export { DatabaseWithQuery as $, BuildRelationResult as $n, notInArray as $r, defineRelationsPart as $t, MigrationRunArgs as A, aggregateIndex as An, FieldReference as Ar, json as At, MigrationMigrateOne as B, ConvexUniqueConstraintBuilder as Bn, gt as Br, bigint as Bt, OrmBeforeResult as C, ConvexRankIndexBuilderOn as Cn, ReturningSelection as Cr, ConvexDateBuilderInitial as Ct, OrmTriggers as D, ConvexVectorIndexBuilder as Dn, unsetToken as Dr, ConvexCustomBuilderInitial as Dt, OrmTriggerContext as E, ConvexSearchIndexConfig as En, VectorSearchProvider as Er, ConvexCustomBuilder as Et, MigrationDirection as F, vectorIndex as Fn, between as Fr, ConvexBooleanBuilder as Ft, MigrationStep as G, unique as Gn, isNotNull as Gr, ManyConfig as Gt, MigrationRunStatus as H, ConvexUniqueConstraintConfig as Hn, ilike as Hr, CountBackfillKickoffArgs as Ht, MigrationDoc as I, ConvexCheckBuilder as In, contains as Ir, ConvexBooleanBuilderInitial as It, buildMigrationPlan as J, text as Jn, lt as Jr, RelationsBuilderColumnBase as Jt, MigrationTableName as K, ConvexTextBuilder as Kn, isNull as Kr, OneConfig as Kt, MigrationDocContext as L, ConvexCheckConfig as Ln, endsWith as Lr, boolean as Lt, MigrationStatusArgs as M, rankIndex as Mn, LogicalExpression as Mr, ConvexBytesBuilder as Mt, MigrationAppliedState as N, searchIndex as Nn, UnaryExpression as Nr, ConvexBytesBuilderInitial as Nt, defineTriggers as O, ConvexVectorIndexBuilderOn as On, BinaryExpression as Or, arrayOf as Ot, MigrationDefinition as P, uniqueIndex as Pn, and as Pr, bytes as Pt, DatabaseWithMutations as Q, BuildQueryResult as Qn, notBetween as Qr, defineRelations as Qt, MigrationDriftIssue as R, ConvexForeignKeyBuilder as Rn, eq as Rr, ConvexBigIntBuilder as Rt, scheduledDeleteFactory as S, ConvexRankIndexBuilder as Sn, ReturningResult as Sr, ConvexDateBuilder as St, OrmTriggerChange as T, ConvexSearchIndexBuilderOn as Tn, VectorQueryConfig as Tr, date as Tt, MigrationSet as U, check as Un, inArray as Ur, CountBackfillStatusArgs as Ut, MigrationPlan as V, ConvexUniqueConstraintBuilderOn as Vn, gte as Vr, CountBackfillChunkArgs as Vt, MigrationStateMap as W, foreignKey as Wn, isFieldReference as Wr, ExtractTablesWithRelations as Wt, defineMigrationSet as X, AggregateFieldValue as Xn, ne as Xr, TableRelationalConfig as Xt, defineMigration as Y, AggregateConfig as Yn, lte as Yr, RelationsBuilderColumnConfig as Yt, detectMigrationDrift as Z, AggregateResult as Zn, not as Zr, TablesRelationalConfig as Zt, OrmWriterCtx as _, IsPrimaryKey as _i, rlsRole as _n, OrderByClause as _r, ConvexNumberBuilderInitial as _t, TableConfigResult as a, OrmSchemaPluginTables as ai, OrmLifecycleChange as an, InferInsertModel as ar, extractRelationsConfig as at, scheduledMutationBatchFactory as b, ConvexIndexBuilder as bn, PredicateWhereIndexConfig as br, ConvexIdBuilderInitial as bt, OrmNotFoundError as c, AnyColumn as ci, convexTable as cn, InsertValue as cr, vector as ct, GenericOrmCtx as d, ColumnBuilderRuntimeConfig as di, RlsPolicy as dn, MutationExecutionMode as dr, ConvexTimestampMode as dt, or as ei, ConvexDeletionBuilder as en, CountConfig as er, OrmReader as et, OrmApiResult as f, ColumnBuilderTypeConfig as fi, RlsPolicyConfig as fn, MutationPaginateConfig as fr, timestamp as ft, OrmReaderCtx as g, HasDefault as gi, RlsRoleConfig as gn, MutationRunMode as gr, ConvexNumberBuilder as gt, OrmFunctions as h, DrizzleEntity as hi, RlsRole as hn, MutationReturning as hr, textEnum as ht, desc as i, OrmSchemaPlugin as ii, DiscriminatorBuilderConfig as in, GetColumnData as ir, EdgeMetadata as it, MigrationRunChunkArgs as j, index as jn, FilterExpression$1 as jr, objectOf as jt, MigrationCancelArgs as k, ConvexVectorIndexConfig as kn, ExpressionVisitor as kr, custom as kt, CreateOrmOptions as l, ColumnBuilder as li, deletion as ln, MutationExecuteConfig as lr, ConvexTimestampBuilder as lt, OrmClientWithApi as m, ColumnDataType as mi, rlsPolicy as mn, MutationResult as mr, ConvexTextEnumBuilderInitial as mt, defineSchema$1 as n, Brand as ni, ConvexTable as nn, DBQueryConfig as nr, RlsContext as nt, getTableColumns as o, TableName as oi, OrmLifecycleOperation as on, InferModelFromColumns as or, ConvexVectorBuilder as ot, OrmClientBase as p, ColumnBuilderWithTableName as pi, RlsPolicyToOption as pn, MutationPaginatedResult as pr, ConvexTextEnumBuilder as pt, MigrationWriteMode as q, ConvexTextBuilderInitial as qn, like as qr, RelationsBuilder as qt, asc as r, Columns as ri, ConvexTableWithColumns as rn, FilterOperators as rr, RlsMode as rt, getTableConfig as s, SystemFields as si, TableConfig as sn, InferSelectModel as sr, ConvexVectorBuilderInitial as st, WhereClauseResult as t, startsWith as ti, ConvexDeletionConfig as tn, CountResult as tr, OrmWriter as tt, GenericOrm as u, ColumnBuilderBaseConfig as ui, discriminator as un, MutationExecuteResult as ur, ConvexTimestampBuilderInitial as ut, createOrm as v, IsUnique as vi, ConvexAggregateIndexBuilder as vn, OrderDirection as vr, integer as vt, OrmTableTriggers as w, ConvexSearchIndexBuilder as wn, UpdateSet as wr, ConvexDateMode as wt, ScheduledDeleteArgs as x, ConvexIndexBuilderOn as xn, ReturningAll as xr, id as xt, ScheduledMutationBatchArgs as y, NotNull as yi, ConvexAggregateIndexBuilderOn as yn, PaginatedResult as yr, ConvexIdBuilder as yt, MigrationManifestEntry as z, ConvexForeignKeyConfig as zn, fieldRef as zr, ConvexBigIntBuilderInitial as zt };
|