@confect/server 9.0.0-next.7 → 9.0.0-next.9
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 +58 -0
- package/dist/ActionCtx.d.ts +1 -1
- package/dist/ActionCtx.js +1 -1
- package/dist/ActionCtx.js.map +1 -1
- package/dist/ActionRunner.d.ts +6 -4
- package/dist/ActionRunner.d.ts.map +1 -1
- package/dist/ActionRunner.js +4 -3
- package/dist/ActionRunner.js.map +1 -1
- package/dist/Auth.d.ts +4 -2
- package/dist/Auth.d.ts.map +1 -1
- package/dist/Auth.js +5 -1
- package/dist/Auth.js.map +1 -1
- package/dist/BlobNotFoundError.d.ts +1 -1
- package/dist/BlobNotFoundError.d.ts.map +1 -1
- package/dist/BlobNotFoundError.js +1 -1
- package/dist/BlobNotFoundError.js.map +1 -1
- package/dist/ConvexConfigProvider.d.ts +1 -1
- package/dist/ConvexConfigProvider.d.ts.map +1 -1
- package/dist/ConvexConfigProvider.js +6 -1
- package/dist/ConvexConfigProvider.js.map +1 -1
- package/dist/CronJob.d.ts +3 -3
- package/dist/CronJob.d.ts.map +1 -1
- package/dist/CronJob.js +1 -1
- package/dist/CronJob.js.map +1 -1
- package/dist/CronJobs.d.ts.map +1 -1
- package/dist/CronJobs.js +11 -4
- package/dist/CronJobs.js.map +1 -1
- package/dist/DatabaseReader.d.ts +452 -451
- package/dist/DatabaseReader.d.ts.map +1 -1
- package/dist/DatabaseReader.js +2 -1
- package/dist/DatabaseReader.js.map +1 -1
- package/dist/DatabaseSchema.d.ts +1 -1
- package/dist/DatabaseSchema.js +1 -1
- package/dist/DatabaseSchema.js.map +1 -1
- package/dist/DatabaseWriter.d.ts +7 -5
- package/dist/DatabaseWriter.d.ts.map +1 -1
- package/dist/DatabaseWriter.js +5 -1
- package/dist/DatabaseWriter.js.map +1 -1
- package/dist/Document.d.ts +2 -1
- package/dist/Document.d.ts.map +1 -1
- package/dist/Document.js +5 -1
- package/dist/Document.js.map +1 -1
- package/dist/FunctionImpl.d.ts +2 -1
- package/dist/FunctionImpl.d.ts.map +1 -1
- package/dist/FunctionImpl.js +4 -1
- package/dist/FunctionImpl.js.map +1 -1
- package/dist/GroupImpl.d.ts +2 -1
- package/dist/GroupImpl.d.ts.map +1 -1
- package/dist/GroupImpl.js +9 -1
- package/dist/GroupImpl.js.map +1 -1
- package/dist/Handler.d.ts +2 -2
- package/dist/HttpApi.d.ts +4 -2
- package/dist/HttpApi.d.ts.map +1 -1
- package/dist/HttpApi.js +7 -2
- package/dist/HttpApi.js.map +1 -1
- package/dist/MutationCtx.d.ts +1 -1
- package/dist/MutationCtx.js +1 -1
- package/dist/MutationCtx.js.map +1 -1
- package/dist/MutationRunner.d.ts +6 -4
- package/dist/MutationRunner.d.ts.map +1 -1
- package/dist/MutationRunner.js +4 -3
- package/dist/MutationRunner.js.map +1 -1
- package/dist/OrderedQuery.d.ts +7 -5
- package/dist/OrderedQuery.d.ts.map +1 -1
- package/dist/OrderedQuery.js +4 -1
- package/dist/OrderedQuery.js.map +1 -1
- package/dist/QueryCtx.d.ts +1 -1
- package/dist/QueryCtx.js +1 -1
- package/dist/QueryCtx.js.map +1 -1
- package/dist/QueryInitializer.d.ts +3 -2
- package/dist/QueryInitializer.d.ts.map +1 -1
- package/dist/QueryInitializer.js +5 -1
- package/dist/QueryInitializer.js.map +1 -1
- package/dist/QueryRunner.d.ts +6 -4
- package/dist/QueryRunner.d.ts.map +1 -1
- package/dist/QueryRunner.js +4 -3
- package/dist/QueryRunner.js.map +1 -1
- package/dist/RegisteredConvexFunction.d.ts +125 -123
- package/dist/RegisteredConvexFunction.d.ts.map +1 -1
- package/dist/RegisteredConvexFunction.js +6 -1
- package/dist/RegisteredConvexFunction.js.map +1 -1
- package/dist/RegisteredFunction.d.ts +8 -6
- package/dist/RegisteredFunction.d.ts.map +1 -1
- package/dist/RegisteredFunction.js +5 -1
- package/dist/RegisteredFunction.js.map +1 -1
- package/dist/RegisteredFunctions.d.ts.map +1 -1
- package/dist/RegisteredFunctions.js +2 -1
- package/dist/RegisteredFunctions.js.map +1 -1
- package/dist/RegisteredNodeFunction.d.ts.map +1 -1
- package/dist/RegisteredNodeFunction.js +3 -2
- package/dist/RegisteredNodeFunction.js.map +1 -1
- package/dist/RegistryItem.js +1 -1
- package/dist/RegistryItem.js.map +1 -1
- package/dist/Scheduler.d.ts +12 -8
- package/dist/Scheduler.d.ts.map +1 -1
- package/dist/Scheduler.js +10 -6
- package/dist/Scheduler.js.map +1 -1
- package/dist/SchemaToValidator.d.ts +4 -1
- package/dist/SchemaToValidator.d.ts.map +1 -1
- package/dist/SchemaToValidator.js +13 -1
- package/dist/SchemaToValidator.js.map +1 -1
- package/dist/StorageActionWriter.d.ts +4 -3
- package/dist/StorageActionWriter.d.ts.map +1 -1
- package/dist/StorageActionWriter.js +4 -1
- package/dist/StorageActionWriter.js.map +1 -1
- package/dist/StorageReader.d.ts +3 -2
- package/dist/StorageReader.d.ts.map +1 -1
- package/dist/StorageReader.js +5 -1
- package/dist/StorageReader.js.map +1 -1
- package/dist/StorageWriter.d.ts +3 -2
- package/dist/StorageWriter.d.ts.map +1 -1
- package/dist/StorageWriter.js +4 -1
- package/dist/StorageWriter.js.map +1 -1
- package/dist/Table.d.ts +19 -19
- package/dist/Table.d.ts.map +1 -1
- package/dist/Table.js +2 -1
- package/dist/Table.js.map +1 -1
- package/dist/TableInfo.d.ts +1 -1
- package/dist/VectorSearch.d.ts +3 -1
- package/dist/VectorSearch.d.ts.map +1 -1
- package/dist/VectorSearch.js +3 -1
- package/dist/VectorSearch.js.map +1 -1
- package/dist/internal/utils.d.ts +3 -2
- package/dist/internal/utils.d.ts.map +1 -1
- package/dist/internal/utils.js +3 -1
- package/dist/internal/utils.js.map +1 -1
- package/package.json +2 -2
- package/src/ActionCtx.ts +1 -1
- package/src/ActionRunner.ts +2 -1
- package/src/Auth.ts +5 -1
- package/src/BlobNotFoundError.ts +1 -1
- package/src/ConvexConfigProvider.ts +6 -8
- package/src/CronJob.ts +1 -1
- package/src/CronJobs.ts +8 -10
- package/src/DatabaseReader.ts +2 -1
- package/src/DatabaseSchema.ts +2 -2
- package/src/DatabaseWriter.ts +5 -1
- package/src/Document.ts +5 -1
- package/src/FunctionImpl.ts +4 -1
- package/src/GroupImpl.ts +9 -11
- package/src/HttpApi.ts +8 -9
- package/src/MutationCtx.ts +1 -1
- package/src/MutationRunner.ts +2 -1
- package/src/OrderedQuery.ts +5 -1
- package/src/QueryCtx.ts +1 -1
- package/src/QueryInitializer.ts +5 -1
- package/src/QueryRunner.ts +2 -1
- package/src/RegisteredConvexFunction.ts +6 -1
- package/src/RegisteredFunction.ts +5 -1
- package/src/RegisteredFunctions.ts +3 -1
- package/src/RegisteredNodeFunction.ts +4 -2
- package/src/RegistryItem.ts +1 -1
- package/src/Scheduler.ts +5 -1
- package/src/SchemaToValidator.ts +14 -16
- package/src/StorageActionWriter.ts +4 -1
- package/src/StorageReader.ts +5 -1
- package/src/StorageWriter.ts +4 -1
- package/src/Table.ts +2 -1
- package/src/VectorSearch.ts +3 -1
- package/src/internal/utils.ts +3 -1
|
@@ -16,15 +16,17 @@ import { StorageReader as StorageReader$1 } from "./StorageReader.js";
|
|
|
16
16
|
import { StorageWriter as StorageWriter$1 } from "./StorageWriter.js";
|
|
17
17
|
import { Any } from "./RegisteredFunction.js";
|
|
18
18
|
import { AnyWithProps as AnyWithProps$1 } from "./RegistryItem.js";
|
|
19
|
-
import { Effect, Layer, Schema } from "effect";
|
|
20
19
|
import * as _confect_core_Ref0 from "@confect/core/Ref";
|
|
21
20
|
import * as convex_server0 from "convex/server";
|
|
22
21
|
import { GenericMutationCtx } from "convex/server";
|
|
23
|
-
import * as
|
|
24
|
-
import * as
|
|
25
|
-
import
|
|
22
|
+
import * as Layer from "effect/Layer";
|
|
23
|
+
import * as Effect from "effect/Effect";
|
|
24
|
+
import "effect/Schema";
|
|
26
25
|
import * as effect_Duration0 from "effect/Duration";
|
|
26
|
+
import * as effect_ParseResult0 from "effect/ParseResult";
|
|
27
|
+
import * as convex_values0 from "convex/values";
|
|
27
28
|
import * as effect_DateTime0 from "effect/DateTime";
|
|
29
|
+
import * as _confect_core_Types0 from "@confect/core/Types";
|
|
28
30
|
|
|
29
31
|
//#region src/RegisteredConvexFunction.d.ts
|
|
30
32
|
declare namespace RegisteredConvexFunction_d_exports {
|
|
@@ -34,11 +36,8 @@ declare const make: (databaseSchema: AnyWithProps, {
|
|
|
34
36
|
functionSpec,
|
|
35
37
|
handler
|
|
36
38
|
}: AnyWithProps$1) => Any;
|
|
37
|
-
declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx: GenericMutationCtx<ToConvex<FromSchema<Schema>>>) => Layer.Layer<{
|
|
38
|
-
|
|
39
|
-
runAt: <Ref_ extends _confect_core_Ref0.AnyMutation | _confect_core_Ref0.AnyAction>(dateTime: effect_DateTime0.DateTime, ref: Ref_, ...args: _confect_core_Ref0.OptionalArgs<Ref_>) => Effect.Effect<convex_values0.GenericId<"_scheduled_functions">, never, never>;
|
|
40
|
-
} | Auth$1 | StorageReader$1 | StorageWriter$1 | (<Query extends _confect_core_Ref0.AnyQuery>(query: Query, ...args: _confect_core_Ref0.OptionalArgs<Query>) => Effect.Effect<_confect_core_Ref0.Returns<Query>, _confect_core_Ref0.Error<Query> | effect_ParseResult0.ParseError>) | (<Mutation extends _confect_core_Ref0.AnyMutation>(mutation: Mutation, ...args: _confect_core_Ref0.OptionalArgs<Mutation>) => Effect.Effect<_confect_core_Ref0.Returns<Mutation>, _confect_core_Ref0.Error<Mutation> | effect_ParseResult0.ParseError>) | GenericMutationCtx<ToConvex<FromSchema<Schema>>> | {
|
|
41
|
-
table: <const TableName extends "_storage" | "_scheduled_functions" | Name<Tables<Schema>>>(tableName: TableName) => {
|
|
39
|
+
declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx: GenericMutationCtx<ToConvex<FromSchema<Schema>>>) => Layer.Layer<Auth$1 | (<Query extends _confect_core_Ref0.AnyQuery>(query: Query, ...args: _confect_core_Ref0.OptionalArgs<Query>) => Effect.Effect<_confect_core_Ref0.Returns<Query>, _confect_core_Ref0.Error<Query> | effect_ParseResult0.ParseError>) | GenericMutationCtx<ToConvex<FromSchema<Schema>>> | {
|
|
40
|
+
table: <const TableName extends "_scheduled_functions" | "_storage" | Name<Tables<Schema>>>(tableName: TableName) => {
|
|
42
41
|
readonly get: {
|
|
43
42
|
(id: convex_values0.GenericId<TableName>): Effect.Effect<(TableInfo<WithName<Tables<Schema>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", Schema.Struct<{
|
|
44
43
|
name: typeof Schema.String;
|
|
@@ -60,8 +59,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
60
59
|
kind: Schema.Literal<["canceled"]>;
|
|
61
60
|
}>]>;
|
|
62
61
|
}>, convex_values0.VObject<{
|
|
63
|
-
args: any[];
|
|
64
62
|
name: string;
|
|
63
|
+
args: any[];
|
|
65
64
|
scheduledTime: number;
|
|
66
65
|
state: {
|
|
67
66
|
kind: "pending";
|
|
@@ -70,15 +69,15 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
70
69
|
} | {
|
|
71
70
|
kind: "success";
|
|
72
71
|
} | {
|
|
73
|
-
error: string;
|
|
74
72
|
kind: "failed";
|
|
73
|
+
error: string;
|
|
75
74
|
} | {
|
|
76
75
|
kind: "canceled";
|
|
77
76
|
};
|
|
78
77
|
completedTime?: number;
|
|
79
78
|
}, {
|
|
80
|
-
args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
|
|
81
79
|
name: convex_values0.VString<string, "required">;
|
|
80
|
+
args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
|
|
82
81
|
scheduledTime: convex_values0.VFloat64<number, "required">;
|
|
83
82
|
state: convex_values0.VUnion<{
|
|
84
83
|
kind: "pending";
|
|
@@ -87,8 +86,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
87
86
|
} | {
|
|
88
87
|
kind: "success";
|
|
89
88
|
} | {
|
|
90
|
-
error: string;
|
|
91
89
|
kind: "failed";
|
|
90
|
+
error: string;
|
|
92
91
|
} | {
|
|
93
92
|
kind: "canceled";
|
|
94
93
|
}, [convex_values0.VObject<{
|
|
@@ -104,18 +103,18 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
104
103
|
}, {
|
|
105
104
|
kind: convex_values0.VLiteral<"success", "required">;
|
|
106
105
|
}, "required", "kind">, convex_values0.VObject<{
|
|
107
|
-
error: string;
|
|
108
106
|
kind: "failed";
|
|
107
|
+
error: string;
|
|
109
108
|
}, {
|
|
110
|
-
error: convex_values0.VString<string, "required">;
|
|
111
109
|
kind: convex_values0.VLiteral<"failed", "required">;
|
|
112
|
-
|
|
110
|
+
error: convex_values0.VString<string, "required">;
|
|
111
|
+
}, "required", "kind" | "error">, convex_values0.VObject<{
|
|
113
112
|
kind: "canceled";
|
|
114
113
|
}, {
|
|
115
114
|
kind: convex_values0.VLiteral<"canceled", "required">;
|
|
116
|
-
}, "required", "kind">], "required", "
|
|
115
|
+
}, "required", "kind">], "required", "kind" | "error">;
|
|
117
116
|
completedTime: convex_values0.VFloat64<number | undefined, "optional">;
|
|
118
|
-
}, "required", "
|
|
117
|
+
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
|
|
119
118
|
sha256: typeof Schema.String;
|
|
120
119
|
size: typeof Schema.Number;
|
|
121
120
|
contentType: Schema.optionalWith<typeof Schema.String, {
|
|
@@ -129,7 +128,7 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
129
128
|
sha256: convex_values0.VString<string, "required">;
|
|
130
129
|
size: convex_values0.VFloat64<number, "required">;
|
|
131
130
|
contentType: convex_values0.VString<string | undefined, "optional">;
|
|
132
|
-
}, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["document"],
|
|
131
|
+
}, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["document"], DocumentDecodeError | GetByIdFailure, never>;
|
|
133
132
|
<IndexName extends keyof (TableInfo<WithName<Tables<Schema>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", Schema.Struct<{
|
|
134
133
|
name: typeof Schema.String;
|
|
135
134
|
args: Schema.Array$<typeof Schema.Any>;
|
|
@@ -150,8 +149,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
150
149
|
kind: Schema.Literal<["canceled"]>;
|
|
151
150
|
}>]>;
|
|
152
151
|
}>, convex_values0.VObject<{
|
|
153
|
-
args: any[];
|
|
154
152
|
name: string;
|
|
153
|
+
args: any[];
|
|
155
154
|
scheduledTime: number;
|
|
156
155
|
state: {
|
|
157
156
|
kind: "pending";
|
|
@@ -160,15 +159,15 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
160
159
|
} | {
|
|
161
160
|
kind: "success";
|
|
162
161
|
} | {
|
|
163
|
-
error: string;
|
|
164
162
|
kind: "failed";
|
|
163
|
+
error: string;
|
|
165
164
|
} | {
|
|
166
165
|
kind: "canceled";
|
|
167
166
|
};
|
|
168
167
|
completedTime?: number;
|
|
169
168
|
}, {
|
|
170
|
-
args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
|
|
171
169
|
name: convex_values0.VString<string, "required">;
|
|
170
|
+
args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
|
|
172
171
|
scheduledTime: convex_values0.VFloat64<number, "required">;
|
|
173
172
|
state: convex_values0.VUnion<{
|
|
174
173
|
kind: "pending";
|
|
@@ -177,8 +176,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
177
176
|
} | {
|
|
178
177
|
kind: "success";
|
|
179
178
|
} | {
|
|
180
|
-
error: string;
|
|
181
179
|
kind: "failed";
|
|
180
|
+
error: string;
|
|
182
181
|
} | {
|
|
183
182
|
kind: "canceled";
|
|
184
183
|
}, [convex_values0.VObject<{
|
|
@@ -194,18 +193,18 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
194
193
|
}, {
|
|
195
194
|
kind: convex_values0.VLiteral<"success", "required">;
|
|
196
195
|
}, "required", "kind">, convex_values0.VObject<{
|
|
197
|
-
error: string;
|
|
198
196
|
kind: "failed";
|
|
197
|
+
error: string;
|
|
199
198
|
}, {
|
|
200
|
-
error: convex_values0.VString<string, "required">;
|
|
201
199
|
kind: convex_values0.VLiteral<"failed", "required">;
|
|
202
|
-
|
|
200
|
+
error: convex_values0.VString<string, "required">;
|
|
201
|
+
}, "required", "kind" | "error">, convex_values0.VObject<{
|
|
203
202
|
kind: "canceled";
|
|
204
203
|
}, {
|
|
205
204
|
kind: convex_values0.VLiteral<"canceled", "required">;
|
|
206
|
-
}, "required", "kind">], "required", "
|
|
205
|
+
}, "required", "kind">], "required", "kind" | "error">;
|
|
207
206
|
completedTime: convex_values0.VFloat64<number | undefined, "optional">;
|
|
208
|
-
}, "required", "
|
|
207
|
+
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
|
|
209
208
|
sha256: typeof Schema.String;
|
|
210
209
|
size: typeof Schema.Number;
|
|
211
210
|
contentType: Schema.optionalWith<typeof Schema.String, {
|
|
@@ -219,7 +218,7 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
219
218
|
sha256: convex_values0.VString<string, "required">;
|
|
220
219
|
size: convex_values0.VFloat64<number, "required">;
|
|
221
220
|
contentType: convex_values0.VString<string | undefined, "optional">;
|
|
222
|
-
}, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["indexes"]>(indexName: IndexName, ...indexFieldValues: _confect_core_Types0.IndexFieldTypesForEq<ToConvex<DataModel<Tables<Schema
|
|
221
|
+
}, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["indexes"]>(indexName: IndexName, ...indexFieldValues: _confect_core_Types0.IndexFieldTypesForEq<ToConvex<DataModel<SystemTables | Tables<Schema>>>, TableName, (TableInfo<WithName<Tables<Schema>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", Schema.Struct<{
|
|
223
222
|
name: typeof Schema.String;
|
|
224
223
|
args: Schema.Array$<typeof Schema.Any>;
|
|
225
224
|
scheduledTime: typeof Schema.Number;
|
|
@@ -239,8 +238,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
239
238
|
kind: Schema.Literal<["canceled"]>;
|
|
240
239
|
}>]>;
|
|
241
240
|
}>, convex_values0.VObject<{
|
|
242
|
-
args: any[];
|
|
243
241
|
name: string;
|
|
242
|
+
args: any[];
|
|
244
243
|
scheduledTime: number;
|
|
245
244
|
state: {
|
|
246
245
|
kind: "pending";
|
|
@@ -249,15 +248,15 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
249
248
|
} | {
|
|
250
249
|
kind: "success";
|
|
251
250
|
} | {
|
|
252
|
-
error: string;
|
|
253
251
|
kind: "failed";
|
|
252
|
+
error: string;
|
|
254
253
|
} | {
|
|
255
254
|
kind: "canceled";
|
|
256
255
|
};
|
|
257
256
|
completedTime?: number;
|
|
258
257
|
}, {
|
|
259
|
-
args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
|
|
260
258
|
name: convex_values0.VString<string, "required">;
|
|
259
|
+
args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
|
|
261
260
|
scheduledTime: convex_values0.VFloat64<number, "required">;
|
|
262
261
|
state: convex_values0.VUnion<{
|
|
263
262
|
kind: "pending";
|
|
@@ -266,8 +265,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
266
265
|
} | {
|
|
267
266
|
kind: "success";
|
|
268
267
|
} | {
|
|
269
|
-
error: string;
|
|
270
268
|
kind: "failed";
|
|
269
|
+
error: string;
|
|
271
270
|
} | {
|
|
272
271
|
kind: "canceled";
|
|
273
272
|
}, [convex_values0.VObject<{
|
|
@@ -283,18 +282,18 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
283
282
|
}, {
|
|
284
283
|
kind: convex_values0.VLiteral<"success", "required">;
|
|
285
284
|
}, "required", "kind">, convex_values0.VObject<{
|
|
286
|
-
error: string;
|
|
287
285
|
kind: "failed";
|
|
286
|
+
error: string;
|
|
288
287
|
}, {
|
|
289
|
-
error: convex_values0.VString<string, "required">;
|
|
290
288
|
kind: convex_values0.VLiteral<"failed", "required">;
|
|
291
|
-
|
|
289
|
+
error: convex_values0.VString<string, "required">;
|
|
290
|
+
}, "required", "kind" | "error">, convex_values0.VObject<{
|
|
292
291
|
kind: "canceled";
|
|
293
292
|
}, {
|
|
294
293
|
kind: convex_values0.VLiteral<"canceled", "required">;
|
|
295
|
-
}, "required", "kind">], "required", "
|
|
294
|
+
}, "required", "kind">], "required", "kind" | "error">;
|
|
296
295
|
completedTime: convex_values0.VFloat64<number | undefined, "optional">;
|
|
297
|
-
}, "required", "
|
|
296
|
+
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
|
|
298
297
|
sha256: typeof Schema.String;
|
|
299
298
|
size: typeof Schema.Number;
|
|
300
299
|
contentType: Schema.optionalWith<typeof Schema.String, {
|
|
@@ -328,8 +327,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
328
327
|
kind: Schema.Literal<["canceled"]>;
|
|
329
328
|
}>]>;
|
|
330
329
|
}>, convex_values0.VObject<{
|
|
331
|
-
args: any[];
|
|
332
330
|
name: string;
|
|
331
|
+
args: any[];
|
|
333
332
|
scheduledTime: number;
|
|
334
333
|
state: {
|
|
335
334
|
kind: "pending";
|
|
@@ -338,15 +337,15 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
338
337
|
} | {
|
|
339
338
|
kind: "success";
|
|
340
339
|
} | {
|
|
341
|
-
error: string;
|
|
342
340
|
kind: "failed";
|
|
341
|
+
error: string;
|
|
343
342
|
} | {
|
|
344
343
|
kind: "canceled";
|
|
345
344
|
};
|
|
346
345
|
completedTime?: number;
|
|
347
346
|
}, {
|
|
348
|
-
args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
|
|
349
347
|
name: convex_values0.VString<string, "required">;
|
|
348
|
+
args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
|
|
350
349
|
scheduledTime: convex_values0.VFloat64<number, "required">;
|
|
351
350
|
state: convex_values0.VUnion<{
|
|
352
351
|
kind: "pending";
|
|
@@ -355,8 +354,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
355
354
|
} | {
|
|
356
355
|
kind: "success";
|
|
357
356
|
} | {
|
|
358
|
-
error: string;
|
|
359
357
|
kind: "failed";
|
|
358
|
+
error: string;
|
|
360
359
|
} | {
|
|
361
360
|
kind: "canceled";
|
|
362
361
|
}, [convex_values0.VObject<{
|
|
@@ -372,18 +371,18 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
372
371
|
}, {
|
|
373
372
|
kind: convex_values0.VLiteral<"success", "required">;
|
|
374
373
|
}, "required", "kind">, convex_values0.VObject<{
|
|
375
|
-
error: string;
|
|
376
374
|
kind: "failed";
|
|
375
|
+
error: string;
|
|
377
376
|
}, {
|
|
378
|
-
error: convex_values0.VString<string, "required">;
|
|
379
377
|
kind: convex_values0.VLiteral<"failed", "required">;
|
|
380
|
-
|
|
378
|
+
error: convex_values0.VString<string, "required">;
|
|
379
|
+
}, "required", "kind" | "error">, convex_values0.VObject<{
|
|
381
380
|
kind: "canceled";
|
|
382
381
|
}, {
|
|
383
382
|
kind: convex_values0.VLiteral<"canceled", "required">;
|
|
384
|
-
}, "required", "kind">], "required", "
|
|
383
|
+
}, "required", "kind">], "required", "kind" | "error">;
|
|
385
384
|
completedTime: convex_values0.VFloat64<number | undefined, "optional">;
|
|
386
|
-
}, "required", "
|
|
385
|
+
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
|
|
387
386
|
sha256: typeof Schema.String;
|
|
388
387
|
size: typeof Schema.Number;
|
|
389
388
|
contentType: Schema.optionalWith<typeof Schema.String, {
|
|
@@ -420,8 +419,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
420
419
|
kind: Schema.Literal<["canceled"]>;
|
|
421
420
|
}>]>;
|
|
422
421
|
}>, convex_values0.VObject<{
|
|
423
|
-
args: any[];
|
|
424
422
|
name: string;
|
|
423
|
+
args: any[];
|
|
425
424
|
scheduledTime: number;
|
|
426
425
|
state: {
|
|
427
426
|
kind: "pending";
|
|
@@ -430,15 +429,15 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
430
429
|
} | {
|
|
431
430
|
kind: "success";
|
|
432
431
|
} | {
|
|
433
|
-
error: string;
|
|
434
432
|
kind: "failed";
|
|
433
|
+
error: string;
|
|
435
434
|
} | {
|
|
436
435
|
kind: "canceled";
|
|
437
436
|
};
|
|
438
437
|
completedTime?: number;
|
|
439
438
|
}, {
|
|
440
|
-
args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
|
|
441
439
|
name: convex_values0.VString<string, "required">;
|
|
440
|
+
args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
|
|
442
441
|
scheduledTime: convex_values0.VFloat64<number, "required">;
|
|
443
442
|
state: convex_values0.VUnion<{
|
|
444
443
|
kind: "pending";
|
|
@@ -447,8 +446,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
447
446
|
} | {
|
|
448
447
|
kind: "success";
|
|
449
448
|
} | {
|
|
450
|
-
error: string;
|
|
451
449
|
kind: "failed";
|
|
450
|
+
error: string;
|
|
452
451
|
} | {
|
|
453
452
|
kind: "canceled";
|
|
454
453
|
}, [convex_values0.VObject<{
|
|
@@ -464,18 +463,18 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
464
463
|
}, {
|
|
465
464
|
kind: convex_values0.VLiteral<"success", "required">;
|
|
466
465
|
}, "required", "kind">, convex_values0.VObject<{
|
|
467
|
-
error: string;
|
|
468
466
|
kind: "failed";
|
|
467
|
+
error: string;
|
|
469
468
|
}, {
|
|
470
|
-
error: convex_values0.VString<string, "required">;
|
|
471
469
|
kind: convex_values0.VLiteral<"failed", "required">;
|
|
472
|
-
|
|
470
|
+
error: convex_values0.VString<string, "required">;
|
|
471
|
+
}, "required", "kind" | "error">, convex_values0.VObject<{
|
|
473
472
|
kind: "canceled";
|
|
474
473
|
}, {
|
|
475
474
|
kind: convex_values0.VLiteral<"canceled", "required">;
|
|
476
|
-
}, "required", "kind">], "required", "
|
|
475
|
+
}, "required", "kind">], "required", "kind" | "error">;
|
|
477
476
|
completedTime: convex_values0.VFloat64<number | undefined, "optional">;
|
|
478
|
-
}, "required", "
|
|
477
|
+
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
|
|
479
478
|
sha256: typeof Schema.String;
|
|
480
479
|
size: typeof Schema.Number;
|
|
481
480
|
contentType: Schema.optionalWith<typeof Schema.String, {
|
|
@@ -509,8 +508,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
509
508
|
kind: Schema.Literal<["canceled"]>;
|
|
510
509
|
}>]>;
|
|
511
510
|
}>, convex_values0.VObject<{
|
|
512
|
-
args: any[];
|
|
513
511
|
name: string;
|
|
512
|
+
args: any[];
|
|
514
513
|
scheduledTime: number;
|
|
515
514
|
state: {
|
|
516
515
|
kind: "pending";
|
|
@@ -519,15 +518,15 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
519
518
|
} | {
|
|
520
519
|
kind: "success";
|
|
521
520
|
} | {
|
|
522
|
-
error: string;
|
|
523
521
|
kind: "failed";
|
|
522
|
+
error: string;
|
|
524
523
|
} | {
|
|
525
524
|
kind: "canceled";
|
|
526
525
|
};
|
|
527
526
|
completedTime?: number;
|
|
528
527
|
}, {
|
|
529
|
-
args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
|
|
530
528
|
name: convex_values0.VString<string, "required">;
|
|
529
|
+
args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
|
|
531
530
|
scheduledTime: convex_values0.VFloat64<number, "required">;
|
|
532
531
|
state: convex_values0.VUnion<{
|
|
533
532
|
kind: "pending";
|
|
@@ -536,8 +535,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
536
535
|
} | {
|
|
537
536
|
kind: "success";
|
|
538
537
|
} | {
|
|
539
|
-
error: string;
|
|
540
538
|
kind: "failed";
|
|
539
|
+
error: string;
|
|
541
540
|
} | {
|
|
542
541
|
kind: "canceled";
|
|
543
542
|
}, [convex_values0.VObject<{
|
|
@@ -553,18 +552,18 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
553
552
|
}, {
|
|
554
553
|
kind: convex_values0.VLiteral<"success", "required">;
|
|
555
554
|
}, "required", "kind">, convex_values0.VObject<{
|
|
556
|
-
error: string;
|
|
557
555
|
kind: "failed";
|
|
556
|
+
error: string;
|
|
558
557
|
}, {
|
|
559
|
-
error: convex_values0.VString<string, "required">;
|
|
560
558
|
kind: convex_values0.VLiteral<"failed", "required">;
|
|
561
|
-
|
|
559
|
+
error: convex_values0.VString<string, "required">;
|
|
560
|
+
}, "required", "kind" | "error">, convex_values0.VObject<{
|
|
562
561
|
kind: "canceled";
|
|
563
562
|
}, {
|
|
564
563
|
kind: convex_values0.VLiteral<"canceled", "required">;
|
|
565
|
-
}, "required", "kind">], "required", "
|
|
564
|
+
}, "required", "kind">], "required", "kind" | "error">;
|
|
566
565
|
completedTime: convex_values0.VFloat64<number | undefined, "optional">;
|
|
567
|
-
}, "required", "
|
|
566
|
+
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
|
|
568
567
|
sha256: typeof Schema.String;
|
|
569
568
|
size: typeof Schema.Number;
|
|
570
569
|
contentType: Schema.optionalWith<typeof Schema.String, {
|
|
@@ -578,7 +577,7 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
578
577
|
sha256: convex_values0.VString<string, "required">;
|
|
579
578
|
size: convex_values0.VFloat64<number, "required">;
|
|
580
579
|
contentType: convex_values0.VString<string | undefined, "optional">;
|
|
581
|
-
}, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["convexDocument"], convex_server0.NamedIndex<TableInfoWithName<DataModel<Tables<Schema
|
|
580
|
+
}, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["convexDocument"], convex_server0.NamedIndex<TableInfoWithName<DataModel<SystemTables | Tables<Schema>>, TableName>, IndexName>, 0>) => convex_server0.IndexRange) | undefined, order?: "asc" | "desc"): OrderedQuery$1<TableInfo<WithName<Tables<Schema>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", Schema.Struct<{
|
|
582
581
|
name: typeof Schema.String;
|
|
583
582
|
args: Schema.Array$<typeof Schema.Any>;
|
|
584
583
|
scheduledTime: typeof Schema.Number;
|
|
@@ -598,8 +597,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
598
597
|
kind: Schema.Literal<["canceled"]>;
|
|
599
598
|
}>]>;
|
|
600
599
|
}>, convex_values0.VObject<{
|
|
601
|
-
args: any[];
|
|
602
600
|
name: string;
|
|
601
|
+
args: any[];
|
|
603
602
|
scheduledTime: number;
|
|
604
603
|
state: {
|
|
605
604
|
kind: "pending";
|
|
@@ -608,15 +607,15 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
608
607
|
} | {
|
|
609
608
|
kind: "success";
|
|
610
609
|
} | {
|
|
611
|
-
error: string;
|
|
612
610
|
kind: "failed";
|
|
611
|
+
error: string;
|
|
613
612
|
} | {
|
|
614
613
|
kind: "canceled";
|
|
615
614
|
};
|
|
616
615
|
completedTime?: number;
|
|
617
616
|
}, {
|
|
618
|
-
args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
|
|
619
617
|
name: convex_values0.VString<string, "required">;
|
|
618
|
+
args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
|
|
620
619
|
scheduledTime: convex_values0.VFloat64<number, "required">;
|
|
621
620
|
state: convex_values0.VUnion<{
|
|
622
621
|
kind: "pending";
|
|
@@ -625,8 +624,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
625
624
|
} | {
|
|
626
625
|
kind: "success";
|
|
627
626
|
} | {
|
|
628
|
-
error: string;
|
|
629
627
|
kind: "failed";
|
|
628
|
+
error: string;
|
|
630
629
|
} | {
|
|
631
630
|
kind: "canceled";
|
|
632
631
|
}, [convex_values0.VObject<{
|
|
@@ -642,18 +641,18 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
642
641
|
}, {
|
|
643
642
|
kind: convex_values0.VLiteral<"success", "required">;
|
|
644
643
|
}, "required", "kind">, convex_values0.VObject<{
|
|
645
|
-
error: string;
|
|
646
644
|
kind: "failed";
|
|
645
|
+
error: string;
|
|
647
646
|
}, {
|
|
648
|
-
error: convex_values0.VString<string, "required">;
|
|
649
647
|
kind: convex_values0.VLiteral<"failed", "required">;
|
|
650
|
-
|
|
648
|
+
error: convex_values0.VString<string, "required">;
|
|
649
|
+
}, "required", "kind" | "error">, convex_values0.VObject<{
|
|
651
650
|
kind: "canceled";
|
|
652
651
|
}, {
|
|
653
652
|
kind: convex_values0.VLiteral<"canceled", "required">;
|
|
654
|
-
}, "required", "kind">], "required", "
|
|
653
|
+
}, "required", "kind">], "required", "kind" | "error">;
|
|
655
654
|
completedTime: convex_values0.VFloat64<number | undefined, "optional">;
|
|
656
|
-
}, "required", "
|
|
655
|
+
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
|
|
657
656
|
sha256: typeof Schema.String;
|
|
658
657
|
size: typeof Schema.Number;
|
|
659
658
|
contentType: Schema.optionalWith<typeof Schema.String, {
|
|
@@ -688,8 +687,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
688
687
|
kind: Schema.Literal<["canceled"]>;
|
|
689
688
|
}>]>;
|
|
690
689
|
}>, convex_values0.VObject<{
|
|
691
|
-
args: any[];
|
|
692
690
|
name: string;
|
|
691
|
+
args: any[];
|
|
693
692
|
scheduledTime: number;
|
|
694
693
|
state: {
|
|
695
694
|
kind: "pending";
|
|
@@ -698,15 +697,15 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
698
697
|
} | {
|
|
699
698
|
kind: "success";
|
|
700
699
|
} | {
|
|
701
|
-
error: string;
|
|
702
700
|
kind: "failed";
|
|
701
|
+
error: string;
|
|
703
702
|
} | {
|
|
704
703
|
kind: "canceled";
|
|
705
704
|
};
|
|
706
705
|
completedTime?: number;
|
|
707
706
|
}, {
|
|
708
|
-
args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
|
|
709
707
|
name: convex_values0.VString<string, "required">;
|
|
708
|
+
args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
|
|
710
709
|
scheduledTime: convex_values0.VFloat64<number, "required">;
|
|
711
710
|
state: convex_values0.VUnion<{
|
|
712
711
|
kind: "pending";
|
|
@@ -715,8 +714,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
715
714
|
} | {
|
|
716
715
|
kind: "success";
|
|
717
716
|
} | {
|
|
718
|
-
error: string;
|
|
719
717
|
kind: "failed";
|
|
718
|
+
error: string;
|
|
720
719
|
} | {
|
|
721
720
|
kind: "canceled";
|
|
722
721
|
}, [convex_values0.VObject<{
|
|
@@ -732,18 +731,18 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
732
731
|
}, {
|
|
733
732
|
kind: convex_values0.VLiteral<"success", "required">;
|
|
734
733
|
}, "required", "kind">, convex_values0.VObject<{
|
|
735
|
-
error: string;
|
|
736
734
|
kind: "failed";
|
|
735
|
+
error: string;
|
|
737
736
|
}, {
|
|
738
|
-
error: convex_values0.VString<string, "required">;
|
|
739
737
|
kind: convex_values0.VLiteral<"failed", "required">;
|
|
740
|
-
|
|
738
|
+
error: convex_values0.VString<string, "required">;
|
|
739
|
+
}, "required", "kind" | "error">, convex_values0.VObject<{
|
|
741
740
|
kind: "canceled";
|
|
742
741
|
}, {
|
|
743
742
|
kind: convex_values0.VLiteral<"canceled", "required">;
|
|
744
|
-
}, "required", "kind">], "required", "
|
|
743
|
+
}, "required", "kind">], "required", "kind" | "error">;
|
|
745
744
|
completedTime: convex_values0.VFloat64<number | undefined, "optional">;
|
|
746
|
-
}, "required", "
|
|
745
|
+
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
|
|
747
746
|
sha256: typeof Schema.String;
|
|
748
747
|
size: typeof Schema.Number;
|
|
749
748
|
contentType: Schema.optionalWith<typeof Schema.String, {
|
|
@@ -777,8 +776,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
777
776
|
kind: Schema.Literal<["canceled"]>;
|
|
778
777
|
}>]>;
|
|
779
778
|
}>, convex_values0.VObject<{
|
|
780
|
-
args: any[];
|
|
781
779
|
name: string;
|
|
780
|
+
args: any[];
|
|
782
781
|
scheduledTime: number;
|
|
783
782
|
state: {
|
|
784
783
|
kind: "pending";
|
|
@@ -787,15 +786,15 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
787
786
|
} | {
|
|
788
787
|
kind: "success";
|
|
789
788
|
} | {
|
|
790
|
-
error: string;
|
|
791
789
|
kind: "failed";
|
|
790
|
+
error: string;
|
|
792
791
|
} | {
|
|
793
792
|
kind: "canceled";
|
|
794
793
|
};
|
|
795
794
|
completedTime?: number;
|
|
796
795
|
}, {
|
|
797
|
-
args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
|
|
798
796
|
name: convex_values0.VString<string, "required">;
|
|
797
|
+
args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
|
|
799
798
|
scheduledTime: convex_values0.VFloat64<number, "required">;
|
|
800
799
|
state: convex_values0.VUnion<{
|
|
801
800
|
kind: "pending";
|
|
@@ -804,8 +803,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
804
803
|
} | {
|
|
805
804
|
kind: "success";
|
|
806
805
|
} | {
|
|
807
|
-
error: string;
|
|
808
806
|
kind: "failed";
|
|
807
|
+
error: string;
|
|
809
808
|
} | {
|
|
810
809
|
kind: "canceled";
|
|
811
810
|
}, [convex_values0.VObject<{
|
|
@@ -821,18 +820,18 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
821
820
|
}, {
|
|
822
821
|
kind: convex_values0.VLiteral<"success", "required">;
|
|
823
822
|
}, "required", "kind">, convex_values0.VObject<{
|
|
824
|
-
error: string;
|
|
825
823
|
kind: "failed";
|
|
824
|
+
error: string;
|
|
826
825
|
}, {
|
|
827
|
-
error: convex_values0.VString<string, "required">;
|
|
828
826
|
kind: convex_values0.VLiteral<"failed", "required">;
|
|
829
|
-
|
|
827
|
+
error: convex_values0.VString<string, "required">;
|
|
828
|
+
}, "required", "kind" | "error">, convex_values0.VObject<{
|
|
830
829
|
kind: "canceled";
|
|
831
830
|
}, {
|
|
832
831
|
kind: convex_values0.VLiteral<"canceled", "required">;
|
|
833
|
-
}, "required", "kind">], "required", "
|
|
832
|
+
}, "required", "kind">], "required", "kind" | "error">;
|
|
834
833
|
completedTime: convex_values0.VFloat64<number | undefined, "optional">;
|
|
835
|
-
}, "required", "
|
|
834
|
+
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
|
|
836
835
|
sha256: typeof Schema.String;
|
|
837
836
|
size: typeof Schema.Number;
|
|
838
837
|
contentType: Schema.optionalWith<typeof Schema.String, {
|
|
@@ -868,8 +867,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
868
867
|
kind: Schema.Literal<["canceled"]>;
|
|
869
868
|
}>]>;
|
|
870
869
|
}>, convex_values0.VObject<{
|
|
871
|
-
args: any[];
|
|
872
870
|
name: string;
|
|
871
|
+
args: any[];
|
|
873
872
|
scheduledTime: number;
|
|
874
873
|
state: {
|
|
875
874
|
kind: "pending";
|
|
@@ -878,15 +877,15 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
878
877
|
} | {
|
|
879
878
|
kind: "success";
|
|
880
879
|
} | {
|
|
881
|
-
error: string;
|
|
882
880
|
kind: "failed";
|
|
881
|
+
error: string;
|
|
883
882
|
} | {
|
|
884
883
|
kind: "canceled";
|
|
885
884
|
};
|
|
886
885
|
completedTime?: number;
|
|
887
886
|
}, {
|
|
888
|
-
args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
|
|
889
887
|
name: convex_values0.VString<string, "required">;
|
|
888
|
+
args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
|
|
890
889
|
scheduledTime: convex_values0.VFloat64<number, "required">;
|
|
891
890
|
state: convex_values0.VUnion<{
|
|
892
891
|
kind: "pending";
|
|
@@ -895,8 +894,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
895
894
|
} | {
|
|
896
895
|
kind: "success";
|
|
897
896
|
} | {
|
|
898
|
-
error: string;
|
|
899
897
|
kind: "failed";
|
|
898
|
+
error: string;
|
|
900
899
|
} | {
|
|
901
900
|
kind: "canceled";
|
|
902
901
|
}, [convex_values0.VObject<{
|
|
@@ -912,18 +911,18 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
912
911
|
}, {
|
|
913
912
|
kind: convex_values0.VLiteral<"success", "required">;
|
|
914
913
|
}, "required", "kind">, convex_values0.VObject<{
|
|
915
|
-
error: string;
|
|
916
914
|
kind: "failed";
|
|
915
|
+
error: string;
|
|
917
916
|
}, {
|
|
918
|
-
error: convex_values0.VString<string, "required">;
|
|
919
917
|
kind: convex_values0.VLiteral<"failed", "required">;
|
|
920
|
-
|
|
918
|
+
error: convex_values0.VString<string, "required">;
|
|
919
|
+
}, "required", "kind" | "error">, convex_values0.VObject<{
|
|
921
920
|
kind: "canceled";
|
|
922
921
|
}, {
|
|
923
922
|
kind: convex_values0.VLiteral<"canceled", "required">;
|
|
924
|
-
}, "required", "kind">], "required", "
|
|
923
|
+
}, "required", "kind">], "required", "kind" | "error">;
|
|
925
924
|
completedTime: convex_values0.VFloat64<number | undefined, "optional">;
|
|
926
|
-
}, "required", "
|
|
925
|
+
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
|
|
927
926
|
sha256: typeof Schema.String;
|
|
928
927
|
size: typeof Schema.Number;
|
|
929
928
|
contentType: Schema.optionalWith<typeof Schema.String, {
|
|
@@ -957,8 +956,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
957
956
|
kind: Schema.Literal<["canceled"]>;
|
|
958
957
|
}>]>;
|
|
959
958
|
}>, convex_values0.VObject<{
|
|
960
|
-
args: any[];
|
|
961
959
|
name: string;
|
|
960
|
+
args: any[];
|
|
962
961
|
scheduledTime: number;
|
|
963
962
|
state: {
|
|
964
963
|
kind: "pending";
|
|
@@ -967,15 +966,15 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
967
966
|
} | {
|
|
968
967
|
kind: "success";
|
|
969
968
|
} | {
|
|
970
|
-
error: string;
|
|
971
969
|
kind: "failed";
|
|
970
|
+
error: string;
|
|
972
971
|
} | {
|
|
973
972
|
kind: "canceled";
|
|
974
973
|
};
|
|
975
974
|
completedTime?: number;
|
|
976
975
|
}, {
|
|
977
|
-
args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
|
|
978
976
|
name: convex_values0.VString<string, "required">;
|
|
977
|
+
args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
|
|
979
978
|
scheduledTime: convex_values0.VFloat64<number, "required">;
|
|
980
979
|
state: convex_values0.VUnion<{
|
|
981
980
|
kind: "pending";
|
|
@@ -984,8 +983,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
984
983
|
} | {
|
|
985
984
|
kind: "success";
|
|
986
985
|
} | {
|
|
987
|
-
error: string;
|
|
988
986
|
kind: "failed";
|
|
987
|
+
error: string;
|
|
989
988
|
} | {
|
|
990
989
|
kind: "canceled";
|
|
991
990
|
}, [convex_values0.VObject<{
|
|
@@ -1001,18 +1000,18 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
1001
1000
|
}, {
|
|
1002
1001
|
kind: convex_values0.VLiteral<"success", "required">;
|
|
1003
1002
|
}, "required", "kind">, convex_values0.VObject<{
|
|
1004
|
-
error: string;
|
|
1005
1003
|
kind: "failed";
|
|
1004
|
+
error: string;
|
|
1006
1005
|
}, {
|
|
1007
|
-
error: convex_values0.VString<string, "required">;
|
|
1008
1006
|
kind: convex_values0.VLiteral<"failed", "required">;
|
|
1009
|
-
|
|
1007
|
+
error: convex_values0.VString<string, "required">;
|
|
1008
|
+
}, "required", "kind" | "error">, convex_values0.VObject<{
|
|
1010
1009
|
kind: "canceled";
|
|
1011
1010
|
}, {
|
|
1012
1011
|
kind: convex_values0.VLiteral<"canceled", "required">;
|
|
1013
|
-
}, "required", "kind">], "required", "
|
|
1012
|
+
}, "required", "kind">], "required", "kind" | "error">;
|
|
1014
1013
|
completedTime: convex_values0.VFloat64<number | undefined, "optional">;
|
|
1015
|
-
}, "required", "
|
|
1014
|
+
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
|
|
1016
1015
|
sha256: typeof Schema.String;
|
|
1017
1016
|
size: typeof Schema.Number;
|
|
1018
1017
|
contentType: Schema.optionalWith<typeof Schema.String, {
|
|
@@ -1026,7 +1025,7 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
1026
1025
|
sha256: convex_values0.VString<string, "required">;
|
|
1027
1026
|
size: convex_values0.VFloat64<number, "required">;
|
|
1028
1027
|
contentType: convex_values0.VString<string | undefined, "optional">;
|
|
1029
|
-
}, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["convexDocument"], convex_server0.NamedSearchIndex<TableInfoWithName<DataModel<Tables<Schema
|
|
1028
|
+
}, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["convexDocument"], convex_server0.NamedSearchIndex<TableInfoWithName<DataModel<SystemTables | Tables<Schema>>, TableName>, IndexName>>) => convex_server0.SearchFilter) => OrderedQuery$1<TableInfo<WithName<Tables<Schema>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", Schema.Struct<{
|
|
1030
1029
|
name: typeof Schema.String;
|
|
1031
1030
|
args: Schema.Array$<typeof Schema.Any>;
|
|
1032
1031
|
scheduledTime: typeof Schema.Number;
|
|
@@ -1046,8 +1045,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
1046
1045
|
kind: Schema.Literal<["canceled"]>;
|
|
1047
1046
|
}>]>;
|
|
1048
1047
|
}>, convex_values0.VObject<{
|
|
1049
|
-
args: any[];
|
|
1050
1048
|
name: string;
|
|
1049
|
+
args: any[];
|
|
1051
1050
|
scheduledTime: number;
|
|
1052
1051
|
state: {
|
|
1053
1052
|
kind: "pending";
|
|
@@ -1056,15 +1055,15 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
1056
1055
|
} | {
|
|
1057
1056
|
kind: "success";
|
|
1058
1057
|
} | {
|
|
1059
|
-
error: string;
|
|
1060
1058
|
kind: "failed";
|
|
1059
|
+
error: string;
|
|
1061
1060
|
} | {
|
|
1062
1061
|
kind: "canceled";
|
|
1063
1062
|
};
|
|
1064
1063
|
completedTime?: number;
|
|
1065
1064
|
}, {
|
|
1066
|
-
args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
|
|
1067
1065
|
name: convex_values0.VString<string, "required">;
|
|
1066
|
+
args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
|
|
1068
1067
|
scheduledTime: convex_values0.VFloat64<number, "required">;
|
|
1069
1068
|
state: convex_values0.VUnion<{
|
|
1070
1069
|
kind: "pending";
|
|
@@ -1073,8 +1072,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
1073
1072
|
} | {
|
|
1074
1073
|
kind: "success";
|
|
1075
1074
|
} | {
|
|
1076
|
-
error: string;
|
|
1077
1075
|
kind: "failed";
|
|
1076
|
+
error: string;
|
|
1078
1077
|
} | {
|
|
1079
1078
|
kind: "canceled";
|
|
1080
1079
|
}, [convex_values0.VObject<{
|
|
@@ -1090,18 +1089,18 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
1090
1089
|
}, {
|
|
1091
1090
|
kind: convex_values0.VLiteral<"success", "required">;
|
|
1092
1091
|
}, "required", "kind">, convex_values0.VObject<{
|
|
1093
|
-
error: string;
|
|
1094
1092
|
kind: "failed";
|
|
1093
|
+
error: string;
|
|
1095
1094
|
}, {
|
|
1096
|
-
error: convex_values0.VString<string, "required">;
|
|
1097
1095
|
kind: convex_values0.VLiteral<"failed", "required">;
|
|
1098
|
-
|
|
1096
|
+
error: convex_values0.VString<string, "required">;
|
|
1097
|
+
}, "required", "kind" | "error">, convex_values0.VObject<{
|
|
1099
1098
|
kind: "canceled";
|
|
1100
1099
|
}, {
|
|
1101
1100
|
kind: convex_values0.VLiteral<"canceled", "required">;
|
|
1102
|
-
}, "required", "kind">], "required", "
|
|
1101
|
+
}, "required", "kind">], "required", "kind" | "error">;
|
|
1103
1102
|
completedTime: convex_values0.VFloat64<number | undefined, "optional">;
|
|
1104
|
-
}, "required", "
|
|
1103
|
+
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
|
|
1105
1104
|
sha256: typeof Schema.String;
|
|
1106
1105
|
size: typeof Schema.Number;
|
|
1107
1106
|
contentType: Schema.optionalWith<typeof Schema.String, {
|
|
@@ -1120,11 +1119,14 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
1120
1119
|
} | {
|
|
1121
1120
|
table: <const TableName extends TableNames<FromSchema<Schema>>>(tableName: TableName) => {
|
|
1122
1121
|
insert: (document: WithoutSystemFields$1<DocumentByName<FromSchema<Schema>, TableName>>) => Effect.Effect<convex_values0.GenericId<TableName>, DocumentEncodeError, never>;
|
|
1123
|
-
patch: (id: convex_values0.GenericId<TableName>, patchedValues: Partial<convex_server0.Expand<convex_server0.BetterOmit<DocumentByName<FromSchema<Schema>, TableName>, "_id" | "_creationTime">>>) => Effect.Effect<void,
|
|
1122
|
+
patch: (id: convex_values0.GenericId<TableName>, patchedValues: Partial<convex_server0.Expand<convex_server0.BetterOmit<DocumentByName<FromSchema<Schema>, TableName>, "_id" | "_creationTime">>>) => Effect.Effect<void, DocumentDecodeError | GetByIdFailure | DocumentEncodeError, never>;
|
|
1124
1123
|
replace: (id: convex_values0.GenericId<TableName>, value: convex_server0.Expand<convex_server0.BetterOmit<DocumentByName<FromSchema<Schema>, TableName>, "_id" | "_creationTime">>) => Effect.Effect<void, DocumentEncodeError, never>;
|
|
1125
1124
|
delete: (id: convex_values0.GenericId<TableName>) => Effect.Effect<void, never, never>;
|
|
1126
1125
|
};
|
|
1127
|
-
}
|
|
1126
|
+
} | {
|
|
1127
|
+
runAfter: <Ref_ extends _confect_core_Ref0.AnyMutation | _confect_core_Ref0.AnyAction>(delay: effect_Duration0.Duration, ref: Ref_, ...args: _confect_core_Ref0.OptionalArgs<Ref_>) => Effect.Effect<convex_values0.GenericId<"_scheduled_functions">, never, never>;
|
|
1128
|
+
runAt: <Ref_ extends _confect_core_Ref0.AnyMutation | _confect_core_Ref0.AnyAction>(dateTime: effect_DateTime0.DateTime, ref: Ref_, ...args: _confect_core_Ref0.OptionalArgs<Ref_>) => Effect.Effect<convex_values0.GenericId<"_scheduled_functions">, never, never>;
|
|
1129
|
+
} | StorageReader$1 | StorageWriter$1 | (<Mutation extends _confect_core_Ref0.AnyMutation>(mutation: Mutation, ...args: _confect_core_Ref0.OptionalArgs<Mutation>) => Effect.Effect<_confect_core_Ref0.Returns<Mutation>, _confect_core_Ref0.Error<Mutation> | effect_ParseResult0.ParseError>), never, never>;
|
|
1128
1130
|
type MutationServices<Schema extends AnyWithProps> = DatabaseReader<Schema> | DatabaseWriter<Schema> | Auth$1 | Scheduler$1 | StorageReader$1 | StorageWriter$1 | QueryRunner | MutationRunner | MutationCtx<ToConvex<FromSchema<Schema>>>;
|
|
1129
1131
|
//#endregion
|
|
1130
1132
|
export { MutationServices, RegisteredConvexFunction_d_exports, make, mutationLayer };
|