@proseql/rpc 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +61 -0
- package/dist/index.js.map +1 -0
- package/dist/rpc-errors.d.ts +208 -0
- package/dist/rpc-errors.d.ts.map +1 -0
- package/dist/rpc-errors.js +159 -0
- package/dist/rpc-errors.js.map +1 -0
- package/dist/rpc-group.d.ts +819 -0
- package/dist/rpc-group.d.ts.map +1 -0
- package/dist/rpc-group.js +614 -0
- package/dist/rpc-group.js.map +1 -0
- package/dist/rpc-handlers.d.ts +247 -0
- package/dist/rpc-handlers.d.ts.map +1 -0
- package/dist/rpc-handlers.js +266 -0
- package/dist/rpc-handlers.js.map +1 -0
- package/dist/rpc-schemas.d.ts +382 -0
- package/dist/rpc-schemas.d.ts.map +1 -0
- package/dist/rpc-schemas.js +382 -0
- package/dist/rpc-schemas.js.map +1 -0
- package/package.json +50 -0
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RPC Payload Schemas for proseql operations.
|
|
3
|
+
*
|
|
4
|
+
* These schemas define the wire format for RPC procedure payloads.
|
|
5
|
+
* They wrap the underlying proseql types (QueryConfig, AggregateConfig, etc.)
|
|
6
|
+
* in a form that can be serialized across RPC transport.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
import { Schema } from "effect";
|
|
11
|
+
/**
|
|
12
|
+
* Schema for sort order values.
|
|
13
|
+
*/
|
|
14
|
+
export declare const SortOrderSchema: Schema.Literal<["asc", "desc"]>;
|
|
15
|
+
/**
|
|
16
|
+
* Schema for sort configuration.
|
|
17
|
+
* Maps field names to sort order.
|
|
18
|
+
*/
|
|
19
|
+
export declare const SortConfigSchema: Schema.Record$<typeof Schema.String, Schema.Literal<["asc", "desc"]>>;
|
|
20
|
+
/**
|
|
21
|
+
* Schema for cursor pagination configuration.
|
|
22
|
+
*/
|
|
23
|
+
export declare const CursorConfigSchema: Schema.Struct<{
|
|
24
|
+
key: typeof Schema.String;
|
|
25
|
+
after: Schema.optional<typeof Schema.String>;
|
|
26
|
+
before: Schema.optional<typeof Schema.String>;
|
|
27
|
+
limit: typeof Schema.Number;
|
|
28
|
+
}>;
|
|
29
|
+
/**
|
|
30
|
+
* Schema for filter operators on values.
|
|
31
|
+
* Supports MongoDB-style comparison and logical operators.
|
|
32
|
+
*/
|
|
33
|
+
export declare const FilterOperatorsSchema: Schema.Struct<{
|
|
34
|
+
$eq: Schema.optional<typeof Schema.Unknown>;
|
|
35
|
+
$ne: Schema.optional<typeof Schema.Unknown>;
|
|
36
|
+
$gt: Schema.optional<typeof Schema.Unknown>;
|
|
37
|
+
$gte: Schema.optional<typeof Schema.Unknown>;
|
|
38
|
+
$lt: Schema.optional<typeof Schema.Unknown>;
|
|
39
|
+
$lte: Schema.optional<typeof Schema.Unknown>;
|
|
40
|
+
$in: Schema.optional<Schema.Array$<typeof Schema.Unknown>>;
|
|
41
|
+
$nin: Schema.optional<Schema.Array$<typeof Schema.Unknown>>;
|
|
42
|
+
$startsWith: Schema.optional<typeof Schema.String>;
|
|
43
|
+
$endsWith: Schema.optional<typeof Schema.String>;
|
|
44
|
+
$contains: Schema.optional<typeof Schema.Unknown>;
|
|
45
|
+
$search: Schema.optional<typeof Schema.String>;
|
|
46
|
+
$all: Schema.optional<Schema.Array$<typeof Schema.Unknown>>;
|
|
47
|
+
$size: Schema.optional<typeof Schema.Number>;
|
|
48
|
+
}>;
|
|
49
|
+
/**
|
|
50
|
+
* Schema for a where clause condition.
|
|
51
|
+
* Can be a direct value, filter operators, or logical operators.
|
|
52
|
+
*/
|
|
53
|
+
export declare const WhereClauseSchema: Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.Unknown, Schema.Struct<{
|
|
54
|
+
$eq: Schema.optional<typeof Schema.Unknown>;
|
|
55
|
+
$ne: Schema.optional<typeof Schema.Unknown>;
|
|
56
|
+
$gt: Schema.optional<typeof Schema.Unknown>;
|
|
57
|
+
$gte: Schema.optional<typeof Schema.Unknown>;
|
|
58
|
+
$lt: Schema.optional<typeof Schema.Unknown>;
|
|
59
|
+
$lte: Schema.optional<typeof Schema.Unknown>;
|
|
60
|
+
$in: Schema.optional<Schema.Array$<typeof Schema.Unknown>>;
|
|
61
|
+
$nin: Schema.optional<Schema.Array$<typeof Schema.Unknown>>;
|
|
62
|
+
$startsWith: Schema.optional<typeof Schema.String>;
|
|
63
|
+
$endsWith: Schema.optional<typeof Schema.String>;
|
|
64
|
+
$contains: Schema.optional<typeof Schema.Unknown>;
|
|
65
|
+
$search: Schema.optional<typeof Schema.String>;
|
|
66
|
+
$all: Schema.optional<Schema.Array$<typeof Schema.Unknown>>;
|
|
67
|
+
$size: Schema.optional<typeof Schema.Number>;
|
|
68
|
+
}>]>>;
|
|
69
|
+
/**
|
|
70
|
+
* Schema for search configuration.
|
|
71
|
+
*/
|
|
72
|
+
export declare const SearchConfigSchema: Schema.Struct<{
|
|
73
|
+
query: typeof Schema.String;
|
|
74
|
+
fields: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
75
|
+
}>;
|
|
76
|
+
/**
|
|
77
|
+
* Schema for populate configuration.
|
|
78
|
+
* Maps relationship names to true or nested populate config.
|
|
79
|
+
*/
|
|
80
|
+
export declare const PopulateConfigSchema: Schema.Record$<typeof Schema.String, Schema.Union<[Schema.Literal<[true]>, typeof Schema.Unknown]>>;
|
|
81
|
+
/**
|
|
82
|
+
* Schema for select configuration.
|
|
83
|
+
* Can be an array of field names or an object with true values.
|
|
84
|
+
*/
|
|
85
|
+
export declare const SelectConfigSchema: Schema.Union<[Schema.Array$<typeof Schema.String>, Schema.Record$<typeof Schema.String, Schema.Literal<[true]>>]>;
|
|
86
|
+
/**
|
|
87
|
+
* Schema for streaming configuration options.
|
|
88
|
+
*
|
|
89
|
+
* These options allow callers to configure how streaming queries behave:
|
|
90
|
+
* - `chunkSize`: Number of items to batch together before sending (default: 1)
|
|
91
|
+
* - `bufferSize`: Client-side buffer size for backpressure handling (default: 16)
|
|
92
|
+
*
|
|
93
|
+
* When using the `query` endpoint (collect-then-return), these options are ignored.
|
|
94
|
+
* When using the `queryStream` endpoint, these options control streaming behavior.
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* ```ts
|
|
98
|
+
* // Stream with larger chunks for better throughput
|
|
99
|
+
* const results = client.books.queryStream({
|
|
100
|
+
* where: { genre: "sci-fi" },
|
|
101
|
+
* streamingOptions: { chunkSize: 100 }
|
|
102
|
+
* })
|
|
103
|
+
*
|
|
104
|
+
* // Collect all results (streaming options ignored)
|
|
105
|
+
* const all = await client.books.query({
|
|
106
|
+
* where: { genre: "sci-fi" }
|
|
107
|
+
* })
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
110
|
+
export declare const StreamingOptionsSchema: Schema.Struct<{
|
|
111
|
+
/**
|
|
112
|
+
* Number of items to batch together before sending over the transport.
|
|
113
|
+
* Higher values reduce RPC overhead but increase latency to first item.
|
|
114
|
+
* Default: 1 (send items as they become available)
|
|
115
|
+
*/
|
|
116
|
+
chunkSize: Schema.optional<typeof Schema.Number>;
|
|
117
|
+
/**
|
|
118
|
+
* Client-side buffer size for handling backpressure.
|
|
119
|
+
* When the buffer fills, the stream will apply backpressure to the server.
|
|
120
|
+
* Default: 16
|
|
121
|
+
*/
|
|
122
|
+
bufferSize: Schema.optional<typeof Schema.Number>;
|
|
123
|
+
}>;
|
|
124
|
+
export type StreamingOptions = typeof StreamingOptionsSchema.Type;
|
|
125
|
+
/**
|
|
126
|
+
* Payload for findById operations.
|
|
127
|
+
*/
|
|
128
|
+
export declare const FindByIdPayloadSchema: Schema.Struct<{
|
|
129
|
+
id: typeof Schema.String;
|
|
130
|
+
}>;
|
|
131
|
+
export type FindByIdPayload = typeof FindByIdPayloadSchema.Type;
|
|
132
|
+
/**
|
|
133
|
+
* Payload for query operations.
|
|
134
|
+
* Wraps the full QueryConfig structure.
|
|
135
|
+
*
|
|
136
|
+
* For streaming queries (`queryStream`), use `streamingOptions` to configure
|
|
137
|
+
* streaming behavior. For collect-then-return queries (`query`), streaming
|
|
138
|
+
* options are ignored.
|
|
139
|
+
*/
|
|
140
|
+
export declare const QueryPayloadSchema: Schema.Struct<{
|
|
141
|
+
where: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
|
|
142
|
+
sort: Schema.optional<Schema.Record$<typeof Schema.String, Schema.Literal<["asc", "desc"]>>>;
|
|
143
|
+
select: Schema.optional<Schema.Union<[Schema.Array$<typeof Schema.String>, Schema.Record$<typeof Schema.String, Schema.Literal<[true]>>]>>;
|
|
144
|
+
populate: Schema.optional<Schema.Record$<typeof Schema.String, Schema.Union<[Schema.Literal<[true]>, typeof Schema.Unknown]>>>;
|
|
145
|
+
limit: Schema.optional<typeof Schema.Number>;
|
|
146
|
+
offset: Schema.optional<typeof Schema.Number>;
|
|
147
|
+
cursor: Schema.optional<Schema.Struct<{
|
|
148
|
+
key: typeof Schema.String;
|
|
149
|
+
after: Schema.optional<typeof Schema.String>;
|
|
150
|
+
before: Schema.optional<typeof Schema.String>;
|
|
151
|
+
limit: typeof Schema.Number;
|
|
152
|
+
}>>;
|
|
153
|
+
/**
|
|
154
|
+
* Streaming configuration options.
|
|
155
|
+
*
|
|
156
|
+
* Only applies when using the `queryStream` endpoint.
|
|
157
|
+
* Ignored when using the `query` endpoint (collect-then-return).
|
|
158
|
+
*
|
|
159
|
+
* @example
|
|
160
|
+
* ```ts
|
|
161
|
+
* // Use queryStream with custom chunk size
|
|
162
|
+
* const stream = client.books.queryStream({
|
|
163
|
+
* where: { genre: "sci-fi" },
|
|
164
|
+
* streamingOptions: { chunkSize: 50 }
|
|
165
|
+
* })
|
|
166
|
+
*
|
|
167
|
+
* // Use query for collect-then-return (streamingOptions ignored)
|
|
168
|
+
* const all = await client.books.query({
|
|
169
|
+
* where: { genre: "sci-fi" }
|
|
170
|
+
* })
|
|
171
|
+
* ```
|
|
172
|
+
*/
|
|
173
|
+
streamingOptions: Schema.optional<Schema.Struct<{
|
|
174
|
+
/**
|
|
175
|
+
* Number of items to batch together before sending over the transport.
|
|
176
|
+
* Higher values reduce RPC overhead but increase latency to first item.
|
|
177
|
+
* Default: 1 (send items as they become available)
|
|
178
|
+
*/
|
|
179
|
+
chunkSize: Schema.optional<typeof Schema.Number>;
|
|
180
|
+
/**
|
|
181
|
+
* Client-side buffer size for handling backpressure.
|
|
182
|
+
* When the buffer fills, the stream will apply backpressure to the server.
|
|
183
|
+
* Default: 16
|
|
184
|
+
*/
|
|
185
|
+
bufferSize: Schema.optional<typeof Schema.Number>;
|
|
186
|
+
}>>;
|
|
187
|
+
}>;
|
|
188
|
+
export type QueryPayload = typeof QueryPayloadSchema.Type;
|
|
189
|
+
/**
|
|
190
|
+
* Payload for create operations.
|
|
191
|
+
* The data field contains the entity to create (id is optional).
|
|
192
|
+
*/
|
|
193
|
+
export declare const CreatePayloadSchema: Schema.Struct<{
|
|
194
|
+
data: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
|
|
195
|
+
}>;
|
|
196
|
+
export type CreatePayload = typeof CreatePayloadSchema.Type;
|
|
197
|
+
/**
|
|
198
|
+
* Payload for update operations.
|
|
199
|
+
* Includes the entity ID and the partial updates to apply.
|
|
200
|
+
*/
|
|
201
|
+
export declare const UpdatePayloadSchema: Schema.Struct<{
|
|
202
|
+
id: typeof Schema.String;
|
|
203
|
+
updates: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
|
|
204
|
+
}>;
|
|
205
|
+
export type UpdatePayload = typeof UpdatePayloadSchema.Type;
|
|
206
|
+
/**
|
|
207
|
+
* Payload for delete operations.
|
|
208
|
+
*/
|
|
209
|
+
export declare const DeletePayloadSchema: Schema.Struct<{
|
|
210
|
+
id: typeof Schema.String;
|
|
211
|
+
}>;
|
|
212
|
+
export type DeletePayload = typeof DeletePayloadSchema.Type;
|
|
213
|
+
/**
|
|
214
|
+
* Payload for aggregate operations.
|
|
215
|
+
* Supports scalar and grouped aggregation.
|
|
216
|
+
*/
|
|
217
|
+
export declare const AggregatePayloadSchema: Schema.Struct<{
|
|
218
|
+
where: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
|
|
219
|
+
groupBy: Schema.optional<Schema.Union<[typeof Schema.String, Schema.Array$<typeof Schema.String>]>>;
|
|
220
|
+
count: Schema.optional<Schema.Literal<[true]>>;
|
|
221
|
+
sum: Schema.optional<Schema.Union<[typeof Schema.String, Schema.Array$<typeof Schema.String>]>>;
|
|
222
|
+
avg: Schema.optional<Schema.Union<[typeof Schema.String, Schema.Array$<typeof Schema.String>]>>;
|
|
223
|
+
min: Schema.optional<Schema.Union<[typeof Schema.String, Schema.Array$<typeof Schema.String>]>>;
|
|
224
|
+
max: Schema.optional<Schema.Union<[typeof Schema.String, Schema.Array$<typeof Schema.String>]>>;
|
|
225
|
+
}>;
|
|
226
|
+
export type AggregatePayload = typeof AggregatePayloadSchema.Type;
|
|
227
|
+
/**
|
|
228
|
+
* Payload for createMany operations.
|
|
229
|
+
*/
|
|
230
|
+
export declare const CreateManyPayloadSchema: Schema.Struct<{
|
|
231
|
+
data: Schema.Array$<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
|
|
232
|
+
options: Schema.optional<Schema.Struct<{
|
|
233
|
+
skipDuplicates: Schema.optional<typeof Schema.Boolean>;
|
|
234
|
+
validateRelationships: Schema.optional<typeof Schema.Boolean>;
|
|
235
|
+
}>>;
|
|
236
|
+
}>;
|
|
237
|
+
export type CreateManyPayload = typeof CreateManyPayloadSchema.Type;
|
|
238
|
+
/**
|
|
239
|
+
* Payload for updateMany operations.
|
|
240
|
+
* Uses a predicate function serialized as a string (for RPC).
|
|
241
|
+
* Note: The actual predicate is passed as a function at runtime;
|
|
242
|
+
* for RPC, we accept a where clause instead.
|
|
243
|
+
*/
|
|
244
|
+
export declare const UpdateManyPayloadSchema: Schema.Struct<{
|
|
245
|
+
where: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
|
|
246
|
+
updates: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
|
|
247
|
+
}>;
|
|
248
|
+
export type UpdateManyPayload = typeof UpdateManyPayloadSchema.Type;
|
|
249
|
+
/**
|
|
250
|
+
* Payload for deleteMany operations.
|
|
251
|
+
* Uses a where clause to identify entities to delete.
|
|
252
|
+
*/
|
|
253
|
+
export declare const DeleteManyPayloadSchema: Schema.Struct<{
|
|
254
|
+
where: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
|
|
255
|
+
options: Schema.optional<Schema.Struct<{
|
|
256
|
+
limit: Schema.optional<typeof Schema.Number>;
|
|
257
|
+
}>>;
|
|
258
|
+
}>;
|
|
259
|
+
export type DeleteManyPayload = typeof DeleteManyPayloadSchema.Type;
|
|
260
|
+
/**
|
|
261
|
+
* Payload for upsert operations.
|
|
262
|
+
*/
|
|
263
|
+
export declare const UpsertPayloadSchema: Schema.Struct<{
|
|
264
|
+
where: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
|
|
265
|
+
create: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
|
|
266
|
+
update: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
|
|
267
|
+
}>;
|
|
268
|
+
export type UpsertPayload = typeof UpsertPayloadSchema.Type;
|
|
269
|
+
/**
|
|
270
|
+
* Payload for upsertMany operations.
|
|
271
|
+
*/
|
|
272
|
+
export declare const UpsertManyPayloadSchema: Schema.Struct<{
|
|
273
|
+
data: Schema.Array$<Schema.Struct<{
|
|
274
|
+
where: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
|
|
275
|
+
create: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
|
|
276
|
+
update: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
|
|
277
|
+
}>>;
|
|
278
|
+
}>;
|
|
279
|
+
export type UpsertManyPayload = typeof UpsertManyPayloadSchema.Type;
|
|
280
|
+
/**
|
|
281
|
+
* Schema for aggregate results (scalar aggregation).
|
|
282
|
+
*/
|
|
283
|
+
export declare const AggregateResultSchema: Schema.Struct<{
|
|
284
|
+
count: Schema.optional<typeof Schema.Number>;
|
|
285
|
+
sum: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Number>>;
|
|
286
|
+
avg: Schema.optional<Schema.Record$<typeof Schema.String, Schema.NullOr<typeof Schema.Number>>>;
|
|
287
|
+
min: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
|
|
288
|
+
max: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
|
|
289
|
+
}>;
|
|
290
|
+
export type AggregateResultType = typeof AggregateResultSchema.Type;
|
|
291
|
+
/**
|
|
292
|
+
* Schema for a single group result in grouped aggregation.
|
|
293
|
+
*/
|
|
294
|
+
export declare const GroupResultSchema: Schema.Struct<{
|
|
295
|
+
group: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
|
|
296
|
+
count: Schema.optional<typeof Schema.Number>;
|
|
297
|
+
sum: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Number>>;
|
|
298
|
+
avg: Schema.optional<Schema.Record$<typeof Schema.String, Schema.NullOr<typeof Schema.Number>>>;
|
|
299
|
+
min: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
|
|
300
|
+
max: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
|
|
301
|
+
}>;
|
|
302
|
+
export type GroupResultType = typeof GroupResultSchema.Type;
|
|
303
|
+
/**
|
|
304
|
+
* Schema for grouped aggregate results.
|
|
305
|
+
*/
|
|
306
|
+
export declare const GroupedAggregateResultSchema: Schema.Array$<Schema.Struct<{
|
|
307
|
+
group: Schema.Record$<typeof Schema.String, typeof Schema.Unknown>;
|
|
308
|
+
count: Schema.optional<typeof Schema.Number>;
|
|
309
|
+
sum: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Number>>;
|
|
310
|
+
avg: Schema.optional<Schema.Record$<typeof Schema.String, Schema.NullOr<typeof Schema.Number>>>;
|
|
311
|
+
min: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
|
|
312
|
+
max: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>>;
|
|
313
|
+
}>>;
|
|
314
|
+
export type GroupedAggregateResultType = typeof GroupedAggregateResultSchema.Type;
|
|
315
|
+
/**
|
|
316
|
+
* Schema for cursor page info.
|
|
317
|
+
*/
|
|
318
|
+
export declare const CursorPageInfoSchema: Schema.Struct<{
|
|
319
|
+
startCursor: Schema.NullOr<typeof Schema.String>;
|
|
320
|
+
endCursor: Schema.NullOr<typeof Schema.String>;
|
|
321
|
+
hasNextPage: typeof Schema.Boolean;
|
|
322
|
+
hasPreviousPage: typeof Schema.Boolean;
|
|
323
|
+
}>;
|
|
324
|
+
export type CursorPageInfoType = typeof CursorPageInfoSchema.Type;
|
|
325
|
+
/**
|
|
326
|
+
* Schema for cursor page result.
|
|
327
|
+
*/
|
|
328
|
+
export declare const CursorPageResultSchema: Schema.Struct<{
|
|
329
|
+
items: Schema.Array$<typeof Schema.Unknown>;
|
|
330
|
+
pageInfo: Schema.Struct<{
|
|
331
|
+
startCursor: Schema.NullOr<typeof Schema.String>;
|
|
332
|
+
endCursor: Schema.NullOr<typeof Schema.String>;
|
|
333
|
+
hasNextPage: typeof Schema.Boolean;
|
|
334
|
+
hasPreviousPage: typeof Schema.Boolean;
|
|
335
|
+
}>;
|
|
336
|
+
}>;
|
|
337
|
+
export type CursorPageResultType = typeof CursorPageResultSchema.Type;
|
|
338
|
+
/**
|
|
339
|
+
* Schema for createMany result.
|
|
340
|
+
*/
|
|
341
|
+
export declare const CreateManyResultSchema: Schema.Struct<{
|
|
342
|
+
created: Schema.Array$<typeof Schema.Unknown>;
|
|
343
|
+
skipped: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
344
|
+
data: typeof Schema.Unknown;
|
|
345
|
+
reason: typeof Schema.String;
|
|
346
|
+
}>>>;
|
|
347
|
+
}>;
|
|
348
|
+
export type CreateManyResultType = typeof CreateManyResultSchema.Type;
|
|
349
|
+
/**
|
|
350
|
+
* Schema for updateMany result.
|
|
351
|
+
*/
|
|
352
|
+
export declare const UpdateManyResultSchema: Schema.Struct<{
|
|
353
|
+
count: typeof Schema.Number;
|
|
354
|
+
updated: Schema.Array$<typeof Schema.Unknown>;
|
|
355
|
+
}>;
|
|
356
|
+
export type UpdateManyResultType = typeof UpdateManyResultSchema.Type;
|
|
357
|
+
/**
|
|
358
|
+
* Schema for deleteMany result.
|
|
359
|
+
*/
|
|
360
|
+
export declare const DeleteManyResultSchema: Schema.Struct<{
|
|
361
|
+
count: typeof Schema.Number;
|
|
362
|
+
deleted: Schema.Array$<typeof Schema.Unknown>;
|
|
363
|
+
}>;
|
|
364
|
+
export type DeleteManyResultType = typeof DeleteManyResultSchema.Type;
|
|
365
|
+
/**
|
|
366
|
+
* Schema for upsert result.
|
|
367
|
+
*/
|
|
368
|
+
export declare const UpsertResultSchema: Schema.Struct<{
|
|
369
|
+
entity: typeof Schema.Unknown;
|
|
370
|
+
__action: Schema.Literal<["created", "updated"]>;
|
|
371
|
+
}>;
|
|
372
|
+
export type UpsertResultType = typeof UpsertResultSchema.Type;
|
|
373
|
+
/**
|
|
374
|
+
* Schema for upsertMany result.
|
|
375
|
+
*/
|
|
376
|
+
export declare const UpsertManyResultSchema: Schema.Struct<{
|
|
377
|
+
created: Schema.Array$<typeof Schema.Unknown>;
|
|
378
|
+
updated: Schema.Array$<typeof Schema.Unknown>;
|
|
379
|
+
unchanged: Schema.Array$<typeof Schema.Unknown>;
|
|
380
|
+
}>;
|
|
381
|
+
export type UpsertManyResultType = typeof UpsertManyResultSchema.Type;
|
|
382
|
+
//# sourceMappingURL=rpc-schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rpc-schemas.d.ts","sourceRoot":"","sources":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