kitcn 0.33.2 → 0.33.3
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 +11 -0
- package/dist/aggregate/index.d.ts +1 -1
- package/dist/auth/client/index.js +1 -1
- package/dist/auth/generated/index.d.ts +1 -1
- package/dist/auth/index.d.ts +15 -15
- package/dist/auth/nextjs/index.js +2 -2
- package/dist/auth/start/server/index.js +2 -2
- package/dist/{auth-store-BnsWs1xd.js → auth-store-x3_wvhTR.js} +17 -2
- package/dist/{caller-factory-C-N540BC.js → caller-factory-CEKbQdGY.js} +1 -1
- package/dist/crpc/index.d.ts +7 -2
- package/dist/crpc/index.js +1 -1
- package/dist/{error-Dyqhgbf6.js → error-CLgc9khF.js} +18 -3
- package/dist/{generated-contract-disabled-CTUQ9nxL.d.ts → generated-contract-disabled-BPjuEPZD.d.ts} +40 -40
- package/dist/orm/index.d.ts +1 -1
- package/dist/orm/migrations/index.d.ts +1 -1
- package/dist/react/index.js +1 -1
- package/dist/rsc/index.js +1 -1
- package/dist/server/index.js +1 -1
- package/dist/solid/index.js +17 -2
- package/dist/{where-clause-compiler-B0kyVGzW.d.ts → where-clause-compiler-jhCEPHxi.d.ts} +115 -115
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# kitcn
|
|
2
2
|
|
|
3
|
+
## 0.33.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#464](https://github.com/udecode/kitcn/pull/464) [`ac73cc6`](https://github.com/udecode/kitcn/commit/ac73cc6a9ffcb95a6d4ce89f9ef9a591eeacf883) Thanks [@tjramage](https://github.com/tjramage)! - ## Patches
|
|
8
|
+
|
|
9
|
+
- Fix cRPC client-error guards (`isCRPCClientError`, `isCRPCError`,
|
|
10
|
+
`isCRPCErrorCode`) rejecting errors thrown through other entrypoints such as
|
|
11
|
+
`kitcn/react` and `kitcn/solid`, so deterministic refusals like
|
|
12
|
+
`UNAUTHORIZED` are no longer retried as transport failures.
|
|
13
|
+
|
|
3
14
|
## 0.33.2
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Vn as ConvexTextBuilderInitial, Zt as ConvexTableWithColumns } from "../capabilities-Bxzoofl4.js";
|
|
2
|
-
import { C as ConvexNumberBuilderInitial, E as ConvexIdBuilderInitial, N as ConvexCustomBuilderInitial } from "../where-clause-compiler-
|
|
2
|
+
import { C as ConvexNumberBuilderInitial, E as ConvexIdBuilderInitial, N as ConvexCustomBuilderInitial } from "../where-clause-compiler-jhCEPHxi.js";
|
|
3
3
|
import * as convex_values0 from "convex/values";
|
|
4
4
|
import { GenericId, Infer, Value } from "convex/values";
|
|
5
5
|
import { DocumentByName, GenericDataModel, GenericDatabaseReader, GenericDatabaseWriter, TableNamesInDataModel } from "convex/server";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { A as CRPCClientError, C as decodeJwtExp, D as readAuthSessionFallbackToken, E as readAuthSessionFallbackData, O as writeAuthSessionFallbackData, T as clearAuthSessionFallback, d as isSessionSyncGraceActive, g as useAuthValue, h as useAuthStore, j as defaultIsUnauthorized, n as AuthProvider, o as ConvexProviderWithAuth$1, s as FetchAccessTokenContext, t as AUTH_SESSION_SYNC_GRACE_MS } from "../../auth-store-
|
|
2
|
+
import { A as CRPCClientError, C as decodeJwtExp, D as readAuthSessionFallbackToken, E as readAuthSessionFallbackData, O as writeAuthSessionFallbackData, T as clearAuthSessionFallback, d as isSessionSyncGraceActive, g as useAuthValue, h as useAuthStore, j as defaultIsUnauthorized, n as AuthProvider, o as ConvexProviderWithAuth$1, s as FetchAccessTokenContext, t as AUTH_SESSION_SYNC_GRACE_MS } from "../../auth-store-x3_wvhTR.js";
|
|
3
3
|
import { useConvexAuth } from "convex/react";
|
|
4
4
|
import { useCallback, useEffect, useMemo, useRef } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as GenericAuthTriggerHandlers, S as GenericAuthTriggerChange, T as defineAuth, b as GenericAuthBeforeResult, i as getGeneratedAuthDisabledReason, n as GeneratedAuthDisabledReasonKind, r as createDisabledAuthRuntime, t as AuthRuntime, w as GenericAuthTriggers, x as GenericAuthDefinition, y as BetterAuthOptionsWithoutDatabase } from "../../generated-contract-disabled-
|
|
1
|
+
import { C as GenericAuthTriggerHandlers, S as GenericAuthTriggerChange, T as defineAuth, b as GenericAuthBeforeResult, i as getGeneratedAuthDisabledReason, n as GeneratedAuthDisabledReasonKind, r as createDisabledAuthRuntime, t as AuthRuntime, w as GenericAuthTriggers, x as GenericAuthDefinition, y as BetterAuthOptionsWithoutDatabase } from "../../generated-contract-disabled-BPjuEPZD.js";
|
|
2
2
|
export { type AuthRuntime, BetterAuthOptionsWithoutDatabase, type GeneratedAuthDisabledReasonKind, GenericAuthBeforeResult, GenericAuthDefinition, GenericAuthTriggerChange, GenericAuthTriggerHandlers, GenericAuthTriggers, createDisabledAuthRuntime, defineAuth, getGeneratedAuthDisabledReason };
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as QueryCtxWithPreferredOrmQueryTable, n as LookupByIdResultByCtx, t as DocByCtx } from "../query-context-BkNjkDCk.js";
|
|
2
2
|
import { t as GetAuth } from "../types-ex0-J-SC.js";
|
|
3
3
|
import { t as GenericCtx } from "../context-utils-Cbv4r0AA.js";
|
|
4
|
-
import { C as GenericAuthTriggerHandlers, S as GenericAuthTriggerChange, T as defineAuth, _ as updateManyHandler, a as AuthFunctions, b as GenericAuthBeforeResult, c as consumeOneHandler, d as createHandler, f as deleteManyHandler, g as incrementOneHandler, h as findOneHandler, i as getGeneratedAuthDisabledReason, l as countHandler, m as findManyHandler, n as GeneratedAuthDisabledReasonKind, o as Triggers, p as deleteOneHandler, r as createDisabledAuthRuntime, s as createClient, t as AuthRuntime, u as createApi, v as updateOneHandler, w as GenericAuthTriggers, x as GenericAuthDefinition, y as BetterAuthOptionsWithoutDatabase } from "../generated-contract-disabled-
|
|
4
|
+
import { C as GenericAuthTriggerHandlers, S as GenericAuthTriggerChange, T as defineAuth, _ as updateManyHandler, a as AuthFunctions, b as GenericAuthBeforeResult, c as consumeOneHandler, d as createHandler, f as deleteManyHandler, g as incrementOneHandler, h as findOneHandler, i as getGeneratedAuthDisabledReason, l as countHandler, m as findManyHandler, n as GeneratedAuthDisabledReasonKind, o as Triggers, p as deleteOneHandler, r as createDisabledAuthRuntime, s as createClient, t as AuthRuntime, u as createApi, v as updateOneHandler, w as GenericAuthTriggers, x as GenericAuthDefinition, y as BetterAuthOptionsWithoutDatabase } from "../generated-contract-disabled-BPjuEPZD.js";
|
|
5
5
|
import * as convex_values0 from "convex/values";
|
|
6
6
|
import { Infer } from "convex/values";
|
|
7
7
|
import { AuthConfig, DocumentByName, GenericDataModel, GenericMutationCtx, GenericQueryCtx, GenericSchema, PaginationOptions, PaginationResult, SchemaDefinition, TableNamesInDataModel } from "convex/server";
|
|
@@ -109,28 +109,28 @@ type AdapterPaginationOptions = PaginationOptions & {
|
|
|
109
109
|
};
|
|
110
110
|
declare const adapterWhereValidator: convex_values0.VObject<{
|
|
111
111
|
mode?: "sensitive" | "insensitive" | undefined;
|
|
112
|
-
operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
113
112
|
connector?: "AND" | "OR" | undefined;
|
|
114
|
-
|
|
113
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
115
114
|
field: string;
|
|
115
|
+
value: string | number | boolean | string[] | number[] | null;
|
|
116
116
|
}, {
|
|
117
117
|
connector: convex_values0.VUnion<"AND" | "OR" | undefined, [convex_values0.VLiteral<"AND", "required">, convex_values0.VLiteral<"OR", "required">], "optional", never>;
|
|
118
118
|
field: convex_values0.VString<string, "required">;
|
|
119
119
|
mode: convex_values0.VUnion<"sensitive" | "insensitive" | undefined, [convex_values0.VLiteral<"sensitive", "required">, convex_values0.VLiteral<"insensitive", "required">], "optional", never>;
|
|
120
|
-
operator: convex_values0.VUnion<"
|
|
120
|
+
operator: convex_values0.VUnion<"lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined, [convex_values0.VLiteral<"lt", "required">, convex_values0.VLiteral<"lte", "required">, convex_values0.VLiteral<"gt", "required">, convex_values0.VLiteral<"gte", "required">, convex_values0.VLiteral<"eq", "required">, convex_values0.VLiteral<"in", "required">, convex_values0.VLiteral<"not_in", "required">, convex_values0.VLiteral<"ne", "required">, convex_values0.VLiteral<"contains", "required">, convex_values0.VLiteral<"starts_with", "required">, convex_values0.VLiteral<"ends_with", "required">], "optional", never>;
|
|
121
121
|
value: convex_values0.VUnion<string | number | boolean | string[] | number[] | null, [convex_values0.VString<string, "required">, convex_values0.VFloat64<number, "required">, convex_values0.VBoolean<boolean, "required">, convex_values0.VArray<string[], convex_values0.VString<string, "required">, "required">, convex_values0.VArray<number[], convex_values0.VFloat64<number, "required">, "required">, convex_values0.VNull<null, "required">], "required", never>;
|
|
122
|
-
}, "required", "mode" | "
|
|
122
|
+
}, "required", "mode" | "connector" | "field" | "operator" | "value">;
|
|
123
123
|
declare const adapterArgsValidator: convex_values0.VObject<{
|
|
124
124
|
limit?: number | undefined;
|
|
125
125
|
where?: {
|
|
126
126
|
mode?: "sensitive" | "insensitive" | undefined;
|
|
127
|
-
operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
128
127
|
connector?: "AND" | "OR" | undefined;
|
|
129
|
-
|
|
128
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
130
129
|
field: string;
|
|
130
|
+
value: string | number | boolean | string[] | number[] | null;
|
|
131
131
|
}[] | undefined;
|
|
132
|
-
select?: string[] | undefined;
|
|
133
132
|
offset?: number | undefined;
|
|
133
|
+
select?: string[] | undefined;
|
|
134
134
|
sortBy?: {
|
|
135
135
|
field: string;
|
|
136
136
|
direction: "asc" | "desc";
|
|
@@ -150,24 +150,24 @@ declare const adapterArgsValidator: convex_values0.VObject<{
|
|
|
150
150
|
}, "optional", "field" | "direction">;
|
|
151
151
|
where: convex_values0.VArray<{
|
|
152
152
|
mode?: "sensitive" | "insensitive" | undefined;
|
|
153
|
-
operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
154
153
|
connector?: "AND" | "OR" | undefined;
|
|
155
|
-
|
|
154
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
156
155
|
field: string;
|
|
156
|
+
value: string | number | boolean | string[] | number[] | null;
|
|
157
157
|
}[] | undefined, convex_values0.VObject<{
|
|
158
158
|
mode?: "sensitive" | "insensitive" | undefined;
|
|
159
|
-
operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
160
159
|
connector?: "AND" | "OR" | undefined;
|
|
161
|
-
|
|
160
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
162
161
|
field: string;
|
|
162
|
+
value: string | number | boolean | string[] | number[] | null;
|
|
163
163
|
}, {
|
|
164
164
|
connector: convex_values0.VUnion<"AND" | "OR" | undefined, [convex_values0.VLiteral<"AND", "required">, convex_values0.VLiteral<"OR", "required">], "optional", never>;
|
|
165
165
|
field: convex_values0.VString<string, "required">;
|
|
166
166
|
mode: convex_values0.VUnion<"sensitive" | "insensitive" | undefined, [convex_values0.VLiteral<"sensitive", "required">, convex_values0.VLiteral<"insensitive", "required">], "optional", never>;
|
|
167
|
-
operator: convex_values0.VUnion<"
|
|
167
|
+
operator: convex_values0.VUnion<"lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined, [convex_values0.VLiteral<"lt", "required">, convex_values0.VLiteral<"lte", "required">, convex_values0.VLiteral<"gt", "required">, convex_values0.VLiteral<"gte", "required">, convex_values0.VLiteral<"eq", "required">, convex_values0.VLiteral<"in", "required">, convex_values0.VLiteral<"not_in", "required">, convex_values0.VLiteral<"ne", "required">, convex_values0.VLiteral<"contains", "required">, convex_values0.VLiteral<"starts_with", "required">, convex_values0.VLiteral<"ends_with", "required">], "optional", never>;
|
|
168
168
|
value: convex_values0.VUnion<string | number | boolean | string[] | number[] | null, [convex_values0.VString<string, "required">, convex_values0.VFloat64<number, "required">, convex_values0.VBoolean<boolean, "required">, convex_values0.VArray<string[], convex_values0.VString<string, "required">, "required">, convex_values0.VArray<number[], convex_values0.VFloat64<number, "required">, "required">, convex_values0.VNull<null, "required">], "required", never>;
|
|
169
|
-
}, "required", "mode" | "
|
|
170
|
-
}, "required", "limit" | "
|
|
169
|
+
}, "required", "mode" | "connector" | "field" | "operator" | "value">, "optional">;
|
|
170
|
+
}, "required", "limit" | "model" | "where" | "offset" | "select" | "sortBy" | "sortBy.field" | "sortBy.direction">;
|
|
171
171
|
declare const hasUniqueFields: (betterAuthSchema: BetterAuthDBSchema, model: string, input: Record<string, any>) => boolean;
|
|
172
172
|
declare const checkUniqueFields: <Schema extends SchemaDefinition<any, any>>(ctx: GenericQueryCtx<GenericDataModel>, schema: Schema, betterAuthSchema: BetterAuthDBSchema, table: string, input: Record<string, any>, doc?: Record<string, any>) => Promise<void>;
|
|
173
173
|
declare const selectFields: <T extends TableNamesInDataModel<GenericDataModel>, D extends DocumentByName<GenericDataModel, T>>(doc: D | null, select?: string[]) => D | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as getToken } from "../../token-CuJopBdP.js";
|
|
2
|
-
import { n as defaultIsUnauthorized } from "../../error-
|
|
3
|
-
import { t as createCallerFactory } from "../../caller-factory-
|
|
2
|
+
import { n as defaultIsUnauthorized } from "../../error-CLgc9khF.js";
|
|
3
|
+
import { t as createCallerFactory } from "../../caller-factory-CEKbQdGY.js";
|
|
4
4
|
|
|
5
5
|
//#region src/auth-nextjs/index.ts
|
|
6
6
|
/** biome-ignore-all lint/suspicious/noExplicitAny: lib */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as getToken } from "../../../token-CuJopBdP.js";
|
|
2
|
-
import { n as defaultIsUnauthorized } from "../../../error-
|
|
3
|
-
import { t as createCallerFactory } from "../../../caller-factory-
|
|
2
|
+
import { n as defaultIsUnauthorized } from "../../../error-CLgc9khF.js";
|
|
3
|
+
import { t as createCallerFactory } from "../../../caller-factory-CEKbQdGY.js";
|
|
4
4
|
import { stripIndent } from "common-tags";
|
|
5
5
|
import { getRequest } from "@tanstack/react-start/server";
|
|
6
6
|
import { ConvexHttpClient } from "convex/browser";
|
|
@@ -5,6 +5,13 @@ import { createAtomStore } from "jotai-x";
|
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/crpc/error.ts
|
|
8
|
+
const CLIENT_ERROR_CODES = [
|
|
9
|
+
"UNAUTHORIZED",
|
|
10
|
+
"FORBIDDEN",
|
|
11
|
+
"NOT_FOUND",
|
|
12
|
+
"BAD_REQUEST",
|
|
13
|
+
"TOO_MANY_REQUESTS"
|
|
14
|
+
];
|
|
8
15
|
/**
|
|
9
16
|
* Client-side CRPC error.
|
|
10
17
|
* Mirrors backend CRPCError pattern with typed error codes.
|
|
@@ -19,8 +26,16 @@ var CRPCClientError = class extends Error {
|
|
|
19
26
|
this.functionName = opts.functionName;
|
|
20
27
|
}
|
|
21
28
|
};
|
|
22
|
-
/**
|
|
23
|
-
|
|
29
|
+
/**
|
|
30
|
+
* Type guard for CRPCClientError.
|
|
31
|
+
* Checks shape, not constructor: package entrypoints bundle separate copies
|
|
32
|
+
* of the class, so `instanceof` fails across them.
|
|
33
|
+
*/
|
|
34
|
+
const isCRPCClientError = (error) => {
|
|
35
|
+
if (!(error instanceof Error)) return false;
|
|
36
|
+
const candidate = error;
|
|
37
|
+
return candidate.name === "CRPCClientError" && CLIENT_ERROR_CODES.includes(candidate.code) && typeof candidate.functionName === "string" && typeof candidate.message === "string";
|
|
38
|
+
};
|
|
24
39
|
/** Default unauthorized detection - checks UNAUTHORIZED code */
|
|
25
40
|
const defaultIsUnauthorized = (error) => {
|
|
26
41
|
if (!error || typeof error !== "object") return false;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as defaultIsUnauthorized } from "./error-
|
|
1
|
+
import { n as defaultIsUnauthorized } from "./error-CLgc9khF.js";
|
|
2
2
|
import { i as getFunctionType, n as getFuncRef, t as buildMetaIndex } from "./meta-utils-Cc7neQOB.js";
|
|
3
3
|
import { s as getTransformer } from "./transformer-C8lVwHNT.js";
|
|
4
4
|
import { fetchAction, fetchMutation, fetchQuery } from "convex/nextjs";
|
package/dist/crpc/index.d.ts
CHANGED
|
@@ -32,10 +32,11 @@ declare class AuthMutationError extends Error {
|
|
|
32
32
|
declare function isAuthMutationError(error: unknown): error is AuthMutationError;
|
|
33
33
|
//#endregion
|
|
34
34
|
//#region src/crpc/error.d.ts
|
|
35
|
+
declare const CLIENT_ERROR_CODES: readonly ["UNAUTHORIZED", "FORBIDDEN", "NOT_FOUND", "BAD_REQUEST", "TOO_MANY_REQUESTS"];
|
|
35
36
|
/**
|
|
36
37
|
* Client error codes (subset of CRPC codes for client-side use)
|
|
37
38
|
*/
|
|
38
|
-
type ClientErrorCode =
|
|
39
|
+
type ClientErrorCode = (typeof CLIENT_ERROR_CODES)[number];
|
|
39
40
|
/**
|
|
40
41
|
* Client-side CRPC error.
|
|
41
42
|
* Mirrors backend CRPCError pattern with typed error codes.
|
|
@@ -50,7 +51,11 @@ declare class CRPCClientError extends Error {
|
|
|
50
51
|
message?: string;
|
|
51
52
|
});
|
|
52
53
|
}
|
|
53
|
-
/**
|
|
54
|
+
/**
|
|
55
|
+
* Type guard for CRPCClientError.
|
|
56
|
+
* Checks shape, not constructor: package entrypoints bundle separate copies
|
|
57
|
+
* of the class, so `instanceof` fails across them.
|
|
58
|
+
*/
|
|
54
59
|
declare const isCRPCClientError: (error: unknown) => error is CRPCClientError;
|
|
55
60
|
/**
|
|
56
61
|
* Unified check for any deterministic CRPC error (Convex or HTTP).
|
package/dist/crpc/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as isCRPCErrorCode, i as isCRPCError, n as defaultIsUnauthorized, r as isCRPCClientError, t as CRPCClientError } from "../error-
|
|
1
|
+
import { a as isCRPCErrorCode, i as isCRPCError, n as defaultIsUnauthorized, r as isCRPCClientError, t as CRPCClientError } from "../error-CLgc9khF.js";
|
|
2
2
|
import { a as defaultCRPCTransformer, c as identityTransformer, i as decodeWire, n as createTaggedTransformer, o as encodeWire, r as dateWireCodec, s as getTransformer, t as DATE_CODEC_TAG } from "../transformer-C8lVwHNT.js";
|
|
3
3
|
import { a as buildSearchParams, c as HTTP_DEFAULT_STALE_TIME, d as buildHttpQueryPrefixKey, f as isHttpClientError, i as RESERVED_KEYS, l as HttpClientError, n as convexInfiniteQueryOptions, o as executeHttpRequest, r as convexQuery, s as replaceUrlParam, t as convexAction, u as buildHttpQueryKey } from "../query-options-DGG93--5.js";
|
|
4
4
|
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
//#region src/crpc/error.ts
|
|
2
|
+
const CLIENT_ERROR_CODES = [
|
|
3
|
+
"UNAUTHORIZED",
|
|
4
|
+
"FORBIDDEN",
|
|
5
|
+
"NOT_FOUND",
|
|
6
|
+
"BAD_REQUEST",
|
|
7
|
+
"TOO_MANY_REQUESTS"
|
|
8
|
+
];
|
|
2
9
|
/**
|
|
3
10
|
* Client-side CRPC error.
|
|
4
11
|
* Mirrors backend CRPCError pattern with typed error codes.
|
|
@@ -13,14 +20,22 @@ var CRPCClientError = class extends Error {
|
|
|
13
20
|
this.functionName = opts.functionName;
|
|
14
21
|
}
|
|
15
22
|
};
|
|
16
|
-
/**
|
|
17
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Type guard for CRPCClientError.
|
|
25
|
+
* Checks shape, not constructor: package entrypoints bundle separate copies
|
|
26
|
+
* of the class, so `instanceof` fails across them.
|
|
27
|
+
*/
|
|
28
|
+
const isCRPCClientError = (error) => {
|
|
29
|
+
if (!(error instanceof Error)) return false;
|
|
30
|
+
const candidate = error;
|
|
31
|
+
return candidate.name === "CRPCClientError" && CLIENT_ERROR_CODES.includes(candidate.code) && typeof candidate.functionName === "string" && typeof candidate.message === "string";
|
|
32
|
+
};
|
|
18
33
|
/**
|
|
19
34
|
* Unified check for any deterministic CRPC error (Convex or HTTP).
|
|
20
35
|
* Use in retry logic to skip retrying client errors (4xx).
|
|
21
36
|
*/
|
|
22
37
|
const isCRPCError = (error) => {
|
|
23
|
-
if (error
|
|
38
|
+
if (isCRPCClientError(error)) return true;
|
|
24
39
|
if (error instanceof Error && error.name === "HttpClientError" && "status" in error && typeof error.status === "number") return error.status < 500;
|
|
25
40
|
return false;
|
|
26
41
|
};
|
package/dist/{generated-contract-disabled-CTUQ9nxL.d.ts → generated-contract-disabled-BPjuEPZD.d.ts}
RENAMED
|
@@ -199,20 +199,20 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
|
|
|
199
199
|
count: convex_server0.RegisteredQuery<"internal", {
|
|
200
200
|
where?: {
|
|
201
201
|
mode?: "sensitive" | "insensitive" | undefined;
|
|
202
|
-
operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
203
202
|
connector?: "AND" | "OR" | undefined;
|
|
204
|
-
|
|
203
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
205
204
|
field: string;
|
|
205
|
+
value: string | number | boolean | string[] | number[] | null;
|
|
206
206
|
}[] | undefined;
|
|
207
207
|
model: string;
|
|
208
208
|
}, Promise<number | null>>;
|
|
209
209
|
consumeOne: convex_server0.RegisteredMutation<"internal", {
|
|
210
210
|
input: {
|
|
211
211
|
where?: {
|
|
212
|
-
operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
213
212
|
connector?: "AND" | "OR" | undefined;
|
|
214
|
-
|
|
213
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
215
214
|
field: string;
|
|
215
|
+
value: string | number | boolean | string[] | number[] | null;
|
|
216
216
|
}[] | undefined;
|
|
217
217
|
model: string;
|
|
218
218
|
} | {
|
|
@@ -235,26 +235,26 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
|
|
|
235
235
|
};
|
|
236
236
|
}, Promise<any>>;
|
|
237
237
|
deleteMany: convex_server0.RegisteredMutation<"internal", {
|
|
238
|
-
paginationOpts: {
|
|
239
|
-
id?: number;
|
|
240
|
-
endCursor?: string | null;
|
|
241
|
-
maximumRowsRead?: number;
|
|
242
|
-
maximumBytesRead?: number;
|
|
243
|
-
numItems: number;
|
|
244
|
-
cursor: string | null;
|
|
245
|
-
};
|
|
246
238
|
input: {
|
|
247
239
|
where?: {
|
|
248
|
-
operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
249
240
|
connector?: "AND" | "OR" | undefined;
|
|
250
|
-
|
|
241
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
251
242
|
field: string;
|
|
243
|
+
value: string | number | boolean | string[] | number[] | null;
|
|
252
244
|
}[] | undefined;
|
|
253
245
|
model: string;
|
|
254
246
|
} | {
|
|
255
247
|
where?: any[] | undefined;
|
|
256
248
|
model: string;
|
|
257
249
|
};
|
|
250
|
+
paginationOpts: {
|
|
251
|
+
id?: number;
|
|
252
|
+
endCursor?: string | null;
|
|
253
|
+
maximumRowsRead?: number;
|
|
254
|
+
maximumBytesRead?: number;
|
|
255
|
+
numItems: number;
|
|
256
|
+
cursor: string | null;
|
|
257
|
+
};
|
|
258
258
|
}, Promise<{
|
|
259
259
|
count: number;
|
|
260
260
|
ids: any[];
|
|
@@ -266,10 +266,10 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
|
|
|
266
266
|
deleteOne: convex_server0.RegisteredMutation<"internal", {
|
|
267
267
|
input: {
|
|
268
268
|
where?: {
|
|
269
|
-
operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
270
269
|
connector?: "AND" | "OR" | undefined;
|
|
271
|
-
|
|
270
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
272
271
|
field: string;
|
|
272
|
+
value: string | number | boolean | string[] | number[] | null;
|
|
273
273
|
}[] | undefined;
|
|
274
274
|
model: string;
|
|
275
275
|
} | {
|
|
@@ -282,16 +282,17 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
|
|
|
282
282
|
join?: any;
|
|
283
283
|
where?: {
|
|
284
284
|
mode?: "sensitive" | "insensitive" | undefined;
|
|
285
|
-
operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
286
285
|
connector?: "AND" | "OR" | undefined;
|
|
287
|
-
|
|
286
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
288
287
|
field: string;
|
|
288
|
+
value: string | number | boolean | string[] | number[] | null;
|
|
289
289
|
}[] | undefined;
|
|
290
290
|
offset?: number | undefined;
|
|
291
291
|
sortBy?: {
|
|
292
292
|
field: string;
|
|
293
293
|
direction: "asc" | "desc";
|
|
294
294
|
} | undefined;
|
|
295
|
+
model: string;
|
|
295
296
|
paginationOpts: {
|
|
296
297
|
id?: number;
|
|
297
298
|
endCursor?: string | null;
|
|
@@ -300,16 +301,15 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
|
|
|
300
301
|
numItems: number;
|
|
301
302
|
cursor: string | null;
|
|
302
303
|
};
|
|
303
|
-
model: string;
|
|
304
304
|
}, Promise<PaginationResult<convex_server0.GenericDocument>>>;
|
|
305
305
|
findOne: convex_server0.RegisteredQuery<"internal", {
|
|
306
306
|
join?: any;
|
|
307
307
|
where?: {
|
|
308
308
|
mode?: "sensitive" | "insensitive" | undefined;
|
|
309
|
-
operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
310
309
|
connector?: "AND" | "OR" | undefined;
|
|
311
|
-
|
|
310
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
312
311
|
field: string;
|
|
312
|
+
value: string | number | boolean | string[] | number[] | null;
|
|
313
313
|
}[] | undefined;
|
|
314
314
|
select?: string[] | undefined;
|
|
315
315
|
model: string;
|
|
@@ -317,45 +317,45 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
|
|
|
317
317
|
getLatestJwks: convex_server0.RegisteredAction<"internal", {}, Promise<unknown>>;
|
|
318
318
|
incrementOne: convex_server0.RegisteredMutation<"internal", {
|
|
319
319
|
input: {
|
|
320
|
+
set?: Record<string, any> | undefined;
|
|
320
321
|
where?: {
|
|
321
322
|
mode?: "sensitive" | "insensitive" | undefined;
|
|
322
|
-
operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
323
323
|
connector?: "AND" | "OR" | undefined;
|
|
324
|
-
|
|
324
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
325
325
|
field: string;
|
|
326
|
+
value: string | number | boolean | string[] | number[] | null;
|
|
326
327
|
}[] | undefined;
|
|
327
|
-
set?: Record<string, any> | undefined;
|
|
328
328
|
model: string;
|
|
329
329
|
increment: Record<string, number>;
|
|
330
330
|
};
|
|
331
331
|
}, Promise<any>>;
|
|
332
332
|
rotateKeys: convex_server0.RegisteredAction<"internal", {}, Promise<unknown>>;
|
|
333
333
|
updateMany: convex_server0.RegisteredMutation<"internal", {
|
|
334
|
-
paginationOpts: {
|
|
335
|
-
id?: number;
|
|
336
|
-
endCursor?: string | null;
|
|
337
|
-
maximumRowsRead?: number;
|
|
338
|
-
maximumBytesRead?: number;
|
|
339
|
-
numItems: number;
|
|
340
|
-
cursor: string | null;
|
|
341
|
-
};
|
|
342
334
|
input: {
|
|
343
335
|
where?: {
|
|
344
|
-
operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
345
336
|
connector?: "AND" | "OR" | undefined;
|
|
346
|
-
|
|
337
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
347
338
|
field: string;
|
|
339
|
+
value: string | number | boolean | string[] | number[] | null;
|
|
348
340
|
}[] | undefined;
|
|
341
|
+
model: string;
|
|
349
342
|
update: {
|
|
350
343
|
[x: string]: unknown;
|
|
351
344
|
[x: number]: unknown;
|
|
352
345
|
[x: symbol]: unknown;
|
|
353
346
|
};
|
|
354
|
-
model: string;
|
|
355
347
|
} | {
|
|
356
348
|
where?: any[] | undefined;
|
|
357
|
-
update: any;
|
|
358
349
|
model: string;
|
|
350
|
+
update: any;
|
|
351
|
+
};
|
|
352
|
+
paginationOpts: {
|
|
353
|
+
id?: number;
|
|
354
|
+
endCursor?: string | null;
|
|
355
|
+
maximumRowsRead?: number;
|
|
356
|
+
maximumBytesRead?: number;
|
|
357
|
+
numItems: number;
|
|
358
|
+
cursor: string | null;
|
|
359
359
|
};
|
|
360
360
|
}, Promise<{
|
|
361
361
|
count: number;
|
|
@@ -368,21 +368,21 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
|
|
|
368
368
|
updateOne: convex_server0.RegisteredMutation<"internal", {
|
|
369
369
|
input: {
|
|
370
370
|
where?: {
|
|
371
|
-
operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
372
371
|
connector?: "AND" | "OR" | undefined;
|
|
373
|
-
|
|
372
|
+
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
374
373
|
field: string;
|
|
374
|
+
value: string | number | boolean | string[] | number[] | null;
|
|
375
375
|
}[] | undefined;
|
|
376
|
+
model: string;
|
|
376
377
|
update: {
|
|
377
378
|
[x: string]: unknown;
|
|
378
379
|
[x: number]: unknown;
|
|
379
380
|
[x: symbol]: unknown;
|
|
380
381
|
};
|
|
381
|
-
model: string;
|
|
382
382
|
} | {
|
|
383
383
|
where?: any[] | undefined;
|
|
384
|
-
update: any;
|
|
385
384
|
model: string;
|
|
385
|
+
update: any;
|
|
386
386
|
};
|
|
387
387
|
}, Promise<any>>;
|
|
388
388
|
};
|
package/dist/orm/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { $n as TableName, $t as OrmLifecycleChange, An as ConvexCheckBuilder, At as UpdateSet, Bn as ConvexTextBuilder, Br as IsPrimaryKey, Bt as RelationsBuilderColumnBase, C as MigrationStep, Cn as ConvexVectorIndexConfig, Cr as not, Ct as OrderByClause, D as defineMigration, Dn as searchIndex, Dr as startsWith, Dt as ReturningAll, E as buildMigrationPlan, En as rankIndex, Er as or, Et as PredicateWhereIndexConfig, Fn as ConvexUniqueConstraintBuilderOn, Fr as ColumnBuilderTypeConfig, Ft as ExtractTablesFromSchema, Gn as Columns, Gt as TablesRelationalConfig, H as RlsMode, Hn as text, Hr as NotNull, In as ConvexUniqueConstraintConfig, Ir as ColumnBuilderWithTableName, It as ExtractTablesWithRelations, Jn as OrmSchemaExtensionTables, Jt as ConvexDeletionBuilder, Kt as defineRelations, Ln as check, Lr as ColumnDataType, Lt as ManyConfig, M as DatabaseWithQuery, Mn as ConvexForeignKeyBuilder, Mr as ColumnBuilder, Mt as VectorSearchProvider, N as OrmReader$1, Nn as ConvexForeignKeyConfig, Nr as ColumnBuilderBaseConfig, Nt as unsetToken, O as defineMigrationSet, On as uniqueIndex, Ot as ReturningResult, P as OrmWriter$1, Pn as ConvexUniqueConstraintBuilder, Pr as ColumnBuilderRuntimeConfig, Qn as OrmSchemaTriggers, Qt as DiscriminatorBuilderConfig, Rn as foreignKey, Rr as DrizzleEntity, Rt as OneConfig, S as MigrationStateMap, Sn as ConvexVectorIndexBuilderOn, Sr as ne, St as MutationRunMode, T as MigrationWriteMode, Tn as index, Tr as notInArray, Tt as PaginatedResult, U as EdgeMetadata, V as RlsContext, Vn as ConvexTextBuilderInitial, Vr as IsUnique, Vt as RelationsBuilderColumnConfig, W as extractRelationsConfig, Wn as Brand, Wt as TableRelationalConfig, Xn as OrmSchemaExtensions, Xt as ConvexTable, Yt as ConvexDeletionConfig, Zn as OrmSchemaRelations, Zt as ConvexTableWithColumns, _ as MigrationManifestEntry, _n as ConvexRankIndexBuilderOn, _r as isNotNull, _t as MutationExecutionMode, an as RlsPolicy, ar as UnaryExpression, at as BuildRelationResult, b as MigrationRunStatus, bn as ConvexSearchIndexConfig, br as lt, bt as MutationResult, cn as rlsPolicy, cr as contains, ct as DBQueryConfig, d as MigrationAppliedState, dn as rlsRole, dr as fieldRef, dt as InferInsertModel, en as OrmLifecycleOperation, er as BinaryExpression, f as MigrationDefinition, fn as ConvexAggregateIndexBuilder, fr as gt, ft as InferModelFromColumns, g as MigrationDriftIssue, gn as ConvexRankIndexBuilder, gr as isFieldReference, gt as MutationExecuteResult, h as MigrationDocContext, hn as ConvexIndexBuilderOn, hr as inArray, ht as MutationExecuteConfig, i as OrmMigrationCapability, in as discriminator, ir as LogicalExpression, it as BuildQueryResult, j as DatabaseWithMutations, jn as ConvexCheckConfig, jr as AnyColumn, jt as VectorQueryConfig, k as detectMigrationDrift, kn as vectorIndex, kr as SystemFields, kt as ReturningSelection, ln as RlsRole, lr as endsWith, lt as FilterOperators, m as MigrationDoc, mn as ConvexIndexBuilder, mr as ilike, mt as InsertValue, n as OrmCapabilities, nn as convexTable, nr as FieldReference, nt as AggregateFieldValue, on as RlsPolicyConfig, or as and, ot as CountConfig, p as MigrationDirection, pn as ConvexAggregateIndexBuilderOn, pr as gte, pt as InferSelectModel, qt as defineRelationsPart, r as OrmCapability, rn as deletion, rr as FilterExpression, rt as AggregateResult, sn as RlsPolicyToOption, sr as between, st as CountResult, t as OrmAggregateCapability, tn as TableConfig, tr as ExpressionVisitor, tt as AggregateConfig, un as RlsRoleConfig, ur as eq, ut as GetColumnData, v as MigrationMigrateOne, vn as ConvexSearchIndexBuilder, vr as isNull, vt as MutationPaginateConfig, w as MigrationTableName, wn as aggregateIndex, wr as notBetween, wt as OrderDirection, x as MigrationSet, xn as ConvexVectorIndexBuilder, xr as lte, xt as MutationReturning, y as MigrationPlan, yn as ConvexSearchIndexBuilderOn, yr as like, yt as MutationPaginatedResult, zn as unique, zr as HasDefault, zt as RelationsBuilder } from "../capabilities-Bxzoofl4.js";
|
|
2
|
-
import { $ as OrmClientWithApi$1, A as ConvexDateMode, B as ConvexBytesBuilderInitial, C as ConvexNumberBuilderInitial, D as id, E as ConvexIdBuilderInitial, F as custom, G as ConvexBigIntBuilder, H as ConvexBooleanBuilder, I as json, J as CreateOrmOptions, K as ConvexBigIntBuilderInitial, L as objectOf, M as ConvexCustomBuilder, N as ConvexCustomBuilderInitial, O as ConvexDateBuilder, P as arrayOf, Q as OrmClientBase$1, R as unionOf, S as ConvexNumberBuilder, St as defineTriggers, T as ConvexIdBuilder, U as ConvexBooleanBuilderInitial, V as bytes, W as boolean, X as GenericOrmCtx$1, Y as GenericOrm$1, Z as OrmApiResult, _ as ConvexTimestampMode, _t as OrmBeforeResult, a as requireSchemaRelations, at as ScheduledMutationBatchArgs, b as ConvexTextEnumBuilderInitial, bt as OrmTriggerContext, c as TableConfigResult, ct as scheduledDeleteFactory, d as OrmNotFoundError, et as OrmFunctions, f as ConvexVectorBuilder, g as ConvexTimestampBuilderInitial, gt as defineSchemaExtension, h as ConvexTimestampBuilder, ht as SchemaExtension, i as getSchemaTriggers, it as createOrm, j as date, k as ConvexDateBuilderInitial, l as getTableColumns, m as vector, n as defineSchema, nt as OrmWriterCtx, o as asc, ot as scheduledMutationBatchFactory, p as ConvexVectorBuilderInitial, q as bigint, r as getSchemaRelations, rt as ResolveOrmSchema, s as desc, st as ScheduledDeleteArgs, t as WhereClauseResult, tt as OrmReaderCtx, u as getTableConfig, v as timestamp, vt as OrmTableTriggers, w as integer, x as textEnum, xt as OrmTriggers, y as ConvexTextEnumBuilder, yt as OrmTriggerChange, z as ConvexBytesBuilder } from "../where-clause-compiler-
|
|
2
|
+
import { $ as OrmClientWithApi$1, A as ConvexDateMode, B as ConvexBytesBuilderInitial, C as ConvexNumberBuilderInitial, D as id, E as ConvexIdBuilderInitial, F as custom, G as ConvexBigIntBuilder, H as ConvexBooleanBuilder, I as json, J as CreateOrmOptions, K as ConvexBigIntBuilderInitial, L as objectOf, M as ConvexCustomBuilder, N as ConvexCustomBuilderInitial, O as ConvexDateBuilder, P as arrayOf, Q as OrmClientBase$1, R as unionOf, S as ConvexNumberBuilder, St as defineTriggers, T as ConvexIdBuilder, U as ConvexBooleanBuilderInitial, V as bytes, W as boolean, X as GenericOrmCtx$1, Y as GenericOrm$1, Z as OrmApiResult, _ as ConvexTimestampMode, _t as OrmBeforeResult, a as requireSchemaRelations, at as ScheduledMutationBatchArgs, b as ConvexTextEnumBuilderInitial, bt as OrmTriggerContext, c as TableConfigResult, ct as scheduledDeleteFactory, d as OrmNotFoundError, et as OrmFunctions, f as ConvexVectorBuilder, g as ConvexTimestampBuilderInitial, gt as defineSchemaExtension, h as ConvexTimestampBuilder, ht as SchemaExtension, i as getSchemaTriggers, it as createOrm, j as date, k as ConvexDateBuilderInitial, l as getTableColumns, m as vector, n as defineSchema, nt as OrmWriterCtx, o as asc, ot as scheduledMutationBatchFactory, p as ConvexVectorBuilderInitial, q as bigint, r as getSchemaRelations, rt as ResolveOrmSchema, s as desc, st as ScheduledDeleteArgs, t as WhereClauseResult, tt as OrmReaderCtx, u as getTableConfig, v as timestamp, vt as OrmTableTriggers, w as integer, x as textEnum, xt as OrmTriggers, y as ConvexTextEnumBuilder, yt as OrmTriggerChange, z as ConvexBytesBuilder } from "../where-clause-compiler-jhCEPHxi.js";
|
|
3
3
|
import { i as pretendRequired, n as deprecated, r as pretend } from "../validators-0I-Ik1EN.js";
|
|
4
4
|
import { a as QueryCtxWithPreferredOrmQueryTable, i as QueryCtxWithOrmQueryTable, n as LookupByIdResultByCtx, o as getByIdWithOrmQueryFallback, r as QueryCtxWithOptionalOrmQueryTable, t as DocByCtx } from "../query-context-BkNjkDCk.js";
|
|
5
5
|
import { DefineSchemaOptions, GenericDatabaseReader, GenericDatabaseWriter, GenericSchema, SchemaDefinition } from "convex/server";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { C as MigrationStep, D as defineMigration, E as buildMigrationPlan, O as defineMigrationSet, S as MigrationStateMap, T as MigrationWriteMode, _ as MigrationManifestEntry, a as MAX_STATUS_RUN_LIMIT, b as MigrationRunStatus, c as MigrationRunChunkArgs, d as MigrationAppliedState, f as MigrationDefinition, g as MigrationDriftIssue, h as MigrationDocContext, k as detectMigrationDrift, l as MigrationStatusArgs, m as MigrationDoc, o as MigrationCancelArgs, p as MigrationDirection, s as MigrationRunArgs, u as createMigrationHandlers, v as MigrationMigrateOne, w as MigrationTableName, x as MigrationSet, y as MigrationPlan } from "../../capabilities-Bxzoofl4.js";
|
|
2
|
-
import { Ct as migrationCapability, dt as MIGRATION_STORAGE_TABLE_NAMES, ft as injectMigrationStorageTables, lt as MIGRATION_RUN_TABLE, mt as migrationStorageTables, pt as migrationExtension, ut as MIGRATION_STATE_TABLE } from "../../where-clause-compiler-
|
|
2
|
+
import { Ct as migrationCapability, dt as MIGRATION_STORAGE_TABLE_NAMES, ft as injectMigrationStorageTables, lt as MIGRATION_RUN_TABLE, mt as migrationStorageTables, pt as migrationExtension, ut as MIGRATION_STATE_TABLE } from "../../where-clause-compiler-jhCEPHxi.js";
|
|
3
3
|
export { MAX_STATUS_RUN_LIMIT, MIGRATION_RUN_TABLE, MIGRATION_STATE_TABLE, MIGRATION_STORAGE_TABLE_NAMES, type MigrationAppliedState, type MigrationCancelArgs, type MigrationDefinition, type MigrationDirection, type MigrationDoc, type MigrationDocContext, type MigrationDriftIssue, type MigrationManifestEntry, type MigrationMigrateOne, type MigrationPlan, type MigrationRunArgs, type MigrationRunChunkArgs, type MigrationRunStatus, type MigrationSet, type MigrationStateMap, type MigrationStatusArgs, type MigrationStep, type MigrationTableName, type MigrationWriteMode, buildMigrationPlan, createMigrationHandlers, defineMigration, defineMigrationSet, detectMigrationDrift, injectMigrationStorageTables, migrationCapability, migrationExtension, migrationStorageTables };
|
package/dist/react/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { A as CRPCClientError, C as decodeJwtExp, M as isCRPCClientError, O as writeAuthSessionFallbackData, S as useSafeConvexAuth, T as clearAuthSessionFallback, _ as useConvexAuthBridge, a as ConvexAuthRecoveryError, b as useIsAuth, c as MaybeAuthenticated, d as isSessionSyncGraceActive, f as useAuth, g as useAuthValue, h as useAuthStore, i as ConvexAuthBridge, j as defaultIsUnauthorized, k as writeAuthSessionFallbackToken, l as MaybeUnauthenticated, m as useAuthState, n as AuthProvider, o as ConvexProviderWithAuth, p as useAuthGuard, r as Authenticated, s as FetchAccessTokenContext, t as AUTH_SESSION_SYNC_GRACE_MS, u as Unauthenticated, v as useConvexAuthRecovery, w as decodeJwtIdentity, x as useMaybeAuth, y as useFetchAccessToken } from "../auth-store-
|
|
2
|
+
import { A as CRPCClientError, C as decodeJwtExp, M as isCRPCClientError, O as writeAuthSessionFallbackData, S as useSafeConvexAuth, T as clearAuthSessionFallback, _ as useConvexAuthBridge, a as ConvexAuthRecoveryError, b as useIsAuth, c as MaybeAuthenticated, d as isSessionSyncGraceActive, f as useAuth, g as useAuthValue, h as useAuthStore, i as ConvexAuthBridge, j as defaultIsUnauthorized, k as writeAuthSessionFallbackToken, l as MaybeUnauthenticated, m as useAuthState, n as AuthProvider, o as ConvexProviderWithAuth, p as useAuthGuard, r as Authenticated, s as FetchAccessTokenContext, t as AUTH_SESSION_SYNC_GRACE_MS, u as Unauthenticated, v as useConvexAuthRecovery, w as decodeJwtIdentity, x as useMaybeAuth, y as useFetchAccessToken } from "../auth-store-x3_wvhTR.js";
|
|
3
3
|
import { ConvexProvider, ConvexReactClient, ConvexReactClient as ConvexReactClient$1, useAction, useConvex, useMutation } from "convex/react";
|
|
4
4
|
import { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
package/dist/rsc/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as defaultIsUnauthorized } from "../error-
|
|
1
|
+
import { n as defaultIsUnauthorized } from "../error-CLgc9khF.js";
|
|
2
2
|
import { n as getFuncRef, r as getFunctionMeta, t as buildMetaIndex } from "../meta-utils-Cc7neQOB.js";
|
|
3
3
|
import { o as encodeWire, s as getTransformer } from "../transformer-C8lVwHNT.js";
|
|
4
4
|
import { c as HTTP_DEFAULT_STALE_TIME, n as convexInfiniteQueryOptions, o as executeHttpRequest, r as convexQuery, u as buildHttpQueryKey } from "../query-options-DGG93--5.js";
|
package/dist/server/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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-
|
|
2
|
+
import { n as createLazyCaller, r as createServerCaller, t as createCallerFactory } from "../caller-factory-CEKbQdGY.js";
|
|
3
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-DDYTlmTB.js";
|
|
4
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-DgGF_hA8.js";
|
|
5
5
|
|
package/dist/solid/index.js
CHANGED
|
@@ -8,6 +8,13 @@ import { QueriesObserver, hashKey } from "@tanstack/query-core";
|
|
|
8
8
|
import { convexToJson } from "convex/values";
|
|
9
9
|
|
|
10
10
|
//#region src/crpc/error.ts
|
|
11
|
+
const CLIENT_ERROR_CODES = [
|
|
12
|
+
"UNAUTHORIZED",
|
|
13
|
+
"FORBIDDEN",
|
|
14
|
+
"NOT_FOUND",
|
|
15
|
+
"BAD_REQUEST",
|
|
16
|
+
"TOO_MANY_REQUESTS"
|
|
17
|
+
];
|
|
11
18
|
/**
|
|
12
19
|
* Client-side CRPC error.
|
|
13
20
|
* Mirrors backend CRPCError pattern with typed error codes.
|
|
@@ -22,8 +29,16 @@ var CRPCClientError = class extends Error {
|
|
|
22
29
|
this.functionName = opts.functionName;
|
|
23
30
|
}
|
|
24
31
|
};
|
|
25
|
-
/**
|
|
26
|
-
|
|
32
|
+
/**
|
|
33
|
+
* Type guard for CRPCClientError.
|
|
34
|
+
* Checks shape, not constructor: package entrypoints bundle separate copies
|
|
35
|
+
* of the class, so `instanceof` fails across them.
|
|
36
|
+
*/
|
|
37
|
+
const isCRPCClientError = (error) => {
|
|
38
|
+
if (!(error instanceof Error)) return false;
|
|
39
|
+
const candidate = error;
|
|
40
|
+
return candidate.name === "CRPCClientError" && CLIENT_ERROR_CODES.includes(candidate.code) && typeof candidate.functionName === "string" && typeof candidate.message === "string";
|
|
41
|
+
};
|
|
27
42
|
/** Default unauthorized detection - checks UNAUTHORIZED code */
|
|
28
43
|
const defaultIsUnauthorized = (error) => {
|
|
29
44
|
if (!error || typeof error !== "object") return false;
|
|
@@ -102,22 +102,22 @@ declare const migrationStorageTables: {
|
|
|
102
102
|
fieldName: "status";
|
|
103
103
|
};
|
|
104
104
|
};
|
|
105
|
-
|
|
105
|
+
cursor: ConvexTextBuilderInitial<""> & {
|
|
106
106
|
_: {
|
|
107
107
|
tableName: "migration_state";
|
|
108
108
|
};
|
|
109
109
|
} & {
|
|
110
110
|
_: {
|
|
111
|
-
fieldName: "
|
|
111
|
+
fieldName: "cursor";
|
|
112
112
|
};
|
|
113
113
|
};
|
|
114
|
-
|
|
114
|
+
direction: ConvexTextBuilderInitial<""> & {
|
|
115
115
|
_: {
|
|
116
116
|
tableName: "migration_state";
|
|
117
117
|
};
|
|
118
118
|
} & {
|
|
119
119
|
_: {
|
|
120
|
-
fieldName: "
|
|
120
|
+
fieldName: "direction";
|
|
121
121
|
};
|
|
122
122
|
};
|
|
123
123
|
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
@@ -133,7 +133,7 @@ declare const migrationStorageTables: {
|
|
|
133
133
|
fieldName: "updatedAt";
|
|
134
134
|
};
|
|
135
135
|
};
|
|
136
|
-
|
|
136
|
+
processed: ConvexNumberBuilderInitial<""> & {
|
|
137
137
|
_: {
|
|
138
138
|
notNull: true;
|
|
139
139
|
};
|
|
@@ -143,45 +143,37 @@ declare const migrationStorageTables: {
|
|
|
143
143
|
};
|
|
144
144
|
} & {
|
|
145
145
|
_: {
|
|
146
|
-
fieldName: "
|
|
146
|
+
fieldName: "processed";
|
|
147
147
|
};
|
|
148
148
|
};
|
|
149
|
-
|
|
150
|
-
_: {
|
|
151
|
-
notNull: true;
|
|
152
|
-
};
|
|
153
|
-
} & {
|
|
149
|
+
startedAt: ConvexNumberBuilderInitial<""> & {
|
|
154
150
|
_: {
|
|
155
151
|
tableName: "migration_state";
|
|
156
152
|
};
|
|
157
153
|
} & {
|
|
158
154
|
_: {
|
|
159
|
-
fieldName: "
|
|
155
|
+
fieldName: "startedAt";
|
|
160
156
|
};
|
|
161
157
|
};
|
|
162
|
-
|
|
163
|
-
_: {
|
|
164
|
-
notNull: true;
|
|
165
|
-
};
|
|
166
|
-
} & {
|
|
158
|
+
completedAt: ConvexNumberBuilderInitial<""> & {
|
|
167
159
|
_: {
|
|
168
160
|
tableName: "migration_state";
|
|
169
161
|
};
|
|
170
162
|
} & {
|
|
171
163
|
_: {
|
|
172
|
-
fieldName: "
|
|
164
|
+
fieldName: "completedAt";
|
|
173
165
|
};
|
|
174
166
|
};
|
|
175
|
-
|
|
167
|
+
lastError: ConvexTextBuilderInitial<""> & {
|
|
176
168
|
_: {
|
|
177
169
|
tableName: "migration_state";
|
|
178
170
|
};
|
|
179
171
|
} & {
|
|
180
172
|
_: {
|
|
181
|
-
fieldName: "
|
|
173
|
+
fieldName: "lastError";
|
|
182
174
|
};
|
|
183
175
|
};
|
|
184
|
-
|
|
176
|
+
migrationId: ConvexTextBuilderInitial<""> & {
|
|
185
177
|
_: {
|
|
186
178
|
notNull: true;
|
|
187
179
|
};
|
|
@@ -191,34 +183,42 @@ declare const migrationStorageTables: {
|
|
|
191
183
|
};
|
|
192
184
|
} & {
|
|
193
185
|
_: {
|
|
194
|
-
fieldName: "
|
|
186
|
+
fieldName: "migrationId";
|
|
195
187
|
};
|
|
196
188
|
};
|
|
197
|
-
|
|
189
|
+
checksum: ConvexTextBuilderInitial<""> & {
|
|
190
|
+
_: {
|
|
191
|
+
notNull: true;
|
|
192
|
+
};
|
|
193
|
+
} & {
|
|
198
194
|
_: {
|
|
199
195
|
tableName: "migration_state";
|
|
200
196
|
};
|
|
201
197
|
} & {
|
|
202
198
|
_: {
|
|
203
|
-
fieldName: "
|
|
199
|
+
fieldName: "checksum";
|
|
204
200
|
};
|
|
205
201
|
};
|
|
206
|
-
|
|
202
|
+
applied: ConvexBooleanBuilderInitial<""> & {
|
|
203
|
+
_: {
|
|
204
|
+
notNull: true;
|
|
205
|
+
};
|
|
206
|
+
} & {
|
|
207
207
|
_: {
|
|
208
208
|
tableName: "migration_state";
|
|
209
209
|
};
|
|
210
210
|
} & {
|
|
211
211
|
_: {
|
|
212
|
-
fieldName: "
|
|
212
|
+
fieldName: "applied";
|
|
213
213
|
};
|
|
214
214
|
};
|
|
215
|
-
|
|
215
|
+
runId: ConvexTextBuilderInitial<""> & {
|
|
216
216
|
_: {
|
|
217
217
|
tableName: "migration_state";
|
|
218
218
|
};
|
|
219
219
|
} & {
|
|
220
220
|
_: {
|
|
221
|
-
fieldName: "
|
|
221
|
+
fieldName: "runId";
|
|
222
222
|
};
|
|
223
223
|
};
|
|
224
224
|
writeMode: ConvexTextBuilderInitial<""> & {
|
|
@@ -282,7 +282,7 @@ declare const migrationStorageTables: {
|
|
|
282
282
|
fieldName: "updatedAt";
|
|
283
283
|
};
|
|
284
284
|
};
|
|
285
|
-
|
|
285
|
+
startedAt: ConvexNumberBuilderInitial<""> & {
|
|
286
286
|
_: {
|
|
287
287
|
notNull: true;
|
|
288
288
|
};
|
|
@@ -292,38 +292,38 @@ declare const migrationStorageTables: {
|
|
|
292
292
|
};
|
|
293
293
|
} & {
|
|
294
294
|
_: {
|
|
295
|
-
fieldName: "
|
|
295
|
+
fieldName: "startedAt";
|
|
296
296
|
};
|
|
297
297
|
};
|
|
298
|
-
|
|
299
|
-
_: {
|
|
300
|
-
notNull: true;
|
|
301
|
-
};
|
|
302
|
-
} & {
|
|
298
|
+
completedAt: ConvexNumberBuilderInitial<""> & {
|
|
303
299
|
_: {
|
|
304
300
|
tableName: "migration_run";
|
|
305
301
|
};
|
|
306
302
|
} & {
|
|
307
303
|
_: {
|
|
308
|
-
fieldName: "
|
|
304
|
+
fieldName: "completedAt";
|
|
309
305
|
};
|
|
310
306
|
};
|
|
311
|
-
|
|
307
|
+
lastError: ConvexTextBuilderInitial<""> & {
|
|
312
308
|
_: {
|
|
313
309
|
tableName: "migration_run";
|
|
314
310
|
};
|
|
315
311
|
} & {
|
|
316
312
|
_: {
|
|
317
|
-
fieldName: "
|
|
313
|
+
fieldName: "lastError";
|
|
318
314
|
};
|
|
319
315
|
};
|
|
320
|
-
|
|
316
|
+
runId: ConvexTextBuilderInitial<""> & {
|
|
317
|
+
_: {
|
|
318
|
+
notNull: true;
|
|
319
|
+
};
|
|
320
|
+
} & {
|
|
321
321
|
_: {
|
|
322
322
|
tableName: "migration_run";
|
|
323
323
|
};
|
|
324
324
|
} & {
|
|
325
325
|
_: {
|
|
326
|
-
fieldName: "
|
|
326
|
+
fieldName: "runId";
|
|
327
327
|
};
|
|
328
328
|
};
|
|
329
329
|
dryRun: ConvexBooleanBuilderInitial<""> & {
|
|
@@ -1326,7 +1326,11 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1326
1326
|
readonly aggregate_extrema: ConvexTableWithColumns<{
|
|
1327
1327
|
name: "aggregate_extrema";
|
|
1328
1328
|
columns: {
|
|
1329
|
-
|
|
1329
|
+
value: ConvexCustomBuilderInitial<"", convex_values0.VAny<any, "required", string>> & {
|
|
1330
|
+
_: {
|
|
1331
|
+
$type: convex_values0.Value;
|
|
1332
|
+
};
|
|
1333
|
+
} & {
|
|
1330
1334
|
_: {
|
|
1331
1335
|
notNull: true;
|
|
1332
1336
|
};
|
|
@@ -1336,14 +1340,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1336
1340
|
};
|
|
1337
1341
|
} & {
|
|
1338
1342
|
_: {
|
|
1339
|
-
fieldName: "
|
|
1343
|
+
fieldName: "value";
|
|
1340
1344
|
};
|
|
1341
1345
|
};
|
|
1342
|
-
|
|
1343
|
-
_: {
|
|
1344
|
-
$type: convex_values0.Value;
|
|
1345
|
-
};
|
|
1346
|
-
} & {
|
|
1346
|
+
count: ConvexNumberBuilderInitial<""> & {
|
|
1347
1347
|
_: {
|
|
1348
1348
|
notNull: true;
|
|
1349
1349
|
};
|
|
@@ -1353,7 +1353,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1353
1353
|
};
|
|
1354
1354
|
} & {
|
|
1355
1355
|
_: {
|
|
1356
|
-
fieldName: "
|
|
1356
|
+
fieldName: "count";
|
|
1357
1357
|
};
|
|
1358
1358
|
};
|
|
1359
1359
|
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
@@ -1596,26 +1596,26 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1596
1596
|
fieldName: "status";
|
|
1597
1597
|
};
|
|
1598
1598
|
};
|
|
1599
|
-
|
|
1600
|
-
_: {
|
|
1601
|
-
notNull: true;
|
|
1602
|
-
};
|
|
1603
|
-
} & {
|
|
1599
|
+
cursor: ConvexTextBuilderInitial<""> & {
|
|
1604
1600
|
_: {
|
|
1605
1601
|
tableName: "aggregate_state";
|
|
1606
1602
|
};
|
|
1607
1603
|
} & {
|
|
1608
1604
|
_: {
|
|
1609
|
-
fieldName: "
|
|
1605
|
+
fieldName: "cursor";
|
|
1610
1606
|
};
|
|
1611
1607
|
};
|
|
1612
|
-
|
|
1608
|
+
kind: ConvexTextBuilderInitial<""> & {
|
|
1609
|
+
_: {
|
|
1610
|
+
notNull: true;
|
|
1611
|
+
};
|
|
1612
|
+
} & {
|
|
1613
1613
|
_: {
|
|
1614
1614
|
tableName: "aggregate_state";
|
|
1615
1615
|
};
|
|
1616
1616
|
} & {
|
|
1617
1617
|
_: {
|
|
1618
|
-
fieldName: "
|
|
1618
|
+
fieldName: "kind";
|
|
1619
1619
|
};
|
|
1620
1620
|
};
|
|
1621
1621
|
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
@@ -1631,7 +1631,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1631
1631
|
fieldName: "updatedAt";
|
|
1632
1632
|
};
|
|
1633
1633
|
};
|
|
1634
|
-
|
|
1634
|
+
indexName: ConvexTextBuilderInitial<""> & {
|
|
1635
1635
|
_: {
|
|
1636
1636
|
notNull: true;
|
|
1637
1637
|
};
|
|
@@ -1641,10 +1641,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1641
1641
|
};
|
|
1642
1642
|
} & {
|
|
1643
1643
|
_: {
|
|
1644
|
-
fieldName: "
|
|
1644
|
+
fieldName: "indexName";
|
|
1645
1645
|
};
|
|
1646
1646
|
};
|
|
1647
|
-
|
|
1647
|
+
keyDefinitionHash: ConvexTextBuilderInitial<""> & {
|
|
1648
1648
|
_: {
|
|
1649
1649
|
notNull: true;
|
|
1650
1650
|
};
|
|
@@ -1654,28 +1654,23 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1654
1654
|
};
|
|
1655
1655
|
} & {
|
|
1656
1656
|
_: {
|
|
1657
|
-
fieldName: "
|
|
1657
|
+
fieldName: "keyDefinitionHash";
|
|
1658
1658
|
};
|
|
1659
1659
|
};
|
|
1660
|
-
|
|
1660
|
+
metricDefinitionHash: ConvexTextBuilderInitial<""> & {
|
|
1661
1661
|
_: {
|
|
1662
|
-
|
|
1662
|
+
notNull: true;
|
|
1663
1663
|
};
|
|
1664
1664
|
} & {
|
|
1665
|
-
_: {
|
|
1666
|
-
fieldName: "completedAt";
|
|
1667
|
-
};
|
|
1668
|
-
};
|
|
1669
|
-
lastError: ConvexTextBuilderInitial<""> & {
|
|
1670
1665
|
_: {
|
|
1671
1666
|
tableName: "aggregate_state";
|
|
1672
1667
|
};
|
|
1673
1668
|
} & {
|
|
1674
1669
|
_: {
|
|
1675
|
-
fieldName: "
|
|
1670
|
+
fieldName: "metricDefinitionHash";
|
|
1676
1671
|
};
|
|
1677
1672
|
};
|
|
1678
|
-
|
|
1673
|
+
processed: ConvexNumberBuilderInitial<""> & {
|
|
1679
1674
|
_: {
|
|
1680
1675
|
notNull: true;
|
|
1681
1676
|
};
|
|
@@ -1685,10 +1680,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1685
1680
|
};
|
|
1686
1681
|
} & {
|
|
1687
1682
|
_: {
|
|
1688
|
-
fieldName: "
|
|
1683
|
+
fieldName: "processed";
|
|
1689
1684
|
};
|
|
1690
1685
|
};
|
|
1691
|
-
|
|
1686
|
+
startedAt: ConvexNumberBuilderInitial<""> & {
|
|
1692
1687
|
_: {
|
|
1693
1688
|
notNull: true;
|
|
1694
1689
|
};
|
|
@@ -1698,20 +1693,25 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1698
1693
|
};
|
|
1699
1694
|
} & {
|
|
1700
1695
|
_: {
|
|
1701
|
-
fieldName: "
|
|
1696
|
+
fieldName: "startedAt";
|
|
1702
1697
|
};
|
|
1703
1698
|
};
|
|
1704
|
-
|
|
1699
|
+
completedAt: ConvexNumberBuilderInitial<""> & {
|
|
1705
1700
|
_: {
|
|
1706
|
-
|
|
1701
|
+
tableName: "aggregate_state";
|
|
1707
1702
|
};
|
|
1708
1703
|
} & {
|
|
1704
|
+
_: {
|
|
1705
|
+
fieldName: "completedAt";
|
|
1706
|
+
};
|
|
1707
|
+
};
|
|
1708
|
+
lastError: ConvexTextBuilderInitial<""> & {
|
|
1709
1709
|
_: {
|
|
1710
1710
|
tableName: "aggregate_state";
|
|
1711
1711
|
};
|
|
1712
1712
|
} & {
|
|
1713
1713
|
_: {
|
|
1714
|
-
fieldName: "
|
|
1714
|
+
fieldName: "lastError";
|
|
1715
1715
|
};
|
|
1716
1716
|
};
|
|
1717
1717
|
tableKey: ConvexTextBuilderInitial<""> & {
|
|
@@ -1751,22 +1751,22 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1751
1751
|
fieldName: "status";
|
|
1752
1752
|
};
|
|
1753
1753
|
};
|
|
1754
|
-
|
|
1754
|
+
cursor: ConvexTextBuilderInitial<""> & {
|
|
1755
1755
|
_: {
|
|
1756
1756
|
tableName: "migration_state";
|
|
1757
1757
|
};
|
|
1758
1758
|
} & {
|
|
1759
1759
|
_: {
|
|
1760
|
-
fieldName: "
|
|
1760
|
+
fieldName: "cursor";
|
|
1761
1761
|
};
|
|
1762
1762
|
};
|
|
1763
|
-
|
|
1763
|
+
direction: ConvexTextBuilderInitial<""> & {
|
|
1764
1764
|
_: {
|
|
1765
1765
|
tableName: "migration_state";
|
|
1766
1766
|
};
|
|
1767
1767
|
} & {
|
|
1768
1768
|
_: {
|
|
1769
|
-
fieldName: "
|
|
1769
|
+
fieldName: "direction";
|
|
1770
1770
|
};
|
|
1771
1771
|
};
|
|
1772
1772
|
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
@@ -1782,7 +1782,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1782
1782
|
fieldName: "updatedAt";
|
|
1783
1783
|
};
|
|
1784
1784
|
};
|
|
1785
|
-
|
|
1785
|
+
processed: ConvexNumberBuilderInitial<""> & {
|
|
1786
1786
|
_: {
|
|
1787
1787
|
notNull: true;
|
|
1788
1788
|
};
|
|
@@ -1792,45 +1792,37 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1792
1792
|
};
|
|
1793
1793
|
} & {
|
|
1794
1794
|
_: {
|
|
1795
|
-
fieldName: "
|
|
1795
|
+
fieldName: "processed";
|
|
1796
1796
|
};
|
|
1797
1797
|
};
|
|
1798
|
-
|
|
1799
|
-
_: {
|
|
1800
|
-
notNull: true;
|
|
1801
|
-
};
|
|
1802
|
-
} & {
|
|
1798
|
+
startedAt: ConvexNumberBuilderInitial<""> & {
|
|
1803
1799
|
_: {
|
|
1804
1800
|
tableName: "migration_state";
|
|
1805
1801
|
};
|
|
1806
1802
|
} & {
|
|
1807
1803
|
_: {
|
|
1808
|
-
fieldName: "
|
|
1804
|
+
fieldName: "startedAt";
|
|
1809
1805
|
};
|
|
1810
1806
|
};
|
|
1811
|
-
|
|
1812
|
-
_: {
|
|
1813
|
-
notNull: true;
|
|
1814
|
-
};
|
|
1815
|
-
} & {
|
|
1807
|
+
completedAt: ConvexNumberBuilderInitial<""> & {
|
|
1816
1808
|
_: {
|
|
1817
1809
|
tableName: "migration_state";
|
|
1818
1810
|
};
|
|
1819
1811
|
} & {
|
|
1820
1812
|
_: {
|
|
1821
|
-
fieldName: "
|
|
1813
|
+
fieldName: "completedAt";
|
|
1822
1814
|
};
|
|
1823
1815
|
};
|
|
1824
|
-
|
|
1816
|
+
lastError: ConvexTextBuilderInitial<""> & {
|
|
1825
1817
|
_: {
|
|
1826
1818
|
tableName: "migration_state";
|
|
1827
1819
|
};
|
|
1828
1820
|
} & {
|
|
1829
1821
|
_: {
|
|
1830
|
-
fieldName: "
|
|
1822
|
+
fieldName: "lastError";
|
|
1831
1823
|
};
|
|
1832
1824
|
};
|
|
1833
|
-
|
|
1825
|
+
migrationId: ConvexTextBuilderInitial<""> & {
|
|
1834
1826
|
_: {
|
|
1835
1827
|
notNull: true;
|
|
1836
1828
|
};
|
|
@@ -1840,34 +1832,42 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1840
1832
|
};
|
|
1841
1833
|
} & {
|
|
1842
1834
|
_: {
|
|
1843
|
-
fieldName: "
|
|
1835
|
+
fieldName: "migrationId";
|
|
1844
1836
|
};
|
|
1845
1837
|
};
|
|
1846
|
-
|
|
1838
|
+
checksum: ConvexTextBuilderInitial<""> & {
|
|
1839
|
+
_: {
|
|
1840
|
+
notNull: true;
|
|
1841
|
+
};
|
|
1842
|
+
} & {
|
|
1847
1843
|
_: {
|
|
1848
1844
|
tableName: "migration_state";
|
|
1849
1845
|
};
|
|
1850
1846
|
} & {
|
|
1851
1847
|
_: {
|
|
1852
|
-
fieldName: "
|
|
1848
|
+
fieldName: "checksum";
|
|
1853
1849
|
};
|
|
1854
1850
|
};
|
|
1855
|
-
|
|
1851
|
+
applied: ConvexBooleanBuilderInitial<""> & {
|
|
1852
|
+
_: {
|
|
1853
|
+
notNull: true;
|
|
1854
|
+
};
|
|
1855
|
+
} & {
|
|
1856
1856
|
_: {
|
|
1857
1857
|
tableName: "migration_state";
|
|
1858
1858
|
};
|
|
1859
1859
|
} & {
|
|
1860
1860
|
_: {
|
|
1861
|
-
fieldName: "
|
|
1861
|
+
fieldName: "applied";
|
|
1862
1862
|
};
|
|
1863
1863
|
};
|
|
1864
|
-
|
|
1864
|
+
runId: ConvexTextBuilderInitial<""> & {
|
|
1865
1865
|
_: {
|
|
1866
1866
|
tableName: "migration_state";
|
|
1867
1867
|
};
|
|
1868
1868
|
} & {
|
|
1869
1869
|
_: {
|
|
1870
|
-
fieldName: "
|
|
1870
|
+
fieldName: "runId";
|
|
1871
1871
|
};
|
|
1872
1872
|
};
|
|
1873
1873
|
writeMode: ConvexTextBuilderInitial<""> & {
|
|
@@ -1931,7 +1931,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1931
1931
|
fieldName: "updatedAt";
|
|
1932
1932
|
};
|
|
1933
1933
|
};
|
|
1934
|
-
|
|
1934
|
+
startedAt: ConvexNumberBuilderInitial<""> & {
|
|
1935
1935
|
_: {
|
|
1936
1936
|
notNull: true;
|
|
1937
1937
|
};
|
|
@@ -1941,38 +1941,38 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1941
1941
|
};
|
|
1942
1942
|
} & {
|
|
1943
1943
|
_: {
|
|
1944
|
-
fieldName: "
|
|
1944
|
+
fieldName: "startedAt";
|
|
1945
1945
|
};
|
|
1946
1946
|
};
|
|
1947
|
-
|
|
1948
|
-
_: {
|
|
1949
|
-
notNull: true;
|
|
1950
|
-
};
|
|
1951
|
-
} & {
|
|
1947
|
+
completedAt: ConvexNumberBuilderInitial<""> & {
|
|
1952
1948
|
_: {
|
|
1953
1949
|
tableName: "migration_run";
|
|
1954
1950
|
};
|
|
1955
1951
|
} & {
|
|
1956
1952
|
_: {
|
|
1957
|
-
fieldName: "
|
|
1953
|
+
fieldName: "completedAt";
|
|
1958
1954
|
};
|
|
1959
1955
|
};
|
|
1960
|
-
|
|
1956
|
+
lastError: ConvexTextBuilderInitial<""> & {
|
|
1961
1957
|
_: {
|
|
1962
1958
|
tableName: "migration_run";
|
|
1963
1959
|
};
|
|
1964
1960
|
} & {
|
|
1965
1961
|
_: {
|
|
1966
|
-
fieldName: "
|
|
1962
|
+
fieldName: "lastError";
|
|
1967
1963
|
};
|
|
1968
1964
|
};
|
|
1969
|
-
|
|
1965
|
+
runId: ConvexTextBuilderInitial<""> & {
|
|
1966
|
+
_: {
|
|
1967
|
+
notNull: true;
|
|
1968
|
+
};
|
|
1969
|
+
} & {
|
|
1970
1970
|
_: {
|
|
1971
1971
|
tableName: "migration_run";
|
|
1972
1972
|
};
|
|
1973
1973
|
} & {
|
|
1974
1974
|
_: {
|
|
1975
|
-
fieldName: "
|
|
1975
|
+
fieldName: "runId";
|
|
1976
1976
|
};
|
|
1977
1977
|
};
|
|
1978
1978
|
dryRun: ConvexBooleanBuilderInitial<""> & {
|