@wix/auto_sdk_calendar_events 1.0.28 → 1.0.30
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/build/{cjs/src/calendar-v3-event-events.types.d.ts → calendar-v3-event-events.universal-Cfq4Piiv.d.mts} +983 -564
- package/build/{internal/cjs/src/calendar-v3-event-events.types.d.ts → calendar-v3-event-events.universal-Cfq4Piiv.d.ts} +983 -564
- package/build/{internal/cjs/src/calendar-v3-event-events.public.d.ts → index.d.mts} +62 -55
- package/build/{es/src/calendar-v3-event-events.public.d.ts → index.d.ts} +62 -55
- package/build/index.js +1340 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +1285 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/{es/src/calendar-v3-event-events.types.d.ts → calendar-v3-event-events.universal-Cfq4Piiv.d.mts} +983 -564
- package/build/{es/src/calendar-v3-event-events.types.d.ts → internal/calendar-v3-event-events.universal-Cfq4Piiv.d.ts} +983 -564
- package/build/{cjs/src/calendar-v3-event-events.public.d.ts → internal/index.d.mts} +62 -55
- package/build/internal/{es/src/calendar-v3-event-events.public.d.ts → index.d.ts} +62 -55
- package/build/internal/index.js +1340 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +1285 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +1195 -0
- package/build/internal/meta.d.ts +1195 -0
- package/build/internal/meta.js +777 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +740 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +1195 -0
- package/build/meta.d.ts +1195 -0
- package/build/meta.js +777 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +740 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +12 -11
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/calendar-v3-event-events.context.d.ts +0 -51
- package/build/cjs/src/calendar-v3-event-events.context.js +0 -71
- package/build/cjs/src/calendar-v3-event-events.context.js.map +0 -1
- package/build/cjs/src/calendar-v3-event-events.http.d.ts +0 -144
- package/build/cjs/src/calendar-v3-event-events.http.js +0 -785
- package/build/cjs/src/calendar-v3-event-events.http.js.map +0 -1
- package/build/cjs/src/calendar-v3-event-events.meta.d.ts +0 -39
- package/build/cjs/src/calendar-v3-event-events.meta.js +0 -275
- package/build/cjs/src/calendar-v3-event-events.meta.js.map +0 -1
- package/build/cjs/src/calendar-v3-event-events.public.js +0 -196
- package/build/cjs/src/calendar-v3-event-events.public.js.map +0 -1
- package/build/cjs/src/calendar-v3-event-events.types.js +0 -157
- package/build/cjs/src/calendar-v3-event-events.types.js.map +0 -1
- package/build/cjs/src/calendar-v3-event-events.universal.d.ts +0 -3198
- package/build/cjs/src/calendar-v3-event-events.universal.js +0 -1185
- package/build/cjs/src/calendar-v3-event-events.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/calendar-v3-event-events.context.d.ts +0 -51
- package/build/es/src/calendar-v3-event-events.context.js +0 -51
- package/build/es/src/calendar-v3-event-events.context.js.map +0 -1
- package/build/es/src/calendar-v3-event-events.http.d.ts +0 -144
- package/build/es/src/calendar-v3-event-events.http.js +0 -769
- package/build/es/src/calendar-v3-event-events.http.js.map +0 -1
- package/build/es/src/calendar-v3-event-events.meta.d.ts +0 -39
- package/build/es/src/calendar-v3-event-events.meta.js +0 -236
- package/build/es/src/calendar-v3-event-events.meta.js.map +0 -1
- package/build/es/src/calendar-v3-event-events.public.js +0 -163
- package/build/es/src/calendar-v3-event-events.public.js.map +0 -1
- package/build/es/src/calendar-v3-event-events.types.js +0 -154
- package/build/es/src/calendar-v3-event-events.types.js.map +0 -1
- package/build/es/src/calendar-v3-event-events.universal.d.ts +0 -3198
- package/build/es/src/calendar-v3-event-events.universal.js +0 -1146
- package/build/es/src/calendar-v3-event-events.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/calendar-v3-event-events.context.d.ts +0 -51
- package/build/internal/cjs/src/calendar-v3-event-events.context.js +0 -71
- package/build/internal/cjs/src/calendar-v3-event-events.context.js.map +0 -1
- package/build/internal/cjs/src/calendar-v3-event-events.http.d.ts +0 -144
- package/build/internal/cjs/src/calendar-v3-event-events.http.js +0 -785
- package/build/internal/cjs/src/calendar-v3-event-events.http.js.map +0 -1
- package/build/internal/cjs/src/calendar-v3-event-events.meta.d.ts +0 -39
- package/build/internal/cjs/src/calendar-v3-event-events.meta.js +0 -275
- package/build/internal/cjs/src/calendar-v3-event-events.meta.js.map +0 -1
- package/build/internal/cjs/src/calendar-v3-event-events.public.js +0 -196
- package/build/internal/cjs/src/calendar-v3-event-events.public.js.map +0 -1
- package/build/internal/cjs/src/calendar-v3-event-events.types.js +0 -157
- package/build/internal/cjs/src/calendar-v3-event-events.types.js.map +0 -1
- package/build/internal/cjs/src/calendar-v3-event-events.universal.d.ts +0 -3198
- package/build/internal/cjs/src/calendar-v3-event-events.universal.js +0 -1185
- package/build/internal/cjs/src/calendar-v3-event-events.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/calendar-v3-event-events.context.d.ts +0 -51
- package/build/internal/es/src/calendar-v3-event-events.context.js +0 -51
- package/build/internal/es/src/calendar-v3-event-events.context.js.map +0 -1
- package/build/internal/es/src/calendar-v3-event-events.http.d.ts +0 -144
- package/build/internal/es/src/calendar-v3-event-events.http.js +0 -769
- package/build/internal/es/src/calendar-v3-event-events.http.js.map +0 -1
- package/build/internal/es/src/calendar-v3-event-events.meta.d.ts +0 -39
- package/build/internal/es/src/calendar-v3-event-events.meta.js +0 -236
- package/build/internal/es/src/calendar-v3-event-events.meta.js.map +0 -1
- package/build/internal/es/src/calendar-v3-event-events.public.js +0 -163
- package/build/internal/es/src/calendar-v3-event-events.public.js.map +0 -1
- package/build/internal/es/src/calendar-v3-event-events.types.js +0 -154
- package/build/internal/es/src/calendar-v3-event-events.types.js.map +0 -1
- package/build/internal/es/src/calendar-v3-event-events.universal.d.ts +0 -3198
- package/build/internal/es/src/calendar-v3-event-events.universal.js +0 -1146
- package/build/internal/es/src/calendar-v3-event-events.universal.js.map +0 -1
package/build/meta.d.mts
ADDED
|
@@ -0,0 +1,1195 @@
|
|
|
1
|
+
import { ak as GetEventRequest$1, al as GetEventResponse$1, am as ListEventsRequest$1, a as ListEventsResponse$1, an as QueryEventsRequest$1, as as QueryEventsResponse$1, ax as CreateEventRequest$1, ay as CreateEventResponse$1, az as BulkCreateEventRequest$1, c as BulkCreateEventResponse$1, aE as UpdateEventRequest$1, aF as UpdateEventResponse$1, aG as BulkUpdateEventRequest$1, g as BulkUpdateEventResponse$1, aJ as RestoreEventDefaultsRequest$1, h as RestoreEventDefaultsResponse$1, aK as SplitRecurringEventRequest$1, i as SplitRecurringEventResponse$1, aL as CancelEventRequest$1, k as CancelEventResponse$1, aM as BulkCancelEventRequest$1, m as BulkCancelEventResponse$1 } from './calendar-v3-event-events.universal-Cfq4Piiv.mjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* An event is a scheduled entry on a calendar that includes details like timing,
|
|
5
|
+
* location, and participants. Each event is associated with
|
|
6
|
+
* a [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction),
|
|
7
|
+
* from which it may [inherit default values](https://dev.wix.com/docs/rest/business-management/calendar/default-values).
|
|
8
|
+
* Events can either be standalone, part of a recurring series, or define a
|
|
9
|
+
* recurrence pattern. You can also specify whether events block time on the
|
|
10
|
+
* schedule or allow other events to be scheduled concurrently.
|
|
11
|
+
*/
|
|
12
|
+
interface Event {
|
|
13
|
+
/**
|
|
14
|
+
* Event ID.
|
|
15
|
+
* @minLength 36
|
|
16
|
+
* @maxLength 250
|
|
17
|
+
* @readonly
|
|
18
|
+
*/
|
|
19
|
+
id?: string | null;
|
|
20
|
+
/**
|
|
21
|
+
* ID of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)
|
|
22
|
+
* the event belongs to.
|
|
23
|
+
* After creating an event, you can't assign it to a different schedule.
|
|
24
|
+
* @format GUID
|
|
25
|
+
* @immutable
|
|
26
|
+
*/
|
|
27
|
+
scheduleId?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
* ID of the external schedule the event belongs to.
|
|
30
|
+
*
|
|
31
|
+
* For example, if the event belongs to a Bookings staff member, identical to
|
|
32
|
+
* the ID of the [resource](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/resource-object).
|
|
33
|
+
* If the schedule belongs to a Bookings service,
|
|
34
|
+
* identical to the ID of the [service](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/service-object).
|
|
35
|
+
* @format GUID
|
|
36
|
+
* @readonly
|
|
37
|
+
*/
|
|
38
|
+
externalScheduleId?: string | null;
|
|
39
|
+
/**
|
|
40
|
+
* Schedule name.
|
|
41
|
+
* @readonly
|
|
42
|
+
*/
|
|
43
|
+
scheduleName?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* Event type. You can set the event type but you can't update it.
|
|
46
|
+
*
|
|
47
|
+
* Supported values:
|
|
48
|
+
* + `DEFAULT`: A standard event that's not further specified.
|
|
49
|
+
* + `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).
|
|
50
|
+
*
|
|
51
|
+
* Additional supported values, if Wix Bookings is installed:
|
|
52
|
+
* + `APPOINTMENT`: Bookings appointment event.
|
|
53
|
+
* + `CLASS`: Bookings class event.
|
|
54
|
+
* + `COURSE`: Bookings course event.
|
|
55
|
+
* @immutable
|
|
56
|
+
*/
|
|
57
|
+
type?: string | null;
|
|
58
|
+
/**
|
|
59
|
+
* Event status.
|
|
60
|
+
*
|
|
61
|
+
* Supported values:
|
|
62
|
+
* + `CONFIRMED`: Event is scheduled to happen or has happened.
|
|
63
|
+
* + `CANCELLED`: Event has been canceled.
|
|
64
|
+
*
|
|
65
|
+
* Default: `CONFIRMED`
|
|
66
|
+
* @readonly
|
|
67
|
+
*/
|
|
68
|
+
status?: StatusWithLiterals;
|
|
69
|
+
/**
|
|
70
|
+
* Event title.
|
|
71
|
+
*
|
|
72
|
+
* Min: 1 character
|
|
73
|
+
* Max: 200 characters
|
|
74
|
+
* @minLength 1
|
|
75
|
+
* @maxLength 200
|
|
76
|
+
*/
|
|
77
|
+
title?: string | null;
|
|
78
|
+
/** Information about when the event starts. */
|
|
79
|
+
start?: ZonedDate;
|
|
80
|
+
/**
|
|
81
|
+
* Information about when the event ends.
|
|
82
|
+
*
|
|
83
|
+
* Maximum allowed date: Year 2100, or up to 100 years from the event's start date (whichever comes first).
|
|
84
|
+
*/
|
|
85
|
+
end?: ZonedDate;
|
|
86
|
+
/**
|
|
87
|
+
* Information about when the event starts adjusted to the `timeZone` of the
|
|
88
|
+
* business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)
|
|
89
|
+
* or a different `timeZone` you provide in the call's request.
|
|
90
|
+
* @readonly
|
|
91
|
+
*/
|
|
92
|
+
adjustedStart?: ZonedDate;
|
|
93
|
+
/**
|
|
94
|
+
* Information about when the event ends adjusted to the `timeZone` of the
|
|
95
|
+
* business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)
|
|
96
|
+
* or a different `timeZone` you provide in the call's request.
|
|
97
|
+
* @readonly
|
|
98
|
+
*/
|
|
99
|
+
adjustedEnd?: ZonedDate;
|
|
100
|
+
/**
|
|
101
|
+
* Time zone the event is associated with in
|
|
102
|
+
* [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).
|
|
103
|
+
* Only regional time zones and UTC are supported.
|
|
104
|
+
* For example, `America/New_York` or `UTC`.
|
|
105
|
+
*
|
|
106
|
+
* Default: `timeZone` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object).
|
|
107
|
+
*/
|
|
108
|
+
timeZone?: string | null;
|
|
109
|
+
/**
|
|
110
|
+
* Information about whether the event is a single occurrence or part of a
|
|
111
|
+
* recurring series.
|
|
112
|
+
*
|
|
113
|
+
* Supported values:
|
|
114
|
+
* + `NONE`: The event occurs only once and doesn't repeat.
|
|
115
|
+
* + `MASTER`: Defines the recurrence pattern for a series of recurring events.
|
|
116
|
+
* + `INSTANCE`: A specific occurrence of a recurring event. You can't create an event with `{"recurrenceType": "INSTANCE"}`, instead it's automatically generated based on the recurrence rule. If you update an `INSTANCE` event, `recurrenceType` automatically changes to `EXCEPTION`.
|
|
117
|
+
* + `EXCEPTION`: A modified instance of a recurring event that differs from the recurrence pattern. For example, an event with a different time or location. You can't create an `EXCEPTION` event directly, instead it's set automatically when you update an `INSTANCE` event.
|
|
118
|
+
*
|
|
119
|
+
* Default: `NONE`
|
|
120
|
+
* @readonly
|
|
121
|
+
*/
|
|
122
|
+
recurrenceType?: RecurrenceTypeWithLiterals;
|
|
123
|
+
/**
|
|
124
|
+
* Recurrence pattern for a series of events. This field is required when
|
|
125
|
+
* creating a `MASTER` event and isn't available for non-recurring events.
|
|
126
|
+
* You can't update the recurrence rule for `INSTANCE` or `EXCEPTION` events.
|
|
127
|
+
*
|
|
128
|
+
* For example, an event that repeats every second Monday until January 7, 2026,
|
|
129
|
+
* at 8:00 AM has the following `recurrenceRule`:
|
|
130
|
+
* - `frequency = WEEKLY`
|
|
131
|
+
* - `interval = 2`
|
|
132
|
+
* - `days = [MONDAY]`
|
|
133
|
+
* - `until = 20260107T08:00:00Z`
|
|
134
|
+
*/
|
|
135
|
+
recurrenceRule?: RecurrenceRule;
|
|
136
|
+
/**
|
|
137
|
+
* ID of the `MASTER` event the event belongs to. Available only for `INSTANCE`
|
|
138
|
+
* and `EXCEPTION` events.
|
|
139
|
+
* @minLength 64
|
|
140
|
+
* @maxLength 64
|
|
141
|
+
* @readonly
|
|
142
|
+
*/
|
|
143
|
+
recurringEventId?: string | null;
|
|
144
|
+
/**
|
|
145
|
+
* Specifies whether the event blocks time in the schedule it belongs to.
|
|
146
|
+
*
|
|
147
|
+
* Supported values:
|
|
148
|
+
* + `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.
|
|
149
|
+
* + `TRANSPARENT`: The schedule remains open during the event, allowing other events to be scheduled concurrently.
|
|
150
|
+
*
|
|
151
|
+
* Default: `OPAQUE`
|
|
152
|
+
*/
|
|
153
|
+
transparency?: TransparencyWithLiterals;
|
|
154
|
+
/**
|
|
155
|
+
* Event location.
|
|
156
|
+
*
|
|
157
|
+
* Default: `defaultLocation` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to
|
|
158
|
+
*/
|
|
159
|
+
location?: Location;
|
|
160
|
+
/**
|
|
161
|
+
* List of [Wix Bookings resources](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/resource-object)
|
|
162
|
+
* affected by the event. This could include, for example, the
|
|
163
|
+
* [Wix Bookings staff member](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/staff-member-v1/staff-member-object)
|
|
164
|
+
* providing the service or the room where the appointment takes place.
|
|
165
|
+
*
|
|
166
|
+
* Max: 100 resources
|
|
167
|
+
* @maxSize 100
|
|
168
|
+
*/
|
|
169
|
+
resources?: Resource[];
|
|
170
|
+
/**
|
|
171
|
+
* Maximum number of participants who can participate in the event.
|
|
172
|
+
*
|
|
173
|
+
* Default: `defaultCapacity` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to
|
|
174
|
+
*/
|
|
175
|
+
totalCapacity?: number | null;
|
|
176
|
+
/**
|
|
177
|
+
* Number of participants who can still be added to the event.
|
|
178
|
+
* @readonly
|
|
179
|
+
*/
|
|
180
|
+
remainingCapacity?: number | null;
|
|
181
|
+
/**
|
|
182
|
+
* Information about the event's participants.
|
|
183
|
+
* Returned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).
|
|
184
|
+
* @readonly
|
|
185
|
+
*/
|
|
186
|
+
participants?: Participants;
|
|
187
|
+
/**
|
|
188
|
+
* Information about the event's online conferencing.
|
|
189
|
+
* Returned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).
|
|
190
|
+
*
|
|
191
|
+
* Default: `defaultConferencingDetails` of the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object) the event belongs to
|
|
192
|
+
*/
|
|
193
|
+
conferencingDetails?: ConferencingDetails;
|
|
194
|
+
/**
|
|
195
|
+
* Additional notes about the event.
|
|
196
|
+
* Returned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).
|
|
197
|
+
*
|
|
198
|
+
* Min: 1 character
|
|
199
|
+
* Max: 5000 characters
|
|
200
|
+
* @minLength 1
|
|
201
|
+
* @maxLength 5000
|
|
202
|
+
*/
|
|
203
|
+
notes?: string | null;
|
|
204
|
+
/**
|
|
205
|
+
* List of fields whose values are inherited.
|
|
206
|
+
* + For single-occurrence events, values are inherited from the [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object).
|
|
207
|
+
* + For `INSTANCE` and `EXCEPTION` events, values are inherited from the related `MASTER` event.
|
|
208
|
+
* @readonly
|
|
209
|
+
*/
|
|
210
|
+
inheritedFields?: FieldWithLiterals[];
|
|
211
|
+
/**
|
|
212
|
+
* ID of the app that owns the event. Identical to `appId` of the
|
|
213
|
+
* [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/schedule-object)
|
|
214
|
+
* to which the event belongs.
|
|
215
|
+
* @format GUID
|
|
216
|
+
* @readonly
|
|
217
|
+
*/
|
|
218
|
+
appId?: string | null;
|
|
219
|
+
/**
|
|
220
|
+
* List of permissions associated with the event. Refer to the
|
|
221
|
+
* [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#roles)
|
|
222
|
+
* for more information.
|
|
223
|
+
* @readonly
|
|
224
|
+
*/
|
|
225
|
+
permissions?: Permission[];
|
|
226
|
+
/** Extensions enabling applications or users to save custom data related to the event. */
|
|
227
|
+
extendedFields?: ExtendedFields;
|
|
228
|
+
/**
|
|
229
|
+
* Revision number, which increments each time the event is updated.
|
|
230
|
+
* To prevent conflicting changes, the current revision must be passed when updating the event.
|
|
231
|
+
* Ignored when creating an event.
|
|
232
|
+
* @readonly
|
|
233
|
+
*/
|
|
234
|
+
revision?: string | null;
|
|
235
|
+
/**
|
|
236
|
+
* Date the event was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.
|
|
237
|
+
* @readonly
|
|
238
|
+
*/
|
|
239
|
+
createdDate?: Date | null;
|
|
240
|
+
/**
|
|
241
|
+
* Date the event was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.
|
|
242
|
+
* @readonly
|
|
243
|
+
*/
|
|
244
|
+
updatedDate?: Date | null;
|
|
245
|
+
}
|
|
246
|
+
declare enum Status {
|
|
247
|
+
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
248
|
+
/** Event is scheduled to happen or has happened. */
|
|
249
|
+
CONFIRMED = "CONFIRMED",
|
|
250
|
+
/** Event has been canceled. */
|
|
251
|
+
CANCELLED = "CANCELLED"
|
|
252
|
+
}
|
|
253
|
+
/** @enumType */
|
|
254
|
+
type StatusWithLiterals = Status | 'UNKNOWN_STATUS' | 'CONFIRMED' | 'CANCELLED';
|
|
255
|
+
/** A date time with a time zone, having the UTC offset and date determined by the server. */
|
|
256
|
+
interface ZonedDate {
|
|
257
|
+
/**
|
|
258
|
+
* Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
259
|
+
* For example, `2024-01-30T13:30:00`.
|
|
260
|
+
* Wix Calendar APIs ignore seconds.
|
|
261
|
+
* @format LOCAL_DATE_TIME
|
|
262
|
+
*/
|
|
263
|
+
localDate?: string | null;
|
|
264
|
+
/**
|
|
265
|
+
* Time zone in
|
|
266
|
+
* [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).
|
|
267
|
+
* For example, `America/New_York`.
|
|
268
|
+
* @readonly
|
|
269
|
+
*/
|
|
270
|
+
timeZone?: string | null;
|
|
271
|
+
/**
|
|
272
|
+
* UTC date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
273
|
+
* For example, `2024-01-30T13:30:00`.
|
|
274
|
+
* Not available for adjusted date fields.
|
|
275
|
+
* @readonly
|
|
276
|
+
*/
|
|
277
|
+
utcDate?: Date | null;
|
|
278
|
+
}
|
|
279
|
+
declare enum RecurrenceType {
|
|
280
|
+
UNKNOWN_RECURRENCE_TYPE = "UNKNOWN_RECURRENCE_TYPE",
|
|
281
|
+
/** The event occurs only once and doesn't repeat. */
|
|
282
|
+
NONE = "NONE",
|
|
283
|
+
/** Defines the recurrence pattern for a series of recurring events. */
|
|
284
|
+
MASTER = "MASTER",
|
|
285
|
+
/** A specific occurrence of a recurring event. You can't create an event with `{"recurrenceType": "INSTANCE"}`, instead it's automatically generated based on the recurrence rule. If you update an `INSTANCE` event, `recurrenceType` automatically changes to `EXCEPTION`. */
|
|
286
|
+
INSTANCE = "INSTANCE",
|
|
287
|
+
/** A modified instance of a recurring event that differs from the recurrence pattern. For example, an event with a different time or location. You can't create an `EXCEPTION` event directly, instead it's set automatically when you update an `INSTANCE` event. */
|
|
288
|
+
EXCEPTION = "EXCEPTION"
|
|
289
|
+
}
|
|
290
|
+
/** @enumType */
|
|
291
|
+
type RecurrenceTypeWithLiterals = RecurrenceType | 'UNKNOWN_RECURRENCE_TYPE' | 'NONE' | 'MASTER' | 'INSTANCE' | 'EXCEPTION';
|
|
292
|
+
interface RecurrenceRule {
|
|
293
|
+
/**
|
|
294
|
+
* Frequency how often the event repeats. Works together with `interval`.
|
|
295
|
+
*
|
|
296
|
+
* Supported values:
|
|
297
|
+
* + `WEEKLY`: The event's recurrence pattern is based on weeks.
|
|
298
|
+
*/
|
|
299
|
+
frequency?: FrequencyWithLiterals;
|
|
300
|
+
/**
|
|
301
|
+
* Interval how often the event repeats. Works together with `frequency`.
|
|
302
|
+
* For example, `frequency` set to `WEEKLY` and `interval` set to `2` means
|
|
303
|
+
* the event repeats every 2 weeks.
|
|
304
|
+
*
|
|
305
|
+
* Min: `1`
|
|
306
|
+
* Max: `4`
|
|
307
|
+
* Default: `1`
|
|
308
|
+
* @min 1
|
|
309
|
+
* @max 4
|
|
310
|
+
*/
|
|
311
|
+
interval?: number | null;
|
|
312
|
+
/**
|
|
313
|
+
* Days of the week when the recurring event takes place.
|
|
314
|
+
* Currently, only a single day is supported.
|
|
315
|
+
*
|
|
316
|
+
* Min: 1 day
|
|
317
|
+
* Max: 1 day
|
|
318
|
+
* @minSize 1
|
|
319
|
+
* @maxSize 1
|
|
320
|
+
*/
|
|
321
|
+
days?: DayWithLiterals[];
|
|
322
|
+
/**
|
|
323
|
+
* Date until when the event repeats.
|
|
324
|
+
* If not specified, the event repeats forever.
|
|
325
|
+
*/
|
|
326
|
+
until?: ZonedDate;
|
|
327
|
+
/**
|
|
328
|
+
* Date until when the event repeats
|
|
329
|
+
* adjusted to the `timeZone` of the business
|
|
330
|
+
* [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/properties-object)
|
|
331
|
+
* or a different `timeZone` you provide in the call's request.
|
|
332
|
+
* @readonly
|
|
333
|
+
*/
|
|
334
|
+
adjustedUntil?: ZonedDate;
|
|
335
|
+
}
|
|
336
|
+
declare enum Frequency {
|
|
337
|
+
UNKNOWN_FREQUENCY = "UNKNOWN_FREQUENCY",
|
|
338
|
+
/** The event's recurrence pattern is based on weeks. */
|
|
339
|
+
WEEKLY = "WEEKLY"
|
|
340
|
+
}
|
|
341
|
+
/** @enumType */
|
|
342
|
+
type FrequencyWithLiterals = Frequency | 'UNKNOWN_FREQUENCY' | 'WEEKLY';
|
|
343
|
+
declare enum Day {
|
|
344
|
+
/** The recurring event takes place on Mondays. */
|
|
345
|
+
MONDAY = "MONDAY",
|
|
346
|
+
/** The recurring event takes place on Tuesdays. */
|
|
347
|
+
TUESDAY = "TUESDAY",
|
|
348
|
+
/** The recurring event takes place on Wednesday. */
|
|
349
|
+
WEDNESDAY = "WEDNESDAY",
|
|
350
|
+
/** The recurring event takes place on Thursdays. */
|
|
351
|
+
THURSDAY = "THURSDAY",
|
|
352
|
+
/** The recurring event takes place on Fridays. */
|
|
353
|
+
FRIDAY = "FRIDAY",
|
|
354
|
+
/** The recurring event takes place on Saturdays. */
|
|
355
|
+
SATURDAY = "SATURDAY",
|
|
356
|
+
/** The recurring event takes place on Sundays. */
|
|
357
|
+
SUNDAY = "SUNDAY"
|
|
358
|
+
}
|
|
359
|
+
/** @enumType */
|
|
360
|
+
type DayWithLiterals = Day | 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY';
|
|
361
|
+
declare enum Transparency {
|
|
362
|
+
UNKNOWN_TRANSPARENCY = "UNKNOWN_TRANSPARENCY",
|
|
363
|
+
/** 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. */
|
|
364
|
+
OPAQUE = "OPAQUE",
|
|
365
|
+
/** The schedule remains open during the event, allowing other events to be scheduled concurrently. */
|
|
366
|
+
TRANSPARENT = "TRANSPARENT"
|
|
367
|
+
}
|
|
368
|
+
/** @enumType */
|
|
369
|
+
type TransparencyWithLiterals = Transparency | 'UNKNOWN_TRANSPARENCY' | 'OPAQUE' | 'TRANSPARENT';
|
|
370
|
+
interface Location {
|
|
371
|
+
/**
|
|
372
|
+
* [Location](https://dev.wix.com/docs/rest/business-management/locations/location-object)
|
|
373
|
+
* ID. Available only for `BUSINESS` locations.
|
|
374
|
+
* @format GUID
|
|
375
|
+
*/
|
|
376
|
+
id?: string | null;
|
|
377
|
+
/**
|
|
378
|
+
* Location type.
|
|
379
|
+
*
|
|
380
|
+
* Supported values:
|
|
381
|
+
* + `BUSINESS`: The event is held at a business location.
|
|
382
|
+
* + `CUSTOMER`: The event is held at the customer's location, such as their home or office.
|
|
383
|
+
* + `CUSTOM`: The event is held at an address or venue not tied to the business or customer.
|
|
384
|
+
*/
|
|
385
|
+
type?: LocationTypeWithLiterals;
|
|
386
|
+
/**
|
|
387
|
+
* Location name. For `BUSINESS` locations, it's identical to the
|
|
388
|
+
* [location](https://dev.wix.com/docs/rest/business-management/locations/location-object)
|
|
389
|
+
* `name`.
|
|
390
|
+
*
|
|
391
|
+
* Min: 1 character
|
|
392
|
+
* Max: 150 characters
|
|
393
|
+
* @minLength 1
|
|
394
|
+
* @maxLength 150
|
|
395
|
+
*/
|
|
396
|
+
name?: string | null;
|
|
397
|
+
/**
|
|
398
|
+
* Location address. For `BUSINESS` locations, it's identical to the
|
|
399
|
+
* [location](https://dev.wix.com/docs/rest/business-management/locations/location-object)'s
|
|
400
|
+
* `formattedAddress`.
|
|
401
|
+
* @minLength 1
|
|
402
|
+
* @maxLength 300
|
|
403
|
+
*/
|
|
404
|
+
address?: string | null;
|
|
405
|
+
}
|
|
406
|
+
declare enum LocationType {
|
|
407
|
+
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
408
|
+
/** The event is held at a business location. */
|
|
409
|
+
BUSINESS = "BUSINESS",
|
|
410
|
+
/** The event is held at the customer's location, such as their home or office. */
|
|
411
|
+
CUSTOMER = "CUSTOMER",
|
|
412
|
+
/** The event is held at an address or venue not tied to the business or customer. */
|
|
413
|
+
CUSTOM = "CUSTOM"
|
|
414
|
+
}
|
|
415
|
+
/** @enumType */
|
|
416
|
+
type LocationTypeWithLiterals = LocationType | 'UNKNOWN_TYPE' | 'BUSINESS' | 'CUSTOMER' | 'CUSTOM';
|
|
417
|
+
interface Resource {
|
|
418
|
+
/**
|
|
419
|
+
* Resource ID.
|
|
420
|
+
* @format GUID
|
|
421
|
+
*/
|
|
422
|
+
id?: string | null;
|
|
423
|
+
/**
|
|
424
|
+
* Resource name.
|
|
425
|
+
* @readonly
|
|
426
|
+
*/
|
|
427
|
+
name?: string | null;
|
|
428
|
+
/**
|
|
429
|
+
* Resource type.
|
|
430
|
+
* @readonly
|
|
431
|
+
*/
|
|
432
|
+
type?: string | null;
|
|
433
|
+
/**
|
|
434
|
+
* Specifies whether the event blocks time in the resource's schedule.
|
|
435
|
+
*
|
|
436
|
+
* Supported values:
|
|
437
|
+
* + `OPAQUE`: The schedule is blocked during the event, preventing other events that involve the same resource from being scheduled at the same time.
|
|
438
|
+
* + `TRANSPARENT`: The schedule remains open during the event, allowing other events to be scheduled concurrently.
|
|
439
|
+
*
|
|
440
|
+
* Default: `OPAQUE`.
|
|
441
|
+
*/
|
|
442
|
+
transparency?: TransparencyWithLiterals;
|
|
443
|
+
/**
|
|
444
|
+
* Permission role associated with the resource. Refer to the
|
|
445
|
+
* [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#roles)
|
|
446
|
+
* for more information.
|
|
447
|
+
*/
|
|
448
|
+
permissionRole?: RoleWithLiterals;
|
|
449
|
+
}
|
|
450
|
+
declare enum Role {
|
|
451
|
+
UNKNOWN_ROLE = "UNKNOWN_ROLE",
|
|
452
|
+
/** Full read and write access. */
|
|
453
|
+
WRITER = "WRITER",
|
|
454
|
+
/** Full read access, write access limited to `event.notes`. */
|
|
455
|
+
COMMENTER = "COMMENTER"
|
|
456
|
+
}
|
|
457
|
+
/** @enumType */
|
|
458
|
+
type RoleWithLiterals = Role | 'UNKNOWN_ROLE' | 'WRITER' | 'COMMENTER';
|
|
459
|
+
interface Participants {
|
|
460
|
+
/**
|
|
461
|
+
* Total number of participants.
|
|
462
|
+
*
|
|
463
|
+
* Min: `0`
|
|
464
|
+
*/
|
|
465
|
+
total?: number | null;
|
|
466
|
+
/**
|
|
467
|
+
* Full or partial list of the participants.
|
|
468
|
+
*
|
|
469
|
+
* Max: 50 participants
|
|
470
|
+
* @maxSize 50
|
|
471
|
+
*/
|
|
472
|
+
list?: Participant[];
|
|
473
|
+
/**
|
|
474
|
+
* Whether there are more participants for the event than listed.
|
|
475
|
+
*
|
|
476
|
+
* + `false`: The list includes all participants.
|
|
477
|
+
* + `true`: The list doesn't include all participants.
|
|
478
|
+
*/
|
|
479
|
+
hasMore?: boolean | null;
|
|
480
|
+
/**
|
|
481
|
+
* Participant's status.
|
|
482
|
+
*
|
|
483
|
+
* Supported values:
|
|
484
|
+
* + `CONFIRMED`: All participants are confirmed.
|
|
485
|
+
* + `PENDING_CONFIRMATION`: At least one participant isn't confirmed yet.
|
|
486
|
+
*/
|
|
487
|
+
status?: ParticipantsStatusWithLiterals;
|
|
488
|
+
}
|
|
489
|
+
interface Participant {
|
|
490
|
+
/**
|
|
491
|
+
* Participant name.
|
|
492
|
+
*
|
|
493
|
+
* Min: 1 character
|
|
494
|
+
* Max: 200 characters
|
|
495
|
+
* @minLength 1
|
|
496
|
+
* @maxLength 200
|
|
497
|
+
*/
|
|
498
|
+
name?: string | null;
|
|
499
|
+
/**
|
|
500
|
+
* Participant's phone number.
|
|
501
|
+
* @format PHONE
|
|
502
|
+
*/
|
|
503
|
+
phone?: string | null;
|
|
504
|
+
/**
|
|
505
|
+
* Participant's email address.
|
|
506
|
+
* @format EMAIL
|
|
507
|
+
*/
|
|
508
|
+
email?: string | null;
|
|
509
|
+
/**
|
|
510
|
+
* [Contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object)
|
|
511
|
+
* ID of the participant.
|
|
512
|
+
* @format GUID
|
|
513
|
+
*/
|
|
514
|
+
contactId?: string | null;
|
|
515
|
+
}
|
|
516
|
+
declare enum ParticipantsStatus {
|
|
517
|
+
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
518
|
+
/** All participants are confirmed. */
|
|
519
|
+
CONFIRMED = "CONFIRMED",
|
|
520
|
+
/** At least one participant isn't confirmed yet. */
|
|
521
|
+
PENDING_CONFIRMATION = "PENDING_CONFIRMATION"
|
|
522
|
+
}
|
|
523
|
+
/** @enumType */
|
|
524
|
+
type ParticipantsStatusWithLiterals = ParticipantsStatus | 'UNKNOWN_STATUS' | 'CONFIRMED' | 'PENDING_CONFIRMATION';
|
|
525
|
+
interface ConferencingDetails {
|
|
526
|
+
/** Conference type. For example, `Zoom`. */
|
|
527
|
+
type?: TypeWithLiterals;
|
|
528
|
+
/**
|
|
529
|
+
* URL used by the host to start the conference.
|
|
530
|
+
*
|
|
531
|
+
* Min: 1 character
|
|
532
|
+
* Max: 2000 characters
|
|
533
|
+
* @minLength 1
|
|
534
|
+
* @maxLength 2000
|
|
535
|
+
*/
|
|
536
|
+
hostUrl?: string | null;
|
|
537
|
+
/**
|
|
538
|
+
* URL used by a guest to join the conference.
|
|
539
|
+
*
|
|
540
|
+
* Min: 1 character
|
|
541
|
+
* Max: 2000 characters
|
|
542
|
+
* @minLength 1
|
|
543
|
+
* @maxLength 2000
|
|
544
|
+
*/
|
|
545
|
+
guestUrl?: string | null;
|
|
546
|
+
/**
|
|
547
|
+
* Conference password.
|
|
548
|
+
*
|
|
549
|
+
* Min: 1 character
|
|
550
|
+
* Max: 100 characters
|
|
551
|
+
* @minLength 1
|
|
552
|
+
* @maxLength 100
|
|
553
|
+
*/
|
|
554
|
+
password?: string | null;
|
|
555
|
+
/**
|
|
556
|
+
* Conference ID in an external system.
|
|
557
|
+
*
|
|
558
|
+
* Min: 1 character
|
|
559
|
+
* Max: 150 characters
|
|
560
|
+
* @minLength 1
|
|
561
|
+
* @maxLength 150
|
|
562
|
+
*/
|
|
563
|
+
externalId?: string | null;
|
|
564
|
+
}
|
|
565
|
+
declare enum Type {
|
|
566
|
+
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
567
|
+
ZOOM = "ZOOM",
|
|
568
|
+
CUSTOM = "CUSTOM"
|
|
569
|
+
}
|
|
570
|
+
/** @enumType */
|
|
571
|
+
type TypeWithLiterals = Type | 'UNKNOWN_TYPE' | 'ZOOM' | 'CUSTOM';
|
|
572
|
+
declare enum Field {
|
|
573
|
+
UNKNOWN_FIELD = "UNKNOWN_FIELD",
|
|
574
|
+
/** `title` is inherited from the schedule or `MASTER` event. */
|
|
575
|
+
TITLE = "TITLE",
|
|
576
|
+
/** `timeZone` is inherited from the schedule or `MASTER` event. */
|
|
577
|
+
TIME_ZONE = "TIME_ZONE",
|
|
578
|
+
/** `start` and `end` are inherited from the `MASTER` event. */
|
|
579
|
+
TIME = "TIME",
|
|
580
|
+
/** `location` is inherited from the schedule or `MASTER` event. */
|
|
581
|
+
LOCATION = "LOCATION",
|
|
582
|
+
/** `resources` is inherited from the `MASTER` event. */
|
|
583
|
+
RESOURCES = "RESOURCES",
|
|
584
|
+
/** `capacity` is inherited from the schedule or `MASTER` event. */
|
|
585
|
+
CAPACITY = "CAPACITY",
|
|
586
|
+
/** `participants` is inherited from the `MASTER` event. */
|
|
587
|
+
PARTICIPANTS = "PARTICIPANTS",
|
|
588
|
+
/** `conferencingDetails` is inherited from the schedule or `MASTER` event. */
|
|
589
|
+
CONFERENCING_DETAILS = "CONFERENCING_DETAILS"
|
|
590
|
+
}
|
|
591
|
+
/** @enumType */
|
|
592
|
+
type FieldWithLiterals = Field | 'UNKNOWN_FIELD' | 'TITLE' | 'TIME_ZONE' | 'TIME' | 'LOCATION' | 'RESOURCES' | 'CAPACITY' | 'PARTICIPANTS' | 'CONFERENCING_DETAILS';
|
|
593
|
+
interface Permission {
|
|
594
|
+
/**
|
|
595
|
+
* [Wix user](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#wix-users)
|
|
596
|
+
* granted the permission.
|
|
597
|
+
*/
|
|
598
|
+
identity?: CommonIdentificationData;
|
|
599
|
+
/**
|
|
600
|
+
* Permission role.
|
|
601
|
+
*
|
|
602
|
+
* Supported values:
|
|
603
|
+
* + `WRITER`: Full read and write access.
|
|
604
|
+
* + `COMMENTER`: Full read access, write access limited to `event.notes`.
|
|
605
|
+
*/
|
|
606
|
+
role?: RoleWithLiterals;
|
|
607
|
+
}
|
|
608
|
+
interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
|
|
609
|
+
/**
|
|
610
|
+
* ID of a Wix user. For example, the site owner or a
|
|
611
|
+
* [site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).
|
|
612
|
+
* @format GUID
|
|
613
|
+
*/
|
|
614
|
+
wixUserId?: string;
|
|
615
|
+
}
|
|
616
|
+
/** @oneof */
|
|
617
|
+
interface CommonIdentificationDataIdOneOf {
|
|
618
|
+
/**
|
|
619
|
+
* ID of a Wix user. For example, the site owner or a
|
|
620
|
+
* [site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).
|
|
621
|
+
* @format GUID
|
|
622
|
+
*/
|
|
623
|
+
wixUserId?: string;
|
|
624
|
+
}
|
|
625
|
+
interface ExtendedFields {
|
|
626
|
+
/**
|
|
627
|
+
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
628
|
+
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
629
|
+
*
|
|
630
|
+
* You can only access fields for which you have the appropriate permissions.
|
|
631
|
+
*
|
|
632
|
+
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
633
|
+
*/
|
|
634
|
+
namespaces?: Record<string, Record<string, any>>;
|
|
635
|
+
}
|
|
636
|
+
interface ParticipantNotification {
|
|
637
|
+
/**
|
|
638
|
+
* Whether to notify the participants about changes made to the schedule or event.
|
|
639
|
+
*
|
|
640
|
+
* Default: `false`
|
|
641
|
+
*/
|
|
642
|
+
notifyParticipants?: boolean | null;
|
|
643
|
+
/**
|
|
644
|
+
* Message to send.
|
|
645
|
+
*
|
|
646
|
+
* Min: 1 character
|
|
647
|
+
* Max: 5000 characters
|
|
648
|
+
* @minLength 1
|
|
649
|
+
* @maxLength 5000
|
|
650
|
+
*/
|
|
651
|
+
message?: string | null;
|
|
652
|
+
}
|
|
653
|
+
interface GetEventRequest {
|
|
654
|
+
/**
|
|
655
|
+
* ID of the event to retrieve.
|
|
656
|
+
*
|
|
657
|
+
* Min: 36 characters
|
|
658
|
+
* Max: 250 characters
|
|
659
|
+
* @minLength 36
|
|
660
|
+
* @maxLength 250
|
|
661
|
+
*/
|
|
662
|
+
eventId: string | null;
|
|
663
|
+
/**
|
|
664
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database)
|
|
665
|
+
* for calculating `adjustedStart` and `adjustedEnd`. For example,
|
|
666
|
+
* `America/New_York` or `UTC`.
|
|
667
|
+
*
|
|
668
|
+
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).
|
|
669
|
+
*/
|
|
670
|
+
timeZone?: string | null;
|
|
671
|
+
/**
|
|
672
|
+
* Information about which fields containing personal data to return. Refer to the
|
|
673
|
+
* [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions)
|
|
674
|
+
* for more information.
|
|
675
|
+
*
|
|
676
|
+
* Supported values:
|
|
677
|
+
* + `PI_FIELDS`: Returns all fields with personal data. Your app must have `Read Calendars - Including PI` or `Manage Calendars` permission scope.
|
|
678
|
+
* + `OWN_PI_FIELDS`: Returns only fields containing your own personal data.
|
|
679
|
+
*
|
|
680
|
+
* Max: 1 field
|
|
681
|
+
* Default: No personal data is returned.
|
|
682
|
+
* @maxSize 1
|
|
683
|
+
*/
|
|
684
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
685
|
+
}
|
|
686
|
+
declare enum RequestedFields {
|
|
687
|
+
UNKNOWN_REQUESTED_FIELDS = "UNKNOWN_REQUESTED_FIELDS",
|
|
688
|
+
/** Returns all fields with personal data. Your app must have `Read Calendars - Including PI` or `Manage Calendars` permission scope. */
|
|
689
|
+
PI_FIELDS = "PI_FIELDS",
|
|
690
|
+
/** Returns only fields containing your own personal data. */
|
|
691
|
+
OWN_PI_FIELDS = "OWN_PI_FIELDS"
|
|
692
|
+
}
|
|
693
|
+
/** @enumType */
|
|
694
|
+
type RequestedFieldsWithLiterals = RequestedFields | 'UNKNOWN_REQUESTED_FIELDS' | 'PI_FIELDS' | 'OWN_PI_FIELDS';
|
|
695
|
+
interface GetEventResponse {
|
|
696
|
+
/** Retrieved event. */
|
|
697
|
+
event?: Event;
|
|
698
|
+
}
|
|
699
|
+
interface ListEventsRequest {
|
|
700
|
+
/**
|
|
701
|
+
* IDs of the events to retrieve.
|
|
702
|
+
*
|
|
703
|
+
* Min: 1 event ID
|
|
704
|
+
* Min: 100 event IDs
|
|
705
|
+
* @minSize 1
|
|
706
|
+
* @maxSize 100
|
|
707
|
+
* @minLength 36
|
|
708
|
+
* @maxLength 250
|
|
709
|
+
*/
|
|
710
|
+
eventIds: string[];
|
|
711
|
+
/**
|
|
712
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database)
|
|
713
|
+
* for calculating `adjustedStart` and `adjustedEnd`. For example,
|
|
714
|
+
* `America/New_York` or `UTC`.
|
|
715
|
+
*
|
|
716
|
+
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).
|
|
717
|
+
*/
|
|
718
|
+
timeZone?: string | null;
|
|
719
|
+
/**
|
|
720
|
+
* Information about which fields containing personal data to return. Refer to the
|
|
721
|
+
* [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions)
|
|
722
|
+
* for more information.
|
|
723
|
+
*
|
|
724
|
+
* Supported values:
|
|
725
|
+
* + `PI_FIELDS`: Returns all fields with personal data. Your app must have `Read Calendars - Including PI` or `Manage Calendars` permission scope.
|
|
726
|
+
* + `OWN_PI_FIELDS`: Returns only fields containing your own personal data.
|
|
727
|
+
*
|
|
728
|
+
* Max: 1 field
|
|
729
|
+
* Default: No personal data is returned.
|
|
730
|
+
* @maxSize 1
|
|
731
|
+
*/
|
|
732
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
733
|
+
}
|
|
734
|
+
interface ListEventsResponse {
|
|
735
|
+
/** Retrieved events matching the provided IDs. */
|
|
736
|
+
events?: Event[];
|
|
737
|
+
}
|
|
738
|
+
interface QueryEventsRequest {
|
|
739
|
+
/**
|
|
740
|
+
* Local start date and time from which events are returned in
|
|
741
|
+
* [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format. For example,
|
|
742
|
+
* `2024-01-30T13:30:00`.
|
|
743
|
+
*
|
|
744
|
+
* Events that start before the `fromLocalDate` but end after it are included in
|
|
745
|
+
* the results. Must be earlier than `toLocalDate` unless the sort order is
|
|
746
|
+
* descending.
|
|
747
|
+
* @format LOCAL_DATE_TIME
|
|
748
|
+
*/
|
|
749
|
+
fromLocalDate?: string | null;
|
|
750
|
+
/**
|
|
751
|
+
* Local end date and time up to which events are returned in
|
|
752
|
+
* [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format. For example,
|
|
753
|
+
* `2024-01-30T13:30:00`.
|
|
754
|
+
*
|
|
755
|
+
* Events that start before `toLocalDate` but end after it are included in the
|
|
756
|
+
* results. Must be later than `fromLocalDate` unless the sort order is
|
|
757
|
+
* descending.
|
|
758
|
+
* @format LOCAL_DATE_TIME
|
|
759
|
+
*/
|
|
760
|
+
toLocalDate?: string | null;
|
|
761
|
+
/**
|
|
762
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database)
|
|
763
|
+
* for `fromLocalDate`, `toLocalDate`, and for calculating `adjustedStart` and
|
|
764
|
+
* `adjustedEnd`. For example, `America/New_York` or `UTC`.
|
|
765
|
+
*
|
|
766
|
+
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).
|
|
767
|
+
*/
|
|
768
|
+
timeZone?: string | null;
|
|
769
|
+
/**
|
|
770
|
+
* Query containing filters and paging.
|
|
771
|
+
* Do not specify filters for start and end dates inside `query.filter`, instead
|
|
772
|
+
* specify `fromLocalDate` and `toLocalDate`.
|
|
773
|
+
*/
|
|
774
|
+
query?: CursorQuery;
|
|
775
|
+
/**
|
|
776
|
+
* Filters events based on their `recurrenceType`.
|
|
777
|
+
*
|
|
778
|
+
* Max: 5 recurrence types can be specified.
|
|
779
|
+
* Default: Events with `recurrenceType` of `NONE`, `INSTANCE`, and `EXCEPTION` are returned.
|
|
780
|
+
* @maxSize 5
|
|
781
|
+
*/
|
|
782
|
+
recurrenceType?: RecurrenceTypeWithLiterals[];
|
|
783
|
+
/**
|
|
784
|
+
* Information about which fields containing personal data to return. Refer to the
|
|
785
|
+
* [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions)
|
|
786
|
+
* for more information.
|
|
787
|
+
*
|
|
788
|
+
* Supported values:
|
|
789
|
+
* + `PI_FIELDS`: Returns all fields with personal data. Your app must have `Read Calendars - Including PI` or `Manage Calendars` permission scope.
|
|
790
|
+
* + `OWN_PI_FIELDS`: Returns only fields containing your own personal data.
|
|
791
|
+
*
|
|
792
|
+
* Max: 1 field
|
|
793
|
+
* Default: No personal data is returned.
|
|
794
|
+
* @maxSize 1
|
|
795
|
+
*/
|
|
796
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
797
|
+
}
|
|
798
|
+
/** TODO Diverge */
|
|
799
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
800
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter`. */
|
|
801
|
+
cursorPaging?: CursorPaging;
|
|
802
|
+
/**
|
|
803
|
+
* Filter object.
|
|
804
|
+
* See API Query Language
|
|
805
|
+
* ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/api-query-language) | [REST](https://dev.wix.com/api/rest/getting-started/api-query-language))
|
|
806
|
+
* for more information.
|
|
807
|
+
*
|
|
808
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`.
|
|
809
|
+
*
|
|
810
|
+
* Do not specify filters for start and end dates inside `query.filter`, instead
|
|
811
|
+
* specify `fromLocalDate` and `toLocalDate`. For a detailed list of supported
|
|
812
|
+
* filters, refer to the supported filters article
|
|
813
|
+
* ([REST](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/supported-filters-and-sorting)).
|
|
814
|
+
*/
|
|
815
|
+
filter?: Record<string, any> | null;
|
|
816
|
+
/**
|
|
817
|
+
* Whether to sort events by their start date in ascending order or by their end date in descending order.
|
|
818
|
+
* Default is start ascending.
|
|
819
|
+
* @maxSize 1
|
|
820
|
+
*/
|
|
821
|
+
sort?: Sorting[];
|
|
822
|
+
}
|
|
823
|
+
/** @oneof */
|
|
824
|
+
interface CursorQueryPagingMethodOneOf {
|
|
825
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter`. */
|
|
826
|
+
cursorPaging?: CursorPaging;
|
|
827
|
+
}
|
|
828
|
+
/** TODO Diverge */
|
|
829
|
+
interface Sorting {
|
|
830
|
+
/**
|
|
831
|
+
* The field to sort by.
|
|
832
|
+
* Either `start` or `end`.
|
|
833
|
+
* Default is `start`.
|
|
834
|
+
*/
|
|
835
|
+
fieldName?: string;
|
|
836
|
+
/** Sort order. */
|
|
837
|
+
order?: SortOrderWithLiterals;
|
|
838
|
+
}
|
|
839
|
+
declare enum SortOrder {
|
|
840
|
+
ASC = "ASC",
|
|
841
|
+
DESC = "DESC"
|
|
842
|
+
}
|
|
843
|
+
/** @enumType */
|
|
844
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
845
|
+
/** TODO Diverge */
|
|
846
|
+
interface CursorPaging {
|
|
847
|
+
/**
|
|
848
|
+
* Number of events to return.
|
|
849
|
+
* Defaults to `50`. Maximum `1000`.
|
|
850
|
+
* @min 1
|
|
851
|
+
* @max 1000
|
|
852
|
+
*/
|
|
853
|
+
limit?: number | null;
|
|
854
|
+
/**
|
|
855
|
+
* Pointer to the next or previous page in the list of results.
|
|
856
|
+
*
|
|
857
|
+
* You can get the relevant cursor token
|
|
858
|
+
* from the `pagingMetadata` object in the previous call's response.
|
|
859
|
+
* Not relevant for the first request.
|
|
860
|
+
*/
|
|
861
|
+
cursor?: string | null;
|
|
862
|
+
}
|
|
863
|
+
interface QueryEventsResponse {
|
|
864
|
+
/** Retrieved events matching the provided query. */
|
|
865
|
+
events?: Event[];
|
|
866
|
+
/** Paging metadata. */
|
|
867
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
868
|
+
}
|
|
869
|
+
/** TODO Diverge */
|
|
870
|
+
interface CursorPagingMetadata {
|
|
871
|
+
/** Number of items returned in the response. */
|
|
872
|
+
count?: number | null;
|
|
873
|
+
/** Use these cursor to paginate between results. [Read more](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_cursor-paging). */
|
|
874
|
+
cursors?: Cursors;
|
|
875
|
+
/**
|
|
876
|
+
* Indicates if there are more results after the current page.
|
|
877
|
+
* If `true`, another page of results can be retrieved.
|
|
878
|
+
* If `false`, this is the last page.
|
|
879
|
+
*/
|
|
880
|
+
hasNext?: boolean | null;
|
|
881
|
+
}
|
|
882
|
+
interface Cursors {
|
|
883
|
+
/** Cursor pointing to next page in the list of results. */
|
|
884
|
+
next?: string | null;
|
|
885
|
+
}
|
|
886
|
+
interface CreateEventRequest {
|
|
887
|
+
/** Event to create. */
|
|
888
|
+
event: Event;
|
|
889
|
+
/**
|
|
890
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database)
|
|
891
|
+
* for calculating `adjustedStart` and `adjustedEnd`. For example,
|
|
892
|
+
* `America/New_York` or `UTC`.
|
|
893
|
+
*
|
|
894
|
+
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).
|
|
895
|
+
*/
|
|
896
|
+
timeZone?: string | null;
|
|
897
|
+
/**
|
|
898
|
+
* Idempotency key guaranteeing that you don't create the same event more
|
|
899
|
+
* than once.
|
|
900
|
+
* @format GUID
|
|
901
|
+
*/
|
|
902
|
+
idempotencyKey?: string | null;
|
|
903
|
+
}
|
|
904
|
+
interface CreateEventResponse {
|
|
905
|
+
/** Created event. */
|
|
906
|
+
event?: Event;
|
|
907
|
+
}
|
|
908
|
+
interface BulkCreateEventRequest {
|
|
909
|
+
/**
|
|
910
|
+
* Events to create.
|
|
911
|
+
* @minSize 1
|
|
912
|
+
* @maxSize 50
|
|
913
|
+
*/
|
|
914
|
+
events: MaskedEvent[];
|
|
915
|
+
/**
|
|
916
|
+
* Whether to return created events.
|
|
917
|
+
*
|
|
918
|
+
* Default: `false`.
|
|
919
|
+
*/
|
|
920
|
+
returnEntity?: boolean | null;
|
|
921
|
+
/**
|
|
922
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database)
|
|
923
|
+
* for calculating `adjustedStart` and `adjustedEnd`. For example,
|
|
924
|
+
* `America/New_York` or `UTC`.
|
|
925
|
+
*
|
|
926
|
+
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).
|
|
927
|
+
*/
|
|
928
|
+
timeZone?: string | null;
|
|
929
|
+
}
|
|
930
|
+
interface MaskedEvent {
|
|
931
|
+
/** Event to create. */
|
|
932
|
+
event?: Event;
|
|
933
|
+
}
|
|
934
|
+
interface BulkCreateEventResponse {
|
|
935
|
+
/** The result for each event, containing the event and whether the action was successful. */
|
|
936
|
+
results?: BulkEventResult[];
|
|
937
|
+
/** Total successes and failures. */
|
|
938
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
939
|
+
}
|
|
940
|
+
interface BulkEventResult {
|
|
941
|
+
/** Whether the requested action was successful. */
|
|
942
|
+
itemMetadata?: ItemMetadata;
|
|
943
|
+
/** The event. */
|
|
944
|
+
item?: Event;
|
|
945
|
+
}
|
|
946
|
+
interface ItemMetadata {
|
|
947
|
+
/**
|
|
948
|
+
* Event ID.
|
|
949
|
+
* Should always be available, unless it's impossible (for example, when failing to create an event).
|
|
950
|
+
*/
|
|
951
|
+
id?: string | null;
|
|
952
|
+
/** Index of the item within the request array, for correlation between request and response items. */
|
|
953
|
+
originalIndex?: number;
|
|
954
|
+
/**
|
|
955
|
+
* Whether the requested action was successful for this event.
|
|
956
|
+
* When `false`, the `error` field is populated.
|
|
957
|
+
*/
|
|
958
|
+
success?: boolean;
|
|
959
|
+
/** Details about the error in case of failure. */
|
|
960
|
+
error?: ApplicationError;
|
|
961
|
+
}
|
|
962
|
+
interface ApplicationError {
|
|
963
|
+
/** Error code. */
|
|
964
|
+
code?: string;
|
|
965
|
+
/** Description of the error. */
|
|
966
|
+
description?: string;
|
|
967
|
+
/** Data related to the error. */
|
|
968
|
+
data?: Record<string, any> | null;
|
|
969
|
+
}
|
|
970
|
+
interface BulkActionMetadata {
|
|
971
|
+
/** Number of events that were successfully processed. */
|
|
972
|
+
totalSuccesses?: number;
|
|
973
|
+
/** Number of events that couldn't be processed. */
|
|
974
|
+
totalFailures?: number;
|
|
975
|
+
}
|
|
976
|
+
interface UpdateEventRequest {
|
|
977
|
+
/** Event to update. */
|
|
978
|
+
event: Event;
|
|
979
|
+
/**
|
|
980
|
+
* Information about whether participants of the updated event are notified and
|
|
981
|
+
* the message they receive.
|
|
982
|
+
*/
|
|
983
|
+
participantNotification?: ParticipantNotification;
|
|
984
|
+
/**
|
|
985
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database)
|
|
986
|
+
* for calculating `adjustedStart` and `adjustedEnd`. For example,
|
|
987
|
+
* `America/New_York` or `UTC`.
|
|
988
|
+
*
|
|
989
|
+
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).
|
|
990
|
+
*/
|
|
991
|
+
timeZone?: string | null;
|
|
992
|
+
}
|
|
993
|
+
interface UpdateEventResponse {
|
|
994
|
+
/** Updated event. */
|
|
995
|
+
event?: Event;
|
|
996
|
+
}
|
|
997
|
+
interface BulkUpdateEventRequest {
|
|
998
|
+
/**
|
|
999
|
+
* Events to update.
|
|
1000
|
+
*
|
|
1001
|
+
* Min: 1 event
|
|
1002
|
+
* Max: 50 events
|
|
1003
|
+
* @minSize 1
|
|
1004
|
+
* @maxSize 50
|
|
1005
|
+
*/
|
|
1006
|
+
events: BulkUpdateEventRequestMaskedEvent[];
|
|
1007
|
+
/**
|
|
1008
|
+
* Whether to return the updated events.
|
|
1009
|
+
*
|
|
1010
|
+
* Default: `false`
|
|
1011
|
+
*/
|
|
1012
|
+
returnEntity?: boolean | null;
|
|
1013
|
+
/**
|
|
1014
|
+
* Information about whether participants of the updated event are notified and
|
|
1015
|
+
* the message they receive.
|
|
1016
|
+
*/
|
|
1017
|
+
participantNotification?: ParticipantNotification;
|
|
1018
|
+
/**
|
|
1019
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database)
|
|
1020
|
+
* for calculating `adjustedStart` and `adjustedEnd`. For example,
|
|
1021
|
+
* `America/New_York` or `UTC`.
|
|
1022
|
+
*
|
|
1023
|
+
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).
|
|
1024
|
+
*/
|
|
1025
|
+
timeZone?: string | null;
|
|
1026
|
+
}
|
|
1027
|
+
interface BulkUpdateEventRequestMaskedEvent {
|
|
1028
|
+
/** Event to update. */
|
|
1029
|
+
event?: Event;
|
|
1030
|
+
}
|
|
1031
|
+
interface BulkUpdateEventResponse {
|
|
1032
|
+
/** The result for each event, containing the event and whether the action was successful. */
|
|
1033
|
+
results?: BulkEventResult[];
|
|
1034
|
+
/** Total successes and failures. */
|
|
1035
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
1036
|
+
}
|
|
1037
|
+
interface RestoreEventDefaultsRequest {
|
|
1038
|
+
/**
|
|
1039
|
+
* ID of the event for which to restore default values.
|
|
1040
|
+
* @minLength 36
|
|
1041
|
+
* @maxLength 250
|
|
1042
|
+
*/
|
|
1043
|
+
eventId: string | null;
|
|
1044
|
+
/**
|
|
1045
|
+
* Fields for which to restore default values.
|
|
1046
|
+
*
|
|
1047
|
+
* `TIME` restores default values for `start` and `end`.
|
|
1048
|
+
*
|
|
1049
|
+
* Min: 1 field
|
|
1050
|
+
* @minSize 1
|
|
1051
|
+
*/
|
|
1052
|
+
fields: FieldWithLiterals[];
|
|
1053
|
+
/**
|
|
1054
|
+
* Information about whether participants of the updated event are notified and
|
|
1055
|
+
* the message they receive.
|
|
1056
|
+
*/
|
|
1057
|
+
participantNotification?: ParticipantNotification;
|
|
1058
|
+
/**
|
|
1059
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database)
|
|
1060
|
+
* for calculating `adjustedStart` and `adjustedEnd`. For example,
|
|
1061
|
+
* `America/New_York` or `UTC`.
|
|
1062
|
+
*
|
|
1063
|
+
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).
|
|
1064
|
+
*/
|
|
1065
|
+
timeZone?: string | null;
|
|
1066
|
+
}
|
|
1067
|
+
interface RestoreEventDefaultsResponse {
|
|
1068
|
+
/** Updated event. */
|
|
1069
|
+
event?: Event;
|
|
1070
|
+
}
|
|
1071
|
+
interface SplitRecurringEventRequest {
|
|
1072
|
+
/**
|
|
1073
|
+
* ID of the `MASTER` event to split.
|
|
1074
|
+
* @minLength 36
|
|
1075
|
+
* @maxLength 250
|
|
1076
|
+
*/
|
|
1077
|
+
recurringEventId: string | null;
|
|
1078
|
+
/**
|
|
1079
|
+
* Local date and time at which the `MASTER` event is split in
|
|
1080
|
+
* [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format. For example,
|
|
1081
|
+
* `2025-03-11T09:00:00`.
|
|
1082
|
+
* Must be a future date that's after the `start` date of the next `INSTANCE` or
|
|
1083
|
+
* `EXCEPTION` event in the series. Additionally, there must be another
|
|
1084
|
+
* `INSTANCE` or `EXCEPTION` event following this next event, as the changes
|
|
1085
|
+
* wouldn't affect any event without a subsequent occurrence.
|
|
1086
|
+
* @format LOCAL_DATE_TIME
|
|
1087
|
+
*/
|
|
1088
|
+
splitLocalDate: string | null;
|
|
1089
|
+
/**
|
|
1090
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database)
|
|
1091
|
+
* for calculating `adjustedStart` and `adjustedEnd`. For example,
|
|
1092
|
+
* `America/New_York` or `UTC`.
|
|
1093
|
+
*
|
|
1094
|
+
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).
|
|
1095
|
+
*/
|
|
1096
|
+
timeZone?: string | null;
|
|
1097
|
+
}
|
|
1098
|
+
interface SplitRecurringEventResponse {
|
|
1099
|
+
/** Original `MASTER` event that was shortened. */
|
|
1100
|
+
updatedRecurringEventEndingBeforeSplit?: Event;
|
|
1101
|
+
/** New `MASTER` event starting with the first event after the split date. */
|
|
1102
|
+
newRecurringEventStartingFromSplit?: Event;
|
|
1103
|
+
}
|
|
1104
|
+
interface CancelEventRequest {
|
|
1105
|
+
/**
|
|
1106
|
+
* ID of the event to cancel.
|
|
1107
|
+
* @minLength 36
|
|
1108
|
+
* @maxLength 250
|
|
1109
|
+
*/
|
|
1110
|
+
eventId: string | null;
|
|
1111
|
+
/**
|
|
1112
|
+
* Information about whether participants of the canceled event are notified and
|
|
1113
|
+
* the message they receive.
|
|
1114
|
+
*/
|
|
1115
|
+
participantNotification?: ParticipantNotification;
|
|
1116
|
+
/**
|
|
1117
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database)
|
|
1118
|
+
* for calculating `adjustedStart` and `adjustedEnd`. For example,
|
|
1119
|
+
* `America/New_York` or `UTC`.
|
|
1120
|
+
*
|
|
1121
|
+
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).
|
|
1122
|
+
*/
|
|
1123
|
+
timeZone?: string | null;
|
|
1124
|
+
}
|
|
1125
|
+
interface CancelEventResponse {
|
|
1126
|
+
/** Canceled event. */
|
|
1127
|
+
event?: Event;
|
|
1128
|
+
}
|
|
1129
|
+
interface BulkCancelEventRequest {
|
|
1130
|
+
/**
|
|
1131
|
+
* IDs of the events to cancel.
|
|
1132
|
+
* @minSize 1
|
|
1133
|
+
* @maxSize 50
|
|
1134
|
+
*/
|
|
1135
|
+
eventIds: string[];
|
|
1136
|
+
/**
|
|
1137
|
+
* Whether to return the canceled events.
|
|
1138
|
+
*
|
|
1139
|
+
* Default: `false`
|
|
1140
|
+
*/
|
|
1141
|
+
returnEntity?: boolean | null;
|
|
1142
|
+
/**
|
|
1143
|
+
* Information about whether participants of the canceled events are notified and
|
|
1144
|
+
* the message they receive.
|
|
1145
|
+
*/
|
|
1146
|
+
participantNotification?: ParticipantNotification;
|
|
1147
|
+
/**
|
|
1148
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database)
|
|
1149
|
+
* for calculating `adjustedStart` and `adjustedEnd`. For example,
|
|
1150
|
+
* `America/New_York` or `UTC`.
|
|
1151
|
+
*
|
|
1152
|
+
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).
|
|
1153
|
+
*/
|
|
1154
|
+
timeZone?: string | null;
|
|
1155
|
+
}
|
|
1156
|
+
interface BulkCancelEventResponse {
|
|
1157
|
+
/** The result for each event, containing the event and whether the action was successful. */
|
|
1158
|
+
results?: BulkEventResult[];
|
|
1159
|
+
/** Total successes and failures. */
|
|
1160
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
1164
|
+
getUrl: (context: any) => string;
|
|
1165
|
+
httpMethod: K;
|
|
1166
|
+
path: string;
|
|
1167
|
+
pathParams: M;
|
|
1168
|
+
__requestType: T;
|
|
1169
|
+
__originalRequestType: S;
|
|
1170
|
+
__responseType: Q;
|
|
1171
|
+
__originalResponseType: R;
|
|
1172
|
+
};
|
|
1173
|
+
declare function getEvent(): __PublicMethodMetaInfo<'GET', {
|
|
1174
|
+
eventId: string;
|
|
1175
|
+
}, GetEventRequest$1, GetEventRequest, GetEventResponse$1, GetEventResponse>;
|
|
1176
|
+
declare function listEvents(): __PublicMethodMetaInfo<'GET', {}, ListEventsRequest$1, ListEventsRequest, ListEventsResponse$1, ListEventsResponse>;
|
|
1177
|
+
declare function queryEvents(): __PublicMethodMetaInfo<'POST', {}, QueryEventsRequest$1, QueryEventsRequest, QueryEventsResponse$1, QueryEventsResponse>;
|
|
1178
|
+
declare function createEvent(): __PublicMethodMetaInfo<'POST', {}, CreateEventRequest$1, CreateEventRequest, CreateEventResponse$1, CreateEventResponse>;
|
|
1179
|
+
declare function bulkCreateEvent(): __PublicMethodMetaInfo<'POST', {}, BulkCreateEventRequest$1, BulkCreateEventRequest, BulkCreateEventResponse$1, BulkCreateEventResponse>;
|
|
1180
|
+
declare function updateEvent(): __PublicMethodMetaInfo<'PATCH', {
|
|
1181
|
+
eventId: string;
|
|
1182
|
+
}, UpdateEventRequest$1, UpdateEventRequest, UpdateEventResponse$1, UpdateEventResponse>;
|
|
1183
|
+
declare function bulkUpdateEvent(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateEventRequest$1, BulkUpdateEventRequest, BulkUpdateEventResponse$1, BulkUpdateEventResponse>;
|
|
1184
|
+
declare function restoreEventDefaults(): __PublicMethodMetaInfo<'POST', {
|
|
1185
|
+
eventId: string;
|
|
1186
|
+
}, RestoreEventDefaultsRequest$1, RestoreEventDefaultsRequest, RestoreEventDefaultsResponse$1, RestoreEventDefaultsResponse>;
|
|
1187
|
+
declare function splitRecurringEvent(): __PublicMethodMetaInfo<'POST', {
|
|
1188
|
+
recurringEventId: string;
|
|
1189
|
+
}, SplitRecurringEventRequest$1, SplitRecurringEventRequest, SplitRecurringEventResponse$1, SplitRecurringEventResponse>;
|
|
1190
|
+
declare function cancelEvent(): __PublicMethodMetaInfo<'POST', {
|
|
1191
|
+
eventId: string;
|
|
1192
|
+
}, CancelEventRequest$1, CancelEventRequest, CancelEventResponse$1, CancelEventResponse>;
|
|
1193
|
+
declare function bulkCancelEvent(): __PublicMethodMetaInfo<'POST', {}, BulkCancelEventRequest$1, BulkCancelEventRequest, BulkCancelEventResponse$1, BulkCancelEventResponse>;
|
|
1194
|
+
|
|
1195
|
+
export { type __PublicMethodMetaInfo, bulkCancelEvent, bulkCreateEvent, bulkUpdateEvent, cancelEvent, createEvent, getEvent, listEvents, queryEvents, restoreEventDefaults, splitRecurringEvent, updateEvent };
|