@wix/auto_sdk_events_forms 1.0.38 → 1.0.40

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 {
@@ -2633,6 +2634,8 @@ interface AppEmbedData extends AppEmbedDataAppDataOneOf {
2633
2634
  ribbonStyles?: RibbonStyles;
2634
2635
  /** Card styling options. */
2635
2636
  cardStyles?: CardStyles;
2637
+ /** Styling for the app embed's container. */
2638
+ containerData?: PluginContainerData;
2636
2639
  }
2637
2640
  /** @oneof */
2638
2641
  interface AppEmbedDataAppDataOneOf {
@@ -3344,8 +3347,6 @@ declare function onFormEventUpdated(handler: (event: FormEventUpdatedEnvelope) =
3344
3347
  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
3348
  /**
3346
3349
  * Retrieves an event registration form.
3347
- *
3348
- * Retrieves both the draft and published versions.
3349
3350
  * @param eventId - Event ID to which the form belongs.
3350
3351
  * @public
3351
3352
  * @requiredField eventId
@@ -3353,13 +3354,13 @@ type FormNonNullablePaths = `controls` | `controls.${number}.type` | `controls.$
3353
3354
  * @permissionId WIX_EVENTS.READ_EVENTS
3354
3355
  * @applicableIdentity APP
3355
3356
  * @applicableIdentity VISITOR
3356
- * @returns Currently published event form.
3357
- * Published form is visible to site visitors.
3357
+ * @returns Event form.
3358
+ * Form is visible to site visitors.
3358
3359
  * @fqn wix.events.form.FormBuilder.GetForm
3359
3360
  */
3360
3361
  declare function getForm(eventId: string): Promise<NonNullablePaths<Form, FormNonNullablePaths>>;
3361
3362
  /**
3362
- * Adds an input control to the draft form.
3363
+ * Adds an input control to the form. The applied changes trigger form publishing.
3363
3364
  * @param eventId - Event ID to which the form belongs.
3364
3365
  * @public
3365
3366
  * @requiredField eventId
@@ -3413,7 +3414,7 @@ interface AddControlOptionsControlOneOf {
3413
3414
  radioButton?: RadioButtonControl;
3414
3415
  }
3415
3416
  /**
3416
- * Updates an existing input control in the draft form.
3417
+ * Updates an existing input control in the form. The applied changes trigger form publishing.
3417
3418
  * @public
3418
3419
  * @requiredField identifiers
3419
3420
  * @requiredField identifiers._id
@@ -3510,7 +3511,7 @@ interface UpdateControlOptionsControlOneOf {
3510
3511
  radioButton?: RadioButtonControl;
3511
3512
  }
3512
3513
  /**
3513
- * Deletes an input control from the draft form.
3514
+ * Deletes an input control from the form. The applied changes trigger form publishing.
3514
3515
  * @public
3515
3516
  * @requiredField identifiers
3516
3517
  * @requiredField identifiers._id
@@ -3569,6 +3570,8 @@ interface UpdateMessagesOptions {
3569
3570
  * @permissionId WIX_EVENTS.MANAGE_EVENTS
3570
3571
  * @applicableIdentity APP
3571
3572
  * @fqn wix.events.form.FormBuilder.PublishDraft
3573
+ * @deprecated
3574
+ * @targetRemovalDate 2026-01-05
3572
3575
  */
3573
3576
  declare function publishDraft(eventId: string): Promise<NonNullablePaths<PublishDraftResponse, {
3574
3577
  [P in FormNonNullablePaths]: `form.${P}`;
@@ -3581,6 +3584,8 @@ declare function publishDraft(eventId: string): Promise<NonNullablePaths<Publish
3581
3584
  * @permissionId WIX_EVENTS.MANAGE_EVENTS
3582
3585
  * @applicableIdentity APP
3583
3586
  * @fqn wix.events.form.FormBuilder.DiscardDraft
3587
+ * @deprecated
3588
+ * @targetRemovalDate 2026-01-05
3584
3589
  */
3585
3590
  declare function discardDraft(eventId: string): Promise<void>;
3586
3591