@wix/auto_sdk_events_forms 1.0.110 → 1.0.111
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/build/cjs/index.d.ts +2 -2
- package/build/cjs/index.js +5 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +13 -4
- package/build/cjs/index.typings.js +5 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +2 -2
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.js +787 -787
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs +5 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +13 -4
- package/build/es/index.typings.mjs +5 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +2 -2
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.mjs +787 -787
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.typings.d.ts +13 -4
- package/build/internal/cjs/meta.d.ts +2 -2
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.typings.d.mts +13 -4
- package/build/internal/es/meta.d.mts +2 -2
- package/package.json +2 -2
- package/build/internal/cjs/index.js +0 -1954
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.js +0 -1676
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.js +0 -1584
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/schemas.js +0 -1452
- package/build/internal/cjs/schemas.js.map +0 -1
- package/build/internal/es/index.mjs +0 -1842
- package/build/internal/es/index.mjs.map +0 -1
- package/build/internal/es/index.typings.mjs +0 -1565
- package/build/internal/es/index.typings.mjs.map +0 -1
- package/build/internal/es/meta.mjs +0 -1470
- package/build/internal/es/meta.mjs.map +0 -1
- package/build/internal/es/schemas.mjs +0 -1402
- package/build/internal/es/schemas.mjs.map +0 -1
package/build/cjs/schemas.js
CHANGED
|
@@ -50,15 +50,15 @@ module.exports = __toCommonJS(schemas_exports);
|
|
|
50
50
|
// src/events-v1-form-forms.schemas.ts
|
|
51
51
|
var z = __toESM(require("zod"));
|
|
52
52
|
var GetFormRequest = /* @__PURE__ */ z.object({
|
|
53
|
-
eventId: z.string().describe("Event ID to which the form belongs.").regex(
|
|
53
|
+
eventId: /* @__PURE__ */ z.string().describe("Event ID to which the form belongs.").regex(
|
|
54
54
|
/^[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}$/,
|
|
55
55
|
"Must be a valid GUID"
|
|
56
56
|
)
|
|
57
57
|
});
|
|
58
58
|
var GetFormResponse = /* @__PURE__ */ z.object({
|
|
59
|
-
controls: z.array(
|
|
60
|
-
z.object({
|
|
61
|
-
type: z.enum([
|
|
59
|
+
controls: /* @__PURE__ */ z.array(
|
|
60
|
+
/* @__PURE__ */ z.object({
|
|
61
|
+
type: /* @__PURE__ */ z.enum([
|
|
62
62
|
"INPUT",
|
|
63
63
|
"TEXTAREA",
|
|
64
64
|
"DROPDOWN",
|
|
@@ -70,47 +70,47 @@ var GetFormResponse = /* @__PURE__ */ z.object({
|
|
|
70
70
|
"ADDRESS_FULL",
|
|
71
71
|
"DATE"
|
|
72
72
|
]).describe("Field control type.").optional(),
|
|
73
|
-
system: z.boolean().describe(
|
|
73
|
+
system: /* @__PURE__ */ z.boolean().describe(
|
|
74
74
|
"Whether the control is mandatory (such as `name` & `email`). When `true`, only the label can be changed."
|
|
75
75
|
).optional(),
|
|
76
|
-
name: z.string().describe("Deprecated: Use `id` or `_id`.").optional(),
|
|
77
|
-
inputs: z.array(
|
|
78
|
-
z.object({
|
|
79
|
-
name: z.string().describe("Field name.").optional(),
|
|
80
|
-
array: z.boolean().describe(
|
|
76
|
+
name: /* @__PURE__ */ z.string().describe("Deprecated: Use `id` or `_id`.").optional(),
|
|
77
|
+
inputs: /* @__PURE__ */ z.array(
|
|
78
|
+
/* @__PURE__ */ z.object({
|
|
79
|
+
name: /* @__PURE__ */ z.string().describe("Field name.").optional(),
|
|
80
|
+
array: /* @__PURE__ */ z.boolean().describe(
|
|
81
81
|
"*Deprecated:** Use `controls.inputs.type.TEXT_ARRAY`."
|
|
82
82
|
).optional(),
|
|
83
|
-
label: z.string().describe("Main field label.").optional(),
|
|
84
|
-
additionalLabels: z.record(z.string(), z.string()).describe(
|
|
83
|
+
label: /* @__PURE__ */ z.string().describe("Main field label.").optional(),
|
|
84
|
+
additionalLabels: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.string()).describe(
|
|
85
85
|
"Additional labels for multi-valued fields such as address."
|
|
86
86
|
).optional(),
|
|
87
|
-
options: z.array(z.string()).optional(),
|
|
88
|
-
mandatory: z.boolean().describe("Whether field is mandatory.").optional(),
|
|
89
|
-
maxLength: z.number().int().describe(
|
|
87
|
+
options: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).optional(),
|
|
88
|
+
mandatory: /* @__PURE__ */ z.boolean().describe("Whether field is mandatory.").optional(),
|
|
89
|
+
maxLength: /* @__PURE__ */ z.number().int().describe(
|
|
90
90
|
"Maximum number of accepted characters (relevant for text fields)."
|
|
91
91
|
).optional(),
|
|
92
|
-
type: z.enum(["TEXT", "NUMBER", "TEXT_ARRAY", "DATE_TIME", "ADDRESS"]).describe(
|
|
92
|
+
type: /* @__PURE__ */ z.enum(["TEXT", "NUMBER", "TEXT_ARRAY", "DATE_TIME", "ADDRESS"]).describe(
|
|
93
93
|
"Type which determines field format.\nUsed to validate submitted response."
|
|
94
94
|
).optional(),
|
|
95
|
-
maxSize: z.number().int().describe(
|
|
95
|
+
maxSize: /* @__PURE__ */ z.number().int().describe(
|
|
96
96
|
"The maximum number of accepted values for array input.\n\n**Note:** Only applicable for `TEXT_ARRAY` input fields."
|
|
97
97
|
).optional().nullable(),
|
|
98
|
-
defaultOptionSelection: z.intersection(
|
|
99
|
-
z.object({}),
|
|
100
|
-
z.xor([
|
|
101
|
-
z.object({
|
|
102
|
-
optionIndex: z.never().optional(),
|
|
103
|
-
placeholderText: z.never().optional()
|
|
98
|
+
defaultOptionSelection: /* @__PURE__ */ z.intersection(
|
|
99
|
+
/* @__PURE__ */ z.object({}),
|
|
100
|
+
/* @__PURE__ */ z.xor([
|
|
101
|
+
/* @__PURE__ */ z.object({
|
|
102
|
+
optionIndex: /* @__PURE__ */ z.never().optional(),
|
|
103
|
+
placeholderText: /* @__PURE__ */ z.never().optional()
|
|
104
104
|
}),
|
|
105
|
-
z.object({
|
|
106
|
-
placeholderText: z.never().optional(),
|
|
107
|
-
optionIndex: z.number().int().describe(
|
|
105
|
+
/* @__PURE__ */ z.object({
|
|
106
|
+
placeholderText: /* @__PURE__ */ z.never().optional(),
|
|
107
|
+
optionIndex: /* @__PURE__ */ z.number().int().describe(
|
|
108
108
|
"0-based index from predefined `controls.inputs.options` which is initial selection."
|
|
109
109
|
).min(0).max(199)
|
|
110
110
|
}),
|
|
111
|
-
z.object({
|
|
112
|
-
optionIndex: z.never().optional(),
|
|
113
|
-
placeholderText: z.string().describe(
|
|
111
|
+
/* @__PURE__ */ z.object({
|
|
112
|
+
optionIndex: /* @__PURE__ */ z.never().optional(),
|
|
113
|
+
placeholderText: /* @__PURE__ */ z.string().describe(
|
|
114
114
|
'Placeholder hint describing expected choices, such as "Please select".\nConsidered an empty choice.'
|
|
115
115
|
).max(200)
|
|
116
116
|
})
|
|
@@ -118,186 +118,186 @@ var GetFormResponse = /* @__PURE__ */ z.object({
|
|
|
118
118
|
).describe(
|
|
119
119
|
"Default option initially selected when an input has multiple choices.\n\nDefaults to first (0th) option, if not configured.\nCurrently only applicable for `type.dropdown`."
|
|
120
120
|
).optional(),
|
|
121
|
-
labels: z.array(
|
|
122
|
-
z.object({
|
|
123
|
-
name: z.string().describe("Field name.").optional(),
|
|
124
|
-
label: z.string().describe("Field label.").optional()
|
|
121
|
+
labels: /* @__PURE__ */ z.array(
|
|
122
|
+
/* @__PURE__ */ z.object({
|
|
123
|
+
name: /* @__PURE__ */ z.string().describe("Field name.").optional(),
|
|
124
|
+
label: /* @__PURE__ */ z.string().describe("Field label.").optional()
|
|
125
125
|
})
|
|
126
126
|
).optional()
|
|
127
127
|
})
|
|
128
128
|
).optional(),
|
|
129
|
-
label: z.string().describe("*Deprecated:** Use `controls.inputs.label`.").optional(),
|
|
130
|
-
orderIndex: z.number().int().describe(
|
|
129
|
+
label: /* @__PURE__ */ z.string().describe("*Deprecated:** Use `controls.inputs.label`.").optional(),
|
|
130
|
+
orderIndex: /* @__PURE__ */ z.number().int().describe(
|
|
131
131
|
"Field controls are sorted by this value in ascending order."
|
|
132
132
|
).optional(),
|
|
133
|
-
_id: z.string().describe("Unique control ID.").optional(),
|
|
134
|
-
deleted: z.boolean().describe("Whether the input control is deleted.").optional().nullable()
|
|
133
|
+
_id: /* @__PURE__ */ z.string().describe("Unique control ID.").optional(),
|
|
134
|
+
deleted: /* @__PURE__ */ z.boolean().describe("Whether the input control is deleted.").optional().nullable()
|
|
135
135
|
})
|
|
136
136
|
).optional(),
|
|
137
|
-
messages: z.object({
|
|
138
|
-
rsvp: z.object({
|
|
139
|
-
rsvpYesOption: z.string().describe('Label text indicating RSVP\'s `status` is `"YES"`.').optional(),
|
|
140
|
-
rsvpNoOption: z.string().describe('Label text indicating RSVP\'s `status` is `"NO"`.').optional(),
|
|
141
|
-
positiveMessages: z.object({
|
|
142
|
-
title: z.string().describe("Main form title for positive response.").optional(),
|
|
143
|
-
confirmation: z.object({
|
|
144
|
-
title: z.string().describe("Confirmation message title.").optional(),
|
|
145
|
-
message: z.string().describe("Confirmation message text.").optional(),
|
|
146
|
-
addToCalendarActionLabel: z.string().describe('"Add to calendar" call-to-action label text.').optional(),
|
|
147
|
-
shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
|
|
137
|
+
messages: /* @__PURE__ */ z.object({
|
|
138
|
+
rsvp: /* @__PURE__ */ z.object({
|
|
139
|
+
rsvpYesOption: /* @__PURE__ */ z.string().describe('Label text indicating RSVP\'s `status` is `"YES"`.').optional(),
|
|
140
|
+
rsvpNoOption: /* @__PURE__ */ z.string().describe('Label text indicating RSVP\'s `status` is `"NO"`.').optional(),
|
|
141
|
+
positiveMessages: /* @__PURE__ */ z.object({
|
|
142
|
+
title: /* @__PURE__ */ z.string().describe("Main form title for positive response.").optional(),
|
|
143
|
+
confirmation: /* @__PURE__ */ z.object({
|
|
144
|
+
title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
|
|
145
|
+
message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
|
|
146
|
+
addToCalendarActionLabel: /* @__PURE__ */ z.string().describe('"Add to calendar" call-to-action label text.').optional(),
|
|
147
|
+
shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
|
|
148
148
|
}).describe("Confirmation messages shown after registration.").optional()
|
|
149
149
|
}).describe(
|
|
150
150
|
'Messages displayed when an RSVP\'s `status` is set to `"YES"`.'
|
|
151
151
|
).optional(),
|
|
152
|
-
waitlistMessages: z.object({
|
|
153
|
-
title: z.string().describe("Main form title for positive response.").optional(),
|
|
154
|
-
confirmation: z.object({
|
|
155
|
-
title: z.string().describe("Confirmation message title.").optional(),
|
|
156
|
-
message: z.string().describe("Confirmation message text.").optional(),
|
|
157
|
-
addToCalendarActionLabel: z.string().describe('"Add to calendar" call-to-action label text.').optional(),
|
|
158
|
-
shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
|
|
152
|
+
waitlistMessages: /* @__PURE__ */ z.object({
|
|
153
|
+
title: /* @__PURE__ */ z.string().describe("Main form title for positive response.").optional(),
|
|
154
|
+
confirmation: /* @__PURE__ */ z.object({
|
|
155
|
+
title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
|
|
156
|
+
message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
|
|
157
|
+
addToCalendarActionLabel: /* @__PURE__ */ z.string().describe('"Add to calendar" call-to-action label text.').optional(),
|
|
158
|
+
shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
|
|
159
159
|
}).describe("Confirmation messages shown after registration.").optional()
|
|
160
160
|
}).describe(
|
|
161
161
|
'Messages displayed when an RSVP\'s `status` is set to `"WAITLIST"`, for when the event is full and a waitlist is available).'
|
|
162
162
|
).optional(),
|
|
163
|
-
negativeMessages: z.object({
|
|
164
|
-
title: z.string().describe("Main form title for negative response.").optional(),
|
|
165
|
-
confirmation: z.object({
|
|
166
|
-
title: z.string().describe("Confirmation message title.").optional(),
|
|
167
|
-
shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
|
|
163
|
+
negativeMessages: /* @__PURE__ */ z.object({
|
|
164
|
+
title: /* @__PURE__ */ z.string().describe("Main form title for negative response.").optional(),
|
|
165
|
+
confirmation: /* @__PURE__ */ z.object({
|
|
166
|
+
title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
|
|
167
|
+
shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
|
|
168
168
|
}).describe("Confirmation messages shown after registration.").optional()
|
|
169
169
|
}).describe(
|
|
170
170
|
'Messages displayed when an RSVP\'s `status` is set to `"NO"`.'
|
|
171
171
|
).optional(),
|
|
172
|
-
submitActionLabel: z.string().describe('"Submit form" call-to-action label text.').optional()
|
|
172
|
+
submitActionLabel: /* @__PURE__ */ z.string().describe('"Submit form" call-to-action label text.').optional()
|
|
173
173
|
}).describe(
|
|
174
174
|
"[RSVP form](https://dev.wix.com/docs/rest/business-solutions/events/rsvp-v2/introduction) messages."
|
|
175
175
|
).optional(),
|
|
176
|
-
checkout: z.object({
|
|
177
|
-
title: z.string().describe("Main form title for response.").optional(),
|
|
178
|
-
submitActionLabel: z.string().describe("Submit form call-to-action label text.").optional(),
|
|
179
|
-
confirmation: z.object({
|
|
180
|
-
title: z.string().describe("Confirmation message title.").optional(),
|
|
181
|
-
message: z.string().describe("Confirmation message text.").optional(),
|
|
182
|
-
downloadTicketsLabel: z.string().describe('"Download tickets" call-to-action label text.').optional(),
|
|
183
|
-
addToCalendarLabel: z.string().describe('"Add to calendar" call-to-action label text.').optional(),
|
|
184
|
-
shareEventLabel: z.string().describe('"Share event" call-to-action label text.').optional()
|
|
176
|
+
checkout: /* @__PURE__ */ z.object({
|
|
177
|
+
title: /* @__PURE__ */ z.string().describe("Main form title for response.").optional(),
|
|
178
|
+
submitActionLabel: /* @__PURE__ */ z.string().describe("Submit form call-to-action label text.").optional(),
|
|
179
|
+
confirmation: /* @__PURE__ */ z.object({
|
|
180
|
+
title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
|
|
181
|
+
message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
|
|
182
|
+
downloadTicketsLabel: /* @__PURE__ */ z.string().describe('"Download tickets" call-to-action label text.').optional(),
|
|
183
|
+
addToCalendarLabel: /* @__PURE__ */ z.string().describe('"Add to calendar" call-to-action label text.').optional(),
|
|
184
|
+
shareEventLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
|
|
185
185
|
}).describe("Confirmation messages shown after checkout.").optional()
|
|
186
186
|
}).describe("Checkout form messages.").optional(),
|
|
187
|
-
registrationClosed: z.object({
|
|
188
|
-
message: z.string().describe("Message shown when event registration is closed.").optional(),
|
|
189
|
-
exploreEventsActionLabel: z.string().describe('"Explore other events" call-to-action label text.').optional()
|
|
187
|
+
registrationClosed: /* @__PURE__ */ z.object({
|
|
188
|
+
message: /* @__PURE__ */ z.string().describe("Message shown when event registration is closed.").optional(),
|
|
189
|
+
exploreEventsActionLabel: /* @__PURE__ */ z.string().describe('"Explore other events" call-to-action label text.').optional()
|
|
190
190
|
}).describe("Messages shown when event registration is closed.").optional(),
|
|
191
|
-
ticketsUnavailable: z.object({
|
|
192
|
-
message: z.string().describe("Message shown when event tickets are unavailable.").optional(),
|
|
193
|
-
exploreEventsActionLabel: z.string().describe('"Explore other events" call-to-action label text.').optional()
|
|
191
|
+
ticketsUnavailable: /* @__PURE__ */ z.object({
|
|
192
|
+
message: /* @__PURE__ */ z.string().describe("Message shown when event tickets are unavailable.").optional(),
|
|
193
|
+
exploreEventsActionLabel: /* @__PURE__ */ z.string().describe('"Explore other events" call-to-action label text.').optional()
|
|
194
194
|
}).describe("Messages shown when event tickets are unavailable.").optional()
|
|
195
195
|
}).describe(
|
|
196
196
|
'Set of defined form messages displayed in the UI before, during, and after a registration flow.\nIncludes the configuration of form titles, response labels, "thank you" messages, and call-to-action texts.'
|
|
197
197
|
).optional()
|
|
198
198
|
});
|
|
199
199
|
var AddControlRequest = /* @__PURE__ */ z.object({
|
|
200
|
-
eventId: z.string().describe("Event ID to which the form belongs.").regex(
|
|
200
|
+
eventId: /* @__PURE__ */ z.string().describe("Event ID to which the form belongs.").regex(
|
|
201
201
|
/^[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}$/,
|
|
202
202
|
"Must be a valid GUID"
|
|
203
203
|
),
|
|
204
|
-
options: z.intersection(
|
|
205
|
-
z.object({}),
|
|
206
|
-
z.xor([
|
|
207
|
-
z.object({
|
|
208
|
-
address: z.never().optional(),
|
|
209
|
-
date: z.never().optional(),
|
|
210
|
-
additionalGuests: z.never().optional(),
|
|
211
|
-
dropdown: z.never().optional(),
|
|
212
|
-
checkbox: z.never().optional(),
|
|
213
|
-
text: z.never().optional(),
|
|
214
|
-
radioButton: z.never().optional(),
|
|
215
|
-
phone: z.object({
|
|
216
|
-
label: z.string().describe("Phone input label.").max(100).optional(),
|
|
217
|
-
mandatory: z.boolean().describe("Whether the phone input is required.").optional()
|
|
204
|
+
options: /* @__PURE__ */ z.intersection(
|
|
205
|
+
/* @__PURE__ */ z.object({}),
|
|
206
|
+
/* @__PURE__ */ z.xor([
|
|
207
|
+
/* @__PURE__ */ z.object({
|
|
208
|
+
address: /* @__PURE__ */ z.never().optional(),
|
|
209
|
+
date: /* @__PURE__ */ z.never().optional(),
|
|
210
|
+
additionalGuests: /* @__PURE__ */ z.never().optional(),
|
|
211
|
+
dropdown: /* @__PURE__ */ z.never().optional(),
|
|
212
|
+
checkbox: /* @__PURE__ */ z.never().optional(),
|
|
213
|
+
text: /* @__PURE__ */ z.never().optional(),
|
|
214
|
+
radioButton: /* @__PURE__ */ z.never().optional(),
|
|
215
|
+
phone: /* @__PURE__ */ z.object({
|
|
216
|
+
label: /* @__PURE__ */ z.string().describe("Phone input label.").max(100).optional(),
|
|
217
|
+
mandatory: /* @__PURE__ */ z.boolean().describe("Whether the phone input is required.").optional()
|
|
218
218
|
}).describe("Phone number input control.")
|
|
219
219
|
}),
|
|
220
|
-
z.object({
|
|
221
|
-
phone: z.never().optional(),
|
|
222
|
-
date: z.never().optional(),
|
|
223
|
-
additionalGuests: z.never().optional(),
|
|
224
|
-
dropdown: z.never().optional(),
|
|
225
|
-
checkbox: z.never().optional(),
|
|
226
|
-
text: z.never().optional(),
|
|
227
|
-
radioButton: z.never().optional(),
|
|
228
|
-
address: z.object({
|
|
229
|
-
labels: z.object({
|
|
230
|
-
addressLine: z.string().describe("Single-line address input label.").max(100).optional(),
|
|
231
|
-
country: z.string().describe("Country input label.").max(100).optional(),
|
|
232
|
-
subdivision: z.string().describe("Subdivision input label.").max(100).optional(),
|
|
233
|
-
city: z.string().describe("City input label.").max(100).optional(),
|
|
234
|
-
postalCode: z.string().describe("Postal code input label.").max(100).optional(),
|
|
235
|
-
streetAddress: z.string().describe("Street address input label.").max(100).optional()
|
|
220
|
+
/* @__PURE__ */ z.object({
|
|
221
|
+
phone: /* @__PURE__ */ z.never().optional(),
|
|
222
|
+
date: /* @__PURE__ */ z.never().optional(),
|
|
223
|
+
additionalGuests: /* @__PURE__ */ z.never().optional(),
|
|
224
|
+
dropdown: /* @__PURE__ */ z.never().optional(),
|
|
225
|
+
checkbox: /* @__PURE__ */ z.never().optional(),
|
|
226
|
+
text: /* @__PURE__ */ z.never().optional(),
|
|
227
|
+
radioButton: /* @__PURE__ */ z.never().optional(),
|
|
228
|
+
address: /* @__PURE__ */ z.object({
|
|
229
|
+
labels: /* @__PURE__ */ z.object({
|
|
230
|
+
addressLine: /* @__PURE__ */ z.string().describe("Single-line address input label.").max(100).optional(),
|
|
231
|
+
country: /* @__PURE__ */ z.string().describe("Country input label.").max(100).optional(),
|
|
232
|
+
subdivision: /* @__PURE__ */ z.string().describe("Subdivision input label.").max(100).optional(),
|
|
233
|
+
city: /* @__PURE__ */ z.string().describe("City input label.").max(100).optional(),
|
|
234
|
+
postalCode: /* @__PURE__ */ z.string().describe("Postal code input label.").max(100).optional(),
|
|
235
|
+
streetAddress: /* @__PURE__ */ z.string().describe("Street address input label.").max(100).optional()
|
|
236
236
|
}).describe("Address control labels for each input.").optional(),
|
|
237
|
-
full: z.boolean().describe(
|
|
237
|
+
full: /* @__PURE__ */ z.boolean().describe(
|
|
238
238
|
"Whether an address is multi-line (consisting of multiple fields such as country, city, postal code). When `false`, address is single-line."
|
|
239
239
|
).optional(),
|
|
240
|
-
mandatory: z.boolean().describe("Whether the address input is required.").optional()
|
|
240
|
+
mandatory: /* @__PURE__ */ z.boolean().describe("Whether the address input is required.").optional()
|
|
241
241
|
}).describe("Single-line or full address input control.")
|
|
242
242
|
}),
|
|
243
|
-
z.object({
|
|
244
|
-
phone: z.never().optional(),
|
|
245
|
-
address: z.never().optional(),
|
|
246
|
-
additionalGuests: z.never().optional(),
|
|
247
|
-
dropdown: z.never().optional(),
|
|
248
|
-
checkbox: z.never().optional(),
|
|
249
|
-
text: z.never().optional(),
|
|
250
|
-
radioButton: z.never().optional(),
|
|
251
|
-
date: z.object({
|
|
252
|
-
label: z.string().describe("Input control label.").max(100).optional(),
|
|
253
|
-
mandatory: z.boolean().describe("Whether the date input is required.").optional()
|
|
243
|
+
/* @__PURE__ */ z.object({
|
|
244
|
+
phone: /* @__PURE__ */ z.never().optional(),
|
|
245
|
+
address: /* @__PURE__ */ z.never().optional(),
|
|
246
|
+
additionalGuests: /* @__PURE__ */ z.never().optional(),
|
|
247
|
+
dropdown: /* @__PURE__ */ z.never().optional(),
|
|
248
|
+
checkbox: /* @__PURE__ */ z.never().optional(),
|
|
249
|
+
text: /* @__PURE__ */ z.never().optional(),
|
|
250
|
+
radioButton: /* @__PURE__ */ z.never().optional(),
|
|
251
|
+
date: /* @__PURE__ */ z.object({
|
|
252
|
+
label: /* @__PURE__ */ z.string().describe("Input control label.").max(100).optional(),
|
|
253
|
+
mandatory: /* @__PURE__ */ z.boolean().describe("Whether the date input is required.").optional()
|
|
254
254
|
}).describe("Day, month, year date input control.")
|
|
255
255
|
}),
|
|
256
|
-
z.object({
|
|
257
|
-
phone: z.never().optional(),
|
|
258
|
-
address: z.never().optional(),
|
|
259
|
-
date: z.never().optional(),
|
|
260
|
-
dropdown: z.never().optional(),
|
|
261
|
-
checkbox: z.never().optional(),
|
|
262
|
-
text: z.never().optional(),
|
|
263
|
-
radioButton: z.never().optional(),
|
|
264
|
-
additionalGuests: z.object({
|
|
265
|
-
labels: z.object({
|
|
266
|
-
single: z.string().describe("Input label for a single guest.").max(200).optional(),
|
|
267
|
-
multiple: z.string().describe("Input label for multiple guests.").max(200).optional()
|
|
256
|
+
/* @__PURE__ */ z.object({
|
|
257
|
+
phone: /* @__PURE__ */ z.never().optional(),
|
|
258
|
+
address: /* @__PURE__ */ z.never().optional(),
|
|
259
|
+
date: /* @__PURE__ */ z.never().optional(),
|
|
260
|
+
dropdown: /* @__PURE__ */ z.never().optional(),
|
|
261
|
+
checkbox: /* @__PURE__ */ z.never().optional(),
|
|
262
|
+
text: /* @__PURE__ */ z.never().optional(),
|
|
263
|
+
radioButton: /* @__PURE__ */ z.never().optional(),
|
|
264
|
+
additionalGuests: /* @__PURE__ */ z.object({
|
|
265
|
+
labels: /* @__PURE__ */ z.object({
|
|
266
|
+
single: /* @__PURE__ */ z.string().describe("Input label for a single guest.").max(200).optional(),
|
|
267
|
+
multiple: /* @__PURE__ */ z.string().describe("Input label for multiple guests.").max(200).optional()
|
|
268
268
|
}).describe("Additional guests control labels for each input.").optional(),
|
|
269
|
-
namesMandatory: z.boolean().describe("Whether the individual guest names are required.").optional(),
|
|
270
|
-
maxGuests: z.number().int().describe("Maximum number of additional guests.").min(1).max(10).optional()
|
|
269
|
+
namesMandatory: /* @__PURE__ */ z.boolean().describe("Whether the individual guest names are required.").optional(),
|
|
270
|
+
maxGuests: /* @__PURE__ */ z.number().int().describe("Maximum number of additional guests.").min(1).max(10).optional()
|
|
271
271
|
}).describe("Additional guests input control.")
|
|
272
272
|
}),
|
|
273
|
-
z.object({
|
|
274
|
-
phone: z.never().optional(),
|
|
275
|
-
address: z.never().optional(),
|
|
276
|
-
date: z.never().optional(),
|
|
277
|
-
additionalGuests: z.never().optional(),
|
|
278
|
-
checkbox: z.never().optional(),
|
|
279
|
-
text: z.never().optional(),
|
|
280
|
-
radioButton: z.never().optional(),
|
|
281
|
-
dropdown: z.object({
|
|
282
|
-
label: z.string().describe("Input control label.").max(200).optional(),
|
|
283
|
-
options: z.array(z.string()).min(2).max(200).optional(),
|
|
284
|
-
mandatory: z.boolean().describe("Whether a choice is required.").optional(),
|
|
285
|
-
defaultOptionSelection: z.intersection(
|
|
286
|
-
z.object({}),
|
|
287
|
-
z.xor([
|
|
288
|
-
z.object({
|
|
289
|
-
optionIndex: z.never().optional(),
|
|
290
|
-
placeholderText: z.never().optional()
|
|
273
|
+
/* @__PURE__ */ z.object({
|
|
274
|
+
phone: /* @__PURE__ */ z.never().optional(),
|
|
275
|
+
address: /* @__PURE__ */ z.never().optional(),
|
|
276
|
+
date: /* @__PURE__ */ z.never().optional(),
|
|
277
|
+
additionalGuests: /* @__PURE__ */ z.never().optional(),
|
|
278
|
+
checkbox: /* @__PURE__ */ z.never().optional(),
|
|
279
|
+
text: /* @__PURE__ */ z.never().optional(),
|
|
280
|
+
radioButton: /* @__PURE__ */ z.never().optional(),
|
|
281
|
+
dropdown: /* @__PURE__ */ z.object({
|
|
282
|
+
label: /* @__PURE__ */ z.string().describe("Input control label.").max(200).optional(),
|
|
283
|
+
options: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).min(2).max(200).optional(),
|
|
284
|
+
mandatory: /* @__PURE__ */ z.boolean().describe("Whether a choice is required.").optional(),
|
|
285
|
+
defaultOptionSelection: /* @__PURE__ */ z.intersection(
|
|
286
|
+
/* @__PURE__ */ z.object({}),
|
|
287
|
+
/* @__PURE__ */ z.xor([
|
|
288
|
+
/* @__PURE__ */ z.object({
|
|
289
|
+
optionIndex: /* @__PURE__ */ z.never().optional(),
|
|
290
|
+
placeholderText: /* @__PURE__ */ z.never().optional()
|
|
291
291
|
}),
|
|
292
|
-
z.object({
|
|
293
|
-
placeholderText: z.never().optional(),
|
|
294
|
-
optionIndex: z.number().int().describe(
|
|
292
|
+
/* @__PURE__ */ z.object({
|
|
293
|
+
placeholderText: /* @__PURE__ */ z.never().optional(),
|
|
294
|
+
optionIndex: /* @__PURE__ */ z.number().int().describe(
|
|
295
295
|
"0-based index from predefined `controls.inputs.options` which is initial selection."
|
|
296
296
|
).min(0).max(199)
|
|
297
297
|
}),
|
|
298
|
-
z.object({
|
|
299
|
-
optionIndex: z.never().optional(),
|
|
300
|
-
placeholderText: z.string().describe(
|
|
298
|
+
/* @__PURE__ */ z.object({
|
|
299
|
+
optionIndex: /* @__PURE__ */ z.never().optional(),
|
|
300
|
+
placeholderText: /* @__PURE__ */ z.string().describe(
|
|
301
301
|
'Placeholder hint describing expected choices, such as "Please select".\nConsidered an empty choice.'
|
|
302
302
|
).max(200)
|
|
303
303
|
})
|
|
@@ -307,62 +307,62 @@ var AddControlRequest = /* @__PURE__ */ z.object({
|
|
|
307
307
|
).optional()
|
|
308
308
|
}).describe("Single-choice dropdown style input control.")
|
|
309
309
|
}),
|
|
310
|
-
z.object({
|
|
311
|
-
phone: z.never().optional(),
|
|
312
|
-
address: z.never().optional(),
|
|
313
|
-
date: z.never().optional(),
|
|
314
|
-
additionalGuests: z.never().optional(),
|
|
315
|
-
dropdown: z.never().optional(),
|
|
316
|
-
text: z.never().optional(),
|
|
317
|
-
radioButton: z.never().optional(),
|
|
318
|
-
checkbox: z.object({
|
|
319
|
-
label: z.string().describe("Input control label.").max(200).optional(),
|
|
320
|
-
mandatory: z.boolean().describe("Whether at least one checkbox is required.").optional(),
|
|
321
|
-
options: z.array(z.string()).min(1).max(200).optional()
|
|
310
|
+
/* @__PURE__ */ z.object({
|
|
311
|
+
phone: /* @__PURE__ */ z.never().optional(),
|
|
312
|
+
address: /* @__PURE__ */ z.never().optional(),
|
|
313
|
+
date: /* @__PURE__ */ z.never().optional(),
|
|
314
|
+
additionalGuests: /* @__PURE__ */ z.never().optional(),
|
|
315
|
+
dropdown: /* @__PURE__ */ z.never().optional(),
|
|
316
|
+
text: /* @__PURE__ */ z.never().optional(),
|
|
317
|
+
radioButton: /* @__PURE__ */ z.never().optional(),
|
|
318
|
+
checkbox: /* @__PURE__ */ z.object({
|
|
319
|
+
label: /* @__PURE__ */ z.string().describe("Input control label.").max(200).optional(),
|
|
320
|
+
mandatory: /* @__PURE__ */ z.boolean().describe("Whether at least one checkbox is required.").optional(),
|
|
321
|
+
options: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).min(1).max(200).optional()
|
|
322
322
|
}).describe("Multiple-choice checkbox style input control.")
|
|
323
323
|
}),
|
|
324
|
-
z.object({
|
|
325
|
-
phone: z.never().optional(),
|
|
326
|
-
address: z.never().optional(),
|
|
327
|
-
date: z.never().optional(),
|
|
328
|
-
additionalGuests: z.never().optional(),
|
|
329
|
-
dropdown: z.never().optional(),
|
|
330
|
-
checkbox: z.never().optional(),
|
|
331
|
-
radioButton: z.never().optional(),
|
|
332
|
-
text: z.object({
|
|
333
|
-
label: z.string().describe("Input control label.").max(200).optional(),
|
|
334
|
-
mandatory: z.boolean().describe("Whether a text input is required.").optional(),
|
|
335
|
-
maxLength: z.number().int().describe("Maximum number of characters allowed.").min(0).max(1e3).optional(),
|
|
336
|
-
multiLine: z.boolean().describe(
|
|
324
|
+
/* @__PURE__ */ z.object({
|
|
325
|
+
phone: /* @__PURE__ */ z.never().optional(),
|
|
326
|
+
address: /* @__PURE__ */ z.never().optional(),
|
|
327
|
+
date: /* @__PURE__ */ z.never().optional(),
|
|
328
|
+
additionalGuests: /* @__PURE__ */ z.never().optional(),
|
|
329
|
+
dropdown: /* @__PURE__ */ z.never().optional(),
|
|
330
|
+
checkbox: /* @__PURE__ */ z.never().optional(),
|
|
331
|
+
radioButton: /* @__PURE__ */ z.never().optional(),
|
|
332
|
+
text: /* @__PURE__ */ z.object({
|
|
333
|
+
label: /* @__PURE__ */ z.string().describe("Input control label.").max(200).optional(),
|
|
334
|
+
mandatory: /* @__PURE__ */ z.boolean().describe("Whether a text input is required.").optional(),
|
|
335
|
+
maxLength: /* @__PURE__ */ z.number().int().describe("Maximum number of characters allowed.").min(0).max(1e3).optional(),
|
|
336
|
+
multiLine: /* @__PURE__ */ z.boolean().describe(
|
|
337
337
|
"Whether the input control should allow multiple lines in text."
|
|
338
338
|
).optional(),
|
|
339
|
-
comment: z.boolean().describe(
|
|
339
|
+
comment: /* @__PURE__ */ z.boolean().describe(
|
|
340
340
|
"Whether the input control should be displayed as a comment."
|
|
341
341
|
).optional()
|
|
342
342
|
}).describe("Free-form text input control.")
|
|
343
343
|
}),
|
|
344
|
-
z.object({
|
|
345
|
-
phone: z.never().optional(),
|
|
346
|
-
address: z.never().optional(),
|
|
347
|
-
date: z.never().optional(),
|
|
348
|
-
additionalGuests: z.never().optional(),
|
|
349
|
-
dropdown: z.never().optional(),
|
|
350
|
-
checkbox: z.never().optional(),
|
|
351
|
-
text: z.never().optional(),
|
|
352
|
-
radioButton: z.object({
|
|
353
|
-
label: z.string().describe("Input control label.").max(200).optional(),
|
|
354
|
-
options: z.array(z.string()).min(2).max(200).optional()
|
|
344
|
+
/* @__PURE__ */ z.object({
|
|
345
|
+
phone: /* @__PURE__ */ z.never().optional(),
|
|
346
|
+
address: /* @__PURE__ */ z.never().optional(),
|
|
347
|
+
date: /* @__PURE__ */ z.never().optional(),
|
|
348
|
+
additionalGuests: /* @__PURE__ */ z.never().optional(),
|
|
349
|
+
dropdown: /* @__PURE__ */ z.never().optional(),
|
|
350
|
+
checkbox: /* @__PURE__ */ z.never().optional(),
|
|
351
|
+
text: /* @__PURE__ */ z.never().optional(),
|
|
352
|
+
radioButton: /* @__PURE__ */ z.object({
|
|
353
|
+
label: /* @__PURE__ */ z.string().describe("Input control label.").max(200).optional(),
|
|
354
|
+
options: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).min(2).max(200).optional()
|
|
355
355
|
}).describe("Single-choice radio button style input control.")
|
|
356
356
|
})
|
|
357
357
|
])
|
|
358
358
|
).describe("Optional fields.")
|
|
359
359
|
});
|
|
360
360
|
var AddControlResponse = /* @__PURE__ */ z.object({
|
|
361
|
-
_id: z.string().describe("Generated unique input control ID.").optional(),
|
|
362
|
-
form: z.object({
|
|
363
|
-
controls: z.array(
|
|
364
|
-
z.object({
|
|
365
|
-
type: z.enum([
|
|
361
|
+
_id: /* @__PURE__ */ z.string().describe("Generated unique input control ID.").optional(),
|
|
362
|
+
form: /* @__PURE__ */ z.object({
|
|
363
|
+
controls: /* @__PURE__ */ z.array(
|
|
364
|
+
/* @__PURE__ */ z.object({
|
|
365
|
+
type: /* @__PURE__ */ z.enum([
|
|
366
366
|
"INPUT",
|
|
367
367
|
"TEXTAREA",
|
|
368
368
|
"DROPDOWN",
|
|
@@ -374,26 +374,26 @@ var AddControlResponse = /* @__PURE__ */ z.object({
|
|
|
374
374
|
"ADDRESS_FULL",
|
|
375
375
|
"DATE"
|
|
376
376
|
]).describe("Field control type.").optional(),
|
|
377
|
-
system: z.boolean().describe(
|
|
377
|
+
system: /* @__PURE__ */ z.boolean().describe(
|
|
378
378
|
"Whether the control is mandatory (such as `name` & `email`). When `true`, only the label can be changed."
|
|
379
379
|
).optional(),
|
|
380
|
-
name: z.string().describe("Deprecated: Use `id` or `_id`.").optional(),
|
|
381
|
-
inputs: z.array(
|
|
382
|
-
z.object({
|
|
383
|
-
name: z.string().describe("Field name.").optional(),
|
|
384
|
-
array: z.boolean().describe(
|
|
380
|
+
name: /* @__PURE__ */ z.string().describe("Deprecated: Use `id` or `_id`.").optional(),
|
|
381
|
+
inputs: /* @__PURE__ */ z.array(
|
|
382
|
+
/* @__PURE__ */ z.object({
|
|
383
|
+
name: /* @__PURE__ */ z.string().describe("Field name.").optional(),
|
|
384
|
+
array: /* @__PURE__ */ z.boolean().describe(
|
|
385
385
|
"*Deprecated:** Use `controls.inputs.type.TEXT_ARRAY`."
|
|
386
386
|
).optional(),
|
|
387
|
-
label: z.string().describe("Main field label.").optional(),
|
|
388
|
-
additionalLabels: z.record(z.string(), z.string()).describe(
|
|
387
|
+
label: /* @__PURE__ */ z.string().describe("Main field label.").optional(),
|
|
388
|
+
additionalLabels: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.string()).describe(
|
|
389
389
|
"Additional labels for multi-valued fields such as address."
|
|
390
390
|
).optional(),
|
|
391
|
-
options: z.array(z.string()).optional(),
|
|
392
|
-
mandatory: z.boolean().describe("Whether field is mandatory.").optional(),
|
|
393
|
-
maxLength: z.number().int().describe(
|
|
391
|
+
options: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).optional(),
|
|
392
|
+
mandatory: /* @__PURE__ */ z.boolean().describe("Whether field is mandatory.").optional(),
|
|
393
|
+
maxLength: /* @__PURE__ */ z.number().int().describe(
|
|
394
394
|
"Maximum number of accepted characters (relevant for text fields)."
|
|
395
395
|
).optional(),
|
|
396
|
-
type: z.enum([
|
|
396
|
+
type: /* @__PURE__ */ z.enum([
|
|
397
397
|
"TEXT",
|
|
398
398
|
"NUMBER",
|
|
399
399
|
"TEXT_ARRAY",
|
|
@@ -402,25 +402,25 @@ var AddControlResponse = /* @__PURE__ */ z.object({
|
|
|
402
402
|
]).describe(
|
|
403
403
|
"Type which determines field format.\nUsed to validate submitted response."
|
|
404
404
|
).optional(),
|
|
405
|
-
maxSize: z.number().int().describe(
|
|
405
|
+
maxSize: /* @__PURE__ */ z.number().int().describe(
|
|
406
406
|
"The maximum number of accepted values for array input.\n\n**Note:** Only applicable for `TEXT_ARRAY` input fields."
|
|
407
407
|
).optional().nullable(),
|
|
408
|
-
defaultOptionSelection: z.intersection(
|
|
409
|
-
z.object({}),
|
|
410
|
-
z.xor([
|
|
411
|
-
z.object({
|
|
412
|
-
optionIndex: z.never().optional(),
|
|
413
|
-
placeholderText: z.never().optional()
|
|
408
|
+
defaultOptionSelection: /* @__PURE__ */ z.intersection(
|
|
409
|
+
/* @__PURE__ */ z.object({}),
|
|
410
|
+
/* @__PURE__ */ z.xor([
|
|
411
|
+
/* @__PURE__ */ z.object({
|
|
412
|
+
optionIndex: /* @__PURE__ */ z.never().optional(),
|
|
413
|
+
placeholderText: /* @__PURE__ */ z.never().optional()
|
|
414
414
|
}),
|
|
415
|
-
z.object({
|
|
416
|
-
placeholderText: z.never().optional(),
|
|
417
|
-
optionIndex: z.number().int().describe(
|
|
415
|
+
/* @__PURE__ */ z.object({
|
|
416
|
+
placeholderText: /* @__PURE__ */ z.never().optional(),
|
|
417
|
+
optionIndex: /* @__PURE__ */ z.number().int().describe(
|
|
418
418
|
"0-based index from predefined `controls.inputs.options` which is initial selection."
|
|
419
419
|
).min(0).max(199)
|
|
420
420
|
}),
|
|
421
|
-
z.object({
|
|
422
|
-
optionIndex: z.never().optional(),
|
|
423
|
-
placeholderText: z.string().describe(
|
|
421
|
+
/* @__PURE__ */ z.object({
|
|
422
|
+
optionIndex: /* @__PURE__ */ z.never().optional(),
|
|
423
|
+
placeholderText: /* @__PURE__ */ z.string().describe(
|
|
424
424
|
'Placeholder hint describing expected choices, such as "Please select".\nConsidered an empty choice.'
|
|
425
425
|
).max(200)
|
|
426
426
|
})
|
|
@@ -428,83 +428,83 @@ var AddControlResponse = /* @__PURE__ */ z.object({
|
|
|
428
428
|
).describe(
|
|
429
429
|
"Default option initially selected when an input has multiple choices.\n\nDefaults to first (0th) option, if not configured.\nCurrently only applicable for `type.dropdown`."
|
|
430
430
|
).optional(),
|
|
431
|
-
labels: z.array(
|
|
432
|
-
z.object({
|
|
433
|
-
name: z.string().describe("Field name.").optional(),
|
|
434
|
-
label: z.string().describe("Field label.").optional()
|
|
431
|
+
labels: /* @__PURE__ */ z.array(
|
|
432
|
+
/* @__PURE__ */ z.object({
|
|
433
|
+
name: /* @__PURE__ */ z.string().describe("Field name.").optional(),
|
|
434
|
+
label: /* @__PURE__ */ z.string().describe("Field label.").optional()
|
|
435
435
|
})
|
|
436
436
|
).optional()
|
|
437
437
|
})
|
|
438
438
|
).optional(),
|
|
439
|
-
label: z.string().describe("*Deprecated:** Use `controls.inputs.label`.").optional(),
|
|
440
|
-
orderIndex: z.number().int().describe(
|
|
439
|
+
label: /* @__PURE__ */ z.string().describe("*Deprecated:** Use `controls.inputs.label`.").optional(),
|
|
440
|
+
orderIndex: /* @__PURE__ */ z.number().int().describe(
|
|
441
441
|
"Field controls are sorted by this value in ascending order."
|
|
442
442
|
).optional(),
|
|
443
|
-
_id: z.string().describe("Unique control ID.").optional(),
|
|
444
|
-
deleted: z.boolean().describe("Whether the input control is deleted.").optional().nullable()
|
|
443
|
+
_id: /* @__PURE__ */ z.string().describe("Unique control ID.").optional(),
|
|
444
|
+
deleted: /* @__PURE__ */ z.boolean().describe("Whether the input control is deleted.").optional().nullable()
|
|
445
445
|
})
|
|
446
446
|
).optional(),
|
|
447
|
-
messages: z.object({
|
|
448
|
-
rsvp: z.object({
|
|
449
|
-
rsvpYesOption: z.string().describe('Label text indicating RSVP\'s `status` is `"YES"`.').optional(),
|
|
450
|
-
rsvpNoOption: z.string().describe('Label text indicating RSVP\'s `status` is `"NO"`.').optional(),
|
|
451
|
-
positiveMessages: z.object({
|
|
452
|
-
title: z.string().describe("Main form title for positive response.").optional(),
|
|
453
|
-
confirmation: z.object({
|
|
454
|
-
title: z.string().describe("Confirmation message title.").optional(),
|
|
455
|
-
message: z.string().describe("Confirmation message text.").optional(),
|
|
456
|
-
addToCalendarActionLabel: z.string().describe(
|
|
447
|
+
messages: /* @__PURE__ */ z.object({
|
|
448
|
+
rsvp: /* @__PURE__ */ z.object({
|
|
449
|
+
rsvpYesOption: /* @__PURE__ */ z.string().describe('Label text indicating RSVP\'s `status` is `"YES"`.').optional(),
|
|
450
|
+
rsvpNoOption: /* @__PURE__ */ z.string().describe('Label text indicating RSVP\'s `status` is `"NO"`.').optional(),
|
|
451
|
+
positiveMessages: /* @__PURE__ */ z.object({
|
|
452
|
+
title: /* @__PURE__ */ z.string().describe("Main form title for positive response.").optional(),
|
|
453
|
+
confirmation: /* @__PURE__ */ z.object({
|
|
454
|
+
title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
|
|
455
|
+
message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
|
|
456
|
+
addToCalendarActionLabel: /* @__PURE__ */ z.string().describe(
|
|
457
457
|
'"Add to calendar" call-to-action label text.'
|
|
458
458
|
).optional(),
|
|
459
|
-
shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
|
|
459
|
+
shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
|
|
460
460
|
}).describe("Confirmation messages shown after registration.").optional()
|
|
461
461
|
}).describe(
|
|
462
462
|
'Messages displayed when an RSVP\'s `status` is set to `"YES"`.'
|
|
463
463
|
).optional(),
|
|
464
|
-
waitlistMessages: z.object({
|
|
465
|
-
title: z.string().describe("Main form title for positive response.").optional(),
|
|
466
|
-
confirmation: z.object({
|
|
467
|
-
title: z.string().describe("Confirmation message title.").optional(),
|
|
468
|
-
message: z.string().describe("Confirmation message text.").optional(),
|
|
469
|
-
addToCalendarActionLabel: z.string().describe(
|
|
464
|
+
waitlistMessages: /* @__PURE__ */ z.object({
|
|
465
|
+
title: /* @__PURE__ */ z.string().describe("Main form title for positive response.").optional(),
|
|
466
|
+
confirmation: /* @__PURE__ */ z.object({
|
|
467
|
+
title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
|
|
468
|
+
message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
|
|
469
|
+
addToCalendarActionLabel: /* @__PURE__ */ z.string().describe(
|
|
470
470
|
'"Add to calendar" call-to-action label text.'
|
|
471
471
|
).optional(),
|
|
472
|
-
shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
|
|
472
|
+
shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
|
|
473
473
|
}).describe("Confirmation messages shown after registration.").optional()
|
|
474
474
|
}).describe(
|
|
475
475
|
'Messages displayed when an RSVP\'s `status` is set to `"WAITLIST"`, for when the event is full and a waitlist is available).'
|
|
476
476
|
).optional(),
|
|
477
|
-
negativeMessages: z.object({
|
|
478
|
-
title: z.string().describe("Main form title for negative response.").optional(),
|
|
479
|
-
confirmation: z.object({
|
|
480
|
-
title: z.string().describe("Confirmation message title.").optional(),
|
|
481
|
-
shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
|
|
477
|
+
negativeMessages: /* @__PURE__ */ z.object({
|
|
478
|
+
title: /* @__PURE__ */ z.string().describe("Main form title for negative response.").optional(),
|
|
479
|
+
confirmation: /* @__PURE__ */ z.object({
|
|
480
|
+
title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
|
|
481
|
+
shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
|
|
482
482
|
}).describe("Confirmation messages shown after registration.").optional()
|
|
483
483
|
}).describe(
|
|
484
484
|
'Messages displayed when an RSVP\'s `status` is set to `"NO"`.'
|
|
485
485
|
).optional(),
|
|
486
|
-
submitActionLabel: z.string().describe('"Submit form" call-to-action label text.').optional()
|
|
486
|
+
submitActionLabel: /* @__PURE__ */ z.string().describe('"Submit form" call-to-action label text.').optional()
|
|
487
487
|
}).describe(
|
|
488
488
|
"[RSVP form](https://dev.wix.com/docs/rest/business-solutions/events/rsvp-v2/introduction) messages."
|
|
489
489
|
).optional(),
|
|
490
|
-
checkout: z.object({
|
|
491
|
-
title: z.string().describe("Main form title for response.").optional(),
|
|
492
|
-
submitActionLabel: z.string().describe("Submit form call-to-action label text.").optional(),
|
|
493
|
-
confirmation: z.object({
|
|
494
|
-
title: z.string().describe("Confirmation message title.").optional(),
|
|
495
|
-
message: z.string().describe("Confirmation message text.").optional(),
|
|
496
|
-
downloadTicketsLabel: z.string().describe('"Download tickets" call-to-action label text.').optional(),
|
|
497
|
-
addToCalendarLabel: z.string().describe('"Add to calendar" call-to-action label text.').optional(),
|
|
498
|
-
shareEventLabel: z.string().describe('"Share event" call-to-action label text.').optional()
|
|
490
|
+
checkout: /* @__PURE__ */ z.object({
|
|
491
|
+
title: /* @__PURE__ */ z.string().describe("Main form title for response.").optional(),
|
|
492
|
+
submitActionLabel: /* @__PURE__ */ z.string().describe("Submit form call-to-action label text.").optional(),
|
|
493
|
+
confirmation: /* @__PURE__ */ z.object({
|
|
494
|
+
title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
|
|
495
|
+
message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
|
|
496
|
+
downloadTicketsLabel: /* @__PURE__ */ z.string().describe('"Download tickets" call-to-action label text.').optional(),
|
|
497
|
+
addToCalendarLabel: /* @__PURE__ */ z.string().describe('"Add to calendar" call-to-action label text.').optional(),
|
|
498
|
+
shareEventLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
|
|
499
499
|
}).describe("Confirmation messages shown after checkout.").optional()
|
|
500
500
|
}).describe("Checkout form messages.").optional(),
|
|
501
|
-
registrationClosed: z.object({
|
|
502
|
-
message: z.string().describe("Message shown when event registration is closed.").optional(),
|
|
503
|
-
exploreEventsActionLabel: z.string().describe('"Explore other events" call-to-action label text.').optional()
|
|
501
|
+
registrationClosed: /* @__PURE__ */ z.object({
|
|
502
|
+
message: /* @__PURE__ */ z.string().describe("Message shown when event registration is closed.").optional(),
|
|
503
|
+
exploreEventsActionLabel: /* @__PURE__ */ z.string().describe('"Explore other events" call-to-action label text.').optional()
|
|
504
504
|
}).describe("Messages shown when event registration is closed.").optional(),
|
|
505
|
-
ticketsUnavailable: z.object({
|
|
506
|
-
message: z.string().describe("Message shown when event tickets are unavailable.").optional(),
|
|
507
|
-
exploreEventsActionLabel: z.string().describe('"Explore other events" call-to-action label text.').optional()
|
|
505
|
+
ticketsUnavailable: /* @__PURE__ */ z.object({
|
|
506
|
+
message: /* @__PURE__ */ z.string().describe("Message shown when event tickets are unavailable.").optional(),
|
|
507
|
+
exploreEventsActionLabel: /* @__PURE__ */ z.string().describe('"Explore other events" call-to-action label text.').optional()
|
|
508
508
|
}).describe("Messages shown when event tickets are unavailable.").optional()
|
|
509
509
|
}).describe(
|
|
510
510
|
'Set of defined form messages displayed in the UI before, during, and after a registration flow.\nIncludes the configuration of form titles, response labels, "thank you" messages, and call-to-action texts.'
|
|
@@ -512,122 +512,122 @@ var AddControlResponse = /* @__PURE__ */ z.object({
|
|
|
512
512
|
}).describe("Modified event form.").optional()
|
|
513
513
|
});
|
|
514
514
|
var UpdateControlRequest = /* @__PURE__ */ z.object({
|
|
515
|
-
identifiers: z.object({
|
|
516
|
-
eventId: z.string().describe("Event ID to which the form belongs.").regex(
|
|
515
|
+
identifiers: /* @__PURE__ */ z.object({
|
|
516
|
+
eventId: /* @__PURE__ */ z.string().describe("Event ID to which the form belongs.").regex(
|
|
517
517
|
/^[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}$/,
|
|
518
518
|
"Must be a valid GUID"
|
|
519
519
|
),
|
|
520
|
-
_id: z.string().describe("Unique input control ID.")
|
|
520
|
+
_id: /* @__PURE__ */ z.string().describe("Unique input control ID.")
|
|
521
521
|
}).describe("Identifies what form to update."),
|
|
522
|
-
options: z.intersection(
|
|
523
|
-
z.object({
|
|
524
|
-
orderIndex: z.number().int().describe("Index used to sort input controls in ascending order.").optional()
|
|
522
|
+
options: /* @__PURE__ */ z.intersection(
|
|
523
|
+
/* @__PURE__ */ z.object({
|
|
524
|
+
orderIndex: /* @__PURE__ */ z.number().int().describe("Index used to sort input controls in ascending order.").optional()
|
|
525
525
|
}),
|
|
526
|
-
z.xor([
|
|
527
|
-
z.object({
|
|
528
|
-
address: z.never().optional(),
|
|
529
|
-
date: z.never().optional(),
|
|
530
|
-
additionalGuests: z.never().optional(),
|
|
531
|
-
dropdown: z.never().optional(),
|
|
532
|
-
checkbox: z.never().optional(),
|
|
533
|
-
text: z.never().optional(),
|
|
534
|
-
name: z.never().optional(),
|
|
535
|
-
email: z.never().optional(),
|
|
536
|
-
radioButton: z.never().optional(),
|
|
537
|
-
phone: z.object({
|
|
538
|
-
label: z.string().describe("Phone input label.").max(100).optional(),
|
|
539
|
-
mandatory: z.boolean().describe("Whether the phone input is required.").optional()
|
|
526
|
+
/* @__PURE__ */ z.xor([
|
|
527
|
+
/* @__PURE__ */ z.object({
|
|
528
|
+
address: /* @__PURE__ */ z.never().optional(),
|
|
529
|
+
date: /* @__PURE__ */ z.never().optional(),
|
|
530
|
+
additionalGuests: /* @__PURE__ */ z.never().optional(),
|
|
531
|
+
dropdown: /* @__PURE__ */ z.never().optional(),
|
|
532
|
+
checkbox: /* @__PURE__ */ z.never().optional(),
|
|
533
|
+
text: /* @__PURE__ */ z.never().optional(),
|
|
534
|
+
name: /* @__PURE__ */ z.never().optional(),
|
|
535
|
+
email: /* @__PURE__ */ z.never().optional(),
|
|
536
|
+
radioButton: /* @__PURE__ */ z.never().optional(),
|
|
537
|
+
phone: /* @__PURE__ */ z.object({
|
|
538
|
+
label: /* @__PURE__ */ z.string().describe("Phone input label.").max(100).optional(),
|
|
539
|
+
mandatory: /* @__PURE__ */ z.boolean().describe("Whether the phone input is required.").optional()
|
|
540
540
|
}).describe("Phone number input control.")
|
|
541
541
|
}),
|
|
542
|
-
z.object({
|
|
543
|
-
phone: z.never().optional(),
|
|
544
|
-
date: z.never().optional(),
|
|
545
|
-
additionalGuests: z.never().optional(),
|
|
546
|
-
dropdown: z.never().optional(),
|
|
547
|
-
checkbox: z.never().optional(),
|
|
548
|
-
text: z.never().optional(),
|
|
549
|
-
name: z.never().optional(),
|
|
550
|
-
email: z.never().optional(),
|
|
551
|
-
radioButton: z.never().optional(),
|
|
552
|
-
address: z.object({
|
|
553
|
-
labels: z.object({
|
|
554
|
-
addressLine: z.string().describe("Single-line address input label.").max(100).optional(),
|
|
555
|
-
country: z.string().describe("Country input label.").max(100).optional(),
|
|
556
|
-
subdivision: z.string().describe("Subdivision input label.").max(100).optional(),
|
|
557
|
-
city: z.string().describe("City input label.").max(100).optional(),
|
|
558
|
-
postalCode: z.string().describe("Postal code input label.").max(100).optional(),
|
|
559
|
-
streetAddress: z.string().describe("Street address input label.").max(100).optional()
|
|
542
|
+
/* @__PURE__ */ z.object({
|
|
543
|
+
phone: /* @__PURE__ */ z.never().optional(),
|
|
544
|
+
date: /* @__PURE__ */ z.never().optional(),
|
|
545
|
+
additionalGuests: /* @__PURE__ */ z.never().optional(),
|
|
546
|
+
dropdown: /* @__PURE__ */ z.never().optional(),
|
|
547
|
+
checkbox: /* @__PURE__ */ z.never().optional(),
|
|
548
|
+
text: /* @__PURE__ */ z.never().optional(),
|
|
549
|
+
name: /* @__PURE__ */ z.never().optional(),
|
|
550
|
+
email: /* @__PURE__ */ z.never().optional(),
|
|
551
|
+
radioButton: /* @__PURE__ */ z.never().optional(),
|
|
552
|
+
address: /* @__PURE__ */ z.object({
|
|
553
|
+
labels: /* @__PURE__ */ z.object({
|
|
554
|
+
addressLine: /* @__PURE__ */ z.string().describe("Single-line address input label.").max(100).optional(),
|
|
555
|
+
country: /* @__PURE__ */ z.string().describe("Country input label.").max(100).optional(),
|
|
556
|
+
subdivision: /* @__PURE__ */ z.string().describe("Subdivision input label.").max(100).optional(),
|
|
557
|
+
city: /* @__PURE__ */ z.string().describe("City input label.").max(100).optional(),
|
|
558
|
+
postalCode: /* @__PURE__ */ z.string().describe("Postal code input label.").max(100).optional(),
|
|
559
|
+
streetAddress: /* @__PURE__ */ z.string().describe("Street address input label.").max(100).optional()
|
|
560
560
|
}).describe("Address control labels for each input.").optional(),
|
|
561
|
-
full: z.boolean().describe(
|
|
561
|
+
full: /* @__PURE__ */ z.boolean().describe(
|
|
562
562
|
"Whether an address is multi-line (consisting of multiple fields such as country, city, postal code). When `false`, address is single-line."
|
|
563
563
|
).optional(),
|
|
564
|
-
mandatory: z.boolean().describe("Whether the address input is required.").optional()
|
|
564
|
+
mandatory: /* @__PURE__ */ z.boolean().describe("Whether the address input is required.").optional()
|
|
565
565
|
}).describe("Single-line or full address input control.")
|
|
566
566
|
}),
|
|
567
|
-
z.object({
|
|
568
|
-
phone: z.never().optional(),
|
|
569
|
-
address: z.never().optional(),
|
|
570
|
-
additionalGuests: z.never().optional(),
|
|
571
|
-
dropdown: z.never().optional(),
|
|
572
|
-
checkbox: z.never().optional(),
|
|
573
|
-
text: z.never().optional(),
|
|
574
|
-
name: z.never().optional(),
|
|
575
|
-
email: z.never().optional(),
|
|
576
|
-
radioButton: z.never().optional(),
|
|
577
|
-
date: z.object({
|
|
578
|
-
label: z.string().describe("Input control label.").max(100).optional(),
|
|
579
|
-
mandatory: z.boolean().describe("Whether the date input is required.").optional()
|
|
567
|
+
/* @__PURE__ */ z.object({
|
|
568
|
+
phone: /* @__PURE__ */ z.never().optional(),
|
|
569
|
+
address: /* @__PURE__ */ z.never().optional(),
|
|
570
|
+
additionalGuests: /* @__PURE__ */ z.never().optional(),
|
|
571
|
+
dropdown: /* @__PURE__ */ z.never().optional(),
|
|
572
|
+
checkbox: /* @__PURE__ */ z.never().optional(),
|
|
573
|
+
text: /* @__PURE__ */ z.never().optional(),
|
|
574
|
+
name: /* @__PURE__ */ z.never().optional(),
|
|
575
|
+
email: /* @__PURE__ */ z.never().optional(),
|
|
576
|
+
radioButton: /* @__PURE__ */ z.never().optional(),
|
|
577
|
+
date: /* @__PURE__ */ z.object({
|
|
578
|
+
label: /* @__PURE__ */ z.string().describe("Input control label.").max(100).optional(),
|
|
579
|
+
mandatory: /* @__PURE__ */ z.boolean().describe("Whether the date input is required.").optional()
|
|
580
580
|
}).describe("Day, month, year date input control.")
|
|
581
581
|
}),
|
|
582
|
-
z.object({
|
|
583
|
-
phone: z.never().optional(),
|
|
584
|
-
address: z.never().optional(),
|
|
585
|
-
date: z.never().optional(),
|
|
586
|
-
dropdown: z.never().optional(),
|
|
587
|
-
checkbox: z.never().optional(),
|
|
588
|
-
text: z.never().optional(),
|
|
589
|
-
name: z.never().optional(),
|
|
590
|
-
email: z.never().optional(),
|
|
591
|
-
radioButton: z.never().optional(),
|
|
592
|
-
additionalGuests: z.object({
|
|
593
|
-
labels: z.object({
|
|
594
|
-
single: z.string().describe("Input label for a single guest.").max(200).optional(),
|
|
595
|
-
multiple: z.string().describe("Input label for multiple guests.").max(200).optional()
|
|
582
|
+
/* @__PURE__ */ z.object({
|
|
583
|
+
phone: /* @__PURE__ */ z.never().optional(),
|
|
584
|
+
address: /* @__PURE__ */ z.never().optional(),
|
|
585
|
+
date: /* @__PURE__ */ z.never().optional(),
|
|
586
|
+
dropdown: /* @__PURE__ */ z.never().optional(),
|
|
587
|
+
checkbox: /* @__PURE__ */ z.never().optional(),
|
|
588
|
+
text: /* @__PURE__ */ z.never().optional(),
|
|
589
|
+
name: /* @__PURE__ */ z.never().optional(),
|
|
590
|
+
email: /* @__PURE__ */ z.never().optional(),
|
|
591
|
+
radioButton: /* @__PURE__ */ z.never().optional(),
|
|
592
|
+
additionalGuests: /* @__PURE__ */ z.object({
|
|
593
|
+
labels: /* @__PURE__ */ z.object({
|
|
594
|
+
single: /* @__PURE__ */ z.string().describe("Input label for a single guest.").max(200).optional(),
|
|
595
|
+
multiple: /* @__PURE__ */ z.string().describe("Input label for multiple guests.").max(200).optional()
|
|
596
596
|
}).describe("Additional guests control labels for each input.").optional(),
|
|
597
|
-
namesMandatory: z.boolean().describe("Whether the individual guest names are required.").optional(),
|
|
598
|
-
maxGuests: z.number().int().describe("Maximum number of additional guests.").min(1).max(10).optional()
|
|
597
|
+
namesMandatory: /* @__PURE__ */ z.boolean().describe("Whether the individual guest names are required.").optional(),
|
|
598
|
+
maxGuests: /* @__PURE__ */ z.number().int().describe("Maximum number of additional guests.").min(1).max(10).optional()
|
|
599
599
|
}).describe("Additional guests input control.")
|
|
600
600
|
}),
|
|
601
|
-
z.object({
|
|
602
|
-
phone: z.never().optional(),
|
|
603
|
-
address: z.never().optional(),
|
|
604
|
-
date: z.never().optional(),
|
|
605
|
-
additionalGuests: z.never().optional(),
|
|
606
|
-
checkbox: z.never().optional(),
|
|
607
|
-
text: z.never().optional(),
|
|
608
|
-
name: z.never().optional(),
|
|
609
|
-
email: z.never().optional(),
|
|
610
|
-
radioButton: z.never().optional(),
|
|
611
|
-
dropdown: z.object({
|
|
612
|
-
label: z.string().describe("Input control label.").max(200).optional(),
|
|
613
|
-
options: z.array(z.string()).min(2).max(200).optional(),
|
|
614
|
-
mandatory: z.boolean().describe("Whether a choice is required.").optional(),
|
|
615
|
-
defaultOptionSelection: z.intersection(
|
|
616
|
-
z.object({}),
|
|
617
|
-
z.xor([
|
|
618
|
-
z.object({
|
|
619
|
-
optionIndex: z.never().optional(),
|
|
620
|
-
placeholderText: z.never().optional()
|
|
601
|
+
/* @__PURE__ */ z.object({
|
|
602
|
+
phone: /* @__PURE__ */ z.never().optional(),
|
|
603
|
+
address: /* @__PURE__ */ z.never().optional(),
|
|
604
|
+
date: /* @__PURE__ */ z.never().optional(),
|
|
605
|
+
additionalGuests: /* @__PURE__ */ z.never().optional(),
|
|
606
|
+
checkbox: /* @__PURE__ */ z.never().optional(),
|
|
607
|
+
text: /* @__PURE__ */ z.never().optional(),
|
|
608
|
+
name: /* @__PURE__ */ z.never().optional(),
|
|
609
|
+
email: /* @__PURE__ */ z.never().optional(),
|
|
610
|
+
radioButton: /* @__PURE__ */ z.never().optional(),
|
|
611
|
+
dropdown: /* @__PURE__ */ z.object({
|
|
612
|
+
label: /* @__PURE__ */ z.string().describe("Input control label.").max(200).optional(),
|
|
613
|
+
options: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).min(2).max(200).optional(),
|
|
614
|
+
mandatory: /* @__PURE__ */ z.boolean().describe("Whether a choice is required.").optional(),
|
|
615
|
+
defaultOptionSelection: /* @__PURE__ */ z.intersection(
|
|
616
|
+
/* @__PURE__ */ z.object({}),
|
|
617
|
+
/* @__PURE__ */ z.xor([
|
|
618
|
+
/* @__PURE__ */ z.object({
|
|
619
|
+
optionIndex: /* @__PURE__ */ z.never().optional(),
|
|
620
|
+
placeholderText: /* @__PURE__ */ z.never().optional()
|
|
621
621
|
}),
|
|
622
|
-
z.object({
|
|
623
|
-
placeholderText: z.never().optional(),
|
|
624
|
-
optionIndex: z.number().int().describe(
|
|
622
|
+
/* @__PURE__ */ z.object({
|
|
623
|
+
placeholderText: /* @__PURE__ */ z.never().optional(),
|
|
624
|
+
optionIndex: /* @__PURE__ */ z.number().int().describe(
|
|
625
625
|
"0-based index from predefined `controls.inputs.options` which is initial selection."
|
|
626
626
|
).min(0).max(199)
|
|
627
627
|
}),
|
|
628
|
-
z.object({
|
|
629
|
-
optionIndex: z.never().optional(),
|
|
630
|
-
placeholderText: z.string().describe(
|
|
628
|
+
/* @__PURE__ */ z.object({
|
|
629
|
+
optionIndex: /* @__PURE__ */ z.never().optional(),
|
|
630
|
+
placeholderText: /* @__PURE__ */ z.string().describe(
|
|
631
631
|
'Placeholder hint describing expected choices, such as "Please select".\nConsidered an empty choice.'
|
|
632
632
|
).max(200)
|
|
633
633
|
})
|
|
@@ -637,98 +637,98 @@ var UpdateControlRequest = /* @__PURE__ */ z.object({
|
|
|
637
637
|
).optional()
|
|
638
638
|
}).describe("Single-choice dropdown style input control.")
|
|
639
639
|
}),
|
|
640
|
-
z.object({
|
|
641
|
-
phone: z.never().optional(),
|
|
642
|
-
address: z.never().optional(),
|
|
643
|
-
date: z.never().optional(),
|
|
644
|
-
additionalGuests: z.never().optional(),
|
|
645
|
-
dropdown: z.never().optional(),
|
|
646
|
-
text: z.never().optional(),
|
|
647
|
-
name: z.never().optional(),
|
|
648
|
-
email: z.never().optional(),
|
|
649
|
-
radioButton: z.never().optional(),
|
|
650
|
-
checkbox: z.object({
|
|
651
|
-
label: z.string().describe("Input control label.").max(200).optional(),
|
|
652
|
-
mandatory: z.boolean().describe("Whether at least one checkbox is required.").optional(),
|
|
653
|
-
options: z.array(z.string()).min(1).max(200).optional()
|
|
640
|
+
/* @__PURE__ */ z.object({
|
|
641
|
+
phone: /* @__PURE__ */ z.never().optional(),
|
|
642
|
+
address: /* @__PURE__ */ z.never().optional(),
|
|
643
|
+
date: /* @__PURE__ */ z.never().optional(),
|
|
644
|
+
additionalGuests: /* @__PURE__ */ z.never().optional(),
|
|
645
|
+
dropdown: /* @__PURE__ */ z.never().optional(),
|
|
646
|
+
text: /* @__PURE__ */ z.never().optional(),
|
|
647
|
+
name: /* @__PURE__ */ z.never().optional(),
|
|
648
|
+
email: /* @__PURE__ */ z.never().optional(),
|
|
649
|
+
radioButton: /* @__PURE__ */ z.never().optional(),
|
|
650
|
+
checkbox: /* @__PURE__ */ z.object({
|
|
651
|
+
label: /* @__PURE__ */ z.string().describe("Input control label.").max(200).optional(),
|
|
652
|
+
mandatory: /* @__PURE__ */ z.boolean().describe("Whether at least one checkbox is required.").optional(),
|
|
653
|
+
options: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).min(1).max(200).optional()
|
|
654
654
|
}).describe("Multiple-choice checkbox style input control.")
|
|
655
655
|
}),
|
|
656
|
-
z.object({
|
|
657
|
-
phone: z.never().optional(),
|
|
658
|
-
address: z.never().optional(),
|
|
659
|
-
date: z.never().optional(),
|
|
660
|
-
additionalGuests: z.never().optional(),
|
|
661
|
-
dropdown: z.never().optional(),
|
|
662
|
-
checkbox: z.never().optional(),
|
|
663
|
-
name: z.never().optional(),
|
|
664
|
-
email: z.never().optional(),
|
|
665
|
-
radioButton: z.never().optional(),
|
|
666
|
-
text: z.object({
|
|
667
|
-
label: z.string().describe("Input control label.").max(200).optional(),
|
|
668
|
-
mandatory: z.boolean().describe("Whether a text input is required.").optional(),
|
|
669
|
-
maxLength: z.number().int().describe("Maximum number of characters allowed.").min(0).max(1e3).optional(),
|
|
670
|
-
multiLine: z.boolean().describe(
|
|
656
|
+
/* @__PURE__ */ z.object({
|
|
657
|
+
phone: /* @__PURE__ */ z.never().optional(),
|
|
658
|
+
address: /* @__PURE__ */ z.never().optional(),
|
|
659
|
+
date: /* @__PURE__ */ z.never().optional(),
|
|
660
|
+
additionalGuests: /* @__PURE__ */ z.never().optional(),
|
|
661
|
+
dropdown: /* @__PURE__ */ z.never().optional(),
|
|
662
|
+
checkbox: /* @__PURE__ */ z.never().optional(),
|
|
663
|
+
name: /* @__PURE__ */ z.never().optional(),
|
|
664
|
+
email: /* @__PURE__ */ z.never().optional(),
|
|
665
|
+
radioButton: /* @__PURE__ */ z.never().optional(),
|
|
666
|
+
text: /* @__PURE__ */ z.object({
|
|
667
|
+
label: /* @__PURE__ */ z.string().describe("Input control label.").max(200).optional(),
|
|
668
|
+
mandatory: /* @__PURE__ */ z.boolean().describe("Whether a text input is required.").optional(),
|
|
669
|
+
maxLength: /* @__PURE__ */ z.number().int().describe("Maximum number of characters allowed.").min(0).max(1e3).optional(),
|
|
670
|
+
multiLine: /* @__PURE__ */ z.boolean().describe(
|
|
671
671
|
"Whether the input control should allow multiple lines in text."
|
|
672
672
|
).optional(),
|
|
673
|
-
comment: z.boolean().describe(
|
|
673
|
+
comment: /* @__PURE__ */ z.boolean().describe(
|
|
674
674
|
"Whether the input control should be displayed as a comment."
|
|
675
675
|
).optional()
|
|
676
676
|
}).describe("Free-form text input control.")
|
|
677
677
|
}),
|
|
678
|
-
z.object({
|
|
679
|
-
phone: z.never().optional(),
|
|
680
|
-
address: z.never().optional(),
|
|
681
|
-
date: z.never().optional(),
|
|
682
|
-
additionalGuests: z.never().optional(),
|
|
683
|
-
dropdown: z.never().optional(),
|
|
684
|
-
checkbox: z.never().optional(),
|
|
685
|
-
text: z.never().optional(),
|
|
686
|
-
email: z.never().optional(),
|
|
687
|
-
radioButton: z.never().optional(),
|
|
688
|
-
name: z.object({
|
|
689
|
-
labels: z.object({
|
|
690
|
-
firstName: z.string().describe("First name input label.").max(100).optional(),
|
|
691
|
-
lastName: z.string().describe("Last name input label .").max(100).optional()
|
|
678
|
+
/* @__PURE__ */ z.object({
|
|
679
|
+
phone: /* @__PURE__ */ z.never().optional(),
|
|
680
|
+
address: /* @__PURE__ */ z.never().optional(),
|
|
681
|
+
date: /* @__PURE__ */ z.never().optional(),
|
|
682
|
+
additionalGuests: /* @__PURE__ */ z.never().optional(),
|
|
683
|
+
dropdown: /* @__PURE__ */ z.never().optional(),
|
|
684
|
+
checkbox: /* @__PURE__ */ z.never().optional(),
|
|
685
|
+
text: /* @__PURE__ */ z.never().optional(),
|
|
686
|
+
email: /* @__PURE__ */ z.never().optional(),
|
|
687
|
+
radioButton: /* @__PURE__ */ z.never().optional(),
|
|
688
|
+
name: /* @__PURE__ */ z.object({
|
|
689
|
+
labels: /* @__PURE__ */ z.object({
|
|
690
|
+
firstName: /* @__PURE__ */ z.string().describe("First name input label.").max(100).optional(),
|
|
691
|
+
lastName: /* @__PURE__ */ z.string().describe("Last name input label .").max(100).optional()
|
|
692
692
|
}).describe("Name control labels of each input.").optional()
|
|
693
693
|
}).describe("Main guest name input control.")
|
|
694
694
|
}),
|
|
695
|
-
z.object({
|
|
696
|
-
phone: z.never().optional(),
|
|
697
|
-
address: z.never().optional(),
|
|
698
|
-
date: z.never().optional(),
|
|
699
|
-
additionalGuests: z.never().optional(),
|
|
700
|
-
dropdown: z.never().optional(),
|
|
701
|
-
checkbox: z.never().optional(),
|
|
702
|
-
text: z.never().optional(),
|
|
703
|
-
name: z.never().optional(),
|
|
704
|
-
radioButton: z.never().optional(),
|
|
705
|
-
email: z.object({
|
|
706
|
-
label: z.string().describe("Email input label.").max(100).optional()
|
|
695
|
+
/* @__PURE__ */ z.object({
|
|
696
|
+
phone: /* @__PURE__ */ z.never().optional(),
|
|
697
|
+
address: /* @__PURE__ */ z.never().optional(),
|
|
698
|
+
date: /* @__PURE__ */ z.never().optional(),
|
|
699
|
+
additionalGuests: /* @__PURE__ */ z.never().optional(),
|
|
700
|
+
dropdown: /* @__PURE__ */ z.never().optional(),
|
|
701
|
+
checkbox: /* @__PURE__ */ z.never().optional(),
|
|
702
|
+
text: /* @__PURE__ */ z.never().optional(),
|
|
703
|
+
name: /* @__PURE__ */ z.never().optional(),
|
|
704
|
+
radioButton: /* @__PURE__ */ z.never().optional(),
|
|
705
|
+
email: /* @__PURE__ */ z.object({
|
|
706
|
+
label: /* @__PURE__ */ z.string().describe("Email input label.").max(100).optional()
|
|
707
707
|
}).describe("Main guest email input control.")
|
|
708
708
|
}),
|
|
709
|
-
z.object({
|
|
710
|
-
phone: z.never().optional(),
|
|
711
|
-
address: z.never().optional(),
|
|
712
|
-
date: z.never().optional(),
|
|
713
|
-
additionalGuests: z.never().optional(),
|
|
714
|
-
dropdown: z.never().optional(),
|
|
715
|
-
checkbox: z.never().optional(),
|
|
716
|
-
text: z.never().optional(),
|
|
717
|
-
name: z.never().optional(),
|
|
718
|
-
email: z.never().optional(),
|
|
719
|
-
radioButton: z.object({
|
|
720
|
-
label: z.string().describe("Input control label.").max(200).optional(),
|
|
721
|
-
options: z.array(z.string()).min(2).max(200).optional()
|
|
709
|
+
/* @__PURE__ */ z.object({
|
|
710
|
+
phone: /* @__PURE__ */ z.never().optional(),
|
|
711
|
+
address: /* @__PURE__ */ z.never().optional(),
|
|
712
|
+
date: /* @__PURE__ */ z.never().optional(),
|
|
713
|
+
additionalGuests: /* @__PURE__ */ z.never().optional(),
|
|
714
|
+
dropdown: /* @__PURE__ */ z.never().optional(),
|
|
715
|
+
checkbox: /* @__PURE__ */ z.never().optional(),
|
|
716
|
+
text: /* @__PURE__ */ z.never().optional(),
|
|
717
|
+
name: /* @__PURE__ */ z.never().optional(),
|
|
718
|
+
email: /* @__PURE__ */ z.never().optional(),
|
|
719
|
+
radioButton: /* @__PURE__ */ z.object({
|
|
720
|
+
label: /* @__PURE__ */ z.string().describe("Input control label.").max(200).optional(),
|
|
721
|
+
options: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).min(2).max(200).optional()
|
|
722
722
|
}).describe("Single-choice radio style input control.")
|
|
723
723
|
})
|
|
724
724
|
])
|
|
725
725
|
).describe("Optional fields.")
|
|
726
726
|
});
|
|
727
727
|
var UpdateControlResponse = /* @__PURE__ */ z.object({
|
|
728
|
-
form: z.object({
|
|
729
|
-
controls: z.array(
|
|
730
|
-
z.object({
|
|
731
|
-
type: z.enum([
|
|
728
|
+
form: /* @__PURE__ */ z.object({
|
|
729
|
+
controls: /* @__PURE__ */ z.array(
|
|
730
|
+
/* @__PURE__ */ z.object({
|
|
731
|
+
type: /* @__PURE__ */ z.enum([
|
|
732
732
|
"INPUT",
|
|
733
733
|
"TEXTAREA",
|
|
734
734
|
"DROPDOWN",
|
|
@@ -740,26 +740,26 @@ var UpdateControlResponse = /* @__PURE__ */ z.object({
|
|
|
740
740
|
"ADDRESS_FULL",
|
|
741
741
|
"DATE"
|
|
742
742
|
]).describe("Field control type.").optional(),
|
|
743
|
-
system: z.boolean().describe(
|
|
743
|
+
system: /* @__PURE__ */ z.boolean().describe(
|
|
744
744
|
"Whether the control is mandatory (such as `name` & `email`). When `true`, only the label can be changed."
|
|
745
745
|
).optional(),
|
|
746
|
-
name: z.string().describe("Deprecated: Use `id` or `_id`.").optional(),
|
|
747
|
-
inputs: z.array(
|
|
748
|
-
z.object({
|
|
749
|
-
name: z.string().describe("Field name.").optional(),
|
|
750
|
-
array: z.boolean().describe(
|
|
746
|
+
name: /* @__PURE__ */ z.string().describe("Deprecated: Use `id` or `_id`.").optional(),
|
|
747
|
+
inputs: /* @__PURE__ */ z.array(
|
|
748
|
+
/* @__PURE__ */ z.object({
|
|
749
|
+
name: /* @__PURE__ */ z.string().describe("Field name.").optional(),
|
|
750
|
+
array: /* @__PURE__ */ z.boolean().describe(
|
|
751
751
|
"*Deprecated:** Use `controls.inputs.type.TEXT_ARRAY`."
|
|
752
752
|
).optional(),
|
|
753
|
-
label: z.string().describe("Main field label.").optional(),
|
|
754
|
-
additionalLabels: z.record(z.string(), z.string()).describe(
|
|
753
|
+
label: /* @__PURE__ */ z.string().describe("Main field label.").optional(),
|
|
754
|
+
additionalLabels: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.string()).describe(
|
|
755
755
|
"Additional labels for multi-valued fields such as address."
|
|
756
756
|
).optional(),
|
|
757
|
-
options: z.array(z.string()).optional(),
|
|
758
|
-
mandatory: z.boolean().describe("Whether field is mandatory.").optional(),
|
|
759
|
-
maxLength: z.number().int().describe(
|
|
757
|
+
options: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).optional(),
|
|
758
|
+
mandatory: /* @__PURE__ */ z.boolean().describe("Whether field is mandatory.").optional(),
|
|
759
|
+
maxLength: /* @__PURE__ */ z.number().int().describe(
|
|
760
760
|
"Maximum number of accepted characters (relevant for text fields)."
|
|
761
761
|
).optional(),
|
|
762
|
-
type: z.enum([
|
|
762
|
+
type: /* @__PURE__ */ z.enum([
|
|
763
763
|
"TEXT",
|
|
764
764
|
"NUMBER",
|
|
765
765
|
"TEXT_ARRAY",
|
|
@@ -768,25 +768,25 @@ var UpdateControlResponse = /* @__PURE__ */ z.object({
|
|
|
768
768
|
]).describe(
|
|
769
769
|
"Type which determines field format.\nUsed to validate submitted response."
|
|
770
770
|
).optional(),
|
|
771
|
-
maxSize: z.number().int().describe(
|
|
771
|
+
maxSize: /* @__PURE__ */ z.number().int().describe(
|
|
772
772
|
"The maximum number of accepted values for array input.\n\n**Note:** Only applicable for `TEXT_ARRAY` input fields."
|
|
773
773
|
).optional().nullable(),
|
|
774
|
-
defaultOptionSelection: z.intersection(
|
|
775
|
-
z.object({}),
|
|
776
|
-
z.xor([
|
|
777
|
-
z.object({
|
|
778
|
-
optionIndex: z.never().optional(),
|
|
779
|
-
placeholderText: z.never().optional()
|
|
774
|
+
defaultOptionSelection: /* @__PURE__ */ z.intersection(
|
|
775
|
+
/* @__PURE__ */ z.object({}),
|
|
776
|
+
/* @__PURE__ */ z.xor([
|
|
777
|
+
/* @__PURE__ */ z.object({
|
|
778
|
+
optionIndex: /* @__PURE__ */ z.never().optional(),
|
|
779
|
+
placeholderText: /* @__PURE__ */ z.never().optional()
|
|
780
780
|
}),
|
|
781
|
-
z.object({
|
|
782
|
-
placeholderText: z.never().optional(),
|
|
783
|
-
optionIndex: z.number().int().describe(
|
|
781
|
+
/* @__PURE__ */ z.object({
|
|
782
|
+
placeholderText: /* @__PURE__ */ z.never().optional(),
|
|
783
|
+
optionIndex: /* @__PURE__ */ z.number().int().describe(
|
|
784
784
|
"0-based index from predefined `controls.inputs.options` which is initial selection."
|
|
785
785
|
).min(0).max(199)
|
|
786
786
|
}),
|
|
787
|
-
z.object({
|
|
788
|
-
optionIndex: z.never().optional(),
|
|
789
|
-
placeholderText: z.string().describe(
|
|
787
|
+
/* @__PURE__ */ z.object({
|
|
788
|
+
optionIndex: /* @__PURE__ */ z.never().optional(),
|
|
789
|
+
placeholderText: /* @__PURE__ */ z.string().describe(
|
|
790
790
|
'Placeholder hint describing expected choices, such as "Please select".\nConsidered an empty choice.'
|
|
791
791
|
).max(200)
|
|
792
792
|
})
|
|
@@ -794,83 +794,83 @@ var UpdateControlResponse = /* @__PURE__ */ z.object({
|
|
|
794
794
|
).describe(
|
|
795
795
|
"Default option initially selected when an input has multiple choices.\n\nDefaults to first (0th) option, if not configured.\nCurrently only applicable for `type.dropdown`."
|
|
796
796
|
).optional(),
|
|
797
|
-
labels: z.array(
|
|
798
|
-
z.object({
|
|
799
|
-
name: z.string().describe("Field name.").optional(),
|
|
800
|
-
label: z.string().describe("Field label.").optional()
|
|
797
|
+
labels: /* @__PURE__ */ z.array(
|
|
798
|
+
/* @__PURE__ */ z.object({
|
|
799
|
+
name: /* @__PURE__ */ z.string().describe("Field name.").optional(),
|
|
800
|
+
label: /* @__PURE__ */ z.string().describe("Field label.").optional()
|
|
801
801
|
})
|
|
802
802
|
).optional()
|
|
803
803
|
})
|
|
804
804
|
).optional(),
|
|
805
|
-
label: z.string().describe("*Deprecated:** Use `controls.inputs.label`.").optional(),
|
|
806
|
-
orderIndex: z.number().int().describe(
|
|
805
|
+
label: /* @__PURE__ */ z.string().describe("*Deprecated:** Use `controls.inputs.label`.").optional(),
|
|
806
|
+
orderIndex: /* @__PURE__ */ z.number().int().describe(
|
|
807
807
|
"Field controls are sorted by this value in ascending order."
|
|
808
808
|
).optional(),
|
|
809
|
-
_id: z.string().describe("Unique control ID.").optional(),
|
|
810
|
-
deleted: z.boolean().describe("Whether the input control is deleted.").optional().nullable()
|
|
809
|
+
_id: /* @__PURE__ */ z.string().describe("Unique control ID.").optional(),
|
|
810
|
+
deleted: /* @__PURE__ */ z.boolean().describe("Whether the input control is deleted.").optional().nullable()
|
|
811
811
|
})
|
|
812
812
|
).optional(),
|
|
813
|
-
messages: z.object({
|
|
814
|
-
rsvp: z.object({
|
|
815
|
-
rsvpYesOption: z.string().describe('Label text indicating RSVP\'s `status` is `"YES"`.').optional(),
|
|
816
|
-
rsvpNoOption: z.string().describe('Label text indicating RSVP\'s `status` is `"NO"`.').optional(),
|
|
817
|
-
positiveMessages: z.object({
|
|
818
|
-
title: z.string().describe("Main form title for positive response.").optional(),
|
|
819
|
-
confirmation: z.object({
|
|
820
|
-
title: z.string().describe("Confirmation message title.").optional(),
|
|
821
|
-
message: z.string().describe("Confirmation message text.").optional(),
|
|
822
|
-
addToCalendarActionLabel: z.string().describe(
|
|
813
|
+
messages: /* @__PURE__ */ z.object({
|
|
814
|
+
rsvp: /* @__PURE__ */ z.object({
|
|
815
|
+
rsvpYesOption: /* @__PURE__ */ z.string().describe('Label text indicating RSVP\'s `status` is `"YES"`.').optional(),
|
|
816
|
+
rsvpNoOption: /* @__PURE__ */ z.string().describe('Label text indicating RSVP\'s `status` is `"NO"`.').optional(),
|
|
817
|
+
positiveMessages: /* @__PURE__ */ z.object({
|
|
818
|
+
title: /* @__PURE__ */ z.string().describe("Main form title for positive response.").optional(),
|
|
819
|
+
confirmation: /* @__PURE__ */ z.object({
|
|
820
|
+
title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
|
|
821
|
+
message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
|
|
822
|
+
addToCalendarActionLabel: /* @__PURE__ */ z.string().describe(
|
|
823
823
|
'"Add to calendar" call-to-action label text.'
|
|
824
824
|
).optional(),
|
|
825
|
-
shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
|
|
825
|
+
shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
|
|
826
826
|
}).describe("Confirmation messages shown after registration.").optional()
|
|
827
827
|
}).describe(
|
|
828
828
|
'Messages displayed when an RSVP\'s `status` is set to `"YES"`.'
|
|
829
829
|
).optional(),
|
|
830
|
-
waitlistMessages: z.object({
|
|
831
|
-
title: z.string().describe("Main form title for positive response.").optional(),
|
|
832
|
-
confirmation: z.object({
|
|
833
|
-
title: z.string().describe("Confirmation message title.").optional(),
|
|
834
|
-
message: z.string().describe("Confirmation message text.").optional(),
|
|
835
|
-
addToCalendarActionLabel: z.string().describe(
|
|
830
|
+
waitlistMessages: /* @__PURE__ */ z.object({
|
|
831
|
+
title: /* @__PURE__ */ z.string().describe("Main form title for positive response.").optional(),
|
|
832
|
+
confirmation: /* @__PURE__ */ z.object({
|
|
833
|
+
title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
|
|
834
|
+
message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
|
|
835
|
+
addToCalendarActionLabel: /* @__PURE__ */ z.string().describe(
|
|
836
836
|
'"Add to calendar" call-to-action label text.'
|
|
837
837
|
).optional(),
|
|
838
|
-
shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
|
|
838
|
+
shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
|
|
839
839
|
}).describe("Confirmation messages shown after registration.").optional()
|
|
840
840
|
}).describe(
|
|
841
841
|
'Messages displayed when an RSVP\'s `status` is set to `"WAITLIST"`, for when the event is full and a waitlist is available).'
|
|
842
842
|
).optional(),
|
|
843
|
-
negativeMessages: z.object({
|
|
844
|
-
title: z.string().describe("Main form title for negative response.").optional(),
|
|
845
|
-
confirmation: z.object({
|
|
846
|
-
title: z.string().describe("Confirmation message title.").optional(),
|
|
847
|
-
shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
|
|
843
|
+
negativeMessages: /* @__PURE__ */ z.object({
|
|
844
|
+
title: /* @__PURE__ */ z.string().describe("Main form title for negative response.").optional(),
|
|
845
|
+
confirmation: /* @__PURE__ */ z.object({
|
|
846
|
+
title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
|
|
847
|
+
shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
|
|
848
848
|
}).describe("Confirmation messages shown after registration.").optional()
|
|
849
849
|
}).describe(
|
|
850
850
|
'Messages displayed when an RSVP\'s `status` is set to `"NO"`.'
|
|
851
851
|
).optional(),
|
|
852
|
-
submitActionLabel: z.string().describe('"Submit form" call-to-action label text.').optional()
|
|
852
|
+
submitActionLabel: /* @__PURE__ */ z.string().describe('"Submit form" call-to-action label text.').optional()
|
|
853
853
|
}).describe(
|
|
854
854
|
"[RSVP form](https://dev.wix.com/docs/rest/business-solutions/events/rsvp-v2/introduction) messages."
|
|
855
855
|
).optional(),
|
|
856
|
-
checkout: z.object({
|
|
857
|
-
title: z.string().describe("Main form title for response.").optional(),
|
|
858
|
-
submitActionLabel: z.string().describe("Submit form call-to-action label text.").optional(),
|
|
859
|
-
confirmation: z.object({
|
|
860
|
-
title: z.string().describe("Confirmation message title.").optional(),
|
|
861
|
-
message: z.string().describe("Confirmation message text.").optional(),
|
|
862
|
-
downloadTicketsLabel: z.string().describe('"Download tickets" call-to-action label text.').optional(),
|
|
863
|
-
addToCalendarLabel: z.string().describe('"Add to calendar" call-to-action label text.').optional(),
|
|
864
|
-
shareEventLabel: z.string().describe('"Share event" call-to-action label text.').optional()
|
|
856
|
+
checkout: /* @__PURE__ */ z.object({
|
|
857
|
+
title: /* @__PURE__ */ z.string().describe("Main form title for response.").optional(),
|
|
858
|
+
submitActionLabel: /* @__PURE__ */ z.string().describe("Submit form call-to-action label text.").optional(),
|
|
859
|
+
confirmation: /* @__PURE__ */ z.object({
|
|
860
|
+
title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
|
|
861
|
+
message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
|
|
862
|
+
downloadTicketsLabel: /* @__PURE__ */ z.string().describe('"Download tickets" call-to-action label text.').optional(),
|
|
863
|
+
addToCalendarLabel: /* @__PURE__ */ z.string().describe('"Add to calendar" call-to-action label text.').optional(),
|
|
864
|
+
shareEventLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
|
|
865
865
|
}).describe("Confirmation messages shown after checkout.").optional()
|
|
866
866
|
}).describe("Checkout form messages.").optional(),
|
|
867
|
-
registrationClosed: z.object({
|
|
868
|
-
message: z.string().describe("Message shown when event registration is closed.").optional(),
|
|
869
|
-
exploreEventsActionLabel: z.string().describe('"Explore other events" call-to-action label text.').optional()
|
|
867
|
+
registrationClosed: /* @__PURE__ */ z.object({
|
|
868
|
+
message: /* @__PURE__ */ z.string().describe("Message shown when event registration is closed.").optional(),
|
|
869
|
+
exploreEventsActionLabel: /* @__PURE__ */ z.string().describe('"Explore other events" call-to-action label text.').optional()
|
|
870
870
|
}).describe("Messages shown when event registration is closed.").optional(),
|
|
871
|
-
ticketsUnavailable: z.object({
|
|
872
|
-
message: z.string().describe("Message shown when event tickets are unavailable.").optional(),
|
|
873
|
-
exploreEventsActionLabel: z.string().describe('"Explore other events" call-to-action label text.').optional()
|
|
871
|
+
ticketsUnavailable: /* @__PURE__ */ z.object({
|
|
872
|
+
message: /* @__PURE__ */ z.string().describe("Message shown when event tickets are unavailable.").optional(),
|
|
873
|
+
exploreEventsActionLabel: /* @__PURE__ */ z.string().describe('"Explore other events" call-to-action label text.').optional()
|
|
874
874
|
}).describe("Messages shown when event tickets are unavailable.").optional()
|
|
875
875
|
}).describe(
|
|
876
876
|
'Set of defined form messages displayed in the UI before, during, and after a registration flow.\nIncludes the configuration of form titles, response labels, "thank you" messages, and call-to-action texts.'
|
|
@@ -878,19 +878,19 @@ var UpdateControlResponse = /* @__PURE__ */ z.object({
|
|
|
878
878
|
}).describe("Modified event form.").optional()
|
|
879
879
|
});
|
|
880
880
|
var DeleteControlRequest = /* @__PURE__ */ z.object({
|
|
881
|
-
identifiers: z.object({
|
|
882
|
-
eventId: z.string().describe("Event ID to which the form belongs.").regex(
|
|
881
|
+
identifiers: /* @__PURE__ */ z.object({
|
|
882
|
+
eventId: /* @__PURE__ */ z.string().describe("Event ID to which the form belongs.").regex(
|
|
883
883
|
/^[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}$/,
|
|
884
884
|
"Must be a valid GUID"
|
|
885
885
|
),
|
|
886
|
-
_id: z.string().describe("Unique input control ID.").max(100)
|
|
886
|
+
_id: /* @__PURE__ */ z.string().describe("Unique input control ID.").max(100)
|
|
887
887
|
}).describe("Identifies what form to delete.")
|
|
888
888
|
});
|
|
889
889
|
var DeleteControlResponse = /* @__PURE__ */ z.object({
|
|
890
|
-
form: z.object({
|
|
891
|
-
controls: z.array(
|
|
892
|
-
z.object({
|
|
893
|
-
type: z.enum([
|
|
890
|
+
form: /* @__PURE__ */ z.object({
|
|
891
|
+
controls: /* @__PURE__ */ z.array(
|
|
892
|
+
/* @__PURE__ */ z.object({
|
|
893
|
+
type: /* @__PURE__ */ z.enum([
|
|
894
894
|
"INPUT",
|
|
895
895
|
"TEXTAREA",
|
|
896
896
|
"DROPDOWN",
|
|
@@ -902,26 +902,26 @@ var DeleteControlResponse = /* @__PURE__ */ z.object({
|
|
|
902
902
|
"ADDRESS_FULL",
|
|
903
903
|
"DATE"
|
|
904
904
|
]).describe("Field control type.").optional(),
|
|
905
|
-
system: z.boolean().describe(
|
|
905
|
+
system: /* @__PURE__ */ z.boolean().describe(
|
|
906
906
|
"Whether the control is mandatory (such as `name` & `email`). When `true`, only the label can be changed."
|
|
907
907
|
).optional(),
|
|
908
|
-
name: z.string().describe("Deprecated: Use `id` or `_id`.").optional(),
|
|
909
|
-
inputs: z.array(
|
|
910
|
-
z.object({
|
|
911
|
-
name: z.string().describe("Field name.").optional(),
|
|
912
|
-
array: z.boolean().describe(
|
|
908
|
+
name: /* @__PURE__ */ z.string().describe("Deprecated: Use `id` or `_id`.").optional(),
|
|
909
|
+
inputs: /* @__PURE__ */ z.array(
|
|
910
|
+
/* @__PURE__ */ z.object({
|
|
911
|
+
name: /* @__PURE__ */ z.string().describe("Field name.").optional(),
|
|
912
|
+
array: /* @__PURE__ */ z.boolean().describe(
|
|
913
913
|
"*Deprecated:** Use `controls.inputs.type.TEXT_ARRAY`."
|
|
914
914
|
).optional(),
|
|
915
|
-
label: z.string().describe("Main field label.").optional(),
|
|
916
|
-
additionalLabels: z.record(z.string(), z.string()).describe(
|
|
915
|
+
label: /* @__PURE__ */ z.string().describe("Main field label.").optional(),
|
|
916
|
+
additionalLabels: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.string()).describe(
|
|
917
917
|
"Additional labels for multi-valued fields such as address."
|
|
918
918
|
).optional(),
|
|
919
|
-
options: z.array(z.string()).optional(),
|
|
920
|
-
mandatory: z.boolean().describe("Whether field is mandatory.").optional(),
|
|
921
|
-
maxLength: z.number().int().describe(
|
|
919
|
+
options: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).optional(),
|
|
920
|
+
mandatory: /* @__PURE__ */ z.boolean().describe("Whether field is mandatory.").optional(),
|
|
921
|
+
maxLength: /* @__PURE__ */ z.number().int().describe(
|
|
922
922
|
"Maximum number of accepted characters (relevant for text fields)."
|
|
923
923
|
).optional(),
|
|
924
|
-
type: z.enum([
|
|
924
|
+
type: /* @__PURE__ */ z.enum([
|
|
925
925
|
"TEXT",
|
|
926
926
|
"NUMBER",
|
|
927
927
|
"TEXT_ARRAY",
|
|
@@ -930,25 +930,25 @@ var DeleteControlResponse = /* @__PURE__ */ z.object({
|
|
|
930
930
|
]).describe(
|
|
931
931
|
"Type which determines field format.\nUsed to validate submitted response."
|
|
932
932
|
).optional(),
|
|
933
|
-
maxSize: z.number().int().describe(
|
|
933
|
+
maxSize: /* @__PURE__ */ z.number().int().describe(
|
|
934
934
|
"The maximum number of accepted values for array input.\n\n**Note:** Only applicable for `TEXT_ARRAY` input fields."
|
|
935
935
|
).optional().nullable(),
|
|
936
|
-
defaultOptionSelection: z.intersection(
|
|
937
|
-
z.object({}),
|
|
938
|
-
z.xor([
|
|
939
|
-
z.object({
|
|
940
|
-
optionIndex: z.never().optional(),
|
|
941
|
-
placeholderText: z.never().optional()
|
|
936
|
+
defaultOptionSelection: /* @__PURE__ */ z.intersection(
|
|
937
|
+
/* @__PURE__ */ z.object({}),
|
|
938
|
+
/* @__PURE__ */ z.xor([
|
|
939
|
+
/* @__PURE__ */ z.object({
|
|
940
|
+
optionIndex: /* @__PURE__ */ z.never().optional(),
|
|
941
|
+
placeholderText: /* @__PURE__ */ z.never().optional()
|
|
942
942
|
}),
|
|
943
|
-
z.object({
|
|
944
|
-
placeholderText: z.never().optional(),
|
|
945
|
-
optionIndex: z.number().int().describe(
|
|
943
|
+
/* @__PURE__ */ z.object({
|
|
944
|
+
placeholderText: /* @__PURE__ */ z.never().optional(),
|
|
945
|
+
optionIndex: /* @__PURE__ */ z.number().int().describe(
|
|
946
946
|
"0-based index from predefined `controls.inputs.options` which is initial selection."
|
|
947
947
|
).min(0).max(199)
|
|
948
948
|
}),
|
|
949
|
-
z.object({
|
|
950
|
-
optionIndex: z.never().optional(),
|
|
951
|
-
placeholderText: z.string().describe(
|
|
949
|
+
/* @__PURE__ */ z.object({
|
|
950
|
+
optionIndex: /* @__PURE__ */ z.never().optional(),
|
|
951
|
+
placeholderText: /* @__PURE__ */ z.string().describe(
|
|
952
952
|
'Placeholder hint describing expected choices, such as "Please select".\nConsidered an empty choice.'
|
|
953
953
|
).max(200)
|
|
954
954
|
})
|
|
@@ -956,83 +956,83 @@ var DeleteControlResponse = /* @__PURE__ */ z.object({
|
|
|
956
956
|
).describe(
|
|
957
957
|
"Default option initially selected when an input has multiple choices.\n\nDefaults to first (0th) option, if not configured.\nCurrently only applicable for `type.dropdown`."
|
|
958
958
|
).optional(),
|
|
959
|
-
labels: z.array(
|
|
960
|
-
z.object({
|
|
961
|
-
name: z.string().describe("Field name.").optional(),
|
|
962
|
-
label: z.string().describe("Field label.").optional()
|
|
959
|
+
labels: /* @__PURE__ */ z.array(
|
|
960
|
+
/* @__PURE__ */ z.object({
|
|
961
|
+
name: /* @__PURE__ */ z.string().describe("Field name.").optional(),
|
|
962
|
+
label: /* @__PURE__ */ z.string().describe("Field label.").optional()
|
|
963
963
|
})
|
|
964
964
|
).optional()
|
|
965
965
|
})
|
|
966
966
|
).optional(),
|
|
967
|
-
label: z.string().describe("*Deprecated:** Use `controls.inputs.label`.").optional(),
|
|
968
|
-
orderIndex: z.number().int().describe(
|
|
967
|
+
label: /* @__PURE__ */ z.string().describe("*Deprecated:** Use `controls.inputs.label`.").optional(),
|
|
968
|
+
orderIndex: /* @__PURE__ */ z.number().int().describe(
|
|
969
969
|
"Field controls are sorted by this value in ascending order."
|
|
970
970
|
).optional(),
|
|
971
|
-
_id: z.string().describe("Unique control ID.").optional(),
|
|
972
|
-
deleted: z.boolean().describe("Whether the input control is deleted.").optional().nullable()
|
|
971
|
+
_id: /* @__PURE__ */ z.string().describe("Unique control ID.").optional(),
|
|
972
|
+
deleted: /* @__PURE__ */ z.boolean().describe("Whether the input control is deleted.").optional().nullable()
|
|
973
973
|
})
|
|
974
974
|
).optional(),
|
|
975
|
-
messages: z.object({
|
|
976
|
-
rsvp: z.object({
|
|
977
|
-
rsvpYesOption: z.string().describe('Label text indicating RSVP\'s `status` is `"YES"`.').optional(),
|
|
978
|
-
rsvpNoOption: z.string().describe('Label text indicating RSVP\'s `status` is `"NO"`.').optional(),
|
|
979
|
-
positiveMessages: z.object({
|
|
980
|
-
title: z.string().describe("Main form title for positive response.").optional(),
|
|
981
|
-
confirmation: z.object({
|
|
982
|
-
title: z.string().describe("Confirmation message title.").optional(),
|
|
983
|
-
message: z.string().describe("Confirmation message text.").optional(),
|
|
984
|
-
addToCalendarActionLabel: z.string().describe(
|
|
975
|
+
messages: /* @__PURE__ */ z.object({
|
|
976
|
+
rsvp: /* @__PURE__ */ z.object({
|
|
977
|
+
rsvpYesOption: /* @__PURE__ */ z.string().describe('Label text indicating RSVP\'s `status` is `"YES"`.').optional(),
|
|
978
|
+
rsvpNoOption: /* @__PURE__ */ z.string().describe('Label text indicating RSVP\'s `status` is `"NO"`.').optional(),
|
|
979
|
+
positiveMessages: /* @__PURE__ */ z.object({
|
|
980
|
+
title: /* @__PURE__ */ z.string().describe("Main form title for positive response.").optional(),
|
|
981
|
+
confirmation: /* @__PURE__ */ z.object({
|
|
982
|
+
title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
|
|
983
|
+
message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
|
|
984
|
+
addToCalendarActionLabel: /* @__PURE__ */ z.string().describe(
|
|
985
985
|
'"Add to calendar" call-to-action label text.'
|
|
986
986
|
).optional(),
|
|
987
|
-
shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
|
|
987
|
+
shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
|
|
988
988
|
}).describe("Confirmation messages shown after registration.").optional()
|
|
989
989
|
}).describe(
|
|
990
990
|
'Messages displayed when an RSVP\'s `status` is set to `"YES"`.'
|
|
991
991
|
).optional(),
|
|
992
|
-
waitlistMessages: z.object({
|
|
993
|
-
title: z.string().describe("Main form title for positive response.").optional(),
|
|
994
|
-
confirmation: z.object({
|
|
995
|
-
title: z.string().describe("Confirmation message title.").optional(),
|
|
996
|
-
message: z.string().describe("Confirmation message text.").optional(),
|
|
997
|
-
addToCalendarActionLabel: z.string().describe(
|
|
992
|
+
waitlistMessages: /* @__PURE__ */ z.object({
|
|
993
|
+
title: /* @__PURE__ */ z.string().describe("Main form title for positive response.").optional(),
|
|
994
|
+
confirmation: /* @__PURE__ */ z.object({
|
|
995
|
+
title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
|
|
996
|
+
message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
|
|
997
|
+
addToCalendarActionLabel: /* @__PURE__ */ z.string().describe(
|
|
998
998
|
'"Add to calendar" call-to-action label text.'
|
|
999
999
|
).optional(),
|
|
1000
|
-
shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
|
|
1000
|
+
shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
|
|
1001
1001
|
}).describe("Confirmation messages shown after registration.").optional()
|
|
1002
1002
|
}).describe(
|
|
1003
1003
|
'Messages displayed when an RSVP\'s `status` is set to `"WAITLIST"`, for when the event is full and a waitlist is available).'
|
|
1004
1004
|
).optional(),
|
|
1005
|
-
negativeMessages: z.object({
|
|
1006
|
-
title: z.string().describe("Main form title for negative response.").optional(),
|
|
1007
|
-
confirmation: z.object({
|
|
1008
|
-
title: z.string().describe("Confirmation message title.").optional(),
|
|
1009
|
-
shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
|
|
1005
|
+
negativeMessages: /* @__PURE__ */ z.object({
|
|
1006
|
+
title: /* @__PURE__ */ z.string().describe("Main form title for negative response.").optional(),
|
|
1007
|
+
confirmation: /* @__PURE__ */ z.object({
|
|
1008
|
+
title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
|
|
1009
|
+
shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
|
|
1010
1010
|
}).describe("Confirmation messages shown after registration.").optional()
|
|
1011
1011
|
}).describe(
|
|
1012
1012
|
'Messages displayed when an RSVP\'s `status` is set to `"NO"`.'
|
|
1013
1013
|
).optional(),
|
|
1014
|
-
submitActionLabel: z.string().describe('"Submit form" call-to-action label text.').optional()
|
|
1014
|
+
submitActionLabel: /* @__PURE__ */ z.string().describe('"Submit form" call-to-action label text.').optional()
|
|
1015
1015
|
}).describe(
|
|
1016
1016
|
"[RSVP form](https://dev.wix.com/docs/rest/business-solutions/events/rsvp-v2/introduction) messages."
|
|
1017
1017
|
).optional(),
|
|
1018
|
-
checkout: z.object({
|
|
1019
|
-
title: z.string().describe("Main form title for response.").optional(),
|
|
1020
|
-
submitActionLabel: z.string().describe("Submit form call-to-action label text.").optional(),
|
|
1021
|
-
confirmation: z.object({
|
|
1022
|
-
title: z.string().describe("Confirmation message title.").optional(),
|
|
1023
|
-
message: z.string().describe("Confirmation message text.").optional(),
|
|
1024
|
-
downloadTicketsLabel: z.string().describe('"Download tickets" call-to-action label text.').optional(),
|
|
1025
|
-
addToCalendarLabel: z.string().describe('"Add to calendar" call-to-action label text.').optional(),
|
|
1026
|
-
shareEventLabel: z.string().describe('"Share event" call-to-action label text.').optional()
|
|
1018
|
+
checkout: /* @__PURE__ */ z.object({
|
|
1019
|
+
title: /* @__PURE__ */ z.string().describe("Main form title for response.").optional(),
|
|
1020
|
+
submitActionLabel: /* @__PURE__ */ z.string().describe("Submit form call-to-action label text.").optional(),
|
|
1021
|
+
confirmation: /* @__PURE__ */ z.object({
|
|
1022
|
+
title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
|
|
1023
|
+
message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
|
|
1024
|
+
downloadTicketsLabel: /* @__PURE__ */ z.string().describe('"Download tickets" call-to-action label text.').optional(),
|
|
1025
|
+
addToCalendarLabel: /* @__PURE__ */ z.string().describe('"Add to calendar" call-to-action label text.').optional(),
|
|
1026
|
+
shareEventLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
|
|
1027
1027
|
}).describe("Confirmation messages shown after checkout.").optional()
|
|
1028
1028
|
}).describe("Checkout form messages.").optional(),
|
|
1029
|
-
registrationClosed: z.object({
|
|
1030
|
-
message: z.string().describe("Message shown when event registration is closed.").optional(),
|
|
1031
|
-
exploreEventsActionLabel: z.string().describe('"Explore other events" call-to-action label text.').optional()
|
|
1029
|
+
registrationClosed: /* @__PURE__ */ z.object({
|
|
1030
|
+
message: /* @__PURE__ */ z.string().describe("Message shown when event registration is closed.").optional(),
|
|
1031
|
+
exploreEventsActionLabel: /* @__PURE__ */ z.string().describe('"Explore other events" call-to-action label text.').optional()
|
|
1032
1032
|
}).describe("Messages shown when event registration is closed.").optional(),
|
|
1033
|
-
ticketsUnavailable: z.object({
|
|
1034
|
-
message: z.string().describe("Message shown when event tickets are unavailable.").optional(),
|
|
1035
|
-
exploreEventsActionLabel: z.string().describe('"Explore other events" call-to-action label text.').optional()
|
|
1033
|
+
ticketsUnavailable: /* @__PURE__ */ z.object({
|
|
1034
|
+
message: /* @__PURE__ */ z.string().describe("Message shown when event tickets are unavailable.").optional(),
|
|
1035
|
+
exploreEventsActionLabel: /* @__PURE__ */ z.string().describe('"Explore other events" call-to-action label text.').optional()
|
|
1036
1036
|
}).describe("Messages shown when event tickets are unavailable.").optional()
|
|
1037
1037
|
}).describe(
|
|
1038
1038
|
'Set of defined form messages displayed in the UI before, during, and after a registration flow.\nIncludes the configuration of form titles, response labels, "thank you" messages, and call-to-action texts.'
|
|
@@ -1040,84 +1040,84 @@ var DeleteControlResponse = /* @__PURE__ */ z.object({
|
|
|
1040
1040
|
}).describe("Modified event form").optional()
|
|
1041
1041
|
});
|
|
1042
1042
|
var UpdateMessagesRequest = /* @__PURE__ */ z.object({
|
|
1043
|
-
eventId: z.string().describe("Event ID to which the form belongs.").regex(
|
|
1043
|
+
eventId: /* @__PURE__ */ z.string().describe("Event ID to which the form belongs.").regex(
|
|
1044
1044
|
/^[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}$/,
|
|
1045
1045
|
"Must be a valid GUID"
|
|
1046
1046
|
),
|
|
1047
|
-
options: z.object({
|
|
1048
|
-
fields: z.object({ paths: z.array(z.string()) }).describe(
|
|
1047
|
+
options: /* @__PURE__ */ z.object({
|
|
1048
|
+
fields: /* @__PURE__ */ z.object({ paths: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()) }).describe(
|
|
1049
1049
|
"Set of field paths, specifying which parts of this resource to update.\nWhen fields are empty, request is interpreted as full update.\nBehavior follows [google.protobuf.FieldMask](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask) semantics."
|
|
1050
1050
|
).optional().nullable(),
|
|
1051
|
-
messages: z.object({
|
|
1052
|
-
rsvp: z.object({
|
|
1053
|
-
rsvpYesOption: z.string().describe('Label text indicating RSVP\'s `status` is `"YES"`.').optional(),
|
|
1054
|
-
rsvpNoOption: z.string().describe('Label text indicating RSVP\'s `status` is `"NO"`.').optional(),
|
|
1055
|
-
positiveMessages: z.object({
|
|
1056
|
-
title: z.string().describe("Main form title for positive response.").optional(),
|
|
1057
|
-
confirmation: z.object({
|
|
1058
|
-
title: z.string().describe("Confirmation message title.").optional(),
|
|
1059
|
-
message: z.string().describe("Confirmation message text.").optional(),
|
|
1060
|
-
addToCalendarActionLabel: z.string().describe(
|
|
1051
|
+
messages: /* @__PURE__ */ z.object({
|
|
1052
|
+
rsvp: /* @__PURE__ */ z.object({
|
|
1053
|
+
rsvpYesOption: /* @__PURE__ */ z.string().describe('Label text indicating RSVP\'s `status` is `"YES"`.').optional(),
|
|
1054
|
+
rsvpNoOption: /* @__PURE__ */ z.string().describe('Label text indicating RSVP\'s `status` is `"NO"`.').optional(),
|
|
1055
|
+
positiveMessages: /* @__PURE__ */ z.object({
|
|
1056
|
+
title: /* @__PURE__ */ z.string().describe("Main form title for positive response.").optional(),
|
|
1057
|
+
confirmation: /* @__PURE__ */ z.object({
|
|
1058
|
+
title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
|
|
1059
|
+
message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
|
|
1060
|
+
addToCalendarActionLabel: /* @__PURE__ */ z.string().describe(
|
|
1061
1061
|
'"Add to calendar" call-to-action label text.'
|
|
1062
1062
|
).optional(),
|
|
1063
|
-
shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
|
|
1063
|
+
shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
|
|
1064
1064
|
}).describe("Confirmation messages shown after registration.").optional()
|
|
1065
1065
|
}).describe(
|
|
1066
1066
|
'Messages displayed when an RSVP\'s `status` is set to `"YES"`.'
|
|
1067
1067
|
).optional(),
|
|
1068
|
-
waitlistMessages: z.object({
|
|
1069
|
-
title: z.string().describe("Main form title for positive response.").optional(),
|
|
1070
|
-
confirmation: z.object({
|
|
1071
|
-
title: z.string().describe("Confirmation message title.").optional(),
|
|
1072
|
-
message: z.string().describe("Confirmation message text.").optional(),
|
|
1073
|
-
addToCalendarActionLabel: z.string().describe(
|
|
1068
|
+
waitlistMessages: /* @__PURE__ */ z.object({
|
|
1069
|
+
title: /* @__PURE__ */ z.string().describe("Main form title for positive response.").optional(),
|
|
1070
|
+
confirmation: /* @__PURE__ */ z.object({
|
|
1071
|
+
title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
|
|
1072
|
+
message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
|
|
1073
|
+
addToCalendarActionLabel: /* @__PURE__ */ z.string().describe(
|
|
1074
1074
|
'"Add to calendar" call-to-action label text.'
|
|
1075
1075
|
).optional(),
|
|
1076
|
-
shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
|
|
1076
|
+
shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
|
|
1077
1077
|
}).describe("Confirmation messages shown after registration.").optional()
|
|
1078
1078
|
}).describe(
|
|
1079
1079
|
'Messages displayed when an RSVP\'s `status` is set to `"WAITLIST"`, for when the event is full and a waitlist is available).'
|
|
1080
1080
|
).optional(),
|
|
1081
|
-
negativeMessages: z.object({
|
|
1082
|
-
title: z.string().describe("Main form title for negative response.").optional(),
|
|
1083
|
-
confirmation: z.object({
|
|
1084
|
-
title: z.string().describe("Confirmation message title.").optional(),
|
|
1085
|
-
shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
|
|
1081
|
+
negativeMessages: /* @__PURE__ */ z.object({
|
|
1082
|
+
title: /* @__PURE__ */ z.string().describe("Main form title for negative response.").optional(),
|
|
1083
|
+
confirmation: /* @__PURE__ */ z.object({
|
|
1084
|
+
title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
|
|
1085
|
+
shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
|
|
1086
1086
|
}).describe("Confirmation messages shown after registration.").optional()
|
|
1087
1087
|
}).describe(
|
|
1088
1088
|
'Messages displayed when an RSVP\'s `status` is set to `"NO"`.'
|
|
1089
1089
|
).optional(),
|
|
1090
|
-
submitActionLabel: z.string().describe('"Submit form" call-to-action label text.').optional()
|
|
1090
|
+
submitActionLabel: /* @__PURE__ */ z.string().describe('"Submit form" call-to-action label text.').optional()
|
|
1091
1091
|
}).describe(
|
|
1092
1092
|
"[RSVP form](https://dev.wix.com/docs/rest/business-solutions/events/rsvp-v2/introduction) messages."
|
|
1093
1093
|
).optional(),
|
|
1094
|
-
checkout: z.object({
|
|
1095
|
-
title: z.string().describe("Main form title for response.").optional(),
|
|
1096
|
-
submitActionLabel: z.string().describe("Submit form call-to-action label text.").optional(),
|
|
1097
|
-
confirmation: z.object({
|
|
1098
|
-
title: z.string().describe("Confirmation message title.").optional(),
|
|
1099
|
-
message: z.string().describe("Confirmation message text.").optional(),
|
|
1100
|
-
downloadTicketsLabel: z.string().describe('"Download tickets" call-to-action label text.').optional(),
|
|
1101
|
-
addToCalendarLabel: z.string().describe('"Add to calendar" call-to-action label text.').optional(),
|
|
1102
|
-
shareEventLabel: z.string().describe('"Share event" call-to-action label text.').optional()
|
|
1094
|
+
checkout: /* @__PURE__ */ z.object({
|
|
1095
|
+
title: /* @__PURE__ */ z.string().describe("Main form title for response.").optional(),
|
|
1096
|
+
submitActionLabel: /* @__PURE__ */ z.string().describe("Submit form call-to-action label text.").optional(),
|
|
1097
|
+
confirmation: /* @__PURE__ */ z.object({
|
|
1098
|
+
title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
|
|
1099
|
+
message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
|
|
1100
|
+
downloadTicketsLabel: /* @__PURE__ */ z.string().describe('"Download tickets" call-to-action label text.').optional(),
|
|
1101
|
+
addToCalendarLabel: /* @__PURE__ */ z.string().describe('"Add to calendar" call-to-action label text.').optional(),
|
|
1102
|
+
shareEventLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
|
|
1103
1103
|
}).describe("Confirmation messages shown after checkout.").optional()
|
|
1104
1104
|
}).describe("Checkout form messages.").optional(),
|
|
1105
|
-
registrationClosed: z.object({
|
|
1106
|
-
message: z.string().describe("Message shown when event registration is closed.").optional(),
|
|
1107
|
-
exploreEventsActionLabel: z.string().describe('"Explore other events" call-to-action label text.').optional()
|
|
1105
|
+
registrationClosed: /* @__PURE__ */ z.object({
|
|
1106
|
+
message: /* @__PURE__ */ z.string().describe("Message shown when event registration is closed.").optional(),
|
|
1107
|
+
exploreEventsActionLabel: /* @__PURE__ */ z.string().describe('"Explore other events" call-to-action label text.').optional()
|
|
1108
1108
|
}).describe("Messages shown when event registration is closed.").optional(),
|
|
1109
|
-
ticketsUnavailable: z.object({
|
|
1110
|
-
message: z.string().describe("Message shown when event tickets are unavailable.").optional(),
|
|
1111
|
-
exploreEventsActionLabel: z.string().describe('"Explore other events" call-to-action label text.').optional()
|
|
1109
|
+
ticketsUnavailable: /* @__PURE__ */ z.object({
|
|
1110
|
+
message: /* @__PURE__ */ z.string().describe("Message shown when event tickets are unavailable.").optional(),
|
|
1111
|
+
exploreEventsActionLabel: /* @__PURE__ */ z.string().describe('"Explore other events" call-to-action label text.').optional()
|
|
1112
1112
|
}).describe("Messages shown when event tickets are unavailable.").optional()
|
|
1113
1113
|
}).describe("Set of configured form messages to update.").optional()
|
|
1114
1114
|
}).describe("Optional fields.").optional()
|
|
1115
1115
|
});
|
|
1116
1116
|
var UpdateMessagesResponse = /* @__PURE__ */ z.object({
|
|
1117
|
-
form: z.object({
|
|
1118
|
-
controls: z.array(
|
|
1119
|
-
z.object({
|
|
1120
|
-
type: z.enum([
|
|
1117
|
+
form: /* @__PURE__ */ z.object({
|
|
1118
|
+
controls: /* @__PURE__ */ z.array(
|
|
1119
|
+
/* @__PURE__ */ z.object({
|
|
1120
|
+
type: /* @__PURE__ */ z.enum([
|
|
1121
1121
|
"INPUT",
|
|
1122
1122
|
"TEXTAREA",
|
|
1123
1123
|
"DROPDOWN",
|
|
@@ -1129,26 +1129,26 @@ var UpdateMessagesResponse = /* @__PURE__ */ z.object({
|
|
|
1129
1129
|
"ADDRESS_FULL",
|
|
1130
1130
|
"DATE"
|
|
1131
1131
|
]).describe("Field control type.").optional(),
|
|
1132
|
-
system: z.boolean().describe(
|
|
1132
|
+
system: /* @__PURE__ */ z.boolean().describe(
|
|
1133
1133
|
"Whether the control is mandatory (such as `name` & `email`). When `true`, only the label can be changed."
|
|
1134
1134
|
).optional(),
|
|
1135
|
-
name: z.string().describe("Deprecated: Use `id` or `_id`.").optional(),
|
|
1136
|
-
inputs: z.array(
|
|
1137
|
-
z.object({
|
|
1138
|
-
name: z.string().describe("Field name.").optional(),
|
|
1139
|
-
array: z.boolean().describe(
|
|
1135
|
+
name: /* @__PURE__ */ z.string().describe("Deprecated: Use `id` or `_id`.").optional(),
|
|
1136
|
+
inputs: /* @__PURE__ */ z.array(
|
|
1137
|
+
/* @__PURE__ */ z.object({
|
|
1138
|
+
name: /* @__PURE__ */ z.string().describe("Field name.").optional(),
|
|
1139
|
+
array: /* @__PURE__ */ z.boolean().describe(
|
|
1140
1140
|
"*Deprecated:** Use `controls.inputs.type.TEXT_ARRAY`."
|
|
1141
1141
|
).optional(),
|
|
1142
|
-
label: z.string().describe("Main field label.").optional(),
|
|
1143
|
-
additionalLabels: z.record(z.string(), z.string()).describe(
|
|
1142
|
+
label: /* @__PURE__ */ z.string().describe("Main field label.").optional(),
|
|
1143
|
+
additionalLabels: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.string()).describe(
|
|
1144
1144
|
"Additional labels for multi-valued fields such as address."
|
|
1145
1145
|
).optional(),
|
|
1146
|
-
options: z.array(z.string()).optional(),
|
|
1147
|
-
mandatory: z.boolean().describe("Whether field is mandatory.").optional(),
|
|
1148
|
-
maxLength: z.number().int().describe(
|
|
1146
|
+
options: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).optional(),
|
|
1147
|
+
mandatory: /* @__PURE__ */ z.boolean().describe("Whether field is mandatory.").optional(),
|
|
1148
|
+
maxLength: /* @__PURE__ */ z.number().int().describe(
|
|
1149
1149
|
"Maximum number of accepted characters (relevant for text fields)."
|
|
1150
1150
|
).optional(),
|
|
1151
|
-
type: z.enum([
|
|
1151
|
+
type: /* @__PURE__ */ z.enum([
|
|
1152
1152
|
"TEXT",
|
|
1153
1153
|
"NUMBER",
|
|
1154
1154
|
"TEXT_ARRAY",
|
|
@@ -1157,25 +1157,25 @@ var UpdateMessagesResponse = /* @__PURE__ */ z.object({
|
|
|
1157
1157
|
]).describe(
|
|
1158
1158
|
"Type which determines field format.\nUsed to validate submitted response."
|
|
1159
1159
|
).optional(),
|
|
1160
|
-
maxSize: z.number().int().describe(
|
|
1160
|
+
maxSize: /* @__PURE__ */ z.number().int().describe(
|
|
1161
1161
|
"The maximum number of accepted values for array input.\n\n**Note:** Only applicable for `TEXT_ARRAY` input fields."
|
|
1162
1162
|
).optional().nullable(),
|
|
1163
|
-
defaultOptionSelection: z.intersection(
|
|
1164
|
-
z.object({}),
|
|
1165
|
-
z.xor([
|
|
1166
|
-
z.object({
|
|
1167
|
-
optionIndex: z.never().optional(),
|
|
1168
|
-
placeholderText: z.never().optional()
|
|
1163
|
+
defaultOptionSelection: /* @__PURE__ */ z.intersection(
|
|
1164
|
+
/* @__PURE__ */ z.object({}),
|
|
1165
|
+
/* @__PURE__ */ z.xor([
|
|
1166
|
+
/* @__PURE__ */ z.object({
|
|
1167
|
+
optionIndex: /* @__PURE__ */ z.never().optional(),
|
|
1168
|
+
placeholderText: /* @__PURE__ */ z.never().optional()
|
|
1169
1169
|
}),
|
|
1170
|
-
z.object({
|
|
1171
|
-
placeholderText: z.never().optional(),
|
|
1172
|
-
optionIndex: z.number().int().describe(
|
|
1170
|
+
/* @__PURE__ */ z.object({
|
|
1171
|
+
placeholderText: /* @__PURE__ */ z.never().optional(),
|
|
1172
|
+
optionIndex: /* @__PURE__ */ z.number().int().describe(
|
|
1173
1173
|
"0-based index from predefined `controls.inputs.options` which is initial selection."
|
|
1174
1174
|
).min(0).max(199)
|
|
1175
1175
|
}),
|
|
1176
|
-
z.object({
|
|
1177
|
-
optionIndex: z.never().optional(),
|
|
1178
|
-
placeholderText: z.string().describe(
|
|
1176
|
+
/* @__PURE__ */ z.object({
|
|
1177
|
+
optionIndex: /* @__PURE__ */ z.never().optional(),
|
|
1178
|
+
placeholderText: /* @__PURE__ */ z.string().describe(
|
|
1179
1179
|
'Placeholder hint describing expected choices, such as "Please select".\nConsidered an empty choice.'
|
|
1180
1180
|
).max(200)
|
|
1181
1181
|
})
|
|
@@ -1183,83 +1183,83 @@ var UpdateMessagesResponse = /* @__PURE__ */ z.object({
|
|
|
1183
1183
|
).describe(
|
|
1184
1184
|
"Default option initially selected when an input has multiple choices.\n\nDefaults to first (0th) option, if not configured.\nCurrently only applicable for `type.dropdown`."
|
|
1185
1185
|
).optional(),
|
|
1186
|
-
labels: z.array(
|
|
1187
|
-
z.object({
|
|
1188
|
-
name: z.string().describe("Field name.").optional(),
|
|
1189
|
-
label: z.string().describe("Field label.").optional()
|
|
1186
|
+
labels: /* @__PURE__ */ z.array(
|
|
1187
|
+
/* @__PURE__ */ z.object({
|
|
1188
|
+
name: /* @__PURE__ */ z.string().describe("Field name.").optional(),
|
|
1189
|
+
label: /* @__PURE__ */ z.string().describe("Field label.").optional()
|
|
1190
1190
|
})
|
|
1191
1191
|
).optional()
|
|
1192
1192
|
})
|
|
1193
1193
|
).optional(),
|
|
1194
|
-
label: z.string().describe("*Deprecated:** Use `controls.inputs.label`.").optional(),
|
|
1195
|
-
orderIndex: z.number().int().describe(
|
|
1194
|
+
label: /* @__PURE__ */ z.string().describe("*Deprecated:** Use `controls.inputs.label`.").optional(),
|
|
1195
|
+
orderIndex: /* @__PURE__ */ z.number().int().describe(
|
|
1196
1196
|
"Field controls are sorted by this value in ascending order."
|
|
1197
1197
|
).optional(),
|
|
1198
|
-
_id: z.string().describe("Unique control ID.").optional(),
|
|
1199
|
-
deleted: z.boolean().describe("Whether the input control is deleted.").optional().nullable()
|
|
1198
|
+
_id: /* @__PURE__ */ z.string().describe("Unique control ID.").optional(),
|
|
1199
|
+
deleted: /* @__PURE__ */ z.boolean().describe("Whether the input control is deleted.").optional().nullable()
|
|
1200
1200
|
})
|
|
1201
1201
|
).optional(),
|
|
1202
|
-
messages: z.object({
|
|
1203
|
-
rsvp: z.object({
|
|
1204
|
-
rsvpYesOption: z.string().describe('Label text indicating RSVP\'s `status` is `"YES"`.').optional(),
|
|
1205
|
-
rsvpNoOption: z.string().describe('Label text indicating RSVP\'s `status` is `"NO"`.').optional(),
|
|
1206
|
-
positiveMessages: z.object({
|
|
1207
|
-
title: z.string().describe("Main form title for positive response.").optional(),
|
|
1208
|
-
confirmation: z.object({
|
|
1209
|
-
title: z.string().describe("Confirmation message title.").optional(),
|
|
1210
|
-
message: z.string().describe("Confirmation message text.").optional(),
|
|
1211
|
-
addToCalendarActionLabel: z.string().describe(
|
|
1202
|
+
messages: /* @__PURE__ */ z.object({
|
|
1203
|
+
rsvp: /* @__PURE__ */ z.object({
|
|
1204
|
+
rsvpYesOption: /* @__PURE__ */ z.string().describe('Label text indicating RSVP\'s `status` is `"YES"`.').optional(),
|
|
1205
|
+
rsvpNoOption: /* @__PURE__ */ z.string().describe('Label text indicating RSVP\'s `status` is `"NO"`.').optional(),
|
|
1206
|
+
positiveMessages: /* @__PURE__ */ z.object({
|
|
1207
|
+
title: /* @__PURE__ */ z.string().describe("Main form title for positive response.").optional(),
|
|
1208
|
+
confirmation: /* @__PURE__ */ z.object({
|
|
1209
|
+
title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
|
|
1210
|
+
message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
|
|
1211
|
+
addToCalendarActionLabel: /* @__PURE__ */ z.string().describe(
|
|
1212
1212
|
'"Add to calendar" call-to-action label text.'
|
|
1213
1213
|
).optional(),
|
|
1214
|
-
shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
|
|
1214
|
+
shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
|
|
1215
1215
|
}).describe("Confirmation messages shown after registration.").optional()
|
|
1216
1216
|
}).describe(
|
|
1217
1217
|
'Messages displayed when an RSVP\'s `status` is set to `"YES"`.'
|
|
1218
1218
|
).optional(),
|
|
1219
|
-
waitlistMessages: z.object({
|
|
1220
|
-
title: z.string().describe("Main form title for positive response.").optional(),
|
|
1221
|
-
confirmation: z.object({
|
|
1222
|
-
title: z.string().describe("Confirmation message title.").optional(),
|
|
1223
|
-
message: z.string().describe("Confirmation message text.").optional(),
|
|
1224
|
-
addToCalendarActionLabel: z.string().describe(
|
|
1219
|
+
waitlistMessages: /* @__PURE__ */ z.object({
|
|
1220
|
+
title: /* @__PURE__ */ z.string().describe("Main form title for positive response.").optional(),
|
|
1221
|
+
confirmation: /* @__PURE__ */ z.object({
|
|
1222
|
+
title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
|
|
1223
|
+
message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
|
|
1224
|
+
addToCalendarActionLabel: /* @__PURE__ */ z.string().describe(
|
|
1225
1225
|
'"Add to calendar" call-to-action label text.'
|
|
1226
1226
|
).optional(),
|
|
1227
|
-
shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
|
|
1227
|
+
shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
|
|
1228
1228
|
}).describe("Confirmation messages shown after registration.").optional()
|
|
1229
1229
|
}).describe(
|
|
1230
1230
|
'Messages displayed when an RSVP\'s `status` is set to `"WAITLIST"`, for when the event is full and a waitlist is available).'
|
|
1231
1231
|
).optional(),
|
|
1232
|
-
negativeMessages: z.object({
|
|
1233
|
-
title: z.string().describe("Main form title for negative response.").optional(),
|
|
1234
|
-
confirmation: z.object({
|
|
1235
|
-
title: z.string().describe("Confirmation message title.").optional(),
|
|
1236
|
-
shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
|
|
1232
|
+
negativeMessages: /* @__PURE__ */ z.object({
|
|
1233
|
+
title: /* @__PURE__ */ z.string().describe("Main form title for negative response.").optional(),
|
|
1234
|
+
confirmation: /* @__PURE__ */ z.object({
|
|
1235
|
+
title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
|
|
1236
|
+
shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
|
|
1237
1237
|
}).describe("Confirmation messages shown after registration.").optional()
|
|
1238
1238
|
}).describe(
|
|
1239
1239
|
'Messages displayed when an RSVP\'s `status` is set to `"NO"`.'
|
|
1240
1240
|
).optional(),
|
|
1241
|
-
submitActionLabel: z.string().describe('"Submit form" call-to-action label text.').optional()
|
|
1241
|
+
submitActionLabel: /* @__PURE__ */ z.string().describe('"Submit form" call-to-action label text.').optional()
|
|
1242
1242
|
}).describe(
|
|
1243
1243
|
"[RSVP form](https://dev.wix.com/docs/rest/business-solutions/events/rsvp-v2/introduction) messages."
|
|
1244
1244
|
).optional(),
|
|
1245
|
-
checkout: z.object({
|
|
1246
|
-
title: z.string().describe("Main form title for response.").optional(),
|
|
1247
|
-
submitActionLabel: z.string().describe("Submit form call-to-action label text.").optional(),
|
|
1248
|
-
confirmation: z.object({
|
|
1249
|
-
title: z.string().describe("Confirmation message title.").optional(),
|
|
1250
|
-
message: z.string().describe("Confirmation message text.").optional(),
|
|
1251
|
-
downloadTicketsLabel: z.string().describe('"Download tickets" call-to-action label text.').optional(),
|
|
1252
|
-
addToCalendarLabel: z.string().describe('"Add to calendar" call-to-action label text.').optional(),
|
|
1253
|
-
shareEventLabel: z.string().describe('"Share event" call-to-action label text.').optional()
|
|
1245
|
+
checkout: /* @__PURE__ */ z.object({
|
|
1246
|
+
title: /* @__PURE__ */ z.string().describe("Main form title for response.").optional(),
|
|
1247
|
+
submitActionLabel: /* @__PURE__ */ z.string().describe("Submit form call-to-action label text.").optional(),
|
|
1248
|
+
confirmation: /* @__PURE__ */ z.object({
|
|
1249
|
+
title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
|
|
1250
|
+
message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
|
|
1251
|
+
downloadTicketsLabel: /* @__PURE__ */ z.string().describe('"Download tickets" call-to-action label text.').optional(),
|
|
1252
|
+
addToCalendarLabel: /* @__PURE__ */ z.string().describe('"Add to calendar" call-to-action label text.').optional(),
|
|
1253
|
+
shareEventLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
|
|
1254
1254
|
}).describe("Confirmation messages shown after checkout.").optional()
|
|
1255
1255
|
}).describe("Checkout form messages.").optional(),
|
|
1256
|
-
registrationClosed: z.object({
|
|
1257
|
-
message: z.string().describe("Message shown when event registration is closed.").optional(),
|
|
1258
|
-
exploreEventsActionLabel: z.string().describe('"Explore other events" call-to-action label text.').optional()
|
|
1256
|
+
registrationClosed: /* @__PURE__ */ z.object({
|
|
1257
|
+
message: /* @__PURE__ */ z.string().describe("Message shown when event registration is closed.").optional(),
|
|
1258
|
+
exploreEventsActionLabel: /* @__PURE__ */ z.string().describe('"Explore other events" call-to-action label text.').optional()
|
|
1259
1259
|
}).describe("Messages shown when event registration is closed.").optional(),
|
|
1260
|
-
ticketsUnavailable: z.object({
|
|
1261
|
-
message: z.string().describe("Message shown when event tickets are unavailable.").optional(),
|
|
1262
|
-
exploreEventsActionLabel: z.string().describe('"Explore other events" call-to-action label text.').optional()
|
|
1260
|
+
ticketsUnavailable: /* @__PURE__ */ z.object({
|
|
1261
|
+
message: /* @__PURE__ */ z.string().describe("Message shown when event tickets are unavailable.").optional(),
|
|
1262
|
+
exploreEventsActionLabel: /* @__PURE__ */ z.string().describe('"Explore other events" call-to-action label text.').optional()
|
|
1263
1263
|
}).describe("Messages shown when event tickets are unavailable.").optional()
|
|
1264
1264
|
}).describe(
|
|
1265
1265
|
'Set of defined form messages displayed in the UI before, during, and after a registration flow.\nIncludes the configuration of form titles, response labels, "thank you" messages, and call-to-action texts.'
|
|
@@ -1267,16 +1267,16 @@ var UpdateMessagesResponse = /* @__PURE__ */ z.object({
|
|
|
1267
1267
|
}).describe("Modified event form.").optional()
|
|
1268
1268
|
});
|
|
1269
1269
|
var PublishDraftRequest = /* @__PURE__ */ z.object({
|
|
1270
|
-
eventId: z.string().describe("Event ID to which the form belongs.").regex(
|
|
1270
|
+
eventId: /* @__PURE__ */ z.string().describe("Event ID to which the form belongs.").regex(
|
|
1271
1271
|
/^[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}$/,
|
|
1272
1272
|
"Must be a valid GUID"
|
|
1273
1273
|
)
|
|
1274
1274
|
});
|
|
1275
1275
|
var PublishDraftResponse = /* @__PURE__ */ z.object({
|
|
1276
|
-
form: z.object({
|
|
1277
|
-
controls: z.array(
|
|
1278
|
-
z.object({
|
|
1279
|
-
type: z.enum([
|
|
1276
|
+
form: /* @__PURE__ */ z.object({
|
|
1277
|
+
controls: /* @__PURE__ */ z.array(
|
|
1278
|
+
/* @__PURE__ */ z.object({
|
|
1279
|
+
type: /* @__PURE__ */ z.enum([
|
|
1280
1280
|
"INPUT",
|
|
1281
1281
|
"TEXTAREA",
|
|
1282
1282
|
"DROPDOWN",
|
|
@@ -1288,26 +1288,26 @@ var PublishDraftResponse = /* @__PURE__ */ z.object({
|
|
|
1288
1288
|
"ADDRESS_FULL",
|
|
1289
1289
|
"DATE"
|
|
1290
1290
|
]).describe("Field control type.").optional(),
|
|
1291
|
-
system: z.boolean().describe(
|
|
1291
|
+
system: /* @__PURE__ */ z.boolean().describe(
|
|
1292
1292
|
"Whether the control is mandatory (such as `name` & `email`). When `true`, only the label can be changed."
|
|
1293
1293
|
).optional(),
|
|
1294
|
-
name: z.string().describe("Deprecated: Use `id` or `_id`.").optional(),
|
|
1295
|
-
inputs: z.array(
|
|
1296
|
-
z.object({
|
|
1297
|
-
name: z.string().describe("Field name.").optional(),
|
|
1298
|
-
array: z.boolean().describe(
|
|
1294
|
+
name: /* @__PURE__ */ z.string().describe("Deprecated: Use `id` or `_id`.").optional(),
|
|
1295
|
+
inputs: /* @__PURE__ */ z.array(
|
|
1296
|
+
/* @__PURE__ */ z.object({
|
|
1297
|
+
name: /* @__PURE__ */ z.string().describe("Field name.").optional(),
|
|
1298
|
+
array: /* @__PURE__ */ z.boolean().describe(
|
|
1299
1299
|
"*Deprecated:** Use `controls.inputs.type.TEXT_ARRAY`."
|
|
1300
1300
|
).optional(),
|
|
1301
|
-
label: z.string().describe("Main field label.").optional(),
|
|
1302
|
-
additionalLabels: z.record(z.string(), z.string()).describe(
|
|
1301
|
+
label: /* @__PURE__ */ z.string().describe("Main field label.").optional(),
|
|
1302
|
+
additionalLabels: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.string()).describe(
|
|
1303
1303
|
"Additional labels for multi-valued fields such as address."
|
|
1304
1304
|
).optional(),
|
|
1305
|
-
options: z.array(z.string()).optional(),
|
|
1306
|
-
mandatory: z.boolean().describe("Whether field is mandatory.").optional(),
|
|
1307
|
-
maxLength: z.number().int().describe(
|
|
1305
|
+
options: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).optional(),
|
|
1306
|
+
mandatory: /* @__PURE__ */ z.boolean().describe("Whether field is mandatory.").optional(),
|
|
1307
|
+
maxLength: /* @__PURE__ */ z.number().int().describe(
|
|
1308
1308
|
"Maximum number of accepted characters (relevant for text fields)."
|
|
1309
1309
|
).optional(),
|
|
1310
|
-
type: z.enum([
|
|
1310
|
+
type: /* @__PURE__ */ z.enum([
|
|
1311
1311
|
"TEXT",
|
|
1312
1312
|
"NUMBER",
|
|
1313
1313
|
"TEXT_ARRAY",
|
|
@@ -1316,25 +1316,25 @@ var PublishDraftResponse = /* @__PURE__ */ z.object({
|
|
|
1316
1316
|
]).describe(
|
|
1317
1317
|
"Type which determines field format.\nUsed to validate submitted response."
|
|
1318
1318
|
).optional(),
|
|
1319
|
-
maxSize: z.number().int().describe(
|
|
1319
|
+
maxSize: /* @__PURE__ */ z.number().int().describe(
|
|
1320
1320
|
"The maximum number of accepted values for array input.\n\n**Note:** Only applicable for `TEXT_ARRAY` input fields."
|
|
1321
1321
|
).optional().nullable(),
|
|
1322
|
-
defaultOptionSelection: z.intersection(
|
|
1323
|
-
z.object({}),
|
|
1324
|
-
z.xor([
|
|
1325
|
-
z.object({
|
|
1326
|
-
optionIndex: z.never().optional(),
|
|
1327
|
-
placeholderText: z.never().optional()
|
|
1322
|
+
defaultOptionSelection: /* @__PURE__ */ z.intersection(
|
|
1323
|
+
/* @__PURE__ */ z.object({}),
|
|
1324
|
+
/* @__PURE__ */ z.xor([
|
|
1325
|
+
/* @__PURE__ */ z.object({
|
|
1326
|
+
optionIndex: /* @__PURE__ */ z.never().optional(),
|
|
1327
|
+
placeholderText: /* @__PURE__ */ z.never().optional()
|
|
1328
1328
|
}),
|
|
1329
|
-
z.object({
|
|
1330
|
-
placeholderText: z.never().optional(),
|
|
1331
|
-
optionIndex: z.number().int().describe(
|
|
1329
|
+
/* @__PURE__ */ z.object({
|
|
1330
|
+
placeholderText: /* @__PURE__ */ z.never().optional(),
|
|
1331
|
+
optionIndex: /* @__PURE__ */ z.number().int().describe(
|
|
1332
1332
|
"0-based index from predefined `controls.inputs.options` which is initial selection."
|
|
1333
1333
|
).min(0).max(199)
|
|
1334
1334
|
}),
|
|
1335
|
-
z.object({
|
|
1336
|
-
optionIndex: z.never().optional(),
|
|
1337
|
-
placeholderText: z.string().describe(
|
|
1335
|
+
/* @__PURE__ */ z.object({
|
|
1336
|
+
optionIndex: /* @__PURE__ */ z.never().optional(),
|
|
1337
|
+
placeholderText: /* @__PURE__ */ z.string().describe(
|
|
1338
1338
|
'Placeholder hint describing expected choices, such as "Please select".\nConsidered an empty choice.'
|
|
1339
1339
|
).max(200)
|
|
1340
1340
|
})
|
|
@@ -1342,83 +1342,83 @@ var PublishDraftResponse = /* @__PURE__ */ z.object({
|
|
|
1342
1342
|
).describe(
|
|
1343
1343
|
"Default option initially selected when an input has multiple choices.\n\nDefaults to first (0th) option, if not configured.\nCurrently only applicable for `type.dropdown`."
|
|
1344
1344
|
).optional(),
|
|
1345
|
-
labels: z.array(
|
|
1346
|
-
z.object({
|
|
1347
|
-
name: z.string().describe("Field name.").optional(),
|
|
1348
|
-
label: z.string().describe("Field label.").optional()
|
|
1345
|
+
labels: /* @__PURE__ */ z.array(
|
|
1346
|
+
/* @__PURE__ */ z.object({
|
|
1347
|
+
name: /* @__PURE__ */ z.string().describe("Field name.").optional(),
|
|
1348
|
+
label: /* @__PURE__ */ z.string().describe("Field label.").optional()
|
|
1349
1349
|
})
|
|
1350
1350
|
).optional()
|
|
1351
1351
|
})
|
|
1352
1352
|
).optional(),
|
|
1353
|
-
label: z.string().describe("*Deprecated:** Use `controls.inputs.label`.").optional(),
|
|
1354
|
-
orderIndex: z.number().int().describe(
|
|
1353
|
+
label: /* @__PURE__ */ z.string().describe("*Deprecated:** Use `controls.inputs.label`.").optional(),
|
|
1354
|
+
orderIndex: /* @__PURE__ */ z.number().int().describe(
|
|
1355
1355
|
"Field controls are sorted by this value in ascending order."
|
|
1356
1356
|
).optional(),
|
|
1357
|
-
_id: z.string().describe("Unique control ID.").optional(),
|
|
1358
|
-
deleted: z.boolean().describe("Whether the input control is deleted.").optional().nullable()
|
|
1357
|
+
_id: /* @__PURE__ */ z.string().describe("Unique control ID.").optional(),
|
|
1358
|
+
deleted: /* @__PURE__ */ z.boolean().describe("Whether the input control is deleted.").optional().nullable()
|
|
1359
1359
|
})
|
|
1360
1360
|
).optional(),
|
|
1361
|
-
messages: z.object({
|
|
1362
|
-
rsvp: z.object({
|
|
1363
|
-
rsvpYesOption: z.string().describe('Label text indicating RSVP\'s `status` is `"YES"`.').optional(),
|
|
1364
|
-
rsvpNoOption: z.string().describe('Label text indicating RSVP\'s `status` is `"NO"`.').optional(),
|
|
1365
|
-
positiveMessages: z.object({
|
|
1366
|
-
title: z.string().describe("Main form title for positive response.").optional(),
|
|
1367
|
-
confirmation: z.object({
|
|
1368
|
-
title: z.string().describe("Confirmation message title.").optional(),
|
|
1369
|
-
message: z.string().describe("Confirmation message text.").optional(),
|
|
1370
|
-
addToCalendarActionLabel: z.string().describe(
|
|
1361
|
+
messages: /* @__PURE__ */ z.object({
|
|
1362
|
+
rsvp: /* @__PURE__ */ z.object({
|
|
1363
|
+
rsvpYesOption: /* @__PURE__ */ z.string().describe('Label text indicating RSVP\'s `status` is `"YES"`.').optional(),
|
|
1364
|
+
rsvpNoOption: /* @__PURE__ */ z.string().describe('Label text indicating RSVP\'s `status` is `"NO"`.').optional(),
|
|
1365
|
+
positiveMessages: /* @__PURE__ */ z.object({
|
|
1366
|
+
title: /* @__PURE__ */ z.string().describe("Main form title for positive response.").optional(),
|
|
1367
|
+
confirmation: /* @__PURE__ */ z.object({
|
|
1368
|
+
title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
|
|
1369
|
+
message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
|
|
1370
|
+
addToCalendarActionLabel: /* @__PURE__ */ z.string().describe(
|
|
1371
1371
|
'"Add to calendar" call-to-action label text.'
|
|
1372
1372
|
).optional(),
|
|
1373
|
-
shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
|
|
1373
|
+
shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
|
|
1374
1374
|
}).describe("Confirmation messages shown after registration.").optional()
|
|
1375
1375
|
}).describe(
|
|
1376
1376
|
'Messages displayed when an RSVP\'s `status` is set to `"YES"`.'
|
|
1377
1377
|
).optional(),
|
|
1378
|
-
waitlistMessages: z.object({
|
|
1379
|
-
title: z.string().describe("Main form title for positive response.").optional(),
|
|
1380
|
-
confirmation: z.object({
|
|
1381
|
-
title: z.string().describe("Confirmation message title.").optional(),
|
|
1382
|
-
message: z.string().describe("Confirmation message text.").optional(),
|
|
1383
|
-
addToCalendarActionLabel: z.string().describe(
|
|
1378
|
+
waitlistMessages: /* @__PURE__ */ z.object({
|
|
1379
|
+
title: /* @__PURE__ */ z.string().describe("Main form title for positive response.").optional(),
|
|
1380
|
+
confirmation: /* @__PURE__ */ z.object({
|
|
1381
|
+
title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
|
|
1382
|
+
message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
|
|
1383
|
+
addToCalendarActionLabel: /* @__PURE__ */ z.string().describe(
|
|
1384
1384
|
'"Add to calendar" call-to-action label text.'
|
|
1385
1385
|
).optional(),
|
|
1386
|
-
shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
|
|
1386
|
+
shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
|
|
1387
1387
|
}).describe("Confirmation messages shown after registration.").optional()
|
|
1388
1388
|
}).describe(
|
|
1389
1389
|
'Messages displayed when an RSVP\'s `status` is set to `"WAITLIST"`, for when the event is full and a waitlist is available).'
|
|
1390
1390
|
).optional(),
|
|
1391
|
-
negativeMessages: z.object({
|
|
1392
|
-
title: z.string().describe("Main form title for negative response.").optional(),
|
|
1393
|
-
confirmation: z.object({
|
|
1394
|
-
title: z.string().describe("Confirmation message title.").optional(),
|
|
1395
|
-
shareActionLabel: z.string().describe('"Share event" call-to-action label text.').optional()
|
|
1391
|
+
negativeMessages: /* @__PURE__ */ z.object({
|
|
1392
|
+
title: /* @__PURE__ */ z.string().describe("Main form title for negative response.").optional(),
|
|
1393
|
+
confirmation: /* @__PURE__ */ z.object({
|
|
1394
|
+
title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
|
|
1395
|
+
shareActionLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
|
|
1396
1396
|
}).describe("Confirmation messages shown after registration.").optional()
|
|
1397
1397
|
}).describe(
|
|
1398
1398
|
'Messages displayed when an RSVP\'s `status` is set to `"NO"`.'
|
|
1399
1399
|
).optional(),
|
|
1400
|
-
submitActionLabel: z.string().describe('"Submit form" call-to-action label text.').optional()
|
|
1400
|
+
submitActionLabel: /* @__PURE__ */ z.string().describe('"Submit form" call-to-action label text.').optional()
|
|
1401
1401
|
}).describe(
|
|
1402
1402
|
"[RSVP form](https://dev.wix.com/docs/rest/business-solutions/events/rsvp-v2/introduction) messages."
|
|
1403
1403
|
).optional(),
|
|
1404
|
-
checkout: z.object({
|
|
1405
|
-
title: z.string().describe("Main form title for response.").optional(),
|
|
1406
|
-
submitActionLabel: z.string().describe("Submit form call-to-action label text.").optional(),
|
|
1407
|
-
confirmation: z.object({
|
|
1408
|
-
title: z.string().describe("Confirmation message title.").optional(),
|
|
1409
|
-
message: z.string().describe("Confirmation message text.").optional(),
|
|
1410
|
-
downloadTicketsLabel: z.string().describe('"Download tickets" call-to-action label text.').optional(),
|
|
1411
|
-
addToCalendarLabel: z.string().describe('"Add to calendar" call-to-action label text.').optional(),
|
|
1412
|
-
shareEventLabel: z.string().describe('"Share event" call-to-action label text.').optional()
|
|
1404
|
+
checkout: /* @__PURE__ */ z.object({
|
|
1405
|
+
title: /* @__PURE__ */ z.string().describe("Main form title for response.").optional(),
|
|
1406
|
+
submitActionLabel: /* @__PURE__ */ z.string().describe("Submit form call-to-action label text.").optional(),
|
|
1407
|
+
confirmation: /* @__PURE__ */ z.object({
|
|
1408
|
+
title: /* @__PURE__ */ z.string().describe("Confirmation message title.").optional(),
|
|
1409
|
+
message: /* @__PURE__ */ z.string().describe("Confirmation message text.").optional(),
|
|
1410
|
+
downloadTicketsLabel: /* @__PURE__ */ z.string().describe('"Download tickets" call-to-action label text.').optional(),
|
|
1411
|
+
addToCalendarLabel: /* @__PURE__ */ z.string().describe('"Add to calendar" call-to-action label text.').optional(),
|
|
1412
|
+
shareEventLabel: /* @__PURE__ */ z.string().describe('"Share event" call-to-action label text.').optional()
|
|
1413
1413
|
}).describe("Confirmation messages shown after checkout.").optional()
|
|
1414
1414
|
}).describe("Checkout form messages.").optional(),
|
|
1415
|
-
registrationClosed: z.object({
|
|
1416
|
-
message: z.string().describe("Message shown when event registration is closed.").optional(),
|
|
1417
|
-
exploreEventsActionLabel: z.string().describe('"Explore other events" call-to-action label text.').optional()
|
|
1415
|
+
registrationClosed: /* @__PURE__ */ z.object({
|
|
1416
|
+
message: /* @__PURE__ */ z.string().describe("Message shown when event registration is closed.").optional(),
|
|
1417
|
+
exploreEventsActionLabel: /* @__PURE__ */ z.string().describe('"Explore other events" call-to-action label text.').optional()
|
|
1418
1418
|
}).describe("Messages shown when event registration is closed.").optional(),
|
|
1419
|
-
ticketsUnavailable: z.object({
|
|
1420
|
-
message: z.string().describe("Message shown when event tickets are unavailable.").optional(),
|
|
1421
|
-
exploreEventsActionLabel: z.string().describe('"Explore other events" call-to-action label text.').optional()
|
|
1419
|
+
ticketsUnavailable: /* @__PURE__ */ z.object({
|
|
1420
|
+
message: /* @__PURE__ */ z.string().describe("Message shown when event tickets are unavailable.").optional(),
|
|
1421
|
+
exploreEventsActionLabel: /* @__PURE__ */ z.string().describe('"Explore other events" call-to-action label text.').optional()
|
|
1422
1422
|
}).describe("Messages shown when event tickets are unavailable.").optional()
|
|
1423
1423
|
}).describe(
|
|
1424
1424
|
'Set of defined form messages displayed in the UI before, during, and after a registration flow.\nIncludes the configuration of form titles, response labels, "thank you" messages, and call-to-action texts.'
|
|
@@ -1426,7 +1426,7 @@ var PublishDraftResponse = /* @__PURE__ */ z.object({
|
|
|
1426
1426
|
}).describe("Event form.").optional()
|
|
1427
1427
|
});
|
|
1428
1428
|
var DiscardDraftRequest = /* @__PURE__ */ z.object({
|
|
1429
|
-
eventId: z.string().describe("Event ID to which the form belongs.").regex(
|
|
1429
|
+
eventId: /* @__PURE__ */ z.string().describe("Event ID to which the form belongs.").regex(
|
|
1430
1430
|
/^[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}$/,
|
|
1431
1431
|
"Must be a valid GUID"
|
|
1432
1432
|
)
|