surreal-zod 0.0.0-alpha.12 → 0.0.0-alpha.13
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/lib/zod/core.d.ts +0 -5
- package/lib/zod/external.d.ts +2 -0
- package/lib/zod/external.js +2 -0
- package/lib/zod/index.d.ts +1 -0
- package/lib/zod/index.js +1 -0
- package/lib/zod/json-schema.js +1 -2
- package/lib/zod/schema.d.ts +1 -1
- package/lib/zod/schema.js +0 -1
- package/package.json +1 -1
- package/src/zod/core.ts +0 -9
- package/src/zod/external.ts +8 -0
- package/src/zod/index.ts +1 -0
- package/src/zod/json-schema.ts +1 -2
- package/src/zod/schema.ts +1 -2
package/lib/zod/core.d.ts
CHANGED
|
@@ -234,11 +234,6 @@ export type $InferOuterFunctionType<Args extends ZodSurrealFunctionIn, Returns e
|
|
|
234
234
|
export type $InferOuterFunctionDbType<Args extends ZodSurrealFunctionIn, Returns extends ZodSurrealFunctionOut> = (...args: ZodSurrealFunctionIn extends Args ? never[] : dbinput<Args>) => dboutput<Returns>;
|
|
235
235
|
export type $InferOuterFunctionTypeAsync<Args extends ZodSurrealFunctionIn, Returns extends ZodSurrealFunctionOut> = (...args: ZodSurrealFunctionIn extends Args ? never[] : core.input<Args>) => Promise<core.output<Returns>>;
|
|
236
236
|
export type $InferOuterFunctionDbTypeAsync<Args extends ZodSurrealFunctionIn, Returns extends ZodSurrealFunctionOut> = (...args: ZodSurrealFunctionIn extends Args ? never[] : dbinput<Args>) => Promise<dboutput<Returns>>;
|
|
237
|
-
export interface ZodSurrealFunctionDef<In extends ZodSurrealFunctionIn = ZodSurrealFunctionIn, Out extends ZodSurrealFunctionOut = ZodSurrealFunctionOut> extends $ZodSurrealTypeDef {
|
|
238
|
-
type: "function";
|
|
239
|
-
input: In;
|
|
240
|
-
output: Out;
|
|
241
|
-
}
|
|
242
237
|
type LiteralPart = Exclude<core.util.Literal, symbol>;
|
|
243
238
|
interface SchemaPartInternals extends $ZodSurrealTypeInternals<LiteralPart, LiteralPart> {
|
|
244
239
|
pattern: RegExp;
|
package/lib/zod/index.d.ts
CHANGED
package/lib/zod/index.js
CHANGED
package/lib/zod/json-schema.js
CHANGED
|
@@ -611,8 +611,7 @@ export function toJSONSchema(input, params) {
|
|
|
611
611
|
}
|
|
612
612
|
if (Object.keys(defs).length > 0) {
|
|
613
613
|
const defsSegment = ctx.target === "draft-2020-12" ? "$defs" : "definitions";
|
|
614
|
-
|
|
615
|
-
core.__shared = {
|
|
614
|
+
schemas.__shared = {
|
|
616
615
|
[defsSegment]: defs,
|
|
617
616
|
};
|
|
618
617
|
}
|
package/lib/zod/schema.d.ts
CHANGED
|
@@ -1408,7 +1408,7 @@ export interface ZodSurrealFunctionInternals<Args extends _core_.ZodSurrealFunct
|
|
|
1408
1408
|
}
|
|
1409
1409
|
export interface ZodSurrealFunction<Args extends _core_.ZodSurrealFunctionIn = _core_.ZodSurrealFunctionIn, Returns extends _core_.ZodSurrealFunctionOut = _core_.ZodSurrealFunctionOut> extends _ZodSurrealType<ZodSurrealFunctionInternals<Args, Returns>>, ZodSurrealFieldMethods {
|
|
1410
1410
|
"~standard": core.ZodStandardSchemaWithJSON<this>;
|
|
1411
|
-
_def:
|
|
1411
|
+
_def: ZodSurrealFunctionDef<Args, Returns>;
|
|
1412
1412
|
_input: _core_.$InferInnerFunctionType<Args, Returns>;
|
|
1413
1413
|
_output: _core_.$InferOuterFunctionType<Args, Returns>;
|
|
1414
1414
|
_dbinput: _core_.$InferInnerFunctionDbType<Args, Returns>;
|
package/lib/zod/schema.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { BoundQuery, DateTime, Duration, escapeIdent, RecordId, StringRecordId, surql, Uuid, Table, } from "surrealdb";
|
|
2
2
|
import * as core from "zod/v4/core";
|
|
3
3
|
import * as classic from "zod/v4";
|
|
4
|
-
import {} from "zod/v4/core";
|
|
5
4
|
import { inferSurrealType, inlineQueryParameters, tableToSurql, } from "../surql";
|
|
6
5
|
import * as _core_ from "./core";
|
|
7
6
|
import { assignParsingMethods, } from "./parse";
|
package/package.json
CHANGED
package/src/zod/core.ts
CHANGED
|
@@ -539,15 +539,6 @@ export type $InferOuterFunctionDbTypeAsync<
|
|
|
539
539
|
...args: ZodSurrealFunctionIn extends Args ? never[] : dbinput<Args>
|
|
540
540
|
) => Promise<dboutput<Returns>>;
|
|
541
541
|
|
|
542
|
-
export interface ZodSurrealFunctionDef<
|
|
543
|
-
In extends ZodSurrealFunctionIn = ZodSurrealFunctionIn,
|
|
544
|
-
Out extends ZodSurrealFunctionOut = ZodSurrealFunctionOut,
|
|
545
|
-
> extends $ZodSurrealTypeDef {
|
|
546
|
-
type: "function";
|
|
547
|
-
input: In;
|
|
548
|
-
output: Out;
|
|
549
|
-
}
|
|
550
|
-
|
|
551
542
|
// Literal
|
|
552
543
|
|
|
553
544
|
type LiteralPart = Exclude<core.util.Literal, symbol>;
|
package/src/zod/index.ts
CHANGED
package/src/zod/json-schema.ts
CHANGED
|
@@ -872,8 +872,7 @@ export function toJSONSchema(
|
|
|
872
872
|
if (Object.keys(defs).length > 0) {
|
|
873
873
|
const defsSegment =
|
|
874
874
|
ctx.target === "draft-2020-12" ? "$defs" : "definitions";
|
|
875
|
-
|
|
876
|
-
core.__shared = {
|
|
875
|
+
schemas.__shared = {
|
|
877
876
|
[defsSegment]: defs,
|
|
878
877
|
};
|
|
879
878
|
}
|
package/src/zod/schema.ts
CHANGED
|
@@ -12,7 +12,6 @@ import {
|
|
|
12
12
|
} from "surrealdb";
|
|
13
13
|
import * as core from "zod/v4/core";
|
|
14
14
|
import * as classic from "zod/v4";
|
|
15
|
-
import {} from "zod/v4/core";
|
|
16
15
|
import {
|
|
17
16
|
inferSurrealType,
|
|
18
17
|
inlineQueryParameters,
|
|
@@ -4843,7 +4842,7 @@ export interface ZodSurrealFunction<
|
|
|
4843
4842
|
> extends _ZodSurrealType<ZodSurrealFunctionInternals<Args, Returns>>,
|
|
4844
4843
|
ZodSurrealFieldMethods {
|
|
4845
4844
|
"~standard": core.ZodStandardSchemaWithJSON<this>;
|
|
4846
|
-
_def:
|
|
4845
|
+
_def: ZodSurrealFunctionDef<Args, Returns>;
|
|
4847
4846
|
_input: _core_.$InferInnerFunctionType<Args, Returns>;
|
|
4848
4847
|
_output: _core_.$InferOuterFunctionType<Args, Returns>;
|
|
4849
4848
|
_dbinput: _core_.$InferInnerFunctionDbType<Args, Returns>;
|