@schema-hub/zod-graphql-fake-client 0.0.17 → 0.0.19
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/package.json +3 -2
- package/sbom.cdx.json +27 -10
- package/tuple/non-empty-array.d.ts +6 -0
- package/tuple/non-empty-array.d.ts.map +1 -0
- package/zod-error-formatter/format-issue.d.ts +3 -0
- package/zod-error-formatter/format-issue.d.ts.map +1 -0
- package/zod-error-formatter/formatted-error.d.ts +7 -0
- package/zod-error-formatter/formatted-error.d.ts.map +1 -0
- package/zod-error-formatter/formatter.d.ts +16 -0
- package/zod-error-formatter/formatter.d.ts.map +1 -0
- package/zod-error-formatter/issue-specific/boundary-issue.d.ts +13 -0
- package/zod-error-formatter/issue-specific/boundary-issue.d.ts.map +1 -0
- package/zod-error-formatter/issue-specific/invalid-collection-issue.d.ts +6 -0
- package/zod-error-formatter/issue-specific/invalid-collection-issue.d.ts.map +1 -0
- package/zod-error-formatter/issue-specific/invalid-string.d.ts +3 -0
- package/zod-error-formatter/issue-specific/invalid-string.d.ts.map +1 -0
- package/zod-error-formatter/issue-specific/invalid-type.d.ts +3 -0
- package/zod-error-formatter/issue-specific/invalid-type.d.ts.map +1 -0
- package/zod-error-formatter/issue-specific/invalid-union-alternatives.d.ts +14 -0
- package/zod-error-formatter/issue-specific/invalid-union-alternatives.d.ts.map +1 -0
- package/zod-error-formatter/issue-specific/invalid-union.d.ts +5 -0
- package/zod-error-formatter/issue-specific/invalid-union.d.ts.map +1 -0
- package/zod-error-formatter/issue-specific/invalid-value.d.ts +3 -0
- package/zod-error-formatter/issue-specific/invalid-value.d.ts.map +1 -0
- package/zod-error-formatter/issue-specific/issue-specific-formatters.d.ts +22 -0
- package/zod-error-formatter/issue-specific/issue-specific-formatters.d.ts.map +1 -0
- package/zod-error-formatter/issue-specific/not-multiple-of.d.ts +3 -0
- package/zod-error-formatter/issue-specific/not-multiple-of.d.ts.map +1 -0
- package/zod-error-formatter/issue-specific/too-big.d.ts +3 -0
- package/zod-error-formatter/issue-specific/too-big.d.ts.map +1 -0
- package/zod-error-formatter/issue-specific/too-small.d.ts +3 -0
- package/zod-error-formatter/issue-specific/too-small.d.ts.map +1 -0
- package/zod-error-formatter/issue-specific/unrecognized-keys.d.ts +3 -0
- package/zod-error-formatter/issue-specific/unrecognized-keys.d.ts.map +1 -0
- package/zod-error-formatter/list.d.ts +10 -0
- package/zod-error-formatter/list.d.ts.map +1 -0
- package/zod-error-formatter/path.d.ts +18 -0
- package/zod-error-formatter/path.d.ts.map +1 -0
- package/zod-graphql-fake-client/fake-client.d.ts +4 -2
- package/zod-graphql-fake-client/fake-client.d.ts.map +1 -1
- package/zod-graphql-fake-client/fake-client.js.map +1 -1
- package/zod-graphql-query-builder/build-context.d.ts +11 -0
- package/zod-graphql-query-builder/build-context.d.ts.map +1 -0
- package/zod-graphql-query-builder/builder.d.ts +14 -0
- package/zod-graphql-query-builder/builder.d.ts.map +1 -0
- package/zod-graphql-query-builder/custom-scalar.d.ts +9 -0
- package/zod-graphql-query-builder/custom-scalar.d.ts.map +1 -0
- package/zod-graphql-query-builder/default-query-builder.d.ts +4 -0
- package/zod-graphql-query-builder/default-query-builder.d.ts.map +1 -0
- package/zod-graphql-query-builder/fragment-definitions.d.ts +7 -0
- package/zod-graphql-query-builder/fragment-definitions.d.ts.map +1 -0
- package/zod-graphql-query-builder/query-schema.d.ts +104 -0
- package/zod-graphql-query-builder/query-schema.d.ts.map +1 -0
- package/zod-graphql-query-builder/root-shape.d.ts +3 -0
- package/zod-graphql-query-builder/root-shape.d.ts.map +1 -0
- package/zod-graphql-query-builder/serializer.d.ts +10 -0
- package/zod-graphql-query-builder/serializer.d.ts.map +1 -0
- package/zod-graphql-query-builder/type-name.d.ts +10 -0
- package/zod-graphql-query-builder/type-name.d.ts.map +1 -0
- package/zod-graphql-query-builder/values/enum.d.ts +7 -0
- package/zod-graphql-query-builder/values/enum.d.ts.map +1 -0
- package/zod-graphql-query-builder/values/name.d.ts +2 -0
- package/zod-graphql-query-builder/values/name.d.ts.map +1 -0
- package/zod-graphql-query-builder/values/parameter-list.d.ts +3 -0
- package/zod-graphql-query-builder/values/parameter-list.d.ts.map +1 -0
- package/zod-graphql-query-builder/values/record.d.ts +3 -0
- package/zod-graphql-query-builder/values/record.d.ts.map +1 -0
- package/zod-graphql-query-builder/values/value.d.ts +14 -0
- package/zod-graphql-query-builder/values/value.d.ts.map +1 -0
- package/zod-graphql-query-builder/values/variable-placeholder.d.ts +8 -0
- package/zod-graphql-query-builder/values/variable-placeholder.d.ts.map +1 -0
- package/zod-graphql-query-builder/values/variable-set.d.ts +2 -0
- package/zod-graphql-query-builder/values/variable-set.d.ts.map +1 -0
- package/zod-graphql-query-builder/variable-correlations.d.ts +3 -0
- package/zod-graphql-query-builder/variable-correlations.d.ts.map +1 -0
- package/zod-graphql-query-builder/variable-definition.d.ts +3 -0
- package/zod-graphql-query-builder/variable-definition.d.ts.map +1 -0
- package/zod-graphql-query-builder/variable-type.d.ts +2 -0
- package/zod-graphql-query-builder/variable-type.d.ts.map +1 -0
package/package.json
CHANGED
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"name": "@schema-hub/zod-graphql-fake-client",
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@schema-hub/zod-graphql-client": "0.0.
|
|
20
|
+
"@schema-hub/zod-graphql-client": "0.0.19",
|
|
21
|
+
"zod": "^4.0.5"
|
|
21
22
|
},
|
|
22
23
|
"repository": {
|
|
23
24
|
"type": "git",
|
|
@@ -25,5 +26,5 @@
|
|
|
25
26
|
},
|
|
26
27
|
"sideEffects": false,
|
|
27
28
|
"type": "module",
|
|
28
|
-
"version": "0.0.
|
|
29
|
+
"version": "0.0.19"
|
|
29
30
|
}
|
package/sbom.cdx.json
CHANGED
|
@@ -9,42 +9,59 @@
|
|
|
9
9
|
{
|
|
10
10
|
"type": "application",
|
|
11
11
|
"name": "packtory",
|
|
12
|
-
"version": "0.0.
|
|
12
|
+
"version": "0.0.81"
|
|
13
13
|
}
|
|
14
14
|
]
|
|
15
15
|
},
|
|
16
16
|
"component": {
|
|
17
17
|
"type": "library",
|
|
18
18
|
"name": "@schema-hub/zod-graphql-fake-client",
|
|
19
|
-
"version": "0.0.
|
|
20
|
-
"bom-ref": "pkg:npm/@schema-hub/zod-graphql-fake-client@0.0.
|
|
21
|
-
"purl": "pkg:npm/@schema-hub/zod-graphql-fake-client@0.0.
|
|
19
|
+
"version": "0.0.19",
|
|
20
|
+
"bom-ref": "pkg:npm/@schema-hub/zod-graphql-fake-client@0.0.19",
|
|
21
|
+
"purl": "pkg:npm/@schema-hub/zod-graphql-fake-client@0.0.19"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"components": [
|
|
25
25
|
{
|
|
26
26
|
"type": "library",
|
|
27
27
|
"name": "@schema-hub/zod-graphql-client",
|
|
28
|
-
"version": "0.0.
|
|
29
|
-
"bom-ref": "pkg:npm/@schema-hub/zod-graphql-client@0.0.
|
|
28
|
+
"version": "0.0.19",
|
|
29
|
+
"bom-ref": "pkg:npm/@schema-hub/zod-graphql-client@0.0.19",
|
|
30
30
|
"scope": "optional",
|
|
31
31
|
"licenses": [
|
|
32
32
|
{
|
|
33
33
|
"expression": "MIT"
|
|
34
34
|
}
|
|
35
35
|
],
|
|
36
|
-
"purl": "pkg:npm/@schema-hub/zod-graphql-client@0.0.
|
|
36
|
+
"purl": "pkg:npm/@schema-hub/zod-graphql-client@0.0.19"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"type": "library",
|
|
40
|
+
"name": "zod",
|
|
41
|
+
"version": "^4.0.5",
|
|
42
|
+
"bom-ref": "pkg:npm/zod@%5E4.0.5",
|
|
43
|
+
"scope": "optional",
|
|
44
|
+
"licenses": [
|
|
45
|
+
{
|
|
46
|
+
"expression": "MIT"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"purl": "pkg:npm/zod@%5E4.0.5"
|
|
37
50
|
}
|
|
38
51
|
],
|
|
39
52
|
"dependencies": [
|
|
40
53
|
{
|
|
41
|
-
"ref": "pkg:npm/@schema-hub/zod-graphql-client@0.0.
|
|
54
|
+
"ref": "pkg:npm/@schema-hub/zod-graphql-client@0.0.19"
|
|
42
55
|
},
|
|
43
56
|
{
|
|
44
|
-
"ref": "pkg:npm/@schema-hub/zod-graphql-fake-client@0.0.
|
|
57
|
+
"ref": "pkg:npm/@schema-hub/zod-graphql-fake-client@0.0.19",
|
|
45
58
|
"dependsOn": [
|
|
46
|
-
"pkg:npm/@schema-hub/zod-graphql-client@0.0.
|
|
59
|
+
"pkg:npm/@schema-hub/zod-graphql-client@0.0.19",
|
|
60
|
+
"pkg:npm/zod@%5E4.0.5"
|
|
47
61
|
]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"ref": "pkg:npm/zod@%5E4.0.5"
|
|
48
65
|
}
|
|
49
66
|
]
|
|
50
67
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type NonEmptyArray<Item> = readonly [Item, ...(readonly Item[])];
|
|
2
|
+
export declare function isNonEmptyArray<Item>(list: readonly Item[]): list is NonEmptyArray<Item>;
|
|
3
|
+
export declare function mapTuple<Tuple extends readonly unknown[], MappedItem>(tuple: Tuple, mapItem: (item: Tuple[number]) => MappedItem): {
|
|
4
|
+
[Key in keyof Tuple]: MappedItem;
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=non-empty-array.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"non-empty-array.d.ts","sourceRoot":"","sources":["../../../../source/tuple/non-empty-array.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,CAAC,IAAI,IAAI,SAAS,CAAC,IAAI,EAAE,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,CAAC;AAExE,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,IAAI,EAAE,GAAG,IAAI,IAAI,aAAa,CAAC,IAAI,CAAC,CAExF;AAED,wBAAgB,QAAQ,CAAC,KAAK,SAAS,SAAS,OAAO,EAAE,EAAE,UAAU,EACjE,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,CACL,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,KAClB,UAAU,GAChB;KAAG,GAAG,IAAI,MAAM,KAAK,GAAG,UAAU;CAAG,CAGvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-issue.d.ts","sourceRoot":"","sources":["../../../../source/zod-error-formatter/format-issue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,SAAS,EAKZ,MAAM,aAAa,CAAC;AAsErB,wBAAgB,WAAW,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,CAoBpE"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { NonEmptyArray } from '../tuple/non-empty-array.ts';
|
|
2
|
+
export declare class FormattedZodError extends Error {
|
|
3
|
+
readonly issues: NonEmptyArray<string>;
|
|
4
|
+
constructor(issues: NonEmptyArray<string>, options?: ErrorOptions);
|
|
5
|
+
}
|
|
6
|
+
export declare function createFormattedZodError(issues: NonEmptyArray<string>): FormattedZodError;
|
|
7
|
+
//# sourceMappingURL=formatted-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatted-error.d.ts","sourceRoot":"","sources":["../../../../source/zod-error-formatter/formatted-error.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAUjE,qBAAa,iBAAkB,SAAQ,KAAK;IAExC,SAAgB,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;gBAE3B,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,EAAE,YAAY;CAO3E;AAED,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,iBAAiB,CAExF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { $ZodError, $ZodType, output as TypeOf } from 'zod/v4/core';
|
|
2
|
+
import { type FormattedZodError } from './formatted-error.ts';
|
|
3
|
+
export declare function formatZodError(error: Readonly<$ZodError>, input: unknown): FormattedZodError;
|
|
4
|
+
export declare function parse<Schema extends $ZodType>(schema: Schema, value: unknown): TypeOf<Schema>;
|
|
5
|
+
export type SafeParseSuccessResult<Output> = {
|
|
6
|
+
readonly success: true;
|
|
7
|
+
readonly data: Output;
|
|
8
|
+
};
|
|
9
|
+
export type SafeParseErrorResult = {
|
|
10
|
+
readonly success: false;
|
|
11
|
+
readonly error: FormattedZodError;
|
|
12
|
+
};
|
|
13
|
+
export type SafeParseResult<Output> = SafeParseErrorResult | SafeParseSuccessResult<Output>;
|
|
14
|
+
export declare function safeParse<Schema extends $ZodType>(schema: Schema, value: unknown): SafeParseResult<TypeOf<Schema>>;
|
|
15
|
+
export { FormattedZodError } from './formatted-error.ts';
|
|
16
|
+
//# sourceMappingURL=formatter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatter.d.ts","sourceRoot":"","sources":["../../../../source/zod-error-formatter/formatter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAGzE,OAAO,EAA2B,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEvF,wBAAgB,cAAc,CAAC,KAAK,EAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,OAAO,GAAG,iBAAiB,CAM5F;AAED,wBAAgB,KAAK,CAAC,MAAM,SAAS,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,CAQ7F;AAED,MAAM,MAAM,sBAAsB,CAAC,MAAM,IAAI;IACzC,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IAC/B,QAAQ,CAAC,OAAO,EAAE,KAAK,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,iBAAiB,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,eAAe,CAAC,MAAM,IAAI,oBAAoB,GAAG,sBAAsB,CAAC,MAAM,CAAC,CAAC;AAE5F,wBAAgB,SAAS,CAAC,MAAM,SAAS,QAAQ,EAC7C,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,OAAO,GACf,eAAe,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAQjC;AAED,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { $ZodIssueTooBig, $ZodIssueTooSmall } from 'zod/v4/core';
|
|
2
|
+
type BoundaryIssue = $ZodIssueTooBig | $ZodIssueTooSmall;
|
|
3
|
+
export type BoundaryPhrases = {
|
|
4
|
+
readonly collectionInclusive: string;
|
|
5
|
+
readonly collectionNonInclusive: string;
|
|
6
|
+
readonly numericInclusive: string;
|
|
7
|
+
readonly numericNonInclusive: string;
|
|
8
|
+
readonly dateInclusive: string;
|
|
9
|
+
readonly dateNonInclusive: string;
|
|
10
|
+
};
|
|
11
|
+
export declare function formatBoundaryIssue(issue: BoundaryIssue, boundary: bigint | number, phrases: BoundaryPhrases): string;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=boundary-issue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boundary-issue.d.ts","sourceRoot":"","sources":["../../../../../source/zod-error-formatter/issue-specific/boundary-issue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEtE,KAAK,aAAa,GAAG,eAAe,GAAG,iBAAiB,CAAC;AAEzD,MAAM,MAAM,eAAe,GAAG;IAC1B,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACrC,QAAQ,CAAC,sBAAsB,EAAE,MAAM,CAAC;IACxC,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACrC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;CACrC,CAAC;AAgCF,wBAAgB,mBAAmB,CAC/B,KAAK,EAAE,aAAa,EACpB,QAAQ,EAAE,MAAM,GAAG,MAAM,EACzB,OAAO,EAAE,eAAe,GACzB,MAAM,CAaR"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { $ZodIssue, $ZodIssueInvalidElement, $ZodIssueInvalidKey } from 'zod/v4/core';
|
|
2
|
+
type FormatChildIssue = (issue: $ZodIssue, input: unknown) => string;
|
|
3
|
+
export declare function formatInvalidKeyIssueMessage(issue: $ZodIssueInvalidKey, input: unknown, formatChildIssue: FormatChildIssue): string;
|
|
4
|
+
export declare function formatInvalidElementIssueMessage(issue: $ZodIssueInvalidElement, input: unknown, formatChildIssue: FormatChildIssue): string;
|
|
5
|
+
export {};
|
|
6
|
+
//# sourceMappingURL=invalid-collection-issue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalid-collection-issue.d.ts","sourceRoot":"","sources":["../../../../../source/zod-error-formatter/issue-specific/invalid-collection-issue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAG3F,KAAK,gBAAgB,GAAG,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,KAAK,MAAM,CAAC;AA6BrE,wBAAgB,4BAA4B,CACxC,KAAK,EAAE,mBAAmB,EAC1B,KAAK,EAAE,OAAO,EACd,gBAAgB,EAAE,gBAAgB,GACnC,MAAM,CAER;AAED,wBAAgB,gCAAgC,CAC5C,KAAK,EAAE,uBAAuB,EAC9B,KAAK,EAAE,OAAO,EACd,gBAAgB,EAAE,gBAAgB,GACnC,MAAM,CAER"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalid-string.d.ts","sourceRoot":"","sources":["../../../../../source/zod-error-formatter/issue-specific/invalid-string.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACR,4BAA4B,EAI5B,sBAAsB,EAEzB,MAAM,aAAa,CAAC;AA+CrB,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,4BAA4B,GAAG,sBAAsB,GAAG,MAAM,CAEpH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalid-type.d.ts","sourceRoot":"","sources":["../../../../../source/zod-error-formatter/issue-specific/invalid-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,oBAAoB,EAAQ,MAAM,aAAa,CAAC;AAG9D,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,oBAAoB,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,CAQjG"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { $ZodIssue, $ZodIssueInvalidValue, util } from 'zod/v4/core';
|
|
2
|
+
export type AlternativeBucket = readonly $ZodIssue[];
|
|
3
|
+
export type InvalidValuePathCandidate = {
|
|
4
|
+
readonly path: readonly PropertyKey[];
|
|
5
|
+
readonly issues: readonly $ZodIssueInvalidValue[];
|
|
6
|
+
};
|
|
7
|
+
export declare function isInvalidValueIssue(issue: $ZodIssue): issue is $ZodIssueInvalidValue;
|
|
8
|
+
export declare function isPrimitive(value: unknown): value is util.Primitive;
|
|
9
|
+
export declare function isSamePath(pathA: readonly PropertyKey[], pathB: readonly PropertyKey[]): boolean;
|
|
10
|
+
export declare function collectInvalidValueIssues(alternatives: readonly AlternativeBucket[]): readonly $ZodIssueInvalidValue[];
|
|
11
|
+
export declare function allValuesArePrimitive(issues: readonly $ZodIssueInvalidValue[]): boolean;
|
|
12
|
+
export declare function findInvalidValuePathCandidate(alternatives: readonly AlternativeBucket[]): InvalidValuePathCandidate | null;
|
|
13
|
+
export declare function selectRelevantAlternatives(alternatives: readonly AlternativeBucket[], inputAtUnion: unknown): readonly AlternativeBucket[];
|
|
14
|
+
//# sourceMappingURL=invalid-union-alternatives.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalid-union-alternatives.d.ts","sourceRoot":"","sources":["../../../../../source/zod-error-formatter/issue-specific/invalid-union-alternatives.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,SAAS,EACT,qBAAqB,EAErB,IAAI,EACP,MAAM,aAAa,CAAC;AAGrB,MAAM,MAAM,iBAAiB,GAAG,SAAS,SAAS,EAAE,CAAC;AAMrD,MAAM,MAAM,yBAAyB,GAAG;IACpC,QAAQ,CAAC,IAAI,EAAE,SAAS,WAAW,EAAE,CAAC;IACtC,QAAQ,CAAC,MAAM,EAAE,SAAS,qBAAqB,EAAE,CAAC;CACrD,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,KAAK,IAAI,qBAAqB,CAEpF;AAMD,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,IAAI,CAAC,SAAS,CAEnE;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,SAAS,WAAW,EAAE,EAAE,KAAK,EAAE,SAAS,WAAW,EAAE,GAAG,OAAO,CAQhG;AA2BD,wBAAgB,yBAAyB,CACrC,YAAY,EAAE,SAAS,iBAAiB,EAAE,GAC3C,SAAS,qBAAqB,EAAE,CAIlC;AAWD,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,SAAS,qBAAqB,EAAE,GAAG,OAAO,CAIvF;AAgDD,wBAAgB,6BAA6B,CACzC,YAAY,EAAE,SAAS,iBAAiB,EAAE,GAC3C,yBAAyB,GAAG,IAAI,CAWlC;AAiGD,wBAAgB,0BAA0B,CACtC,YAAY,EAAE,SAAS,iBAAiB,EAAE,EAC1C,YAAY,EAAE,OAAO,GACtB,SAAS,iBAAiB,EAAE,CAe9B"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type $ZodIssue, type $ZodIssueInvalidUnion } from 'zod/v4/core';
|
|
2
|
+
type FormatChildIssue = (issue: $ZodIssue, input: unknown) => string;
|
|
3
|
+
export declare function formatInvalidUnionIssueMessage(issue: $ZodIssueInvalidUnion, input: unknown, formatChildIssue: FormatChildIssue): string;
|
|
4
|
+
export {};
|
|
5
|
+
//# sourceMappingURL=invalid-union.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalid-union.d.ts","sourceRoot":"","sources":["../../../../../source/zod-error-formatter/issue-specific/invalid-union.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,SAAS,EAEd,KAAK,qBAAqB,EAG7B,MAAM,aAAa,CAAC;AAYrB,KAAK,gBAAgB,GAAG,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,KAAK,MAAM,CAAC;AA4ZrE,wBAAgB,8BAA8B,CAC1C,KAAK,EAAE,qBAAqB,EAC5B,KAAK,EAAE,OAAO,EACd,gBAAgB,EAAE,gBAAgB,GACnC,MAAM,CAQR"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalid-value.d.ts","sourceRoot":"","sources":["../../../../../source/zod-error-formatter/issue-specific/invalid-value.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,qBAAqB,EAAQ,MAAM,aAAa,CAAC;AAI/D,wBAAgB,8BAA8B,CAC1C,KAAK,EAAE,qBAAqB,EAC5B,KAAK,EAAE,OAAO,GACf,MAAM,CAUR"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { formatInvalidElementIssueMessage, formatInvalidKeyIssueMessage } from './invalid-collection-issue.ts';
|
|
2
|
+
import { formatInvalidStringIssueMessage } from './invalid-string.ts';
|
|
3
|
+
import { formatInvalidTypeIssueMessage } from './invalid-type.ts';
|
|
4
|
+
import { formatInvalidUnionIssueMessage } from './invalid-union.ts';
|
|
5
|
+
import { formatInvalidValueIssueMessage } from './invalid-value.ts';
|
|
6
|
+
import { formatNotMultipleOfIssueMessage } from './not-multiple-of.ts';
|
|
7
|
+
import { formatTooBigIssueMessage } from './too-big.ts';
|
|
8
|
+
import { formatTooSmallIssueMessage } from './too-small.ts';
|
|
9
|
+
import { formatUnrecognizedKeysIssueMessage } from './unrecognized-keys.ts';
|
|
10
|
+
export declare const issueSpecificFormatters: {
|
|
11
|
+
formatInvalidElementIssueMessage: typeof formatInvalidElementIssueMessage;
|
|
12
|
+
formatInvalidKeyIssueMessage: typeof formatInvalidKeyIssueMessage;
|
|
13
|
+
formatInvalidStringIssueMessage: typeof formatInvalidStringIssueMessage;
|
|
14
|
+
formatInvalidTypeIssueMessage: typeof formatInvalidTypeIssueMessage;
|
|
15
|
+
formatInvalidUnionIssueMessage: typeof formatInvalidUnionIssueMessage;
|
|
16
|
+
formatInvalidValueIssueMessage: typeof formatInvalidValueIssueMessage;
|
|
17
|
+
formatNotMultipleOfIssueMessage: typeof formatNotMultipleOfIssueMessage;
|
|
18
|
+
formatTooBigIssueMessage: typeof formatTooBigIssueMessage;
|
|
19
|
+
formatTooSmallIssueMessage: typeof formatTooSmallIssueMessage;
|
|
20
|
+
formatUnrecognizedKeysIssueMessage: typeof formatUnrecognizedKeysIssueMessage;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=issue-specific-formatters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"issue-specific-formatters.d.ts","sourceRoot":"","sources":["../../../../../source/zod-error-formatter/issue-specific/issue-specific-formatters.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,gCAAgC,EAChC,4BAA4B,EAC/B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,8BAA8B,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,EAAE,8BAA8B,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,EAAE,+BAA+B,EAAE,MAAM,sBAAsB,CAAC;AACvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,kCAAkC,EAAE,MAAM,wBAAwB,CAAC;AAE5E,eAAO,MAAM,uBAAuB;;;;;;;;;;;CAWnC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"not-multiple-of.d.ts","sourceRoot":"","sources":["../../../../../source/zod-error-formatter/issue-specific/not-multiple-of.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAE1D,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,sBAAsB,GAAG,MAAM,CAErF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"too-big.d.ts","sourceRoot":"","sources":["../../../../../source/zod-error-formatter/issue-specific/too-big.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAYnD,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,eAAe,GAAG,MAAM,CAEvE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"too-small.d.ts","sourceRoot":"","sources":["../../../../../source/zod-error-formatter/issue-specific/too-small.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAYrD,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,CAE3E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unrecognized-keys.d.ts","sourceRoot":"","sources":["../../../../../source/zod-error-formatter/issue-specific/unrecognized-keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAG7D,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,yBAAyB,GAAG,MAAM,CAI3F"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { $ZodIssueInvalidType, util } from 'zod/v4/core';
|
|
2
|
+
type ParsedType = {
|
|
3
|
+
readonly type: $ZodIssueInvalidType['expected'];
|
|
4
|
+
};
|
|
5
|
+
export type ListValue = ParsedType | util.Primitive;
|
|
6
|
+
export declare function isParsedType(value: ListValue): value is ParsedType;
|
|
7
|
+
export declare function formatList(values: readonly ListValue[], lastItemSeparator: string): string;
|
|
8
|
+
export declare function formatOneOfList(values: readonly ListValue[]): string;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../source/zod-error-formatter/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAgB9D,KAAK,UAAU,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,oBAAoB,CAAC,UAAU,CAAC,CAAC;CAAE,CAAC;AACvE,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC;AAEpD,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,GAAG,KAAK,IAAI,UAAU,CAElE;AAmBD,wBAAgB,UAAU,CAAC,MAAM,EAAE,SAAS,SAAS,EAAE,EAAE,iBAAiB,EAAE,MAAM,GAAG,MAAM,CAM1F;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,SAAS,SAAS,EAAE,GAAG,MAAM,CAQpE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type NonEmptyArray } from '../tuple/non-empty-array.ts';
|
|
2
|
+
type Path = NonEmptyArray<PropertyKey>;
|
|
3
|
+
export declare const isNonEmptyPath: (list: readonly PropertyKey[]) => list is readonly [PropertyKey, ...PropertyKey[]];
|
|
4
|
+
export declare function formatPath(path: Path): string;
|
|
5
|
+
type FoundValueResult = {
|
|
6
|
+
readonly found: true;
|
|
7
|
+
readonly value: unknown;
|
|
8
|
+
readonly pathItemKind?: undefined;
|
|
9
|
+
};
|
|
10
|
+
type ValueNotFoundResult = {
|
|
11
|
+
readonly found: false;
|
|
12
|
+
readonly value?: undefined;
|
|
13
|
+
readonly pathItemKind: 'key' | 'property';
|
|
14
|
+
};
|
|
15
|
+
type ValueResult = FoundValueResult | ValueNotFoundResult;
|
|
16
|
+
export declare function findValueByPath(value: unknown, path: readonly PropertyKey[]): ValueResult;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=path.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../../../source/zod-error-formatter/path.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAElF,KAAK,IAAI,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC;AAEvC,eAAO,MAAM,cAAc,oFAA+B,CAAC;AAE3D,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAW7C;AAED,KAAK,gBAAgB,GAAG;IACpB,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC;IACrB,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,CAAC;CACrC,CAAC;AAEF,KAAK,mBAAmB,GAAG;IACvB,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC;IAC3B,QAAQ,CAAC,YAAY,EAAE,KAAK,GAAG,UAAU,CAAC;CAC7C,CAAC;AAEF,KAAK,WAAW,GAAG,gBAAgB,GAAG,mBAAmB,CAAC;AAgC1D,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,WAAW,EAAE,GAAG,WAAW,CAiBzF"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import
|
|
1
|
+
import { type GraphqlClient } from '@schema-hub/zod-graphql-client/zod-graphql-client/client.js';
|
|
2
|
+
import type { OperationErrorDetails } from '@schema-hub/zod-graphql-client';
|
|
3
|
+
import { type GraphqlOverHttpOperationRequestPayload, type OperationOptions, type OperationType } from '@schema-hub/zod-graphql-client/zod-graphql-client/operation-payload.js';
|
|
4
|
+
import type { QuerySchema } from '../zod-graphql-query-builder/query-schema.ts';
|
|
3
5
|
export type RecordedOperation = {
|
|
4
6
|
readonly type: OperationType;
|
|
5
7
|
readonly schema: QuerySchema;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fake-client.d.ts","sourceRoot":"","sources":["../../../../source/zod-graphql-fake-client/fake-client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fake-client.d.ts","sourceRoot":"","sources":["../../../../source/zod-graphql-fake-client/fake-client.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,KAAK,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAEzF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AAEtF,OAAO,EAEH,KAAK,sCAAsC,EAE3C,KAAK,gBAAgB,EAErB,KAAK,aAAa,EAErB,MAAM,4CAA4C,CAAC;AAEpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8CAA8C,CAAC;AAEhF,MAA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E,CAAC;CAC3F,CAAC;AAEF,KAAK,eAAe,GAAG;IACnB,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC;IAC3B,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACrB,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,qBAAqB,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,iBAAiB,GAAG,eAAe,CAAC;AAE7D,KAAK,iBAAiB,GAAG;IACrB,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,UAAU,EAAE,CAAC;CAC5C,CAAC;AAuMF,wBAAgB,uBAAuB,CAAC,aAAa,GAAE,iBAAsB,GAAG,iBAAiB,CAahG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fake-client.js","sourceRoot":"","sources":["../../../../source/zod-graphql-fake-client/fake-client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"fake-client.js","sourceRoot":"","sources":["../../../../source/zod-graphql-fake-client/fake-client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAsB,MAAM,iCAAiC,CAAC;AAIzF,OAAO,EACH,qBAAqB,EAMrB,sBAAsB,EACzB,MAAM,4CAA4C,CAAC;AA+CpD,SAAS,sBAAsB,CAAC,OAA+B,EAAE,QAA2B;IACxF,MAAM,WAAW,GAAG,OAAO,CAAC,aAAa,KAAK,SAAS;QACnD,QAAQ,CAAC,aAAa,KAAK,OAAO,CAAC,aAAa,CAAC;IACrD,MAAM,WAAW,GAAG,OAAO,CAAC,IAAI,KAAK,SAAS,IAAI,QAAQ,CAAC,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC;IACjF,MAAM,aAAa,GAAG,OAAO,CAAC,MAAM,KAAK,SAAS,IAAI,QAAQ,CAAC,MAAM,KAAK,O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E,kBAAkB,EAAE,CAAC;IAC/D,MAAM,aAAa,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC;IAChD,MAAM,UAAU,GAAG,eAAe,CAAC,kBAAkB,CAAC,CAAC;IACvD,MAAM,OAAO,GAAG,qBAAqB,CAAC,kBAAkB,CAAC,CAAC;IAE1D,OAAO;QACH,GAAG,aAAa;QAChB,GAAG,UAAU;QACb,GAAG,OAAO;KACb,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { FragmentDefinition } from './fragment-definitions.ts';
|
|
2
|
+
import type { FieldSchema, FieldShape } from './query-schema.ts';
|
|
3
|
+
import type { FieldOptionsRegistry } from './type-name.ts';
|
|
4
|
+
export type BuildContext = {
|
|
5
|
+
counts: ReadonlyMap<FieldSchema, number>;
|
|
6
|
+
nameForSchema: Map<FieldSchema, string>;
|
|
7
|
+
counterPerTypeName: Map<string, number>;
|
|
8
|
+
definitions: Map<string, FragmentDefinition>;
|
|
9
|
+
};
|
|
10
|
+
export declare function createBuildContext(registry: FieldOptionsRegistry, rootShape: FieldShape): BuildContext;
|
|
11
|
+
//# sourceMappingURL=build-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-context.d.ts","sourceRoot":"","sources":["../../../../source/zod-graphql-query-builder/build-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAK3D,MAAM,MAAM,YAAY,GAAG;IACvB,MAAM,EAAE,WAAW,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IACzC,aAAa,EAAE,GAAG,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IACxC,kBAAkB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;CAChD,CAAC;AAGF,wBAAgB,kBAAkB,CAC9B,QAAQ,EAAE,oBAAoB,EAC9B,SAAS,EAAE,UAAU,GACtB,YAAY,CAOd"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { FieldSchema, QuerySchema } from './query-schema.ts';
|
|
2
|
+
import type { GraphqlFieldOptions } from './type-name.ts';
|
|
3
|
+
import { type VariableDefinitions } from './variable-definition.ts';
|
|
4
|
+
export type OperationOptions = {
|
|
5
|
+
readonly operationName?: string | undefined;
|
|
6
|
+
readonly variableDefinitions?: VariableDefinitions | undefined;
|
|
7
|
+
};
|
|
8
|
+
export type QueryBuilder = {
|
|
9
|
+
registerFieldOptions: <Schema extends FieldSchema>(schema: Schema, options: GraphqlFieldOptions) => Schema;
|
|
10
|
+
buildQuery: (schema: QuerySchema, options?: OperationOptions) => string;
|
|
11
|
+
buildMutation: (schema: QuerySchema, options?: OperationOptions) => string;
|
|
12
|
+
};
|
|
13
|
+
export declare function createQueryBuilder(): QueryBuilder;
|
|
14
|
+
//# sourceMappingURL=builder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../../../../source/zod-graphql-query-builder/builder.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGlE,OAAO,KAAK,EAAwB,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAGhF,OAAO,EAAgC,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAElG,MAAM,MAAM,gBAAgB,GAAG;IAC3B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5C,QAAQ,CAAC,mBAAmB,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC;CAClE,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACvB,oBAAoB,EAAE,CAAC,MAAM,SAAS,WAAW,EAC7C,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,mBAAmB,KAC3B,MAAM,CAAC;IACZ,UAAU,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,gBAAgB,KAAK,MAAM,CAAC;IACxE,aAAa,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,gBAAgB,KAAK,MAAM,CAAC;CAC9E,CAAC;AA4BF,wBAAgB,kBAAkB,IAAI,YAAY,CAyBjD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { $ZodLazy, $ZodType } from 'zod/v4/core';
|
|
2
|
+
declare const customScalarSymbol: unique symbol;
|
|
3
|
+
export type CustomScalarSchema<Schema extends $ZodType> = $ZodLazy<Schema> & {
|
|
4
|
+
readonly [customScalarSymbol]: true;
|
|
5
|
+
};
|
|
6
|
+
export declare function isCustomScalarSchema(schema: $ZodType): schema is CustomScalarSchema<$ZodType>;
|
|
7
|
+
export declare function createCustomScalarSchema<Schema extends $ZodType>(schema: Schema): CustomScalarSchema<Schema>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=custom-scalar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-scalar.d.ts","sourceRoot":"","sources":["../../../../source/zod-graphql-query-builder/custom-scalar.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEtD,QAAA,MAAM,kBAAkB,EAAE,OAAO,MAAgC,CAAC;AAGlE,MAAM,MAAM,kBAAkB,CAAC,MAAM,SAAS,QAAQ,IAAI,QAAQ,CAAC,MAAM,CAAC,GAAG;IACzE,QAAQ,CAAC,CAAC,kBAAkB,CAAC,EAAE,IAAI,CAAC;CACvC,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,QAAQ,GAAG,MAAM,IAAI,kBAAkB,CAAC,QAAQ,CAAC,CAE7F;AAED,wBAAgB,wBAAwB,CAAC,MAAM,SAAS,QAAQ,EAC5D,MAAM,EAAE,MAAM,GACf,kBAAkB,CAAC,MAAM,CAAC,CAO5B"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const graphqlFieldOptions: <Schema extends import("./query-schema.ts").FieldSchema>(schema: Schema, options: import("./type-name.ts").GraphqlFieldOptions) => Schema;
|
|
2
|
+
export declare const buildGraphqlQuery: (schema: import("./query-schema.ts").QuerySchema, options?: import("./builder.ts").OperationOptions) => string;
|
|
3
|
+
export declare const buildGraphqlMutation: (schema: import("./query-schema.ts").QuerySchema, options?: import("./builder.ts").OperationOptions) => string;
|
|
4
|
+
//# sourceMappingURL=default-query-builder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-query-builder.d.ts","sourceRoot":"","sources":["../../../../source/zod-graphql-query-builder/default-query-builder.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB,2IAA2C,CAAC;AAC5E,eAAO,MAAM,iBAAiB,gHAAiC,CAAC;AAChE,eAAO,MAAM,oBAAoB,gHAAoC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type FragmentDefinition = {
|
|
2
|
+
readonly typeName: string;
|
|
3
|
+
readonly body: string;
|
|
4
|
+
readonly referencedVariables: ReadonlySet<string>;
|
|
5
|
+
};
|
|
6
|
+
export declare function formatFragmentDefinitions(definitions: ReadonlyMap<string, FragmentDefinition>): string;
|
|
7
|
+
//# sourceMappingURL=fragment-definitions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fragment-definitions.d.ts","sourceRoot":"","sources":["../../../../source/zod-graphql-query-builder/fragment-definitions.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAC7B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,mBAAmB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACrD,CAAC;AAEF,wBAAgB,yBAAyB,CAAC,WAAW,EAAE,WAAW,CAAC,MAAM,EAAE,kBAAkB,CAAC,GAAG,MAAM,CAatG"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { type $strict, type $ZodArrayDef, type $ZodBoolean, type $ZodDiscriminatedUnionDef, type $ZodLazyDef, type $ZodLiteral, type $ZodNull, type $ZodNullableDef, type $ZodNumber, type $ZodObjectConfig, type $ZodObjectDef, type $ZodReadonlyDef, type $ZodShape, type $ZodString, type $ZodTransform, type $ZodTupleDef, type $ZodType, type $ZodTypeInternals, type $ZodUndefined, type $ZodUnionDef, type util as zodUtil } from 'zod/v4/core';
|
|
2
|
+
import { type CustomScalarSchema } from './custom-scalar.ts';
|
|
3
|
+
interface ZodLazyGh4611IssueWorkaround<T extends $ZodType = $ZodType> extends $ZodType {
|
|
4
|
+
readonly _zod: $ZodTypeInternals & {
|
|
5
|
+
readonly def: $ZodLazyDef<T>;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
interface ZodNullableGh4611IssueWorkaround<T extends $ZodType = $ZodType> extends $ZodType {
|
|
9
|
+
readonly _zod: $ZodTypeInternals & {
|
|
10
|
+
readonly def: $ZodNullableDef<T>;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
interface ZodReadonlyGh4611IssueWorkaround<T extends $ZodType = $ZodType> extends $ZodType {
|
|
14
|
+
readonly _zod: $ZodTypeInternals & {
|
|
15
|
+
readonly def: $ZodReadonlyDef<T>;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
interface ZodPipeGh4611IssueWorkaround<A extends $ZodType = $ZodType, B extends $ZodType = $ZodType> extends $ZodType {
|
|
19
|
+
readonly _zod: $ZodTypeInternals & {
|
|
20
|
+
readonly def: {
|
|
21
|
+
readonly type: 'pipe';
|
|
22
|
+
readonly in: A;
|
|
23
|
+
readonly out: B;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
interface ZodObjectGh6015IssueWorkaround<Shape extends $ZodShape = $ZodShape, Config extends $ZodObjectConfig = $ZodObjectConfig> extends $ZodType {
|
|
28
|
+
readonly _zod: $ZodTypeInternals & {
|
|
29
|
+
readonly def: $ZodObjectDef<Shape>;
|
|
30
|
+
readonly config: Config;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
interface ZodArrayGh6015IssueWorkaround<T extends $ZodType = $ZodType> extends $ZodType {
|
|
34
|
+
readonly _zod: $ZodTypeInternals & {
|
|
35
|
+
readonly def: $ZodArrayDef<T>;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
interface ZodUnionGh6015IssueWorkaround<T extends readonly $ZodType[] = readonly $ZodType[]> extends $ZodType {
|
|
39
|
+
readonly _zod: $ZodTypeInternals & {
|
|
40
|
+
readonly def: $ZodUnionDef<T>;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
interface ZodDiscriminatedUnionGh6015IssueWorkaround<Options extends readonly $ZodType[] = readonly $ZodType[]> extends $ZodType {
|
|
44
|
+
readonly _zod: $ZodTypeInternals & {
|
|
45
|
+
readonly def: $ZodDiscriminatedUnionDef<Options>;
|
|
46
|
+
readonly propValues: zodUtil.PropValues;
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
interface ZodTupleGh6015IssueWorkaround<T extends zodUtil.TupleItems = readonly $ZodType[], Rest extends $ZodType | null = $ZodType | null> extends $ZodType {
|
|
50
|
+
readonly _zod: $ZodTypeInternals & {
|
|
51
|
+
readonly def: $ZodTupleDef<T, Rest>;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export interface StrictObjectSchema<Shape extends $ZodShape> extends ZodObjectGh6015IssueWorkaround<Shape, $strict> {
|
|
55
|
+
}
|
|
56
|
+
export declare function isStrictObjectSchema(schema: unknown): schema is StrictObjectSchema<FieldShape>;
|
|
57
|
+
type LiteralSchema = $ZodLiteral<boolean> | $ZodLiteral<null> | $ZodLiteral<number> | $ZodLiteral<string>;
|
|
58
|
+
type PrimitiveSchema = $ZodBoolean | $ZodNull | $ZodNumber | $ZodString | $ZodUndefined | LiteralSchema;
|
|
59
|
+
export type FragmentTypeName = boolean | number | string | null;
|
|
60
|
+
export interface FragmentUnionOptionSchema extends StrictObjectSchema<FieldShape & {
|
|
61
|
+
readonly __typename: PrimitiveSchema;
|
|
62
|
+
}> {
|
|
63
|
+
}
|
|
64
|
+
interface FieldTuple extends ZodTupleGh6015IssueWorkaround<readonly [FieldSchema, ...(readonly FieldSchema[])]> {
|
|
65
|
+
}
|
|
66
|
+
export interface FieldArray extends ZodArrayGh6015IssueWorkaround<FieldSchema> {
|
|
67
|
+
}
|
|
68
|
+
interface FieldDiscriminatedUnion extends ZodDiscriminatedUnionGh6015IssueWorkaround<FragmentUnionOptionSchema[]> {
|
|
69
|
+
}
|
|
70
|
+
interface FieldUnion extends ZodUnionGh6015IssueWorkaround<readonly [PrimitiveSchema, ...(readonly PrimitiveSchema[])]> {
|
|
71
|
+
}
|
|
72
|
+
export type NonWrappedFieldSchema = CustomScalarSchema<$ZodType> | FieldArray | FieldDiscriminatedUnion | FieldTuple | FieldUnion | PrimitiveSchema | StrictObjectSchema<FieldShape>;
|
|
73
|
+
interface FieldLazy extends ZodLazyGh4611IssueWorkaround<FieldSchema> {
|
|
74
|
+
}
|
|
75
|
+
interface FieldNullable extends ZodNullableGh4611IssueWorkaround<FieldSchema> {
|
|
76
|
+
}
|
|
77
|
+
interface FieldReadonly extends ZodReadonlyGh4611IssueWorkaround<FieldSchema> {
|
|
78
|
+
}
|
|
79
|
+
interface FieldPipe extends ZodPipeGh4611IssueWorkaround<FieldSchema, $ZodTransform> {
|
|
80
|
+
}
|
|
81
|
+
export type WrappedFieldSchema = FieldLazy | FieldNullable | FieldPipe | FieldReadonly;
|
|
82
|
+
export type FieldSchema = NonWrappedFieldSchema | WrappedFieldSchema;
|
|
83
|
+
type UnwrappedChainResult = {
|
|
84
|
+
unwrappedSchema: NonWrappedFieldSchema;
|
|
85
|
+
wrapperElements: readonly WrappedFieldSchema[];
|
|
86
|
+
};
|
|
87
|
+
export declare function unwrapFieldSchemaChain(parent: FieldSchema): UnwrappedChainResult;
|
|
88
|
+
export declare function unwrapFieldSchema(parent: FieldSchema): NonWrappedFieldSchema;
|
|
89
|
+
export interface FieldShape {
|
|
90
|
+
[key: string]: FieldSchema;
|
|
91
|
+
}
|
|
92
|
+
export type QuerySchema = StrictObjectSchema<FieldShape> | ZodReadonlyGh4611IssueWorkaround<StrictObjectSchema<FieldShape>>;
|
|
93
|
+
type FieldSchemaTupleItems = readonly [FieldSchema, ...FieldSchema[]];
|
|
94
|
+
export type FieldSchemaTuple = ZodTupleGh6015IssueWorkaround<FieldSchemaTupleItems, FieldSchema | null>;
|
|
95
|
+
export type ObjectOrListSchema = FieldArray | FieldSchemaTuple | StrictObjectSchema<FieldShape>;
|
|
96
|
+
export declare function isFieldArraySchema(schema: FieldSchema): schema is FieldArray;
|
|
97
|
+
export declare function isFieldTupleSchema(schema: FieldSchema): schema is FieldSchemaTuple;
|
|
98
|
+
export declare function isObjectOrListSchema(schema: FieldSchema): schema is ObjectOrListSchema;
|
|
99
|
+
export type FragmentsSchema = ZodDiscriminatedUnionGh6015IssueWorkaround<FragmentUnionOptionSchema[]>;
|
|
100
|
+
export declare function isFragmentsSchema(schema: FieldSchema): schema is FragmentsSchema;
|
|
101
|
+
export type UnionOrListSchema = FieldArray | FieldSchemaTuple | FragmentsSchema;
|
|
102
|
+
export declare function isUnionOrListSchema(schema: FieldSchema): schema is UnionOrListSchema;
|
|
103
|
+
export {};
|
|
104
|
+
//# sourceMappingURL=query-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-schema.d.ts","sourceRoot":"","sources":["../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6BAA6B,CAAC,qBAAqB,EAAE,WAAW,GAAG,IAAI,CAAC,CAAC;AAExG,MAAM,MAAM,kBAAkB,GACxB,UAAU,GACV,gBAAgB,GAChB,kBAAkB,CAAC,UAAU,CAAC,CAAC;AAErC,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,IAAI,UAAU,CAE5E;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,IAAI,gBAAgB,CAElF;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,IAAI,kBAAkB,CAEtF;AAED,MAAM,MAAM,eAAe,GAAG,0CAA0C,CAAC,yBAAyB,EAAE,CAAC,CAAC;AAEtG,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,IAAI,eAAe,CAEhF;AAED,MAAM,MAAM,iBAAiB,GACvB,UAAU,GACV,gBAAgB,GAChB,eAAe,CAAC;AAEtB,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,IAAI,iBAAiB,CAEpF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-shape.d.ts","sourceRoot":"","sources":["../../../../source/zod-graphql-query-builder/root-shape.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEjE,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,WAAW,GAAG,UAAU,CAKhE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BuildContext } from './build-context.ts';
|
|
2
|
+
import { type FieldSchema, type FieldShape } from './query-schema.ts';
|
|
3
|
+
import { type FieldOptionsRegistry } from './type-name.ts';
|
|
4
|
+
export type SerializedRootShape = {
|
|
5
|
+
readonly bodyEntries: readonly string[];
|
|
6
|
+
readonly referencedVariables: ReadonlySet<string>;
|
|
7
|
+
};
|
|
8
|
+
export declare function collectSchemaReferences(registry: FieldOptionsRegistry, rootShape: FieldShape): Map<FieldSchema, number>;
|
|
9
|
+
export declare function serializeRootShape(registry: FieldOptionsRegistry, rootShape: FieldShape, context: BuildContext): SerializedRootShape;
|
|
10
|
+
//# sourceMappingURL=serializer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serializer.d.ts","sourceRoot":"","sources":["../../../../source/zod-graphql-query-builder/serializer.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,OAAO,EAEH,KAAK,WAAW,EAEhB,KAAK,UAAU,EAclB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACH,KAAK,oBAAoB,EAG5B,MAAM,gBAAgB,CAAC;AAKxB,MAAM,MAAM,mBAAmB,GAAG;IAC9B,QAAQ,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IACxC,QAAQ,CAAC,mBAAmB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACrD,CAAC;AAgJF,wBAAgB,uBAAuB,CACnC,QAAQ,EAAE,oBAAoB,EAC9B,SAAS,EAAE,UAAU,GACtB,GAAG,CAAC,WAAW,EAAE,MAAM,CAAC,CAiC1B;AAoQD,wBAAgB,kBAAkB,CAC9B,QAAQ,EAAE,oBAAoB,EAC9B,SAAS,EAAE,UAAU,EACrB,OAAO,EAAE,YAAY,GACtB,mBAAmB,CAcrB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type FieldSchema, type FieldShape, type StrictObjectSchema } from './query-schema.ts';
|
|
2
|
+
import type { GraphqlValue } from './values/value.ts';
|
|
3
|
+
export type GraphqlFieldOptions = {
|
|
4
|
+
readonly aliasFor?: string;
|
|
5
|
+
readonly parameters?: Readonly<Record<string, GraphqlValue>>;
|
|
6
|
+
readonly typeName?: string;
|
|
7
|
+
};
|
|
8
|
+
export type FieldOptionsRegistry = WeakMap<FieldSchema, GraphqlFieldOptions>;
|
|
9
|
+
export declare function resolveTypeName(registry: FieldOptionsRegistry, schema: StrictObjectSchema<FieldShape>): string | null;
|
|
10
|
+
//# sourceMappingURL=type-name.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type-name.d.ts","sourceRoot":"","sources":["../../../../source/zod-graphql-query-builder/type-name.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,kBAAkB,EAE1B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,MAAM,mBAAmB,GAAG;IAC9B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,UAAU,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC;IAC7D,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,WAAW,EAAE,mBAAmB,CAAC,CAAC;AAuC7E,wBAAgB,eAAe,CAC3B,QAAQ,EAAE,oBAAoB,EAC9B,MAAM,EAAE,kBAAkB,CAAC,UAAU,CAAC,GACvC,MAAM,GAAG,IAAI,CAKf"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type GraphqlEnumValue = {
|
|
2
|
+
readonly enumValue: string;
|
|
3
|
+
readonly tag: symbol;
|
|
4
|
+
};
|
|
5
|
+
export declare function isEnumValue(value: unknown): value is GraphqlEnumValue;
|
|
6
|
+
export declare function enumValue(value: string): GraphqlEnumValue;
|
|
7
|
+
//# sourceMappingURL=enum.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enum.d.ts","sourceRoot":"","sources":["../../../../../source/zod-graphql-query-builder/values/enum.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,gBAAgB,GAAG;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACxB,CAAC;AAIF,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,gBAAgB,CAErE;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,gBAAgB,CASzD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"name.d.ts","sourceRoot":"","sources":["../../../../../source/zod-graphql-query-builder/values/name.ts"],"names":[],"mappings":"AAEA,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEzD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parameter-list.d.ts","sourceRoot":"","sources":["../../../../../source/zod-graphql-query-builder/values/parameter-list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,sBAAsB,EAAyB,MAAM,YAAY,CAAC;AAGnG,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,GAAG,sBAAsB,CAwBjH"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare function hasProperty<Value extends Record<string, unknown>, Property extends string>(value: Value, property: Property): value is Record<Property, unknown> & Value;
|
|
2
|
+
export declare function isRecord(value: unknown): value is Record<string, unknown>;
|
|
3
|
+
//# sourceMappingURL=record.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../../../../source/zod-graphql-query-builder/values/record.ts"],"names":[],"mappings":"AAAA,wBAAgB,WAAW,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,SAAS,MAAM,EACtF,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,GACnB,KAAK,IAAI,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,GAAG,KAAK,CAE5C;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEzE"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type GraphqlEnumValue } from './enum.ts';
|
|
2
|
+
import { type GraphqlVariablePlaceholder } from './variable-placeholder.ts';
|
|
3
|
+
type GraphqlObjectValue = {
|
|
4
|
+
readonly [Key: string]: GraphqlValue;
|
|
5
|
+
};
|
|
6
|
+
type GraphqlPrimitiveValue = boolean | number | string | null;
|
|
7
|
+
export type GraphqlValue = GraphqlEnumValue | GraphqlObjectValue | GraphqlPrimitiveValue | GraphqlVariablePlaceholder | readonly GraphqlValue[];
|
|
8
|
+
export type NormalizedGraphqlValue = {
|
|
9
|
+
readonly serializedValue: string;
|
|
10
|
+
readonly referencedVariables: ReadonlySet<string>;
|
|
11
|
+
};
|
|
12
|
+
export declare function normalizeGraphqlValue(value: GraphqlValue): NormalizedGraphqlValue;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=value.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"value.d.ts","sourceRoot":"","sources":["../../../../../source/zod-graphql-query-builder/values/value.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAe,MAAM,WAAW,CAAC;AAG/D,OAAO,EAAE,KAAK,0BAA0B,EAAyB,MAAM,2BAA2B,CAAC;AAGnG,KAAK,kBAAkB,GAAG;IAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,YAAY,CAAC;CAAE,CAAC;AAMpE,KAAK,qBAAqB,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;AAO9D,MAAM,MAAM,YAAY,GAClB,gBAAgB,GAChB,kBAAkB,GAClB,qBAAqB,GACrB,0BAA0B,GAC1B,SAAS,YAAY,EAAE,CAAC;AAE9B,MAAM,MAAM,sBAAsB,GAAG;IACjC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,mBAAmB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACrD,CAAC;AAgDF,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,YAAY,GAAG,sBAAsB,CA0BjF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type GraphqlVariablePlaceholder = {
|
|
2
|
+
readonly variableName: string;
|
|
3
|
+
readonly tag: symbol;
|
|
4
|
+
};
|
|
5
|
+
export declare function isVariablePlaceholder(value: unknown): value is GraphqlVariablePlaceholder;
|
|
6
|
+
export declare function isValidVariableIdentifier(value: string): boolean;
|
|
7
|
+
export declare function variablePlaceholder(variableName: string): GraphqlVariablePlaceholder;
|
|
8
|
+
//# sourceMappingURL=variable-placeholder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variable-placeholder.d.ts","sourceRoot":"","sources":["../../../../../source/zod-graphql-query-builder/values/variable-placeholder.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,0BAA0B,GAAG;IACrC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACxB,CAAC;AAIF,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,0BAA0B,CAEzF;AAID,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEhE;AAED,wBAAgB,mBAAmB,CAAC,YAAY,EAAE,MAAM,GAAG,0BAA0B,CASpF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variable-set.d.ts","sourceRoot":"","sources":["../../../../../source/zod-graphql-query-builder/values/variable-set.ts"],"names":[],"mappings":"AAAA,wBAAgB,cAAc,CAAC,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC,CAEnG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variable-correlations.d.ts","sourceRoot":"","sources":["../../../../source/zod-graphql-query-builder/variable-correlations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEpE,wBAAgB,+BAA+B,CAC3C,mBAAmB,EAAE,mBAAmB,EACxC,mBAAmB,EAAE,WAAW,CAAC,MAAM,CAAC,GACzC,IAAI,CAcN"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variable-definition.d.ts","sourceRoot":"","sources":["../../../../source/zod-graphql-query-builder/variable-definition.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAoBnE,wBAAgB,4BAA4B,CAAC,WAAW,EAAE,mBAAmB,GAAG,MAAM,CAcrF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variable-type.d.ts","sourceRoot":"","sources":["../../../../source/zod-graphql-query-builder/variable-type.ts"],"names":[],"mappings":"AAEA,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAOxD"}
|