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