kitcn 0.15.17 → 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-D0D_4v_n.js";
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";
@@ -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-D0D_4v_n.js";
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
- if (id === null || id === void 0) return null;
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.db.get(values[0]);
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.db.get(values[0]);
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.db.get(values[0]);
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,
@@ -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
- updatedAt: ConvexNumberBuilderInitial<""> & {
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: "updatedAt";
3740
+ fieldName: "tableKey";
3740
3741
  };
3741
3742
  };
3742
- tableKey: ConvexTextBuilderInitial<""> & {
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: "tableKey";
3753
+ fieldName: "indexName";
3753
3754
  };
3754
3755
  };
3755
- indexName: ConvexTextBuilderInitial<""> & {
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: "indexName";
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
- updatedAt: ConvexNumberBuilderInitial<""> & {
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: "updatedAt";
3849
+ fieldName: "tableKey";
3849
3850
  };
3850
3851
  };
3851
- tableKey: ConvexTextBuilderInitial<""> & {
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: "tableKey";
3862
+ fieldName: "indexName";
3862
3863
  };
3863
3864
  };
3864
- indexName: ConvexTextBuilderInitial<""> & {
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: "indexName";
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
- updatedAt: ConvexNumberBuilderInitial<""> & {
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: "updatedAt";
4032
+ fieldName: "tableKey";
4032
4033
  };
4033
4034
  };
4034
- tableKey: ConvexTextBuilderInitial<""> & {
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: "tableKey";
4045
+ fieldName: "indexName";
4045
4046
  };
4046
4047
  };
4047
- indexName: ConvexTextBuilderInitial<""> & {
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: "indexName";
4058
+ fieldName: "updatedAt";
4058
4059
  };
4059
4060
  };
4060
4061
  keyHash: ConvexTextBuilderInitial<""> & {
@@ -4275,19 +4276,6 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
4275
4276
  fieldName: "cursor";
4276
4277
  };
4277
4278
  };
4278
- updatedAt: ConvexNumberBuilderInitial<""> & {
4279
- _: {
4280
- notNull: true;
4281
- };
4282
- } & {
4283
- _: {
4284
- tableName: "aggregate_state";
4285
- };
4286
- } & {
4287
- _: {
4288
- fieldName: "updatedAt";
4289
- };
4290
- };
4291
4279
  tableKey: ConvexTextBuilderInitial<""> & {
4292
4280
  _: {
4293
4281
  notNull: true;
@@ -4366,6 +4354,19 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
4366
4354
  fieldName: "startedAt";
4367
4355
  };
4368
4356
  };
4357
+ updatedAt: ConvexNumberBuilderInitial<""> & {
4358
+ _: {
4359
+ notNull: true;
4360
+ };
4361
+ } & {
4362
+ _: {
4363
+ tableName: "aggregate_state";
4364
+ };
4365
+ } & {
4366
+ _: {
4367
+ fieldName: "updatedAt";
4368
+ };
4369
+ };
4369
4370
  completedAt: ConvexNumberBuilderInitial<""> & {
4370
4371
  _: {
4371
4372
  tableName: "aggregate_state";
@@ -4425,7 +4426,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
4425
4426
  fieldName: "direction";
4426
4427
  };
4427
4428
  };
4428
- updatedAt: ConvexNumberBuilderInitial<""> & {
4429
+ processed: ConvexNumberBuilderInitial<""> & {
4429
4430
  _: {
4430
4431
  notNull: true;
4431
4432
  };
@@ -4435,29 +4436,29 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
4435
4436
  };
4436
4437
  } & {
4437
4438
  _: {
4438
- fieldName: "updatedAt";
4439
+ fieldName: "processed";
4439
4440
  };
4440
4441
  };
4441
- processed: ConvexNumberBuilderInitial<""> & {
4442
- _: {
4443
- notNull: true;
4444
- };
4445
- } & {
4442
+ startedAt: ConvexNumberBuilderInitial<""> & {
4446
4443
  _: {
4447
4444
  tableName: "migration_state";
4448
4445
  };
4449
4446
  } & {
4450
4447
  _: {
4451
- fieldName: "processed";
4448
+ fieldName: "startedAt";
4452
4449
  };
4453
4450
  };
4454
- startedAt: ConvexNumberBuilderInitial<""> & {
4451
+ updatedAt: ConvexNumberBuilderInitial<""> & {
4452
+ _: {
4453
+ notNull: true;
4454
+ };
4455
+ } & {
4455
4456
  _: {
4456
4457
  tableName: "migration_state";
4457
4458
  };
4458
4459
  } & {
4459
4460
  _: {
4460
- fieldName: "startedAt";
4461
+ fieldName: "updatedAt";
4461
4462
  };
4462
4463
  };
4463
4464
  completedAt: ConvexNumberBuilderInitial<""> & {
@@ -4574,7 +4575,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
4574
4575
  fieldName: "direction";
4575
4576
  };
4576
4577
  };
4577
- updatedAt: ConvexNumberBuilderInitial<""> & {
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: "updatedAt";
4588
+ fieldName: "startedAt";
4588
4589
  };
4589
4590
  };
4590
- startedAt: ConvexNumberBuilderInitial<""> & {
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: "startedAt";
4601
+ fieldName: "updatedAt";
4601
4602
  };
4602
4603
  };
4603
4604
  completedAt: ConvexNumberBuilderInitial<""> & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kitcn",
3
- "version": "0.15.17",
3
+ "version": "0.15.18",
4
4
  "description": "kitcn - React Query integration and CLI tools for Convex",
5
5
  "keywords": [
6
6
  "convex",