@wix/bookings 1.0.0 → 1.0.1
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/index.d.ts +2 -0
- package/build/cjs/index.js +3 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/src/bookings-calendar-v1-session.http.d.ts +75 -0
- package/build/cjs/src/bookings-calendar-v1-session.http.js +355 -0
- package/build/cjs/src/bookings-calendar-v1-session.http.js.map +1 -0
- package/build/cjs/src/bookings-calendar-v1-session.public.d.ts +8 -0
- package/build/cjs/src/bookings-calendar-v1-session.public.js +41 -0
- package/build/cjs/src/bookings-calendar-v1-session.public.js.map +1 -0
- package/build/cjs/src/bookings-calendar-v1-session.types.d.ts +1011 -0
- package/build/cjs/src/bookings-calendar-v1-session.types.js +110 -0
- package/build/cjs/src/bookings-calendar-v1-session.types.js.map +1 -0
- package/build/cjs/src/bookings-calendar-v1-session.universal.d.ts +1178 -0
- package/build/cjs/src/bookings-calendar-v1-session.universal.js +437 -0
- package/build/cjs/src/bookings-calendar-v1-session.universal.js.map +1 -0
- package/build/cjs/src/bookings-catalog-v1-resource.http.d.ts +195 -0
- package/build/cjs/src/bookings-catalog-v1-resource.http.js +564 -0
- package/build/cjs/src/bookings-catalog-v1-resource.http.js.map +1 -0
- package/build/cjs/src/bookings-catalog-v1-resource.public.d.ts +10 -0
- package/build/cjs/src/bookings-catalog-v1-resource.public.js +55 -0
- package/build/cjs/src/bookings-catalog-v1-resource.public.js.map +1 -0
- package/build/cjs/src/bookings-catalog-v1-resource.types.d.ts +931 -0
- package/build/cjs/src/bookings-catalog-v1-resource.types.js +125 -0
- package/build/cjs/src/bookings-catalog-v1-resource.types.js.map +1 -0
- package/build/cjs/src/bookings-catalog-v1-resource.universal.d.ts +1201 -0
- package/build/cjs/src/bookings-catalog-v1-resource.universal.js +740 -0
- package/build/cjs/src/bookings-catalog-v1-resource.universal.js.map +1 -0
- package/build/es/index.d.ts +2 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -1
- package/build/es/src/bookings-calendar-v1-session.http.d.ts +75 -0
- package/build/es/src/bookings-calendar-v1-session.http.js +348 -0
- package/build/es/src/bookings-calendar-v1-session.http.js.map +1 -0
- package/build/es/src/bookings-calendar-v1-session.public.d.ts +8 -0
- package/build/es/src/bookings-calendar-v1-session.public.js +23 -0
- package/build/es/src/bookings-calendar-v1-session.public.js.map +1 -0
- package/build/es/src/bookings-calendar-v1-session.types.d.ts +1011 -0
- package/build/es/src/bookings-calendar-v1-session.types.js +107 -0
- package/build/es/src/bookings-calendar-v1-session.types.js.map +1 -0
- package/build/es/src/bookings-calendar-v1-session.universal.d.ts +1178 -0
- package/build/es/src/bookings-calendar-v1-session.universal.js +411 -0
- package/build/es/src/bookings-calendar-v1-session.universal.js.map +1 -0
- package/build/es/src/bookings-catalog-v1-resource.http.d.ts +195 -0
- package/build/es/src/bookings-catalog-v1-resource.http.js +555 -0
- package/build/es/src/bookings-catalog-v1-resource.http.js.map +1 -0
- package/build/es/src/bookings-catalog-v1-resource.public.d.ts +10 -0
- package/build/es/src/bookings-catalog-v1-resource.public.js +33 -0
- package/build/es/src/bookings-catalog-v1-resource.public.js.map +1 -0
- package/build/es/src/bookings-catalog-v1-resource.types.d.ts +931 -0
- package/build/es/src/bookings-catalog-v1-resource.types.js +122 -0
- package/build/es/src/bookings-catalog-v1-resource.types.js.map +1 -0
- package/build/es/src/bookings-catalog-v1-resource.universal.d.ts +1201 -0
- package/build/es/src/bookings-catalog-v1-resource.universal.js +712 -0
- package/build/es/src/bookings-catalog-v1-resource.universal.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,1178 @@
|
|
|
1
|
+
export declare const __debug: {
|
|
2
|
+
verboseLogging: {
|
|
3
|
+
on: () => boolean;
|
|
4
|
+
off: () => boolean;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
export interface Session {
|
|
8
|
+
/**
|
|
9
|
+
* Session ID.
|
|
10
|
+
* @readonly
|
|
11
|
+
*/
|
|
12
|
+
_id?: string | null;
|
|
13
|
+
/** ID of the schedule that the session belongs to. */
|
|
14
|
+
scheduleId?: string;
|
|
15
|
+
/**
|
|
16
|
+
* ID of the resource or service that the session's schedule belongs to.
|
|
17
|
+
* @readonly
|
|
18
|
+
*/
|
|
19
|
+
scheduleOwnerId?: string | null;
|
|
20
|
+
/** Original start date and time of the session in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#Coordinated_Universal_Time_(UTC)) format. */
|
|
21
|
+
originalStart?: Date;
|
|
22
|
+
/** An object specifying the start date and time of the session. If the session is a recurring session, `start` must contain a `localDateTime`. */
|
|
23
|
+
start?: CalendarDateTime;
|
|
24
|
+
/**
|
|
25
|
+
* An object specifying the end date and time of the session. The `end` time must be after the `start` time and be same type as `start`.
|
|
26
|
+
* If the session is a recurring session, `end` must contain a `localDateTime`.
|
|
27
|
+
*/
|
|
28
|
+
end?: CalendarDateTime;
|
|
29
|
+
/**
|
|
30
|
+
* An object specifying a list of schedules and the way each schedule's availability is affected by the session. For example, the schedule of an instructor is affected by sessions of the class that they instruct.
|
|
31
|
+
* The array is inherited from the schedule and can be overridden even if the session is a recurring session.
|
|
32
|
+
*/
|
|
33
|
+
affectedSchedules?: LinkedSchedule[];
|
|
34
|
+
/**
|
|
35
|
+
* Session title.
|
|
36
|
+
* The value is inherited from the schedule and can be overridden unless the session is a recurring session.
|
|
37
|
+
*/
|
|
38
|
+
title?: string | null;
|
|
39
|
+
/**
|
|
40
|
+
* Tags for the session.
|
|
41
|
+
* The value is inherited from the schedule and can be overridden unless the session is a recurring session.
|
|
42
|
+
*/
|
|
43
|
+
tags?: string[] | null;
|
|
44
|
+
/**
|
|
45
|
+
* An object describing the location where the session takes place.
|
|
46
|
+
* Defaults to the schedule location.
|
|
47
|
+
* For single sessions, `session.location.businessLocation` can only be provided for locations that are defined in the schedule using `schedule.location` or `schedule.availability.locations`.
|
|
48
|
+
*/
|
|
49
|
+
location?: Location;
|
|
50
|
+
/**
|
|
51
|
+
* Maximum number of participants that can be added to the session. Defaults to the schedule capacity.
|
|
52
|
+
* The value is inherited from the schedule and can be overridden unless the session is a recurring session.
|
|
53
|
+
*/
|
|
54
|
+
capacity?: number | null;
|
|
55
|
+
/**
|
|
56
|
+
* The price options offered for the session. Defaults to the schedule rate.
|
|
57
|
+
* The value is inherited from the schedule and can be overridden unless the session is a recurring session.
|
|
58
|
+
*/
|
|
59
|
+
rate?: Rate;
|
|
60
|
+
/**
|
|
61
|
+
* Time reserved after the session end time, derived from the schedule availability constraints and the time between slots. Read-only.
|
|
62
|
+
* If the session is a recurring session, this field must be empty.
|
|
63
|
+
*/
|
|
64
|
+
timeReservedAfter?: number | null;
|
|
65
|
+
/**
|
|
66
|
+
* Additional information about the session.
|
|
67
|
+
* Notes are not supported for recurring sessions.
|
|
68
|
+
*/
|
|
69
|
+
notes?: string;
|
|
70
|
+
/**
|
|
71
|
+
* The number of participants booked for the session. Read-only.
|
|
72
|
+
* Calculated as the sum of the party sizes.
|
|
73
|
+
* @readonly
|
|
74
|
+
*/
|
|
75
|
+
totalNumberOfParticipants?: number;
|
|
76
|
+
/**
|
|
77
|
+
* List of participants booked for the session.
|
|
78
|
+
* The list includes participants who have registered for this specific session, and participants who have registered for a schedule that includes this session.
|
|
79
|
+
* If the session is a recurring session, this field must be empty.
|
|
80
|
+
*/
|
|
81
|
+
participants?: Participant[];
|
|
82
|
+
/**
|
|
83
|
+
* A list of properties for which values were inherited from the schedule.
|
|
84
|
+
* This does not include participants that were inherited from the schedule.
|
|
85
|
+
* @readonly
|
|
86
|
+
*/
|
|
87
|
+
inheritedFields?: string[];
|
|
88
|
+
/**
|
|
89
|
+
* Title and description values to override session defaults when syncing to an external calendar.
|
|
90
|
+
* Learn more about [syncing calendars](https://support.wix.com/en/article/wix-bookings-important-information-about-syncing-google-calendars-with-wix-bookings).
|
|
91
|
+
* The value is inherited from the schedule and can be overridden unless the session is a recurring session.
|
|
92
|
+
*/
|
|
93
|
+
externalCalendarOverrides?: ExternalCalendarOverrides;
|
|
94
|
+
/**
|
|
95
|
+
* Session status.
|
|
96
|
+
* <!--ONLY:VELO
|
|
97
|
+
* One of:
|
|
98
|
+
* - `"CONFIRMED"` Default value.
|
|
99
|
+
* - `"CANCELLED"` The session was deleted.
|
|
100
|
+
* <!--END:ONLY:VELO-->
|
|
101
|
+
* @readonly
|
|
102
|
+
*/
|
|
103
|
+
status?: Status;
|
|
104
|
+
/**
|
|
105
|
+
* Recurring interval ID. Defined when a session will be a recurring session. read-only. Optional.
|
|
106
|
+
* For exmaple, when creating a class service with recurring sessions, you add a recurrence rule to create recurring sessions.
|
|
107
|
+
* This field is omitted for single sessions or instances of recurring sessions.
|
|
108
|
+
* Specified when the session was originally generated from a schedule recurring interval.
|
|
109
|
+
* Deprecated. Use `recurringSessionId`.
|
|
110
|
+
* @readonly
|
|
111
|
+
*/
|
|
112
|
+
recurringIntervalId?: string | null;
|
|
113
|
+
/**
|
|
114
|
+
* The ID of the recurring session if this session is an instance of a recurrence. Use this ID to update the recurrence and all of the instances.
|
|
115
|
+
* @readonly
|
|
116
|
+
*/
|
|
117
|
+
recurringSessionId?: string | null;
|
|
118
|
+
/**
|
|
119
|
+
* Session type.
|
|
120
|
+
* <!--ONLY:VELO
|
|
121
|
+
* One of:
|
|
122
|
+
* - `"EVENT"` Reserved period of time on the schedule. For example, an appointment, class, course, or blocked time. Events are visible in the Dashboard in the Bookings app's [Booking Calendar](https://support.wix.com/en/article/wix-bookings-about-the-wix-bookings-calendar) page.
|
|
123
|
+
* - `"WORKING_HOURS"` Placeholder for available time on a resource’s schedule.
|
|
124
|
+
* <!--END:ONLY:VELO-->
|
|
125
|
+
*/
|
|
126
|
+
type?: SessionType;
|
|
127
|
+
/**
|
|
128
|
+
* A conference created for the session according to the details set in the schedule's conference provider information.
|
|
129
|
+
* If the session is a recurring session, this field is inherited from the schedule.
|
|
130
|
+
*/
|
|
131
|
+
calendarConference?: CalendarConference;
|
|
132
|
+
/**
|
|
133
|
+
* A string representing a recurrence rule (RRULE) for a recurring session, as defined in [iCalendar RFC 5545](https://icalendar.org/iCalendar-RFC-5545/3-3-10-recurrence-rule.html).
|
|
134
|
+
* If the session is an instance of a recurrence pattern, the `instanceOfRecurrence` property will be contain the recurrence rule and this property will be empty.
|
|
135
|
+
* The RRULE defines a rule for repeating a session.
|
|
136
|
+
* Supported parameters are:
|
|
137
|
+
*
|
|
138
|
+
* |Keyword|Description|Supported values|
|
|
139
|
+
* |--|--|---|
|
|
140
|
+
* |`FREQ`|The frequency at which the session is recurs. Required.|`WEEKLY`|
|
|
141
|
+
* |`INTERVAL`|How often, in terms of `FREQ`, the session recurs. Default is 1. Optional.|
|
|
142
|
+
* |`UNTIL`|The UTC end date and time of the recurrence. Optional.|
|
|
143
|
+
* |`BYDAY`|Day of the week when the event should recur. Required.|One of: `MO`, `TU`, `WE`, `TH`, `FR`, `SA`, `SU`|
|
|
144
|
+
*
|
|
145
|
+
*
|
|
146
|
+
* For example, a session that repeats every second week on a Monday until January 7, 2022 at 8 AM:
|
|
147
|
+
* `"FREQ=WEEKLY;INTERVAL=2;BYDAY=MO;UNTIL=20220107T080000Z"`
|
|
148
|
+
*
|
|
149
|
+
* <!--ORIGINAL COMMENTS:
|
|
150
|
+
* `FREQ` — The frequency with which the session should be repeated (such as DAILY or WEEKLY).
|
|
151
|
+
* Supported `WEEKLY` value is supported.
|
|
152
|
+
* INTERVAL — Works together with FREQ to specify how often the session should be repeated. For example, FREQ=WEEKLY;INTERVAL=2 means once every two weeks. Optional. Default value is 1.
|
|
153
|
+
* COUNT — The number of times this event should be repeated. Not yet supported.
|
|
154
|
+
* UNTIL — The UTC date & time until which the session should be repeated. This parameter is optional. When it is not specified, the event repeats forever.
|
|
155
|
+
* The format is a short ISO date, followed by 'T' and a short time with seconds and without milliseconds, terminated by the UTC designator 'Z'. For example, until Jan. 19th 2018 at 7:00 AM: 'UNTIL=20180119T070000Z'.
|
|
156
|
+
* BYDAY - The days of the week when the event should be repeated. Currently, only a single day is supported. This parameter is mandatory.
|
|
157
|
+
* Possible values are: MO, TU, WE, TH, FR, SA, SU
|
|
158
|
+
* Note that DTSTART and DTEND lines are not allowed in this field; session start and end times are specified in the start and end fields.
|
|
159
|
+
* **Example**: FREQ=WEEKLY;INTERVAL=2;BYDAY=MO;UNTIL=20200427T070000Z
|
|
160
|
+
* ORIGINAL COMMENTS-->
|
|
161
|
+
*/
|
|
162
|
+
recurrence?: string | null;
|
|
163
|
+
/**
|
|
164
|
+
* A string representing a recurrence rule (RRULE) if the session is an instance of a recurrence pattern.
|
|
165
|
+
* Empty when the session is not an instance of a recurrence rule, or if the session defines a recurrence pattern, and `recurrence` is not empty.
|
|
166
|
+
* @readonly
|
|
167
|
+
*/
|
|
168
|
+
instanceOfRecurrence?: string | null;
|
|
169
|
+
}
|
|
170
|
+
export interface CalendarDateTime {
|
|
171
|
+
/**
|
|
172
|
+
* UTC date-time in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#Coordinated_Universal_Time_(UTC)) format. If a timezone offset is specified, the time is converted to UTC. For example, if you specify `new Date('2021-01-06T16:00:00.000-07:00')`, the stored value will be `"2021-01-06T23:00:00.000Z"`.
|
|
173
|
+
* Required if `localDateTime` is not specified.
|
|
174
|
+
* If `localDateTime` is specified, `timestamp` is calculated as `localDateTime`, using the business's timezone.
|
|
175
|
+
*/
|
|
176
|
+
timestamp?: Date;
|
|
177
|
+
/** An object containing the local date and time for the business's timezone. */
|
|
178
|
+
localDateTime?: LocalDateTime;
|
|
179
|
+
/**
|
|
180
|
+
* The time zone. Optional. derived from the schedule.timezone.
|
|
181
|
+
* In case this field is associated with recurring session, this field is empty.
|
|
182
|
+
* @readonly
|
|
183
|
+
*/
|
|
184
|
+
timeZone?: string | null;
|
|
185
|
+
}
|
|
186
|
+
export interface LocalDateTime {
|
|
187
|
+
/** Year. 4-digit format. */
|
|
188
|
+
year?: number | null;
|
|
189
|
+
/** Month number, from 1-12. */
|
|
190
|
+
monthOfYear?: number | null;
|
|
191
|
+
/** Day of the month, from 1-31. */
|
|
192
|
+
dayOfMonth?: number | null;
|
|
193
|
+
/** Hour of the day in 24-hour format, from 0-23. */
|
|
194
|
+
hourOfDay?: number | null;
|
|
195
|
+
/** Minute, from 0-59. */
|
|
196
|
+
minutesOfHour?: number | null;
|
|
197
|
+
}
|
|
198
|
+
export interface LinkedSchedule {
|
|
199
|
+
/** Schedule ID. */
|
|
200
|
+
scheduleId?: string;
|
|
201
|
+
/**
|
|
202
|
+
* Sets this schedule's availability for the duration of the linked schedule's sessions. Default is `"BUSY"`.
|
|
203
|
+
* <!--ONLY:REST-->
|
|
204
|
+
* If set to `"BUSY"`, this schedule cannot have any available slots during the linked schedule's sessions.
|
|
205
|
+
* If set to `"FREE"`, this schedule can have available slots during the linked schedule's sessions.
|
|
206
|
+
* <!--END:ONLY:REST-->
|
|
207
|
+
*
|
|
208
|
+
* <!--ONLY:VELO
|
|
209
|
+
* One of:
|
|
210
|
+
* - `"FREE"` This schedule can have available slots during the linked schedule's sessions.
|
|
211
|
+
* - `"BUSY"` This schedule cannot have any available slots during the linked schedule's sessions.
|
|
212
|
+
* <!--END:ONLY:VELO-->
|
|
213
|
+
*/
|
|
214
|
+
transparency?: Transparency;
|
|
215
|
+
/**
|
|
216
|
+
* Owner ID, of the linked schedule.
|
|
217
|
+
* @readonly
|
|
218
|
+
*/
|
|
219
|
+
scheduleOwnerId?: string;
|
|
220
|
+
}
|
|
221
|
+
export declare enum Transparency {
|
|
222
|
+
UNDEFINED = "UNDEFINED",
|
|
223
|
+
/** The schedule can have available slots during the session. */
|
|
224
|
+
FREE = "FREE",
|
|
225
|
+
/** The schedule cannot have available slots during the session. Default value. */
|
|
226
|
+
BUSY = "BUSY"
|
|
227
|
+
}
|
|
228
|
+
export interface Location {
|
|
229
|
+
/**
|
|
230
|
+
* Location type.
|
|
231
|
+
* One of:
|
|
232
|
+
* - `"OWNER_BUSINESS"` The business address as set in the site’s general settings.
|
|
233
|
+
* - `"OWNER_CUSTOM"` The address as set when creating the service.
|
|
234
|
+
* - `"CUSTOM"` The address set for the individual session.
|
|
235
|
+
*/
|
|
236
|
+
locationType?: LocationType;
|
|
237
|
+
/** Free text address used when locationType is `OWNER_CUSTOM`. */
|
|
238
|
+
address?: string | null;
|
|
239
|
+
/** Custom address, used when locationType is `"OWNER_CUSTOM"`. Might be used when locationType is `"CUSTOM"` in case the owner sets a custom address for the session which is different from the default. */
|
|
240
|
+
customAddress?: Address;
|
|
241
|
+
/**
|
|
242
|
+
* Valid when `locationType` is `OWNER_BUSINESS`. Defaults to the business's location.
|
|
243
|
+
*
|
|
244
|
+
* `businessSchedule` is not supported by Wix Bookings
|
|
245
|
+
*/
|
|
246
|
+
businessLocation?: LocationsLocation;
|
|
247
|
+
}
|
|
248
|
+
export declare enum LocationType {
|
|
249
|
+
UNDEFINED = "UNDEFINED",
|
|
250
|
+
OWNER_BUSINESS = "OWNER_BUSINESS",
|
|
251
|
+
OWNER_CUSTOM = "OWNER_CUSTOM",
|
|
252
|
+
CUSTOM = "CUSTOM"
|
|
253
|
+
}
|
|
254
|
+
/** Physical address */
|
|
255
|
+
export interface Address extends AddressStreetOneOf {
|
|
256
|
+
/** Country code. */
|
|
257
|
+
country?: string | null;
|
|
258
|
+
/** Subdivision. Usually state, region, prefecture or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
|
|
259
|
+
subdivision?: string | null;
|
|
260
|
+
/** City name. */
|
|
261
|
+
city?: string | null;
|
|
262
|
+
/** Zip/postal code. */
|
|
263
|
+
postalCode?: string | null;
|
|
264
|
+
/** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */
|
|
265
|
+
addressLine2?: string | null;
|
|
266
|
+
/** A string containing the full address of this location. */
|
|
267
|
+
formattedAddress?: string | null;
|
|
268
|
+
/** Free text to help find the address. */
|
|
269
|
+
hint?: string | null;
|
|
270
|
+
/** Coordinates of the physical address. */
|
|
271
|
+
geocode?: AddressLocation;
|
|
272
|
+
/** Country full name. */
|
|
273
|
+
countryFullname?: string | null;
|
|
274
|
+
/** Multi-level subdivisions from top to bottom. */
|
|
275
|
+
subdivisions?: Subdivision[];
|
|
276
|
+
/** Street name, number and apartment number. */
|
|
277
|
+
streetAddress?: StreetAddress;
|
|
278
|
+
/** Main address line, usually street and number, as free text. */
|
|
279
|
+
addressLine?: string | null;
|
|
280
|
+
}
|
|
281
|
+
/** @oneof */
|
|
282
|
+
export interface AddressStreetOneOf {
|
|
283
|
+
/** Street name, number and apartment number. */
|
|
284
|
+
streetAddress?: StreetAddress;
|
|
285
|
+
/** Main address line, usually street and number, as free text. */
|
|
286
|
+
addressLine?: string | null;
|
|
287
|
+
}
|
|
288
|
+
export interface StreetAddress {
|
|
289
|
+
/** Street number. */
|
|
290
|
+
number?: string;
|
|
291
|
+
/** Street name. */
|
|
292
|
+
name?: string;
|
|
293
|
+
/** Apartment number. */
|
|
294
|
+
apt?: string;
|
|
295
|
+
}
|
|
296
|
+
export interface AddressLocation {
|
|
297
|
+
/** Address latitude. */
|
|
298
|
+
latitude?: number | null;
|
|
299
|
+
/** Address longitude. */
|
|
300
|
+
longitude?: number | null;
|
|
301
|
+
}
|
|
302
|
+
export interface Subdivision {
|
|
303
|
+
/** Subdivision code. Usually state, region, prefecture or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
|
|
304
|
+
code?: string;
|
|
305
|
+
/** Subdivision full name. */
|
|
306
|
+
name?: string;
|
|
307
|
+
}
|
|
308
|
+
export interface LocationsLocation {
|
|
309
|
+
/**
|
|
310
|
+
* Location ID.
|
|
311
|
+
* @readonly
|
|
312
|
+
*/
|
|
313
|
+
_id?: string | null;
|
|
314
|
+
/** Location name. */
|
|
315
|
+
name?: string;
|
|
316
|
+
/** Location description. */
|
|
317
|
+
description?: string | null;
|
|
318
|
+
/**
|
|
319
|
+
* Whether this is the default location. There can only be one default location per site. The default location can't be archived.
|
|
320
|
+
* @readonly
|
|
321
|
+
*/
|
|
322
|
+
default?: boolean;
|
|
323
|
+
/**
|
|
324
|
+
* Location status. Defaults to `ACTIVE`.
|
|
325
|
+
* __Note:__ [Archiving a location](https://dev.wix.com/api/rest/business-info/locations/archive-location)
|
|
326
|
+
* doesn't affect the location's status. `INACTIVE` is currently not supported.
|
|
327
|
+
*/
|
|
328
|
+
status?: LocationStatus;
|
|
329
|
+
/** Location type. **Note:** Currently not supported. */
|
|
330
|
+
locationType?: LocationsLocationType;
|
|
331
|
+
/** Fax number. */
|
|
332
|
+
fax?: string | null;
|
|
333
|
+
/** Timezone in `America/New_York` format. */
|
|
334
|
+
timeZone?: string | null;
|
|
335
|
+
/** Email address. */
|
|
336
|
+
email?: string | null;
|
|
337
|
+
/** Phone number. */
|
|
338
|
+
phone?: string | null;
|
|
339
|
+
/** Address. */
|
|
340
|
+
address?: LocationsAddress;
|
|
341
|
+
/**
|
|
342
|
+
* Business schedule. Array of weekly recurring time periods when the location is open for business. Limited to 100 time periods.
|
|
343
|
+
*
|
|
344
|
+
* __Note:__ Not supported by Wix Bookings.
|
|
345
|
+
*/
|
|
346
|
+
businessSchedule?: BusinessSchedule;
|
|
347
|
+
/**
|
|
348
|
+
* Revision number, which increments by 1 each time the location is updated.
|
|
349
|
+
* To prevent conflicting changes, the existing revision must be used when updating a location.
|
|
350
|
+
*/
|
|
351
|
+
revision?: string | null;
|
|
352
|
+
/**
|
|
353
|
+
* Whether the location is archived. Archived locations can't be updated.
|
|
354
|
+
* __Note:__ [Archiving a location](https://dev.wix.com/api/rest/business-info/locations/archive-location)
|
|
355
|
+
* doesn't affect its `status`.
|
|
356
|
+
* @readonly
|
|
357
|
+
*/
|
|
358
|
+
archived?: boolean;
|
|
359
|
+
}
|
|
360
|
+
/** For future use */
|
|
361
|
+
export declare enum LocationStatus {
|
|
362
|
+
ACTIVE = "ACTIVE",
|
|
363
|
+
INACTIVE = "INACTIVE"
|
|
364
|
+
}
|
|
365
|
+
/** For future use */
|
|
366
|
+
export declare enum LocationsLocationType {
|
|
367
|
+
UNKNOWN = "UNKNOWN",
|
|
368
|
+
BRANCH = "BRANCH",
|
|
369
|
+
OFFICES = "OFFICES",
|
|
370
|
+
RECEPTION = "RECEPTION",
|
|
371
|
+
HEADQUARTERS = "HEADQUARTERS"
|
|
372
|
+
}
|
|
373
|
+
export interface LocationsAddress {
|
|
374
|
+
/** 2-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */
|
|
375
|
+
country?: string | null;
|
|
376
|
+
/** Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format. */
|
|
377
|
+
subdivision?: string | null;
|
|
378
|
+
/** City name. */
|
|
379
|
+
city?: string | null;
|
|
380
|
+
/** Postal or zip code. */
|
|
381
|
+
postalCode?: string | null;
|
|
382
|
+
/** Street address. Includes street name, number, and apartment number in separate fields. */
|
|
383
|
+
streetAddress?: LocationsStreetAddress;
|
|
384
|
+
}
|
|
385
|
+
/** Street address. Includes street name, number, and apartment number in separate fields. */
|
|
386
|
+
export interface LocationsStreetAddress {
|
|
387
|
+
/** Street number. */
|
|
388
|
+
number?: string;
|
|
389
|
+
/** Street name. */
|
|
390
|
+
name?: string;
|
|
391
|
+
/** Apartment number. */
|
|
392
|
+
apt?: string;
|
|
393
|
+
}
|
|
394
|
+
/** Address Geolocation */
|
|
395
|
+
export interface LocationsAddressLocation {
|
|
396
|
+
/** Latitude of the location. Must be between -90 and 90. */
|
|
397
|
+
latitude?: number | null;
|
|
398
|
+
/** Longitude of the location. Must be between -180 and 180. */
|
|
399
|
+
longitude?: number | null;
|
|
400
|
+
}
|
|
401
|
+
/** Business schedule. Regular and exceptional time periods when the business is open or the service is available. */
|
|
402
|
+
export interface BusinessSchedule {
|
|
403
|
+
/** Weekly recurring time periods when the business is regularly open or the service is available. Limited to 100 time periods. */
|
|
404
|
+
periods?: TimePeriod[];
|
|
405
|
+
/** Exceptions to the business's regular hours. The business can be open or closed during the exception. */
|
|
406
|
+
specialHourPeriod?: SpecialHourPeriod[];
|
|
407
|
+
}
|
|
408
|
+
/** Weekly recurring time periods when the business is regularly open or the service is available. */
|
|
409
|
+
export interface TimePeriod {
|
|
410
|
+
/** Day of the week the period starts on. */
|
|
411
|
+
openDay?: DayOfWeek;
|
|
412
|
+
/**
|
|
413
|
+
* Time the period starts in 24-hour [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended format. Valid values are `00:00` to `24:00`, where `24:00` represents
|
|
414
|
+
* midnight at the end of the specified day.
|
|
415
|
+
*/
|
|
416
|
+
openTime?: string;
|
|
417
|
+
/** Day of the week the period ends on. */
|
|
418
|
+
closeDay?: DayOfWeek;
|
|
419
|
+
/**
|
|
420
|
+
* Time the period ends in 24-hour [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended format. Valid values are `00:00` to `24:00`, where `24:00` represents
|
|
421
|
+
* midnight at the end of the specified day.
|
|
422
|
+
*
|
|
423
|
+
* __Note:__ If `openDay` and `closeDay` specify the same day of the week `closeTime` must be later than `openTime`.
|
|
424
|
+
*/
|
|
425
|
+
closeTime?: string;
|
|
426
|
+
}
|
|
427
|
+
/** Enumerates the days of the week. */
|
|
428
|
+
export declare enum DayOfWeek {
|
|
429
|
+
MONDAY = "MONDAY",
|
|
430
|
+
TUESDAY = "TUESDAY",
|
|
431
|
+
WEDNESDAY = "WEDNESDAY",
|
|
432
|
+
THURSDAY = "THURSDAY",
|
|
433
|
+
FRIDAY = "FRIDAY",
|
|
434
|
+
SATURDAY = "SATURDAY",
|
|
435
|
+
SUNDAY = "SUNDAY"
|
|
436
|
+
}
|
|
437
|
+
/** Exception to the business's regular hours. The business can be open or closed during the exception. */
|
|
438
|
+
export interface SpecialHourPeriod {
|
|
439
|
+
/** Start date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */
|
|
440
|
+
startDate?: string;
|
|
441
|
+
/** End date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */
|
|
442
|
+
endDate?: string;
|
|
443
|
+
/**
|
|
444
|
+
* Whether the business is closed (or the service is not available) during the exception.
|
|
445
|
+
*
|
|
446
|
+
* Default: `true`.
|
|
447
|
+
*/
|
|
448
|
+
isClosed?: boolean;
|
|
449
|
+
/** Additional info about the exception. For example, "We close earlier on New Year's Eve." */
|
|
450
|
+
comment?: string;
|
|
451
|
+
}
|
|
452
|
+
export interface Rate {
|
|
453
|
+
/**
|
|
454
|
+
* Mapping between a named price option, for example, adult or child prices, and the price, currency, and down payment amount.
|
|
455
|
+
* When present in an update request, the `default_varied_price` is ignored to support backward compatibility.
|
|
456
|
+
*/
|
|
457
|
+
labeledPriceOptions?: Record<string, Price>;
|
|
458
|
+
/**
|
|
459
|
+
* Textual price information used when **Price Per Session** is set to **Custom Price** in the app's service details page.
|
|
460
|
+
* When present in an update request, the `default_varied_price` is ignored to support backward compatibility.
|
|
461
|
+
*/
|
|
462
|
+
priceText?: string | null;
|
|
463
|
+
}
|
|
464
|
+
export interface Price {
|
|
465
|
+
/** Required payment amount. */
|
|
466
|
+
amount?: string;
|
|
467
|
+
/** Currency in which the amount is quoted. */
|
|
468
|
+
currency?: string;
|
|
469
|
+
/** Amount of a down payment or deposit as part of the transaction. */
|
|
470
|
+
downPayAmount?: string;
|
|
471
|
+
}
|
|
472
|
+
export interface Participant {
|
|
473
|
+
/** Participant ID. Currently represents the booking.id. */
|
|
474
|
+
_id?: string;
|
|
475
|
+
/** Contact ID. */
|
|
476
|
+
contactId?: string | null;
|
|
477
|
+
/** Participant's name. */
|
|
478
|
+
name?: string | null;
|
|
479
|
+
/** Participant's phone number. */
|
|
480
|
+
phone?: string | null;
|
|
481
|
+
/** Participant's email address. */
|
|
482
|
+
email?: string | null;
|
|
483
|
+
/** Group or party size. The number of people attending. Defaults to 0. Maximum is 250. */
|
|
484
|
+
partySize?: number;
|
|
485
|
+
/**
|
|
486
|
+
* Approval status for the participant.
|
|
487
|
+
* <!-- Commented out untill updateParticipant is exposed Generally the same status as the booking, unless updated using the `updateParticipant()` API. Defaults to `"UNDEFINED"`.-->
|
|
488
|
+
* <!--ONLY:VELO
|
|
489
|
+
* One of:
|
|
490
|
+
* - `"PENDING"` Pending business approval.
|
|
491
|
+
* - `"APPROVED"` Approved by the business.
|
|
492
|
+
* - `"DECLINED"` Declined by the business.
|
|
493
|
+
* <!--END:ONLY:VELO-->
|
|
494
|
+
*/
|
|
495
|
+
approvalStatus?: ApprovalStatus;
|
|
496
|
+
/**
|
|
497
|
+
* Whether the participant was inherited from the schedule, as opposed to being booked directly to the session.
|
|
498
|
+
* @readonly
|
|
499
|
+
*/
|
|
500
|
+
inherited?: boolean;
|
|
501
|
+
}
|
|
502
|
+
export declare enum ApprovalStatus {
|
|
503
|
+
/** Default. */
|
|
504
|
+
UNDEFINED = "UNDEFINED",
|
|
505
|
+
/** Pending business approval. */
|
|
506
|
+
PENDING = "PENDING",
|
|
507
|
+
/** Approved by the business. */
|
|
508
|
+
APPROVED = "APPROVED",
|
|
509
|
+
/** Declined by the business. */
|
|
510
|
+
DECLINED = "DECLINED"
|
|
511
|
+
}
|
|
512
|
+
export interface ExternalCalendarInfo {
|
|
513
|
+
/** The external calendar type (e.g. Google Calendar, iCal, etc). */
|
|
514
|
+
calendarType?: CalendarType;
|
|
515
|
+
}
|
|
516
|
+
export declare enum CalendarType {
|
|
517
|
+
UNDEFINED = "UNDEFINED",
|
|
518
|
+
GOOGLE = "GOOGLE",
|
|
519
|
+
I_CAL = "I_CAL",
|
|
520
|
+
/** use MICROSOFT */
|
|
521
|
+
OUTLOOK = "OUTLOOK",
|
|
522
|
+
/** use MICROSOFT */
|
|
523
|
+
OFFICE_365 = "OFFICE_365",
|
|
524
|
+
MICROSOFT = "MICROSOFT",
|
|
525
|
+
OTHER = "OTHER"
|
|
526
|
+
}
|
|
527
|
+
export interface ExternalCalendarOverrides {
|
|
528
|
+
/** Synced title of the external calendar event. */
|
|
529
|
+
title?: string | null;
|
|
530
|
+
/** Synced description of the external calendar event. */
|
|
531
|
+
description?: string | null;
|
|
532
|
+
}
|
|
533
|
+
export declare enum Status {
|
|
534
|
+
UNDEFINED = "UNDEFINED",
|
|
535
|
+
/** The session is confirmed. Default status. */
|
|
536
|
+
CONFIRMED = "CONFIRMED",
|
|
537
|
+
/**
|
|
538
|
+
* The session is cancelled.
|
|
539
|
+
* A cancelled session can be the cancellation of a recurring session that should no longer be displayed or a deleted single session.
|
|
540
|
+
* The ListSessions returns cancelled sessions only if 'includeDelete' flag is set to true.
|
|
541
|
+
*/
|
|
542
|
+
CANCELLED = "CANCELLED"
|
|
543
|
+
}
|
|
544
|
+
export declare enum SessionType {
|
|
545
|
+
UNDEFINED = "UNDEFINED",
|
|
546
|
+
/**
|
|
547
|
+
* The session creates an event on the calendar for the owner of the schedule that the session belongs to.
|
|
548
|
+
* Default type.
|
|
549
|
+
*/
|
|
550
|
+
EVENT = "EVENT",
|
|
551
|
+
/** The session represents a resource's available working hours. */
|
|
552
|
+
WORKING_HOURS = "WORKING_HOURS",
|
|
553
|
+
/** Deprecated. please use WORKING_HOURS */
|
|
554
|
+
TIME_AVAILABILITY = "TIME_AVAILABILITY",
|
|
555
|
+
/** Deprecated. The session represents a resource's available hours. please use WORKING_HOURS */
|
|
556
|
+
AVAILABILITY = "AVAILABILITY"
|
|
557
|
+
}
|
|
558
|
+
export interface CalendarConference {
|
|
559
|
+
/** Wix Calendar conference ID. */
|
|
560
|
+
_id?: string;
|
|
561
|
+
/** Conference meeting ID in the provider's conferencing system. */
|
|
562
|
+
externalId?: string;
|
|
563
|
+
/** Conference provider ID. */
|
|
564
|
+
providerId?: string;
|
|
565
|
+
/** URL used by the host to start the conference. */
|
|
566
|
+
hostUrl?: string;
|
|
567
|
+
/** URL used by a guest to join the conference. */
|
|
568
|
+
guestUrl?: string;
|
|
569
|
+
/** Password to join the conference. */
|
|
570
|
+
password?: string | null;
|
|
571
|
+
/** Conference description. */
|
|
572
|
+
description?: string | null;
|
|
573
|
+
/**
|
|
574
|
+
* Conference type.
|
|
575
|
+
* <!--ONLY:VELO
|
|
576
|
+
* One of:
|
|
577
|
+
* - `"ONLINE_MEETING_PROVIDER"` API-generated online meeting.
|
|
578
|
+
* - `"CUSTOM"` User-defined meeting.
|
|
579
|
+
* <!--END:ONLY:VELO-->
|
|
580
|
+
*/
|
|
581
|
+
conferenceType?: ConferenceType;
|
|
582
|
+
/** Account owner id in vc service */
|
|
583
|
+
accountOwnerId?: string | null;
|
|
584
|
+
}
|
|
585
|
+
export declare enum ConferenceType {
|
|
586
|
+
UNDEFINED = "UNDEFINED",
|
|
587
|
+
/** API-generated online meeting. */
|
|
588
|
+
ONLINE_MEETING_PROVIDER = "ONLINE_MEETING_PROVIDER",
|
|
589
|
+
/** User-defined meeting. */
|
|
590
|
+
CUSTOM = "CUSTOM"
|
|
591
|
+
}
|
|
592
|
+
export interface Version {
|
|
593
|
+
/** Schedule version number, updated each time the schedule is updated. */
|
|
594
|
+
scheduleVersion?: number;
|
|
595
|
+
/** Session version number, updated each time the session is updated. */
|
|
596
|
+
sessionVersion?: number;
|
|
597
|
+
}
|
|
598
|
+
export interface CreateSessionRequest {
|
|
599
|
+
/** The session to create. */
|
|
600
|
+
session?: Session;
|
|
601
|
+
}
|
|
602
|
+
export interface CreateSessionResponse {
|
|
603
|
+
/** The created session. */
|
|
604
|
+
session?: Session;
|
|
605
|
+
}
|
|
606
|
+
export interface UpdateSessionRequest {
|
|
607
|
+
/** The session to update. */
|
|
608
|
+
session?: Session;
|
|
609
|
+
/** Field mask of fields to update. */
|
|
610
|
+
fieldmask?: string[];
|
|
611
|
+
/** Whether to notify participants about the change, and an optional custom message. */
|
|
612
|
+
participantNotification?: ParticipantNotification;
|
|
613
|
+
}
|
|
614
|
+
export interface ParticipantNotification {
|
|
615
|
+
/**
|
|
616
|
+
* Whether to send the message about the changes to the customer.
|
|
617
|
+
*
|
|
618
|
+
* Default: `false`
|
|
619
|
+
*/
|
|
620
|
+
notifyParticipants?: boolean;
|
|
621
|
+
/** Custom message to send to the participants about the changes to the booking. */
|
|
622
|
+
message?: string | null;
|
|
623
|
+
}
|
|
624
|
+
export interface UpdateSessionResponse {
|
|
625
|
+
/** The updated session. */
|
|
626
|
+
session?: Session;
|
|
627
|
+
}
|
|
628
|
+
export interface DeleteSessionRequest {
|
|
629
|
+
/** The ID of the session to delete. */
|
|
630
|
+
sessionId?: string | null;
|
|
631
|
+
/** Whether to notify participants about the change, and an optional custom message. */
|
|
632
|
+
participantNotification?: ParticipantNotification;
|
|
633
|
+
}
|
|
634
|
+
export interface DeleteSessionResponse {
|
|
635
|
+
}
|
|
636
|
+
export interface QuerySessionsRequest {
|
|
637
|
+
/**
|
|
638
|
+
* Required, unless `instance` is `false` or `query.cursorPaging` is provided.
|
|
639
|
+
* Start of the time range for which sessions are returned,
|
|
640
|
+
* in [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601#Coordinated_Universal_Time_(UTC)).
|
|
641
|
+
*
|
|
642
|
+
* Sessions that begin before the `fromDate` but end after it are included in the results.
|
|
643
|
+
*/
|
|
644
|
+
fromDate?: Date;
|
|
645
|
+
/**
|
|
646
|
+
* Required, unless `instance` is `false` or `query.cursorPaging` is provided.
|
|
647
|
+
* End of the time range for which sessions are returned,
|
|
648
|
+
* in [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601#Coordinated_Universal_Time_(UTC)).
|
|
649
|
+
*
|
|
650
|
+
* Sessions that begin before the `toDate` but end after it are included in the results.
|
|
651
|
+
*
|
|
652
|
+
* Max: 1 year after `fromDate`.
|
|
653
|
+
*/
|
|
654
|
+
toDate?: Date;
|
|
655
|
+
/** Query options. */
|
|
656
|
+
query?: QueryV2;
|
|
657
|
+
/**
|
|
658
|
+
* Type of sessions to return.
|
|
659
|
+
*
|
|
660
|
+
* Default: `UNDEFINED`. This returns sessions of all types.
|
|
661
|
+
*/
|
|
662
|
+
type?: SessionType;
|
|
663
|
+
/**
|
|
664
|
+
* Whether to return only single sessions and individual instances of recurring sessions.
|
|
665
|
+
* To query for recurring session pattern definitions, set to `false`.
|
|
666
|
+
*
|
|
667
|
+
* Default: `true`.
|
|
668
|
+
*/
|
|
669
|
+
instance?: boolean | null;
|
|
670
|
+
}
|
|
671
|
+
export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
672
|
+
/**
|
|
673
|
+
* Filter object. For field support for filters, see
|
|
674
|
+
* [Sessions: Supported Filters](./filtering).
|
|
675
|
+
* See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more information about querying with filters.
|
|
676
|
+
*/
|
|
677
|
+
filter?: Record<string, any> | null;
|
|
678
|
+
/**
|
|
679
|
+
* Predefined sets of fields to return.
|
|
680
|
+
* - `NO_PI`: Returns session objects without personal information.
|
|
681
|
+
* - `ALL_PI`: Returns complete session objects, including personal information. Requires the CALENDAR.SESSION_READ_PI permission scope.
|
|
682
|
+
*
|
|
683
|
+
* Default: `NO_PI`
|
|
684
|
+
*/
|
|
685
|
+
fieldsets?: string[];
|
|
686
|
+
/**
|
|
687
|
+
* Cursor token pointing to a page of results.
|
|
688
|
+
* Not used in the first request.
|
|
689
|
+
* Following requests use the cursor token and not `filter`.
|
|
690
|
+
*/
|
|
691
|
+
cursorPaging?: CursorPaging;
|
|
692
|
+
}
|
|
693
|
+
/** @oneof */
|
|
694
|
+
export interface QueryV2PagingMethodOneOf {
|
|
695
|
+
/**
|
|
696
|
+
* Cursor token pointing to a page of results.
|
|
697
|
+
* Not used in the first request.
|
|
698
|
+
* Following requests use the cursor token and not `filter`.
|
|
699
|
+
*/
|
|
700
|
+
cursorPaging?: CursorPaging;
|
|
701
|
+
}
|
|
702
|
+
export interface CursorPaging {
|
|
703
|
+
/**
|
|
704
|
+
* Number of sessions to return.
|
|
705
|
+
*
|
|
706
|
+
* Default: `50`
|
|
707
|
+
* Max: `1000`
|
|
708
|
+
*/
|
|
709
|
+
limit?: number | null;
|
|
710
|
+
/**
|
|
711
|
+
* Pointer to the next or previous page in the list of results.
|
|
712
|
+
*
|
|
713
|
+
* You can get the relevant cursor token
|
|
714
|
+
* from the `pagingMetadata` object in the previous call's response.
|
|
715
|
+
* Not relevant for the first request.
|
|
716
|
+
*/
|
|
717
|
+
cursor?: string | null;
|
|
718
|
+
}
|
|
719
|
+
export interface QuerySessionsResponse {
|
|
720
|
+
/** List of sessions matching the query. */
|
|
721
|
+
sessions?: Session[];
|
|
722
|
+
/** Paging metadata. */
|
|
723
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
724
|
+
}
|
|
725
|
+
/** This is the preferred message for cursor-paging enabled services */
|
|
726
|
+
export interface CursorPagingMetadata {
|
|
727
|
+
/** Number of sessions returned in the response. */
|
|
728
|
+
count?: number | null;
|
|
729
|
+
/** Cursors to navigate through the result pages. */
|
|
730
|
+
cursors?: Cursors;
|
|
731
|
+
/**
|
|
732
|
+
* Indicates if there are more results after the current page.
|
|
733
|
+
* If `true`, another page of results can be retrieved.
|
|
734
|
+
* If `false`, this is the last page.
|
|
735
|
+
*/
|
|
736
|
+
hasNext?: boolean | null;
|
|
737
|
+
}
|
|
738
|
+
export interface Cursors {
|
|
739
|
+
/** Cursor pointing to next page in the list of results. */
|
|
740
|
+
next?: string | null;
|
|
741
|
+
}
|
|
742
|
+
export interface GetSessionRequest {
|
|
743
|
+
/** ID of the session to retrieve. */
|
|
744
|
+
_id: string | null;
|
|
745
|
+
/**
|
|
746
|
+
* Supported values: `ALL_PI`.
|
|
747
|
+
*
|
|
748
|
+
* Predefined sets of fields to return.
|
|
749
|
+
*
|
|
750
|
+
* - `ALL_PI`: Returns complete session object.
|
|
751
|
+
*
|
|
752
|
+
* If you don't pass a value in the `fieldsets` array, session object without
|
|
753
|
+
* personal information is returned by default. This means without `participants`,
|
|
754
|
+
* `location`, `calendarConference`, and `externalCalendarOverrides`.
|
|
755
|
+
*/
|
|
756
|
+
fieldsets?: string[];
|
|
757
|
+
}
|
|
758
|
+
export interface GetSessionResponse {
|
|
759
|
+
/** Retrieved session. */
|
|
760
|
+
session?: Session;
|
|
761
|
+
}
|
|
762
|
+
export interface ListSessionsRequest {
|
|
763
|
+
/** IDs of the sessions to retrieve. */
|
|
764
|
+
ids: string[] | null;
|
|
765
|
+
/**
|
|
766
|
+
* Supported values: `ALL_PI`.
|
|
767
|
+
*
|
|
768
|
+
* Predefined sets of fields to return.
|
|
769
|
+
*
|
|
770
|
+
* - `ALL_PI`: Returns complete session objects.
|
|
771
|
+
*
|
|
772
|
+
* If you don't pass a value in the `fieldsets` array, session objects without
|
|
773
|
+
* personal information are returned by default. This means without `participants`,
|
|
774
|
+
* `location`, `calendarConference`, and `externalCalendarOverrides`.
|
|
775
|
+
*/
|
|
776
|
+
fieldsets?: string[];
|
|
777
|
+
}
|
|
778
|
+
export interface ListSessionsResponse {
|
|
779
|
+
/** Retrieved sessions. */
|
|
780
|
+
sessions?: Session[];
|
|
781
|
+
}
|
|
782
|
+
export interface QueryEventSessionInstancesRequest {
|
|
783
|
+
/**
|
|
784
|
+
* Start of the time range for which sessions are returned
|
|
785
|
+
* in [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601#Coordinated_Universal_Time_(UTC)).
|
|
786
|
+
* Required, if `query.cursorPaging` is omitted.
|
|
787
|
+
* `end.timestamp` of all returned sessions is greater than or equal to `fromDate`.
|
|
788
|
+
*/
|
|
789
|
+
fromDate?: Date;
|
|
790
|
+
/**
|
|
791
|
+
* End of the time range for which sessions are returned
|
|
792
|
+
* in [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601#Coordinated_Universal_Time_(UTC)).
|
|
793
|
+
* Required, if `query.cursorPaging` is omitted.
|
|
794
|
+
* `start.timestamp` of all returned sessions is less than or equal to `toDate`.
|
|
795
|
+
*/
|
|
796
|
+
toDate?: Date;
|
|
797
|
+
/** Information about filters, paging, and returned fields. */
|
|
798
|
+
query?: CommonQueryV2;
|
|
799
|
+
}
|
|
800
|
+
export interface CommonQueryV2 extends CommonQueryV2PagingMethodOneOf {
|
|
801
|
+
/**
|
|
802
|
+
* Filter object.
|
|
803
|
+
* See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)
|
|
804
|
+
* for more information.
|
|
805
|
+
*
|
|
806
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`.
|
|
807
|
+
*
|
|
808
|
+
* For a detailed list of supported filters, see
|
|
809
|
+
* [Supported Filters](https://dev.wix.com/api/rest/wix-bookings/calendar-v2/filters).
|
|
810
|
+
*/
|
|
811
|
+
filter?: Record<string, any> | null;
|
|
812
|
+
/**
|
|
813
|
+
* Supported values: `ALL_PI`.
|
|
814
|
+
*
|
|
815
|
+
* Predefined sets of fields to return.
|
|
816
|
+
*
|
|
817
|
+
* - `ALL_PI`: Returns complete session objects.
|
|
818
|
+
*
|
|
819
|
+
* If you don't pass a value in the `fieldsets` array, session objects without
|
|
820
|
+
* personal information are returned by default. This means without `participants`,
|
|
821
|
+
* `location`, `calendarConference`, and `externalCalendarOverrides`.
|
|
822
|
+
*/
|
|
823
|
+
fieldsets?: string[];
|
|
824
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `query.filter`. */
|
|
825
|
+
cursorPaging?: CommonCursorPaging;
|
|
826
|
+
}
|
|
827
|
+
/** @oneof */
|
|
828
|
+
export interface CommonQueryV2PagingMethodOneOf {
|
|
829
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `query.filter`. */
|
|
830
|
+
cursorPaging?: CommonCursorPaging;
|
|
831
|
+
}
|
|
832
|
+
export interface CommonCursorPaging {
|
|
833
|
+
/**
|
|
834
|
+
* Number of sessions to return.
|
|
835
|
+
* Defaults to `50`. Maximum `1000`.
|
|
836
|
+
*/
|
|
837
|
+
limit?: number | null;
|
|
838
|
+
/**
|
|
839
|
+
* Pointer to the next or previous page in the list of results.
|
|
840
|
+
*
|
|
841
|
+
* You can get the relevant cursor token
|
|
842
|
+
* from the `pagingMetadata` object in the previous call's response.
|
|
843
|
+
* Not relevant for the first request.
|
|
844
|
+
*/
|
|
845
|
+
cursor?: string | null;
|
|
846
|
+
}
|
|
847
|
+
export interface QueryEventSessionInstancesResponse {
|
|
848
|
+
/** Retrieved sessions. */
|
|
849
|
+
sessions?: Session[];
|
|
850
|
+
/** Paging metadata. */
|
|
851
|
+
pagingMetadata?: PagingMetadataV2;
|
|
852
|
+
}
|
|
853
|
+
export interface PagingMetadataV2 {
|
|
854
|
+
/** Number of items returned in the response. */
|
|
855
|
+
count?: number | null;
|
|
856
|
+
/** Offset that was requested. */
|
|
857
|
+
offset?: number | null;
|
|
858
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
859
|
+
total?: number | null;
|
|
860
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
861
|
+
tooManyToCount?: boolean | null;
|
|
862
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
863
|
+
cursors?: CommonCursors;
|
|
864
|
+
}
|
|
865
|
+
export interface CommonCursors {
|
|
866
|
+
/** Cursor pointing to next page in the list of results. */
|
|
867
|
+
next?: string | null;
|
|
868
|
+
/** Cursor pointing to previous page in the list of results. */
|
|
869
|
+
prev?: string | null;
|
|
870
|
+
}
|
|
871
|
+
export interface V2QuerySessionsRequest {
|
|
872
|
+
/**
|
|
873
|
+
* Start of the time range for which sessions are returned
|
|
874
|
+
* in [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601#Coordinated_Universal_Time_(UTC)).
|
|
875
|
+
* Required, if `query.cursorPaging` is omitted.
|
|
876
|
+
* `end.timestamp` of all returned sessions is greater than or equal to `fromDate`.
|
|
877
|
+
*/
|
|
878
|
+
fromDate?: Date;
|
|
879
|
+
/**
|
|
880
|
+
* End of the time range for which sessions are returned
|
|
881
|
+
* in [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601#Coordinated_Universal_Time_(UTC)).
|
|
882
|
+
* Required, if `query.cursorPaging` is omitted.
|
|
883
|
+
* `start.timestamp` of all returned sessions is less than or equal to `toDate`.
|
|
884
|
+
*/
|
|
885
|
+
toDate?: Date;
|
|
886
|
+
/** Information about filters, paging, and returned fields. */
|
|
887
|
+
query?: CommonQueryV2;
|
|
888
|
+
}
|
|
889
|
+
export interface V2QuerySessionsResponse {
|
|
890
|
+
/** Retrieved sessions. */
|
|
891
|
+
sessions?: Session[];
|
|
892
|
+
/** Paging metadata. */
|
|
893
|
+
pagingMetadata?: PagingMetadataV2;
|
|
894
|
+
}
|
|
895
|
+
export interface CacheRequest {
|
|
896
|
+
fromDate?: Date;
|
|
897
|
+
}
|
|
898
|
+
export interface CacheResponse {
|
|
899
|
+
cacheInfo?: CacheInfo;
|
|
900
|
+
}
|
|
901
|
+
export interface CacheInfo {
|
|
902
|
+
status?: CacheInfoStatus;
|
|
903
|
+
fromDate?: Date;
|
|
904
|
+
toDate?: Date;
|
|
905
|
+
feedReplayId?: string | null;
|
|
906
|
+
sessionCount?: number | null;
|
|
907
|
+
cachedDate?: Date;
|
|
908
|
+
}
|
|
909
|
+
export declare enum CacheInfoStatus {
|
|
910
|
+
UNDEFINED = "UNDEFINED",
|
|
911
|
+
INACTIVE = "INACTIVE",
|
|
912
|
+
IN_PROGRESS = "IN_PROGRESS",
|
|
913
|
+
ACTIVE = "ACTIVE"
|
|
914
|
+
}
|
|
915
|
+
export interface UncacheRequest {
|
|
916
|
+
}
|
|
917
|
+
export interface UncacheResponse {
|
|
918
|
+
}
|
|
919
|
+
export interface ShortenCacheRequest {
|
|
920
|
+
/**
|
|
921
|
+
* The new cache from date to set.
|
|
922
|
+
* Must be after than the current from date.
|
|
923
|
+
*/
|
|
924
|
+
fromDate?: Date;
|
|
925
|
+
}
|
|
926
|
+
export interface ShortenCacheResponse {
|
|
927
|
+
/** The updated cache. */
|
|
928
|
+
cacheInfo?: CacheInfo;
|
|
929
|
+
}
|
|
930
|
+
export interface GetCacheInfoRequest {
|
|
931
|
+
includeSessionCount?: boolean | null;
|
|
932
|
+
}
|
|
933
|
+
export interface GetCacheInfoResponse {
|
|
934
|
+
cacheInfo?: CacheInfo;
|
|
935
|
+
}
|
|
936
|
+
export interface FeedEvent extends FeedEventTypeOneOf {
|
|
937
|
+
/** Session has been added or updated within the feed window. */
|
|
938
|
+
sessionAddedOrUpdated?: SessionAddedOrUpdated;
|
|
939
|
+
/** Session has been removed from the feed. */
|
|
940
|
+
sessionRemoved?: SessionRemoved;
|
|
941
|
+
/** The feed window has been extended. */
|
|
942
|
+
windowExtended?: WindowExtended;
|
|
943
|
+
/** Deprecated. Please use `window_extended` instead. */
|
|
944
|
+
windowMoved?: WindowMoved;
|
|
945
|
+
}
|
|
946
|
+
/** @oneof */
|
|
947
|
+
export interface FeedEventTypeOneOf {
|
|
948
|
+
/** Session has been added or updated within the feed window. */
|
|
949
|
+
sessionAddedOrUpdated?: SessionAddedOrUpdated;
|
|
950
|
+
/** Session has been removed from the feed. */
|
|
951
|
+
sessionRemoved?: SessionRemoved;
|
|
952
|
+
/** The feed window has been extended. */
|
|
953
|
+
windowExtended?: WindowExtended;
|
|
954
|
+
/** Deprecated. Please use `window_extended` instead. */
|
|
955
|
+
windowMoved?: WindowMoved;
|
|
956
|
+
}
|
|
957
|
+
export interface SessionAddedOrUpdated {
|
|
958
|
+
/** The session which was added or updated within the feed window. */
|
|
959
|
+
session?: Session;
|
|
960
|
+
/** The feed session version. */
|
|
961
|
+
sessionVersion?: string | null;
|
|
962
|
+
/** The session previous affected schedule ids. */
|
|
963
|
+
previousAffectedScheduleIds?: string[] | null;
|
|
964
|
+
}
|
|
965
|
+
export interface SessionRemoved {
|
|
966
|
+
/** The removed session id. */
|
|
967
|
+
sessionId?: string | null;
|
|
968
|
+
/** The feed session version. */
|
|
969
|
+
sessionVersion?: string | null;
|
|
970
|
+
/** The schedule id of the removed session. */
|
|
971
|
+
scheduleId?: string | null;
|
|
972
|
+
/** The affected schedule ids of the removed session. */
|
|
973
|
+
affectedScheduleIds?: string[] | null;
|
|
974
|
+
}
|
|
975
|
+
export interface WindowExtended {
|
|
976
|
+
/** The updated window end date. */
|
|
977
|
+
windowEndDate?: Date;
|
|
978
|
+
}
|
|
979
|
+
/** Deprecated. Please use `window_extended` instead. */
|
|
980
|
+
export interface WindowMoved {
|
|
981
|
+
/** The updated window edge. */
|
|
982
|
+
edge?: Date;
|
|
983
|
+
/** The window version. */
|
|
984
|
+
windowVersion?: number | null;
|
|
985
|
+
}
|
|
986
|
+
export interface Empty {
|
|
987
|
+
}
|
|
988
|
+
export interface FeedReplayEvent extends FeedReplayEventTypeOneOf {
|
|
989
|
+
replayId?: string | null;
|
|
990
|
+
/** Session has been added within the feed window. */
|
|
991
|
+
sessionAdded?: SessionAdded;
|
|
992
|
+
/** Sessions replay completed. */
|
|
993
|
+
replayCompleted?: ReplayCompleted;
|
|
994
|
+
}
|
|
995
|
+
/** @oneof */
|
|
996
|
+
export interface FeedReplayEventTypeOneOf {
|
|
997
|
+
/** Session has been added within the feed window. */
|
|
998
|
+
sessionAdded?: SessionAdded;
|
|
999
|
+
/** Sessions replay completed. */
|
|
1000
|
+
replayCompleted?: ReplayCompleted;
|
|
1001
|
+
}
|
|
1002
|
+
export interface SessionAdded {
|
|
1003
|
+
/** The session which was added within the feed window. */
|
|
1004
|
+
session?: Session;
|
|
1005
|
+
/** The feed session version. */
|
|
1006
|
+
sessionVersion?: string | null;
|
|
1007
|
+
}
|
|
1008
|
+
export interface ReplayCompleted {
|
|
1009
|
+
/** The (minimum) number of sessions that were replayed. */
|
|
1010
|
+
totalSessions?: number | null;
|
|
1011
|
+
}
|
|
1012
|
+
/**
|
|
1013
|
+
* Retrieves a list of sessions, given the provided time range, filtering, and paging.
|
|
1014
|
+
*
|
|
1015
|
+
* Query Sessions runs with these defaults, which you can override:
|
|
1016
|
+
* - All session types are returned.
|
|
1017
|
+
* - `instance` is true. This means only single sessions and instances of recurring sessions are returned.
|
|
1018
|
+
* - Session objects are returned with the fields specified in the `NO_PI` fieldset. This means they don't contain personal information.
|
|
1019
|
+
* - `query.cursorPaging.limit` is `50`.
|
|
1020
|
+
*
|
|
1021
|
+
* Note the following limitations, which you can't override:
|
|
1022
|
+
* - Sessions are always sorted by `start.timestamp` in `ASC` order.
|
|
1023
|
+
* - The maximum time range you can query is 1 year.
|
|
1024
|
+
*
|
|
1025
|
+
* To query only for events, set `type` to `EVENT`. An event is a single or recurring session that appears in a calendar, for example an appointment or a class.
|
|
1026
|
+
*
|
|
1027
|
+
* To query for recurring session pattern definitions, set `instance` to `false`. In this case, you don't need to specify a time range.
|
|
1028
|
+
*
|
|
1029
|
+
* To return session objects including personal information, use the `ALL_PI` fieldset. This requires the CALENDAR.SESSION_READ_PI permission scope.
|
|
1030
|
+
*
|
|
1031
|
+
* For details on fieldsets, see [Sessions: Supported Fieldsets](#fieldsets).
|
|
1032
|
+
*
|
|
1033
|
+
* For field support for filters, see [Sessions: Supported Filters](#filtering).
|
|
1034
|
+
*
|
|
1035
|
+
* To learn about working with _Query_ endpoints in general, see
|
|
1036
|
+
* [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) and
|
|
1037
|
+
* [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
|
|
1038
|
+
* @public
|
|
1039
|
+
* @documentationMaturity preview
|
|
1040
|
+
*/
|
|
1041
|
+
export declare function querySessions(options?: QuerySessionsOptions): Promise<QuerySessionsResponse>;
|
|
1042
|
+
export interface QuerySessionsOptions {
|
|
1043
|
+
/**
|
|
1044
|
+
* Required, unless `instance` is `false` or `query.cursorPaging` is provided.
|
|
1045
|
+
* Start of the time range for which sessions are returned,
|
|
1046
|
+
* in [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601#Coordinated_Universal_Time_(UTC)).
|
|
1047
|
+
*
|
|
1048
|
+
* Sessions that begin before the `fromDate` but end after it are included in the results.
|
|
1049
|
+
*/
|
|
1050
|
+
fromDate?: Date;
|
|
1051
|
+
/**
|
|
1052
|
+
* Required, unless `instance` is `false` or `query.cursorPaging` is provided.
|
|
1053
|
+
* End of the time range for which sessions are returned,
|
|
1054
|
+
* in [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601#Coordinated_Universal_Time_(UTC)).
|
|
1055
|
+
*
|
|
1056
|
+
* Sessions that begin before the `toDate` but end after it are included in the results.
|
|
1057
|
+
*
|
|
1058
|
+
* Max: 1 year after `fromDate`.
|
|
1059
|
+
*/
|
|
1060
|
+
toDate?: Date;
|
|
1061
|
+
/** Query options. */
|
|
1062
|
+
query?: QueryV2;
|
|
1063
|
+
/**
|
|
1064
|
+
* Type of sessions to return.
|
|
1065
|
+
*
|
|
1066
|
+
* Default: `UNDEFINED`. This returns sessions of all types.
|
|
1067
|
+
*/
|
|
1068
|
+
type?: SessionType;
|
|
1069
|
+
/**
|
|
1070
|
+
* Whether to return only single sessions and individual instances of recurring sessions.
|
|
1071
|
+
* To query for recurring session pattern definitions, set to `false`.
|
|
1072
|
+
*
|
|
1073
|
+
* Default: `true`.
|
|
1074
|
+
*/
|
|
1075
|
+
instance?: boolean | null;
|
|
1076
|
+
}
|
|
1077
|
+
/**
|
|
1078
|
+
* Retrieves a session by ID.
|
|
1079
|
+
*
|
|
1080
|
+
*
|
|
1081
|
+
* By default session object without any personal information is returned.
|
|
1082
|
+
* This means without `participants`, `location`, `calendarConference`, and
|
|
1083
|
+
* `externalCalendarOverrides`. You can retrieve full session object by passing
|
|
1084
|
+
* `ALL_PI` in the `fieldsets` array. It isn't possible to retrieve sessions
|
|
1085
|
+
* with personal information just for specific participants.
|
|
1086
|
+
* @param _id - ID of the session to retrieve.
|
|
1087
|
+
* @public
|
|
1088
|
+
* @documentationMaturity preview
|
|
1089
|
+
* @requiredField _id
|
|
1090
|
+
* @returns Retrieved session.
|
|
1091
|
+
*/
|
|
1092
|
+
export declare function getSession(_id: string | null, options?: GetSessionOptions): Promise<Session>;
|
|
1093
|
+
export interface GetSessionOptions {
|
|
1094
|
+
/**
|
|
1095
|
+
* Supported values: `ALL_PI`.
|
|
1096
|
+
*
|
|
1097
|
+
* Predefined sets of fields to return.
|
|
1098
|
+
*
|
|
1099
|
+
* - `ALL_PI`: Returns complete session object.
|
|
1100
|
+
*
|
|
1101
|
+
* If you don't pass a value in the `fieldsets` array, session object without
|
|
1102
|
+
* personal information is returned by default. This means without `participants`,
|
|
1103
|
+
* `location`, `calendarConference`, and `externalCalendarOverrides`.
|
|
1104
|
+
*/
|
|
1105
|
+
fieldsets?: string[];
|
|
1106
|
+
}
|
|
1107
|
+
/**
|
|
1108
|
+
* Retrieves a list of sessions.
|
|
1109
|
+
*
|
|
1110
|
+
*
|
|
1111
|
+
* By default session objects without any personal information are returned.
|
|
1112
|
+
* This means without `participants`, `location`, `calendarConference`, and
|
|
1113
|
+
* `externalCalendarOverrides`. You can retrieve full session objects by passing
|
|
1114
|
+
* `ALL_PI` in the `fieldsets` array. It isn't possible to retrieve sessions
|
|
1115
|
+
* with personal information just for specific participants.
|
|
1116
|
+
* @param ids - IDs of the sessions to retrieve.
|
|
1117
|
+
* @public
|
|
1118
|
+
* @documentationMaturity preview
|
|
1119
|
+
* @requiredField ids
|
|
1120
|
+
*/
|
|
1121
|
+
export declare function listSessions(ids: string[] | null, options?: ListSessionsOptions): Promise<ListSessionsResponse>;
|
|
1122
|
+
export interface ListSessionsOptions {
|
|
1123
|
+
/**
|
|
1124
|
+
* Supported values: `ALL_PI`.
|
|
1125
|
+
*
|
|
1126
|
+
* Predefined sets of fields to return.
|
|
1127
|
+
*
|
|
1128
|
+
* - `ALL_PI`: Returns complete session objects.
|
|
1129
|
+
*
|
|
1130
|
+
* If you don't pass a value in the `fieldsets` array, session objects without
|
|
1131
|
+
* personal information are returned by default. This means without `participants`,
|
|
1132
|
+
* `location`, `calendarConference`, and `externalCalendarOverrides`.
|
|
1133
|
+
*/
|
|
1134
|
+
fieldsets?: string[];
|
|
1135
|
+
}
|
|
1136
|
+
/**
|
|
1137
|
+
* Retrieves a list of event session instances, given the provided paging and filtering.
|
|
1138
|
+
*
|
|
1139
|
+
*
|
|
1140
|
+
* By default session objects without any personal information are returned.
|
|
1141
|
+
* This means without `participants`, `location`, `calendarConference`, and
|
|
1142
|
+
* `externalCalendarOverrides`. You can retrieve full session objects by passing
|
|
1143
|
+
* `ALL_PI` in the `fieldsets` array. It isn't possible to retrieve sessions
|
|
1144
|
+
* with personal information just for specific participants.
|
|
1145
|
+
*
|
|
1146
|
+
* > __Note:__ Sessions are sorted by `start.timestamp`, in ascending order.
|
|
1147
|
+
* > Other sorting options aren't supported.
|
|
1148
|
+
*
|
|
1149
|
+
*
|
|
1150
|
+
* For a detailed list of supported operations in the Bookings Calendar V2 API, see
|
|
1151
|
+
* [filtering](https://dev.wix.com/api/rest/wix-bookings/calendar-v2/filters).
|
|
1152
|
+
*
|
|
1153
|
+
*
|
|
1154
|
+
* To learn about working with _Query_ endpoints, see
|
|
1155
|
+
* [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)
|
|
1156
|
+
* and [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/sorting-and-paging).
|
|
1157
|
+
* @public
|
|
1158
|
+
* @documentationMaturity preview
|
|
1159
|
+
*/
|
|
1160
|
+
export declare function queryEventSessionInstances(options?: QueryEventSessionInstancesOptions): Promise<QueryEventSessionInstancesResponse>;
|
|
1161
|
+
export interface QueryEventSessionInstancesOptions {
|
|
1162
|
+
/**
|
|
1163
|
+
* Start of the time range for which sessions are returned
|
|
1164
|
+
* in [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601#Coordinated_Universal_Time_(UTC)).
|
|
1165
|
+
* Required, if `query.cursorPaging` is omitted.
|
|
1166
|
+
* `end.timestamp` of all returned sessions is greater than or equal to `fromDate`.
|
|
1167
|
+
*/
|
|
1168
|
+
fromDate?: Date;
|
|
1169
|
+
/**
|
|
1170
|
+
* End of the time range for which sessions are returned
|
|
1171
|
+
* in [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601#Coordinated_Universal_Time_(UTC)).
|
|
1172
|
+
* Required, if `query.cursorPaging` is omitted.
|
|
1173
|
+
* `start.timestamp` of all returned sessions is less than or equal to `toDate`.
|
|
1174
|
+
*/
|
|
1175
|
+
toDate?: Date;
|
|
1176
|
+
/** Information about filters, paging, and returned fields. */
|
|
1177
|
+
query?: CommonQueryV2;
|
|
1178
|
+
}
|