@wix/calendar 1.0.46 → 1.0.47
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.
|
@@ -21,6 +21,11 @@ interface Event$1 {
|
|
|
21
21
|
scheduleId?: string | null;
|
|
22
22
|
/**
|
|
23
23
|
* ID of the external schedule the event belongs to.
|
|
24
|
+
*
|
|
25
|
+
* For example, if the event belongs to a Bookings staff member, identical to
|
|
26
|
+
* the ID of the [resource](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/resource-object).
|
|
27
|
+
* If the schedule belongs to a Bookings service,
|
|
28
|
+
* identical to the ID of the [service](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/service-object).
|
|
24
29
|
* @readonly
|
|
25
30
|
*/
|
|
26
31
|
externalScheduleId?: string | null;
|
|
@@ -30,11 +35,11 @@ interface Event$1 {
|
|
|
30
35
|
*/
|
|
31
36
|
scheduleName?: string | null;
|
|
32
37
|
/**
|
|
33
|
-
* Event type. You can
|
|
38
|
+
* Event type. You can set the event type but you can't update it.
|
|
34
39
|
*
|
|
35
40
|
* Supported values:
|
|
36
41
|
* + `DEFAULT`: A standard event that's not further specified.
|
|
37
|
-
* + `WORKING_HOURS`:
|
|
42
|
+
* + `WORKING_HOURS`: The event adds working hours to a schedule. By default not returned in [Query Events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/query-events).
|
|
38
43
|
*
|
|
39
44
|
* Additional supported values, if Wix Bookings is installed:
|
|
40
45
|
* + `APPOINTMENT`: Bookings appointment event.
|
|
@@ -109,6 +114,7 @@ interface Event$1 {
|
|
|
109
114
|
* Recurrence pattern for a series of events. This field is required when
|
|
110
115
|
* creating a `MASTER` event and isn't available for non-recurring events.
|
|
111
116
|
* You can't update the recurrence rule for `INSTANCE` or `EXCEPTION` events.
|
|
117
|
+
*
|
|
112
118
|
* For example, an event that repeats every second Monday until January 7, 2026,
|
|
113
119
|
* at 8:00 AM has the following `recurrenceRule`:
|
|
114
120
|
* - `frequency = WEEKLY`
|
|
@@ -1295,6 +1301,8 @@ interface Event {
|
|
|
1295
1301
|
scheduleId?: string | null;
|
|
1296
1302
|
/**
|
|
1297
1303
|
* ID of the external schedule the event belongs to.
|
|
1304
|
+
*
|
|
1305
|
+
* For example, if the event belongs to a Bookings staff member, identical to the ID of the [resource](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/introduction). If the schedule belongs to a Bookings service, identical to the ID of the [service](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/setup).
|
|
1298
1306
|
* @readonly
|
|
1299
1307
|
*/
|
|
1300
1308
|
externalScheduleId?: string | null;
|
|
@@ -1304,11 +1312,11 @@ interface Event {
|
|
|
1304
1312
|
*/
|
|
1305
1313
|
scheduleName?: string | null;
|
|
1306
1314
|
/**
|
|
1307
|
-
* Event type. You can
|
|
1315
|
+
* Event type. You can set the event type but you can't update it.
|
|
1308
1316
|
*
|
|
1309
1317
|
* Supported values:
|
|
1310
1318
|
* + `DEFAULT`: A standard event that's not further specified.
|
|
1311
|
-
* + `WORKING_HOURS`:
|
|
1319
|
+
* + `WORKING_HOURS`: The event adds working hours to a schedule. By default not returned in [queryEvents()](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/query-events).
|
|
1312
1320
|
*
|
|
1313
1321
|
* Additional supported values, if Wix Bookings is installed:
|
|
1314
1322
|
* + `APPOINTMENT`: Bookings appointment event.
|
|
@@ -1383,6 +1391,7 @@ interface Event {
|
|
|
1383
1391
|
* Recurrence pattern for a series of events. This field is required when
|
|
1384
1392
|
* creating a `MASTER` event and isn't available for non-recurring events.
|
|
1385
1393
|
* You can't update the recurrence rule for `INSTANCE` or `EXCEPTION` events.
|
|
1394
|
+
*
|
|
1386
1395
|
* For example, an event that repeats every second Monday until January 7, 2026,
|
|
1387
1396
|
* at 8:00 AM has the following `recurrenceRule`:
|
|
1388
1397
|
* - `frequency = WEEKLY`
|
|
@@ -3642,9 +3651,9 @@ interface Schedule {
|
|
|
3642
3651
|
* External ID. You can't update the external ID.
|
|
3643
3652
|
*
|
|
3644
3653
|
* If the schedule belongs to a Bookings staff member, identical to the ID of
|
|
3645
|
-
* the [resource](https://dev.wix.com/docs/
|
|
3654
|
+
* the [resource](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/introduction).
|
|
3646
3655
|
* If the schedule belongs to a Bookings service, identical to the ID of
|
|
3647
|
-
* the [service](https://dev.wix.com/docs/
|
|
3656
|
+
* the [service](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/setup).
|
|
3648
3657
|
*/
|
|
3649
3658
|
externalId?: string | null;
|
|
3650
3659
|
/**
|
|
@@ -3670,7 +3679,7 @@ interface Schedule {
|
|
|
3670
3679
|
* [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).
|
|
3671
3680
|
* For example, `America/New_York`.
|
|
3672
3681
|
*
|
|
3673
|
-
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/
|
|
3682
|
+
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties).
|
|
3674
3683
|
*
|
|
3675
3684
|
* Min: 1 character
|
|
3676
3685
|
* Max: 150 characters
|
|
@@ -3678,13 +3687,13 @@ interface Schedule {
|
|
|
3678
3687
|
timeZone?: string | null;
|
|
3679
3688
|
/**
|
|
3680
3689
|
* Whether the schedule's `timeZone` is automatically synced from
|
|
3681
|
-
* `timeZone` of the business [site properties](https://dev.wix.com/docs/
|
|
3690
|
+
* `timeZone` of the business [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties).
|
|
3682
3691
|
*
|
|
3683
3692
|
* Default: `true`
|
|
3684
3693
|
*/
|
|
3685
3694
|
businessTimeZoneEnabled?: boolean | null;
|
|
3686
3695
|
/**
|
|
3687
|
-
* Default `title` for [events](https://dev.wix.com/docs/
|
|
3696
|
+
* Default `title` for [events](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)
|
|
3688
3697
|
* that are added to the schedule.
|
|
3689
3698
|
*
|
|
3690
3699
|
* Min: 1 character
|
|
@@ -3692,34 +3701,34 @@ interface Schedule {
|
|
|
3692
3701
|
*/
|
|
3693
3702
|
defaultTitle?: string | null;
|
|
3694
3703
|
/**
|
|
3695
|
-
* Default `location` for [events](https://dev.wix.com/docs/
|
|
3704
|
+
* Default `location` for [events](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)
|
|
3696
3705
|
* that are added to the schedule.
|
|
3697
3706
|
*/
|
|
3698
3707
|
defaultLocation?: Location;
|
|
3699
3708
|
/**
|
|
3700
|
-
* Default `totalCapacity` for [events](https://dev.wix.com/docs/
|
|
3709
|
+
* Default `totalCapacity` for [events](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)
|
|
3701
3710
|
* that are added to the schedule.
|
|
3702
3711
|
*
|
|
3703
3712
|
* Min: `0`
|
|
3704
3713
|
*/
|
|
3705
3714
|
defaultCapacity?: number | null;
|
|
3706
3715
|
/**
|
|
3707
|
-
* Default `conferencingDetails` for [events](https://dev.wix.com/docs/
|
|
3716
|
+
* Default `conferencingDetails` for [events](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)
|
|
3708
3717
|
* that are added to the schedule.
|
|
3709
|
-
* Returned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/
|
|
3718
|
+
* Returned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/sdk/backend-modules/calendar/permissions#retrieve-personal-information).
|
|
3710
3719
|
*/
|
|
3711
3720
|
defaultConferencingDetails?: ConferencingDetails;
|
|
3712
3721
|
/**
|
|
3713
3722
|
* ID of the app that's associated with the schedule. You can't update `appId`.
|
|
3714
3723
|
* If you want to create a schedule and ensure its associated events appear
|
|
3715
3724
|
* in the [Bookings calendar](https://support.wix.com/en/article/wix-bookings-about-the-wix-booking-calendar),
|
|
3716
|
-
* you must provide the
|
|
3725
|
+
* you must provide the Wix Bookings app ID
|
|
3717
3726
|
* `13d21c63-b5ec-5912-8397-c3a5ddb27a97`.
|
|
3718
3727
|
*/
|
|
3719
3728
|
appId?: string | null;
|
|
3720
3729
|
/**
|
|
3721
3730
|
* List of permissions associated with the schedule. Refer to the
|
|
3722
|
-
* [permissions article](https://dev.wix.com/docs/
|
|
3731
|
+
* [permissions article](https://dev.wix.com/docs/sdk/backend-modules/calendar/permissions#roles)
|
|
3723
3732
|
* for more information.
|
|
3724
3733
|
*
|
|
3725
3734
|
* Max: 1 permission
|
|
@@ -3754,7 +3763,7 @@ declare enum Status$2 {
|
|
|
3754
3763
|
}
|
|
3755
3764
|
interface Location {
|
|
3756
3765
|
/**
|
|
3757
|
-
* [Location](https://dev.wix.com/docs/
|
|
3766
|
+
* [Location](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction)
|
|
3758
3767
|
* ID. Available only for `BUSINESS` locations.
|
|
3759
3768
|
*/
|
|
3760
3769
|
_id?: string | null;
|
|
@@ -3769,7 +3778,7 @@ interface Location {
|
|
|
3769
3778
|
type?: LocationType;
|
|
3770
3779
|
/**
|
|
3771
3780
|
* Location name. For `BUSINESS` locations, it's identical to the
|
|
3772
|
-
* [location](https://dev.wix.com/docs/
|
|
3781
|
+
* [location](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction)
|
|
3773
3782
|
* `name`.
|
|
3774
3783
|
*
|
|
3775
3784
|
* Min: 1 character
|
|
@@ -3886,7 +3895,7 @@ interface GetScheduleRequest {
|
|
|
3886
3895
|
scheduleId: string | null;
|
|
3887
3896
|
/**
|
|
3888
3897
|
* Information about which fields containing personal data to return. Refer to the
|
|
3889
|
-
* [permissions article](https://dev.wix.com/docs/
|
|
3898
|
+
* [permissions article](https://dev.wix.com/docs/sdk/backend-modules/calendar/permissions)
|
|
3890
3899
|
* for more information.
|
|
3891
3900
|
*
|
|
3892
3901
|
* Supported values:
|
|
@@ -3914,7 +3923,7 @@ interface QuerySchedulesRequest {
|
|
|
3914
3923
|
query?: CursorQuery;
|
|
3915
3924
|
/**
|
|
3916
3925
|
* Information about which fields containing personal data to return. Refer to the
|
|
3917
|
-
* [permissions article](https://dev.wix.com/docs/
|
|
3926
|
+
* [permissions article](https://dev.wix.com/docs/sdk/backend-modules/calendar/permissions)
|
|
3918
3927
|
* for more information.
|
|
3919
3928
|
*
|
|
3920
3929
|
* Supported values:
|
|
@@ -4263,7 +4272,7 @@ interface ListScheduleTimeFramesResponseNonNullableFields$1 {
|
|
|
4263
4272
|
*/
|
|
4264
4273
|
interface ScheduleTimeFrame {
|
|
4265
4274
|
/**
|
|
4266
|
-
* ID of the [schedule](https://dev.wix.com/docs/
|
|
4275
|
+
* ID of the [schedule](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction)
|
|
4267
4276
|
* to which the time frame belongs.
|
|
4268
4277
|
* @readonly
|
|
4269
4278
|
*/
|
|
@@ -4272,21 +4281,21 @@ interface ScheduleTimeFrame {
|
|
|
4272
4281
|
* Information about the presence of recurring events within the schedule.
|
|
4273
4282
|
*
|
|
4274
4283
|
* Supported values:
|
|
4275
|
-
* + `NONE`: No [events](https://dev.wix.com/docs/
|
|
4284
|
+
* + `NONE`: No [events](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction) are scheduled within the schedule.
|
|
4276
4285
|
* + `FINITE`: All recurring events within the schedule have a defined end date, or there are no recurring events.
|
|
4277
4286
|
* + `INFINITE`: At least one recurring event within the schedule has no end date, meaning it follows an unlimited repetition pattern.
|
|
4278
4287
|
* @readonly
|
|
4279
4288
|
*/
|
|
4280
4289
|
status?: Status;
|
|
4281
4290
|
/**
|
|
4282
|
-
* Start date of the first [event](https://dev.wix.com/docs/
|
|
4291
|
+
* Start date of the first [event](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)
|
|
4283
4292
|
* within the schedule. Identical to `event.start.localDate`. Available only if
|
|
4284
4293
|
* `status` is set to `FINITE` or `INFINITE`.
|
|
4285
4294
|
* @readonly
|
|
4286
4295
|
*/
|
|
4287
4296
|
firstEventStartDate?: ZonedDate;
|
|
4288
4297
|
/**
|
|
4289
|
-
* End date of the last [event](https://dev.wix.com/docs/
|
|
4298
|
+
* End date of the last [event](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)
|
|
4290
4299
|
* belonging to the schedule. Identical to `event.end.localDate`. Available only if
|
|
4291
4300
|
* `status` is set to `FINITE`.
|
|
4292
4301
|
* @readonly
|
|
@@ -4295,16 +4304,16 @@ interface ScheduleTimeFrame {
|
|
|
4295
4304
|
/**
|
|
4296
4305
|
* Start date of the first [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)
|
|
4297
4306
|
* belonging to the schedule, adjusted to `timeZone` of the
|
|
4298
|
-
* [site properties](https://dev.wix.com/docs/
|
|
4307
|
+
* [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties)
|
|
4299
4308
|
* or the `timeZone` specified in the request.
|
|
4300
4309
|
* Identical to `event.adjustedStart.localDate`.
|
|
4301
4310
|
* @readonly
|
|
4302
4311
|
*/
|
|
4303
4312
|
adjustedFirstEventStartDate?: ZonedDate;
|
|
4304
4313
|
/**
|
|
4305
|
-
* End date of the last [event](https://dev.wix.com/docs/
|
|
4314
|
+
* End date of the last [event](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)
|
|
4306
4315
|
* belonging to the schedule, adjusted to `timeZone` of the
|
|
4307
|
-
* [site properties](https://dev.wix.com/docs/
|
|
4316
|
+
* [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties)
|
|
4308
4317
|
* or the `timeZone` specified in the request.
|
|
4309
4318
|
* Identical to `event.adjustedEnd.localDate`.
|
|
4310
4319
|
* @readonly
|
|
@@ -4350,7 +4359,7 @@ interface ZonedDate {
|
|
|
4350
4359
|
}
|
|
4351
4360
|
interface GetScheduleTimeFrameRequest {
|
|
4352
4361
|
/**
|
|
4353
|
-
* [Schedule](https://dev.wix.com/docs/
|
|
4362
|
+
* [Schedule](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction)
|
|
4354
4363
|
* ID for which to retrieve the schedule time frame.
|
|
4355
4364
|
*/
|
|
4356
4365
|
_id: string | null;
|