@wix/calendar 1.0.36 → 1.0.38
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/package.json +6 -6
- package/type-bundles/context.bundle.d.ts +420 -204
- package/type-bundles/index.bundle.d.ts +420 -204
- package/type-bundles/meta.bundle.d.ts +396 -198
|
@@ -604,7 +604,7 @@ interface Event$1 {
|
|
|
604
604
|
* + `OPAQUE`: The schedule is blocked during the event, preventing other events that involve the same entities (for example, Booking staff members) from being scheduled at the same time.
|
|
605
605
|
* + `TRANSPARENT`: The schedule remains open during the event, allowing other events to be scheduled concurrently.
|
|
606
606
|
*
|
|
607
|
-
* Default: `
|
|
607
|
+
* Default: `OPAQUE`
|
|
608
608
|
*/
|
|
609
609
|
transparency?: Transparency$1;
|
|
610
610
|
/**
|
|
@@ -615,7 +615,7 @@ interface Event$1 {
|
|
|
615
615
|
location?: Location$2;
|
|
616
616
|
/**
|
|
617
617
|
* List of [Wix Bookings resources](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/resource-object)
|
|
618
|
-
* affected by the event. This could include
|
|
618
|
+
* affected by the event. This could include, for example, the
|
|
619
619
|
* [Wix Bookings staff member](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/staff-member-v1/staff-member-object)
|
|
620
620
|
* providing the service or the room where the appointment takes place.
|
|
621
621
|
*
|
|
@@ -654,7 +654,7 @@ interface Event$1 {
|
|
|
654
654
|
/**
|
|
655
655
|
* List of fields whose values are inherited.
|
|
656
656
|
* + For single-occurrence events, values are inherited from the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object).
|
|
657
|
-
* + For `INSTANCE` and `EXCEPTION` events, values are inherited from the related
|
|
657
|
+
* + For `INSTANCE` and `EXCEPTION` events, values are inherited from the related `MASTER` event.
|
|
658
658
|
* @readonly
|
|
659
659
|
*/
|
|
660
660
|
inheritedFields?: Field$1[];
|
|
@@ -805,36 +805,42 @@ declare enum Transparency$1 {
|
|
|
805
805
|
}
|
|
806
806
|
interface Location$2 {
|
|
807
807
|
/**
|
|
808
|
-
*
|
|
809
|
-
*
|
|
808
|
+
* [Location](https://dev.wix.com/docs/rest/business-management/locations/location-object)
|
|
809
|
+
* ID. Available only for `BUSINESS` locations.
|
|
810
810
|
*/
|
|
811
811
|
_id?: string | null;
|
|
812
812
|
/**
|
|
813
|
-
*
|
|
814
|
-
*
|
|
815
|
-
*
|
|
816
|
-
*
|
|
817
|
-
*
|
|
813
|
+
* Location type.
|
|
814
|
+
*
|
|
815
|
+
* Supported values:
|
|
816
|
+
* + `BUSINESS`: The event is held at a business location.
|
|
817
|
+
* + `CUSTOMER`: The event is held at the customer's location, such as their home or office.
|
|
818
|
+
* + `CUSTOM`: The event is held at an address or venue not tied to the business or customer.
|
|
818
819
|
*/
|
|
819
820
|
type?: LocationType$2;
|
|
820
821
|
/**
|
|
821
|
-
*
|
|
822
|
-
*
|
|
822
|
+
* Location name. For `BUSINESS` locations, it's identical to the
|
|
823
|
+
* [location](https://dev.wix.com/docs/rest/business-management/locations/location-object)
|
|
824
|
+
* `name`.
|
|
825
|
+
*
|
|
826
|
+
* Min: 1 character
|
|
827
|
+
* Max: 150 characters
|
|
823
828
|
*/
|
|
824
829
|
name?: string | null;
|
|
825
830
|
/**
|
|
826
|
-
*
|
|
827
|
-
*
|
|
831
|
+
* Location address. For `BUSINESS` locations, it's identical to the
|
|
832
|
+
* [location](https://dev.wix.com/docs/rest/business-management/locations/location-object)'s
|
|
833
|
+
* `formattedAddress`.
|
|
828
834
|
*/
|
|
829
835
|
address?: string | null;
|
|
830
836
|
}
|
|
831
837
|
declare enum LocationType$2 {
|
|
832
838
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
833
|
-
/** The event
|
|
839
|
+
/** The event is held at a business location. */
|
|
834
840
|
BUSINESS = "BUSINESS",
|
|
835
|
-
/** The event
|
|
841
|
+
/** The event is held at the customer's location, such as their home or office. */
|
|
836
842
|
CUSTOMER = "CUSTOMER",
|
|
837
|
-
/** The event
|
|
843
|
+
/** The event is held at an address or venue not tied to the business or customer. */
|
|
838
844
|
CUSTOM = "CUSTOM"
|
|
839
845
|
}
|
|
840
846
|
interface Resource$1 {
|
|
@@ -869,9 +875,9 @@ interface Resource$1 {
|
|
|
869
875
|
}
|
|
870
876
|
declare enum Role$2 {
|
|
871
877
|
UNKNOWN_ROLE = "UNKNOWN_ROLE",
|
|
872
|
-
/**
|
|
878
|
+
/** Full read and write access. */
|
|
873
879
|
WRITER = "WRITER",
|
|
874
|
-
/**
|
|
880
|
+
/** Full read access, write access limited to `event.notes`. */
|
|
875
881
|
COMMENTER = "COMMENTER"
|
|
876
882
|
}
|
|
877
883
|
interface Participants$1 {
|
|
@@ -929,15 +935,35 @@ declare enum ParticipantsStatus$1 {
|
|
|
929
935
|
PENDING_CONFIRMATION = "PENDING_CONFIRMATION"
|
|
930
936
|
}
|
|
931
937
|
interface ConferencingDetails$2 {
|
|
932
|
-
/**
|
|
938
|
+
/** Conference type. For example, `Zoom`. */
|
|
933
939
|
type?: Type$2;
|
|
934
|
-
/**
|
|
940
|
+
/**
|
|
941
|
+
* URL used by the host to start the conference.
|
|
942
|
+
*
|
|
943
|
+
* Min: 1 character
|
|
944
|
+
* Max: 2000 characters
|
|
945
|
+
*/
|
|
935
946
|
hostUrl?: string | null;
|
|
936
|
-
/**
|
|
947
|
+
/**
|
|
948
|
+
* URL used by a guest to join the conference.
|
|
949
|
+
*
|
|
950
|
+
* Min: 1 character
|
|
951
|
+
* Max: 2000 characters
|
|
952
|
+
*/
|
|
937
953
|
guestUrl?: string | null;
|
|
938
|
-
/**
|
|
954
|
+
/**
|
|
955
|
+
* Conference password.
|
|
956
|
+
*
|
|
957
|
+
* Min: 1 character
|
|
958
|
+
* Max: 100 characters
|
|
959
|
+
*/
|
|
939
960
|
password?: string | null;
|
|
940
|
-
/**
|
|
961
|
+
/**
|
|
962
|
+
* Conference ID in an external system.
|
|
963
|
+
*
|
|
964
|
+
* Min: 1 character
|
|
965
|
+
* Max: 150 characters
|
|
966
|
+
*/
|
|
941
967
|
externalId?: string | null;
|
|
942
968
|
}
|
|
943
969
|
declare enum Type$2 {
|
|
@@ -965,14 +991,17 @@ declare enum Field$1 {
|
|
|
965
991
|
CONFERENCING_DETAILS = "CONFERENCING_DETAILS"
|
|
966
992
|
}
|
|
967
993
|
interface Permission$2 {
|
|
968
|
-
/**
|
|
994
|
+
/**
|
|
995
|
+
* [Wix user](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#wix-users)
|
|
996
|
+
* granted the permission.
|
|
997
|
+
*/
|
|
969
998
|
identity?: CommonIdentificationData$2;
|
|
970
999
|
/**
|
|
971
|
-
*
|
|
1000
|
+
* Permission role.
|
|
972
1001
|
*
|
|
973
|
-
*
|
|
974
|
-
*
|
|
975
|
-
*
|
|
1002
|
+
* Supported values:
|
|
1003
|
+
* + `WRITER`: Full read and write access.
|
|
1004
|
+
* + `COMMENTER`: Full read access, write access limited to `event.notes`.
|
|
976
1005
|
*/
|
|
977
1006
|
role?: Role$2;
|
|
978
1007
|
}
|
|
@@ -1066,6 +1095,13 @@ interface ListEventsRequest {
|
|
|
1066
1095
|
* Min: 100 event IDs
|
|
1067
1096
|
*/
|
|
1068
1097
|
eventIds: string[];
|
|
1098
|
+
/**
|
|
1099
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database)
|
|
1100
|
+
* for calculating `adjustedStart` and `adjustedEnd`. For example,
|
|
1101
|
+
* `America/New_York` or `UTC`.
|
|
1102
|
+
*
|
|
1103
|
+
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).
|
|
1104
|
+
*/
|
|
1069
1105
|
timeZone?: string | null;
|
|
1070
1106
|
/**
|
|
1071
1107
|
* Information about which fields containing personal data to return. Refer to the
|
|
@@ -1166,7 +1202,7 @@ interface CursorQueryPagingMethodOneOf$2 {
|
|
|
1166
1202
|
interface Sorting {
|
|
1167
1203
|
/**
|
|
1168
1204
|
* The field to sort by.
|
|
1169
|
-
* Either `start` or `end
|
|
1205
|
+
* Either `start` or `end`.
|
|
1170
1206
|
* Default is `start`.
|
|
1171
1207
|
*/
|
|
1172
1208
|
fieldName?: string;
|
|
@@ -1352,11 +1388,17 @@ interface UpdateEventRequest {
|
|
|
1352
1388
|
}
|
|
1353
1389
|
interface ParticipantNotification$1 {
|
|
1354
1390
|
/**
|
|
1355
|
-
* Whether to notify the
|
|
1356
|
-
*
|
|
1391
|
+
* Whether to notify the participants about changes made to the schedule or event.
|
|
1392
|
+
*
|
|
1393
|
+
* Default: `false`
|
|
1357
1394
|
*/
|
|
1358
1395
|
notifyParticipants?: boolean | null;
|
|
1359
|
-
/**
|
|
1396
|
+
/**
|
|
1397
|
+
* Message to send.
|
|
1398
|
+
*
|
|
1399
|
+
* Min: 1 character
|
|
1400
|
+
* Max: 5000 characters
|
|
1401
|
+
*/
|
|
1360
1402
|
message?: string | null;
|
|
1361
1403
|
}
|
|
1362
1404
|
interface UpdateEventResponse {
|
|
@@ -1484,9 +1526,9 @@ interface SplitRecurringEventResponse {
|
|
|
1484
1526
|
newRecurringEventStartingFromSplit?: Event$1;
|
|
1485
1527
|
}
|
|
1486
1528
|
interface RecurringEventSplit {
|
|
1487
|
-
/**
|
|
1529
|
+
/** Original `MASTER` event that was shortened. */
|
|
1488
1530
|
updatedRecurringEventEndingBeforeSplit?: Event$1;
|
|
1489
|
-
/**
|
|
1531
|
+
/** New `MASTER` event starting with the first event after the split date. */
|
|
1490
1532
|
newRecurringEventStartingFromSplit?: Event$1;
|
|
1491
1533
|
}
|
|
1492
1534
|
interface CancelEventRequest {
|
|
@@ -1511,7 +1553,7 @@ interface CancelEventResponse {
|
|
|
1511
1553
|
event?: Event$1;
|
|
1512
1554
|
}
|
|
1513
1555
|
interface EventCancelled {
|
|
1514
|
-
/**
|
|
1556
|
+
/** Canceled event. */
|
|
1515
1557
|
event?: Event$1;
|
|
1516
1558
|
}
|
|
1517
1559
|
interface BulkCancelEventRequest {
|
|
@@ -1916,33 +1958,43 @@ interface Empty$4 {
|
|
|
1916
1958
|
}
|
|
1917
1959
|
interface ListEventsByContactIdRequest {
|
|
1918
1960
|
/**
|
|
1919
|
-
*
|
|
1920
|
-
* Required, unless `cursorPaging
|
|
1961
|
+
* ID of the [contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object)
|
|
1962
|
+
* to retrieve events for. Required, unless you provide `cursorPaging`.
|
|
1921
1963
|
*/
|
|
1922
1964
|
contactId: string | null;
|
|
1923
1965
|
/**
|
|
1924
|
-
* Local start date
|
|
1925
|
-
*
|
|
1966
|
+
* Local start date and time from which events are returned in
|
|
1967
|
+
* [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format. For example,
|
|
1968
|
+
* `2024-01-30T13:30:00`.
|
|
1926
1969
|
*
|
|
1927
|
-
*
|
|
1970
|
+
* Events that start before the `fromLocalDate` but end after it are included in
|
|
1971
|
+
* the results. Must be earlier than `toLocalDate`.
|
|
1928
1972
|
*/
|
|
1929
1973
|
fromLocalDate?: string | null;
|
|
1930
1974
|
/**
|
|
1931
|
-
* Local end date
|
|
1932
|
-
*
|
|
1975
|
+
* Local end date and time up to which events are returned in
|
|
1976
|
+
* [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format. For example,
|
|
1977
|
+
* `2024-01-30T13:30:00`. Can't be more than a full year after
|
|
1978
|
+
* `fromLocalDate`.
|
|
1933
1979
|
*
|
|
1934
|
-
*
|
|
1935
|
-
*
|
|
1980
|
+
* Events that start before `toLocalDate` but end after it are included in the
|
|
1981
|
+
* results. Must be later than `fromLocalDate`.
|
|
1936
1982
|
*/
|
|
1937
1983
|
toLocalDate?: string | null;
|
|
1938
1984
|
/**
|
|
1939
|
-
*
|
|
1940
|
-
*
|
|
1985
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database)
|
|
1986
|
+
* for `fromLocalDate`, `toLocalDate`, and for calculating `adjustedStart` and
|
|
1987
|
+
* `adjustedEnd`. For example, `America/New_York` or `UTC`.
|
|
1988
|
+
*
|
|
1989
|
+
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).
|
|
1941
1990
|
*/
|
|
1942
1991
|
timeZone?: string | null;
|
|
1943
|
-
/**
|
|
1992
|
+
/**
|
|
1993
|
+
* [App ID](https://dev.wix.com/docs/rest/articles/getting-started/wix-business-solutions)
|
|
1994
|
+
* to filter events by.
|
|
1995
|
+
*/
|
|
1944
1996
|
appId?: string | null;
|
|
1945
|
-
/**
|
|
1997
|
+
/** Cursor to retrieve the next page of the results. */
|
|
1946
1998
|
cursorPaging?: CommonCursorPaging;
|
|
1947
1999
|
}
|
|
1948
2000
|
/** TODO Diverge */
|
|
@@ -1962,7 +2014,7 @@ interface CommonCursorPaging {
|
|
|
1962
2014
|
cursor?: string | null;
|
|
1963
2015
|
}
|
|
1964
2016
|
interface ListEventsByContactIdResponse {
|
|
1965
|
-
/**
|
|
2017
|
+
/** Retrieved events. */
|
|
1966
2018
|
events?: Event$1[];
|
|
1967
2019
|
/** Paging metadata. */
|
|
1968
2020
|
pagingMetadata?: CommonCursorPagingMetadata;
|
|
@@ -1986,46 +2038,58 @@ interface CommonCursors {
|
|
|
1986
2038
|
}
|
|
1987
2039
|
interface ListEventsByMemberIdRequest {
|
|
1988
2040
|
/**
|
|
1989
|
-
*
|
|
1990
|
-
*
|
|
1991
|
-
*
|
|
1992
|
-
*
|
|
1993
|
-
*
|
|
1994
|
-
*
|
|
2041
|
+
* ID of the [member](https://dev.wix.com/docs/rest/crm/members-contacts/members/members/member-object)
|
|
2042
|
+
* to retrieve events for. Required, unless you provide `cursorPaging`.
|
|
2043
|
+
* Provide `me` to retrieve events for the currently logged-in member.
|
|
2044
|
+
* You must have the `Read Calendars - Including PI`
|
|
2045
|
+
* [permission scope](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app)
|
|
2046
|
+
* to retrieve events for members who aren't the currently logged in member.
|
|
1995
2047
|
*/
|
|
1996
2048
|
memberId: string | null;
|
|
1997
2049
|
/**
|
|
1998
|
-
* Local start date
|
|
1999
|
-
*
|
|
2050
|
+
* Local start date and time from which events are returned in
|
|
2051
|
+
* [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format. For example,
|
|
2052
|
+
* `2024-01-30T13:30:00`.
|
|
2000
2053
|
*
|
|
2001
|
-
*
|
|
2054
|
+
* Events that start before the `fromLocalDate` but end after it are included in
|
|
2055
|
+
* the results. Must be earlier than `toLocalDate`.
|
|
2002
2056
|
*/
|
|
2003
2057
|
fromLocalDate?: string | null;
|
|
2004
2058
|
/**
|
|
2005
|
-
* Local end date
|
|
2006
|
-
*
|
|
2059
|
+
* Local end date and time up to which events are returned in
|
|
2060
|
+
* [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format. For example,
|
|
2061
|
+
* `2024-01-30T13:30:00`. Can't be more than a full year after
|
|
2062
|
+
* `fromLocalDate`.
|
|
2007
2063
|
*
|
|
2008
|
-
*
|
|
2009
|
-
*
|
|
2064
|
+
* Events that start before `toLocalDate` but end after it are included in the
|
|
2065
|
+
* results. Must be later than `fromLocalDate`.
|
|
2010
2066
|
*/
|
|
2011
2067
|
toLocalDate?: string | null;
|
|
2012
2068
|
/**
|
|
2013
|
-
*
|
|
2014
|
-
*
|
|
2069
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database)
|
|
2070
|
+
* for `fromLocalDate`, `toLocalDate`, and for calculating `adjustedStart` and
|
|
2071
|
+
* `adjustedEnd`. For example, `America/New_York` or `UTC`.
|
|
2072
|
+
*
|
|
2073
|
+
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).
|
|
2015
2074
|
*/
|
|
2016
2075
|
timeZone?: string | null;
|
|
2017
|
-
/**
|
|
2076
|
+
/**
|
|
2077
|
+
* [App ID](https://dev.wix.com/docs/rest/articles/getting-started/wix-business-solutions)
|
|
2078
|
+
* to filter events by.
|
|
2079
|
+
*/
|
|
2018
2080
|
appId?: string | null;
|
|
2019
|
-
/**
|
|
2081
|
+
/** Cursor to retrieve the next page of the results. */
|
|
2020
2082
|
cursorPaging?: CommonCursorPaging;
|
|
2021
2083
|
/**
|
|
2022
|
-
*
|
|
2023
|
-
* If
|
|
2084
|
+
* IDs of the events to retrieve.
|
|
2085
|
+
* If you provide a list of IDs, all other filters are ignored.
|
|
2086
|
+
*
|
|
2087
|
+
* Max: 100 `eventId`s
|
|
2024
2088
|
*/
|
|
2025
2089
|
eventIds?: string[];
|
|
2026
2090
|
}
|
|
2027
2091
|
interface ListEventsByMemberIdResponse {
|
|
2028
|
-
/**
|
|
2092
|
+
/** Retrieved events. */
|
|
2029
2093
|
events?: Event$1[];
|
|
2030
2094
|
/** Paging metadata. */
|
|
2031
2095
|
pagingMetadata?: CommonCursorPagingMetadata;
|
|
@@ -2213,6 +2277,13 @@ interface GetEventOptions {
|
|
|
2213
2277
|
fields?: RequestedFields$1[];
|
|
2214
2278
|
}
|
|
2215
2279
|
interface ListEventsOptions {
|
|
2280
|
+
/**
|
|
2281
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database)
|
|
2282
|
+
* for calculating `adjustedStart` and `adjustedEnd`. For example,
|
|
2283
|
+
* `America/New_York` or `UTC`.
|
|
2284
|
+
*
|
|
2285
|
+
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).
|
|
2286
|
+
*/
|
|
2216
2287
|
timeZone?: string | null;
|
|
2217
2288
|
/**
|
|
2218
2289
|
* Information about which fields containing personal data to return. Refer to the
|
|
@@ -2487,7 +2558,7 @@ interface UpdateEvent {
|
|
|
2487
2558
|
* + `OPAQUE`: The schedule is blocked during the event, preventing other events that involve the same entities (for example, Booking staff members) from being scheduled at the same time.
|
|
2488
2559
|
* + `TRANSPARENT`: The schedule remains open during the event, allowing other events to be scheduled concurrently.
|
|
2489
2560
|
*
|
|
2490
|
-
* Default: `
|
|
2561
|
+
* Default: `OPAQUE`
|
|
2491
2562
|
*/
|
|
2492
2563
|
transparency?: Transparency$1;
|
|
2493
2564
|
/**
|
|
@@ -2498,7 +2569,7 @@ interface UpdateEvent {
|
|
|
2498
2569
|
location?: Location$2;
|
|
2499
2570
|
/**
|
|
2500
2571
|
* List of [Wix Bookings resources](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/resource-object)
|
|
2501
|
-
* affected by the event. This could include
|
|
2572
|
+
* affected by the event. This could include, for example, the
|
|
2502
2573
|
* [Wix Bookings staff member](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/staff-member-v1/staff-member-object)
|
|
2503
2574
|
* providing the service or the room where the appointment takes place.
|
|
2504
2575
|
*
|
|
@@ -2537,7 +2608,7 @@ interface UpdateEvent {
|
|
|
2537
2608
|
/**
|
|
2538
2609
|
* List of fields whose values are inherited.
|
|
2539
2610
|
* + For single-occurrence events, values are inherited from the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object).
|
|
2540
|
-
* + For `INSTANCE` and `EXCEPTION` events, values are inherited from the related
|
|
2611
|
+
* + For `INSTANCE` and `EXCEPTION` events, values are inherited from the related `MASTER` event.
|
|
2541
2612
|
* @readonly
|
|
2542
2613
|
*/
|
|
2543
2614
|
inheritedFields?: Field$1[];
|
|
@@ -2674,58 +2745,80 @@ interface BulkCancelEventOptions {
|
|
|
2674
2745
|
}
|
|
2675
2746
|
interface ListEventsByContactIdOptions {
|
|
2676
2747
|
/**
|
|
2677
|
-
* Local start date
|
|
2678
|
-
*
|
|
2748
|
+
* Local start date and time from which events are returned in
|
|
2749
|
+
* [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format. For example,
|
|
2750
|
+
* `2024-01-30T13:30:00`.
|
|
2679
2751
|
*
|
|
2680
|
-
*
|
|
2752
|
+
* Events that start before the `fromLocalDate` but end after it are included in
|
|
2753
|
+
* the results. Must be earlier than `toLocalDate`.
|
|
2681
2754
|
*/
|
|
2682
2755
|
fromLocalDate?: string | null;
|
|
2683
2756
|
/**
|
|
2684
|
-
* Local end date
|
|
2685
|
-
*
|
|
2757
|
+
* Local end date and time up to which events are returned in
|
|
2758
|
+
* [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format. For example,
|
|
2759
|
+
* `2024-01-30T13:30:00`. Can't be more than a full year after
|
|
2760
|
+
* `fromLocalDate`.
|
|
2686
2761
|
*
|
|
2687
|
-
*
|
|
2688
|
-
*
|
|
2762
|
+
* Events that start before `toLocalDate` but end after it are included in the
|
|
2763
|
+
* results. Must be later than `fromLocalDate`.
|
|
2689
2764
|
*/
|
|
2690
2765
|
toLocalDate?: string | null;
|
|
2691
2766
|
/**
|
|
2692
|
-
*
|
|
2693
|
-
*
|
|
2767
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database)
|
|
2768
|
+
* for `fromLocalDate`, `toLocalDate`, and for calculating `adjustedStart` and
|
|
2769
|
+
* `adjustedEnd`. For example, `America/New_York` or `UTC`.
|
|
2770
|
+
*
|
|
2771
|
+
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).
|
|
2694
2772
|
*/
|
|
2695
2773
|
timeZone?: string | null;
|
|
2696
|
-
/**
|
|
2774
|
+
/**
|
|
2775
|
+
* [App ID](https://dev.wix.com/docs/rest/articles/getting-started/wix-business-solutions)
|
|
2776
|
+
* to filter events by.
|
|
2777
|
+
*/
|
|
2697
2778
|
appId?: string | null;
|
|
2698
|
-
/**
|
|
2779
|
+
/** Cursor to retrieve the next page of the results. */
|
|
2699
2780
|
cursorPaging?: CommonCursorPaging;
|
|
2700
2781
|
}
|
|
2701
2782
|
interface ListEventsByMemberIdOptions {
|
|
2702
2783
|
/**
|
|
2703
|
-
* Local start date
|
|
2704
|
-
*
|
|
2784
|
+
* Local start date and time from which events are returned in
|
|
2785
|
+
* [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format. For example,
|
|
2786
|
+
* `2024-01-30T13:30:00`.
|
|
2705
2787
|
*
|
|
2706
|
-
*
|
|
2788
|
+
* Events that start before the `fromLocalDate` but end after it are included in
|
|
2789
|
+
* the results. Must be earlier than `toLocalDate`.
|
|
2707
2790
|
*/
|
|
2708
2791
|
fromLocalDate?: string | null;
|
|
2709
2792
|
/**
|
|
2710
|
-
* Local end date
|
|
2711
|
-
*
|
|
2793
|
+
* Local end date and time up to which events are returned in
|
|
2794
|
+
* [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format. For example,
|
|
2795
|
+
* `2024-01-30T13:30:00`. Can't be more than a full year after
|
|
2796
|
+
* `fromLocalDate`.
|
|
2712
2797
|
*
|
|
2713
|
-
*
|
|
2714
|
-
*
|
|
2798
|
+
* Events that start before `toLocalDate` but end after it are included in the
|
|
2799
|
+
* results. Must be later than `fromLocalDate`.
|
|
2715
2800
|
*/
|
|
2716
2801
|
toLocalDate?: string | null;
|
|
2717
2802
|
/**
|
|
2718
|
-
*
|
|
2719
|
-
*
|
|
2803
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database)
|
|
2804
|
+
* for `fromLocalDate`, `toLocalDate`, and for calculating `adjustedStart` and
|
|
2805
|
+
* `adjustedEnd`. For example, `America/New_York` or `UTC`.
|
|
2806
|
+
*
|
|
2807
|
+
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).
|
|
2720
2808
|
*/
|
|
2721
2809
|
timeZone?: string | null;
|
|
2722
|
-
/**
|
|
2810
|
+
/**
|
|
2811
|
+
* [App ID](https://dev.wix.com/docs/rest/articles/getting-started/wix-business-solutions)
|
|
2812
|
+
* to filter events by.
|
|
2813
|
+
*/
|
|
2723
2814
|
appId?: string | null;
|
|
2724
|
-
/**
|
|
2815
|
+
/** Cursor to retrieve the next page of the results. */
|
|
2725
2816
|
cursorPaging?: CommonCursorPaging;
|
|
2726
2817
|
/**
|
|
2727
|
-
*
|
|
2728
|
-
* If
|
|
2818
|
+
* IDs of the events to retrieve.
|
|
2819
|
+
* If you provide a list of IDs, all other filters are ignored.
|
|
2820
|
+
*
|
|
2821
|
+
* Max: 100 `eventId`s
|
|
2729
2822
|
*/
|
|
2730
2823
|
eventIds?: string[];
|
|
2731
2824
|
}
|
|
@@ -2759,20 +2852,19 @@ interface QueryEventsSignature {
|
|
|
2759
2852
|
* Retrieves a list of events, given the provided paging, filtering, and sorting.
|
|
2760
2853
|
*
|
|
2761
2854
|
*
|
|
2762
|
-
* You can't query by ID, to do so use
|
|
2763
|
-
* [Get Event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/list-events)
|
|
2764
|
-
* or [List Events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/list-events)
|
|
2765
|
-
* instead.
|
|
2766
|
-
*
|
|
2767
|
-
* You can't query by the participant's contact or member ID, to do so use
|
|
2768
|
-
* [List Events by Contact ID](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/list-events-by-contact-id)
|
|
2769
|
-
* or [List Events by Member ID](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/list-events-by-member-id)
|
|
2770
|
-
* instead.
|
|
2771
|
-
*
|
|
2772
2855
|
* Query Events runs with these defaults, which you can override:
|
|
2773
2856
|
* - sorted by `start` in `ASC` order
|
|
2774
2857
|
* - `cursorPaging.limit` is `50`
|
|
2775
2858
|
*
|
|
2859
|
+
* You can't filter by event ID. To query by event ID, use
|
|
2860
|
+
* [Get Event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/get-event)
|
|
2861
|
+
* or [List Events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/list-events).
|
|
2862
|
+
*
|
|
2863
|
+
* You can't filter by contact or member ID. To query by a participant's contact
|
|
2864
|
+
* or member ID, use
|
|
2865
|
+
* [List Events by Contact ID](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/list-events-by-contact-id)
|
|
2866
|
+
* or [List Events by Member ID](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/list-events-by-member-id).
|
|
2867
|
+
*
|
|
2776
2868
|
* For field support for filters and sorting,
|
|
2777
2869
|
* see [Calendar Events V3: Supported Filters and Sorting](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/supported-filters-and-sorting).
|
|
2778
2870
|
*
|
|
@@ -2945,28 +3037,34 @@ interface BulkCancelEventSignature {
|
|
|
2945
3037
|
declare function listEventsByContactId$1(httpClient: HttpClient): ListEventsByContactIdSignature;
|
|
2946
3038
|
interface ListEventsByContactIdSignature {
|
|
2947
3039
|
/**
|
|
2948
|
-
* Retrieves a list of events by
|
|
3040
|
+
* Retrieves a list of events filtered by the participant's
|
|
3041
|
+
* [contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/introduction)
|
|
3042
|
+
* ID.
|
|
2949
3043
|
*
|
|
2950
|
-
*
|
|
2951
|
-
*
|
|
2952
|
-
*
|
|
2953
|
-
*
|
|
3044
|
+
*
|
|
3045
|
+
* You can't set `toLocalDate` to a value that's more than a full year after
|
|
3046
|
+
* `fromLocalDate`.
|
|
3047
|
+
* @param - ID of the [contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object)
|
|
3048
|
+
* to retrieve events for. Required, unless you provide `cursorPaging`.
|
|
2954
3049
|
*/
|
|
2955
3050
|
(contactId: string | null, options?: ListEventsByContactIdOptions | undefined): Promise<ListEventsByContactIdResponse & ListEventsByContactIdResponseNonNullableFields>;
|
|
2956
3051
|
}
|
|
2957
3052
|
declare function listEventsByMemberId$1(httpClient: HttpClient): ListEventsByMemberIdSignature;
|
|
2958
3053
|
interface ListEventsByMemberIdSignature {
|
|
2959
3054
|
/**
|
|
2960
|
-
* Retrieves a list of events by
|
|
3055
|
+
* Retrieves a list of events filtered by the participant's
|
|
3056
|
+
* [member](https://dev.wix.com/docs/rest/crm/members-contacts/members/members/introduction)
|
|
3057
|
+
* ID.
|
|
2961
3058
|
*
|
|
2962
|
-
* Limits:
|
|
2963
|
-
* - Max time range is 1 year.
|
|
2964
|
-
* @param - The ID of the member participating in the events.
|
|
2965
3059
|
*
|
|
2966
|
-
*
|
|
2967
|
-
*
|
|
2968
|
-
*
|
|
2969
|
-
* Required, unless `cursorPaging
|
|
3060
|
+
* You can't set `toLocalDate` to a value that's more than a full year after
|
|
3061
|
+
* `fromLocalDate`.
|
|
3062
|
+
* @param - ID of the [member](https://dev.wix.com/docs/rest/crm/members-contacts/members/members/member-object)
|
|
3063
|
+
* to retrieve events for. Required, unless you provide `cursorPaging`.
|
|
3064
|
+
* Provide `me` to retrieve events for the currently logged-in member.
|
|
3065
|
+
* You must have the `Read Calendars - Including PI`
|
|
3066
|
+
* [permission scope](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app)
|
|
3067
|
+
* to retrieve events for members who aren't the currently logged in member.
|
|
2970
3068
|
*/
|
|
2971
3069
|
(memberId: string | null, options?: ListEventsByMemberIdOptions | undefined): Promise<ListEventsByMemberIdResponse & ListEventsByMemberIdResponseNonNullableFields>;
|
|
2972
3070
|
}
|
|
@@ -3140,24 +3238,54 @@ interface EventsView {
|
|
|
3140
3238
|
futureDurationInDays?: number | null;
|
|
3141
3239
|
}
|
|
3142
3240
|
interface EventsViewProjectionUpdated extends EventsViewProjectionUpdatedTypeOneOf {
|
|
3143
|
-
/**
|
|
3241
|
+
/**
|
|
3242
|
+
* Available when there is a change to an event in the current event view, including when:
|
|
3243
|
+
* + An event is created within the view.
|
|
3244
|
+
* + An existing event is updated, unless its start time moves outside the view. Then, `eventRemoved` is returned.
|
|
3245
|
+
* + An event previously outside the view is rescheduled to fall within it.
|
|
3246
|
+
* + The view is extended, bringing an event into scope.
|
|
3247
|
+
*/
|
|
3144
3248
|
eventAddedOrUpdated?: EventAddedOrUpdated;
|
|
3145
|
-
/**
|
|
3249
|
+
/**
|
|
3250
|
+
* Available when an event has been removed from the current view, including
|
|
3251
|
+
* when:
|
|
3252
|
+
* + An event within the view is deleted.
|
|
3253
|
+
* + An event within the view is rescheduled so that its start time falls outside the view.
|
|
3254
|
+
*/
|
|
3146
3255
|
eventRemoved?: EventRemoved;
|
|
3147
|
-
/**
|
|
3256
|
+
/**
|
|
3257
|
+
* ID of the app that owns the event. Identical to `appId` of the
|
|
3258
|
+
* [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)
|
|
3259
|
+
* to which the event belongs.
|
|
3260
|
+
*/
|
|
3148
3261
|
appId?: string | null;
|
|
3149
3262
|
}
|
|
3150
3263
|
/** @oneof */
|
|
3151
3264
|
interface EventsViewProjectionUpdatedTypeOneOf {
|
|
3152
|
-
/**
|
|
3265
|
+
/**
|
|
3266
|
+
* Available when there is a change to an event in the current event view, including when:
|
|
3267
|
+
* + An event is created within the view.
|
|
3268
|
+
* + An existing event is updated, unless its start time moves outside the view. Then, `eventRemoved` is returned.
|
|
3269
|
+
* + An event previously outside the view is rescheduled to fall within it.
|
|
3270
|
+
* + The view is extended, bringing an event into scope.
|
|
3271
|
+
*/
|
|
3153
3272
|
eventAddedOrUpdated?: EventAddedOrUpdated;
|
|
3154
|
-
/**
|
|
3273
|
+
/**
|
|
3274
|
+
* Available when an event has been removed from the current view, including
|
|
3275
|
+
* when:
|
|
3276
|
+
* + An event within the view is deleted.
|
|
3277
|
+
* + An event within the view is rescheduled so that its start time falls outside the view.
|
|
3278
|
+
*/
|
|
3155
3279
|
eventRemoved?: EventRemoved;
|
|
3156
3280
|
}
|
|
3157
3281
|
interface EventAddedOrUpdated {
|
|
3158
|
-
/**
|
|
3282
|
+
/** Event that was added or updated. */
|
|
3159
3283
|
event?: Event;
|
|
3160
|
-
/**
|
|
3284
|
+
/**
|
|
3285
|
+
* Event’s original version before an update. Available only when an event is
|
|
3286
|
+
* updated. Not available when a new event is created or an existing event falls
|
|
3287
|
+
* into the view because the view is extended.
|
|
3288
|
+
*/
|
|
3161
3289
|
previousEvent?: Event;
|
|
3162
3290
|
}
|
|
3163
3291
|
/**
|
|
@@ -3288,7 +3416,7 @@ interface Event {
|
|
|
3288
3416
|
* + `OPAQUE`: The schedule is blocked during the event, preventing other events that involve the same entities (for example, Booking staff members) from being scheduled at the same time.
|
|
3289
3417
|
* + `TRANSPARENT`: The schedule remains open during the event, allowing other events to be scheduled concurrently.
|
|
3290
3418
|
*
|
|
3291
|
-
* Default: `
|
|
3419
|
+
* Default: `OPAQUE`
|
|
3292
3420
|
*/
|
|
3293
3421
|
transparency?: Transparency;
|
|
3294
3422
|
/**
|
|
@@ -3299,7 +3427,7 @@ interface Event {
|
|
|
3299
3427
|
location?: Location$1;
|
|
3300
3428
|
/**
|
|
3301
3429
|
* List of [Wix Bookings resources](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/resource-object)
|
|
3302
|
-
* affected by the event. This could include
|
|
3430
|
+
* affected by the event. This could include, for example, the
|
|
3303
3431
|
* [Wix Bookings staff member](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/staff-member-v1/staff-member-object)
|
|
3304
3432
|
* providing the service or the room where the appointment takes place.
|
|
3305
3433
|
*
|
|
@@ -3338,7 +3466,7 @@ interface Event {
|
|
|
3338
3466
|
/**
|
|
3339
3467
|
* List of fields whose values are inherited.
|
|
3340
3468
|
* + For single-occurrence events, values are inherited from the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object).
|
|
3341
|
-
* + For `INSTANCE` and `EXCEPTION` events, values are inherited from the related
|
|
3469
|
+
* + For `INSTANCE` and `EXCEPTION` events, values are inherited from the related `MASTER` event.
|
|
3342
3470
|
* @readonly
|
|
3343
3471
|
*/
|
|
3344
3472
|
inheritedFields?: Field[];
|
|
@@ -3489,36 +3617,42 @@ declare enum Transparency {
|
|
|
3489
3617
|
}
|
|
3490
3618
|
interface Location$1 {
|
|
3491
3619
|
/**
|
|
3492
|
-
*
|
|
3493
|
-
*
|
|
3620
|
+
* [Location](https://dev.wix.com/docs/rest/business-management/locations/location-object)
|
|
3621
|
+
* ID. Available only for `BUSINESS` locations.
|
|
3494
3622
|
*/
|
|
3495
3623
|
_id?: string | null;
|
|
3496
3624
|
/**
|
|
3497
|
-
*
|
|
3498
|
-
*
|
|
3499
|
-
*
|
|
3500
|
-
*
|
|
3501
|
-
*
|
|
3625
|
+
* Location type.
|
|
3626
|
+
*
|
|
3627
|
+
* Supported values:
|
|
3628
|
+
* + `BUSINESS`: The event is held at a business location.
|
|
3629
|
+
* + `CUSTOMER`: The event is held at the customer's location, such as their home or office.
|
|
3630
|
+
* + `CUSTOM`: The event is held at an address or venue not tied to the business or customer.
|
|
3502
3631
|
*/
|
|
3503
3632
|
type?: LocationType$1;
|
|
3504
3633
|
/**
|
|
3505
|
-
*
|
|
3506
|
-
*
|
|
3634
|
+
* Location name. For `BUSINESS` locations, it's identical to the
|
|
3635
|
+
* [location](https://dev.wix.com/docs/rest/business-management/locations/location-object)
|
|
3636
|
+
* `name`.
|
|
3637
|
+
*
|
|
3638
|
+
* Min: 1 character
|
|
3639
|
+
* Max: 150 characters
|
|
3507
3640
|
*/
|
|
3508
3641
|
name?: string | null;
|
|
3509
3642
|
/**
|
|
3510
|
-
*
|
|
3511
|
-
*
|
|
3643
|
+
* Location address. For `BUSINESS` locations, it's identical to the
|
|
3644
|
+
* [location](https://dev.wix.com/docs/rest/business-management/locations/location-object)'s
|
|
3645
|
+
* `formattedAddress`.
|
|
3512
3646
|
*/
|
|
3513
3647
|
address?: string | null;
|
|
3514
3648
|
}
|
|
3515
3649
|
declare enum LocationType$1 {
|
|
3516
3650
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
3517
|
-
/** The event
|
|
3651
|
+
/** The event is held at a business location. */
|
|
3518
3652
|
BUSINESS = "BUSINESS",
|
|
3519
|
-
/** The event
|
|
3653
|
+
/** The event is held at the customer's location, such as their home or office. */
|
|
3520
3654
|
CUSTOMER = "CUSTOMER",
|
|
3521
|
-
/** The event
|
|
3655
|
+
/** The event is held at an address or venue not tied to the business or customer. */
|
|
3522
3656
|
CUSTOM = "CUSTOM"
|
|
3523
3657
|
}
|
|
3524
3658
|
interface Resource {
|
|
@@ -3553,9 +3687,9 @@ interface Resource {
|
|
|
3553
3687
|
}
|
|
3554
3688
|
declare enum Role$1 {
|
|
3555
3689
|
UNKNOWN_ROLE = "UNKNOWN_ROLE",
|
|
3556
|
-
/**
|
|
3690
|
+
/** Full read and write access. */
|
|
3557
3691
|
WRITER = "WRITER",
|
|
3558
|
-
/**
|
|
3692
|
+
/** Full read access, write access limited to `event.notes`. */
|
|
3559
3693
|
COMMENTER = "COMMENTER"
|
|
3560
3694
|
}
|
|
3561
3695
|
interface Participants {
|
|
@@ -3613,15 +3747,35 @@ declare enum ParticipantsStatus {
|
|
|
3613
3747
|
PENDING_CONFIRMATION = "PENDING_CONFIRMATION"
|
|
3614
3748
|
}
|
|
3615
3749
|
interface ConferencingDetails$1 {
|
|
3616
|
-
/**
|
|
3750
|
+
/** Conference type. For example, `Zoom`. */
|
|
3617
3751
|
type?: Type$1;
|
|
3618
|
-
/**
|
|
3752
|
+
/**
|
|
3753
|
+
* URL used by the host to start the conference.
|
|
3754
|
+
*
|
|
3755
|
+
* Min: 1 character
|
|
3756
|
+
* Max: 2000 characters
|
|
3757
|
+
*/
|
|
3619
3758
|
hostUrl?: string | null;
|
|
3620
|
-
/**
|
|
3759
|
+
/**
|
|
3760
|
+
* URL used by a guest to join the conference.
|
|
3761
|
+
*
|
|
3762
|
+
* Min: 1 character
|
|
3763
|
+
* Max: 2000 characters
|
|
3764
|
+
*/
|
|
3621
3765
|
guestUrl?: string | null;
|
|
3622
|
-
/**
|
|
3766
|
+
/**
|
|
3767
|
+
* Conference password.
|
|
3768
|
+
*
|
|
3769
|
+
* Min: 1 character
|
|
3770
|
+
* Max: 100 characters
|
|
3771
|
+
*/
|
|
3623
3772
|
password?: string | null;
|
|
3624
|
-
/**
|
|
3773
|
+
/**
|
|
3774
|
+
* Conference ID in an external system.
|
|
3775
|
+
*
|
|
3776
|
+
* Min: 1 character
|
|
3777
|
+
* Max: 150 characters
|
|
3778
|
+
*/
|
|
3625
3779
|
externalId?: string | null;
|
|
3626
3780
|
}
|
|
3627
3781
|
declare enum Type$1 {
|
|
@@ -3649,14 +3803,17 @@ declare enum Field {
|
|
|
3649
3803
|
CONFERENCING_DETAILS = "CONFERENCING_DETAILS"
|
|
3650
3804
|
}
|
|
3651
3805
|
interface Permission$1 {
|
|
3652
|
-
/**
|
|
3806
|
+
/**
|
|
3807
|
+
* [Wix user](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#wix-users)
|
|
3808
|
+
* granted the permission.
|
|
3809
|
+
*/
|
|
3653
3810
|
identity?: CommonIdentificationData$1;
|
|
3654
3811
|
/**
|
|
3655
|
-
*
|
|
3812
|
+
* Permission role.
|
|
3656
3813
|
*
|
|
3657
|
-
*
|
|
3658
|
-
*
|
|
3659
|
-
*
|
|
3814
|
+
* Supported values:
|
|
3815
|
+
* + `WRITER`: Full read and write access.
|
|
3816
|
+
* + `COMMENTER`: Full read access, write access limited to `event.notes`.
|
|
3660
3817
|
*/
|
|
3661
3818
|
role?: Role$1;
|
|
3662
3819
|
}
|
|
@@ -3691,30 +3848,31 @@ interface ExtendedFields$2 {
|
|
|
3691
3848
|
namespaces?: Record<string, Record<string, any>>;
|
|
3692
3849
|
}
|
|
3693
3850
|
interface EventRemoved {
|
|
3694
|
-
/**
|
|
3851
|
+
/** Event that was removed from the current view. */
|
|
3695
3852
|
event?: Event;
|
|
3696
|
-
/** Optionally, the previous event. */
|
|
3697
|
-
previousEvent?: Event;
|
|
3698
3853
|
}
|
|
3699
3854
|
interface EventsViewExtended {
|
|
3700
|
-
/**
|
|
3855
|
+
/**
|
|
3856
|
+
* Extended date of the events view in `YYYY-MM-DDTHH:MM:SSZ`
|
|
3857
|
+
* format.
|
|
3858
|
+
*/
|
|
3701
3859
|
extendedEndDate?: Date | null;
|
|
3702
3860
|
}
|
|
3703
3861
|
interface GetEventsViewRequest {
|
|
3704
3862
|
}
|
|
3705
3863
|
interface GetEventsViewResponse {
|
|
3706
|
-
/**
|
|
3864
|
+
/** Retrieved event view. */
|
|
3707
3865
|
eventsView?: EventsView;
|
|
3708
3866
|
}
|
|
3709
3867
|
interface ExtendEventsViewRequest {
|
|
3710
3868
|
/**
|
|
3711
|
-
*
|
|
3869
|
+
* Number of days from now until the event view ends.
|
|
3712
3870
|
* Must be greater than the current value.
|
|
3713
3871
|
*/
|
|
3714
3872
|
futureDurationInDays?: number | null;
|
|
3715
3873
|
}
|
|
3716
3874
|
interface ExtendEventsViewResponse {
|
|
3717
|
-
/**
|
|
3875
|
+
/** Udated event view. */
|
|
3718
3876
|
eventsView?: EventsView;
|
|
3719
3877
|
}
|
|
3720
3878
|
interface DomainEvent$3 extends DomainEventBodyOneOf$3 {
|
|
@@ -3887,8 +4045,13 @@ interface EventsViewExtendedEnvelope {
|
|
|
3887
4045
|
declare function getEventsView$1(httpClient: HttpClient): GetEventsViewSignature;
|
|
3888
4046
|
interface GetEventsViewSignature {
|
|
3889
4047
|
/**
|
|
3890
|
-
* Retrieves the
|
|
3891
|
-
*
|
|
4048
|
+
* Retrieves the current event view.
|
|
4049
|
+
*
|
|
4050
|
+
*
|
|
4051
|
+
* Doesn’t return details about events within the view. You can use
|
|
4052
|
+
* [Query Events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/query-events),
|
|
4053
|
+
* providing `eventsView.endDate` as `toLocalDate` to retrieve the
|
|
4054
|
+
* events.
|
|
3892
4055
|
*/
|
|
3893
4056
|
(): Promise<GetEventsViewResponse>;
|
|
3894
4057
|
}
|
|
@@ -3900,11 +4063,29 @@ declare function createEventModule$3<T extends EventDefinition<any, string>>(eve
|
|
|
3900
4063
|
declare const getEventsView: MaybeContext<BuildRESTFunction<typeof getEventsView$1> & typeof getEventsView$1>;
|
|
3901
4064
|
|
|
3902
4065
|
type _publicOnEventsViewProjectionUpdatedType = typeof onEventsViewProjectionUpdated$1;
|
|
3903
|
-
/**
|
|
4066
|
+
/**
|
|
4067
|
+
* Triggered when an [event](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)
|
|
4068
|
+
* is added to, removed from, or updated within the current event view. This includes cases when:
|
|
4069
|
+
* + A new event is created within the view.
|
|
4070
|
+
* + An existing event within the view is updated, inlcuding when it's rescheduled to start outside the view.
|
|
4071
|
+
* + An event within the view is deleted.
|
|
4072
|
+
* + An event previously outside the view is rescheduled to fall within it.
|
|
4073
|
+
* + The view is extended, bringing an existing event into scope.
|
|
4074
|
+
*/
|
|
3904
4075
|
declare const onEventsViewProjectionUpdated: ReturnType<typeof createEventModule$3<_publicOnEventsViewProjectionUpdatedType>>;
|
|
3905
4076
|
|
|
3906
4077
|
type _publicOnEventsViewExtendedType = typeof onEventsViewExtended$1;
|
|
3907
|
-
/**
|
|
4078
|
+
/**
|
|
4079
|
+
* Triggered when the current event view is extended.
|
|
4080
|
+
*
|
|
4081
|
+
*
|
|
4082
|
+
* Doesn’t include details about existing events added to the view due to the
|
|
4083
|
+
* extension. To receive updates about those events, subscribe to
|
|
4084
|
+
* [Events View Projection Updated](https://dev.wix.com/docs/rest/business-management/calendar/event-views-v3/events-view-projection-updated).
|
|
4085
|
+
*
|
|
4086
|
+
* The event view is periodically extended by Wix Calendars, you can't manually
|
|
4087
|
+
* extend it.
|
|
4088
|
+
*/
|
|
3908
4089
|
declare const onEventsViewExtended: ReturnType<typeof createEventModule$3<_publicOnEventsViewExtendedType>>;
|
|
3909
4090
|
|
|
3910
4091
|
type context$3_Day = Day;
|
|
@@ -4633,7 +4814,7 @@ interface Schedule {
|
|
|
4633
4814
|
*
|
|
4634
4815
|
* Supported values:
|
|
4635
4816
|
* - `ACTIVE`: You can add events to the schedule or update its fields.
|
|
4636
|
-
* - `CANCELLED
|
|
4817
|
+
* - `CANCELLED`: You can't add events to the schedule or update its fields.
|
|
4637
4818
|
*
|
|
4638
4819
|
* Default: `ACTIVE`
|
|
4639
4820
|
* @readonly
|
|
@@ -4727,48 +4908,74 @@ declare enum Status$1 {
|
|
|
4727
4908
|
}
|
|
4728
4909
|
interface Location {
|
|
4729
4910
|
/**
|
|
4730
|
-
*
|
|
4731
|
-
*
|
|
4911
|
+
* [Location](https://dev.wix.com/docs/rest/business-management/locations/location-object)
|
|
4912
|
+
* ID. Available only for `BUSINESS` locations.
|
|
4732
4913
|
*/
|
|
4733
4914
|
_id?: string | null;
|
|
4734
4915
|
/**
|
|
4735
|
-
*
|
|
4736
|
-
*
|
|
4737
|
-
*
|
|
4738
|
-
*
|
|
4739
|
-
*
|
|
4916
|
+
* Location type.
|
|
4917
|
+
*
|
|
4918
|
+
* Supported values:
|
|
4919
|
+
* + `BUSINESS`: The event is held at a business location.
|
|
4920
|
+
* + `CUSTOMER`: The event is held at the customer's location, such as their home or office.
|
|
4921
|
+
* + `CUSTOM`: The event is held at an address or venue not tied to the business or customer.
|
|
4740
4922
|
*/
|
|
4741
4923
|
type?: LocationType;
|
|
4742
4924
|
/**
|
|
4743
|
-
*
|
|
4744
|
-
*
|
|
4925
|
+
* Location name. For `BUSINESS` locations, it's identical to the
|
|
4926
|
+
* [location](https://dev.wix.com/docs/rest/business-management/locations/location-object)
|
|
4927
|
+
* `name`.
|
|
4928
|
+
*
|
|
4929
|
+
* Min: 1 character
|
|
4930
|
+
* Max: 150 characters
|
|
4745
4931
|
*/
|
|
4746
4932
|
name?: string | null;
|
|
4747
4933
|
/**
|
|
4748
|
-
*
|
|
4749
|
-
*
|
|
4934
|
+
* Location address. For `BUSINESS` locations, it's identical to the
|
|
4935
|
+
* [location](https://dev.wix.com/docs/rest/business-management/locations/location-object)'s
|
|
4936
|
+
* `formattedAddress`.
|
|
4750
4937
|
*/
|
|
4751
4938
|
address?: string | null;
|
|
4752
4939
|
}
|
|
4753
4940
|
declare enum LocationType {
|
|
4754
4941
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
4755
|
-
/** The event
|
|
4942
|
+
/** The event is held at a business location. */
|
|
4756
4943
|
BUSINESS = "BUSINESS",
|
|
4757
|
-
/** The event
|
|
4944
|
+
/** The event is held at the customer's location, such as their home or office. */
|
|
4758
4945
|
CUSTOMER = "CUSTOMER",
|
|
4759
|
-
/** The event
|
|
4946
|
+
/** The event is held at an address or venue not tied to the business or customer. */
|
|
4760
4947
|
CUSTOM = "CUSTOM"
|
|
4761
4948
|
}
|
|
4762
4949
|
interface ConferencingDetails {
|
|
4763
|
-
/**
|
|
4950
|
+
/** Conference type. For example, `Zoom`. */
|
|
4764
4951
|
type?: Type;
|
|
4765
|
-
/**
|
|
4952
|
+
/**
|
|
4953
|
+
* URL used by the host to start the conference.
|
|
4954
|
+
*
|
|
4955
|
+
* Min: 1 character
|
|
4956
|
+
* Max: 2000 characters
|
|
4957
|
+
*/
|
|
4766
4958
|
hostUrl?: string | null;
|
|
4767
|
-
/**
|
|
4959
|
+
/**
|
|
4960
|
+
* URL used by a guest to join the conference.
|
|
4961
|
+
*
|
|
4962
|
+
* Min: 1 character
|
|
4963
|
+
* Max: 2000 characters
|
|
4964
|
+
*/
|
|
4768
4965
|
guestUrl?: string | null;
|
|
4769
|
-
/**
|
|
4966
|
+
/**
|
|
4967
|
+
* Conference password.
|
|
4968
|
+
*
|
|
4969
|
+
* Min: 1 character
|
|
4970
|
+
* Max: 100 characters
|
|
4971
|
+
*/
|
|
4770
4972
|
password?: string | null;
|
|
4771
|
-
/**
|
|
4973
|
+
/**
|
|
4974
|
+
* Conference ID in an external system.
|
|
4975
|
+
*
|
|
4976
|
+
* Min: 1 character
|
|
4977
|
+
* Max: 150 characters
|
|
4978
|
+
*/
|
|
4772
4979
|
externalId?: string | null;
|
|
4773
4980
|
}
|
|
4774
4981
|
declare enum Type {
|
|
@@ -4777,14 +4984,17 @@ declare enum Type {
|
|
|
4777
4984
|
CUSTOM = "CUSTOM"
|
|
4778
4985
|
}
|
|
4779
4986
|
interface Permission {
|
|
4780
|
-
/**
|
|
4987
|
+
/**
|
|
4988
|
+
* [Wix user](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#wix-users)
|
|
4989
|
+
* granted the permission.
|
|
4990
|
+
*/
|
|
4781
4991
|
identity?: CommonIdentificationData;
|
|
4782
4992
|
/**
|
|
4783
|
-
*
|
|
4993
|
+
* Permission role.
|
|
4784
4994
|
*
|
|
4785
|
-
*
|
|
4786
|
-
*
|
|
4787
|
-
*
|
|
4995
|
+
* Supported values:
|
|
4996
|
+
* + `WRITER`: Full read and write access.
|
|
4997
|
+
* + `COMMENTER`: Full read access, write access limited to `event.notes`.
|
|
4788
4998
|
*/
|
|
4789
4999
|
role?: Role;
|
|
4790
5000
|
}
|
|
@@ -4809,9 +5019,9 @@ declare enum IdentityType {
|
|
|
4809
5019
|
}
|
|
4810
5020
|
declare enum Role {
|
|
4811
5021
|
UNKNOWN_ROLE = "UNKNOWN_ROLE",
|
|
4812
|
-
/**
|
|
5022
|
+
/** Full read and write access. */
|
|
4813
5023
|
WRITER = "WRITER",
|
|
4814
|
-
/**
|
|
5024
|
+
/** Full read access, write access limited to `event.notes`. */
|
|
4815
5025
|
COMMENTER = "COMMENTER"
|
|
4816
5026
|
}
|
|
4817
5027
|
interface ExtendedFields {
|
|
@@ -4958,11 +5168,17 @@ interface UpdateScheduleRequest {
|
|
|
4958
5168
|
}
|
|
4959
5169
|
interface ParticipantNotification {
|
|
4960
5170
|
/**
|
|
4961
|
-
* Whether to notify the
|
|
4962
|
-
*
|
|
5171
|
+
* Whether to notify the participants about changes made to the schedule or event.
|
|
5172
|
+
*
|
|
5173
|
+
* Default: `false`
|
|
4963
5174
|
*/
|
|
4964
5175
|
notifyParticipants?: boolean | null;
|
|
4965
|
-
/**
|
|
5176
|
+
/**
|
|
5177
|
+
* Message to send.
|
|
5178
|
+
*
|
|
5179
|
+
* Min: 1 character
|
|
5180
|
+
* Max: 5000 characters
|
|
5181
|
+
*/
|
|
4966
5182
|
message?: string | null;
|
|
4967
5183
|
}
|
|
4968
5184
|
interface UpdateScheduleResponse {
|
|
@@ -4987,7 +5203,7 @@ interface CloneScheduleResponse {
|
|
|
4987
5203
|
schedule?: Schedule;
|
|
4988
5204
|
}
|
|
4989
5205
|
interface ScheduleCloned {
|
|
4990
|
-
/**
|
|
5206
|
+
/** New cloned schedule. */
|
|
4991
5207
|
schedule?: Schedule;
|
|
4992
5208
|
/** The clone trigger. */
|
|
4993
5209
|
trigger?: Trigger;
|
|
@@ -5028,9 +5244,9 @@ interface CancelScheduleResponse {
|
|
|
5028
5244
|
schedule?: Schedule;
|
|
5029
5245
|
}
|
|
5030
5246
|
interface ScheduleCancelled {
|
|
5031
|
-
/**
|
|
5247
|
+
/** Canceled schedule. */
|
|
5032
5248
|
schedule?: Schedule;
|
|
5033
|
-
/** Whether
|
|
5249
|
+
/** Whether future events with participants were preserved. */
|
|
5034
5250
|
preserveFutureEventsWithParticipants?: boolean | null;
|
|
5035
5251
|
}
|
|
5036
5252
|
interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
|
|
@@ -5880,7 +6096,7 @@ interface UpdateSchedule {
|
|
|
5880
6096
|
*
|
|
5881
6097
|
* Supported values:
|
|
5882
6098
|
* - `ACTIVE`: You can add events to the schedule or update its fields.
|
|
5883
|
-
* - `CANCELLED
|
|
6099
|
+
* - `CANCELLED`: You can't add events to the schedule or update its fields.
|
|
5884
6100
|
*
|
|
5885
6101
|
* Default: `ACTIVE`
|
|
5886
6102
|
* @readonly
|
|
@@ -6321,7 +6537,7 @@ interface ListScheduleTimeFramesRequest {
|
|
|
6321
6537
|
* IDs of the schedules for which to retrieve schedule time frames.
|
|
6322
6538
|
*
|
|
6323
6539
|
* Min: 1 schedule ID
|
|
6324
|
-
* Max: 100
|
|
6540
|
+
* Max: 100 schedule IDs
|
|
6325
6541
|
*/
|
|
6326
6542
|
ids: string[];
|
|
6327
6543
|
/**
|
|
@@ -6795,14 +7011,14 @@ interface GetScheduleTimeFrameSignature {
|
|
|
6795
7011
|
declare function listScheduleTimeFrames$1(httpClient: HttpClient): ListScheduleTimeFramesSignature;
|
|
6796
7012
|
interface ListScheduleTimeFramesSignature {
|
|
6797
7013
|
/**
|
|
6798
|
-
* Retrieves a list of schedule time frames by
|
|
7014
|
+
* Retrieves a list of schedule time frames by schedule IDs.
|
|
6799
7015
|
*
|
|
6800
7016
|
*
|
|
6801
7017
|
* Sorted by schedule ID in ascending order.
|
|
6802
7018
|
* @param - IDs of the schedules for which to retrieve schedule time frames.
|
|
6803
7019
|
*
|
|
6804
7020
|
* Min: 1 schedule ID
|
|
6805
|
-
* Max: 100
|
|
7021
|
+
* Max: 100 schedule IDs
|
|
6806
7022
|
*/
|
|
6807
7023
|
(ids: string[], options?: ListScheduleTimeFramesOptions | undefined): Promise<ListScheduleTimeFramesResponse & ListScheduleTimeFramesResponseNonNullableFields>;
|
|
6808
7024
|
}
|