@confect/server 9.0.0-next.6 → 9.0.0-next.8
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 +37 -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 +5 -3
- 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 +347 -346
- package/dist/DatabaseReader.d.ts.map +1 -1
- package/dist/DatabaseReader.js +2 -1
- package/dist/DatabaseReader.js.map +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 +98 -96
- 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 +15 -15
- 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 +1 -1
- 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,8 +36,11 @@ 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
|
+
declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx: GenericMutationCtx<ToConvex<FromSchema<Schema>>>) => Layer.Layer<(<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>) | {
|
|
40
|
+
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>;
|
|
41
|
+
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>;
|
|
42
|
+
} | GenericMutationCtx<ToConvex<FromSchema<Schema>>> | {
|
|
43
|
+
table: <const TableName extends "_storage" | "_scheduled_functions" | Name<Tables<Schema>>>(tableName: TableName) => {
|
|
39
44
|
readonly get: {
|
|
40
45
|
(id: convex_values0.GenericId<TableName>): Effect.Effect<(TableInfo<WithName<Tables<Schema>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", Schema.Struct<{
|
|
41
46
|
name: typeof Schema.String;
|
|
@@ -67,8 +72,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
67
72
|
} | {
|
|
68
73
|
kind: "success";
|
|
69
74
|
} | {
|
|
70
|
-
error: string;
|
|
71
75
|
kind: "failed";
|
|
76
|
+
error: string;
|
|
72
77
|
} | {
|
|
73
78
|
kind: "canceled";
|
|
74
79
|
};
|
|
@@ -84,8 +89,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
84
89
|
} | {
|
|
85
90
|
kind: "success";
|
|
86
91
|
} | {
|
|
87
|
-
error: string;
|
|
88
92
|
kind: "failed";
|
|
93
|
+
error: string;
|
|
89
94
|
} | {
|
|
90
95
|
kind: "canceled";
|
|
91
96
|
}, [convex_values0.VObject<{
|
|
@@ -101,18 +106,18 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
101
106
|
}, {
|
|
102
107
|
kind: convex_values0.VLiteral<"success", "required">;
|
|
103
108
|
}, "required", "kind">, convex_values0.VObject<{
|
|
104
|
-
error: string;
|
|
105
109
|
kind: "failed";
|
|
110
|
+
error: string;
|
|
106
111
|
}, {
|
|
107
|
-
error: convex_values0.VString<string, "required">;
|
|
108
112
|
kind: convex_values0.VLiteral<"failed", "required">;
|
|
109
|
-
|
|
113
|
+
error: convex_values0.VString<string, "required">;
|
|
114
|
+
}, "required", "kind" | "error">, convex_values0.VObject<{
|
|
110
115
|
kind: "canceled";
|
|
111
116
|
}, {
|
|
112
117
|
kind: convex_values0.VLiteral<"canceled", "required">;
|
|
113
|
-
}, "required", "kind">], "required", "
|
|
118
|
+
}, "required", "kind">], "required", "kind" | "error">;
|
|
114
119
|
completedTime: convex_values0.VFloat64<number | undefined, "optional">;
|
|
115
|
-
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.
|
|
120
|
+
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
|
|
116
121
|
sha256: typeof Schema.String;
|
|
117
122
|
size: typeof Schema.Number;
|
|
118
123
|
contentType: Schema.optionalWith<typeof Schema.String, {
|
|
@@ -126,7 +131,7 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
126
131
|
sha256: convex_values0.VString<string, "required">;
|
|
127
132
|
size: convex_values0.VFloat64<number, "required">;
|
|
128
133
|
contentType: convex_values0.VString<string | undefined, "optional">;
|
|
129
|
-
}, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["document"],
|
|
134
|
+
}, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["document"], GetByIdFailure | DocumentDecodeError, never>;
|
|
130
135
|
<IndexName extends keyof (TableInfo<WithName<Tables<Schema>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", Schema.Struct<{
|
|
131
136
|
name: typeof Schema.String;
|
|
132
137
|
args: Schema.Array$<typeof Schema.Any>;
|
|
@@ -157,8 +162,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
157
162
|
} | {
|
|
158
163
|
kind: "success";
|
|
159
164
|
} | {
|
|
160
|
-
error: string;
|
|
161
165
|
kind: "failed";
|
|
166
|
+
error: string;
|
|
162
167
|
} | {
|
|
163
168
|
kind: "canceled";
|
|
164
169
|
};
|
|
@@ -174,8 +179,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
174
179
|
} | {
|
|
175
180
|
kind: "success";
|
|
176
181
|
} | {
|
|
177
|
-
error: string;
|
|
178
182
|
kind: "failed";
|
|
183
|
+
error: string;
|
|
179
184
|
} | {
|
|
180
185
|
kind: "canceled";
|
|
181
186
|
}, [convex_values0.VObject<{
|
|
@@ -191,18 +196,18 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
191
196
|
}, {
|
|
192
197
|
kind: convex_values0.VLiteral<"success", "required">;
|
|
193
198
|
}, "required", "kind">, convex_values0.VObject<{
|
|
194
|
-
error: string;
|
|
195
199
|
kind: "failed";
|
|
200
|
+
error: string;
|
|
196
201
|
}, {
|
|
197
|
-
error: convex_values0.VString<string, "required">;
|
|
198
202
|
kind: convex_values0.VLiteral<"failed", "required">;
|
|
199
|
-
|
|
203
|
+
error: convex_values0.VString<string, "required">;
|
|
204
|
+
}, "required", "kind" | "error">, convex_values0.VObject<{
|
|
200
205
|
kind: "canceled";
|
|
201
206
|
}, {
|
|
202
207
|
kind: convex_values0.VLiteral<"canceled", "required">;
|
|
203
|
-
}, "required", "kind">], "required", "
|
|
208
|
+
}, "required", "kind">], "required", "kind" | "error">;
|
|
204
209
|
completedTime: convex_values0.VFloat64<number | undefined, "optional">;
|
|
205
|
-
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.
|
|
210
|
+
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
|
|
206
211
|
sha256: typeof Schema.String;
|
|
207
212
|
size: typeof Schema.Number;
|
|
208
213
|
contentType: Schema.optionalWith<typeof Schema.String, {
|
|
@@ -246,8 +251,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
246
251
|
} | {
|
|
247
252
|
kind: "success";
|
|
248
253
|
} | {
|
|
249
|
-
error: string;
|
|
250
254
|
kind: "failed";
|
|
255
|
+
error: string;
|
|
251
256
|
} | {
|
|
252
257
|
kind: "canceled";
|
|
253
258
|
};
|
|
@@ -263,8 +268,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
263
268
|
} | {
|
|
264
269
|
kind: "success";
|
|
265
270
|
} | {
|
|
266
|
-
error: string;
|
|
267
271
|
kind: "failed";
|
|
272
|
+
error: string;
|
|
268
273
|
} | {
|
|
269
274
|
kind: "canceled";
|
|
270
275
|
}, [convex_values0.VObject<{
|
|
@@ -280,18 +285,18 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
280
285
|
}, {
|
|
281
286
|
kind: convex_values0.VLiteral<"success", "required">;
|
|
282
287
|
}, "required", "kind">, convex_values0.VObject<{
|
|
283
|
-
error: string;
|
|
284
288
|
kind: "failed";
|
|
289
|
+
error: string;
|
|
285
290
|
}, {
|
|
286
|
-
error: convex_values0.VString<string, "required">;
|
|
287
291
|
kind: convex_values0.VLiteral<"failed", "required">;
|
|
288
|
-
|
|
292
|
+
error: convex_values0.VString<string, "required">;
|
|
293
|
+
}, "required", "kind" | "error">, convex_values0.VObject<{
|
|
289
294
|
kind: "canceled";
|
|
290
295
|
}, {
|
|
291
296
|
kind: convex_values0.VLiteral<"canceled", "required">;
|
|
292
|
-
}, "required", "kind">], "required", "
|
|
297
|
+
}, "required", "kind">], "required", "kind" | "error">;
|
|
293
298
|
completedTime: convex_values0.VFloat64<number | undefined, "optional">;
|
|
294
|
-
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.
|
|
299
|
+
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
|
|
295
300
|
sha256: typeof Schema.String;
|
|
296
301
|
size: typeof Schema.Number;
|
|
297
302
|
contentType: Schema.optionalWith<typeof Schema.String, {
|
|
@@ -335,8 +340,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
335
340
|
} | {
|
|
336
341
|
kind: "success";
|
|
337
342
|
} | {
|
|
338
|
-
error: string;
|
|
339
343
|
kind: "failed";
|
|
344
|
+
error: string;
|
|
340
345
|
} | {
|
|
341
346
|
kind: "canceled";
|
|
342
347
|
};
|
|
@@ -352,8 +357,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
352
357
|
} | {
|
|
353
358
|
kind: "success";
|
|
354
359
|
} | {
|
|
355
|
-
error: string;
|
|
356
360
|
kind: "failed";
|
|
361
|
+
error: string;
|
|
357
362
|
} | {
|
|
358
363
|
kind: "canceled";
|
|
359
364
|
}, [convex_values0.VObject<{
|
|
@@ -369,18 +374,18 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
369
374
|
}, {
|
|
370
375
|
kind: convex_values0.VLiteral<"success", "required">;
|
|
371
376
|
}, "required", "kind">, convex_values0.VObject<{
|
|
372
|
-
error: string;
|
|
373
377
|
kind: "failed";
|
|
378
|
+
error: string;
|
|
374
379
|
}, {
|
|
375
|
-
error: convex_values0.VString<string, "required">;
|
|
376
380
|
kind: convex_values0.VLiteral<"failed", "required">;
|
|
377
|
-
|
|
381
|
+
error: convex_values0.VString<string, "required">;
|
|
382
|
+
}, "required", "kind" | "error">, convex_values0.VObject<{
|
|
378
383
|
kind: "canceled";
|
|
379
384
|
}, {
|
|
380
385
|
kind: convex_values0.VLiteral<"canceled", "required">;
|
|
381
|
-
}, "required", "kind">], "required", "
|
|
386
|
+
}, "required", "kind">], "required", "kind" | "error">;
|
|
382
387
|
completedTime: convex_values0.VFloat64<number | undefined, "optional">;
|
|
383
|
-
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.
|
|
388
|
+
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
|
|
384
389
|
sha256: typeof Schema.String;
|
|
385
390
|
size: typeof Schema.Number;
|
|
386
391
|
contentType: Schema.optionalWith<typeof Schema.String, {
|
|
@@ -427,8 +432,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
427
432
|
} | {
|
|
428
433
|
kind: "success";
|
|
429
434
|
} | {
|
|
430
|
-
error: string;
|
|
431
435
|
kind: "failed";
|
|
436
|
+
error: string;
|
|
432
437
|
} | {
|
|
433
438
|
kind: "canceled";
|
|
434
439
|
};
|
|
@@ -444,8 +449,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
444
449
|
} | {
|
|
445
450
|
kind: "success";
|
|
446
451
|
} | {
|
|
447
|
-
error: string;
|
|
448
452
|
kind: "failed";
|
|
453
|
+
error: string;
|
|
449
454
|
} | {
|
|
450
455
|
kind: "canceled";
|
|
451
456
|
}, [convex_values0.VObject<{
|
|
@@ -461,18 +466,18 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
461
466
|
}, {
|
|
462
467
|
kind: convex_values0.VLiteral<"success", "required">;
|
|
463
468
|
}, "required", "kind">, convex_values0.VObject<{
|
|
464
|
-
error: string;
|
|
465
469
|
kind: "failed";
|
|
470
|
+
error: string;
|
|
466
471
|
}, {
|
|
467
|
-
error: convex_values0.VString<string, "required">;
|
|
468
472
|
kind: convex_values0.VLiteral<"failed", "required">;
|
|
469
|
-
|
|
473
|
+
error: convex_values0.VString<string, "required">;
|
|
474
|
+
}, "required", "kind" | "error">, convex_values0.VObject<{
|
|
470
475
|
kind: "canceled";
|
|
471
476
|
}, {
|
|
472
477
|
kind: convex_values0.VLiteral<"canceled", "required">;
|
|
473
|
-
}, "required", "kind">], "required", "
|
|
478
|
+
}, "required", "kind">], "required", "kind" | "error">;
|
|
474
479
|
completedTime: convex_values0.VFloat64<number | undefined, "optional">;
|
|
475
|
-
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.
|
|
480
|
+
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
|
|
476
481
|
sha256: typeof Schema.String;
|
|
477
482
|
size: typeof Schema.Number;
|
|
478
483
|
contentType: Schema.optionalWith<typeof Schema.String, {
|
|
@@ -516,8 +521,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
516
521
|
} | {
|
|
517
522
|
kind: "success";
|
|
518
523
|
} | {
|
|
519
|
-
error: string;
|
|
520
524
|
kind: "failed";
|
|
525
|
+
error: string;
|
|
521
526
|
} | {
|
|
522
527
|
kind: "canceled";
|
|
523
528
|
};
|
|
@@ -533,8 +538,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
533
538
|
} | {
|
|
534
539
|
kind: "success";
|
|
535
540
|
} | {
|
|
536
|
-
error: string;
|
|
537
541
|
kind: "failed";
|
|
542
|
+
error: string;
|
|
538
543
|
} | {
|
|
539
544
|
kind: "canceled";
|
|
540
545
|
}, [convex_values0.VObject<{
|
|
@@ -550,18 +555,18 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
550
555
|
}, {
|
|
551
556
|
kind: convex_values0.VLiteral<"success", "required">;
|
|
552
557
|
}, "required", "kind">, convex_values0.VObject<{
|
|
553
|
-
error: string;
|
|
554
558
|
kind: "failed";
|
|
559
|
+
error: string;
|
|
555
560
|
}, {
|
|
556
|
-
error: convex_values0.VString<string, "required">;
|
|
557
561
|
kind: convex_values0.VLiteral<"failed", "required">;
|
|
558
|
-
|
|
562
|
+
error: convex_values0.VString<string, "required">;
|
|
563
|
+
}, "required", "kind" | "error">, convex_values0.VObject<{
|
|
559
564
|
kind: "canceled";
|
|
560
565
|
}, {
|
|
561
566
|
kind: convex_values0.VLiteral<"canceled", "required">;
|
|
562
|
-
}, "required", "kind">], "required", "
|
|
567
|
+
}, "required", "kind">], "required", "kind" | "error">;
|
|
563
568
|
completedTime: convex_values0.VFloat64<number | undefined, "optional">;
|
|
564
|
-
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.
|
|
569
|
+
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
|
|
565
570
|
sha256: typeof Schema.String;
|
|
566
571
|
size: typeof Schema.Number;
|
|
567
572
|
contentType: Schema.optionalWith<typeof Schema.String, {
|
|
@@ -605,8 +610,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
605
610
|
} | {
|
|
606
611
|
kind: "success";
|
|
607
612
|
} | {
|
|
608
|
-
error: string;
|
|
609
613
|
kind: "failed";
|
|
614
|
+
error: string;
|
|
610
615
|
} | {
|
|
611
616
|
kind: "canceled";
|
|
612
617
|
};
|
|
@@ -622,8 +627,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
622
627
|
} | {
|
|
623
628
|
kind: "success";
|
|
624
629
|
} | {
|
|
625
|
-
error: string;
|
|
626
630
|
kind: "failed";
|
|
631
|
+
error: string;
|
|
627
632
|
} | {
|
|
628
633
|
kind: "canceled";
|
|
629
634
|
}, [convex_values0.VObject<{
|
|
@@ -639,18 +644,18 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
639
644
|
}, {
|
|
640
645
|
kind: convex_values0.VLiteral<"success", "required">;
|
|
641
646
|
}, "required", "kind">, convex_values0.VObject<{
|
|
642
|
-
error: string;
|
|
643
647
|
kind: "failed";
|
|
648
|
+
error: string;
|
|
644
649
|
}, {
|
|
645
|
-
error: convex_values0.VString<string, "required">;
|
|
646
650
|
kind: convex_values0.VLiteral<"failed", "required">;
|
|
647
|
-
|
|
651
|
+
error: convex_values0.VString<string, "required">;
|
|
652
|
+
}, "required", "kind" | "error">, convex_values0.VObject<{
|
|
648
653
|
kind: "canceled";
|
|
649
654
|
}, {
|
|
650
655
|
kind: convex_values0.VLiteral<"canceled", "required">;
|
|
651
|
-
}, "required", "kind">], "required", "
|
|
656
|
+
}, "required", "kind">], "required", "kind" | "error">;
|
|
652
657
|
completedTime: convex_values0.VFloat64<number | undefined, "optional">;
|
|
653
|
-
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.
|
|
658
|
+
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
|
|
654
659
|
sha256: typeof Schema.String;
|
|
655
660
|
size: typeof Schema.Number;
|
|
656
661
|
contentType: Schema.optionalWith<typeof Schema.String, {
|
|
@@ -695,8 +700,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
695
700
|
} | {
|
|
696
701
|
kind: "success";
|
|
697
702
|
} | {
|
|
698
|
-
error: string;
|
|
699
703
|
kind: "failed";
|
|
704
|
+
error: string;
|
|
700
705
|
} | {
|
|
701
706
|
kind: "canceled";
|
|
702
707
|
};
|
|
@@ -712,8 +717,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
712
717
|
} | {
|
|
713
718
|
kind: "success";
|
|
714
719
|
} | {
|
|
715
|
-
error: string;
|
|
716
720
|
kind: "failed";
|
|
721
|
+
error: string;
|
|
717
722
|
} | {
|
|
718
723
|
kind: "canceled";
|
|
719
724
|
}, [convex_values0.VObject<{
|
|
@@ -729,18 +734,18 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
729
734
|
}, {
|
|
730
735
|
kind: convex_values0.VLiteral<"success", "required">;
|
|
731
736
|
}, "required", "kind">, convex_values0.VObject<{
|
|
732
|
-
error: string;
|
|
733
737
|
kind: "failed";
|
|
738
|
+
error: string;
|
|
734
739
|
}, {
|
|
735
|
-
error: convex_values0.VString<string, "required">;
|
|
736
740
|
kind: convex_values0.VLiteral<"failed", "required">;
|
|
737
|
-
|
|
741
|
+
error: convex_values0.VString<string, "required">;
|
|
742
|
+
}, "required", "kind" | "error">, convex_values0.VObject<{
|
|
738
743
|
kind: "canceled";
|
|
739
744
|
}, {
|
|
740
745
|
kind: convex_values0.VLiteral<"canceled", "required">;
|
|
741
|
-
}, "required", "kind">], "required", "
|
|
746
|
+
}, "required", "kind">], "required", "kind" | "error">;
|
|
742
747
|
completedTime: convex_values0.VFloat64<number | undefined, "optional">;
|
|
743
|
-
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.
|
|
748
|
+
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
|
|
744
749
|
sha256: typeof Schema.String;
|
|
745
750
|
size: typeof Schema.Number;
|
|
746
751
|
contentType: Schema.optionalWith<typeof Schema.String, {
|
|
@@ -784,8 +789,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
784
789
|
} | {
|
|
785
790
|
kind: "success";
|
|
786
791
|
} | {
|
|
787
|
-
error: string;
|
|
788
792
|
kind: "failed";
|
|
793
|
+
error: string;
|
|
789
794
|
} | {
|
|
790
795
|
kind: "canceled";
|
|
791
796
|
};
|
|
@@ -801,8 +806,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
801
806
|
} | {
|
|
802
807
|
kind: "success";
|
|
803
808
|
} | {
|
|
804
|
-
error: string;
|
|
805
809
|
kind: "failed";
|
|
810
|
+
error: string;
|
|
806
811
|
} | {
|
|
807
812
|
kind: "canceled";
|
|
808
813
|
}, [convex_values0.VObject<{
|
|
@@ -818,18 +823,18 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
818
823
|
}, {
|
|
819
824
|
kind: convex_values0.VLiteral<"success", "required">;
|
|
820
825
|
}, "required", "kind">, convex_values0.VObject<{
|
|
821
|
-
error: string;
|
|
822
826
|
kind: "failed";
|
|
827
|
+
error: string;
|
|
823
828
|
}, {
|
|
824
|
-
error: convex_values0.VString<string, "required">;
|
|
825
829
|
kind: convex_values0.VLiteral<"failed", "required">;
|
|
826
|
-
|
|
830
|
+
error: convex_values0.VString<string, "required">;
|
|
831
|
+
}, "required", "kind" | "error">, convex_values0.VObject<{
|
|
827
832
|
kind: "canceled";
|
|
828
833
|
}, {
|
|
829
834
|
kind: convex_values0.VLiteral<"canceled", "required">;
|
|
830
|
-
}, "required", "kind">], "required", "
|
|
835
|
+
}, "required", "kind">], "required", "kind" | "error">;
|
|
831
836
|
completedTime: convex_values0.VFloat64<number | undefined, "optional">;
|
|
832
|
-
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.
|
|
837
|
+
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
|
|
833
838
|
sha256: typeof Schema.String;
|
|
834
839
|
size: typeof Schema.Number;
|
|
835
840
|
contentType: Schema.optionalWith<typeof Schema.String, {
|
|
@@ -875,8 +880,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
875
880
|
} | {
|
|
876
881
|
kind: "success";
|
|
877
882
|
} | {
|
|
878
|
-
error: string;
|
|
879
883
|
kind: "failed";
|
|
884
|
+
error: string;
|
|
880
885
|
} | {
|
|
881
886
|
kind: "canceled";
|
|
882
887
|
};
|
|
@@ -892,8 +897,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
892
897
|
} | {
|
|
893
898
|
kind: "success";
|
|
894
899
|
} | {
|
|
895
|
-
error: string;
|
|
896
900
|
kind: "failed";
|
|
901
|
+
error: string;
|
|
897
902
|
} | {
|
|
898
903
|
kind: "canceled";
|
|
899
904
|
}, [convex_values0.VObject<{
|
|
@@ -909,18 +914,18 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
909
914
|
}, {
|
|
910
915
|
kind: convex_values0.VLiteral<"success", "required">;
|
|
911
916
|
}, "required", "kind">, convex_values0.VObject<{
|
|
912
|
-
error: string;
|
|
913
917
|
kind: "failed";
|
|
918
|
+
error: string;
|
|
914
919
|
}, {
|
|
915
|
-
error: convex_values0.VString<string, "required">;
|
|
916
920
|
kind: convex_values0.VLiteral<"failed", "required">;
|
|
917
|
-
|
|
921
|
+
error: convex_values0.VString<string, "required">;
|
|
922
|
+
}, "required", "kind" | "error">, convex_values0.VObject<{
|
|
918
923
|
kind: "canceled";
|
|
919
924
|
}, {
|
|
920
925
|
kind: convex_values0.VLiteral<"canceled", "required">;
|
|
921
|
-
}, "required", "kind">], "required", "
|
|
926
|
+
}, "required", "kind">], "required", "kind" | "error">;
|
|
922
927
|
completedTime: convex_values0.VFloat64<number | undefined, "optional">;
|
|
923
|
-
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.
|
|
928
|
+
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
|
|
924
929
|
sha256: typeof Schema.String;
|
|
925
930
|
size: typeof Schema.Number;
|
|
926
931
|
contentType: Schema.optionalWith<typeof Schema.String, {
|
|
@@ -964,8 +969,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
964
969
|
} | {
|
|
965
970
|
kind: "success";
|
|
966
971
|
} | {
|
|
967
|
-
error: string;
|
|
968
972
|
kind: "failed";
|
|
973
|
+
error: string;
|
|
969
974
|
} | {
|
|
970
975
|
kind: "canceled";
|
|
971
976
|
};
|
|
@@ -981,8 +986,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
981
986
|
} | {
|
|
982
987
|
kind: "success";
|
|
983
988
|
} | {
|
|
984
|
-
error: string;
|
|
985
989
|
kind: "failed";
|
|
990
|
+
error: string;
|
|
986
991
|
} | {
|
|
987
992
|
kind: "canceled";
|
|
988
993
|
}, [convex_values0.VObject<{
|
|
@@ -998,18 +1003,18 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
998
1003
|
}, {
|
|
999
1004
|
kind: convex_values0.VLiteral<"success", "required">;
|
|
1000
1005
|
}, "required", "kind">, convex_values0.VObject<{
|
|
1001
|
-
error: string;
|
|
1002
1006
|
kind: "failed";
|
|
1007
|
+
error: string;
|
|
1003
1008
|
}, {
|
|
1004
|
-
error: convex_values0.VString<string, "required">;
|
|
1005
1009
|
kind: convex_values0.VLiteral<"failed", "required">;
|
|
1006
|
-
|
|
1010
|
+
error: convex_values0.VString<string, "required">;
|
|
1011
|
+
}, "required", "kind" | "error">, convex_values0.VObject<{
|
|
1007
1012
|
kind: "canceled";
|
|
1008
1013
|
}, {
|
|
1009
1014
|
kind: convex_values0.VLiteral<"canceled", "required">;
|
|
1010
|
-
}, "required", "kind">], "required", "
|
|
1015
|
+
}, "required", "kind">], "required", "kind" | "error">;
|
|
1011
1016
|
completedTime: convex_values0.VFloat64<number | undefined, "optional">;
|
|
1012
|
-
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.
|
|
1017
|
+
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
|
|
1013
1018
|
sha256: typeof Schema.String;
|
|
1014
1019
|
size: typeof Schema.Number;
|
|
1015
1020
|
contentType: Schema.optionalWith<typeof Schema.String, {
|
|
@@ -1053,8 +1058,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
1053
1058
|
} | {
|
|
1054
1059
|
kind: "success";
|
|
1055
1060
|
} | {
|
|
1056
|
-
error: string;
|
|
1057
1061
|
kind: "failed";
|
|
1062
|
+
error: string;
|
|
1058
1063
|
} | {
|
|
1059
1064
|
kind: "canceled";
|
|
1060
1065
|
};
|
|
@@ -1070,8 +1075,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
1070
1075
|
} | {
|
|
1071
1076
|
kind: "success";
|
|
1072
1077
|
} | {
|
|
1073
|
-
error: string;
|
|
1074
1078
|
kind: "failed";
|
|
1079
|
+
error: string;
|
|
1075
1080
|
} | {
|
|
1076
1081
|
kind: "canceled";
|
|
1077
1082
|
}, [convex_values0.VObject<{
|
|
@@ -1087,18 +1092,18 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
1087
1092
|
}, {
|
|
1088
1093
|
kind: convex_values0.VLiteral<"success", "required">;
|
|
1089
1094
|
}, "required", "kind">, convex_values0.VObject<{
|
|
1090
|
-
error: string;
|
|
1091
1095
|
kind: "failed";
|
|
1096
|
+
error: string;
|
|
1092
1097
|
}, {
|
|
1093
|
-
error: convex_values0.VString<string, "required">;
|
|
1094
1098
|
kind: convex_values0.VLiteral<"failed", "required">;
|
|
1095
|
-
|
|
1099
|
+
error: convex_values0.VString<string, "required">;
|
|
1100
|
+
}, "required", "kind" | "error">, convex_values0.VObject<{
|
|
1096
1101
|
kind: "canceled";
|
|
1097
1102
|
}, {
|
|
1098
1103
|
kind: convex_values0.VLiteral<"canceled", "required">;
|
|
1099
|
-
}, "required", "kind">], "required", "
|
|
1104
|
+
}, "required", "kind">], "required", "kind" | "error">;
|
|
1100
1105
|
completedTime: convex_values0.VFloat64<number | undefined, "optional">;
|
|
1101
|
-
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.
|
|
1106
|
+
}, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
|
|
1102
1107
|
sha256: typeof Schema.String;
|
|
1103
1108
|
size: typeof Schema.Number;
|
|
1104
1109
|
contentType: Schema.optionalWith<typeof Schema.String, {
|
|
@@ -1117,14 +1122,11 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
|
|
|
1117
1122
|
} | {
|
|
1118
1123
|
table: <const TableName extends TableNames<FromSchema<Schema>>>(tableName: TableName) => {
|
|
1119
1124
|
insert: (document: WithoutSystemFields$1<DocumentByName<FromSchema<Schema>, TableName>>) => Effect.Effect<convex_values0.GenericId<TableName>, DocumentEncodeError, never>;
|
|
1120
|
-
patch: (id: convex_values0.GenericId<TableName>, patchedValues: Partial<convex_server0.Expand<convex_server0.BetterOmit<DocumentByName<FromSchema<Schema>, TableName>, "_id" | "_creationTime">>>) => Effect.Effect<void,
|
|
1125
|
+
patch: (id: convex_values0.GenericId<TableName>, patchedValues: Partial<convex_server0.Expand<convex_server0.BetterOmit<DocumentByName<FromSchema<Schema>, TableName>, "_id" | "_creationTime">>>) => Effect.Effect<void, GetByIdFailure | DocumentDecodeError | DocumentEncodeError, never>;
|
|
1121
1126
|
replace: (id: convex_values0.GenericId<TableName>, value: convex_server0.Expand<convex_server0.BetterOmit<DocumentByName<FromSchema<Schema>, TableName>, "_id" | "_creationTime">>) => Effect.Effect<void, DocumentEncodeError, never>;
|
|
1122
1127
|
delete: (id: convex_values0.GenericId<TableName>) => Effect.Effect<void, never, never>;
|
|
1123
1128
|
};
|
|
1124
|
-
} |
|
|
1125
|
-
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>;
|
|
1126
|
-
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>;
|
|
1127
|
-
} | StorageReader$1 | StorageWriter$1, never, never>;
|
|
1129
|
+
} | Auth$1 | 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 };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RegisteredConvexFunction.d.ts","names":[],"sources":["../src/RegisteredConvexFunction.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"RegisteredConvexFunction.d.ts","names":[],"sources":["../src/RegisteredConvexFunction.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqCa,IAAA,GACX,cAAA,EAAgB,YAAA;EAChB,YAAA;EAAA;AAAA,GAA2B,cAAA,KAC1B,GAAA;AAAA,cAkLU,aAAA,kBAAgC,YAAA,EAC3C,MAAA,EAAQ,MAAA,EACR,GAAA,EAAK,kBAAA,CAAmB,QAAA,CAAmB,UAAA,CAAqB,MAAA,QAAS,KAAA,CAAA,KAAA,iBAAlD,kBAAA,CAAkD,QAAA,EAAA,KAAA,EAAA,KAAA,KAAA,IAAA,EAAA,kBAAA,CAAA,YAAA,CAAA,KAAA,MAAA,MAAA,CAAA,MAAA,CAAA,kBAAA,CAAA,OAAA,CAAA,KAAA,GAAA,kBAAA,CAAA,KAAA,CAAA,KAAA,IAAA,mBAAA,CAAA,UAAA;0BAAA,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAoB/D,gBAAA,gBAAgC,YAAA,IACxC,cAAA,CAA8B,MAAA,IAC9B,cAAA,CAA8B,MAAA,IAC9B,MAAA,GACA,WAAA,GACA,eAAA,GACA,eAAA,GACA,WAAA,GACA,cAAA,GACA,WAAA,CAAwB,QAAA,CAAmB,UAAA,CAAqB,MAAA"}
|
|
@@ -12,8 +12,13 @@ import { StorageWriter as StorageWriter$1 } from "./StorageWriter.js";
|
|
|
12
12
|
import { MutationCtx } from "./MutationCtx.js";
|
|
13
13
|
import { QueryCtx } from "./QueryCtx.js";
|
|
14
14
|
import { actionFunctionBase, actionLayer, runHandlerPromise } from "./RegisteredFunction.js";
|
|
15
|
-
import { Clock, Effect, Layer, Match, Schema, pipe } from "effect";
|
|
16
15
|
import { actionGeneric, internalActionGeneric, internalMutationGeneric, internalQueryGeneric, mutationGeneric, queryGeneric } from "convex/server";
|
|
16
|
+
import * as Layer from "effect/Layer";
|
|
17
|
+
import { pipe } from "effect/Function";
|
|
18
|
+
import * as Effect from "effect/Effect";
|
|
19
|
+
import * as Schema from "effect/Schema";
|
|
20
|
+
import * as Match from "effect/Match";
|
|
21
|
+
import * as Clock from "effect/Clock";
|
|
17
22
|
|
|
18
23
|
//#region src/RegisteredConvexFunction.ts
|
|
19
24
|
var RegisteredConvexFunction_exports = /* @__PURE__ */ __exportAll({
|