@mintlify/validation 0.1.796 → 0.1.797
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/dist/index.js +2 -0
- package/dist/mint-config/schemas/v2/index.d.ts +520 -0
- package/dist/mint-config/schemas/v2/properties/navigation/anchors.d.ts +6 -0
- package/dist/mint-config/schemas/v2/properties/navigation/anchors.js +2 -1
- package/dist/mint-config/schemas/v2/properties/navigation/dropdown.d.ts +6 -0
- package/dist/mint-config/schemas/v2/properties/navigation/dropdown.js +2 -1
- package/dist/mint-config/schemas/v2/properties/navigation/groups.d.ts +7 -0
- package/dist/mint-config/schemas/v2/properties/navigation/groups.js +2 -1
- package/dist/mint-config/schemas/v2/properties/navigation/index.d.ts +40 -0
- package/dist/mint-config/schemas/v2/properties/navigation/index.js +2 -1
- package/dist/mint-config/schemas/v2/properties/navigation/languages.d.ts +6 -0
- package/dist/mint-config/schemas/v2/properties/navigation/languages.js +2 -1
- package/dist/mint-config/schemas/v2/properties/navigation/menu.d.ts +6 -0
- package/dist/mint-config/schemas/v2/properties/navigation/menu.js +2 -1
- package/dist/mint-config/schemas/v2/properties/navigation/pages.d.ts +4 -0
- package/dist/mint-config/schemas/v2/properties/navigation/products.d.ts +6 -0
- package/dist/mint-config/schemas/v2/properties/navigation/products.js +2 -1
- package/dist/mint-config/schemas/v2/properties/navigation/tabs.d.ts +3 -0
- package/dist/mint-config/schemas/v2/properties/navigation/tabs.js +25 -2
- package/dist/mint-config/schemas/v2/properties/navigation/version.d.ts +6 -0
- package/dist/mint-config/schemas/v2/properties/navigation/version.js +2 -1
- package/dist/mint-config/schemas/v2/properties/reusable/graphql.d.ts +24 -0
- package/dist/mint-config/schemas/v2/properties/reusable/graphql.js +35 -0
- package/dist/mint-config/schemas/v2/properties/reusable/index.d.ts +1 -0
- package/dist/mint-config/schemas/v2/properties/reusable/index.js +1 -0
- package/dist/mint-config/schemas/v2/themes/almond.d.ts +52 -0
- package/dist/mint-config/schemas/v2/themes/aspen.d.ts +52 -0
- package/dist/mint-config/schemas/v2/themes/linden.d.ts +52 -0
- package/dist/mint-config/schemas/v2/themes/luma.d.ts +52 -0
- package/dist/mint-config/schemas/v2/themes/maple.d.ts +52 -0
- package/dist/mint-config/schemas/v2/themes/mint.d.ts +52 -0
- package/dist/mint-config/schemas/v2/themes/palm.d.ts +52 -0
- package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +32 -0
- package/dist/mint-config/schemas/v2/themes/sequoia.d.ts +52 -0
- package/dist/mint-config/schemas/v2/themes/willow.d.ts +52 -0
- package/dist/mint-config/validateConfig.d.ts +180 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/serverStaticProps.d.ts +3 -1
- package/package.json +3 -3
|
@@ -3,6 +3,7 @@ import { AnchorNavigation } from './divisionNav.js';
|
|
|
3
3
|
export declare const baseAnchorSchema: z.ZodObject<{
|
|
4
4
|
directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
|
|
5
5
|
anchor: z.ZodString;
|
|
6
|
+
graphql: z.ZodOptional<z.ZodNever>;
|
|
6
7
|
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
7
8
|
style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
|
|
8
9
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -40,6 +41,7 @@ export declare const baseAnchorSchema: z.ZodObject<{
|
|
|
40
41
|
} | undefined;
|
|
41
42
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
42
43
|
hidden?: boolean | undefined;
|
|
44
|
+
graphql?: undefined;
|
|
43
45
|
}, {
|
|
44
46
|
anchor: string;
|
|
45
47
|
icon?: string | {
|
|
@@ -53,11 +55,13 @@ export declare const baseAnchorSchema: z.ZodObject<{
|
|
|
53
55
|
} | undefined;
|
|
54
56
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
55
57
|
hidden?: boolean | undefined;
|
|
58
|
+
graphql?: undefined;
|
|
56
59
|
}>;
|
|
57
60
|
export type BaseAnchorSchema = z.infer<typeof baseAnchorSchema>;
|
|
58
61
|
export declare const nonRecursiveAnchorSchema: z.ZodObject<{
|
|
59
62
|
directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
|
|
60
63
|
anchor: z.ZodString;
|
|
64
|
+
graphql: z.ZodOptional<z.ZodNever>;
|
|
61
65
|
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
62
66
|
style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
|
|
63
67
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -98,6 +102,7 @@ export declare const nonRecursiveAnchorSchema: z.ZodObject<{
|
|
|
98
102
|
} | undefined;
|
|
99
103
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
100
104
|
hidden?: boolean | undefined;
|
|
105
|
+
graphql?: undefined;
|
|
101
106
|
}, {
|
|
102
107
|
href: string;
|
|
103
108
|
anchor: string;
|
|
@@ -112,6 +117,7 @@ export declare const nonRecursiveAnchorSchema: z.ZodObject<{
|
|
|
112
117
|
} | undefined;
|
|
113
118
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
114
119
|
hidden?: boolean | undefined;
|
|
120
|
+
graphql?: undefined;
|
|
115
121
|
}>;
|
|
116
122
|
export declare const anchorSchema: z.ZodType<AnchorNavigation<'default'>>;
|
|
117
123
|
export declare const decoratedAnchorSchema: z.ZodType<AnchorNavigation<'decorated'>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { asyncApiSchema } from '../reusable/asyncapi.js';
|
|
3
3
|
import { colorSchemaWithOptionalLightAndDark } from '../reusable/color.js';
|
|
4
|
+
import { graphqlNotSupportedSchema } from '../reusable/graphql.js';
|
|
4
5
|
import { hiddenSchema } from '../reusable/hidden.js';
|
|
5
6
|
import { hrefSchema } from '../reusable/href.js';
|
|
6
7
|
import { iconSchema } from '../reusable/icon.js';
|
|
@@ -13,7 +14,7 @@ import { decoratedPagesSchema, pagesSchema } from './pages.js';
|
|
|
13
14
|
import { decoratedProductsSchema, productsSchema } from './products.js';
|
|
14
15
|
import { decoratedTabsSchema, tabsSchema } from './tabs.js';
|
|
15
16
|
import { decoratedVersionsSchema, versionsSchema } from './version.js';
|
|
16
|
-
export const baseAnchorSchema = z.object(Object.assign({ anchor: z.string().nonempty().describe('The name of the anchor'), icon: iconSchema.optional(), color: colorSchemaWithOptionalLightAndDark.optional(), hidden: hiddenSchema.optional() }, directoryField));
|
|
17
|
+
export const baseAnchorSchema = z.object(Object.assign({ anchor: z.string().nonempty().describe('The name of the anchor'), graphql: graphqlNotSupportedSchema, icon: iconSchema.optional(), color: colorSchemaWithOptionalLightAndDark.optional(), hidden: hiddenSchema.optional() }, directoryField));
|
|
17
18
|
export const nonRecursiveAnchorSchema = baseAnchorSchema.extend({ href: hrefSchema });
|
|
18
19
|
export const anchorSchema = z.union([
|
|
19
20
|
baseAnchorSchema.extend({
|
|
@@ -3,6 +3,7 @@ import { DropdownNavigation } from './divisionNav.js';
|
|
|
3
3
|
export declare const baseDropdownSchema: z.ZodObject<{
|
|
4
4
|
directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
|
|
5
5
|
dropdown: z.ZodString;
|
|
6
|
+
graphql: z.ZodOptional<z.ZodNever>;
|
|
6
7
|
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
7
8
|
style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
|
|
8
9
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -42,6 +43,7 @@ export declare const baseDropdownSchema: z.ZodObject<{
|
|
|
42
43
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
43
44
|
description?: string | undefined;
|
|
44
45
|
hidden?: boolean | undefined;
|
|
46
|
+
graphql?: undefined;
|
|
45
47
|
}, {
|
|
46
48
|
dropdown: string;
|
|
47
49
|
icon?: string | {
|
|
@@ -56,11 +58,13 @@ export declare const baseDropdownSchema: z.ZodObject<{
|
|
|
56
58
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
57
59
|
description?: string | undefined;
|
|
58
60
|
hidden?: boolean | undefined;
|
|
61
|
+
graphql?: undefined;
|
|
59
62
|
}>;
|
|
60
63
|
export type BaseDropdownSchema = z.infer<typeof baseDropdownSchema>;
|
|
61
64
|
export declare const nonRecursiveDropdownSchema: z.ZodObject<{
|
|
62
65
|
directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
|
|
63
66
|
dropdown: z.ZodString;
|
|
67
|
+
graphql: z.ZodOptional<z.ZodNever>;
|
|
64
68
|
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
65
69
|
style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
|
|
66
70
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -103,6 +107,7 @@ export declare const nonRecursiveDropdownSchema: z.ZodObject<{
|
|
|
103
107
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
104
108
|
description?: string | undefined;
|
|
105
109
|
hidden?: boolean | undefined;
|
|
110
|
+
graphql?: undefined;
|
|
106
111
|
}, {
|
|
107
112
|
href: string;
|
|
108
113
|
dropdown: string;
|
|
@@ -118,6 +123,7 @@ export declare const nonRecursiveDropdownSchema: z.ZodObject<{
|
|
|
118
123
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
119
124
|
description?: string | undefined;
|
|
120
125
|
hidden?: boolean | undefined;
|
|
126
|
+
graphql?: undefined;
|
|
121
127
|
}>;
|
|
122
128
|
export declare const dropdownSchema: z.ZodType<DropdownNavigation<'default'>>;
|
|
123
129
|
export declare const decoratedDropdownSchema: z.ZodType<DropdownNavigation<'decorated'>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { asyncApiSchema } from '../reusable/asyncapi.js';
|
|
3
3
|
import { colorSchemaWithOptionalLightAndDark } from '../reusable/color.js';
|
|
4
|
+
import { graphqlNotSupportedSchema } from '../reusable/graphql.js';
|
|
4
5
|
import { hiddenSchema } from '../reusable/hidden.js';
|
|
5
6
|
import { hrefSchema } from '../reusable/href.js';
|
|
6
7
|
import { iconSchema } from '../reusable/icon.js';
|
|
@@ -13,7 +14,7 @@ import { decoratedPagesSchema, pagesSchema } from './pages.js';
|
|
|
13
14
|
import { decoratedProductsSchema, productsSchema } from './products.js';
|
|
14
15
|
import { decoratedTabsSchema, tabsSchema } from './tabs.js';
|
|
15
16
|
import { decoratedVersionsSchema, versionsSchema } from './version.js';
|
|
16
|
-
export const baseDropdownSchema = z.object(Object.assign({ dropdown: z.string().nonempty().describe('The name of the dropdown'), icon: iconSchema.optional(), color: colorSchemaWithOptionalLightAndDark.optional(), description: z.string().optional().describe('The description of the dropdown'), hidden: hiddenSchema.optional() }, directoryField));
|
|
17
|
+
export const baseDropdownSchema = z.object(Object.assign({ dropdown: z.string().nonempty().describe('The name of the dropdown'), graphql: graphqlNotSupportedSchema, icon: iconSchema.optional(), color: colorSchemaWithOptionalLightAndDark.optional(), description: z.string().optional().describe('The description of the dropdown'), hidden: hiddenSchema.optional() }, directoryField));
|
|
17
18
|
export const nonRecursiveDropdownSchema = baseDropdownSchema.extend({ href: hrefSchema });
|
|
18
19
|
export const dropdownSchema = z.union([
|
|
19
20
|
baseDropdownSchema.extend({
|
|
@@ -9,6 +9,7 @@ export declare const directoryField: {
|
|
|
9
9
|
export declare const baseGroupSchema: z.ZodObject<{
|
|
10
10
|
directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
|
|
11
11
|
group: z.ZodString;
|
|
12
|
+
graphql: z.ZodOptional<z.ZodNever>;
|
|
12
13
|
public: z.ZodOptional<z.ZodBoolean>;
|
|
13
14
|
boost: z.ZodOptional<z.ZodNumber>;
|
|
14
15
|
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
@@ -43,6 +44,7 @@ export declare const baseGroupSchema: z.ZodObject<{
|
|
|
43
44
|
searchable?: boolean | undefined;
|
|
44
45
|
boost?: number | undefined;
|
|
45
46
|
hidden?: boolean | undefined;
|
|
47
|
+
graphql?: undefined;
|
|
46
48
|
root?: string | undefined;
|
|
47
49
|
}, {
|
|
48
50
|
group: string;
|
|
@@ -58,6 +60,7 @@ export declare const baseGroupSchema: z.ZodObject<{
|
|
|
58
60
|
searchable?: boolean | undefined;
|
|
59
61
|
boost?: number | undefined;
|
|
60
62
|
hidden?: boolean | undefined;
|
|
63
|
+
graphql?: undefined;
|
|
61
64
|
root?: string | undefined;
|
|
62
65
|
}>;
|
|
63
66
|
export type BaseGroupSchema = z.infer<typeof baseGroupSchema>;
|
|
@@ -77,6 +80,7 @@ export declare const groupsSchema: z.ZodArray<z.ZodType<{
|
|
|
77
80
|
searchable?: boolean | undefined;
|
|
78
81
|
boost?: number | undefined;
|
|
79
82
|
hidden?: boolean | undefined;
|
|
83
|
+
graphql?: undefined;
|
|
80
84
|
root?: string | undefined;
|
|
81
85
|
} & {
|
|
82
86
|
openapi?: string | string[] | {
|
|
@@ -103,6 +107,7 @@ export declare const groupsSchema: z.ZodArray<z.ZodType<{
|
|
|
103
107
|
searchable?: boolean | undefined;
|
|
104
108
|
boost?: number | undefined;
|
|
105
109
|
hidden?: boolean | undefined;
|
|
110
|
+
graphql?: undefined;
|
|
106
111
|
root?: string | undefined;
|
|
107
112
|
} & {
|
|
108
113
|
openapi?: string | string[] | {
|
|
@@ -130,6 +135,7 @@ export declare const decoratedGroupsSchema: z.ZodArray<z.ZodType<Omit<{
|
|
|
130
135
|
searchable?: boolean | undefined;
|
|
131
136
|
boost?: number | undefined;
|
|
132
137
|
hidden?: boolean | undefined;
|
|
138
|
+
graphql?: undefined;
|
|
133
139
|
root?: string | undefined;
|
|
134
140
|
}, "root"> & {
|
|
135
141
|
pages: import("./divisionNav.js").PageOrGroupNavigation<"decorated">[];
|
|
@@ -148,6 +154,7 @@ export declare const decoratedGroupsSchema: z.ZodArray<z.ZodType<Omit<{
|
|
|
148
154
|
searchable?: boolean | undefined;
|
|
149
155
|
boost?: number | undefined;
|
|
150
156
|
hidden?: boolean | undefined;
|
|
157
|
+
graphql?: undefined;
|
|
151
158
|
root?: string | undefined;
|
|
152
159
|
}, "root"> & {
|
|
153
160
|
pages: import("./divisionNav.js").PageOrGroupNavigation<"decorated">[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { asyncApiSchema } from '../reusable/asyncapi.js';
|
|
3
|
+
import { graphqlNotSupportedSchema } from '../reusable/graphql.js';
|
|
3
4
|
import { hiddenSchema } from '../reusable/hidden.js';
|
|
4
5
|
import { iconSchema } from '../reusable/icon.js';
|
|
5
6
|
import { openApiSchema } from '../reusable/openapi.js';
|
|
@@ -14,7 +15,7 @@ export const directoryField = {
|
|
|
14
15
|
.optional()
|
|
15
16
|
.describe('Directory layout for this navigation node and its descendants. "accordion" and "card" show automatic directory UI on eligible root pages; "none" disables it. Inherits recursively; descendants can override.'),
|
|
16
17
|
};
|
|
17
|
-
export const baseGroupSchema = z.object(Object.assign({ group: z.string().nonempty().describe('The name of the group'), public: z.boolean().optional().describe('Whether the group is public'), boost: z
|
|
18
|
+
export const baseGroupSchema = z.object(Object.assign({ group: z.string().nonempty().describe('The name of the group'), graphql: graphqlNotSupportedSchema, public: z.boolean().optional().describe('Whether the group is public'), boost: z
|
|
18
19
|
.number()
|
|
19
20
|
.optional()
|
|
20
21
|
.describe('Search ranking multiplier for pages in this group (e.g. 3 = 3x boost)'), icon: iconSchema.optional(), hidden: hiddenSchema.optional(), searchable: searchableSchema.optional(), root: pageSchema.optional(), tag: z.string().optional().describe('Tag for the group'), expanded: z.boolean().optional().describe('Whether the group is expanded by default') }, directoryField));
|
|
@@ -10,84 +10,103 @@ import { DecoratedVersionConfig, VersionConfig } from './version.js';
|
|
|
10
10
|
export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
11
11
|
directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
|
|
12
12
|
global: z.ZodOptional<z.ZodType<import("./divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./divisionNav.js").GlobalNavigation>>;
|
|
13
|
+
graphql: z.ZodOptional<z.ZodNever>;
|
|
13
14
|
} & {
|
|
14
15
|
products: z.ZodArray<z.ZodType<import("./divisionNav.js").ProductNavigation<"default">, z.ZodTypeDef, import("./divisionNav.js").ProductNavigation<"default">>, "many">;
|
|
15
16
|
}, "strip", z.ZodTypeAny, {
|
|
16
17
|
products: import("./divisionNav.js").ProductNavigation<"default">[];
|
|
17
18
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
19
|
+
graphql?: undefined;
|
|
18
20
|
global?: import("./divisionNav.js").GlobalNavigation | undefined;
|
|
19
21
|
}, {
|
|
20
22
|
products: import("./divisionNav.js").ProductNavigation<"default">[];
|
|
21
23
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
24
|
+
graphql?: undefined;
|
|
22
25
|
global?: import("./divisionNav.js").GlobalNavigation | undefined;
|
|
23
26
|
}>, z.ZodObject<{
|
|
24
27
|
directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
|
|
25
28
|
global: z.ZodOptional<z.ZodType<import("./divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./divisionNav.js").GlobalNavigation>>;
|
|
29
|
+
graphql: z.ZodOptional<z.ZodNever>;
|
|
26
30
|
} & {
|
|
27
31
|
languages: z.ZodArray<z.ZodType<import("./divisionNav.js").LanguageNavigation<"default">, z.ZodTypeDef, import("./divisionNav.js").LanguageNavigation<"default">>, "many">;
|
|
28
32
|
}, "strip", z.ZodTypeAny, {
|
|
29
33
|
languages: import("./divisionNav.js").LanguageNavigation<"default">[];
|
|
30
34
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
35
|
+
graphql?: undefined;
|
|
31
36
|
global?: import("./divisionNav.js").GlobalNavigation | undefined;
|
|
32
37
|
}, {
|
|
33
38
|
languages: import("./divisionNav.js").LanguageNavigation<"default">[];
|
|
34
39
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
40
|
+
graphql?: undefined;
|
|
35
41
|
global?: import("./divisionNav.js").GlobalNavigation | undefined;
|
|
36
42
|
}>, z.ZodObject<{
|
|
37
43
|
directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
|
|
38
44
|
global: z.ZodOptional<z.ZodType<import("./divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./divisionNav.js").GlobalNavigation>>;
|
|
45
|
+
graphql: z.ZodOptional<z.ZodNever>;
|
|
39
46
|
} & {
|
|
40
47
|
versions: z.ZodArray<z.ZodType<import("./divisionNav.js").VersionNavigation<"default">, z.ZodTypeDef, import("./divisionNav.js").VersionNavigation<"default">>, "many">;
|
|
41
48
|
}, "strip", z.ZodTypeAny, {
|
|
42
49
|
versions: import("./divisionNav.js").VersionNavigation<"default">[];
|
|
43
50
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
51
|
+
graphql?: undefined;
|
|
44
52
|
global?: import("./divisionNav.js").GlobalNavigation | undefined;
|
|
45
53
|
}, {
|
|
46
54
|
versions: import("./divisionNav.js").VersionNavigation<"default">[];
|
|
47
55
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
56
|
+
graphql?: undefined;
|
|
48
57
|
global?: import("./divisionNav.js").GlobalNavigation | undefined;
|
|
49
58
|
}>, z.ZodObject<{
|
|
50
59
|
directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
|
|
51
60
|
global: z.ZodOptional<z.ZodType<import("./divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./divisionNav.js").GlobalNavigation>>;
|
|
61
|
+
graphql: z.ZodOptional<z.ZodNever>;
|
|
52
62
|
} & {
|
|
53
63
|
tabs: z.ZodArray<z.ZodType<import("./divisionNav.js").TabNavigation<"default">, z.ZodTypeDef, import("./divisionNav.js").TabNavigation<"default">>, "many">;
|
|
54
64
|
}, "strip", z.ZodTypeAny, {
|
|
55
65
|
tabs: import("./divisionNav.js").TabNavigation<"default">[];
|
|
56
66
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
67
|
+
graphql?: undefined;
|
|
57
68
|
global?: import("./divisionNav.js").GlobalNavigation | undefined;
|
|
58
69
|
}, {
|
|
59
70
|
tabs: import("./divisionNav.js").TabNavigation<"default">[];
|
|
60
71
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
72
|
+
graphql?: undefined;
|
|
61
73
|
global?: import("./divisionNav.js").GlobalNavigation | undefined;
|
|
62
74
|
}>, z.ZodObject<{
|
|
63
75
|
directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
|
|
64
76
|
global: z.ZodOptional<z.ZodType<import("./divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./divisionNav.js").GlobalNavigation>>;
|
|
77
|
+
graphql: z.ZodOptional<z.ZodNever>;
|
|
65
78
|
} & {
|
|
66
79
|
dropdowns: z.ZodArray<z.ZodType<import("./divisionNav.js").DropdownNavigation<"default">, z.ZodTypeDef, import("./divisionNav.js").DropdownNavigation<"default">>, "many">;
|
|
67
80
|
}, "strip", z.ZodTypeAny, {
|
|
68
81
|
dropdowns: import("./divisionNav.js").DropdownNavigation<"default">[];
|
|
69
82
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
83
|
+
graphql?: undefined;
|
|
70
84
|
global?: import("./divisionNav.js").GlobalNavigation | undefined;
|
|
71
85
|
}, {
|
|
72
86
|
dropdowns: import("./divisionNav.js").DropdownNavigation<"default">[];
|
|
73
87
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
88
|
+
graphql?: undefined;
|
|
74
89
|
global?: import("./divisionNav.js").GlobalNavigation | undefined;
|
|
75
90
|
}>, z.ZodObject<{
|
|
76
91
|
directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
|
|
77
92
|
global: z.ZodOptional<z.ZodType<import("./divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./divisionNav.js").GlobalNavigation>>;
|
|
93
|
+
graphql: z.ZodOptional<z.ZodNever>;
|
|
78
94
|
} & {
|
|
79
95
|
anchors: z.ZodArray<z.ZodType<import("./divisionNav.js").AnchorNavigation<"default">, z.ZodTypeDef, import("./divisionNav.js").AnchorNavigation<"default">>, "many">;
|
|
80
96
|
}, "strip", z.ZodTypeAny, {
|
|
81
97
|
anchors: import("./divisionNav.js").AnchorNavigation<"default">[];
|
|
82
98
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
99
|
+
graphql?: undefined;
|
|
83
100
|
global?: import("./divisionNav.js").GlobalNavigation | undefined;
|
|
84
101
|
}, {
|
|
85
102
|
anchors: import("./divisionNav.js").AnchorNavigation<"default">[];
|
|
86
103
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
104
|
+
graphql?: undefined;
|
|
87
105
|
global?: import("./divisionNav.js").GlobalNavigation | undefined;
|
|
88
106
|
}>, z.ZodObject<{
|
|
89
107
|
directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
|
|
90
108
|
global: z.ZodOptional<z.ZodType<import("./divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./divisionNav.js").GlobalNavigation>>;
|
|
109
|
+
graphql: z.ZodOptional<z.ZodNever>;
|
|
91
110
|
} & {
|
|
92
111
|
groups: z.ZodArray<z.ZodType<{
|
|
93
112
|
group: string;
|
|
@@ -103,6 +122,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
103
122
|
searchable?: boolean | undefined;
|
|
104
123
|
boost?: number | undefined;
|
|
105
124
|
hidden?: boolean | undefined;
|
|
125
|
+
graphql?: undefined;
|
|
106
126
|
root?: string | undefined;
|
|
107
127
|
} & {
|
|
108
128
|
openapi?: string | string[] | {
|
|
@@ -129,6 +149,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
129
149
|
searchable?: boolean | undefined;
|
|
130
150
|
boost?: number | undefined;
|
|
131
151
|
hidden?: boolean | undefined;
|
|
152
|
+
graphql?: undefined;
|
|
132
153
|
root?: string | undefined;
|
|
133
154
|
} & {
|
|
134
155
|
openapi?: string | string[] | {
|
|
@@ -157,6 +178,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
157
178
|
searchable?: boolean | undefined;
|
|
158
179
|
boost?: number | undefined;
|
|
159
180
|
hidden?: boolean | undefined;
|
|
181
|
+
graphql?: undefined;
|
|
160
182
|
root?: string | undefined;
|
|
161
183
|
} & {
|
|
162
184
|
openapi?: string | string[] | {
|
|
@@ -171,6 +193,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
171
193
|
pages?: import("./divisionNav.js").PageOrGroupNavigation<"default">[];
|
|
172
194
|
})[];
|
|
173
195
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
196
|
+
graphql?: undefined;
|
|
174
197
|
global?: import("./divisionNav.js").GlobalNavigation | undefined;
|
|
175
198
|
}, {
|
|
176
199
|
groups: ({
|
|
@@ -187,6 +210,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
187
210
|
searchable?: boolean | undefined;
|
|
188
211
|
boost?: number | undefined;
|
|
189
212
|
hidden?: boolean | undefined;
|
|
213
|
+
graphql?: undefined;
|
|
190
214
|
root?: string | undefined;
|
|
191
215
|
} & {
|
|
192
216
|
openapi?: string | string[] | {
|
|
@@ -201,10 +225,12 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
201
225
|
pages?: import("./divisionNav.js").PageOrGroupNavigation<"default">[];
|
|
202
226
|
})[];
|
|
203
227
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
228
|
+
graphql?: undefined;
|
|
204
229
|
global?: import("./divisionNav.js").GlobalNavigation | undefined;
|
|
205
230
|
}>, z.ZodObject<{
|
|
206
231
|
directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
|
|
207
232
|
global: z.ZodOptional<z.ZodType<import("./divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./divisionNav.js").GlobalNavigation>>;
|
|
233
|
+
graphql: z.ZodOptional<z.ZodNever>;
|
|
208
234
|
} & {
|
|
209
235
|
pages: z.ZodArray<z.ZodType<string | ({
|
|
210
236
|
group: string;
|
|
@@ -220,6 +246,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
220
246
|
searchable?: boolean | undefined;
|
|
221
247
|
boost?: number | undefined;
|
|
222
248
|
hidden?: boolean | undefined;
|
|
249
|
+
graphql?: undefined;
|
|
223
250
|
root?: string | undefined;
|
|
224
251
|
} & {
|
|
225
252
|
openapi?: string | string[] | {
|
|
@@ -246,6 +273,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
246
273
|
searchable?: boolean | undefined;
|
|
247
274
|
boost?: number | undefined;
|
|
248
275
|
hidden?: boolean | undefined;
|
|
276
|
+
graphql?: undefined;
|
|
249
277
|
root?: string | undefined;
|
|
250
278
|
} & {
|
|
251
279
|
openapi?: string | string[] | {
|
|
@@ -274,6 +302,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
274
302
|
searchable?: boolean | undefined;
|
|
275
303
|
boost?: number | undefined;
|
|
276
304
|
hidden?: boolean | undefined;
|
|
305
|
+
graphql?: undefined;
|
|
277
306
|
root?: string | undefined;
|
|
278
307
|
} & {
|
|
279
308
|
openapi?: string | string[] | {
|
|
@@ -288,6 +317,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
288
317
|
pages?: import("./divisionNav.js").PageOrGroupNavigation<"default">[];
|
|
289
318
|
}))[];
|
|
290
319
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
320
|
+
graphql?: undefined;
|
|
291
321
|
global?: import("./divisionNav.js").GlobalNavigation | undefined;
|
|
292
322
|
}, {
|
|
293
323
|
pages: (string | ({
|
|
@@ -304,6 +334,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
304
334
|
searchable?: boolean | undefined;
|
|
305
335
|
boost?: number | undefined;
|
|
306
336
|
hidden?: boolean | undefined;
|
|
337
|
+
graphql?: undefined;
|
|
307
338
|
root?: string | undefined;
|
|
308
339
|
} & {
|
|
309
340
|
openapi?: string | string[] | {
|
|
@@ -318,6 +349,7 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
318
349
|
pages?: import("./divisionNav.js").PageOrGroupNavigation<"default">[];
|
|
319
350
|
}))[];
|
|
320
351
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
352
|
+
graphql?: undefined;
|
|
321
353
|
global?: import("./divisionNav.js").GlobalNavigation | undefined;
|
|
322
354
|
}>]>;
|
|
323
355
|
export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
@@ -371,6 +403,7 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.
|
|
|
371
403
|
searchable?: boolean | undefined;
|
|
372
404
|
boost?: number | undefined;
|
|
373
405
|
hidden?: boolean | undefined;
|
|
406
|
+
graphql?: undefined;
|
|
374
407
|
root?: string | undefined;
|
|
375
408
|
}, "root"> & {
|
|
376
409
|
pages: import("./divisionNav.js").PageOrGroupNavigation<"decorated">[];
|
|
@@ -389,6 +422,7 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.
|
|
|
389
422
|
searchable?: boolean | undefined;
|
|
390
423
|
boost?: number | undefined;
|
|
391
424
|
hidden?: boolean | undefined;
|
|
425
|
+
graphql?: undefined;
|
|
392
426
|
root?: string | undefined;
|
|
393
427
|
}, "root"> & {
|
|
394
428
|
pages: import("./divisionNav.js").PageOrGroupNavigation<"decorated">[];
|
|
@@ -409,6 +443,7 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.
|
|
|
409
443
|
searchable?: boolean | undefined;
|
|
410
444
|
boost?: number | undefined;
|
|
411
445
|
hidden?: boolean | undefined;
|
|
446
|
+
graphql?: undefined;
|
|
412
447
|
root?: string | undefined;
|
|
413
448
|
}, "root"> & {
|
|
414
449
|
pages: import("./divisionNav.js").PageOrGroupNavigation<"decorated">[];
|
|
@@ -429,6 +464,7 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.
|
|
|
429
464
|
searchable?: boolean | undefined;
|
|
430
465
|
boost?: number | undefined;
|
|
431
466
|
hidden?: boolean | undefined;
|
|
467
|
+
graphql?: undefined;
|
|
432
468
|
root?: string | undefined;
|
|
433
469
|
}, "root"> & {
|
|
434
470
|
pages: import("./divisionNav.js").PageOrGroupNavigation<"decorated">[];
|
|
@@ -641,6 +677,7 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.
|
|
|
641
677
|
searchable?: boolean | undefined;
|
|
642
678
|
boost?: number | undefined;
|
|
643
679
|
hidden?: boolean | undefined;
|
|
680
|
+
graphql?: undefined;
|
|
644
681
|
root?: string | undefined;
|
|
645
682
|
}, "root"> & {
|
|
646
683
|
pages: import("./divisionNav.js").PageOrGroupNavigation<"decorated">[];
|
|
@@ -851,6 +888,7 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.
|
|
|
851
888
|
searchable?: boolean | undefined;
|
|
852
889
|
boost?: number | undefined;
|
|
853
890
|
hidden?: boolean | undefined;
|
|
891
|
+
graphql?: undefined;
|
|
854
892
|
root?: string | undefined;
|
|
855
893
|
}, "root"> & {
|
|
856
894
|
pages: import("./divisionNav.js").PageOrGroupNavigation<"decorated">[];
|
|
@@ -1063,6 +1101,7 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.
|
|
|
1063
1101
|
searchable?: boolean | undefined;
|
|
1064
1102
|
boost?: number | undefined;
|
|
1065
1103
|
hidden?: boolean | undefined;
|
|
1104
|
+
graphql?: undefined;
|
|
1066
1105
|
root?: string | undefined;
|
|
1067
1106
|
}, "root"> & {
|
|
1068
1107
|
pages: import("./divisionNav.js").PageOrGroupNavigation<"decorated">[];
|
|
@@ -1275,6 +1314,7 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.
|
|
|
1275
1314
|
searchable?: boolean | undefined;
|
|
1276
1315
|
boost?: number | undefined;
|
|
1277
1316
|
hidden?: boolean | undefined;
|
|
1317
|
+
graphql?: undefined;
|
|
1278
1318
|
root?: string | undefined;
|
|
1279
1319
|
}, "root"> & {
|
|
1280
1320
|
pages: import("./divisionNav.js").PageOrGroupNavigation<"decorated">[];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { graphqlNotSupportedSchema } from '../reusable/graphql.js';
|
|
2
3
|
import { anchorsSchema, decoratedAnchorsSchema, } from './anchors.js';
|
|
3
4
|
import { decoratedDropdownsSchema, dropdownsSchema, } from './dropdown.js';
|
|
4
5
|
import { globalSchema } from './global.js';
|
|
@@ -8,7 +9,7 @@ import { decoratedPagesSchema, pagesSchema } from './pages.js';
|
|
|
8
9
|
import { decoratedProductsSchema, productsSchema, } from './products.js';
|
|
9
10
|
import { decoratedTabsSchema, tabsSchema, } from './tabs.js';
|
|
10
11
|
import { decoratedVersionsSchema, versionsSchema, } from './version.js';
|
|
11
|
-
const baseNavigationSchema = z.object(Object.assign({ global: globalSchema.optional() }, directoryField));
|
|
12
|
+
const baseNavigationSchema = z.object(Object.assign({ global: globalSchema.optional(), graphql: graphqlNotSupportedSchema }, directoryField));
|
|
12
13
|
export const navigationSchema = z
|
|
13
14
|
.union([
|
|
14
15
|
baseNavigationSchema.extend({ products: productsSchema }),
|
|
@@ -3,6 +3,7 @@ import { LanguageNavigation } from './divisionNav.js';
|
|
|
3
3
|
export declare const baseLanguageSchema: z.ZodObject<{
|
|
4
4
|
directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
|
|
5
5
|
language: z.ZodEnum<["en", "cn", "zh", "zh-Hans", "zh-Hant", "zh-CN", "zh-TW", "es", "fr", "fr-CA", "fr-ca", "ja", "jp", "ja-jp", "ja-JP", "pt", "pt-BR", "de", "ko", "it", "ru", "ro", "cs", "id", "ar", "tr", "hi", "sv", "no", "da", "lv", "nl", "uk", "vi", "pl", "uz", "he", "ca", "fi", "hu"]>;
|
|
6
|
+
graphql: z.ZodOptional<z.ZodNever>;
|
|
6
7
|
default: z.ZodOptional<z.ZodBoolean>;
|
|
7
8
|
banner: z.ZodOptional<z.ZodObject<{
|
|
8
9
|
content: z.ZodString;
|
|
@@ -329,6 +330,7 @@ export declare const baseLanguageSchema: z.ZodObject<{
|
|
|
329
330
|
} | undefined;
|
|
330
331
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
331
332
|
hidden?: boolean | undefined;
|
|
333
|
+
graphql?: undefined;
|
|
332
334
|
banner?: {
|
|
333
335
|
content: string;
|
|
334
336
|
type?: "info" | "warning" | "critical" | undefined;
|
|
@@ -396,6 +398,7 @@ export declare const baseLanguageSchema: z.ZodObject<{
|
|
|
396
398
|
} | undefined;
|
|
397
399
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
398
400
|
hidden?: boolean | undefined;
|
|
401
|
+
graphql?: undefined;
|
|
399
402
|
banner?: {
|
|
400
403
|
content: string;
|
|
401
404
|
type?: "info" | "warning" | "critical" | undefined;
|
|
@@ -453,6 +456,7 @@ export type BaseLanguageSchema = z.infer<typeof baseLanguageSchema>;
|
|
|
453
456
|
export declare const nonRecursiveLanguageSchema: z.ZodObject<{
|
|
454
457
|
directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
|
|
455
458
|
language: z.ZodEnum<["en", "cn", "zh", "zh-Hans", "zh-Hant", "zh-CN", "zh-TW", "es", "fr", "fr-CA", "fr-ca", "ja", "jp", "ja-jp", "ja-JP", "pt", "pt-BR", "de", "ko", "it", "ru", "ro", "cs", "id", "ar", "tr", "hi", "sv", "no", "da", "lv", "nl", "uk", "vi", "pl", "uz", "he", "ca", "fi", "hu"]>;
|
|
459
|
+
graphql: z.ZodOptional<z.ZodNever>;
|
|
456
460
|
default: z.ZodOptional<z.ZodBoolean>;
|
|
457
461
|
banner: z.ZodOptional<z.ZodObject<{
|
|
458
462
|
content: z.ZodString;
|
|
@@ -782,6 +786,7 @@ export declare const nonRecursiveLanguageSchema: z.ZodObject<{
|
|
|
782
786
|
} | undefined;
|
|
783
787
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
784
788
|
hidden?: boolean | undefined;
|
|
789
|
+
graphql?: undefined;
|
|
785
790
|
banner?: {
|
|
786
791
|
content: string;
|
|
787
792
|
type?: "info" | "warning" | "critical" | undefined;
|
|
@@ -850,6 +855,7 @@ export declare const nonRecursiveLanguageSchema: z.ZodObject<{
|
|
|
850
855
|
} | undefined;
|
|
851
856
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
852
857
|
hidden?: boolean | undefined;
|
|
858
|
+
graphql?: undefined;
|
|
853
859
|
banner?: {
|
|
854
860
|
content: string;
|
|
855
861
|
type?: "info" | "warning" | "critical" | undefined;
|
|
@@ -4,6 +4,7 @@ import { footerSchema } from '../footer.js';
|
|
|
4
4
|
import { locales } from '../localization.js';
|
|
5
5
|
import { navbarSchema } from '../navbar.js';
|
|
6
6
|
import { asyncApiSchema } from '../reusable/asyncapi.js';
|
|
7
|
+
import { graphqlNotSupportedSchema } from '../reusable/graphql.js';
|
|
7
8
|
import { hiddenSchema } from '../reusable/hidden.js';
|
|
8
9
|
import { hrefSchema } from '../reusable/href.js';
|
|
9
10
|
import { openApiSchema } from '../reusable/openapi.js';
|
|
@@ -15,7 +16,7 @@ import { decoratedPagesSchema, pagesSchema } from './pages.js';
|
|
|
15
16
|
import { decoratedProductsSchema, productsSchema } from './products.js';
|
|
16
17
|
import { decoratedTabsSchema, tabsSchema } from './tabs.js';
|
|
17
18
|
import { decoratedVersionsSchema, versionsSchema } from './version.js';
|
|
18
|
-
export const baseLanguageSchema = z.object(Object.assign({ language: z.enum(locales).describe('The name of the language in the ISO 639-1 format'), default: z.boolean().optional().describe('Whether this language is the default language'), banner: bannerSchema.optional().describe('Banner configuration specific to this language'), footer: footerSchema.optional().describe('Footer configuration specific to this language'), navbar: navbarSchema.optional().describe('Navbar configuration specific to this language'), hidden: hiddenSchema.optional() }, directoryField));
|
|
19
|
+
export const baseLanguageSchema = z.object(Object.assign({ language: z.enum(locales).describe('The name of the language in the ISO 639-1 format'), graphql: graphqlNotSupportedSchema, default: z.boolean().optional().describe('Whether this language is the default language'), banner: bannerSchema.optional().describe('Banner configuration specific to this language'), footer: footerSchema.optional().describe('Footer configuration specific to this language'), navbar: navbarSchema.optional().describe('Navbar configuration specific to this language'), hidden: hiddenSchema.optional() }, directoryField));
|
|
19
20
|
export const nonRecursiveLanguageSchema = baseLanguageSchema.extend({ href: hrefSchema });
|
|
20
21
|
export const languageSchema = z
|
|
21
22
|
.union([
|
|
@@ -3,6 +3,7 @@ import { MenuItemNavigation } from './divisionNav.js';
|
|
|
3
3
|
export declare const baseMenuItemSchema: z.ZodObject<{
|
|
4
4
|
directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
|
|
5
5
|
item: z.ZodString;
|
|
6
|
+
graphql: z.ZodOptional<z.ZodNever>;
|
|
6
7
|
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
7
8
|
style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
|
|
8
9
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -28,6 +29,7 @@ export declare const baseMenuItemSchema: z.ZodObject<{
|
|
|
28
29
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
29
30
|
description?: string | undefined;
|
|
30
31
|
hidden?: boolean | undefined;
|
|
32
|
+
graphql?: undefined;
|
|
31
33
|
}, {
|
|
32
34
|
item: string;
|
|
33
35
|
icon?: string | {
|
|
@@ -38,11 +40,13 @@ export declare const baseMenuItemSchema: z.ZodObject<{
|
|
|
38
40
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
39
41
|
description?: string | undefined;
|
|
40
42
|
hidden?: boolean | undefined;
|
|
43
|
+
graphql?: undefined;
|
|
41
44
|
}>;
|
|
42
45
|
export type BaseMenuItemSchema = z.infer<typeof baseMenuItemSchema>;
|
|
43
46
|
export declare const nonRecursiveMenuItemSchema: z.ZodObject<{
|
|
44
47
|
directory: z.ZodOptional<z.ZodEnum<["none", "accordion", "card"]>>;
|
|
45
48
|
item: z.ZodString;
|
|
49
|
+
graphql: z.ZodOptional<z.ZodNever>;
|
|
46
50
|
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
47
51
|
style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
|
|
48
52
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -71,6 +75,7 @@ export declare const nonRecursiveMenuItemSchema: z.ZodObject<{
|
|
|
71
75
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
72
76
|
description?: string | undefined;
|
|
73
77
|
hidden?: boolean | undefined;
|
|
78
|
+
graphql?: undefined;
|
|
74
79
|
}, {
|
|
75
80
|
href: string;
|
|
76
81
|
item: string;
|
|
@@ -82,6 +87,7 @@ export declare const nonRecursiveMenuItemSchema: z.ZodObject<{
|
|
|
82
87
|
directory?: "none" | "card" | "accordion" | undefined;
|
|
83
88
|
description?: string | undefined;
|
|
84
89
|
hidden?: boolean | undefined;
|
|
90
|
+
graphql?: undefined;
|
|
85
91
|
}>;
|
|
86
92
|
export declare const menuItemSchema: z.ZodType<MenuItemNavigation<'default'>>;
|
|
87
93
|
export declare const decoratedMenuItemSchema: z.ZodType<MenuItemNavigation<'decorated'>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { asyncApiSchema } from '../reusable/asyncapi.js';
|
|
3
|
+
import { graphqlNotSupportedSchema } from '../reusable/graphql.js';
|
|
3
4
|
import { hiddenSchema } from '../reusable/hidden.js';
|
|
4
5
|
import { hrefSchema } from '../reusable/href.js';
|
|
5
6
|
import { iconSchema } from '../reusable/icon.js';
|
|
@@ -13,7 +14,7 @@ import { decoratedPagesSchema, pagesSchema } from './pages.js';
|
|
|
13
14
|
import { decoratedProductsSchema, productsSchema } from './products.js';
|
|
14
15
|
import { decoratedTabsSchema, tabsSchema } from './tabs.js';
|
|
15
16
|
import { decoratedVersionsSchema, versionsSchema } from './version.js';
|
|
16
|
-
export const baseMenuItemSchema = z.object(Object.assign({ item: z.string().nonempty().describe('The name of the menu item'), icon: iconSchema.optional(), description: z.string().optional().describe('The description of the menu item'), hidden: hiddenSchema.optional() }, directoryField));
|
|
17
|
+
export const baseMenuItemSchema = z.object(Object.assign({ item: z.string().nonempty().describe('The name of the menu item'), graphql: graphqlNotSupportedSchema, icon: iconSchema.optional(), description: z.string().optional().describe('The description of the menu item'), hidden: hiddenSchema.optional() }, directoryField));
|
|
17
18
|
export const nonRecursiveMenuItemSchema = baseMenuItemSchema.extend({ href: hrefSchema });
|
|
18
19
|
export const menuItemSchema = z.union([
|
|
19
20
|
baseMenuItemSchema.extend({
|
|
@@ -17,6 +17,7 @@ export declare const pagesSchema: z.ZodArray<z.ZodType<string | ({
|
|
|
17
17
|
searchable?: boolean | undefined;
|
|
18
18
|
boost?: number | undefined;
|
|
19
19
|
hidden?: boolean | undefined;
|
|
20
|
+
graphql?: undefined;
|
|
20
21
|
root?: string | undefined;
|
|
21
22
|
} & {
|
|
22
23
|
openapi?: string | string[] | {
|
|
@@ -43,6 +44,7 @@ export declare const pagesSchema: z.ZodArray<z.ZodType<string | ({
|
|
|
43
44
|
searchable?: boolean | undefined;
|
|
44
45
|
boost?: number | undefined;
|
|
45
46
|
hidden?: boolean | undefined;
|
|
47
|
+
graphql?: undefined;
|
|
46
48
|
root?: string | undefined;
|
|
47
49
|
} & {
|
|
48
50
|
openapi?: string | string[] | {
|
|
@@ -262,6 +264,7 @@ export declare const decoratedPagesSchema: z.ZodArray<z.ZodType<z.objectInputTyp
|
|
|
262
264
|
searchable?: boolean | undefined;
|
|
263
265
|
boost?: number | undefined;
|
|
264
266
|
hidden?: boolean | undefined;
|
|
267
|
+
graphql?: undefined;
|
|
265
268
|
root?: string | undefined;
|
|
266
269
|
}, "root"> & {
|
|
267
270
|
pages: PageOrGroupNavigation<"decorated">[];
|
|
@@ -472,6 +475,7 @@ export declare const decoratedPagesSchema: z.ZodArray<z.ZodType<z.objectInputTyp
|
|
|
472
475
|
searchable?: boolean | undefined;
|
|
473
476
|
boost?: number | undefined;
|
|
474
477
|
hidden?: boolean | undefined;
|
|
478
|
+
graphql?: undefined;
|
|
475
479
|
root?: string | undefined;
|
|
476
480
|
}, "root"> & {
|
|
477
481
|
pages: PageOrGroupNavigation<"decorated">[];
|