@wix/auto_sdk_events_forms 1.0.37 → 1.0.39

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.
@@ -293,13 +293,14 @@ declare enum RequestedFields {
293
293
  type RequestedFieldsWithLiterals = RequestedFields | 'UNKNOWN_REQUESTED_FIELD' | 'DELETED';
294
294
  interface GetFormResponse {
295
295
  /**
296
- * Currently published event form.
297
- * Published form is visible to site visitors.
296
+ * Event form.
297
+ * Form is visible to site visitors.
298
298
  */
299
299
  form?: Form;
300
300
  /**
301
- * Draft event form.
302
- * Not available to visitors unless published.
301
+ * Deprecated, currently returns the same value as the form field.
302
+ * @deprecated Deprecated, currently returns the same value as the form field.
303
+ * @targetRemovalDate 2026-06-30
303
304
  */
304
305
  draftForm?: Form;
305
306
  }
@@ -500,7 +501,7 @@ interface TextControl {
500
501
  interface AddControlResponse {
501
502
  /** Generated unique input control ID. */
502
503
  _id?: string;
503
- /** Modified draft event form. */
504
+ /** Modified event form. */
504
505
  form?: Form;
505
506
  }
506
507
  interface UpdateControlRequest extends UpdateControlRequestControlOneOf {
@@ -581,7 +582,7 @@ interface EmailControl {
581
582
  label?: string;
582
583
  }
583
584
  interface UpdateControlResponse {
584
- /** Modified draft event form. */
585
+ /** Modified event form. */
585
586
  form?: Form;
586
587
  }
587
588
  interface DeleteControlRequest {
@@ -616,7 +617,7 @@ interface UpdateMessagesRequest {
616
617
  messages?: FormMessages;
617
618
  }
618
619
  interface UpdateMessagesResponse {
619
- /** Modified draft event form. */
620
+ /** Modified event form. */
620
621
  form?: Form;
621
622
  }
622
623
  interface PublishDraftRequest {
@@ -627,7 +628,7 @@ interface PublishDraftRequest {
627
628
  eventId: string;
628
629
  }
629
630
  interface PublishDraftResponse {
630
- /** Published event form. */
631
+ /** Event form. */
631
632
  form?: Form;
632
633
  }
633
634
  interface EventUpdated {
@@ -3344,8 +3345,6 @@ declare function onFormEventUpdated(handler: (event: FormEventUpdatedEnvelope) =
3344
3345
  type FormNonNullablePaths = `controls` | `controls.${number}.type` | `controls.${number}.system` | `controls.${number}.name` | `controls.${number}.label` | `controls.${number}.orderIndex` | `controls.${number}._id` | `messages.rsvp.rsvpYesOption` | `messages.rsvp.rsvpNoOption` | `messages.rsvp.positiveMessages.title` | `messages.rsvp.positiveMessages.confirmation.title` | `messages.rsvp.positiveMessages.confirmation.message` | `messages.rsvp.positiveMessages.confirmation.addToCalendarActionLabel` | `messages.rsvp.positiveMessages.confirmation.shareActionLabel` | `messages.rsvp.negativeMessages.title` | `messages.rsvp.negativeMessages.confirmation.title` | `messages.rsvp.negativeMessages.confirmation.shareActionLabel` | `messages.rsvp.submitActionLabel` | `messages.checkout.title` | `messages.checkout.submitActionLabel` | `messages.checkout.confirmation.title` | `messages.checkout.confirmation.message` | `messages.checkout.confirmation.downloadTicketsLabel` | `messages.checkout.confirmation.addToCalendarLabel` | `messages.checkout.confirmation.shareEventLabel` | `messages.registrationClosed.message` | `messages.registrationClosed.exploreEventsActionLabel` | `messages.ticketsUnavailable.message` | `messages.ticketsUnavailable.exploreEventsActionLabel`;
3345
3346
  /**
3346
3347
  * Retrieves an event registration form.
3347
- *
3348
- * Retrieves both the draft and published versions.
3349
3348
  * @param eventId - Event ID to which the form belongs.
3350
3349
  * @public
3351
3350
  * @requiredField eventId
@@ -3353,13 +3352,13 @@ type FormNonNullablePaths = `controls` | `controls.${number}.type` | `controls.$
3353
3352
  * @permissionId WIX_EVENTS.READ_EVENTS
3354
3353
  * @applicableIdentity APP
3355
3354
  * @applicableIdentity VISITOR
3356
- * @returns Currently published event form.
3357
- * Published form is visible to site visitors.
3355
+ * @returns Event form.
3356
+ * Form is visible to site visitors.
3358
3357
  * @fqn wix.events.form.FormBuilder.GetForm
3359
3358
  */
3360
3359
  declare function getForm(eventId: string): Promise<NonNullablePaths<Form, FormNonNullablePaths>>;
3361
3360
  /**
3362
- * Adds an input control to the draft form.
3361
+ * Adds an input control to the form. The applied changes trigger form publishing.
3363
3362
  * @param eventId - Event ID to which the form belongs.
3364
3363
  * @public
3365
3364
  * @requiredField eventId
@@ -3413,7 +3412,7 @@ interface AddControlOptionsControlOneOf {
3413
3412
  radioButton?: RadioButtonControl;
3414
3413
  }
3415
3414
  /**
3416
- * Updates an existing input control in the draft form.
3415
+ * Updates an existing input control in the form. The applied changes trigger form publishing.
3417
3416
  * @public
3418
3417
  * @requiredField identifiers
3419
3418
  * @requiredField identifiers._id
@@ -3510,7 +3509,7 @@ interface UpdateControlOptionsControlOneOf {
3510
3509
  radioButton?: RadioButtonControl;
3511
3510
  }
3512
3511
  /**
3513
- * Deletes an input control from the draft form.
3512
+ * Deletes an input control from the form. The applied changes trigger form publishing.
3514
3513
  * @public
3515
3514
  * @requiredField identifiers
3516
3515
  * @requiredField identifiers._id
@@ -3569,6 +3568,8 @@ interface UpdateMessagesOptions {
3569
3568
  * @permissionId WIX_EVENTS.MANAGE_EVENTS
3570
3569
  * @applicableIdentity APP
3571
3570
  * @fqn wix.events.form.FormBuilder.PublishDraft
3571
+ * @deprecated
3572
+ * @targetRemovalDate 2026-01-05
3572
3573
  */
3573
3574
  declare function publishDraft(eventId: string): Promise<NonNullablePaths<PublishDraftResponse, {
3574
3575
  [P in FormNonNullablePaths]: `form.${P}`;
@@ -3581,6 +3582,8 @@ declare function publishDraft(eventId: string): Promise<NonNullablePaths<Publish
3581
3582
  * @permissionId WIX_EVENTS.MANAGE_EVENTS
3582
3583
  * @applicableIdentity APP
3583
3584
  * @fqn wix.events.form.FormBuilder.DiscardDraft
3585
+ * @deprecated
3586
+ * @targetRemovalDate 2026-01-05
3584
3587
  */
3585
3588
  declare function discardDraft(eventId: string): Promise<void>;
3586
3589