@wix/auto_sdk_bookings_bookings 1.0.59 → 1.0.61

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.
@@ -672,6 +672,76 @@ interface Duration {
672
672
  */
673
673
  name?: string | null;
674
674
  }
675
+ interface V2Slot {
676
+ /** Identifier for the underlying session when the session is a single session or generated from a recurring session. */
677
+ sessionId?: string | null;
678
+ /** Service identifier. Required. */
679
+ serviceId?: string;
680
+ /** Schedule identifier. Required. */
681
+ scheduleId?: string;
682
+ /** The start time of this slot in `YYYY-MM-DDThh:mm:ss`, `YYYY-MM-DDThh:mm:ss:SSS`, or `YYYY-MM-DDThh:mm:ss:SSSZZ` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601). For example, `2026-01-30T13:30:00`, `2026-01-30T13:30:00:000`, or `2026-01-30T13:30:00:000-05:00`. */
683
+ startDate?: string | null;
684
+ /** The end time of this slot in `YYYY-MM-DDThh:mm:ss`, `YYYY-MM-DDThh:mm:ss:SSS`, or `YYYY-MM-DDThh:mm:ss:SSSZZ` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601). For example, `2026-01-30T13:30:00`, `2026-01-30T13:30:00:000`, or `2026-01-30T13:30:00:000-05:00`. */
685
+ endDate?: string | null;
686
+ /** The timezone according to which the slot is calculated and presented. */
687
+ timezone?: string | null;
688
+ /**
689
+ * The resource required for this slot.
690
+ * When populated, the specified resource will be assigned to the slot upon confirmation according to its availability.
691
+ * When empty, if `skip_availability_validation` is `false`, a random available resource will be assigned to the slot upon confirmation.
692
+ * Otherwise, one of the service resources will be assigned to the slot randomly upon confirmation.
693
+ */
694
+ resource?: SlotSlotResource;
695
+ /** Geographic location of the slot. */
696
+ location?: SlotLocation;
697
+ /**
698
+ * Calendar event ID - not supported.
699
+ * If not empty, on all write flows (create/update), it takes priority over `sessionId`.
700
+ * So if both `sessionId` and `eventId` are provided, the `sessionId` will be based on the `eventId`.
701
+ * Otherwise, if `eventId` is empty on write flow,
702
+ * @minLength 36
703
+ * @maxLength 250
704
+ */
705
+ eventId?: string | null;
706
+ }
707
+ declare enum LocationLocationType {
708
+ /** Undefined location type. */
709
+ UNDEFINED = "UNDEFINED",
710
+ /** The business address as set in the site’s general settings. */
711
+ OWNER_BUSINESS = "OWNER_BUSINESS",
712
+ /** The address set when creating the service. */
713
+ OWNER_CUSTOM = "OWNER_CUSTOM",
714
+ /** The address set for the individual session. */
715
+ CUSTOM = "CUSTOM"
716
+ }
717
+ /** @enumType */
718
+ type LocationLocationTypeWithLiterals = LocationLocationType | 'UNDEFINED' | 'OWNER_BUSINESS' | 'OWNER_CUSTOM' | 'CUSTOM';
719
+ interface SlotSlotResource {
720
+ /**
721
+ * Resource ID.
722
+ * @format GUID
723
+ * @readonly
724
+ */
725
+ id?: string | null;
726
+ /**
727
+ * Resource name.
728
+ * @maxLength 1200
729
+ */
730
+ name?: string | null;
731
+ }
732
+ interface SlotLocation {
733
+ /**
734
+ * Business Location ID. Present if the location is a business location.
735
+ * @format GUID
736
+ */
737
+ id?: string | null;
738
+ /** Location name. */
739
+ name?: string | null;
740
+ /** A string containing the full address of this location. */
741
+ formattedAddress?: string | null;
742
+ /** Location type. */
743
+ locationType?: LocationLocationTypeWithLiterals;
744
+ }
675
745
  interface ConfirmOrDeclineBookingRequest {
676
746
  /**
677
747
  * ID of the booking to confirm or decline.
@@ -907,76 +977,6 @@ interface RescheduleBookingRequestParticipantsInfoOneOf {
907
977
  */
908
978
  participantsChoices?: ParticipantChoices;
909
979
  }
