kitcn 0.15.16 → 0.15.18
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ConvexNumberBuilderInitial, E as ConvexIdBuilderInitial, N as ConvexCustomBuilderInitial, dn as ConvexTableWithColumns, tr as ConvexTextBuilderInitial } from "../where-clause-compiler-
|
|
1
|
+
import { C as ConvexNumberBuilderInitial, E as ConvexIdBuilderInitial, N as ConvexCustomBuilderInitial, dn as ConvexTableWithColumns, tr as ConvexTextBuilderInitial } from "../where-clause-compiler-DKgRvIn_.js";
|
|
2
2
|
import * as convex_values0 from "convex/values";
|
|
3
3
|
import { GenericId, Infer, Value } from "convex/values";
|
|
4
4
|
import { DocumentByName, GenericDataModel, GenericDatabaseReader, GenericDatabaseWriter, TableNamesInDataModel } from "convex/server";
|
package/dist/orm/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as GenericOrmCtx$1, $n as unique, $r as endsWith, $t as ManyConfig, A as ConvexDateMode, An as ConvexRankIndexBuilder, Ar as ReturningResult, At as MigrationManifestEntry, B as ConvexBytesBuilderInitial, Bn as rankIndex, Br as OrmSchemaRelations, Bt as defineMigration, C as ConvexNumberBuilderInitial, Ci as ColumnBuilderWithTableName, Cn as RlsRole, Cr as MutationReturning, Ct as MigrationStatusArgs, D as id, Di as IsPrimaryKey, Dn as ConvexAggregateIndexBuilderOn, Dr as PaginatedResult, Dt as MigrationDoc, E as ConvexIdBuilderInitial, Ei as HasDefault, En as ConvexAggregateIndexBuilder, Er as OrderDirection, Et as MigrationDirection, F as custom, Fn as ConvexVectorIndexBuilder, Fr as unsetToken, Ft as MigrationStateMap, G as ConvexBigIntBuilder, Gn as ConvexCheckConfig, Gr as ExpressionVisitor, Gt as OrmReader$1, H as ConvexBooleanBuilder, Hn as uniqueIndex, Hr as TableName, Ht as detectMigrationDrift, I as json, In as ConvexVectorIndexBuilderOn, Ir as Brand, It as MigrationStep, J as CountBackfillChunkArgs, Jn as ConvexUniqueConstraintBuilder, Jr as LogicalExpression, Jt as RlsMode, K as ConvexBigIntBuilderInitial, Kn as ConvexForeignKeyBuilder, Kr as FieldReference, Kt as OrmWriter$1, L as objectOf, Ln as ConvexVectorIndexConfig, Lr as Columns, Lt as MigrationTableName, M as ConvexCustomBuilder, Mn as ConvexSearchIndexBuilder, Mr as UpdateSet, Mt as MigrationPlan, N as ConvexCustomBuilderInitial, Nn as ConvexSearchIndexBuilderOn, Nr as VectorQueryConfig, Nt as MigrationRunStatus, O as ConvexDateBuilder, Oi as IsUnique, On as ConvexIndexBuilder, Or as PredicateWhereIndexConfig, Ot as MigrationDocContext, P as arrayOf, Pn as ConvexSearchIndexConfig, Pr as VectorSearchProvider, Pt as MigrationSet, Q as GenericOrm$1, Qn as foreignKey, Qr as contains, Qt as ExtractTablesWithRelations, R as unionOf, Rn as aggregateIndex, Rr as OrmSchemaExtensionTables, Rt as MigrationWriteMode, S as ConvexNumberBuilder, Si as ColumnBuilderTypeConfig, Sn as rlsPolicy, Sr as MutationResult, St as MigrationRunChunkArgs, T as ConvexIdBuilder, Ti as DrizzleEntity, Tn as rlsRole, Tr as OrderByClause, Tt as MigrationDefinition, U as ConvexBooleanBuilderInitial, Un as vectorIndex, Ur as SystemFields, Ut as DatabaseWithMutations, V as bytes, Vn as searchIndex, Vr as OrmSchemaTriggers, Vt as defineMigrationSet, W as boolean, Wn as ConvexCheckBuilder, Wr as BinaryExpression, Wt as DatabaseWithQuery, X as CountBackfillStatusArgs, Xn as ConvexUniqueConstraintConfig, Xr as and, Xt as extractRelationsConfig, Y as CountBackfillKickoffArgs, Yn as ConvexUniqueConstraintBuilderOn, Yr as UnaryExpression, Yt as EdgeMetadata, Z as CreateOrmOptions, Zn as check, Zr as between, Zt as ExtractTablesFromSchema, _ as ConvexTimestampMode, _i as startsWith, _n as deletion, _r as MutationExecuteConfig, _t as OrmTriggerContext, a as requireSchemaRelations, ai as inArray, an as TablesRelationalConfig, ar as AggregateResult, at as OrmWriterCtx, b as ConvexTextEnumBuilderInitial, bi as ColumnBuilderBaseConfig, bn as RlsPolicyConfig, br as MutationPaginateConfig, bt as MigrationCancelArgs, c as TableConfigResult, ci as isNull, cn as ConvexDeletionBuilder, cr as CountConfig, ct as ScheduledMutationBatchArgs, d as OrmNotFoundError, di as lte, dn as ConvexTableWithColumns, dr as FilterOperators, dt as scheduledDeleteFactory, ei as eq, en as OneConfig, er as ConvexTextBuilder, et as OrmApiResult, f as ConvexVectorBuilder, fi as ne, fn as DiscriminatorBuilderConfig, fr as GetColumnData, ft as SchemaExtension, g as ConvexTimestampBuilderInitial, gi as or, gn as convexTable, gr as InsertValue, gt as OrmTriggerChange, h as ConvexTimestampBuilder, hi as notInArray, hn as TableConfig, hr as InferSelectModel, ht as OrmTableTriggers, i as getSchemaTriggers, ii as ilike, in as TableRelationalConfig, ir as AggregateFieldValue, it as OrmReaderCtx, j as date, jn as ConvexRankIndexBuilderOn, jr as ReturningSelection, jt as MigrationMigrateOne, k as ConvexDateBuilderInitial, ki as NotNull, kn as ConvexIndexBuilderOn, kr as ReturningAll, kt as MigrationDriftIssue, l as getTableColumns, li as like, ln as ConvexDeletionConfig, lr as CountResult, lt as scheduledMutationBatchFactory, m as vector, mi as notBetween, mn as OrmLifecycleOperation, mr as InferModelFromColumns, mt as OrmBeforeResult, n as defineSchema, ni as gt, nn as RelationsBuilderColumnBase, nr as text, nt as OrmClientWithApi$1, o as asc, oi as isFieldReference, on as defineRelations, or as BuildQueryResult, ot as ResolveOrmSchema, p as ConvexVectorBuilderInitial, pi as not, pn as OrmLifecycleChange, pr as InferInsertModel, pt as defineSchemaExtension, q as bigint, qn as ConvexForeignKeyConfig, qr as FilterExpression, qt as RlsContext, r as getSchemaRelations, ri as gte, rn as RelationsBuilderColumnConfig, rr as AggregateConfig, rt as OrmFunctions, s as desc, si as isNotNull, sn as defineRelationsPart, sr as BuildRelationResult, st as createOrm, t as WhereClauseResult, ti as fieldRef, tn as RelationsBuilder, tr as ConvexTextBuilderInitial, tt as OrmClientBase$1, u as getTableConfig, ui as lt, un as ConvexTable, ur as DBQueryConfig, ut as ScheduledDeleteArgs, v as timestamp, vi as AnyColumn, vn as discriminator, vr as MutationExecuteResult, vt as OrmTriggers, w as integer, wi as ColumnDataType, wn as RlsRoleConfig, wr as MutationRunMode, wt as MigrationAppliedState, x as textEnum, xi as ColumnBuilderRuntimeConfig, xn as RlsPolicyToOption, xr as MutationPaginatedResult, xt as MigrationRunArgs, y as ConvexTextEnumBuilder, yi as ColumnBuilder, yn as RlsPolicy, yr as MutationExecutionMode, yt as defineTriggers, z as ConvexBytesBuilder, zn as index, zr as OrmSchemaExtensions, zt as buildMigrationPlan } from "../where-clause-compiler-
|
|
1
|
+
import { $ as GenericOrmCtx$1, $n as unique, $r as endsWith, $t as ManyConfig, A as ConvexDateMode, An as ConvexRankIndexBuilder, Ar as ReturningResult, At as MigrationManifestEntry, B as ConvexBytesBuilderInitial, Bn as rankIndex, Br as OrmSchemaRelations, Bt as defineMigration, C as ConvexNumberBuilderInitial, Ci as ColumnBuilderWithTableName, Cn as RlsRole, Cr as MutationReturning, Ct as MigrationStatusArgs, D as id, Di as IsPrimaryKey, Dn as ConvexAggregateIndexBuilderOn, Dr as PaginatedResult, Dt as MigrationDoc, E as ConvexIdBuilderInitial, Ei as HasDefault, En as ConvexAggregateIndexBuilder, Er as OrderDirection, Et as MigrationDirection, F as custom, Fn as ConvexVectorIndexBuilder, Fr as unsetToken, Ft as MigrationStateMap, G as ConvexBigIntBuilder, Gn as ConvexCheckConfig, Gr as ExpressionVisitor, Gt as OrmReader$1, H as ConvexBooleanBuilder, Hn as uniqueIndex, Hr as TableName, Ht as detectMigrationDrift, I as json, In as ConvexVectorIndexBuilderOn, Ir as Brand, It as MigrationStep, J as CountBackfillChunkArgs, Jn as ConvexUniqueConstraintBuilder, Jr as LogicalExpression, Jt as RlsMode, K as ConvexBigIntBuilderInitial, Kn as ConvexForeignKeyBuilder, Kr as FieldReference, Kt as OrmWriter$1, L as objectOf, Ln as ConvexVectorIndexConfig, Lr as Columns, Lt as MigrationTableName, M as ConvexCustomBuilder, Mn as ConvexSearchIndexBuilder, Mr as UpdateSet, Mt as MigrationPlan, N as ConvexCustomBuilderInitial, Nn as ConvexSearchIndexBuilderOn, Nr as VectorQueryConfig, Nt as MigrationRunStatus, O as ConvexDateBuilder, Oi as IsUnique, On as ConvexIndexBuilder, Or as PredicateWhereIndexConfig, Ot as MigrationDocContext, P as arrayOf, Pn as ConvexSearchIndexConfig, Pr as VectorSearchProvider, Pt as MigrationSet, Q as GenericOrm$1, Qn as foreignKey, Qr as contains, Qt as ExtractTablesWithRelations, R as unionOf, Rn as aggregateIndex, Rr as OrmSchemaExtensionTables, Rt as MigrationWriteMode, S as ConvexNumberBuilder, Si as ColumnBuilderTypeConfig, Sn as rlsPolicy, Sr as MutationResult, St as MigrationRunChunkArgs, T as ConvexIdBuilder, Ti as DrizzleEntity, Tn as rlsRole, Tr as OrderByClause, Tt as MigrationDefinition, U as ConvexBooleanBuilderInitial, Un as vectorIndex, Ur as SystemFields, Ut as DatabaseWithMutations, V as bytes, Vn as searchIndex, Vr as OrmSchemaTriggers, Vt as defineMigrationSet, W as boolean, Wn as ConvexCheckBuilder, Wr as BinaryExpression, Wt as DatabaseWithQuery, X as CountBackfillStatusArgs, Xn as ConvexUniqueConstraintConfig, Xr as and, Xt as extractRelationsConfig, Y as CountBackfillKickoffArgs, Yn as ConvexUniqueConstraintBuilderOn, Yr as UnaryExpression, Yt as EdgeMetadata, Z as CreateOrmOptions, Zn as check, Zr as between, Zt as ExtractTablesFromSchema, _ as ConvexTimestampMode, _i as startsWith, _n as deletion, _r as MutationExecuteConfig, _t as OrmTriggerContext, a as requireSchemaRelations, ai as inArray, an as TablesRelationalConfig, ar as AggregateResult, at as OrmWriterCtx, b as ConvexTextEnumBuilderInitial, bi as ColumnBuilderBaseConfig, bn as RlsPolicyConfig, br as MutationPaginateConfig, bt as MigrationCancelArgs, c as TableConfigResult, ci as isNull, cn as ConvexDeletionBuilder, cr as CountConfig, ct as ScheduledMutationBatchArgs, d as OrmNotFoundError, di as lte, dn as ConvexTableWithColumns, dr as FilterOperators, dt as scheduledDeleteFactory, ei as eq, en as OneConfig, er as ConvexTextBuilder, et as OrmApiResult, f as ConvexVectorBuilder, fi as ne, fn as DiscriminatorBuilderConfig, fr as GetColumnData, ft as SchemaExtension, g as ConvexTimestampBuilderInitial, gi as or, gn as convexTable, gr as InsertValue, gt as OrmTriggerChange, h as ConvexTimestampBuilder, hi as notInArray, hn as TableConfig, hr as InferSelectModel, ht as OrmTableTriggers, i as getSchemaTriggers, ii as ilike, in as TableRelationalConfig, ir as AggregateFieldValue, it as OrmReaderCtx, j as date, jn as ConvexRankIndexBuilderOn, jr as ReturningSelection, jt as MigrationMigrateOne, k as ConvexDateBuilderInitial, ki as NotNull, kn as ConvexIndexBuilderOn, kr as ReturningAll, kt as MigrationDriftIssue, l as getTableColumns, li as like, ln as ConvexDeletionConfig, lr as CountResult, lt as scheduledMutationBatchFactory, m as vector, mi as notBetween, mn as OrmLifecycleOperation, mr as InferModelFromColumns, mt as OrmBeforeResult, n as defineSchema, ni as gt, nn as RelationsBuilderColumnBase, nr as text, nt as OrmClientWithApi$1, o as asc, oi as isFieldReference, on as defineRelations, or as BuildQueryResult, ot as ResolveOrmSchema, p as ConvexVectorBuilderInitial, pi as not, pn as OrmLifecycleChange, pr as InferInsertModel, pt as defineSchemaExtension, q as bigint, qn as ConvexForeignKeyConfig, qr as FilterExpression, qt as RlsContext, r as getSchemaRelations, ri as gte, rn as RelationsBuilderColumnConfig, rr as AggregateConfig, rt as OrmFunctions, s as desc, si as isNotNull, sn as defineRelationsPart, sr as BuildRelationResult, st as createOrm, t as WhereClauseResult, ti as fieldRef, tn as RelationsBuilder, tr as ConvexTextBuilderInitial, tt as OrmClientBase$1, u as getTableConfig, ui as lt, un as ConvexTable, ur as DBQueryConfig, ut as ScheduledDeleteArgs, v as timestamp, vi as AnyColumn, vn as discriminator, vr as MutationExecuteResult, vt as OrmTriggers, w as integer, wi as ColumnDataType, wn as RlsRoleConfig, wr as MutationRunMode, wt as MigrationAppliedState, x as textEnum, xi as ColumnBuilderRuntimeConfig, xn as RlsPolicyToOption, xr as MutationPaginatedResult, xt as MigrationRunArgs, y as ConvexTextEnumBuilder, yi as ColumnBuilder, yn as RlsPolicy, yr as MutationExecutionMode, yt as defineTriggers, z as ConvexBytesBuilder, zn as index, zr as OrmSchemaExtensions, zt as buildMigrationPlan } from "../where-clause-compiler-DKgRvIn_.js";
|
|
2
2
|
import { i as pretendRequired, n as deprecated, r as pretend } from "../validators-BhsByJeg.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-CNo9ffvI.js";
|
|
4
4
|
import { DefineSchemaOptions, GenericDatabaseReader, GenericDatabaseWriter, GenericSchema, SchemaDefinition } from "convex/server";
|
package/dist/orm/index.js
CHANGED
|
@@ -6386,8 +6386,7 @@ var GelRelationalQuery = class extends QueryPromise {
|
|
|
6386
6386
|
if (offset !== void 0 && typeof offset !== "number") throw new Error("Only numeric offset is supported in kitcn ORM.");
|
|
6387
6387
|
const ids = idLookup.kind === "in" ? Array.from(new Map(idLookup.ids.map((id) => [String(id), id])).values()) : [idLookup.id];
|
|
6388
6388
|
let rows = (await this._mapWithConcurrency(ids, async (id) => {
|
|
6389
|
-
|
|
6390
|
-
return this.db.get(id);
|
|
6389
|
+
return this._getById(this.tableConfig.name, id);
|
|
6391
6390
|
})).filter((row) => !!row);
|
|
6392
6391
|
rows = await this._applyRlsSelectFilter(rows, this.tableConfig);
|
|
6393
6392
|
if (orderSpecs.length > 0 && rows.length > 1) rows.sort((a, b) => this._compareByOrderSpecs(a, b, orderSpecs));
|
|
@@ -6945,6 +6944,11 @@ var GelRelationalQuery = class extends QueryPromise {
|
|
|
6945
6944
|
if (!this._allEdges) return [];
|
|
6946
6945
|
return this._allEdges.filter((edge) => edge.sourceTable === tableName);
|
|
6947
6946
|
}
|
|
6947
|
+
async _getById(tableName, id) {
|
|
6948
|
+
if (id === null || id === void 0) return null;
|
|
6949
|
+
const normalizedId = this.db.normalizeId(tableName, id);
|
|
6950
|
+
return normalizedId === null ? null : await this.db.get(normalizedId);
|
|
6951
|
+
}
|
|
6948
6952
|
_getRelationConcurrency() {
|
|
6949
6953
|
const value = this.relationLoading?.concurrency;
|
|
6950
6954
|
if (typeof value !== "number" || !Number.isFinite(value)) return 25;
|
|
@@ -7119,7 +7123,7 @@ var GelRelationalQuery = class extends QueryPromise {
|
|
|
7119
7123
|
const targetEntries = Array.from(targetKeyCounts.values());
|
|
7120
7124
|
return (await this._mapWithConcurrency(targetEntries, async ({ values, occurrences }) => {
|
|
7121
7125
|
let target = null;
|
|
7122
|
-
if (useGetById) target = await this.
|
|
7126
|
+
if (useGetById) target = await this._getById(edge.targetTable, values[0]);
|
|
7123
7127
|
else target = await this._queryByFields(this.db.query(edge.targetTable), targetFields, values, targetIndexName).first();
|
|
7124
7128
|
if (!target) return 0;
|
|
7125
7129
|
return this._evaluateTableFilter(target, targetTableConfig, whereRecord) ? occurrences : 0;
|
|
@@ -7202,7 +7206,7 @@ var GelRelationalQuery = class extends QueryPromise {
|
|
|
7202
7206
|
const entries = Array.from(sourceKeyMap.entries());
|
|
7203
7207
|
const fetched = await this._mapWithConcurrency(entries, async ([key, values]) => {
|
|
7204
7208
|
let target = null;
|
|
7205
|
-
if (useGetById) target = await this.
|
|
7209
|
+
if (useGetById) target = await this._getById(edge.targetTable, values[0]);
|
|
7206
7210
|
else target = await this._queryByFields(this.db.query(edge.targetTable), targetFields, values, indexName).first();
|
|
7207
7211
|
return {
|
|
7208
7212
|
key,
|
|
@@ -7326,7 +7330,7 @@ var GelRelationalQuery = class extends QueryPromise {
|
|
|
7326
7330
|
const targetEntries = Array.from(targetKeyMap.entries());
|
|
7327
7331
|
targets = (await this._mapWithConcurrency(targetEntries, async ([key, values]) => {
|
|
7328
7332
|
let target = null;
|
|
7329
|
-
if (useGetById) target = await this.
|
|
7333
|
+
if (useGetById) target = await this._getById(edge.targetTable, values[0]);
|
|
7330
7334
|
else target = await this._queryByFields(this.db.query(edge.targetTable), targetFields, values, targetIndexName).first();
|
|
7331
7335
|
return {
|
|
7332
7336
|
key,
|
package/dist/react/index.js
CHANGED
|
@@ -2159,6 +2159,10 @@ const getConvexQueryClientSingleton = ({ authStore, convex, queryClient, symbolK
|
|
|
2159
2159
|
return client;
|
|
2160
2160
|
};
|
|
2161
2161
|
|
|
2162
|
+
//#endregion
|
|
2163
|
+
//#region src/internal/pagination.ts
|
|
2164
|
+
const shouldSplitPaginationPage = (page, initialNumItems) => Boolean(page.splitCursor) && (page.pageStatus === "SplitRecommended" || page.pageStatus === "SplitRequired" || initialNumItems !== void 0 && page.page.length > initialNumItems * 2);
|
|
2165
|
+
|
|
2162
2166
|
//#endregion
|
|
2163
2167
|
//#region src/react/use-infinite-query.ts
|
|
2164
2168
|
/** biome-ignore-all lint/suspicious/noExplicitAny: Convex query/mutation type compatibility */
|
|
@@ -2453,7 +2457,7 @@ const useInfiniteQueryInternal = (query, args, options) => {
|
|
|
2453
2457
|
const page = pageQuery.data;
|
|
2454
2458
|
const pageKey = state.pageKeys[i];
|
|
2455
2459
|
const pageState = state.queries[pageKey];
|
|
2456
|
-
if (page
|
|
2460
|
+
if (shouldSplitPaginationPage(page, limit) && pageState && !pageState.endCursor) {
|
|
2457
2461
|
setState((prev) => {
|
|
2458
2462
|
const currentPageState = prev.queries[pageKey];
|
|
2459
2463
|
if (!currentPageState || currentPageState.endCursor) return prev;
|
|
@@ -2491,6 +2495,7 @@ const useInfiniteQueryInternal = (query, args, options) => {
|
|
|
2491
2495
|
state.pageKeys,
|
|
2492
2496
|
state.queries,
|
|
2493
2497
|
argsObject,
|
|
2498
|
+
limit,
|
|
2494
2499
|
setState
|
|
2495
2500
|
]);
|
|
2496
2501
|
const loadMore = useCallback((pageLimit) => {
|
package/dist/solid/index.js
CHANGED
|
@@ -2486,6 +2486,10 @@ const getConvexQueryClientSingleton = ({ authStore, convex, queryClient, symbolK
|
|
|
2486
2486
|
return client;
|
|
2487
2487
|
};
|
|
2488
2488
|
|
|
2489
|
+
//#endregion
|
|
2490
|
+
//#region src/internal/pagination.ts
|
|
2491
|
+
const shouldSplitPaginationPage = (page, initialNumItems) => Boolean(page.splitCursor) && (page.pageStatus === "SplitRecommended" || page.pageStatus === "SplitRequired" || initialNumItems !== void 0 && page.page.length > initialNumItems * 2);
|
|
2492
|
+
|
|
2489
2493
|
//#endregion
|
|
2490
2494
|
//#region src/solid/use-infinite-query.ts
|
|
2491
2495
|
const PAGINATION_KEY_PREFIX = "__pagination__";
|
|
@@ -2757,7 +2761,7 @@ const useInfiniteQueryInternal = (query, args, options) => {
|
|
|
2757
2761
|
const page = pageQuery.data;
|
|
2758
2762
|
const pageKey = state().pageKeys[i];
|
|
2759
2763
|
const pageState = state().queries[pageKey];
|
|
2760
|
-
if (page
|
|
2764
|
+
if (shouldSplitPaginationPage(page, limit) && pageState && !pageState.endCursor) {
|
|
2761
2765
|
setState((prev) => {
|
|
2762
2766
|
const currentPageState = prev.queries[pageKey];
|
|
2763
2767
|
if (!currentPageState || currentPageState.endCursor) return prev;
|
|
@@ -2543,6 +2543,7 @@ declare class GelRelationalQuery<TSchema extends TablesRelationalConfig, TTableC
|
|
|
2543
2543
|
* Helper for recursive relation loading
|
|
2544
2544
|
*/
|
|
2545
2545
|
private _getTargetTableEdges;
|
|
2546
|
+
private _getById;
|
|
2546
2547
|
private _getRelationConcurrency;
|
|
2547
2548
|
private _getRelationFanOutKeyCap;
|
|
2548
2549
|
private _enforceRelationFanOutKeyCap;
|
|
@@ -3726,7 +3727,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
3726
3727
|
fieldName: "count";
|
|
3727
3728
|
};
|
|
3728
3729
|
};
|
|
3729
|
-
|
|
3730
|
+
tableKey: ConvexTextBuilderInitial<""> & {
|
|
3730
3731
|
_: {
|
|
3731
3732
|
notNull: true;
|
|
3732
3733
|
};
|
|
@@ -3736,10 +3737,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
3736
3737
|
};
|
|
3737
3738
|
} & {
|
|
3738
3739
|
_: {
|
|
3739
|
-
fieldName: "
|
|
3740
|
+
fieldName: "tableKey";
|
|
3740
3741
|
};
|
|
3741
3742
|
};
|
|
3742
|
-
|
|
3743
|
+
indexName: ConvexTextBuilderInitial<""> & {
|
|
3743
3744
|
_: {
|
|
3744
3745
|
notNull: true;
|
|
3745
3746
|
};
|
|
@@ -3749,10 +3750,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
3749
3750
|
};
|
|
3750
3751
|
} & {
|
|
3751
3752
|
_: {
|
|
3752
|
-
fieldName: "
|
|
3753
|
+
fieldName: "indexName";
|
|
3753
3754
|
};
|
|
3754
3755
|
};
|
|
3755
|
-
|
|
3756
|
+
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
3756
3757
|
_: {
|
|
3757
3758
|
notNull: true;
|
|
3758
3759
|
};
|
|
@@ -3762,7 +3763,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
3762
3763
|
};
|
|
3763
3764
|
} & {
|
|
3764
3765
|
_: {
|
|
3765
|
-
fieldName: "
|
|
3766
|
+
fieldName: "updatedAt";
|
|
3766
3767
|
};
|
|
3767
3768
|
};
|
|
3768
3769
|
keyHash: ConvexTextBuilderInitial<""> & {
|
|
@@ -3835,7 +3836,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
3835
3836
|
fieldName: "kind";
|
|
3836
3837
|
};
|
|
3837
3838
|
};
|
|
3838
|
-
|
|
3839
|
+
tableKey: ConvexTextBuilderInitial<""> & {
|
|
3839
3840
|
_: {
|
|
3840
3841
|
notNull: true;
|
|
3841
3842
|
};
|
|
@@ -3845,10 +3846,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
3845
3846
|
};
|
|
3846
3847
|
} & {
|
|
3847
3848
|
_: {
|
|
3848
|
-
fieldName: "
|
|
3849
|
+
fieldName: "tableKey";
|
|
3849
3850
|
};
|
|
3850
3851
|
};
|
|
3851
|
-
|
|
3852
|
+
indexName: ConvexTextBuilderInitial<""> & {
|
|
3852
3853
|
_: {
|
|
3853
3854
|
notNull: true;
|
|
3854
3855
|
};
|
|
@@ -3858,10 +3859,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
3858
3859
|
};
|
|
3859
3860
|
} & {
|
|
3860
3861
|
_: {
|
|
3861
|
-
fieldName: "
|
|
3862
|
+
fieldName: "indexName";
|
|
3862
3863
|
};
|
|
3863
3864
|
};
|
|
3864
|
-
|
|
3865
|
+
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
3865
3866
|
_: {
|
|
3866
3867
|
notNull: true;
|
|
3867
3868
|
};
|
|
@@ -3871,7 +3872,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
3871
3872
|
};
|
|
3872
3873
|
} & {
|
|
3873
3874
|
_: {
|
|
3874
|
-
fieldName: "
|
|
3875
|
+
fieldName: "updatedAt";
|
|
3875
3876
|
};
|
|
3876
3877
|
};
|
|
3877
3878
|
keyHash: ConvexTextBuilderInitial<""> & {
|
|
@@ -4018,7 +4019,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4018
4019
|
fieldName: "count";
|
|
4019
4020
|
};
|
|
4020
4021
|
};
|
|
4021
|
-
|
|
4022
|
+
tableKey: ConvexTextBuilderInitial<""> & {
|
|
4022
4023
|
_: {
|
|
4023
4024
|
notNull: true;
|
|
4024
4025
|
};
|
|
@@ -4028,10 +4029,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4028
4029
|
};
|
|
4029
4030
|
} & {
|
|
4030
4031
|
_: {
|
|
4031
|
-
fieldName: "
|
|
4032
|
+
fieldName: "tableKey";
|
|
4032
4033
|
};
|
|
4033
4034
|
};
|
|
4034
|
-
|
|
4035
|
+
indexName: ConvexTextBuilderInitial<""> & {
|
|
4035
4036
|
_: {
|
|
4036
4037
|
notNull: true;
|
|
4037
4038
|
};
|
|
@@ -4041,10 +4042,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4041
4042
|
};
|
|
4042
4043
|
} & {
|
|
4043
4044
|
_: {
|
|
4044
|
-
fieldName: "
|
|
4045
|
+
fieldName: "indexName";
|
|
4045
4046
|
};
|
|
4046
4047
|
};
|
|
4047
|
-
|
|
4048
|
+
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
4048
4049
|
_: {
|
|
4049
4050
|
notNull: true;
|
|
4050
4051
|
};
|
|
@@ -4054,7 +4055,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4054
4055
|
};
|
|
4055
4056
|
} & {
|
|
4056
4057
|
_: {
|
|
4057
|
-
fieldName: "
|
|
4058
|
+
fieldName: "updatedAt";
|
|
4058
4059
|
};
|
|
4059
4060
|
};
|
|
4060
4061
|
keyHash: ConvexTextBuilderInitial<""> & {
|
|
@@ -4240,7 +4241,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4240
4241
|
readonly aggregate_state: ConvexTableWithColumns<{
|
|
4241
4242
|
name: "aggregate_state";
|
|
4242
4243
|
columns: {
|
|
4243
|
-
|
|
4244
|
+
status: ConvexTextBuilderInitial<""> & {
|
|
4244
4245
|
_: {
|
|
4245
4246
|
notNull: true;
|
|
4246
4247
|
};
|
|
@@ -4250,29 +4251,29 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4250
4251
|
};
|
|
4251
4252
|
} & {
|
|
4252
4253
|
_: {
|
|
4253
|
-
fieldName: "
|
|
4254
|
+
fieldName: "status";
|
|
4254
4255
|
};
|
|
4255
4256
|
};
|
|
4256
|
-
|
|
4257
|
+
kind: ConvexTextBuilderInitial<""> & {
|
|
4257
4258
|
_: {
|
|
4258
|
-
|
|
4259
|
+
notNull: true;
|
|
4259
4260
|
};
|
|
4260
4261
|
} & {
|
|
4261
4262
|
_: {
|
|
4262
|
-
|
|
4263
|
+
tableName: "aggregate_state";
|
|
4263
4264
|
};
|
|
4264
|
-
}
|
|
4265
|
-
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
4265
|
+
} & {
|
|
4266
4266
|
_: {
|
|
4267
|
-
|
|
4267
|
+
fieldName: "kind";
|
|
4268
4268
|
};
|
|
4269
|
-
}
|
|
4269
|
+
};
|
|
4270
|
+
cursor: ConvexTextBuilderInitial<""> & {
|
|
4270
4271
|
_: {
|
|
4271
4272
|
tableName: "aggregate_state";
|
|
4272
4273
|
};
|
|
4273
4274
|
} & {
|
|
4274
4275
|
_: {
|
|
4275
|
-
fieldName: "
|
|
4276
|
+
fieldName: "cursor";
|
|
4276
4277
|
};
|
|
4277
4278
|
};
|
|
4278
4279
|
tableKey: ConvexTextBuilderInitial<""> & {
|
|
@@ -4327,7 +4328,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4327
4328
|
fieldName: "metricDefinitionHash";
|
|
4328
4329
|
};
|
|
4329
4330
|
};
|
|
4330
|
-
|
|
4331
|
+
processed: ConvexNumberBuilderInitial<""> & {
|
|
4331
4332
|
_: {
|
|
4332
4333
|
notNull: true;
|
|
4333
4334
|
};
|
|
@@ -4337,10 +4338,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4337
4338
|
};
|
|
4338
4339
|
} & {
|
|
4339
4340
|
_: {
|
|
4340
|
-
fieldName: "
|
|
4341
|
+
fieldName: "processed";
|
|
4341
4342
|
};
|
|
4342
4343
|
};
|
|
4343
|
-
|
|
4344
|
+
startedAt: ConvexNumberBuilderInitial<""> & {
|
|
4344
4345
|
_: {
|
|
4345
4346
|
notNull: true;
|
|
4346
4347
|
};
|
|
@@ -4350,10 +4351,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4350
4351
|
};
|
|
4351
4352
|
} & {
|
|
4352
4353
|
_: {
|
|
4353
|
-
fieldName: "
|
|
4354
|
+
fieldName: "startedAt";
|
|
4354
4355
|
};
|
|
4355
4356
|
};
|
|
4356
|
-
|
|
4357
|
+
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
4357
4358
|
_: {
|
|
4358
4359
|
notNull: true;
|
|
4359
4360
|
};
|
|
@@ -4363,7 +4364,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4363
4364
|
};
|
|
4364
4365
|
} & {
|
|
4365
4366
|
_: {
|
|
4366
|
-
fieldName: "
|
|
4367
|
+
fieldName: "updatedAt";
|
|
4367
4368
|
};
|
|
4368
4369
|
};
|
|
4369
4370
|
completedAt: ConvexNumberBuilderInitial<""> & {
|
|
@@ -4394,6 +4395,19 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4394
4395
|
readonly migration_state: ConvexTableWithColumns<{
|
|
4395
4396
|
name: "migration_state";
|
|
4396
4397
|
columns: {
|
|
4398
|
+
status: ConvexTextBuilderInitial<""> & {
|
|
4399
|
+
_: {
|
|
4400
|
+
notNull: true;
|
|
4401
|
+
};
|
|
4402
|
+
} & {
|
|
4403
|
+
_: {
|
|
4404
|
+
tableName: "migration_state";
|
|
4405
|
+
};
|
|
4406
|
+
} & {
|
|
4407
|
+
_: {
|
|
4408
|
+
fieldName: "status";
|
|
4409
|
+
};
|
|
4410
|
+
};
|
|
4397
4411
|
cursor: ConvexTextBuilderInitial<""> & {
|
|
4398
4412
|
_: {
|
|
4399
4413
|
tableName: "migration_state";
|
|
@@ -4412,7 +4426,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4412
4426
|
fieldName: "direction";
|
|
4413
4427
|
};
|
|
4414
4428
|
};
|
|
4415
|
-
|
|
4429
|
+
processed: ConvexNumberBuilderInitial<""> & {
|
|
4416
4430
|
_: {
|
|
4417
4431
|
notNull: true;
|
|
4418
4432
|
};
|
|
@@ -4422,23 +4436,19 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4422
4436
|
};
|
|
4423
4437
|
} & {
|
|
4424
4438
|
_: {
|
|
4425
|
-
fieldName: "
|
|
4439
|
+
fieldName: "processed";
|
|
4426
4440
|
};
|
|
4427
4441
|
};
|
|
4428
|
-
|
|
4429
|
-
_: {
|
|
4430
|
-
notNull: true;
|
|
4431
|
-
};
|
|
4432
|
-
} & {
|
|
4442
|
+
startedAt: ConvexNumberBuilderInitial<""> & {
|
|
4433
4443
|
_: {
|
|
4434
4444
|
tableName: "migration_state";
|
|
4435
4445
|
};
|
|
4436
4446
|
} & {
|
|
4437
4447
|
_: {
|
|
4438
|
-
fieldName: "
|
|
4448
|
+
fieldName: "startedAt";
|
|
4439
4449
|
};
|
|
4440
4450
|
};
|
|
4441
|
-
|
|
4451
|
+
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
4442
4452
|
_: {
|
|
4443
4453
|
notNull: true;
|
|
4444
4454
|
};
|
|
@@ -4448,16 +4458,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4448
4458
|
};
|
|
4449
4459
|
} & {
|
|
4450
4460
|
_: {
|
|
4451
|
-
fieldName: "
|
|
4452
|
-
};
|
|
4453
|
-
};
|
|
4454
|
-
startedAt: ConvexNumberBuilderInitial<""> & {
|
|
4455
|
-
_: {
|
|
4456
|
-
tableName: "migration_state";
|
|
4457
|
-
};
|
|
4458
|
-
} & {
|
|
4459
|
-
_: {
|
|
4460
|
-
fieldName: "startedAt";
|
|
4461
|
+
fieldName: "updatedAt";
|
|
4461
4462
|
};
|
|
4462
4463
|
};
|
|
4463
4464
|
completedAt: ConvexNumberBuilderInitial<""> & {
|
|
@@ -4548,7 +4549,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4548
4549
|
readonly migration_run: ConvexTableWithColumns<{
|
|
4549
4550
|
name: "migration_run";
|
|
4550
4551
|
columns: {
|
|
4551
|
-
|
|
4552
|
+
status: ConvexTextBuilderInitial<""> & {
|
|
4552
4553
|
_: {
|
|
4553
4554
|
notNull: true;
|
|
4554
4555
|
};
|
|
@@ -4558,10 +4559,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4558
4559
|
};
|
|
4559
4560
|
} & {
|
|
4560
4561
|
_: {
|
|
4561
|
-
fieldName: "
|
|
4562
|
+
fieldName: "status";
|
|
4562
4563
|
};
|
|
4563
4564
|
};
|
|
4564
|
-
|
|
4565
|
+
direction: ConvexTextBuilderInitial<""> & {
|
|
4565
4566
|
_: {
|
|
4566
4567
|
notNull: true;
|
|
4567
4568
|
};
|
|
@@ -4571,10 +4572,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4571
4572
|
};
|
|
4572
4573
|
} & {
|
|
4573
4574
|
_: {
|
|
4574
|
-
fieldName: "
|
|
4575
|
+
fieldName: "direction";
|
|
4575
4576
|
};
|
|
4576
4577
|
};
|
|
4577
|
-
|
|
4578
|
+
startedAt: ConvexNumberBuilderInitial<""> & {
|
|
4578
4579
|
_: {
|
|
4579
4580
|
notNull: true;
|
|
4580
4581
|
};
|
|
@@ -4584,10 +4585,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4584
4585
|
};
|
|
4585
4586
|
} & {
|
|
4586
4587
|
_: {
|
|
4587
|
-
fieldName: "
|
|
4588
|
+
fieldName: "startedAt";
|
|
4588
4589
|
};
|
|
4589
4590
|
};
|
|
4590
|
-
|
|
4591
|
+
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
4591
4592
|
_: {
|
|
4592
4593
|
notNull: true;
|
|
4593
4594
|
};
|
|
@@ -4597,7 +4598,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4597
4598
|
};
|
|
4598
4599
|
} & {
|
|
4599
4600
|
_: {
|
|
4600
|
-
fieldName: "
|
|
4601
|
+
fieldName: "updatedAt";
|
|
4601
4602
|
};
|
|
4602
4603
|
};
|
|
4603
4604
|
completedAt: ConvexNumberBuilderInitial<""> & {
|