kitcn 0.30.0 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -0
- package/dist/aggregate/index.d.ts +2 -2
- package/dist/aggregate/index.js +1 -1
- package/dist/auth/generated/index.d.ts +1 -1
- package/dist/auth/generated/index.js +1 -1
- package/dist/auth/http/index.d.ts +1 -1
- package/dist/auth/index.d.ts +20 -20
- package/dist/auth/index.js +133 -9
- package/dist/auth/nextjs/index.d.ts +2 -2
- package/dist/auth/nextjs/index.js +3 -3
- package/dist/auth/start/server/index.d.ts +2 -2
- package/dist/auth/start/server/index.js +3 -3
- package/dist/{builder-CsAw-DK8.js → builder-Cyd5nCxZ.js} +2 -2
- package/dist/{caller-factory-D4pz5GcZ.js → caller-factory-C-N540BC.js} +3 -3
- package/dist/{capabilities-6PZBmvc8.d.ts → capabilities-DPB-JKlm.d.ts} +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/{create-schema-orm-HcJzGCxj.js → create-schema-orm-CwJD930B.js} +1 -1
- package/dist/crpc/index.d.ts +2 -2
- package/dist/crpc/index.js +3 -3
- package/dist/{customFunctions-ivbc6-_g.js → customFunctions-X_B4kET8.js} +64 -1
- package/dist/{definitions-DS8ZDc74.js → definitions-3PX4ywR-.js} +2 -2
- package/dist/{extensions-Blzsyekm.js → extensions-Bp0XHanR.js} +1 -1
- package/dist/{generated-contract-disabled-CgYQZCw2.d.ts → generated-contract-disabled-CTUQ9nxL.d.ts} +70 -41
- package/dist/{generated-contract-disabled-_1Mjg9pW.js → generated-contract-disabled-RyPYlwq0.js} +1 -0
- package/dist/{http-types-90mapMP9.d.ts → http-types-BhhPZtwa.d.ts} +2 -2
- package/dist/{id-CuSfWa5q.js → id-BVdWER1U.js} +1 -1
- package/dist/{filter-expression-Dydt8wS0.js → index-utils-C1DyktHe.js} +95 -1
- package/dist/{local-env-Dk8RJvt5.mjs → local-env-DGSkmXQk.mjs} +6 -0
- package/dist/{middleware-CE_MC6Gi.d.ts → middleware-BBS7oLtT.d.ts} +1 -1
- package/dist/{middleware-BvnabcNq.js → middleware-D61Nm-iB.js} +1 -1
- package/dist/orm/aggregate-index/index.d.ts +1 -1
- package/dist/orm/aggregate-index/index.js +4 -3
- package/dist/orm/index.d.ts +4 -4
- package/dist/orm/index.js +8 -7
- package/dist/orm/migrations/index.d.ts +2 -2
- package/dist/orm/migrations/index.js +1 -1
- package/dist/plugins/index.d.ts +1 -1
- package/dist/plugins/index.js +1 -1
- package/dist/{procedure-caller-BR-Wb0si.js → procedure-caller-DgMiD0-a.js} +2 -2
- package/dist/{procedure-name-l2YusEZI.d.ts → procedure-name-DPYyLiVS.d.ts} +3 -3
- package/dist/ratelimit/index.d.ts +2 -2
- package/dist/ratelimit/index.js +3 -3
- package/dist/rsc/index.d.ts +4 -4
- package/dist/rsc/index.js +4 -4
- package/dist/{runtime-CcOvOf4K.js → runtime-BcvcfaP8.js} +2 -2
- package/dist/{schema-D8ZZMSKd.js → schema-hL2FWCE7.js} +6 -97
- package/dist/server/index.d.ts +4 -4
- package/dist/server/index.js +4 -4
- package/dist/symbols-DDNAddkd.js +21 -0
- package/dist/{table-CX2lnX7e.js → table-d9o_n4R3.js} +2 -21
- package/dist/{token-B0NKKxqP.js → token-CuJopBdP.js} +1 -1
- package/dist/{types-In-ZZOsd.d.ts → types-BXpu7xIU.d.ts} +1 -1
- package/dist/watcher.mjs +1 -1
- package/dist/{where-clause-compiler-DvYSTJXe.d.ts → where-clause-compiler-Dddhscyy.d.ts} +57 -57
- package/package.json +1 -1
- /package/dist/{api-entry-CkDpGYVg.js → api-entry-Buvjl9hn.js} +0 -0
- /package/dist/{context-utils-DwZ3Cam1.d.ts → context-utils-Cbv4r0AA.d.ts} +0 -0
- /package/dist/{convex-plugin-Dic0l-k8.js → convex-plugin-AbNQl1Sg.js} +0 -0
- /package/dist/{create-schema-ojI-OH_9.js → create-schema-BmVH4gPc.js} +0 -0
- /package/dist/{error-CMLeCadS.js → error-Dyqhgbf6.js} +0 -0
- /package/dist/{meta-utils-D2lqN2Lg.js → meta-utils-Cc7neQOB.js} +0 -0
- /package/dist/{query-context-DJONf8X5.d.ts → query-context-BkNjkDCk.d.ts} +0 -0
- /package/dist/{query-context-DOm5Xm3H.js → query-context-DdSg3fuk.js} +0 -0
- /package/dist/{query-options-DUiOj01a.js → query-options-DGG93--5.js} +0 -0
- /package/dist/{token-kQaqFby4.d.ts → token-tlbNKQS0.d.ts} +0 -0
- /package/dist/{transformer-D8wO-kEj.js → transformer-C8lVwHNT.js} +0 -0
- /package/dist/{types-eNzQmbqM.d.ts → types-Bkeicpo6.d.ts} +0 -0
- /package/dist/{types-MHYXboyy.d.ts → types-Bqi_ivSd.d.ts} +0 -0
- /package/dist/{types-Bf3XQex5.d.ts → types-ex0-J-SC.d.ts} +0 -0
- /package/dist/{validators-wOIjhkfN.d.ts → validators-0I-Ik1EN.d.ts} +0 -0
|
@@ -1,100 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as id } from "./id-
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
1
|
+
import { _ as json, f as text, h as arrayOf, m as integer, s as index, t as convexTable, v as objectOf } from "./table-d9o_n4R3.js";
|
|
2
|
+
import { t as id } from "./id-BVdWER1U.js";
|
|
3
|
+
import { g as TablePolymorphic, h as TableName, i as OrmContext, m as TableDeleteConfig, n as Columns } from "./symbols-DDNAddkd.js";
|
|
4
|
+
import { E as filterValuesEqual, L as matchLikePattern, T as filterValueInList, d as INTERNAL_CREATION_TIME_FIELD, f as PUBLIC_CREATED_AT_FIELD, j as isFieldReference, m as usesSystemCreatedAtAlias, n as findIndexForColumns, p as hasUserCreatedAtColumn, s as getIndexes, t as findExactIndexForColumns, u as CREATED_AT_MIGRATION_MESSAGE, w as fieldRef } from "./index-utils-C1DyktHe.js";
|
|
5
|
+
import { t as defineSchemaExtension } from "./extensions-Bp0XHanR.js";
|
|
5
6
|
|
|
6
|
-
//#region src/orm/timestamp-mode.ts
|
|
7
|
-
const PUBLIC_CREATED_AT_FIELD = "createdAt";
|
|
8
|
-
const INTERNAL_CREATION_TIME_FIELD = "_creationTime";
|
|
9
|
-
const CREATED_AT_MIGRATION_MESSAGE = "`_creationTime` is no longer public. Use `createdAt` instead.";
|
|
10
|
-
const hasUserCreatedAtColumn = (table) => {
|
|
11
|
-
if (!table || typeof table !== "object") return false;
|
|
12
|
-
const columns = table[Columns];
|
|
13
|
-
if (!columns || typeof columns !== "object") return false;
|
|
14
|
-
return Object.hasOwn(columns, PUBLIC_CREATED_AT_FIELD);
|
|
15
|
-
};
|
|
16
|
-
const usesSystemCreatedAtAlias = (_table) => true;
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
|
-
//#region src/orm/index-utils.ts
|
|
20
|
-
function getIndexes(table) {
|
|
21
|
-
const indexes = table.getIndexes?.();
|
|
22
|
-
return Array.isArray(indexes) ? indexes : [];
|
|
23
|
-
}
|
|
24
|
-
function getAggregateIndexes(table) {
|
|
25
|
-
const indexes = table.getAggregateIndexes?.();
|
|
26
|
-
return Array.isArray(indexes) ? indexes : [];
|
|
27
|
-
}
|
|
28
|
-
function getRankIndexes(table) {
|
|
29
|
-
const indexes = table.getRankIndexes?.();
|
|
30
|
-
return Array.isArray(indexes) ? indexes : [];
|
|
31
|
-
}
|
|
32
|
-
function getSearchIndexes(table) {
|
|
33
|
-
const indexes = table.getSearchIndexes?.();
|
|
34
|
-
return Array.isArray(indexes) ? indexes : [];
|
|
35
|
-
}
|
|
36
|
-
function findSearchIndexByName(table, indexName) {
|
|
37
|
-
return getSearchIndexes(table).find((index) => index.name === indexName) ?? null;
|
|
38
|
-
}
|
|
39
|
-
function getVectorIndexes(table) {
|
|
40
|
-
const indexes = table.getVectorIndexes?.();
|
|
41
|
-
return Array.isArray(indexes) ? indexes : [];
|
|
42
|
-
}
|
|
43
|
-
function findVectorIndexByName(table, indexName) {
|
|
44
|
-
return getVectorIndexes(table).find((index) => index.name === indexName) ?? null;
|
|
45
|
-
}
|
|
46
|
-
function findIndexForColumns(indexes, columns) {
|
|
47
|
-
for (const index of indexes) if (hasColumnPrefix(index, columns)) return index.name;
|
|
48
|
-
return null;
|
|
49
|
-
}
|
|
50
|
-
function findExactIndexForColumns(indexes, columns) {
|
|
51
|
-
return indexes.find((candidate) => candidate.fields.length === columns.length && candidate.fields.every((field, position) => field === columns[position]))?.name ?? null;
|
|
52
|
-
}
|
|
53
|
-
const hasColumnPrefix = (index, columns) => {
|
|
54
|
-
if (index.fields.length < columns.length) return false;
|
|
55
|
-
for (let i = 0; i < columns.length; i += 1) if (index.fields[i] !== columns[i]) return false;
|
|
56
|
-
return true;
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* Answers "does scanning this index already produce the requested order?".
|
|
60
|
-
*
|
|
61
|
-
* Convex walks an index in full key order, so once a leading run of fields is
|
|
62
|
-
* pinned to a single value by `eq`, the remainder of the scan is already sorted
|
|
63
|
-
* by the next index field — and by `_creationTime` once every declared field is
|
|
64
|
-
* pinned, because Convex appends it as the implicit trailing key. When that
|
|
65
|
-
* field is the one the caller asked to sort by, `.order(dir).take(n)` returns
|
|
66
|
-
* the exact page and nothing has to be collected and sorted afterwards.
|
|
67
|
-
*
|
|
68
|
-
* This is the single owner of that decision. The top-level query planner and
|
|
69
|
-
* the relation loader both call it, so a bound one of them can push into the
|
|
70
|
-
* index can never be one the other silently drops.
|
|
71
|
-
*
|
|
72
|
-
* Returns the direction to hand to `.order()`, or null when the sort must run
|
|
73
|
-
* after the fetch.
|
|
74
|
-
*/
|
|
75
|
-
function resolveIndexOrderPushdown(params) {
|
|
76
|
-
const { indexFields, pinnedEqCount, orderSpecs } = params;
|
|
77
|
-
if (!indexFields || orderSpecs.length !== 1) return null;
|
|
78
|
-
const primary = orderSpecs[0];
|
|
79
|
-
const eqCount = Math.min(Math.max(pinnedEqCount, 0), indexFields.length);
|
|
80
|
-
for (let i = 0; i < eqCount; i += 1) if (indexFields[i] === primary.field) return primary.direction;
|
|
81
|
-
const nativeField = eqCount >= indexFields.length ? INTERNAL_CREATION_TIME_FIELD : indexFields[eqCount];
|
|
82
|
-
return primary.field === nativeField ? primary.direction : null;
|
|
83
|
-
}
|
|
84
|
-
function findRelationIndex(table, columns, relationName, targetTableName, strict = true, allowFullScan = false, orderSpecs = []) {
|
|
85
|
-
const indexes = getIndexes(table);
|
|
86
|
-
const fallbackIndex = findIndexForColumns(indexes, columns);
|
|
87
|
-
const index = (orderSpecs.length === 0 ? void 0 : indexes.find((candidate) => hasColumnPrefix(candidate, columns) && resolveIndexOrderPushdown({
|
|
88
|
-
indexFields: candidate.fields,
|
|
89
|
-
pinnedEqCount: columns.length,
|
|
90
|
-
orderSpecs
|
|
91
|
-
}) !== null))?.name ?? fallbackIndex;
|
|
92
|
-
if (!index && !allowFullScan) throw new Error(`Relation ${relationName} requires index on '${targetTableName}(${columns.join(", ")})'. Set allowFullScan: true to override.`);
|
|
93
|
-
if (!index && strict) console.warn(`Relation ${relationName} running without index (allowFullScan: true).`);
|
|
94
|
-
return index;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
//#endregion
|
|
98
7
|
//#region src/internal/concurrency.ts
|
|
99
8
|
/**
|
|
100
9
|
* Bounded-concurrency fan-out, shared by the ORM write path, relation loading
|
|
@@ -1533,4 +1442,4 @@ function aggregateExtension() {
|
|
|
1533
1442
|
}
|
|
1534
1443
|
|
|
1535
1444
|
//#endregion
|
|
1536
|
-
export { patchReferencingRows as $, enforcePolymorphicWrite as A, getForeignKeys as B, collectPrimaryIdLookupRows as C,
|
|
1445
|
+
export { patchReferencingRows as $, enforcePolymorphicWrite as A, getForeignKeys as B, collectPrimaryIdLookupRows as C, encodeUndefinedDeep as D, deserializeFilterExpression as E, evaluateCheckConstraintTriState as F, getTableColumns as G, getMutationCollectionLimits as H, evaluateFilter as I, getUniqueIndexes as J, getTableDeleteConfig as K, extractPrimaryIdLookup as L, ensureDefaultColumns as M, ensureNonNullValues as N, enforceCheckConstraints as O, ensureNullableColumns as P, normalizeTemporalComparableValue as Q, getChecks as R, collectMutationRowsBounded as S, decodeUndefinedDeep as T, getMutationExecutionMode as U, getMutationAsyncDelayMs as V, getOrmContext as W, hydrateDateFieldsForRead as X, hardDeleteRow as Y, normalizeDateFieldsForWrite as Z, applyDefaults as _, AGGREGATE_STATE_TABLE as a, splitReturningSelection as at, buildForeignKeyGraph as b, getAggregateIndexDefinitions as c, toConvexFilter as ct, COUNT_ERROR as d, markLifecycleHookedTables as dt, resolveOrmRuntimeDefaults as et, createAggregateError as f, compileConvexFilter as ft, ensureCountAllowedForRls as g, ensureAggregateAllowedForRls as h, mapWithConcurrency as ht, AGGREGATE_RANK_TREE_TABLE as i, softDeleteRow as it, enforceUniqueIndexes as j, enforceForeignKeys as k, getRankIndexDefinitions as l, unsetFieldsOf as lt, createError as m, isConvexEnforceableFilter as mt, AGGREGATE_EXTREMA_TABLE as n, selectReturningRowWithHydration as nt, aggregateExtension as o, stripUnsetFields as ot, createCountError as p, convexAnd as pt, getTableName as q, AGGREGATE_MEMBER_TABLE as r, serializeFilterExpression as rt, rankAggregateName as s, takeRowsWithinByteBudget as st, AGGREGATE_BUCKET_TABLE as t, returningSelectionReadsCreationTime as tt, AGGREGATE_ERROR as u, hasLifecycleHooks as ut, applyIncomingForeignKeyActionsOnDelete as v, createForeignKeyProbeMemo as w, canUsePrimaryIdLookupCursor as x, applyIncomingForeignKeyActionsOnUpdate as y, getColumnName as z };
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as ActionProcedureBuilder, A as CRPCError, B as RuntimeEnv, C as createProcedureHandlerFactory, Ct as zCustomQuery, D as WithHttpRouter, Dt as zodToConvex, E as typedProcedureResolver, Et as zodOutputToConvexFields, F as getCRPCErrorFromUnknown, G as createLazyCaller, H as ConvexContext, I as getHTTPStatusCodeFromError, J as ServerCaller, K as CallerMeta, L as isCRPCError, M as CRPCErrorData, N as CRPC_ERROR_CODES_BY_KEY, O as inferApiInputs, Ot as zodToConvexFields, P as CRPC_ERROR_CODE_TO_HTTP, Q as getGeneratedValue, R as toCRPCError, S as createProcedureCallerFactory, St as zCustomMutation, T as getGeneratedFunctionReference, Tt as zodOutputToConvex, U as createCallerFactory, V as createEnv, W as LazyCaller, X as createApiLeaf, Y as createServerCaller, Z as createGeneratedFunctionReference, _ as ProcedureSchedulableCallerFromRegistry, _t as ZodValidatorFromConvex, a as CreateProcedureCallerFactoryOptions, at as initCRPC, b as createGenericCallerFactory, bt as withSystemFields, c as GeneratedRegistryCallerFactory, ct as extractPathParams, d as GeneratedRegistryHandlerForContext, dt as ConvexValidatorFromZod, et as CRPCFunctionTypeHint, f as ProcedureActionCallerFromRegistry, ft as ConvexValidatorFromZodOutput, g as ProcedureFromFunctionReference, gt as ZodFromValidatorBase, h as ProcedureDefinition, ht as Zid, i as registerProcedureNameLookup, it as createMiddlewareFactory, j as CRPCErrorCode, k as inferApiOutputs, l as GeneratedRegistryCallerForContext, lt as handleHttpError, m as ProcedureCallerFromRegistry, mt as ZCustomCtx, n as ProcedureNameLookup, nt as ProcedureBuilder, o as GeneratedProcedureRegistry, ot as HttpProcedureBuilder, p as ProcedureCaller, pt as CustomBuilder, q as CallerOpts, r as inferProcedureNameFromCallsite, rt as QueryProcedureBuilder, s as GeneratedProcedureRegistryEntry, st as createHttpProcedureBuilder, t as ProcedureNameEntry, tt as MutationProcedureBuilder, u as GeneratedRegistryHandlerFactory, ut as matchPathParams, v as ProcedureScheduleCallerFromRegistry, vt as convexToZod, w as defineProcedure, wt as zid, x as createGenericHandlerFactory, xt as zCustomAction, y as createGeneratedRegistryRuntime, yt as convexToZodFields, z as CreateEnvOptions } from "../procedure-name-
|
|
2
|
-
import { A as HttpProcedureBuilderDef, C as extractRouteMap, D as HttpHandlerOpts, E as HttpActionHandler, M as InferHttpInput, N as ProcedureMeta, O as HttpMethod, S as createHttpRouterFactory, T as HttpActionConstructor, _ as CRPCHttpRouter, b as HttpRouterWithHono, j as HttpRouteDefinition, k as HttpProcedure, v as HttpRouterDef, w as CRPCHonoHandler, x as createHttpRouter, y as HttpRouterRecord } from "../http-types-
|
|
3
|
-
import { a as MergeZodObjects, c as MiddlewareMarker, d as MiddlewareProcedureType, f as MiddlewareResult, g as UnsetMarker, h as Simplify, i as IntersectIfDefined, l as MiddlewareNext, m as ResolveIfSet, n as AnyMiddlewareBuilder, o as MiddlewareBuilder, p as Overwrite, r as GetRawInputFn, s as MiddlewareFunction, t as AnyMiddleware, u as MiddlewareProcedureInfo } from "../types-
|
|
4
|
-
import { a as isMutationCtx, c as isSchedulerCtx, d as requireQueryCtx, f as requireRunMutationCtx, i as isActionCtx, l as requireActionCtx, n as RunMutationCtx, o as isQueryCtx, p as requireSchedulerCtx, r as SchedulerCtx, s as isRunMutationCtx, t as GenericCtx, u as requireMutationCtx } from "../context-utils-
|
|
1
|
+
import { $ as ActionProcedureBuilder, A as CRPCError, B as RuntimeEnv, C as createProcedureHandlerFactory, Ct as zCustomQuery, D as WithHttpRouter, Dt as zodToConvex, E as typedProcedureResolver, Et as zodOutputToConvexFields, F as getCRPCErrorFromUnknown, G as createLazyCaller, H as ConvexContext, I as getHTTPStatusCodeFromError, J as ServerCaller, K as CallerMeta, L as isCRPCError, M as CRPCErrorData, N as CRPC_ERROR_CODES_BY_KEY, O as inferApiInputs, Ot as zodToConvexFields, P as CRPC_ERROR_CODE_TO_HTTP, Q as getGeneratedValue, R as toCRPCError, S as createProcedureCallerFactory, St as zCustomMutation, T as getGeneratedFunctionReference, Tt as zodOutputToConvex, U as createCallerFactory, V as createEnv, W as LazyCaller, X as createApiLeaf, Y as createServerCaller, Z as createGeneratedFunctionReference, _ as ProcedureSchedulableCallerFromRegistry, _t as ZodValidatorFromConvex, a as CreateProcedureCallerFactoryOptions, at as initCRPC, b as createGenericCallerFactory, bt as withSystemFields, c as GeneratedRegistryCallerFactory, ct as extractPathParams, d as GeneratedRegistryHandlerForContext, dt as ConvexValidatorFromZod, et as CRPCFunctionTypeHint, f as ProcedureActionCallerFromRegistry, ft as ConvexValidatorFromZodOutput, g as ProcedureFromFunctionReference, gt as ZodFromValidatorBase, h as ProcedureDefinition, ht as Zid, i as registerProcedureNameLookup, it as createMiddlewareFactory, j as CRPCErrorCode, k as inferApiOutputs, l as GeneratedRegistryCallerForContext, lt as handleHttpError, m as ProcedureCallerFromRegistry, mt as ZCustomCtx, n as ProcedureNameLookup, nt as ProcedureBuilder, o as GeneratedProcedureRegistry, ot as HttpProcedureBuilder, p as ProcedureCaller, pt as CustomBuilder, q as CallerOpts, r as inferProcedureNameFromCallsite, rt as QueryProcedureBuilder, s as GeneratedProcedureRegistryEntry, st as createHttpProcedureBuilder, t as ProcedureNameEntry, tt as MutationProcedureBuilder, u as GeneratedRegistryHandlerFactory, ut as matchPathParams, v as ProcedureScheduleCallerFromRegistry, vt as convexToZod, w as defineProcedure, wt as zid, x as createGenericHandlerFactory, xt as zCustomAction, y as createGeneratedRegistryRuntime, yt as convexToZodFields, z as CreateEnvOptions } from "../procedure-name-DPYyLiVS.js";
|
|
2
|
+
import { A as HttpProcedureBuilderDef, C as extractRouteMap, D as HttpHandlerOpts, E as HttpActionHandler, M as InferHttpInput, N as ProcedureMeta, O as HttpMethod, S as createHttpRouterFactory, T as HttpActionConstructor, _ as CRPCHttpRouter, b as HttpRouterWithHono, j as HttpRouteDefinition, k as HttpProcedure, v as HttpRouterDef, w as CRPCHonoHandler, x as createHttpRouter, y as HttpRouterRecord } from "../http-types-BhhPZtwa.js";
|
|
3
|
+
import { a as MergeZodObjects, c as MiddlewareMarker, d as MiddlewareProcedureType, f as MiddlewareResult, g as UnsetMarker, h as Simplify, i as IntersectIfDefined, l as MiddlewareNext, m as ResolveIfSet, n as AnyMiddlewareBuilder, o as MiddlewareBuilder, p as Overwrite, r as GetRawInputFn, s as MiddlewareFunction, t as AnyMiddleware, u as MiddlewareProcedureInfo } from "../types-Bkeicpo6.js";
|
|
4
|
+
import { a as isMutationCtx, c as isSchedulerCtx, d as requireQueryCtx, f as requireRunMutationCtx, i as isActionCtx, l as requireActionCtx, n as RunMutationCtx, o as isQueryCtx, p as requireSchedulerCtx, r as SchedulerCtx, s as isRunMutationCtx, t as GenericCtx, u as requireMutationCtx } from "../context-utils-Cbv4r0AA.js";
|
|
5
5
|
export { ActionProcedureBuilder, AnyMiddleware, AnyMiddlewareBuilder, CRPCError, CRPCErrorCode, CRPCErrorData, CRPCFunctionTypeHint, CRPCHonoHandler, CRPCHttpRouter, CRPC_ERROR_CODES_BY_KEY, CRPC_ERROR_CODE_TO_HTTP, CallerMeta, CallerOpts, ConvexContext, ConvexValidatorFromZod, ConvexValidatorFromZodOutput, CreateEnvOptions, CreateProcedureCallerFactoryOptions, CustomBuilder, GeneratedProcedureRegistry, GeneratedProcedureRegistryEntry, GeneratedRegistryCallerFactory, GeneratedRegistryCallerForContext, GeneratedRegistryHandlerFactory, GeneratedRegistryHandlerForContext, GenericCtx, GetRawInputFn, HttpActionConstructor, HttpActionHandler, HttpHandlerOpts, HttpMethod, HttpProcedure, HttpProcedureBuilder, HttpProcedureBuilderDef, HttpRouteDefinition, HttpRouterDef, HttpRouterRecord, HttpRouterWithHono, InferHttpInput, IntersectIfDefined, LazyCaller, MergeZodObjects, MiddlewareBuilder, MiddlewareFunction, MiddlewareMarker, MiddlewareNext, MiddlewareProcedureInfo, MiddlewareProcedureType, MiddlewareResult, MutationProcedureBuilder, Overwrite, ProcedureActionCallerFromRegistry, ProcedureBuilder, ProcedureCaller, ProcedureCallerFromRegistry, ProcedureDefinition, ProcedureFromFunctionReference, ProcedureMeta, ProcedureNameEntry, ProcedureNameLookup, ProcedureSchedulableCallerFromRegistry, ProcedureScheduleCallerFromRegistry, QueryProcedureBuilder, ResolveIfSet, RunMutationCtx, RuntimeEnv, SchedulerCtx, ServerCaller, Simplify, UnsetMarker, WithHttpRouter, ZCustomCtx, Zid, ZodFromValidatorBase, ZodValidatorFromConvex, convexToZod, convexToZodFields, createApiLeaf, createCallerFactory, createEnv, createGeneratedFunctionReference, createGeneratedRegistryRuntime, createGenericCallerFactory, createGenericHandlerFactory, createHttpProcedureBuilder, createHttpRouter, createHttpRouterFactory, createLazyCaller, createMiddlewareFactory, createProcedureCallerFactory, createProcedureHandlerFactory, createServerCaller, defineProcedure, extractPathParams, extractRouteMap, getCRPCErrorFromUnknown, getGeneratedFunctionReference, getGeneratedValue, getHTTPStatusCodeFromError, handleHttpError, inferApiInputs, inferApiOutputs, inferProcedureNameFromCallsite, initCRPC, isActionCtx, isCRPCError, isMutationCtx, isQueryCtx, isRunMutationCtx, isSchedulerCtx, matchPathParams, registerProcedureNameLookup, requireActionCtx, requireMutationCtx, requireQueryCtx, requireRunMutationCtx, requireSchedulerCtx, toCRPCError, typedProcedureResolver, withSystemFields, zCustomAction, zCustomMutation, zCustomQuery, zid, zodOutputToConvex, zodOutputToConvexFields, zodToConvex, zodToConvexFields };
|
package/dist/server/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as isMutationCtx, c as isSchedulerCtx, d as requireQueryCtx, f as requireRunMutationCtx, i as isActionCtx, l as requireActionCtx, n as createGeneratedFunctionReference, o as isQueryCtx, p as requireSchedulerCtx, r as getGeneratedValue, s as isRunMutationCtx, t as createApiLeaf, u as requireMutationCtx } from "../api-entry-
|
|
2
|
-
import { n as createLazyCaller, r as createServerCaller, t as createCallerFactory } from "../caller-factory-
|
|
3
|
-
import { A as zid, C as toCRPCError, D as zCustomAction, E as withSystemFields, M as zodOutputToConvexFields, N as zodToConvex, O as zCustomMutation, P as zodToConvexFields, S as isCRPCError, T as convexToZodFields, _ as CRPCError, a as createMiddlewareFactory, b as getCRPCErrorFromUnknown, c as registerProcedureNameLookup, d as createHttpRouterFactory, f as extractRouteMap, g as matchPathParams, h as handleHttpError, i as QueryProcedureBuilder, j as zodOutputToConvex, k as zCustomQuery, l as HttpRouterWithHono, m as extractPathParams, n as MutationProcedureBuilder, o as initCRPC, p as createHttpProcedureBuilder, r as ProcedureBuilder, s as inferProcedureNameFromCallsite, t as ActionProcedureBuilder, u as createHttpRouter, v as CRPC_ERROR_CODES_BY_KEY, w as convexToZod, x as getHTTPStatusCodeFromError, y as CRPC_ERROR_CODE_TO_HTTP } from "../builder-
|
|
4
|
-
import { a as createProcedureHandlerFactory, c as typedProcedureResolver, i as createProcedureCallerFactory, l as createEnv, n as createGenericCallerFactory, o as defineProcedure, r as createGenericHandlerFactory, s as getGeneratedFunctionReference, t as createGeneratedRegistryRuntime } from "../procedure-caller-
|
|
1
|
+
import { a as isMutationCtx, c as isSchedulerCtx, d as requireQueryCtx, f as requireRunMutationCtx, i as isActionCtx, l as requireActionCtx, n as createGeneratedFunctionReference, o as isQueryCtx, p as requireSchedulerCtx, r as getGeneratedValue, s as isRunMutationCtx, t as createApiLeaf, u as requireMutationCtx } from "../api-entry-Buvjl9hn.js";
|
|
2
|
+
import { n as createLazyCaller, r as createServerCaller, t as createCallerFactory } from "../caller-factory-C-N540BC.js";
|
|
3
|
+
import { A as zid, C as toCRPCError, D as zCustomAction, E as withSystemFields, M as zodOutputToConvexFields, N as zodToConvex, O as zCustomMutation, P as zodToConvexFields, S as isCRPCError, T as convexToZodFields, _ as CRPCError, a as createMiddlewareFactory, b as getCRPCErrorFromUnknown, c as registerProcedureNameLookup, d as createHttpRouterFactory, f as extractRouteMap, g as matchPathParams, h as handleHttpError, i as QueryProcedureBuilder, j as zodOutputToConvex, k as zCustomQuery, l as HttpRouterWithHono, m as extractPathParams, n as MutationProcedureBuilder, o as initCRPC, p as createHttpProcedureBuilder, r as ProcedureBuilder, s as inferProcedureNameFromCallsite, t as ActionProcedureBuilder, u as createHttpRouter, v as CRPC_ERROR_CODES_BY_KEY, w as convexToZod, x as getHTTPStatusCodeFromError, y as CRPC_ERROR_CODE_TO_HTTP } from "../builder-Cyd5nCxZ.js";
|
|
4
|
+
import { a as createProcedureHandlerFactory, c as typedProcedureResolver, i as createProcedureCallerFactory, l as createEnv, n as createGenericCallerFactory, o as defineProcedure, r as createGenericHandlerFactory, s as getGeneratedFunctionReference, t as createGeneratedRegistryRuntime } from "../procedure-caller-DgMiD0-a.js";
|
|
5
5
|
|
|
6
6
|
export { ActionProcedureBuilder, CRPCError, CRPC_ERROR_CODES_BY_KEY, CRPC_ERROR_CODE_TO_HTTP, HttpRouterWithHono, MutationProcedureBuilder, ProcedureBuilder, QueryProcedureBuilder, convexToZod, convexToZodFields, createApiLeaf, createCallerFactory, createEnv, createGeneratedFunctionReference, createGeneratedRegistryRuntime, createGenericCallerFactory, createGenericHandlerFactory, createHttpProcedureBuilder, createHttpRouter, createHttpRouterFactory, createLazyCaller, createMiddlewareFactory, createProcedureCallerFactory, createProcedureHandlerFactory, createServerCaller, defineProcedure, extractPathParams, extractRouteMap, getCRPCErrorFromUnknown, getGeneratedFunctionReference, getGeneratedValue, getHTTPStatusCodeFromError, handleHttpError, inferProcedureNameFromCallsite, initCRPC, isActionCtx, isCRPCError, isMutationCtx, isQueryCtx, isRunMutationCtx, isSchedulerCtx, matchPathParams, registerProcedureNameLookup, requireActionCtx, requireMutationCtx, requireQueryCtx, requireRunMutationCtx, requireSchedulerCtx, toCRPCError, typedProcedureResolver, withSystemFields, zCustomAction, zCustomMutation, zCustomQuery, zid, zodOutputToConvex, zodOutputToConvexFields, zodToConvex, zodToConvexFields };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/orm/symbols.ts
|
|
2
|
+
const TableName = Symbol.for("kitcn:TableName");
|
|
3
|
+
const Columns = Symbol.for("kitcn:Columns");
|
|
4
|
+
const Brand = Symbol.for("kitcn:Brand");
|
|
5
|
+
const Relations = Symbol.for("kitcn:Relations");
|
|
6
|
+
const OrmContext = Symbol.for("kitcn:OrmContext");
|
|
7
|
+
const RlsPolicies = Symbol.for("kitcn:RlsPolicies");
|
|
8
|
+
const EnableRLS = Symbol.for("kitcn:EnableRLS");
|
|
9
|
+
const TableDeleteConfig = Symbol.for("kitcn:TableDeleteConfig");
|
|
10
|
+
const TablePolymorphic = Symbol.for("kitcn:TablePolymorphic");
|
|
11
|
+
const OrmSchemaOptions = Symbol.for("kitcn:OrmSchemaOptions");
|
|
12
|
+
const OrmSchemaDefinition = Symbol.for("kitcn:OrmSchemaDefinition");
|
|
13
|
+
const OrmSchemaExtensionTables = Symbol.for("kitcn:OrmSchemaExtensionTables");
|
|
14
|
+
const OrmSchemaExtensions = Symbol.for("kitcn:OrmSchemaExtensions");
|
|
15
|
+
const OrmSchemaExtensionRelations = Symbol.for("kitcn:OrmSchemaExtensionRelations");
|
|
16
|
+
const OrmSchemaExtensionTriggers = Symbol.for("kitcn:OrmSchemaExtensionTriggers");
|
|
17
|
+
const OrmSchemaRelations = Symbol.for("kitcn:OrmSchemaRelations");
|
|
18
|
+
const OrmSchemaTriggers = Symbol.for("kitcn:OrmSchemaTriggers");
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { OrmSchemaDefinition as a, OrmSchemaExtensionTriggers as c, OrmSchemaRelations as d, OrmSchemaTriggers as f, TablePolymorphic as g, TableName as h, OrmContext as i, OrmSchemaExtensions as l, TableDeleteConfig as m, Columns as n, OrmSchemaExtensionRelations as o, RlsPolicies as p, EnableRLS as r, OrmSchemaExtensionTables as s, Brand as t, OrmSchemaOptions as u };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { o as vRequired } from "./validators-CIoUYCqO.js";
|
|
2
|
+
import { g as TablePolymorphic, h as TableName, m as TableDeleteConfig, n as Columns, p as RlsPolicies, r as EnableRLS, t as Brand } from "./symbols-DDNAddkd.js";
|
|
2
3
|
import { v } from "convex/values";
|
|
3
4
|
|
|
4
5
|
//#region src/orm/builders/column-builder.ts
|
|
@@ -613,26 +614,6 @@ function isRlsPolicy(value) {
|
|
|
613
614
|
return !!value && typeof value === "object" && value[entityKind] === "RlsPolicy";
|
|
614
615
|
}
|
|
615
616
|
|
|
616
|
-
//#endregion
|
|
617
|
-
//#region src/orm/symbols.ts
|
|
618
|
-
const TableName = Symbol.for("kitcn:TableName");
|
|
619
|
-
const Columns = Symbol.for("kitcn:Columns");
|
|
620
|
-
const Brand = Symbol.for("kitcn:Brand");
|
|
621
|
-
const Relations = Symbol.for("kitcn:Relations");
|
|
622
|
-
const OrmContext = Symbol.for("kitcn:OrmContext");
|
|
623
|
-
const RlsPolicies = Symbol.for("kitcn:RlsPolicies");
|
|
624
|
-
const EnableRLS = Symbol.for("kitcn:EnableRLS");
|
|
625
|
-
const TableDeleteConfig = Symbol.for("kitcn:TableDeleteConfig");
|
|
626
|
-
const TablePolymorphic = Symbol.for("kitcn:TablePolymorphic");
|
|
627
|
-
const OrmSchemaOptions = Symbol.for("kitcn:OrmSchemaOptions");
|
|
628
|
-
const OrmSchemaDefinition = Symbol.for("kitcn:OrmSchemaDefinition");
|
|
629
|
-
const OrmSchemaExtensionTables = Symbol.for("kitcn:OrmSchemaExtensionTables");
|
|
630
|
-
const OrmSchemaExtensions = Symbol.for("kitcn:OrmSchemaExtensions");
|
|
631
|
-
const OrmSchemaExtensionRelations = Symbol.for("kitcn:OrmSchemaExtensionRelations");
|
|
632
|
-
const OrmSchemaExtensionTriggers = Symbol.for("kitcn:OrmSchemaExtensionTriggers");
|
|
633
|
-
const OrmSchemaRelations = Symbol.for("kitcn:OrmSchemaRelations");
|
|
634
|
-
const OrmSchemaTriggers = Symbol.for("kitcn:OrmSchemaTriggers");
|
|
635
|
-
|
|
636
617
|
//#endregion
|
|
637
618
|
//#region src/orm/table.ts
|
|
638
619
|
/**
|
|
@@ -1395,4 +1376,4 @@ const convexTableWithRLS = (name, columns, extraConfig) => {
|
|
|
1395
1376
|
const convexTable = Object.assign(convexTableInternal, { withRLS: convexTableWithRLS });
|
|
1396
1377
|
|
|
1397
1378
|
//#endregion
|
|
1398
|
-
export {
|
|
1379
|
+
export { json as _, rlsPolicy as a, ConvexColumnBuilder as b, rankIndex as c, vectorIndex as d, text as f, custom as g, arrayOf as h, RlsPolicy as i, searchIndex as l, integer as m, deletion as n, aggregateIndex as o, createSystemFields as p, discriminator as r, index as s, convexTable as t, uniqueIndex as u, objectOf as v, entityKind as x, unionOf as y };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as JWT_COOKIE_NAME } from "./convex-plugin-
|
|
1
|
+
import { t as JWT_COOKIE_NAME } from "./convex-plugin-AbNQl1Sg.js";
|
|
2
2
|
import { betterFetch } from "@better-fetch/fetch";
|
|
3
3
|
import { getSessionCookie } from "better-auth/cookies";
|
|
4
4
|
import * as jose from "jose";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as CombinedDataTransformer, r as HttpClientError } from "./http-types-
|
|
1
|
+
import { P as CombinedDataTransformer, r as HttpClientError } from "./http-types-BhhPZtwa.js";
|
|
2
2
|
import { FunctionArgs, FunctionReference, FunctionReturnType } from "convex/server";
|
|
3
3
|
|
|
4
4
|
//#region src/crpc/http-client.d.ts
|
package/dist/watcher.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as generateMeta, d as PARSE_SNAPSHOT_SUFFIX, i as resolveConfiguredBackend, n as withLocalCodegenEnv, o as getConvexConfig, r as loadCliConfig, u as logger } from "./local-env-
|
|
2
|
+
import { a as generateMeta, d as PARSE_SNAPSHOT_SUFFIX, i as resolveConfiguredBackend, n as withLocalCodegenEnv, o as getConvexConfig, r as loadCliConfig, u as logger } from "./local-env-DGSkmXQk.mjs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as OrmLifecycleChange, A as CreateDatabaseOptions, Ar as $Type, B as getUniqueIndexes, Ct as OrderByClause, F as CascadeMode, Ft as ExtractTablesFromSchema, Gn as Columns, Gt as TablesRelationalConfig, Ht as RelationsBuilderConfigValue, I as DeleteMode, Kn as OrmRuntimeDefaults, L as SerializedFilterExpression, Mr as ColumnBuilder, Mt as VectorSearchProvider, N as OrmReader, Nr as ColumnBuilderBaseConfig, Or as SystemFieldAliases, P as OrmWriter, Pt as AnyRelationsBuilderConfig, Qn as OrmSchemaTriggers, R as getChecks, U as EdgeMetadata, Un as ConvexColumnBuilder, Ur as entityKind, Ut as RelationsConfigWithSchema, Vn as ConvexTextBuilderInitial, Wt as TableRelationalConfig, Xt as ConvexTable, Yn as OrmSchemaExtensionTriggers, Zn as OrmSchemaRelations, Zt as ConvexTableWithColumns, an as RlsPolicy, dt as InferInsertModel, kr as SystemFields, pt as InferSelectModel, qn as OrmSchemaExtensionRelations, r as OrmCapability, rr as FilterExpression$1, x as MigrationSet, z as getForeignKeys, zr as HasDefault, zt as RelationsBuilder } from "./capabilities-
|
|
1
|
+
import { $t as OrmLifecycleChange, A as CreateDatabaseOptions, Ar as $Type, B as getUniqueIndexes, Ct as OrderByClause, F as CascadeMode, Ft as ExtractTablesFromSchema, Gn as Columns, Gt as TablesRelationalConfig, Ht as RelationsBuilderConfigValue, I as DeleteMode, Kn as OrmRuntimeDefaults, L as SerializedFilterExpression, Mr as ColumnBuilder, Mt as VectorSearchProvider, N as OrmReader, Nr as ColumnBuilderBaseConfig, Or as SystemFieldAliases, P as OrmWriter, Pt as AnyRelationsBuilderConfig, Qn as OrmSchemaTriggers, R as getChecks, U as EdgeMetadata, Un as ConvexColumnBuilder, Ur as entityKind, Ut as RelationsConfigWithSchema, Vn as ConvexTextBuilderInitial, Wt as TableRelationalConfig, Xt as ConvexTable, Yn as OrmSchemaExtensionTriggers, Zn as OrmSchemaRelations, Zt as ConvexTableWithColumns, an as RlsPolicy, dt as InferInsertModel, kr as SystemFields, pt as InferSelectModel, qn as OrmSchemaExtensionRelations, r as OrmCapability, rr as FilterExpression$1, x as MigrationSet, z as getForeignKeys, zr as HasDefault, zt as RelationsBuilder } from "./capabilities-DPB-JKlm.js";
|
|
2
2
|
import * as convex_values0 from "convex/values";
|
|
3
3
|
import { GenericId, Validator, Value } from "convex/values";
|
|
4
4
|
import { DefineSchemaOptions, GenericDatabaseReader, GenericDatabaseWriter, GenericSchema, SchedulableFunctionReference, Scheduler, SchemaDefinition, internalActionGeneric, internalMutationGeneric, internalQueryGeneric } from "convex/server";
|
|
@@ -111,15 +111,6 @@ declare const migrationStorageTables: {
|
|
|
111
111
|
fieldName: "direction";
|
|
112
112
|
};
|
|
113
113
|
};
|
|
114
|
-
cursor: ConvexTextBuilderInitial<""> & {
|
|
115
|
-
_: {
|
|
116
|
-
tableName: "migration_state";
|
|
117
|
-
};
|
|
118
|
-
} & {
|
|
119
|
-
_: {
|
|
120
|
-
fieldName: "cursor";
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
114
|
migrationId: ConvexTextBuilderInitial<""> & {
|
|
124
115
|
_: {
|
|
125
116
|
notNull: true;
|
|
@@ -168,6 +159,15 @@ declare const migrationStorageTables: {
|
|
|
168
159
|
fieldName: "runId";
|
|
169
160
|
};
|
|
170
161
|
};
|
|
162
|
+
cursor: ConvexTextBuilderInitial<""> & {
|
|
163
|
+
_: {
|
|
164
|
+
tableName: "migration_state";
|
|
165
|
+
};
|
|
166
|
+
} & {
|
|
167
|
+
_: {
|
|
168
|
+
fieldName: "cursor";
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
171
|
processed: ConvexNumberBuilderInitial<""> & {
|
|
172
172
|
_: {
|
|
173
173
|
notNull: true;
|
|
@@ -1011,7 +1011,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1011
1011
|
readonly aggregate_bucket: ConvexTableWithColumns<{
|
|
1012
1012
|
name: "aggregate_bucket";
|
|
1013
1013
|
columns: {
|
|
1014
|
-
|
|
1014
|
+
count: ConvexNumberBuilderInitial<""> & {
|
|
1015
1015
|
_: {
|
|
1016
1016
|
notNull: true;
|
|
1017
1017
|
};
|
|
@@ -1021,10 +1021,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1021
1021
|
};
|
|
1022
1022
|
} & {
|
|
1023
1023
|
_: {
|
|
1024
|
-
fieldName: "
|
|
1024
|
+
fieldName: "count";
|
|
1025
1025
|
};
|
|
1026
1026
|
};
|
|
1027
|
-
|
|
1027
|
+
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
1028
1028
|
_: {
|
|
1029
1029
|
notNull: true;
|
|
1030
1030
|
};
|
|
@@ -1034,10 +1034,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1034
1034
|
};
|
|
1035
1035
|
} & {
|
|
1036
1036
|
_: {
|
|
1037
|
-
fieldName: "
|
|
1037
|
+
fieldName: "updatedAt";
|
|
1038
1038
|
};
|
|
1039
1039
|
};
|
|
1040
|
-
|
|
1040
|
+
indexName: ConvexTextBuilderInitial<""> & {
|
|
1041
1041
|
_: {
|
|
1042
1042
|
notNull: true;
|
|
1043
1043
|
};
|
|
@@ -1047,10 +1047,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1047
1047
|
};
|
|
1048
1048
|
} & {
|
|
1049
1049
|
_: {
|
|
1050
|
-
fieldName: "
|
|
1050
|
+
fieldName: "indexName";
|
|
1051
1051
|
};
|
|
1052
1052
|
};
|
|
1053
|
-
|
|
1053
|
+
tableKey: ConvexTextBuilderInitial<""> & {
|
|
1054
1054
|
_: {
|
|
1055
1055
|
notNull: true;
|
|
1056
1056
|
};
|
|
@@ -1060,7 +1060,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1060
1060
|
};
|
|
1061
1061
|
} & {
|
|
1062
1062
|
_: {
|
|
1063
|
-
fieldName: "
|
|
1063
|
+
fieldName: "tableKey";
|
|
1064
1064
|
};
|
|
1065
1065
|
};
|
|
1066
1066
|
keyHash: ConvexTextBuilderInitial<""> & {
|
|
@@ -1136,7 +1136,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1136
1136
|
readonly aggregate_member: ConvexTableWithColumns<{
|
|
1137
1137
|
name: "aggregate_member";
|
|
1138
1138
|
columns: {
|
|
1139
|
-
|
|
1139
|
+
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
1140
1140
|
_: {
|
|
1141
1141
|
notNull: true;
|
|
1142
1142
|
};
|
|
@@ -1146,10 +1146,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1146
1146
|
};
|
|
1147
1147
|
} & {
|
|
1148
1148
|
_: {
|
|
1149
|
-
fieldName: "
|
|
1149
|
+
fieldName: "updatedAt";
|
|
1150
1150
|
};
|
|
1151
1151
|
};
|
|
1152
|
-
|
|
1152
|
+
kind: ConvexTextBuilderInitial<""> & {
|
|
1153
1153
|
_: {
|
|
1154
1154
|
notNull: true;
|
|
1155
1155
|
};
|
|
@@ -1159,7 +1159,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1159
1159
|
};
|
|
1160
1160
|
} & {
|
|
1161
1161
|
_: {
|
|
1162
|
-
fieldName: "
|
|
1162
|
+
fieldName: "kind";
|
|
1163
1163
|
};
|
|
1164
1164
|
};
|
|
1165
1165
|
indexName: ConvexTextBuilderInitial<""> & {
|
|
@@ -1326,6 +1326,19 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1326
1326
|
readonly aggregate_extrema: ConvexTableWithColumns<{
|
|
1327
1327
|
name: "aggregate_extrema";
|
|
1328
1328
|
columns: {
|
|
1329
|
+
count: ConvexNumberBuilderInitial<""> & {
|
|
1330
|
+
_: {
|
|
1331
|
+
notNull: true;
|
|
1332
|
+
};
|
|
1333
|
+
} & {
|
|
1334
|
+
_: {
|
|
1335
|
+
tableName: "aggregate_extrema";
|
|
1336
|
+
};
|
|
1337
|
+
} & {
|
|
1338
|
+
_: {
|
|
1339
|
+
fieldName: "count";
|
|
1340
|
+
};
|
|
1341
|
+
};
|
|
1329
1342
|
value: ConvexCustomBuilderInitial<"", convex_values0.VAny<any, "required", string>> & {
|
|
1330
1343
|
_: {
|
|
1331
1344
|
$type: convex_values0.Value;
|
|
@@ -1382,19 +1395,6 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1382
1395
|
fieldName: "tableKey";
|
|
1383
1396
|
};
|
|
1384
1397
|
};
|
|
1385
|
-
count: ConvexNumberBuilderInitial<""> & {
|
|
1386
|
-
_: {
|
|
1387
|
-
notNull: true;
|
|
1388
|
-
};
|
|
1389
|
-
} & {
|
|
1390
|
-
_: {
|
|
1391
|
-
tableName: "aggregate_extrema";
|
|
1392
|
-
};
|
|
1393
|
-
} & {
|
|
1394
|
-
_: {
|
|
1395
|
-
fieldName: "count";
|
|
1396
|
-
};
|
|
1397
|
-
};
|
|
1398
1398
|
keyHash: ConvexTextBuilderInitial<""> & {
|
|
1399
1399
|
_: {
|
|
1400
1400
|
notNull: true;
|
|
@@ -1592,19 +1592,6 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1592
1592
|
fieldName: "status";
|
|
1593
1593
|
};
|
|
1594
1594
|
};
|
|
1595
|
-
kind: ConvexTextBuilderInitial<""> & {
|
|
1596
|
-
_: {
|
|
1597
|
-
notNull: true;
|
|
1598
|
-
};
|
|
1599
|
-
} & {
|
|
1600
|
-
_: {
|
|
1601
|
-
tableName: "aggregate_state";
|
|
1602
|
-
};
|
|
1603
|
-
} & {
|
|
1604
|
-
_: {
|
|
1605
|
-
fieldName: "kind";
|
|
1606
|
-
};
|
|
1607
|
-
};
|
|
1608
1595
|
cursor: ConvexTextBuilderInitial<""> & {
|
|
1609
1596
|
_: {
|
|
1610
1597
|
tableName: "aggregate_state";
|
|
@@ -1671,6 +1658,19 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1671
1658
|
fieldName: "lastError";
|
|
1672
1659
|
};
|
|
1673
1660
|
};
|
|
1661
|
+
kind: ConvexTextBuilderInitial<""> & {
|
|
1662
|
+
_: {
|
|
1663
|
+
notNull: true;
|
|
1664
|
+
};
|
|
1665
|
+
} & {
|
|
1666
|
+
_: {
|
|
1667
|
+
tableName: "aggregate_state";
|
|
1668
|
+
};
|
|
1669
|
+
} & {
|
|
1670
|
+
_: {
|
|
1671
|
+
fieldName: "kind";
|
|
1672
|
+
};
|
|
1673
|
+
};
|
|
1674
1674
|
indexName: ConvexTextBuilderInitial<""> & {
|
|
1675
1675
|
_: {
|
|
1676
1676
|
notNull: true;
|
|
@@ -1756,15 +1756,6 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1756
1756
|
fieldName: "direction";
|
|
1757
1757
|
};
|
|
1758
1758
|
};
|
|
1759
|
-
cursor: ConvexTextBuilderInitial<""> & {
|
|
1760
|
-
_: {
|
|
1761
|
-
tableName: "migration_state";
|
|
1762
|
-
};
|
|
1763
|
-
} & {
|
|
1764
|
-
_: {
|
|
1765
|
-
fieldName: "cursor";
|
|
1766
|
-
};
|
|
1767
|
-
};
|
|
1768
1759
|
migrationId: ConvexTextBuilderInitial<""> & {
|
|
1769
1760
|
_: {
|
|
1770
1761
|
notNull: true;
|
|
@@ -1813,6 +1804,15 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1813
1804
|
fieldName: "runId";
|
|
1814
1805
|
};
|
|
1815
1806
|
};
|
|
1807
|
+
cursor: ConvexTextBuilderInitial<""> & {
|
|
1808
|
+
_: {
|
|
1809
|
+
tableName: "migration_state";
|
|
1810
|
+
};
|
|
1811
|
+
} & {
|
|
1812
|
+
_: {
|
|
1813
|
+
fieldName: "cursor";
|
|
1814
|
+
};
|
|
1815
|
+
};
|
|
1816
1816
|
processed: ConvexNumberBuilderInitial<""> & {
|
|
1817
1817
|
_: {
|
|
1818
1818
|
notNull: true;
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|