910
- interface V2Slot {
911
- /** Identifier for the underlying session when the session is a single session or generated from a recurring session. */
912
- sessionId?: string | null;
913
- /** Service identifier. Required. */
914
- serviceId?: string;
915
- /** Schedule identifier. Required. */
916
- scheduleId?: string;
917
- /** The start time of this slot in `YYYY-MM-DDThh:mm:ss`, `YYYY-MM-DDThh:mm:ss:SSS`, or `YYYY-MM-DDThh:mm:ss:SSSZZ` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601). For example, `2026-01-30T13:30:00`, `2026-01-30T13:30:00:000`, or `2026-01-30T13:30:00:000-05:00`. */
918
- startDate?: string | null;
919
- /** The end time of this slot in `YYYY-MM-DDThh:mm:ss`, `YYYY-MM-DDThh:mm:ss:SSS`, or `YYYY-MM-DDThh:mm:ss:SSSZZ` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601). For example, `2026-01-30T13:30:00`, `2026-01-30T13:30:00:000`, or `2026-01-30T13:30:00:000-05:00`. */
920
- endDate?: string | null;
921
- /** The timezone according to which the slot is calculated and presented. */
922
- timezone?: string | null;
923
- /**
924
- * The resource required for this slot.
925
- * When populated, the specified resource will be assigned to the slot upon confirmation according to its availability.
926
- * When empty, if `skip_availability_validation` is `false`, a random available resource will be assigned to the slot upon confirmation.
927
- * Otherwise, one of the service resources will be assigned to the slot randomly upon confirmation.
928
- */
929
- resource?: SlotSlotResource;
930
- /** Geographic location of the slot. */
931
- location?: SlotLocation;
932
- /**
933
- * Calendar event ID - not supported.
934
- * If not empty, on all write flows (create/update), it takes priority over `sessionId`.
935
- * So if both `sessionId` and `eventId` are provided, the `sessionId` will be based on the `eventId`.
936
- * Otherwise, if `eventId` is empty on write flow,
937
- * @minLength 36
938
- * @maxLength 250
939
- */
940
- eventId?: string | null;
941
- }
942
- declare enum LocationLocationType {
943
- /** Undefined location type. */
944
- UNDEFINED = "UNDEFINED",
945
- /** The business address as set in the site’s general settings. */
946
- OWNER_BUSINESS = "OWNER_BUSINESS",
947
- /** The address set when creating the service. */
948
- OWNER_CUSTOM = "OWNER_CUSTOM",
949
- /** The address set for the individual session. */
950
- CUSTOM = "CUSTOM"
951
- }
952
- /** @enumType */
953
- type LocationLocationTypeWithLiterals = LocationLocationType | 'UNDEFINED' | 'OWNER_BUSINESS' | 'OWNER_CUSTOM' | 'CUSTOM';
954
- interface SlotSlotResource {
955
- /**
956
- * Resource ID.
957
- * @format GUID
958
- * @readonly
959
- */
960
- id?: string | null;
961
- /**
962
- * Resource name.
963
- * @maxLength 1200
964
- */
965
- name?: string | null;
966
- }
967
- interface SlotLocation {
968
- /**
969
- * Business Location ID. Present if the location is a business location.
970
- * @format GUID
971
- */
972
- id?: string | null;
973
- /** Location name. */
974
- name?: string | null;
975
- /** A string containing the full address of this location. */
976
- formattedAddress?: string | null;
977
- /** Location type. */
978
- locationType?: LocationLocationTypeWithLiterals;
979
- }
980
980
  interface RescheduleBookingFlowControlSettings {
981
981
  /**
982
982
  * Whether the rescheduling policy applies when rescheduling the booking.