@wix/bookings 1.0.9 → 1.0.10
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/bookings-calendar-v1-session.http.d.ts +56 -1
- package/build/cjs/src/bookings-calendar-v1-session.http.js +248 -1
- package/build/cjs/src/bookings-calendar-v1-session.http.js.map +1 -1
- package/build/cjs/src/bookings-calendar-v1-session.public.d.ts +6 -3
- package/build/cjs/src/bookings-calendar-v1-session.public.js +19 -1
- package/build/cjs/src/bookings-calendar-v1-session.public.js.map +1 -1
- package/build/cjs/src/bookings-calendar-v1-session.types.d.ts +3 -3
- package/build/cjs/src/bookings-calendar-v1-session.universal.d.ts +247 -3
- package/build/cjs/src/bookings-calendar-v1-session.universal.js +217 -1
- package/build/cjs/src/bookings-calendar-v1-session.universal.js.map +1 -1
- package/build/es/src/bookings-calendar-v1-session.http.d.ts +56 -1
- package/build/es/src/bookings-calendar-v1-session.http.js +244 -0
- package/build/es/src/bookings-calendar-v1-session.http.js.map +1 -1
- package/build/es/src/bookings-calendar-v1-session.public.d.ts +6 -3
- package/build/es/src/bookings-calendar-v1-session.public.js +16 -1
- package/build/es/src/bookings-calendar-v1-session.public.js.map +1 -1
- package/build/es/src/bookings-calendar-v1-session.types.d.ts +3 -3
- package/build/es/src/bookings-calendar-v1-session.universal.d.ts +247 -3
- package/build/es/src/bookings-calendar-v1-session.universal.js +213 -0
- package/build/es/src/bookings-calendar-v1-session.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,60 @@
|
|
|
1
1
|
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
-
import { QuerySessionsRequest, QuerySessionsResponse, GetSessionRequest, GetSessionResponse, ListSessionsRequest, ListSessionsResponse } from './bookings-calendar-v1-session.types';
|
|
2
|
+
import { QuerySessionsRequest, QuerySessionsResponse, CreateSessionRequest, CreateSessionResponse, DeleteSessionRequest, DeleteSessionResponse, UpdateSessionRequest, UpdateSessionResponse, GetSessionRequest, GetSessionResponse, ListSessionsRequest, ListSessionsResponse } from './bookings-calendar-v1-session.types';
|
|
3
|
+
/**
|
|
4
|
+
* Creates a session.
|
|
5
|
+
*
|
|
6
|
+
* A session is one of the following:
|
|
7
|
+
* + `"EVENT"`: Reserved period of time on any [schedule](wix-bookings-backend.sessions/introduction#schedules). For example, an appointment, class, or course. 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. Set `type` to `"EVENT"` when creating sessions that reserve time on a service's schedule, or when creating a blocked time for a resource.
|
|
8
|
+
* + `"WORKING_HOURS"`: Placeholder for available time on a resource’s schedule. Set `type` to `"WORKING_HOURS"` when creating sessions for resource availability.
|
|
9
|
+
*
|
|
10
|
+
* Sessions belong to a schedule. Schedules are owned by a resource or a service.
|
|
11
|
+
*
|
|
12
|
+
* A session may be an individual session or a recurring session.
|
|
13
|
+
* An individual session has a discrete start and end date, while a recurring session defines a series of repeating sessions. An instance of a recurring session is a specific session in a series of repeating sessions, generated according to the recurrence rule.
|
|
14
|
+
* The `start` and `end` properties set the time and duration of the session. For non-recurring sessions, you can use either the `timestamp` or `localDateTime` properties.
|
|
15
|
+
* For recurring sessions, use the `localDateTime` property only. For recurring sessions, the `start` property sets the date and time of the first recurring session, subject to the recurrence rule. For example, if you set the `start` to Saturday, May 1 and your recurrence rule says every second Monday, then the first session will only be on Monday, May 10.
|
|
16
|
+
*
|
|
17
|
+
* The `year`, `monthOfYear` and `dayOfMonth` properties in the `end` property are used with the `hourOfDay` and `minutesOfHour` properties to set the duration of each session relative to the `start`.
|
|
18
|
+
* The `UNTIL` keyword in the `recurrence` property sets the date for the last recurring session.
|
|
19
|
+
*
|
|
20
|
+
* You can create a session that blocks hours on the resource's calendar, making the resource unavailable.
|
|
21
|
+
* Create a non-recurring session of type `"EVENT"`, and add `"Blocked"` to the `tags` array.
|
|
22
|
+
*
|
|
23
|
+
* >**Notes:**
|
|
24
|
+
* > + For properties where there is no explicit timezone information, the timezone used is the business’s timezone.
|
|
25
|
+
* > + Only users with **[Bookings Admin](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin)** permissions can create a session. You can override the permissions by setting the `suppressAuth` option to `true`.
|
|
26
|
+
*/
|
|
27
|
+
export declare function createSession(payload: CreateSessionRequest): RequestOptionsFactory<CreateSessionResponse>;
|
|
28
|
+
/**
|
|
29
|
+
* Updates a session.
|
|
30
|
+
*
|
|
31
|
+
* When you update a recurring session, only the future instances of the recurrence will be updated. Changing an individual instance's `start` or `end` time will change the way updates to `start` and `end` on the recurring session affect the session instance:
|
|
32
|
+
* |Change made to the instance | Effect of changes made to the recurrence
|
|
33
|
+
* |--|--|
|
|
34
|
+
* |Instance `start` time changed.|Changes to the recurring session's `start` or `end` time will not update the instance.|
|
|
35
|
+
* |Instance `end` time changed, changing the session's duration| Changes made to the recurring session's start time will be updated on the instance while keeping the new duration, but changes to the recurring session's `end` time not be updated on the instance.
|
|
36
|
+
* |Updating a changed `start` time for an instance back to the recurring session's value.|Future changes to the recurring session `start` and `end` times will update the instance's `starts` and `end` time.
|
|
37
|
+
*
|
|
38
|
+
* Changes to properties on the recurring session, other than `start` and `end`, are always updated on the recurrence instance.
|
|
39
|
+
*
|
|
40
|
+
* Use the `options.participantNotification` object to notify participants if the session has been booked.
|
|
41
|
+
*
|
|
42
|
+
* >**Notes:**
|
|
43
|
+
* > + Where there is no explicit timezone information, the timezone used is the business’s timezone.
|
|
44
|
+
* > + Only users with **[Bookings Admin](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin)** permissions can update a session. You can override the permissions by setting the `suppressAuth` option to `true`.
|
|
45
|
+
*/
|
|
46
|
+
export declare function updateSession(payload: UpdateSessionRequest): RequestOptionsFactory<UpdateSessionResponse>;
|
|
47
|
+
/**
|
|
48
|
+
* Deletes a session.
|
|
49
|
+
*
|
|
50
|
+
* Use the `participantNotification` property to send an email to the participants when the session is deleted.
|
|
51
|
+
* When deleting a session of type `"EVENT"` where a booking exists, the booking's status is updated to `"CANCELED"`.
|
|
52
|
+
* To delete a set of recurring sessions, specify the session's `recurringSessionId` in the `sessionId` property in the parameters.
|
|
53
|
+
* When deleting a recurrence, only future instances of the recurrence are deleted.
|
|
54
|
+
*
|
|
55
|
+
* >**Note:** Only users with **[Bookings Admin](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin)** permissions can delete a session. You can override the permissions by setting the `suppressAuth` option to `true`.
|
|
56
|
+
*/
|
|
57
|
+
export declare function deleteSession(payload: DeleteSessionRequest): RequestOptionsFactory<DeleteSessionResponse>;
|
|
3
58
|
/**
|
|
4
59
|
* Retrieves a list of sessions, given the provided time range, filtering, and paging.
|
|
5
60
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.listSessions = exports.getSession = exports.calendarServerQuerySessions = void 0;
|
|
3
|
+
exports.listSessions = exports.getSession = exports.calendarServerQuerySessions = exports.deleteSession = exports.updateSession = exports.createSession = void 0;
|
|
4
4
|
const metro_runtime_1 = require("@wix/metro-runtime");
|
|
5
5
|
const ambassador_1 = require("@wix/metro-runtime/ambassador");
|
|
6
6
|
const metro_runtime_2 = require("@wix/metro-runtime");
|
|
@@ -10,6 +10,10 @@ const _addressLocation = {
|
|
|
10
10
|
longitude: 'google.protobuf.DoubleValue',
|
|
11
11
|
};
|
|
12
12
|
const _calendarDateTime = { timestamp: 'google.protobuf.Timestamp' };
|
|
13
|
+
const _createSessionRequest = { session: '_session' };
|
|
14
|
+
const _createSessionResponse = { session: '_session' };
|
|
15
|
+
const _deleteSessionRequest = {};
|
|
16
|
+
const _deleteSessionResponse = {};
|
|
13
17
|
const _getSessionRequest = {};
|
|
14
18
|
const _getSessionResponse = { session: '_session' };
|
|
15
19
|
const _listSessionsRequest = {};
|
|
@@ -35,6 +39,11 @@ const _session = {
|
|
|
35
39
|
end: '_calendarDateTime',
|
|
36
40
|
location: '_location',
|
|
37
41
|
};
|
|
42
|
+
const _updateSessionRequest = {
|
|
43
|
+
fieldmask: 'google.protobuf.FieldMask',
|
|
44
|
+
session: '_session',
|
|
45
|
+
};
|
|
46
|
+
const _updateSessionResponse = { session: '_session' };
|
|
38
47
|
function resolveWixBookingsCalendarV2CalendarUrl(opts) {
|
|
39
48
|
const domainToMappings = {};
|
|
40
49
|
return metro_runtime_2.resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
@@ -158,6 +167,244 @@ function resolveComWixBookingsCalendarApiV2SessionsServiceUrl(opts) {
|
|
|
158
167
|
};
|
|
159
168
|
return metro_runtime_2.resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
160
169
|
}
|
|
170
|
+
function resolveComWixBookingsSchedulesVeloV2VeloSessionsServiceUrl(opts) {
|
|
171
|
+
const domainToMappings = {
|
|
172
|
+
'api._api_base_domain_': [
|
|
173
|
+
{
|
|
174
|
+
srcPath: '/schedule-server',
|
|
175
|
+
destPath: '',
|
|
176
|
+
},
|
|
177
|
+
],
|
|
178
|
+
'bookings._base_domain_': [
|
|
179
|
+
{
|
|
180
|
+
srcPath: '/_api/schedule-server',
|
|
181
|
+
destPath: '',
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
srcPath: '/internal/schedule-server',
|
|
185
|
+
destPath: '/internal',
|
|
186
|
+
},
|
|
187
|
+
],
|
|
188
|
+
'www._base_domain_': [
|
|
189
|
+
{
|
|
190
|
+
srcPath: '/schedule-server',
|
|
191
|
+
destPath: '',
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
srcPath: '/_api/schedule-server',
|
|
195
|
+
destPath: '',
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
srcPath: '/_api/bookings/v1/calendar',
|
|
199
|
+
destPath: '/v1/calendar',
|
|
200
|
+
},
|
|
201
|
+
],
|
|
202
|
+
'*.dev.wix-code.com': [
|
|
203
|
+
{
|
|
204
|
+
srcPath: '/_api/schedule-server',
|
|
205
|
+
destPath: '',
|
|
206
|
+
},
|
|
207
|
+
],
|
|
208
|
+
_: [
|
|
209
|
+
{
|
|
210
|
+
srcPath: '/_api/schedule-server',
|
|
211
|
+
destPath: '',
|
|
212
|
+
},
|
|
213
|
+
],
|
|
214
|
+
'www.wixapis.com': [
|
|
215
|
+
{
|
|
216
|
+
srcPath: '/bookings/v1/calendar',
|
|
217
|
+
destPath: '/v1/calendar',
|
|
218
|
+
},
|
|
219
|
+
],
|
|
220
|
+
'manage._base_domain_': [
|
|
221
|
+
{
|
|
222
|
+
srcPath: '/_api/schedule-server',
|
|
223
|
+
destPath: '',
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
srcPath: '/_api/bookings/v1/calendar',
|
|
227
|
+
destPath: '/v1/calendar',
|
|
228
|
+
},
|
|
229
|
+
],
|
|
230
|
+
'editor._base_domain_': [
|
|
231
|
+
{
|
|
232
|
+
srcPath: '/_api/bookings/v1/calendar',
|
|
233
|
+
destPath: '/v1/calendar',
|
|
234
|
+
},
|
|
235
|
+
],
|
|
236
|
+
'blocks._base_domain_': [
|
|
237
|
+
{
|
|
238
|
+
srcPath: '/_api/bookings/v1/calendar',
|
|
239
|
+
destPath: '/v1/calendar',
|
|
240
|
+
},
|
|
241
|
+
],
|
|
242
|
+
'create.editorx': [
|
|
243
|
+
{
|
|
244
|
+
srcPath: '/_api/bookings/v1/calendar',
|
|
245
|
+
destPath: '/v1/calendar',
|
|
246
|
+
},
|
|
247
|
+
],
|
|
248
|
+
'editor.wixapps.net': [
|
|
249
|
+
{
|
|
250
|
+
srcPath: '/_api/schedule-server',
|
|
251
|
+
destPath: '',
|
|
252
|
+
},
|
|
253
|
+
],
|
|
254
|
+
};
|
|
255
|
+
return metro_runtime_2.resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Creates a session.
|
|
259
|
+
*
|
|
260
|
+
* A session is one of the following:
|
|
261
|
+
* + `"EVENT"`: Reserved period of time on any [schedule](wix-bookings-backend.sessions/introduction#schedules). For example, an appointment, class, or course. 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. Set `type` to `"EVENT"` when creating sessions that reserve time on a service's schedule, or when creating a blocked time for a resource.
|
|
262
|
+
* + `"WORKING_HOURS"`: Placeholder for available time on a resource’s schedule. Set `type` to `"WORKING_HOURS"` when creating sessions for resource availability.
|
|
263
|
+
*
|
|
264
|
+
* Sessions belong to a schedule. Schedules are owned by a resource or a service.
|
|
265
|
+
*
|
|
266
|
+
* A session may be an individual session or a recurring session.
|
|
267
|
+
* An individual session has a discrete start and end date, while a recurring session defines a series of repeating sessions. An instance of a recurring session is a specific session in a series of repeating sessions, generated according to the recurrence rule.
|
|
268
|
+
* The `start` and `end` properties set the time and duration of the session. For non-recurring sessions, you can use either the `timestamp` or `localDateTime` properties.
|
|
269
|
+
* For recurring sessions, use the `localDateTime` property only. For recurring sessions, the `start` property sets the date and time of the first recurring session, subject to the recurrence rule. For example, if you set the `start` to Saturday, May 1 and your recurrence rule says every second Monday, then the first session will only be on Monday, May 10.
|
|
270
|
+
*
|
|
271
|
+
* The `year`, `monthOfYear` and `dayOfMonth` properties in the `end` property are used with the `hourOfDay` and `minutesOfHour` properties to set the duration of each session relative to the `start`.
|
|
272
|
+
* The `UNTIL` keyword in the `recurrence` property sets the date for the last recurring session.
|
|
273
|
+
*
|
|
274
|
+
* You can create a session that blocks hours on the resource's calendar, making the resource unavailable.
|
|
275
|
+
* Create a non-recurring session of type `"EVENT"`, and add `"Blocked"` to the `tags` array.
|
|
276
|
+
*
|
|
277
|
+
* >**Notes:**
|
|
278
|
+
* > + For properties where there is no explicit timezone information, the timezone used is the business’s timezone.
|
|
279
|
+
* > + Only users with **[Bookings Admin](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin)** permissions can create a session. You can override the permissions by setting the `suppressAuth` option to `true`.
|
|
280
|
+
*/
|
|
281
|
+
function createSession(payload) {
|
|
282
|
+
const { toJSON: toReq, fromJSON: fromReq } = ambassador_1.serializer(_createSessionRequest, {
|
|
283
|
+
_address,
|
|
284
|
+
_addressLocation,
|
|
285
|
+
_calendarDateTime,
|
|
286
|
+
_location,
|
|
287
|
+
_locationsAddress,
|
|
288
|
+
_locationsAddressLocation,
|
|
289
|
+
_locationsLocation,
|
|
290
|
+
_session,
|
|
291
|
+
});
|
|
292
|
+
const { fromJSON: fromRes } = ambassador_1.serializer(_createSessionResponse, {
|
|
293
|
+
_address,
|
|
294
|
+
_addressLocation,
|
|
295
|
+
_calendarDateTime,
|
|
296
|
+
_location,
|
|
297
|
+
_locationsAddress,
|
|
298
|
+
_locationsAddressLocation,
|
|
299
|
+
_locationsLocation,
|
|
300
|
+
_session,
|
|
301
|
+
});
|
|
302
|
+
function __createSession({ host }) {
|
|
303
|
+
const serializedData = toReq(payload);
|
|
304
|
+
const metadata = {
|
|
305
|
+
method: 'POST',
|
|
306
|
+
url: resolveComWixBookingsSchedulesVeloV2VeloSessionsServiceUrl({
|
|
307
|
+
protoPath: '/v2/velo/sessions',
|
|
308
|
+
data: serializedData,
|
|
309
|
+
host,
|
|
310
|
+
}),
|
|
311
|
+
data: serializedData,
|
|
312
|
+
transformResponse: fromRes,
|
|
313
|
+
};
|
|
314
|
+
return metadata;
|
|
315
|
+
}
|
|
316
|
+
__createSession.fromReq = fromReq;
|
|
317
|
+
return __createSession;
|
|
318
|
+
}
|
|
319
|
+
exports.createSession = createSession;
|
|
320
|
+
/**
|
|
321
|
+
* Updates a session.
|
|
322
|
+
*
|
|
323
|
+
* When you update a recurring session, only the future instances of the recurrence will be updated. Changing an individual instance's `start` or `end` time will change the way updates to `start` and `end` on the recurring session affect the session instance:
|
|
324
|
+
* |Change made to the instance | Effect of changes made to the recurrence
|
|
325
|
+
* |--|--|
|
|
326
|
+
* |Instance `start` time changed.|Changes to the recurring session's `start` or `end` time will not update the instance.|
|
|
327
|
+
* |Instance `end` time changed, changing the session's duration| Changes made to the recurring session's start time will be updated on the instance while keeping the new duration, but changes to the recurring session's `end` time not be updated on the instance.
|
|
328
|
+
* |Updating a changed `start` time for an instance back to the recurring session's value.|Future changes to the recurring session `start` and `end` times will update the instance's `starts` and `end` time.
|
|
329
|
+
*
|
|
330
|
+
* Changes to properties on the recurring session, other than `start` and `end`, are always updated on the recurrence instance.
|
|
331
|
+
*
|
|
332
|
+
* Use the `options.participantNotification` object to notify participants if the session has been booked.
|
|
333
|
+
*
|
|
334
|
+
* >**Notes:**
|
|
335
|
+
* > + Where there is no explicit timezone information, the timezone used is the business’s timezone.
|
|
336
|
+
* > + Only users with **[Bookings Admin](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin)** permissions can update a session. You can override the permissions by setting the `suppressAuth` option to `true`.
|
|
337
|
+
*/
|
|
338
|
+
function updateSession(payload) {
|
|
339
|
+
const { toJSON: toReq, fromJSON: fromReq } = ambassador_1.serializer(_updateSessionRequest, {
|
|
340
|
+
_address,
|
|
341
|
+
_addressLocation,
|
|
342
|
+
_calendarDateTime,
|
|
343
|
+
_location,
|
|
344
|
+
_locationsAddress,
|
|
345
|
+
_locationsAddressLocation,
|
|
346
|
+
_locationsLocation,
|
|
347
|
+
_session,
|
|
348
|
+
});
|
|
349
|
+
const { fromJSON: fromRes } = ambassador_1.serializer(_updateSessionResponse, {
|
|
350
|
+
_address,
|
|
351
|
+
_addressLocation,
|
|
352
|
+
_calendarDateTime,
|
|
353
|
+
_location,
|
|
354
|
+
_locationsAddress,
|
|
355
|
+
_locationsAddressLocation,
|
|
356
|
+
_locationsLocation,
|
|
357
|
+
_session,
|
|
358
|
+
});
|
|
359
|
+
function __updateSession({ host }) {
|
|
360
|
+
const serializedData = toReq(payload);
|
|
361
|
+
const metadata = {
|
|
362
|
+
method: 'PATCH',
|
|
363
|
+
url: resolveComWixBookingsSchedulesVeloV2VeloSessionsServiceUrl({
|
|
364
|
+
protoPath: '/v2/velo/sessions/{session.id}',
|
|
365
|
+
data: serializedData,
|
|
366
|
+
host,
|
|
367
|
+
}),
|
|
368
|
+
data: serializedData,
|
|
369
|
+
transformResponse: fromRes,
|
|
370
|
+
};
|
|
371
|
+
return metadata;
|
|
372
|
+
}
|
|
373
|
+
__updateSession.fromReq = fromReq;
|
|
374
|
+
return __updateSession;
|
|
375
|
+
}
|
|
376
|
+
exports.updateSession = updateSession;
|
|
377
|
+
/**
|
|
378
|
+
* Deletes a session.
|
|
379
|
+
*
|
|
380
|
+
* Use the `participantNotification` property to send an email to the participants when the session is deleted.
|
|
381
|
+
* When deleting a session of type `"EVENT"` where a booking exists, the booking's status is updated to `"CANCELED"`.
|
|
382
|
+
* To delete a set of recurring sessions, specify the session's `recurringSessionId` in the `sessionId` property in the parameters.
|
|
383
|
+
* When deleting a recurrence, only future instances of the recurrence are deleted.
|
|
384
|
+
*
|
|
385
|
+
* >**Note:** Only users with **[Bookings Admin](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin)** permissions can delete a session. You can override the permissions by setting the `suppressAuth` option to `true`.
|
|
386
|
+
*/
|
|
387
|
+
function deleteSession(payload) {
|
|
388
|
+
const { toJSON: toReq, fromJSON: fromReq } = ambassador_1.serializer(_deleteSessionRequest, {});
|
|
389
|
+
const { fromJSON: fromRes } = ambassador_1.serializer(_deleteSessionResponse, {});
|
|
390
|
+
function __deleteSession({ host }) {
|
|
391
|
+
const serializedData = toReq(payload);
|
|
392
|
+
const metadata = {
|
|
393
|
+
method: 'DELETE',
|
|
394
|
+
url: resolveComWixBookingsSchedulesVeloV2VeloSessionsServiceUrl({
|
|
395
|
+
protoPath: '/v2/velo/sessions/{sessionId}',
|
|
396
|
+
data: serializedData,
|
|
397
|
+
host,
|
|
398
|
+
}),
|
|
399
|
+
params: metro_runtime_1.toURLSearchParams(serializedData),
|
|
400
|
+
transformResponse: fromRes,
|
|
401
|
+
};
|
|
402
|
+
return metadata;
|
|
403
|
+
}
|
|
404
|
+
__deleteSession.fromReq = fromReq;
|
|
405
|
+
return __deleteSession;
|
|
406
|
+
}
|
|
407
|
+
exports.deleteSession = deleteSession;
|
|
161
408
|
/**
|
|
162
409
|
* Retrieves a list of sessions, given the provided time range, filtering, and paging.
|
|
163
410
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-calendar-v1-session.http.js","sourceRoot":"","sources":["../../../src/bookings-calendar-v1-session.http.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AACvD,8DAA2D;AAC3D,sDAAgD;
|
|
1
|
+
{"version":3,"file":"bookings-calendar-v1-session.http.js","sourceRoot":"","sources":["../../../src/bookings-calendar-v1-session.http.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AACvD,8DAA2D;AAC3D,sDAAgD;AAkBhD,MAAM,QAAQ,GAAG,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;AACjD,MAAM,gBAAgB,GAAG;IACvB,QAAQ,EAAE,6BAA6B;IACvC,SAAS,EAAE,6BAA6B;CACzC,CAAC;AACF,MAAM,iBAAiB,GAAG,EAAE,SAAS,EAAE,2BAA2B,EAAE,CAAC;AACrE,MAAM,qBAAqB,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AACtD,MAAM,sBAAsB,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AACvD,MAAM,qBAAqB,GAAG,EAAE,CAAC;AACjC,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAClC,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAC9B,MAAM,mBAAmB,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AACpD,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAChC,MAAM,qBAAqB,GAAG,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;AACvD,MAAM,SAAS,GAAG;IAChB,aAAa,EAAE,UAAU;IACzB,gBAAgB,EAAE,oBAAoB;CACvC,CAAC;AACF,MAAM,iBAAiB,GAAG,EAAE,OAAO,EAAE,2BAA2B,EAAE,CAAC;AACnE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AE,CACH,CAAC;IACF,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,uBAAU,CAAC,qBAAqB,EAAE;QAC9D,QAAQ;QACR,gBAAgB;QAChB,iBAAiB;QACjB,SAAS;QACT,iBAAiB;QACjB,yBAAyB;QACzB,kBAAkB;QAClB,QAAQ;KACT,CAAC,CAAC;IAEH,SAAS,cAAc,CAAC,EAAE,IAAI,EAAO;QACnC,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,MAAM,QAAQ,GAAG;YACf,MAAM,EAAE,MAAa;YACrB,GAAG,EAAE,uCAAuC,CAAC;gBAC3C,SAAS,EAAE,4BAA4B;gBACvC,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,cAAc,CAAC,OAAO,GAAG,OAAO,CAAC;IAEjC,OAAO,cAAc,CAAC;AACxB,CAAC;AArCD,oCAqCC"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { GetSessionOptions, ListSessionsOptions, QuerySessionsOptions } from './bookings-calendar-v1-session.universal';
|
|
2
|
+
import { Session, UpdateSession, DeleteSessionOptions, GetSessionOptions, ListSessionsOptions, QuerySessionsOptions, UpdateSessionOptions } from './bookings-calendar-v1-session.universal';
|
|
3
|
+
export declare function createSession(httpClient: HttpClient): (session: Session) => Promise<import("./bookings-calendar-v1-session.universal").CreateSessionResponse>;
|
|
4
|
+
export declare function updateSession(httpClient: HttpClient): (_id: string | null, session: UpdateSession, options?: UpdateSessionOptions | undefined) => Promise<import("./bookings-calendar-v1-session.universal").UpdateSessionResponse>;
|
|
5
|
+
export declare function deleteSession(httpClient: HttpClient): (sessionId: string | null, options?: DeleteSessionOptions | undefined) => Promise<void>;
|
|
3
6
|
export declare function querySessions(httpClient: HttpClient): (options?: QuerySessionsOptions | undefined) => Promise<import("./bookings-calendar-v1-session.universal").QuerySessionsResponse>;
|
|
4
|
-
export declare function getSession(httpClient: HttpClient): (_id: string | null, options?: GetSessionOptions | undefined) => Promise<
|
|
7
|
+
export declare function getSession(httpClient: HttpClient): (_id: string | null, options?: GetSessionOptions | undefined) => Promise<Session>;
|
|
5
8
|
export declare function listSessions(httpClient: HttpClient): (ids: string[] | null, options?: ListSessionsOptions | undefined) => Promise<import("./bookings-calendar-v1-session.universal").ListSessionsResponse>;
|
|
6
9
|
export { Transparency, LocationType, LocationStatus, LocationsLocationType, DayOfWeek, ApprovalStatus, CalendarType, Status, SessionType, ConferenceType, CacheInfoStatus, } from './bookings-calendar-v1-session.universal';
|
|
7
|
-
export { Session, CalendarDateTime, LocalDateTime, LinkedSchedule, Location, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, LocationsLocation, LocationsAddress, LocationsStreetAddress, LocationsAddressLocation, BusinessSchedule, TimePeriod, SpecialHourPeriod, Rate, Price, Participant, ExternalCalendarInfo, ExternalCalendarOverrides, CalendarConference, Version, CreateSessionRequest, CreateSessionResponse, UpdateSessionRequest, ParticipantNotification, UpdateSessionResponse, DeleteSessionRequest, DeleteSessionResponse, QuerySessionsRequest, QueryV2, QueryV2PagingMethodOneOf, CursorPaging, QuerySessionsResponse, CursorPagingMetadata, Cursors, GetSessionRequest, GetSessionResponse, ListSessionsRequest, ListSessionsResponse, QueryEventSessionInstancesRequest, CommonQueryV2, CommonQueryV2PagingMethodOneOf, CommonCursorPaging, QueryEventSessionInstancesResponse, PagingMetadataV2, CommonCursors, V2QuerySessionsRequest, V2QuerySessionsResponse, CacheRequest, CacheResponse, CacheInfo, UncacheRequest, UncacheResponse, ShortenCacheRequest, ShortenCacheResponse, GetCacheInfoRequest, GetCacheInfoResponse, FeedEvent, FeedEventTypeOneOf, SessionAddedOrUpdated, SessionRemoved, WindowExtended, WindowMoved, Empty, FeedReplayEvent, FeedReplayEventTypeOneOf, SessionAdded, ReplayCompleted, QuerySessionsOptions, GetSessionOptions, ListSessionsOptions, } from './bookings-calendar-v1-session.universal';
|
|
10
|
+
export { Session, CalendarDateTime, LocalDateTime, LinkedSchedule, Location, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, LocationsLocation, LocationsAddress, LocationsStreetAddress, LocationsAddressLocation, BusinessSchedule, TimePeriod, SpecialHourPeriod, Rate, Price, Participant, ExternalCalendarInfo, ExternalCalendarOverrides, CalendarConference, Version, CreateSessionRequest, CreateSessionResponse, UpdateSessionRequest, ParticipantNotification, UpdateSessionResponse, DeleteSessionRequest, DeleteSessionResponse, QuerySessionsRequest, QueryV2, QueryV2PagingMethodOneOf, CursorPaging, QuerySessionsResponse, CursorPagingMetadata, Cursors, GetSessionRequest, GetSessionResponse, ListSessionsRequest, ListSessionsResponse, QueryEventSessionInstancesRequest, CommonQueryV2, CommonQueryV2PagingMethodOneOf, CommonCursorPaging, QueryEventSessionInstancesResponse, PagingMetadataV2, CommonCursors, V2QuerySessionsRequest, V2QuerySessionsResponse, CacheRequest, CacheResponse, CacheInfo, UncacheRequest, UncacheResponse, ShortenCacheRequest, ShortenCacheResponse, GetCacheInfoRequest, GetCacheInfoResponse, FeedEvent, FeedEventTypeOneOf, SessionAddedOrUpdated, SessionRemoved, WindowExtended, WindowMoved, Empty, FeedReplayEvent, FeedReplayEventTypeOneOf, SessionAdded, ReplayCompleted, UpdateSession, UpdateSessionOptions, DeleteSessionOptions, QuerySessionsOptions, GetSessionOptions, ListSessionsOptions, } from './bookings-calendar-v1-session.universal';
|
|
@@ -1,7 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CacheInfoStatus = exports.ConferenceType = exports.SessionType = exports.Status = exports.CalendarType = exports.ApprovalStatus = exports.DayOfWeek = exports.LocationsLocationType = exports.LocationStatus = exports.LocationType = exports.Transparency = exports.listSessions = exports.getSession = exports.querySessions = void 0;
|
|
3
|
+
exports.CacheInfoStatus = exports.ConferenceType = exports.SessionType = exports.Status = exports.CalendarType = exports.ApprovalStatus = exports.DayOfWeek = exports.LocationsLocationType = exports.LocationStatus = exports.LocationType = exports.Transparency = exports.listSessions = exports.getSession = exports.querySessions = exports.deleteSession = exports.updateSession = exports.createSession = void 0;
|
|
4
4
|
const bookings_calendar_v1_session_universal_1 = require("./bookings-calendar-v1-session.universal");
|
|
5
|
+
function createSession(httpClient) {
|
|
6
|
+
return (session) => bookings_calendar_v1_session_universal_1.createSession(session,
|
|
7
|
+
// @ts-ignore
|
|
8
|
+
{ httpClient });
|
|
9
|
+
}
|
|
10
|
+
exports.createSession = createSession;
|
|
11
|
+
function updateSession(httpClient) {
|
|
12
|
+
return (_id, session, options) => bookings_calendar_v1_session_universal_1.updateSession(_id, session, options,
|
|
13
|
+
// @ts-ignore
|
|
14
|
+
{ httpClient });
|
|
15
|
+
}
|
|
16
|
+
exports.updateSession = updateSession;
|
|
17
|
+
function deleteSession(httpClient) {
|
|
18
|
+
return (sessionId, options) => bookings_calendar_v1_session_universal_1.deleteSession(sessionId, options,
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
{ httpClient });
|
|
21
|
+
}
|
|
22
|
+
exports.deleteSession = deleteSession;
|
|
5
23
|
function querySessions(httpClient) {
|
|
6
24
|
return (options) => bookings_calendar_v1_session_universal_1.querySessions(options,
|
|
7
25
|
// @ts-ignore
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-calendar-v1-session.public.js","sourceRoot":"","sources":["../../../src/bookings-calendar-v1-session.public.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"bookings-calendar-v1-session.public.js","sourceRoot":"","sources":["../../../src/bookings-calendar-v1-session.public.ts"],"names":[],"mappings":";;;AACA,qGAckD;AAElD,SAAgB,aAAa,CAAC,UAAsB;IAClD,OAAO,CAAC,OAAgB,EAAE,EAAE,CAC1B,sDAAsB,CAC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N,qIAAA,WAAW,OAAA;AACX,wIAAA,cAAc,OAAA;AACd,yIAAA,eAAe,OAAA"}
|
|
@@ -597,7 +597,7 @@ export interface Version {
|
|
|
597
597
|
}
|
|
598
598
|
export interface CreateSessionRequest {
|
|
599
599
|
/** The session to create. */
|
|
600
|
-
session
|
|
600
|
+
session: Session;
|
|
601
601
|
}
|
|
602
602
|
export interface CreateSessionResponse {
|
|
603
603
|
/** The created session. */
|
|
@@ -605,7 +605,7 @@ export interface CreateSessionResponse {
|
|
|
605
605
|
}
|
|
606
606
|
export interface UpdateSessionRequest {
|
|
607
607
|
/** The session to update. */
|
|
608
|
-
session
|
|
608
|
+
session: Session;
|
|
609
609
|
/** Field mask of fields to update. */
|
|
610
610
|
fieldmask?: string[];
|
|
611
611
|
/** Whether to notify participants about the change, and an optional custom message. */
|
|
@@ -627,7 +627,7 @@ export interface UpdateSessionResponse {
|
|
|
627
627
|
}
|
|
628
628
|
export interface DeleteSessionRequest {
|
|
629
629
|
/** The ID of the session to delete. */
|
|
630
|
-
sessionId
|
|
630
|
+
sessionId: string | null;
|
|
631
631
|
/** Whether to notify participants about the change, and an optional custom message. */
|
|
632
632
|
participantNotification?: ParticipantNotification;
|
|
633
633
|
}
|