@wix/auto_sdk_papyrus_templates 1.0.4 → 1.0.6

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.
@@ -1,173 +1,173 @@
1
1
  // src/papyrus-v1-template-settings-templates.schemas.ts
2
2
  import * as z from "zod";
3
3
  var UpsertTemplateSettingsRequest = /* @__PURE__ */ z.object({
4
- options: z.object({
5
- settings: z.object({
6
- _id: z.string().describe("Auto generated ID.").regex(
4
+ options: /* @__PURE__ */ z.object({
5
+ settings: /* @__PURE__ */ z.object({
6
+ _id: /* @__PURE__ */ z.string().describe("Auto generated ID.").regex(
7
7
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
8
8
  "Must be a valid GUID"
9
9
  ).optional().nullable(),
10
- appSlug: z.string().describe("Wix app definition ID.").min(1).max(20),
11
- templateType: z.string().describe("The type of the template.").min(1).max(20),
12
- templateId: z.string().describe("The id of the template.").min(1).max(20),
13
- externalId: z.string().describe(
10
+ appSlug: /* @__PURE__ */ z.string().describe("Wix app definition ID.").min(1).max(20),
11
+ templateType: /* @__PURE__ */ z.string().describe("The type of the template.").min(1).max(20),
12
+ templateId: /* @__PURE__ */ z.string().describe("The id of the template.").min(1).max(20),
13
+ externalId: /* @__PURE__ */ z.string().describe(
14
14
  "Template settings external ID. For example ticket definition ID.\nMust be unique per tenant where tenant is taken from authorization (wix_app_id + meta_site_id)"
15
15
  ).min(1).max(100),
16
- _createdDate: z.date().describe("Date settings were created.").optional().nullable(),
17
- _updatedDate: z.date().describe("Date settings were updated.").optional().nullable(),
18
- settingGroups: z.array(
19
- z.object({
20
- groupId: z.string().describe("Id of the control group").min(5).max(50).optional(),
21
- display: z.record(z.string(), z.boolean()).describe("Display settings.").optional(),
22
- texts: z.record(
23
- z.string(),
24
- z.object({
25
- fontFamily: z.string().describe("Font family class name").max(20).optional().nullable(),
26
- fontStyle: z.array(z.string()).max(10).optional(),
27
- textAlignment: z.string().describe("Text alignment class name").max(20).optional().nullable(),
28
- textColor: z.string().describe("Text color hex code").min(7).max(7).optional().nullable(),
29
- fontSize: z.number().int().describe("Font size").min(1).optional().nullable(),
30
- textContent: z.array(
31
- z.object({
32
- _id: z.string().min(3).max(50).optional(),
33
- value: z.string().max(500).optional().nullable(),
34
- visible: z.boolean().optional()
16
+ _createdDate: /* @__PURE__ */ z.date().describe("Date settings were created.").optional().nullable(),
17
+ _updatedDate: /* @__PURE__ */ z.date().describe("Date settings were updated.").optional().nullable(),
18
+ settingGroups: /* @__PURE__ */ z.array(
19
+ /* @__PURE__ */ z.object({
20
+ groupId: /* @__PURE__ */ z.string().describe("Id of the control group").min(5).max(50).optional(),
21
+ display: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.boolean()).describe("Display settings.").optional(),
22
+ texts: /* @__PURE__ */ z.record(
23
+ /* @__PURE__ */ z.string(),
24
+ /* @__PURE__ */ z.object({
25
+ fontFamily: /* @__PURE__ */ z.string().describe("Font family class name").max(20).optional().nullable(),
26
+ fontStyle: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(10).optional(),
27
+ textAlignment: /* @__PURE__ */ z.string().describe("Text alignment class name").max(20).optional().nullable(),
28
+ textColor: /* @__PURE__ */ z.string().describe("Text color hex code").min(7).max(7).optional().nullable(),
29
+ fontSize: /* @__PURE__ */ z.number().int().describe("Font size").min(1).optional().nullable(),
30
+ textContent: /* @__PURE__ */ z.array(
31
+ /* @__PURE__ */ z.object({
32
+ _id: /* @__PURE__ */ z.string().min(3).max(50).optional(),
33
+ value: /* @__PURE__ */ z.string().max(500).optional().nullable(),
34
+ visible: /* @__PURE__ */ z.boolean().optional()
35
35
  })
36
36
  ).optional()
37
37
  })
38
38
  ).describe("Texts settings.").optional(),
39
- images: z.record(
40
- z.string(),
41
- z.object({
42
- image: z.string().describe("Wix media Image").optional(),
43
- resize: z.enum(["FIT", "CROP"]).optional()
39
+ images: /* @__PURE__ */ z.record(
40
+ /* @__PURE__ */ z.string(),
41
+ /* @__PURE__ */ z.object({
42
+ image: /* @__PURE__ */ z.string().describe("Wix media Image").optional(),
43
+ resize: /* @__PURE__ */ z.enum(["FIT", "CROP"]).optional()
44
44
  })
45
45
  ).describe("Images settings.").optional(),
46
- selects: z.record(
47
- z.string(),
48
- z.object({
49
- value: z.string().describe("Selected value").optional().nullable(),
50
- primaryColor: z.string().describe("Color hex code").min(7).max(7).optional().nullable(),
51
- secondaryColor: z.string().describe("Color hex code").min(7).max(7).optional().nullable(),
52
- size: z.number().int().describe("Size").optional().nullable()
46
+ selects: /* @__PURE__ */ z.record(
47
+ /* @__PURE__ */ z.string(),
48
+ /* @__PURE__ */ z.object({
49
+ value: /* @__PURE__ */ z.string().describe("Selected value").optional().nullable(),
50
+ primaryColor: /* @__PURE__ */ z.string().describe("Color hex code").min(7).max(7).optional().nullable(),
51
+ secondaryColor: /* @__PURE__ */ z.string().describe("Color hex code").min(7).max(7).optional().nullable(),
52
+ size: /* @__PURE__ */ z.number().int().describe("Size").optional().nullable()
53
53
  })
54
54
  ).describe("Select option settings.").optional(),
55
- backgrounds: z.record(
56
- z.string(),
57
- z.object({
58
- color: z.string().describe("Color of the background hex code").min(7).max(9).optional().nullable(),
59
- image: z.string().describe("Wix media Image").optional()
55
+ backgrounds: /* @__PURE__ */ z.record(
56
+ /* @__PURE__ */ z.string(),
57
+ /* @__PURE__ */ z.object({
58
+ color: /* @__PURE__ */ z.string().describe("Color of the background hex code").min(7).max(9).optional().nullable(),
59
+ image: /* @__PURE__ */ z.string().describe("Wix media Image").optional()
60
60
  })
61
61
  ).describe("Backgrounds settings.").optional()
62
62
  })
63
63
  ).max(10).optional(),
64
- paperSize: z.enum(["A4_PORTRAIT", "A4_LANDSCAPE"]).optional(),
65
- pageOverflow: z.enum(["CONTENT_HIDDEN", "CONTENT_BREAK"]).optional()
64
+ paperSize: /* @__PURE__ */ z.enum(["A4_PORTRAIT", "A4_LANDSCAPE"]).optional(),
65
+ pageOverflow: /* @__PURE__ */ z.enum(["CONTENT_HIDDEN", "CONTENT_BREAK"]).optional()
66
66
  }).describe("Settings to be upserted.").optional()
67
67
  }).optional()
68
68
  });
69
69
  var UpsertTemplateSettingsResponse = /* @__PURE__ */ z.object({
70
- settings: z.object({
71
- _id: z.string().describe("Auto generated ID.").regex(
70
+ settings: /* @__PURE__ */ z.object({
71
+ _id: /* @__PURE__ */ z.string().describe("Auto generated ID.").regex(
72
72
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
73
73
  "Must be a valid GUID"
74
74
  ).optional().nullable(),
75
- appSlug: z.string().describe("Wix app definition ID.").min(1).max(20).optional().nullable(),
76
- templateType: z.string().describe("The type of the template.").min(1).max(20).optional().nullable(),
77
- templateId: z.string().describe("The id of the template.").min(1).max(20).optional().nullable(),
78
- externalId: z.string().describe(
75
+ appSlug: /* @__PURE__ */ z.string().describe("Wix app definition ID.").min(1).max(20).optional().nullable(),
76
+ templateType: /* @__PURE__ */ z.string().describe("The type of the template.").min(1).max(20).optional().nullable(),
77
+ templateId: /* @__PURE__ */ z.string().describe("The id of the template.").min(1).max(20).optional().nullable(),
78
+ externalId: /* @__PURE__ */ z.string().describe(
79
79
  "Template settings external ID. For example ticket definition ID.\nMust be unique per tenant where tenant is taken from authorization (wix_app_id + meta_site_id)"
80
80
  ).min(1).max(100).optional().nullable(),
81
- _createdDate: z.date().describe("Date settings were created.").optional().nullable(),
82
- _updatedDate: z.date().describe("Date settings were updated.").optional().nullable(),
83
- settingGroups: z.array(
84
- z.object({
85
- groupId: z.string().describe("Id of the control group").min(5).max(50).optional(),
86
- display: z.record(z.string(), z.boolean()).describe("Display settings.").optional(),
87
- texts: z.record(
88
- z.string(),
89
- z.object({
90
- fontFamily: z.string().describe("Font family class name").max(20).optional().nullable(),
91
- fontStyle: z.array(z.string()).max(10).optional(),
92
- textAlignment: z.string().describe("Text alignment class name").max(20).optional().nullable(),
93
- textColor: z.string().describe("Text color hex code").min(7).max(7).optional().nullable(),
94
- fontSize: z.number().int().describe("Font size").min(1).optional().nullable(),
95
- textContent: z.array(
96
- z.object({
97
- _id: z.string().min(3).max(50).optional(),
98
- value: z.string().max(500).optional().nullable(),
99
- visible: z.boolean().optional()
81
+ _createdDate: /* @__PURE__ */ z.date().describe("Date settings were created.").optional().nullable(),
82
+ _updatedDate: /* @__PURE__ */ z.date().describe("Date settings were updated.").optional().nullable(),
83
+ settingGroups: /* @__PURE__ */ z.array(
84
+ /* @__PURE__ */ z.object({
85
+ groupId: /* @__PURE__ */ z.string().describe("Id of the control group").min(5).max(50).optional(),
86
+ display: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.boolean()).describe("Display settings.").optional(),
87
+ texts: /* @__PURE__ */ z.record(
88
+ /* @__PURE__ */ z.string(),
89
+ /* @__PURE__ */ z.object({
90
+ fontFamily: /* @__PURE__ */ z.string().describe("Font family class name").max(20).optional().nullable(),
91
+ fontStyle: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(10).optional(),
92
+ textAlignment: /* @__PURE__ */ z.string().describe("Text alignment class name").max(20).optional().nullable(),
93
+ textColor: /* @__PURE__ */ z.string().describe("Text color hex code").min(7).max(7).optional().nullable(),
94
+ fontSize: /* @__PURE__ */ z.number().int().describe("Font size").min(1).optional().nullable(),
95
+ textContent: /* @__PURE__ */ z.array(
96
+ /* @__PURE__ */ z.object({
97
+ _id: /* @__PURE__ */ z.string().min(3).max(50).optional(),
98
+ value: /* @__PURE__ */ z.string().max(500).optional().nullable(),
99
+ visible: /* @__PURE__ */ z.boolean().optional()
100
100
  })
101
101
  ).optional()
102
102
  })
103
103
  ).describe("Texts settings.").optional(),
104
- images: z.record(
105
- z.string(),
106
- z.object({
107
- image: z.string().describe("Wix media Image").optional(),
108
- resize: z.enum(["FIT", "CROP"]).describe("Image resizing mode").optional()
104
+ images: /* @__PURE__ */ z.record(
105
+ /* @__PURE__ */ z.string(),
106
+ /* @__PURE__ */ z.object({
107
+ image: /* @__PURE__ */ z.string().describe("Wix media Image").optional(),
108
+ resize: /* @__PURE__ */ z.enum(["FIT", "CROP"]).describe("Image resizing mode").optional()
109
109
  })
110
110
  ).describe("Images settings.").optional(),
111
- selects: z.record(
112
- z.string(),
113
- z.object({
114
- value: z.string().describe("Selected value").optional().nullable(),
115
- primaryColor: z.string().describe("Color hex code").min(7).max(7).optional().nullable(),
116
- secondaryColor: z.string().describe("Color hex code").min(7).max(7).optional().nullable(),
117
- size: z.number().int().describe("Size").optional().nullable()
111
+ selects: /* @__PURE__ */ z.record(
112
+ /* @__PURE__ */ z.string(),
113
+ /* @__PURE__ */ z.object({
114
+ value: /* @__PURE__ */ z.string().describe("Selected value").optional().nullable(),
115
+ primaryColor: /* @__PURE__ */ z.string().describe("Color hex code").min(7).max(7).optional().nullable(),
116
+ secondaryColor: /* @__PURE__ */ z.string().describe("Color hex code").min(7).max(7).optional().nullable(),
117
+ size: /* @__PURE__ */ z.number().int().describe("Size").optional().nullable()
118
118
  })
119
119
  ).describe("Select option settings.").optional(),
120
- backgrounds: z.record(
121
- z.string(),
122
- z.object({
123
- color: z.string().describe("Color of the background hex code").min(7).max(9).optional().nullable(),
124
- image: z.string().describe("Wix media Image").optional()
120
+ backgrounds: /* @__PURE__ */ z.record(
121
+ /* @__PURE__ */ z.string(),
122
+ /* @__PURE__ */ z.object({
123
+ color: /* @__PURE__ */ z.string().describe("Color of the background hex code").min(7).max(9).optional().nullable(),
124
+ image: /* @__PURE__ */ z.string().describe("Wix media Image").optional()
125
125
  })
126
126
  ).describe("Backgrounds settings.").optional()
127
127
  })
128
128
  ).max(10).optional(),
129
- paperSize: z.enum(["A4_PORTRAIT", "A4_LANDSCAPE"]).describe("Paper size").optional(),
130
- pageOverflow: z.enum(["CONTENT_HIDDEN", "CONTENT_BREAK"]).optional()
129
+ paperSize: /* @__PURE__ */ z.enum(["A4_PORTRAIT", "A4_LANDSCAPE"]).describe("Paper size").optional(),
130
+ pageOverflow: /* @__PURE__ */ z.enum(["CONTENT_HIDDEN", "CONTENT_BREAK"]).optional()
131
131
  }).describe("Upserted settings.").optional()
132
132
  });
133
133
  var QueryTemplateSettingsRequest = /* @__PURE__ */ z.object({
134
- query: z.intersection(
135
- z.object({
136
- filter: z.record(z.string(), z.any()).describe(
134
+ query: /* @__PURE__ */ z.intersection(
135
+ /* @__PURE__ */ z.object({
136
+ filter: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe(
137
137
  "Filter object.\n\nLearn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters)."
138
138
  ).optional().nullable(),
139
- sort: z.array(
140
- z.object({
141
- fieldName: z.string().describe("Name of the field to sort by.").max(512).optional(),
142
- order: z.enum(["ASC", "DESC"]).optional(),
143
- origin: z.object({
144
- latitude: z.number().describe("Address latitude.").optional().nullable(),
145
- longitude: z.number().describe("Address longitude.").optional().nullable()
139
+ sort: /* @__PURE__ */ z.array(
140
+ /* @__PURE__ */ z.object({
141
+ fieldName: /* @__PURE__ */ z.string().describe("Name of the field to sort by.").max(512).optional(),
142
+ order: /* @__PURE__ */ z.enum(["ASC", "DESC"]).optional(),
143
+ origin: /* @__PURE__ */ z.object({
144
+ latitude: /* @__PURE__ */ z.number().describe("Address latitude.").optional().nullable(),
145
+ longitude: /* @__PURE__ */ z.number().describe("Address longitude.").optional().nullable()
146
146
  }).describe(
147
147
  "Origin point for geo-distance sorting on a GEO field\nresults are ordered by distance from this point (ASC = nearest first, DESC = farthest first)."
148
148
  ).optional()
149
149
  })
150
150
  ).optional()
151
151
  }),
152
- z.xor([
153
- z.object({
154
- paging: z.never().optional(),
155
- cursorPaging: z.never().optional()
152
+ /* @__PURE__ */ z.xor([
153
+ /* @__PURE__ */ z.object({
154
+ paging: /* @__PURE__ */ z.never().optional(),
155
+ cursorPaging: /* @__PURE__ */ z.never().optional()
156
156
  }),
157
- z.object({
158
- cursorPaging: z.never().optional(),
159
- paging: z.object({
160
- limit: z.number().int().describe("Number of items to load.").min(0).optional().nullable(),
161
- offset: z.number().int().describe("Number of items to skip in the current sort order.").min(0).optional().nullable()
157
+ /* @__PURE__ */ z.object({
158
+ cursorPaging: /* @__PURE__ */ z.never().optional(),
159
+ paging: /* @__PURE__ */ z.object({
160
+ limit: /* @__PURE__ */ z.number().int().describe("Number of items to load.").min(0).optional().nullable(),
161
+ offset: /* @__PURE__ */ z.number().int().describe("Number of items to skip in the current sort order.").min(0).optional().nullable()
162
162
  }).describe(
163
163
  "Paging options to limit and offset the number of items."
164
164
  )
165
165
  }),
166
- z.object({
167
- paging: z.never().optional(),
168
- cursorPaging: z.object({
169
- limit: z.number().int().describe("Maximum number of items to return in the results.").min(0).max(100).optional().nullable(),
170
- cursor: z.string().describe(
166
+ /* @__PURE__ */ z.object({
167
+ paging: /* @__PURE__ */ z.never().optional(),
168
+ cursorPaging: /* @__PURE__ */ z.object({
169
+ limit: /* @__PURE__ */ z.number().int().describe("Maximum number of items to return in the results.").min(0).max(100).optional().nullable(),
170
+ cursor: /* @__PURE__ */ z.string().describe(
171
171
  "Pointer to the next or previous page in the list of results.\n\nPass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\nNot relevant for the first request."
172
172
  ).max(16e3).optional().nullable()
173
173
  }).describe(
@@ -178,84 +178,84 @@ var QueryTemplateSettingsRequest = /* @__PURE__ */ z.object({
178
178
  ).describe("Generic query object.")
179
179
  });
180
180
  var QueryTemplateSettingsResponse = /* @__PURE__ */ z.object({
181
- settings: z.array(
182
- z.object({
183
- _id: z.string().describe("Auto generated ID.").regex(
181
+ settings: /* @__PURE__ */ z.array(
182
+ /* @__PURE__ */ z.object({
183
+ _id: /* @__PURE__ */ z.string().describe("Auto generated ID.").regex(
184
184
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
185
185
  "Must be a valid GUID"
186
186
  ).optional().nullable(),
187
- appSlug: z.string().describe("Wix app definition ID.").min(1).max(20).optional().nullable(),
188
- templateType: z.string().describe("The type of the template.").min(1).max(20).optional().nullable(),
189
- templateId: z.string().describe("The id of the template.").min(1).max(20).optional().nullable(),
190
- externalId: z.string().describe(
187
+ appSlug: /* @__PURE__ */ z.string().describe("Wix app definition ID.").min(1).max(20).optional().nullable(),
188
+ templateType: /* @__PURE__ */ z.string().describe("The type of the template.").min(1).max(20).optional().nullable(),
189
+ templateId: /* @__PURE__ */ z.string().describe("The id of the template.").min(1).max(20).optional().nullable(),
190
+ externalId: /* @__PURE__ */ z.string().describe(
191
191
  "Template settings external ID. For example ticket definition ID.\nMust be unique per tenant where tenant is taken from authorization (wix_app_id + meta_site_id)"
192
192
  ).min(1).max(100).optional().nullable(),
193
- _createdDate: z.date().describe("Date settings were created.").optional().nullable(),
194
- _updatedDate: z.date().describe("Date settings were updated.").optional().nullable(),
195
- settingGroups: z.array(
196
- z.object({
197
- groupId: z.string().describe("Id of the control group").min(5).max(50).optional(),
198
- display: z.record(z.string(), z.boolean()).describe("Display settings.").optional(),
199
- texts: z.record(
200
- z.string(),
201
- z.object({
202
- fontFamily: z.string().describe("Font family class name").max(20).optional().nullable(),
203
- fontStyle: z.array(z.string()).max(10).optional(),
204
- textAlignment: z.string().describe("Text alignment class name").max(20).optional().nullable(),
205
- textColor: z.string().describe("Text color hex code").min(7).max(7).optional().nullable(),
206
- fontSize: z.number().int().describe("Font size").min(1).optional().nullable(),
207
- textContent: z.array(
208
- z.object({
209
- _id: z.string().min(3).max(50).optional(),
210
- value: z.string().max(500).optional().nullable(),
211
- visible: z.boolean().optional()
193
+ _createdDate: /* @__PURE__ */ z.date().describe("Date settings were created.").optional().nullable(),
194
+ _updatedDate: /* @__PURE__ */ z.date().describe("Date settings were updated.").optional().nullable(),
195
+ settingGroups: /* @__PURE__ */ z.array(
196
+ /* @__PURE__ */ z.object({
197
+ groupId: /* @__PURE__ */ z.string().describe("Id of the control group").min(5).max(50).optional(),
198
+ display: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.boolean()).describe("Display settings.").optional(),
199
+ texts: /* @__PURE__ */ z.record(
200
+ /* @__PURE__ */ z.string(),
201
+ /* @__PURE__ */ z.object({
202
+ fontFamily: /* @__PURE__ */ z.string().describe("Font family class name").max(20).optional().nullable(),
203
+ fontStyle: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(10).optional(),
204
+ textAlignment: /* @__PURE__ */ z.string().describe("Text alignment class name").max(20).optional().nullable(),
205
+ textColor: /* @__PURE__ */ z.string().describe("Text color hex code").min(7).max(7).optional().nullable(),
206
+ fontSize: /* @__PURE__ */ z.number().int().describe("Font size").min(1).optional().nullable(),
207
+ textContent: /* @__PURE__ */ z.array(
208
+ /* @__PURE__ */ z.object({
209
+ _id: /* @__PURE__ */ z.string().min(3).max(50).optional(),
210
+ value: /* @__PURE__ */ z.string().max(500).optional().nullable(),
211
+ visible: /* @__PURE__ */ z.boolean().optional()
212
212
  })
213
213
  ).optional()
214
214
  })
215
215
  ).describe("Texts settings.").optional(),
216
- images: z.record(
217
- z.string(),
218
- z.object({
219
- image: z.string().describe("Wix media Image").optional(),
220
- resize: z.enum(["FIT", "CROP"]).describe("Image resizing mode").optional()
216
+ images: /* @__PURE__ */ z.record(
217
+ /* @__PURE__ */ z.string(),
218
+ /* @__PURE__ */ z.object({
219
+ image: /* @__PURE__ */ z.string().describe("Wix media Image").optional(),
220
+ resize: /* @__PURE__ */ z.enum(["FIT", "CROP"]).describe("Image resizing mode").optional()
221
221
  })
222
222
  ).describe("Images settings.").optional(),
223
- selects: z.record(
224
- z.string(),
225
- z.object({
226
- value: z.string().describe("Selected value").optional().nullable(),
227
- primaryColor: z.string().describe("Color hex code").min(7).max(7).optional().nullable(),
228
- secondaryColor: z.string().describe("Color hex code").min(7).max(7).optional().nullable(),
229
- size: z.number().int().describe("Size").optional().nullable()
223
+ selects: /* @__PURE__ */ z.record(
224
+ /* @__PURE__ */ z.string(),
225
+ /* @__PURE__ */ z.object({
226
+ value: /* @__PURE__ */ z.string().describe("Selected value").optional().nullable(),
227
+ primaryColor: /* @__PURE__ */ z.string().describe("Color hex code").min(7).max(7).optional().nullable(),
228
+ secondaryColor: /* @__PURE__ */ z.string().describe("Color hex code").min(7).max(7).optional().nullable(),
229
+ size: /* @__PURE__ */ z.number().int().describe("Size").optional().nullable()
230
230
  })
231
231
  ).describe("Select option settings.").optional(),
232
- backgrounds: z.record(
233
- z.string(),
234
- z.object({
235
- color: z.string().describe("Color of the background hex code").min(7).max(9).optional().nullable(),
236
- image: z.string().describe("Wix media Image").optional()
232
+ backgrounds: /* @__PURE__ */ z.record(
233
+ /* @__PURE__ */ z.string(),
234
+ /* @__PURE__ */ z.object({
235
+ color: /* @__PURE__ */ z.string().describe("Color of the background hex code").min(7).max(9).optional().nullable(),
236
+ image: /* @__PURE__ */ z.string().describe("Wix media Image").optional()
237
237
  })
238
238
  ).describe("Backgrounds settings.").optional()
239
239
  })
240
240
  ).max(10).optional(),
241
- paperSize: z.enum(["A4_PORTRAIT", "A4_LANDSCAPE"]).describe("Paper size").optional(),
242
- pageOverflow: z.enum(["CONTENT_HIDDEN", "CONTENT_BREAK"]).optional()
241
+ paperSize: /* @__PURE__ */ z.enum(["A4_PORTRAIT", "A4_LANDSCAPE"]).describe("Paper size").optional(),
242
+ pageOverflow: /* @__PURE__ */ z.enum(["CONTENT_HIDDEN", "CONTENT_BREAK"]).optional()
243
243
  })
244
244
  ).optional(),
245
- metadata: z.object({
246
- count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
247
- offset: z.number().int().describe("Offset that was requested.").optional().nullable(),
248
- total: z.number().int().describe(
245
+ metadata: /* @__PURE__ */ z.object({
246
+ count: /* @__PURE__ */ z.number().int().describe("Number of items returned in the response.").optional().nullable(),
247
+ offset: /* @__PURE__ */ z.number().int().describe("Offset that was requested.").optional().nullable(),
248
+ total: /* @__PURE__ */ z.number().int().describe(
249
249
  "Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set."
250
250
  ).optional().nullable(),
251
- tooManyToCount: z.boolean().describe(
251
+ tooManyToCount: /* @__PURE__ */ z.boolean().describe(
252
252
  "Flag that indicates the server failed to calculate the `total` field."
253
253
  ).optional().nullable(),
254
- cursors: z.object({
255
- next: z.string().describe(
254
+ cursors: /* @__PURE__ */ z.object({
255
+ next: /* @__PURE__ */ z.string().describe(
256
256
  "Cursor string pointing to the next page in the list of results."
257
257
  ).max(16e3).optional().nullable(),
258
- prev: z.string().describe(
258
+ prev: /* @__PURE__ */ z.string().describe(
259
259
  "Cursor pointing to the previous page in the list of results."
260
260
  ).max(16e3).optional().nullable()
261
261
  }).describe(
@@ -264,79 +264,79 @@ var QueryTemplateSettingsResponse = /* @__PURE__ */ z.object({
264
264
  }).describe("Query result's metadata.").optional()
265
265
  });
266
266
  var ResolveTemplateSettingsRequest = /* @__PURE__ */ z.object({
267
- options: z.object({
268
- templateSettingsId: z.string().describe("The id of the settings.").regex(
267
+ options: /* @__PURE__ */ z.object({
268
+ templateSettingsId: /* @__PURE__ */ z.string().describe("The id of the settings.").regex(
269
269
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
270
270
  "Must be a valid GUID"
271
271
  ).optional().nullable(),
272
- templateSettingsExternalId: z.string().describe("External ID.").max(100).optional().nullable(),
273
- templateType: z.string().describe("The type of the template. Used to resolve default settings.").min(1).max(20),
274
- appSlug: z.string().describe("Wix app slug.").min(1).max(20),
275
- templateId: z.string().describe("The id of template.").min(1).max(20).optional().nullable()
272
+ templateSettingsExternalId: /* @__PURE__ */ z.string().describe("External ID.").max(100).optional().nullable(),
273
+ templateType: /* @__PURE__ */ z.string().describe("The type of the template. Used to resolve default settings.").min(1).max(20),
274
+ appSlug: /* @__PURE__ */ z.string().describe("Wix app slug.").min(1).max(20),
275
+ templateId: /* @__PURE__ */ z.string().describe("The id of template.").min(1).max(20).optional().nullable()
276
276
  })
277
277
  });
278
278
  var ResolveTemplateSettingsResponse = /* @__PURE__ */ z.object({
279
- settings: z.object({
280
- _id: z.string().describe("Auto generated ID.").regex(
279
+ settings: /* @__PURE__ */ z.object({
280
+ _id: /* @__PURE__ */ z.string().describe("Auto generated ID.").regex(
281
281
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
282
282
  "Must be a valid GUID"
283
283
  ).optional().nullable(),
284
- appSlug: z.string().describe("Wix app definition ID.").min(1).max(20).optional().nullable(),
285
- templateType: z.string().describe("The type of the template.").min(1).max(20).optional().nullable(),
286
- templateId: z.string().describe("The id of the template.").min(1).max(20).optional().nullable(),
287
- externalId: z.string().describe(
284
+ appSlug: /* @__PURE__ */ z.string().describe("Wix app definition ID.").min(1).max(20).optional().nullable(),
285
+ templateType: /* @__PURE__ */ z.string().describe("The type of the template.").min(1).max(20).optional().nullable(),
286
+ templateId: /* @__PURE__ */ z.string().describe("The id of the template.").min(1).max(20).optional().nullable(),
287
+ externalId: /* @__PURE__ */ z.string().describe(
288
288
  "Template settings external ID. For example ticket definition ID.\nMust be unique per tenant where tenant is taken from authorization (wix_app_id + meta_site_id)"
289
289
  ).min(1).max(100).optional().nullable(),
290
- _createdDate: z.date().describe("Date settings were created.").optional().nullable(),
291
- _updatedDate: z.date().describe("Date settings were updated.").optional().nullable(),
292
- settingGroups: z.array(
293
- z.object({
294
- groupId: z.string().describe("Id of the control group").min(5).max(50).optional(),
295
- display: z.record(z.string(), z.boolean()).describe("Display settings.").optional(),
296
- texts: z.record(
297
- z.string(),
298
- z.object({
299
- fontFamily: z.string().describe("Font family class name").max(20).optional().nullable(),
300
- fontStyle: z.array(z.string()).max(10).optional(),
301
- textAlignment: z.string().describe("Text alignment class name").max(20).optional().nullable(),
302
- textColor: z.string().describe("Text color hex code").min(7).max(7).optional().nullable(),
303
- fontSize: z.number().int().describe("Font size").min(1).optional().nullable(),
304
- textContent: z.array(
305
- z.object({
306
- _id: z.string().min(3).max(50).optional(),
307
- value: z.string().max(500).optional().nullable(),
308
- visible: z.boolean().optional()
290
+ _createdDate: /* @__PURE__ */ z.date().describe("Date settings were created.").optional().nullable(),
291
+ _updatedDate: /* @__PURE__ */ z.date().describe("Date settings were updated.").optional().nullable(),
292
+ settingGroups: /* @__PURE__ */ z.array(
293
+ /* @__PURE__ */ z.object({
294
+ groupId: /* @__PURE__ */ z.string().describe("Id of the control group").min(5).max(50).optional(),
295
+ display: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.boolean()).describe("Display settings.").optional(),
296
+ texts: /* @__PURE__ */ z.record(
297
+ /* @__PURE__ */ z.string(),
298
+ /* @__PURE__ */ z.object({
299
+ fontFamily: /* @__PURE__ */ z.string().describe("Font family class name").max(20).optional().nullable(),
300
+ fontStyle: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(10).optional(),
301
+ textAlignment: /* @__PURE__ */ z.string().describe("Text alignment class name").max(20).optional().nullable(),
302
+ textColor: /* @__PURE__ */ z.string().describe("Text color hex code").min(7).max(7).optional().nullable(),
303
+ fontSize: /* @__PURE__ */ z.number().int().describe("Font size").min(1).optional().nullable(),
304
+ textContent: /* @__PURE__ */ z.array(
305
+ /* @__PURE__ */ z.object({
306
+ _id: /* @__PURE__ */ z.string().min(3).max(50).optional(),
307
+ value: /* @__PURE__ */ z.string().max(500).optional().nullable(),
308
+ visible: /* @__PURE__ */ z.boolean().optional()
309
309
  })
310
310
  ).optional()
311
311
  })
312
312
  ).describe("Texts settings.").optional(),
313
- images: z.record(
314
- z.string(),
315
- z.object({
316
- image: z.string().describe("Wix media Image").optional(),
317
- resize: z.enum(["FIT", "CROP"]).describe("Image resizing mode").optional()
313
+ images: /* @__PURE__ */ z.record(
314
+ /* @__PURE__ */ z.string(),
315
+ /* @__PURE__ */ z.object({
316
+ image: /* @__PURE__ */ z.string().describe("Wix media Image").optional(),
317
+ resize: /* @__PURE__ */ z.enum(["FIT", "CROP"]).describe("Image resizing mode").optional()
318
318
  })
319
319
  ).describe("Images settings.").optional(),
320
- selects: z.record(
321
- z.string(),
322
- z.object({
323
- value: z.string().describe("Selected value").optional().nullable(),
324
- primaryColor: z.string().describe("Color hex code").min(7).max(7).optional().nullable(),
325
- secondaryColor: z.string().describe("Color hex code").min(7).max(7).optional().nullable(),
326
- size: z.number().int().describe("Size").optional().nullable()
320
+ selects: /* @__PURE__ */ z.record(
321
+ /* @__PURE__ */ z.string(),
322
+ /* @__PURE__ */ z.object({
323
+ value: /* @__PURE__ */ z.string().describe("Selected value").optional().nullable(),
324
+ primaryColor: /* @__PURE__ */ z.string().describe("Color hex code").min(7).max(7).optional().nullable(),
325
+ secondaryColor: /* @__PURE__ */ z.string().describe("Color hex code").min(7).max(7).optional().nullable(),
326
+ size: /* @__PURE__ */ z.number().int().describe("Size").optional().nullable()
327
327
  })
328
328
  ).describe("Select option settings.").optional(),
329
- backgrounds: z.record(
330
- z.string(),
331
- z.object({
332
- color: z.string().describe("Color of the background hex code").min(7).max(9).optional().nullable(),
333
- image: z.string().describe("Wix media Image").optional()
329
+ backgrounds: /* @__PURE__ */ z.record(
330
+ /* @__PURE__ */ z.string(),
331
+ /* @__PURE__ */ z.object({
332
+ color: /* @__PURE__ */ z.string().describe("Color of the background hex code").min(7).max(9).optional().nullable(),
333
+ image: /* @__PURE__ */ z.string().describe("Wix media Image").optional()
334
334
  })
335
335
  ).describe("Backgrounds settings.").optional()
336
336
  })
337
337
  ).max(10).optional(),
338
- paperSize: z.enum(["A4_PORTRAIT", "A4_LANDSCAPE"]).describe("Paper size").optional(),
339
- pageOverflow: z.enum(["CONTENT_HIDDEN", "CONTENT_BREAK"]).optional()
338
+ paperSize: /* @__PURE__ */ z.enum(["A4_PORTRAIT", "A4_LANDSCAPE"]).describe("Paper size").optional(),
339
+ pageOverflow: /* @__PURE__ */ z.enum(["CONTENT_HIDDEN", "CONTENT_BREAK"]).optional()
340
340
  }).describe("Retrieved settings.").optional()
341
341
  });
342
342
  export {