PluginProbe
Extendify / trunk
Extendify vtrunk
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
← All changes | src/AutoLaunch/fetchers/shape.js +33 -5 3.0.4 → trunk View file →
@@ -7,8 +7,10 @@
7 7 patternTypes: z.array(z.string()),
8 8 contentGenerated: z.boolean().optional(),
9 9 navSlug: z.string().optional(),
10 10 navLabel: z.string().optional(),
11 + blogImages: z.array(z.string()).optional(),
12 + images: z.array(z.string()).optional(),
11 13 });
12 14 export const homeTemplateShape = z.looseObject({
13 15 id: z.string(),
14 16 slug: z.string(),
@@ -20,10 +22,14 @@
20 22 home: homeTemplateShape,
21 23 });
22 24
23 25 // get-images
26 +const libraryImageShape = z.looseObject({ url: z.string() });
24 27 export const getImagesShape = z.looseObject({
25 - siteImages: z.array(z.string()),
28 + siteImages: z.object({
29 + hero: z.array(libraryImageShape).default([]),
30 + general: z.array(libraryImageShape).default([]),
31 + }),
26 32 });
27 33
28 34 // get-logo
29 35 export const getLogoShape = z.looseObject({
@@ -51,8 +57,14 @@
51 57 sitePlugins: z.array(pluginShape),
52 58 });
53 59
54 60 // get-profile
61 +export const socialProfilesShape = z.looseObject({
62 + facebook: z.string().nullish(),
63 + instagram: z.string().nullish(),
64 + x: z.string().nullish(),
65 + tiktok: z.string().nullish(),
66 +});
55 67 export const getProfileShape = z.looseObject({
56 68 type: z.string(),
57 69 title: z.string(),
58 70 description: z.string(),
@@ -73,14 +85,23 @@
73 85 blog: z.boolean(),
74 86 landingPage: z.boolean(),
75 87 landingPageCTALink: z.union([z.literal(false), z.string()]),
76 88 phoneNumber: z.union([z.boolean(), z.string()]).optional(),
89 + email: z.string().nullish(),
90 + socialProfiles: socialProfilesShape.nullish(),
77 91 });
78 92
93 +// get-launch-decisions
94 +export const getLaunchDecisionsShape = z.looseObject({
95 + navExtras: z.string().optional(),
96 + navButtonLabel: z.string().optional(),
97 +});
98 +
79 99 // get-strings
80 100 export const getStringsShape = z.looseObject({
81 101 aiHeaders: z.array(z.string()),
82 102 aiBlogTitles: z.array(z.string()),
103 + heroDescription: z.string().optional(),
83 104 });
84 105
85 106 // get-style
86 107 export const styleShape = z.looseObject({
@@ -103,13 +124,20 @@
103 124 name: z.string(),
104 125 description: z.string().optional(),
105 126 }),
106 127 ),
107 - patternId: z.string(),
108 - headerCode: z.string(),
109 128 siteStyle: styleShape.omit({ variation: true }),
110 129 selectedPlugins: z.array(pluginShape),
111 - html: z.string(),
112 - patternCode: z.string(),
113 130 logoUrl: z.url().nullish(),
131 + templateParts: z.looseObject({
132 + header: z.string().nullish(),
133 + footer: z.string().nullish(),
134 + }),
135 + builtPages: z.array(
136 + z.object({
137 + slug: z.string(),
138 + fullPage: z.boolean(),
139 + patterns: z.array(patternShape),
140 + }),
141 + ),
114 142 });
115 143 export const getDesignBuildShape = designBuildShape;