effect-app 4.0.0-beta.196 → 4.0.0-beta.197
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 +28 -0
- package/dist/Schema/Class.d.ts +7 -10
- package/dist/Schema/Class.d.ts.map +1 -1
- package/dist/Schema/Class.js +2 -3
- package/dist/Schema.d.ts +70 -18
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +4 -1
- package/dist/client/apiClientFactory.d.ts +3 -3
- package/dist/client/apiClientFactory.d.ts.map +1 -1
- package/dist/client/apiClientFactory.js +6 -6
- package/dist/client/clientFor.d.ts +2 -5
- package/dist/client/clientFor.d.ts.map +1 -1
- package/dist/client/makeClient.d.ts +83 -63
- package/dist/client/makeClient.d.ts.map +1 -1
- package/dist/client/makeClient.js +10 -12
- package/dist/rpc/Invalidation.d.ts +11 -459
- package/dist/rpc/Invalidation.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/Schema/Class.ts +8 -19
- package/src/Schema.ts +91 -24
- package/src/client/apiClientFactory.ts +13 -13
- package/src/client/clientFor.ts +3 -5
- package/src/client/makeClient.ts +131 -24
- package/test/dist/rpc.test.d.ts.map +1 -1
|
@@ -71,72 +71,7 @@ export declare const CommandResponseWithMetaData: <S extends S.Top>(success: S)
|
|
|
71
71
|
}>>;
|
|
72
72
|
};
|
|
73
73
|
}>;
|
|
74
|
-
}
|
|
75
|
-
readonly payload: S;
|
|
76
|
-
readonly metadata: S.Struct<{
|
|
77
|
-
readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
78
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
79
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
80
|
-
}> & {
|
|
81
|
-
withDefault: S.withConstructorDefault<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
82
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
83
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
84
|
-
}>>;
|
|
85
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
86
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
87
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
88
|
-
}>>;
|
|
89
|
-
};
|
|
90
|
-
}>;
|
|
91
|
-
}, (S extends {
|
|
92
|
-
readonly "~type.optionality": "optional";
|
|
93
|
-
} ? "payload" : never) | (S extends {
|
|
94
|
-
readonly "~type.constructor.default": "with-default";
|
|
95
|
-
} ? "payload" : never)> extends infer T ? { [K in keyof T]: T[K]; } : never) ? {
|
|
96
|
-
make(input?: (import("effect/Schema").Struct.MakeIn_<{
|
|
97
|
-
readonly payload: S;
|
|
98
|
-
readonly metadata: S.Struct<{
|
|
99
|
-
readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
100
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
101
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
102
|
-
}> & {
|
|
103
|
-
withDefault: S.withConstructorDefault<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
104
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
105
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
106
|
-
}>>;
|
|
107
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
108
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
109
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
110
|
-
}>>;
|
|
111
|
-
};
|
|
112
|
-
}>;
|
|
113
|
-
}, (S extends {
|
|
114
|
-
readonly "~type.optionality": "optional";
|
|
115
|
-
} ? "payload" : never) | (S extends {
|
|
116
|
-
readonly "~type.constructor.default": "with-default";
|
|
117
|
-
} ? "payload" : never)> extends infer T_1 ? { [K in keyof T_1]: T_1[K]; } : never) | undefined, options?: S.MakeOptions): import("effect/Schema").Struct.Type_<{
|
|
118
|
-
readonly payload: S;
|
|
119
|
-
readonly metadata: S.Struct<{
|
|
120
|
-
readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
121
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
122
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
123
|
-
}> & {
|
|
124
|
-
withDefault: S.withConstructorDefault<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
125
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
126
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
127
|
-
}>>;
|
|
128
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
129
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
130
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
131
|
-
}>>;
|
|
132
|
-
};
|
|
133
|
-
}>;
|
|
134
|
-
}, S extends {
|
|
135
|
-
readonly "~type.optionality": "optional";
|
|
136
|
-
} ? "payload" : never, S extends {
|
|
137
|
-
readonly "~type.mutability": "mutable";
|
|
138
|
-
} ? "payload" : never> extends infer T_2 ? { [K in keyof T_2]: T_2[K]; } : never;
|
|
139
|
-
} : {});
|
|
74
|
+
}>;
|
|
140
75
|
/**
|
|
141
76
|
* Wraps a command's failure schema so that the wire format carries both the `error`
|
|
142
77
|
* (the handler's actual failure value) and `metadata` (server-driven cache invalidation keys
|
|
@@ -162,75 +97,7 @@ export declare const CommandFailureWithMetaData: <E extends S.Top>(error: E) =>
|
|
|
162
97
|
}>>;
|
|
163
98
|
};
|
|
164
99
|
}>;
|
|
165
|
-
}
|
|
166
|
-
readonly _tag: S.Literal<"CommandFailureWithMetaData">;
|
|
167
|
-
readonly error: E;
|
|
168
|
-
readonly metadata: S.Struct<{
|
|
169
|
-
readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
170
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
171
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
172
|
-
}> & {
|
|
173
|
-
withDefault: S.withConstructorDefault<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
174
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
175
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
176
|
-
}>>;
|
|
177
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
178
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
179
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
180
|
-
}>>;
|
|
181
|
-
};
|
|
182
|
-
}>;
|
|
183
|
-
}, (E extends {
|
|
184
|
-
readonly "~type.optionality": "optional";
|
|
185
|
-
} ? "error" : never) | (E extends {
|
|
186
|
-
readonly "~type.constructor.default": "with-default";
|
|
187
|
-
} ? "error" : never)> extends infer T ? { [K in keyof T]: T[K]; } : never) ? {
|
|
188
|
-
make(input?: (import("effect/Schema").Struct.MakeIn_<{
|
|
189
|
-
readonly _tag: S.Literal<"CommandFailureWithMetaData">;
|
|
190
|
-
readonly error: E;
|
|
191
|
-
readonly metadata: S.Struct<{
|
|
192
|
-
readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
193
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
194
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
195
|
-
}> & {
|
|
196
|
-
withDefault: S.withConstructorDefault<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
197
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
198
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
199
|
-
}>>;
|
|
200
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
201
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
202
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
203
|
-
}>>;
|
|
204
|
-
};
|
|
205
|
-
}>;
|
|
206
|
-
}, (E extends {
|
|
207
|
-
readonly "~type.optionality": "optional";
|
|
208
|
-
} ? "error" : never) | (E extends {
|
|
209
|
-
readonly "~type.constructor.default": "with-default";
|
|
210
|
-
} ? "error" : never)> extends infer T_1 ? { [K in keyof T_1]: T_1[K]; } : never) | undefined, options?: S.MakeOptions): import("effect/Schema").Struct.Type_<{
|
|
211
|
-
readonly _tag: S.Literal<"CommandFailureWithMetaData">;
|
|
212
|
-
readonly error: E;
|
|
213
|
-
readonly metadata: S.Struct<{
|
|
214
|
-
readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
215
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
216
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
217
|
-
}> & {
|
|
218
|
-
withDefault: S.withConstructorDefault<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
219
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
220
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
221
|
-
}>>;
|
|
222
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
223
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
224
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
225
|
-
}>>;
|
|
226
|
-
};
|
|
227
|
-
}>;
|
|
228
|
-
}, E extends {
|
|
229
|
-
readonly "~type.optionality": "optional";
|
|
230
|
-
} ? "error" : never, E extends {
|
|
231
|
-
readonly "~type.mutability": "mutable";
|
|
232
|
-
} ? "error" : never> extends infer T_2 ? { [K in keyof T_2]: T_2[K]; } : never;
|
|
233
|
-
} : {});
|
|
100
|
+
}>;
|
|
234
101
|
/**
|
|
235
102
|
* Stream chunk schema for stream responses with metadata.
|
|
236
103
|
* Each item is either a data value, an intermediate "metadata" signal carrying cache
|
|
@@ -245,30 +112,7 @@ export declare const CommandFailureWithMetaData: <E extends S.Top>(error: E) =>
|
|
|
245
112
|
export declare const StreamResponseChunk: <S extends S.Top>(success: S) => S.Union<readonly [S.Struct<{
|
|
246
113
|
readonly _tag: S.Literal<"value">;
|
|
247
114
|
readonly value: S;
|
|
248
|
-
}
|
|
249
|
-
readonly _tag: S.Literal<"value">;
|
|
250
|
-
readonly value: S;
|
|
251
|
-
}, (S extends {
|
|
252
|
-
readonly "~type.optionality": "optional";
|
|
253
|
-
} ? "value" : never) | (S extends {
|
|
254
|
-
readonly "~type.constructor.default": "with-default";
|
|
255
|
-
} ? "value" : never)> extends infer T ? { [K in keyof T]: T[K]; } : never) ? {
|
|
256
|
-
make(input?: (import("effect/Schema").Struct.MakeIn_<{
|
|
257
|
-
readonly _tag: S.Literal<"value">;
|
|
258
|
-
readonly value: S;
|
|
259
|
-
}, (S extends {
|
|
260
|
-
readonly "~type.optionality": "optional";
|
|
261
|
-
} ? "value" : never) | (S extends {
|
|
262
|
-
readonly "~type.constructor.default": "with-default";
|
|
263
|
-
} ? "value" : never)> extends infer T_1 ? { [K in keyof T_1]: T_1[K]; } : never) | undefined, options?: S.MakeOptions): import("effect/Schema").Struct.Type_<{
|
|
264
|
-
readonly _tag: S.Literal<"value">;
|
|
265
|
-
readonly value: S;
|
|
266
|
-
}, S extends {
|
|
267
|
-
readonly "~type.optionality": "optional";
|
|
268
|
-
} ? "value" : never, S extends {
|
|
269
|
-
readonly "~type.mutability": "mutable";
|
|
270
|
-
} ? "value" : never> extends infer T_2 ? { [K in keyof T_2]: T_2[K]; } : never;
|
|
271
|
-
} : {}), S.Struct<{
|
|
115
|
+
}>, S.Struct<{
|
|
272
116
|
readonly _tag: S.Literal<"metadata">;
|
|
273
117
|
readonly metadata: S.Struct<{
|
|
274
118
|
readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
@@ -336,75 +180,7 @@ export declare const StreamFailureChunk: <E extends S.Top>(error: E) => S.Struct
|
|
|
336
180
|
}>>;
|
|
337
181
|
};
|
|
338
182
|
}>;
|
|
339
|
-
}
|
|
340
|
-
readonly _tag: S.Literal<"error">;
|
|
341
|
-
readonly error: E;
|
|
342
|
-
readonly metadata: S.Struct<{
|
|
343
|
-
readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
344
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
345
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
346
|
-
}> & {
|
|
347
|
-
withDefault: S.withConstructorDefault<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
348
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
349
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
350
|
-
}>>;
|
|
351
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
352
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
353
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
354
|
-
}>>;
|
|
355
|
-
};
|
|
356
|
-
}>;
|
|
357
|
-
}, (E extends {
|
|
358
|
-
readonly "~type.optionality": "optional";
|
|
359
|
-
} ? "error" : never) | (E extends {
|
|
360
|
-
readonly "~type.constructor.default": "with-default";
|
|
361
|
-
} ? "error" : never)> extends infer T ? { [K in keyof T]: T[K]; } : never) ? {
|
|
362
|
-
make(input?: (import("effect/Schema").Struct.MakeIn_<{
|
|
363
|
-
readonly _tag: S.Literal<"error">;
|
|
364
|
-
readonly error: E;
|
|
365
|
-
readonly metadata: S.Struct<{
|
|
366
|
-
readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
367
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
368
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
369
|
-
}> & {
|
|
370
|
-
withDefault: S.withConstructorDefault<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
371
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
372
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
373
|
-
}>>;
|
|
374
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
375
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
376
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
377
|
-
}>>;
|
|
378
|
-
};
|
|
379
|
-
}>;
|
|
380
|
-
}, (E extends {
|
|
381
|
-
readonly "~type.optionality": "optional";
|
|
382
|
-
} ? "error" : never) | (E extends {
|
|
383
|
-
readonly "~type.constructor.default": "with-default";
|
|
384
|
-
} ? "error" : never)> extends infer T_1 ? { [K in keyof T_1]: T_1[K]; } : never) | undefined, options?: S.MakeOptions): import("effect/Schema").Struct.Type_<{
|
|
385
|
-
readonly _tag: S.Literal<"error">;
|
|
386
|
-
readonly error: E;
|
|
387
|
-
readonly metadata: S.Struct<{
|
|
388
|
-
readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
389
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
390
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
391
|
-
}> & {
|
|
392
|
-
withDefault: S.withConstructorDefault<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
393
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
394
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
395
|
-
}>>;
|
|
396
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
397
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
398
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
399
|
-
}>>;
|
|
400
|
-
};
|
|
401
|
-
}>;
|
|
402
|
-
}, E extends {
|
|
403
|
-
readonly "~type.optionality": "optional";
|
|
404
|
-
} ? "error" : never, E extends {
|
|
405
|
-
readonly "~type.mutability": "mutable";
|
|
406
|
-
} ? "error" : never> extends infer T_2 ? { [K in keyof T_2]: T_2[K]; } : never;
|
|
407
|
-
} : {});
|
|
183
|
+
}>;
|
|
408
184
|
export type StreamFailureChunk<E> = {
|
|
409
185
|
readonly _tag: "error";
|
|
410
186
|
readonly error: E;
|
|
@@ -517,90 +293,7 @@ export declare const makeCommandRpc: <const Tag extends string, Payload extends
|
|
|
517
293
|
}>>;
|
|
518
294
|
};
|
|
519
295
|
}>;
|
|
520
|
-
}
|
|
521
|
-
readonly payload: S.Top & Success;
|
|
522
|
-
readonly metadata: S.Struct<{
|
|
523
|
-
readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
524
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
525
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
526
|
-
}> & {
|
|
527
|
-
withDefault: S.withConstructorDefault<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
528
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
529
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
530
|
-
}>>;
|
|
531
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
532
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
533
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
534
|
-
}>>;
|
|
535
|
-
};
|
|
536
|
-
}>;
|
|
537
|
-
}, (S.Top & Success extends {
|
|
538
|
-
readonly "~type.optionality": "optional";
|
|
539
|
-
} ? "payload" : never) | (S.Top & Success extends {
|
|
540
|
-
readonly "~type.constructor.default": "with-default";
|
|
541
|
-
} ? "payload" : never)> extends infer T ? { [K in keyof T]: T[K]; } : never) ? {
|
|
542
|
-
make(input?: (import("effect/Schema").Struct.MakeIn_<{
|
|
543
|
-
readonly payload: S.Top & Success;
|
|
544
|
-
readonly metadata: S.Struct<{
|
|
545
|
-
readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
546
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
547
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
548
|
-
}> & {
|
|
549
|
-
withDefault: S.withConstructorDefault<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
550
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
551
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
552
|
-
}>>;
|
|
553
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
554
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
555
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
556
|
-
}>>;
|
|
557
|
-
};
|
|
558
|
-
}>;
|
|
559
|
-
}, (S.Top & Success extends {
|
|
560
|
-
readonly "~type.optionality": "optional";
|
|
561
|
-
} ? "payload" : never) | (S.Top & Success extends {
|
|
562
|
-
readonly "~type.constructor.default": "with-default";
|
|
563
|
-
} ? "payload" : never)> extends infer T_1 ? { [K in keyof T_1]: T_1[K]; } : never) | undefined, options?: S.MakeOptions): import("effect/Schema").Struct.Type_<{
|
|
564
|
-
readonly payload: S.Top & Success;
|
|
565
|
-
readonly metadata: S.Struct<{
|
|
566
|
-
readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
567
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
568
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
569
|
-
}> & {
|
|
570
|
-
withDefault: S.withConstructorDefault<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
571
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
572
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
573
|
-
}>>;
|
|
574
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
575
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
576
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
577
|
-
}>>;
|
|
578
|
-
};
|
|
579
|
-
}>;
|
|
580
|
-
}, S.Top & Success extends {
|
|
581
|
-
readonly "~type.optionality": "optional";
|
|
582
|
-
} ? "payload" : never, S.Top & Success extends {
|
|
583
|
-
readonly "~type.mutability": "mutable";
|
|
584
|
-
} ? "payload" : never> extends infer T_2 ? { [K in keyof T_2]: T_2[K]; } : never;
|
|
585
|
-
} : {}), S.Struct<{
|
|
586
|
-
readonly _tag: S.Literal<"CommandFailureWithMetaData">;
|
|
587
|
-
readonly error: S.Top & Error;
|
|
588
|
-
readonly metadata: S.Struct<{
|
|
589
|
-
readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
590
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
591
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
592
|
-
}> & {
|
|
593
|
-
withDefault: S.withConstructorDefault<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
594
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
595
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
596
|
-
}>>;
|
|
597
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
598
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
599
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
600
|
-
}>>;
|
|
601
|
-
};
|
|
602
|
-
}>;
|
|
603
|
-
}> & ({} extends (import("effect/Schema").Struct.MakeIn_<{
|
|
296
|
+
}>, S.Struct<{
|
|
604
297
|
readonly _tag: S.Literal<"CommandFailureWithMetaData">;
|
|
605
298
|
readonly error: S.Top & Error;
|
|
606
299
|
readonly metadata: S.Struct<{
|
|
@@ -618,63 +311,13 @@ export declare const makeCommandRpc: <const Tag extends string, Payload extends
|
|
|
618
311
|
}>>;
|
|
619
312
|
};
|
|
620
313
|
}>;
|
|
621
|
-
}
|
|
622
|
-
readonly "~type.optionality": "optional";
|
|
623
|
-
} ? "error" : never) | (S.Top & Error extends {
|
|
624
|
-
readonly "~type.constructor.default": "with-default";
|
|
625
|
-
} ? "error" : never)> extends infer T_1 ? { [K in keyof T_1]: T_1[K]; } : never) ? {
|
|
626
|
-
make(input?: (import("effect/Schema").Struct.MakeIn_<{
|
|
627
|
-
readonly _tag: S.Literal<"CommandFailureWithMetaData">;
|
|
628
|
-
readonly error: S.Top & Error;
|
|
629
|
-
readonly metadata: S.Struct<{
|
|
630
|
-
readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
631
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
632
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
633
|
-
}> & {
|
|
634
|
-
withDefault: S.withConstructorDefault<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
635
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
636
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
637
|
-
}>>;
|
|
638
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
639
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
640
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
641
|
-
}>>;
|
|
642
|
-
};
|
|
643
|
-
}>;
|
|
644
|
-
}, (S.Top & Error extends {
|
|
645
|
-
readonly "~type.optionality": "optional";
|
|
646
|
-
} ? "error" : never) | (S.Top & Error extends {
|
|
647
|
-
readonly "~type.constructor.default": "with-default";
|
|
648
|
-
} ? "error" : never)> extends infer T_2 ? { [K in keyof T_2]: T_2[K]; } : never) | undefined, options?: S.MakeOptions): import("effect/Schema").Struct.Type_<{
|
|
649
|
-
readonly _tag: S.Literal<"CommandFailureWithMetaData">;
|
|
650
|
-
readonly error: S.Top & Error;
|
|
651
|
-
readonly metadata: S.Struct<{
|
|
652
|
-
readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
653
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
654
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
655
|
-
}> & {
|
|
656
|
-
withDefault: S.withConstructorDefault<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
657
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
658
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
659
|
-
}>>;
|
|
660
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
661
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
662
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
663
|
-
}>>;
|
|
664
|
-
};
|
|
665
|
-
}>;
|
|
666
|
-
}, S.Top & Error extends {
|
|
667
|
-
readonly "~type.optionality": "optional";
|
|
668
|
-
} ? "error" : never, S.Top & Error extends {
|
|
669
|
-
readonly "~type.mutability": "mutable";
|
|
670
|
-
} ? "error" : never> extends infer T_3 ? { [K in keyof T_3]: T_3[K]; } : never;
|
|
671
|
-
} : {})>>(tag: Tag, options?: {
|
|
314
|
+
}>>>(tag: Tag, options?: {
|
|
672
315
|
readonly payload?: Payload;
|
|
673
316
|
readonly success?: Success;
|
|
674
317
|
readonly error?: Error;
|
|
675
318
|
readonly defect?: Rpc.DefectSchema;
|
|
676
319
|
readonly stream?: Stream;
|
|
677
|
-
readonly primaryKey?: [Payload] extends [import("effect/Schema").Struct.Fields] ? (payload: Payload extends import("effect/Schema").Struct.Fields ? (import("effect/Schema").Struct.Type_<Payload, import("effect/Schema").Struct.TypeOptionalKeys<Payload>, import("effect/Schema").Struct.TypeMutableKeys<Payload>> extends infer
|
|
320
|
+
readonly primaryKey?: [Payload] extends [import("effect/Schema").Struct.Fields] ? (payload: Payload extends import("effect/Schema").Struct.Fields ? (import("effect/Schema").Struct.Type_<Payload, import("effect/Schema").Struct.TypeOptionalKeys<Payload>, import("effect/Schema").Struct.TypeMutableKeys<Payload>> extends infer T_1 ? { [K in keyof T_1]: T_1[K]; } : never) extends infer T ? { [K in keyof T]: T[K]; } : never : Payload["Type"]) => string : never;
|
|
678
321
|
} | undefined) => Rpc.Rpc<Tag, Payload extends import("effect/Schema").Struct.Fields ? import("effect/Schema").Struct<Payload> : Payload, Stream extends true ? import("effect/unstable/rpc/RpcSchema").Stream<Out["success"], Out["error"]> : Out["success"], Stream extends true ? S.Never : Out["error"], never, never>;
|
|
679
322
|
/**
|
|
680
323
|
* `Rpc.Custom` definition for stream RPCs that wrap the success/error schemas
|
|
@@ -691,30 +334,7 @@ export interface StreamRpc extends Rpc.Custom {
|
|
|
691
334
|
export declare const makeStreamRpc: <const Tag extends string, Payload extends S.Top | import("effect/Schema").Struct.Fields = S.Void, Success extends S.Top = S.Void, Error extends S.Top = S.Never, const Stream extends boolean = false, Out extends Rpc.Custom.OutDefault = Rpc.Custom.Out<S.Union<readonly [S.Struct<{
|
|
692
335
|
readonly _tag: S.Literal<"value">;
|
|
693
336
|
readonly value: S.Top & Success;
|
|
694
|
-
}
|
|
695
|
-
readonly _tag: S.Literal<"value">;
|
|
696
|
-
readonly value: S.Top & Success;
|
|
697
|
-
}, (S.Top & Success extends {
|
|
698
|
-
readonly "~type.optionality": "optional";
|
|
699
|
-
} ? "value" : never) | (S.Top & Success extends {
|
|
700
|
-
readonly "~type.constructor.default": "with-default";
|
|
701
|
-
} ? "value" : never)> extends infer T ? { [K in keyof T]: T[K]; } : never) ? {
|
|
702
|
-
make(input?: (import("effect/Schema").Struct.MakeIn_<{
|
|
703
|
-
readonly _tag: S.Literal<"value">;
|
|
704
|
-
readonly value: S.Top & Success;
|
|
705
|
-
}, (S.Top & Success extends {
|
|
706
|
-
readonly "~type.optionality": "optional";
|
|
707
|
-
} ? "value" : never) | (S.Top & Success extends {
|
|
708
|
-
readonly "~type.constructor.default": "with-default";
|
|
709
|
-
} ? "value" : never)> extends infer T_1 ? { [K in keyof T_1]: T_1[K]; } : never) | undefined, options?: S.MakeOptions): import("effect/Schema").Struct.Type_<{
|
|
710
|
-
readonly _tag: S.Literal<"value">;
|
|
711
|
-
readonly value: S.Top & Success;
|
|
712
|
-
}, S.Top & Success extends {
|
|
713
|
-
readonly "~type.optionality": "optional";
|
|
714
|
-
} ? "value" : never, S.Top & Success extends {
|
|
715
|
-
readonly "~type.mutability": "mutable";
|
|
716
|
-
} ? "value" : never> extends infer T_2 ? { [K in keyof T_2]: T_2[K]; } : never;
|
|
717
|
-
} : {}), S.Struct<{
|
|
337
|
+
}>, S.Struct<{
|
|
718
338
|
readonly _tag: S.Literal<"metadata">;
|
|
719
339
|
readonly metadata: S.Struct<{
|
|
720
340
|
readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
@@ -766,80 +386,12 @@ export declare const makeStreamRpc: <const Tag extends string, Payload extends S
|
|
|
766
386
|
}>>;
|
|
767
387
|
};
|
|
768
388
|
}>;
|
|
769
|
-
}
|
|
770
|
-
readonly _tag: S.Literal<"error">;
|
|
771
|
-
readonly error: S.Top & Error;
|
|
772
|
-
readonly metadata: S.Struct<{
|
|
773
|
-
readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
774
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
775
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
776
|
-
}> & {
|
|
777
|
-
withDefault: S.withConstructorDefault<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
778
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
779
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
780
|
-
}>>;
|
|
781
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
782
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
783
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
784
|
-
}>>;
|
|
785
|
-
};
|
|
786
|
-
}>;
|
|
787
|
-
}, (S.Top & Error extends {
|
|
788
|
-
readonly "~type.optionality": "optional";
|
|
789
|
-
} ? "error" : never) | (S.Top & Error extends {
|
|
790
|
-
readonly "~type.constructor.default": "with-default";
|
|
791
|
-
} ? "error" : never)> extends infer T_1 ? { [K in keyof T_1]: T_1[K]; } : never) ? {
|
|
792
|
-
make(input?: (import("effect/Schema").Struct.MakeIn_<{
|
|
793
|
-
readonly _tag: S.Literal<"error">;
|
|
794
|
-
readonly error: S.Top & Error;
|
|
795
|
-
readonly metadata: S.Struct<{
|
|
796
|
-
readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
797
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
798
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
799
|
-
}> & {
|
|
800
|
-
withDefault: S.withConstructorDefault<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
801
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
802
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
803
|
-
}>>;
|
|
804
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
805
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
806
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
807
|
-
}>>;
|
|
808
|
-
};
|
|
809
|
-
}>;
|
|
810
|
-
}, (S.Top & Error extends {
|
|
811
|
-
readonly "~type.optionality": "optional";
|
|
812
|
-
} ? "error" : never) | (S.Top & Error extends {
|
|
813
|
-
readonly "~type.constructor.default": "with-default";
|
|
814
|
-
} ? "error" : never)> extends infer T_2 ? { [K in keyof T_2]: T_2[K]; } : never) | undefined, options?: S.MakeOptions): import("effect/Schema").Struct.Type_<{
|
|
815
|
-
readonly _tag: S.Literal<"error">;
|
|
816
|
-
readonly error: S.Top & Error;
|
|
817
|
-
readonly metadata: S.Struct<{
|
|
818
|
-
readonly invalidateQueries: S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
819
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
820
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
821
|
-
}> & {
|
|
822
|
-
withDefault: S.withConstructorDefault<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
823
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
824
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
825
|
-
}>>;
|
|
826
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.$Array<S.Codec<S.Json, S.Json, never, never>> & {
|
|
827
|
-
withDefault: S.withConstructorDefault<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
828
|
-
withDecodingDefaultType: S.withDecodingDefaultType<S.$Array<S.Codec<S.Json, S.Json, never, never>>>;
|
|
829
|
-
}>>;
|
|
830
|
-
};
|
|
831
|
-
}>;
|
|
832
|
-
}, S.Top & Error extends {
|
|
833
|
-
readonly "~type.optionality": "optional";
|
|
834
|
-
} ? "error" : never, S.Top & Error extends {
|
|
835
|
-
readonly "~type.mutability": "mutable";
|
|
836
|
-
} ? "error" : never> extends infer T_3 ? { [K in keyof T_3]: T_3[K]; } : never;
|
|
837
|
-
} : {})>>(tag: Tag, options?: {
|
|
389
|
+
}>>>(tag: Tag, options?: {
|
|
838
390
|
readonly payload?: Payload;
|
|
839
391
|
readonly success?: Success;
|
|
840
392
|
readonly error?: Error;
|
|
841
393
|
readonly defect?: Rpc.DefectSchema;
|
|
842
394
|
readonly stream?: Stream;
|
|
843
|
-
readonly primaryKey?: [Payload] extends [import("effect/Schema").Struct.Fields] ? (payload: Payload extends import("effect/Schema").Struct.Fields ? (import("effect/Schema").Struct.Type_<Payload, import("effect/Schema").Struct.TypeOptionalKeys<Payload>, import("effect/Schema").Struct.TypeMutableKeys<Payload>> extends infer
|
|
395
|
+
readonly primaryKey?: [Payload] extends [import("effect/Schema").Struct.Fields] ? (payload: Payload extends import("effect/Schema").Struct.Fields ? (import("effect/Schema").Struct.Type_<Payload, import("effect/Schema").Struct.TypeOptionalKeys<Payload>, import("effect/Schema").Struct.TypeMutableKeys<Payload>> extends infer T_1 ? { [K in keyof T_1]: T_1[K]; } : never) extends infer T ? { [K in keyof T]: T[K]; } : never : Payload["Type"]) => string : never;
|
|
844
396
|
} | undefined) => Rpc.Rpc<Tag, Payload extends import("effect/Schema").Struct.Fields ? import("effect/Schema").Struct<Payload> : Payload, Stream extends true ? import("effect/unstable/rpc/RpcSchema").Stream<Out["success"], Out["error"]> : Out["success"], Stream extends true ? S.Never : Out["error"], never, never>;
|
|
845
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
397
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSW52YWxpZGF0aW9uLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcnBjL0ludmFsaWRhdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssR0FBRyxNQUFNLFlBQVksQ0FBQTtBQUNqQyxPQUFPLEVBQUUsR0FBRyxFQUFFLE1BQU0scUJBQXFCLENBQUE7QUFDekMsT0FBTyxLQUFLLE9BQU8sTUFBTSxlQUFlLENBQUE7QUFDeEMsT0FBTyxLQUFLLE1BQU0sTUFBTSxjQUFjLENBQUE7QUFDdEMsT0FBTyxLQUFLLENBQUMsTUFBTSxjQUFjLENBQUE7QUFFakM7Ozs7R0FJRztBQUNILGVBQU8sTUFBTSxzQkFBc0IsdUNBQVMsQ0FBQTtBQ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;;;;;;;;;;;;;;;;;;;;;;;;;0TAIxB,CAAA;AAEH;;;GAGG;AAEH,MAAM,WAAW,SAAU,SAAQ,GAAG,CAAC,MAAM;IAC3C,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,CAC1B,UAAU,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,EAC/D,UAAU,CAAC,OAAO,kBAAkB,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAC7D,CAAA;CACF;AAED;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0TAIvB,CAAA"}
|
package/package.json
CHANGED
package/src/Schema/Class.ts
CHANGED
|
@@ -28,25 +28,15 @@ type ClassOptions = {
|
|
|
28
28
|
readonly strict?: boolean
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
declare const ExtendedSchemaNoEncoded: unique symbol
|
|
31
|
+
export declare const ExtendedSchemaNoEncoded: unique symbol
|
|
32
32
|
|
|
33
|
-
type ExtendedSchemaNoEncoded = typeof ExtendedSchemaNoEncoded
|
|
33
|
+
export type ExtendedSchemaNoEncoded = typeof ExtendedSchemaNoEncoded
|
|
34
34
|
|
|
35
35
|
type WithEncoded<SchemaS extends S.Top, Encoded> = Omit<SchemaS, "Encoded"> & { readonly Encoded: Encoded }
|
|
36
36
|
|
|
37
37
|
type ExtendedSchema<SchemaS extends S.Top, Encoded> = [Encoded] extends [ExtendedSchemaNoEncoded] ? SchemaS
|
|
38
38
|
: WithEncoded<SchemaS, Encoded>
|
|
39
39
|
|
|
40
|
-
type OptionalMakeSurface<SchemaS extends S.Top> = {} extends SchemaS["~type.make.in"] ? {
|
|
41
|
-
make(input?: SchemaS["~type.make.in"], options?: S.MakeOptions): SchemaS["Type"]
|
|
42
|
-
makeOption(input?: SchemaS["~type.make.in"], options?: S.MakeOptions): Option.Option<SchemaS["Type"]>
|
|
43
|
-
makeEffect(
|
|
44
|
-
input?: SchemaS["~type.make.in"],
|
|
45
|
-
options?: S.MakeOptions
|
|
46
|
-
): Effect.Effect<SchemaS["Type"], S.SchemaError>
|
|
47
|
-
}
|
|
48
|
-
: {}
|
|
49
|
-
|
|
50
40
|
export type Class<Self, S extends S.Top & { readonly fields: S.Struct.Fields }, Inherited> = EnhancedClass<
|
|
51
41
|
Self,
|
|
52
42
|
S,
|
|
@@ -308,11 +298,10 @@ export const TaggedErrorClass: <Self = never, Encoded = ExtendedSchemaNoEncoded,
|
|
|
308
298
|
} as any
|
|
309
299
|
}
|
|
310
300
|
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
& S.Opaque<Self, ExtendedSchema<SchemaS, Encoded>, Brand>
|
|
315
|
-
& Omit<SchemaS, keyof S.Top>
|
|
316
|
-
& OptionalMakeSurface<S.Opaque<Self, ExtendedSchema<SchemaS, Encoded>, Brand>> = S.Opaque as any
|
|
301
|
+
export interface Opaque<Self, Encoded, SchemaS extends S.Top, Brand>
|
|
302
|
+
extends S.Opaque<Self, ExtendedSchema<SchemaS, Encoded>, Brand>
|
|
303
|
+
{}
|
|
317
304
|
|
|
318
|
-
export const Opaque =
|
|
305
|
+
export const Opaque: <Self, Encoded = ExtendedSchemaNoEncoded, Brand = {}>() => <S extends S.Top>(
|
|
306
|
+
schema: S
|
|
307
|
+
) => Opaque<Self, Encoded, S, Brand> & Omit<S, keyof S.Top> = S.Opaque as any
|