@wix/bookings 1.0.14 → 1.0.16

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.
Files changed (43) hide show
  1. package/build/cjs/index.d.ts +2 -1
  2. package/build/cjs/index.js +3 -2
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/src/bookings-calendar-v1-session.http.d.ts +49 -26
  5. package/build/cjs/src/bookings-calendar-v1-session.http.js +49 -26
  6. package/build/cjs/src/bookings-calendar-v1-session.http.js.map +1 -1
  7. package/build/cjs/src/bookings-calendar-v1-session.universal.d.ts +86 -68
  8. package/build/cjs/src/bookings-calendar-v1-session.universal.js +49 -26
  9. package/build/cjs/src/bookings-calendar-v1-session.universal.js.map +1 -1
  10. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.http.d.ts +64 -0
  11. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.http.js +296 -0
  12. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.http.js.map +1 -0
  13. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.public.d.ts +11 -0
  14. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.public.js +69 -0
  15. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.public.js.map +1 -0
  16. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.types.d.ts +1831 -0
  17. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.types.js +197 -0
  18. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.types.js.map +1 -0
  19. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.universal.d.ts +1992 -0
  20. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.universal.js +685 -0
  21. package/build/cjs/src/bookings-catalog-v1-service-options-and-variants.universal.js.map +1 -0
  22. package/build/es/index.d.ts +2 -1
  23. package/build/es/index.js +2 -1
  24. package/build/es/index.js.map +1 -1
  25. package/build/es/src/bookings-calendar-v1-session.http.d.ts +49 -26
  26. package/build/es/src/bookings-calendar-v1-session.http.js +49 -26
  27. package/build/es/src/bookings-calendar-v1-session.http.js.map +1 -1
  28. package/build/es/src/bookings-calendar-v1-session.universal.d.ts +86 -68
  29. package/build/es/src/bookings-calendar-v1-session.universal.js +49 -26
  30. package/build/es/src/bookings-calendar-v1-session.universal.js.map +1 -1
  31. package/build/es/src/bookings-catalog-v1-service-options-and-variants.http.d.ts +64 -0
  32. package/build/es/src/bookings-catalog-v1-service-options-and-variants.http.js +286 -0
  33. package/build/es/src/bookings-catalog-v1-service-options-and-variants.http.js.map +1 -0
  34. package/build/es/src/bookings-catalog-v1-service-options-and-variants.public.d.ts +11 -0
  35. package/build/es/src/bookings-catalog-v1-service-options-and-variants.public.js +38 -0
  36. package/build/es/src/bookings-catalog-v1-service-options-and-variants.public.js.map +1 -0
  37. package/build/es/src/bookings-catalog-v1-service-options-and-variants.types.d.ts +1831 -0
  38. package/build/es/src/bookings-catalog-v1-service-options-and-variants.types.js +194 -0
  39. package/build/es/src/bookings-catalog-v1-service-options-and-variants.types.js.map +1 -0
  40. package/build/es/src/bookings-catalog-v1-service-options-and-variants.universal.d.ts +1992 -0
  41. package/build/es/src/bookings-catalog-v1-service-options-and-variants.universal.js +656 -0
  42. package/build/es/src/bookings-catalog-v1-service-options-and-variants.universal.js.map +1 -0
  43. package/package.json +2 -2
@@ -93,11 +93,10 @@ export interface Session {
93
93
  externalCalendarOverrides?: ExternalCalendarOverrides;
94
94
  /**
95
95
  * Session status.
96
- * <!--ONLY:VELO
97
- * One of:
98
- * - `"CONFIRMED"` Default value.
99
- * - `"CANCELLED"` The session was deleted.
100
- * <!--END:ONLY:VELO-->
96
+ *
97
+ * Supported values:
98
+ * - `CONFIRMED`: Default value.
99
+ * - `CANCELLED`: The session was deleted.
101
100
  * @readonly
102
101
  */
103
102
  status?: Status;
@@ -117,11 +116,10 @@ export interface Session {
117
116
  recurringSessionId?: string | null;
118
117
  /**
119
118
  * 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-->
119
+ *
120
+ * Supported values:
121
+ * - `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.
122
+ * - `WORKING_HOURS`: Placeholder for available time on a resource’s schedule.
125
123
  */
126
124
  type?: SessionType;
127
125
  /**
@@ -199,17 +197,13 @@ export interface LinkedSchedule {
199
197
  /** Schedule ID. */
200
198
  scheduleId?: string;
201
199
  /**
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-->
200
+ * Sets this schedule's availability for the duration of the linked schedule's sessions.
207
201
  *
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-->
202
+ * Supported values:
203
+ * - `FREE`: This schedule can have available slots during the linked schedule's sessions.
204
+ * - `BUSY`: This schedule cannot have any available slots during the linked schedule's sessions.
205
+ *
206
+ * Default: `BUSY`
213
207
  */
214
208
  transparency?: Transparency;
215
209
  /**
@@ -484,13 +478,11 @@ export interface Participant {
484
478
  partySize?: number;
485
479
  /**
486
480
  * 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-->
481
+ *
482
+ * Supported values:
483
+ * - `PENDING`: Pending business approval.
484
+ * - `APPROVED`: Approved by the business.
485
+ * - `DECLINED`: Declined by the business.
494
486
  */
495
487
  approvalStatus?: ApprovalStatus;
496
488
  /**
@@ -572,11 +564,10 @@ export interface CalendarConference {
572
564
  description?: string | null;
573
565
  /**
574
566
  * 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-->
567
+ *
568
+ * Supported values:
569
+ * - `ONLINE_MEETING_PROVIDER`: API-generated online meeting.
570
+ * - `CUSTOM`: User-defined meeting.
580
571
  */
581
572
  conferenceType?: ConferenceType;
582
573
  /** Account owner id in vc service */
@@ -657,6 +648,9 @@ export interface QuerySessionsRequest {
657
648
  /**
658
649
  * Type of sessions to return.
659
650
  *
651
+ * - `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.
652
+ * - `WORKING_HOURS`: Placeholder for available time on a resource’s schedule.
653
+ *
660
654
  * Default: `UNDEFINED`. This returns sessions of all types.
661
655
  */
662
656
  type?: SessionType;
@@ -1004,26 +998,31 @@ export interface ReplayCompleted {
1004
998
  /**
1005
999
  * Creates a session.
1006
1000
  *
1001
+ *
1002
+ * The `createSession()` function returns a Promise that resolves when a session is created.
1007
1003
  * A session is one of the following:
1008
- * + `"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.
1009
- * + `"WORKING_HOURS"`: Placeholder for available time on a resource’s schedule. Set `type` to `"WORKING_HOURS"` when creating sessions for resource availability.
1004
+ * + `EVENT`: Reserved period of time on any schedule. 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.
1005
+ * + `WORKING_HOURS`: Placeholder for available time on a resource’s schedule. Set `type` to `WORKING_HOURS` when creating sessions for resource availability.
1010
1006
  *
1011
1007
  * Sessions belong to a schedule. Schedules are owned by a resource or a service.
1012
1008
  *
1013
1009
  * A session may be an individual session or a recurring session.
1014
1010
  * 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.
1011
+ *
1015
1012
  * 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.
1016
- * 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.
1013
+ * For recurring sessions, use the `localDateTime` property only.
1014
+ *
1015
+ * 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.
1017
1016
  *
1018
1017
  * 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`.
1018
+ *
1019
1019
  * The `UNTIL` keyword in the `recurrence` property sets the date for the last recurring session.
1020
1020
  *
1021
- * You can create a session that blocks hours on the resource's calendar, making the resource unavailable.
1022
- * Create a non-recurring session of type `"EVENT"`, and add `"Blocked"` to the `tags` array.
1021
+ * You can create a session that blocks hours on the resource's calendar, making the resource unavailable, by creating a non-recurring session of type `"EVENT"`, and add `"Blocked"` to the `tags` array.
1023
1022
  *
1024
1023
  * >**Notes:**
1025
1024
  * > + For properties where there is no explicit timezone information, the timezone used is the business’s timezone.
1026
- * > + 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`.
1025
+ * > + This function is restricted and only runs if you elevate permissions using the [`wix-auth.elevate()`](https://www.wix.com/velo/reference/wix-auth/elevate) function.
1027
1026
  * @param session - The session to create.
1028
1027
  * @public
1029
1028
  * @documentationMaturity preview
@@ -1037,7 +1036,10 @@ export declare function createSession(session: Session): Promise<Session>;
1037
1036
  /**
1038
1037
  * Updates a session.
1039
1038
  *
1040
- * 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:
1039
+ *
1040
+ * The `updateSession()` function returns a Promise that resolves to the updated session.
1041
+ *
1042
+ * 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 pattern definition affect the session instance:
1041
1043
  * |Change made to the instance | Effect of changes made to the recurrence
1042
1044
  * |--|--|
1043
1045
  * |Instance `start` time changed.|Changes to the recurring session's `start` or `end` time will not update the instance.|
@@ -1050,7 +1052,7 @@ export declare function createSession(session: Session): Promise<Session>;
1050
1052
  *
1051
1053
  * >**Notes:**
1052
1054
  * > + Where there is no explicit timezone information, the timezone used is the business’s timezone.
1053
- * > + 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`.
1055
+ * > + This function is restricted and only runs if you elevate permissions using the [`wix-auth.elevate()`](https://www.wix.com/velo/reference/wix-auth/elevate) function.
1054
1056
  * @param _id - Session ID.
1055
1057
  * @public
1056
1058
  * @documentationMaturity preview
@@ -1148,11 +1150,10 @@ export interface UpdateSession {
1148
1150
  externalCalendarOverrides?: ExternalCalendarOverrides;
1149
1151
  /**
1150
1152
  * Session status.
1151
- * <!--ONLY:VELO
1152
- * One of:
1153
- * - `"CONFIRMED"` Default value.
1154
- * - `"CANCELLED"` The session was deleted.
1155
- * <!--END:ONLY:VELO-->
1153
+ *
1154
+ * Supported values:
1155
+ * - `CONFIRMED`: Default value.
1156
+ * - `CANCELLED`: The session was deleted.
1156
1157
  * @readonly
1157
1158
  */
1158
1159
  status?: Status;
@@ -1172,11 +1173,10 @@ export interface UpdateSession {
1172
1173
  recurringSessionId?: string | null;
1173
1174
  /**
1174
1175
  * Session type.
1175
- * <!--ONLY:VELO
1176
- * One of:
1177
- * - `"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.
1178
- * - `"WORKING_HOURS"` Placeholder for available time on a resource’s schedule.
1179
- * <!--END:ONLY:VELO-->
1176
+ *
1177
+ * Supported values:
1178
+ * - `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.
1179
+ * - `WORKING_HOURS`: Placeholder for available time on a resource’s schedule.
1180
1180
  */
1181
1181
  type?: SessionType;
1182
1182
  /**
@@ -1231,12 +1231,17 @@ export interface UpdateSessionOptions {
1231
1231
  /**
1232
1232
  * Deletes a session.
1233
1233
  *
1234
- * Use the `participantNotification` property to send an email to the participants when the session is deleted.
1235
- * When deleting a session of type `"EVENT"` where a booking exists, the booking's status is updated to `"CANCELED"`.
1236
- * To delete a set of recurring sessions, specify the session's `recurringSessionId` in the `sessionId` property in the parameters.
1234
+ *
1235
+ * The `deleteSession()` function returns a Promise that resolves when the session has been deleted.
1236
+ *
1237
+ * Use the `options.participantNotification` property to send an email notification to the participants when the session is deleted.
1238
+ *
1239
+ * When deleting a session of type `EVENT` where a booking exists, the booking's status is updated to `CANCELED`.
1240
+ *
1241
+ * To delete a set of recurring sessions, specify the session's `recurringSessionId` in the `sessionId` parameter.
1237
1242
  * When deleting a recurrence, only future instances of the recurrence are deleted.
1238
1243
  *
1239
- * >**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`.
1244
+ * >**Note:** This function is restricted and only runs if you elevate permissions using the [`wix-auth.elevate()`](https://www.wix.com/velo/reference/wix-auth/elevate) function.
1240
1245
  * @param sessionId - The ID of the session to delete.
1241
1246
  * @public
1242
1247
  * @documentationMaturity preview
@@ -1250,29 +1255,31 @@ export interface DeleteSessionOptions {
1250
1255
  /**
1251
1256
  * Retrieves a list of sessions, given the provided time range, filtering, and paging.
1252
1257
  *
1253
- * Query Sessions runs with these defaults, which you can override:
1258
+ *
1259
+ * The `querySessions()` function builds a query to retrieve a list of sessions, and returns a `SessionQueryBuilder` object.
1260
+ *
1261
+ * The returned object contains the query definition, which is typically used to run the query using the `find()` function.
1262
+ *
1263
+ * You can refine the query by chaining `SessionQueryBuilder` functions to the query, before chaining `find()`. These enable you to filter and control the results a query returns.
1264
+ *
1265
+ * The `querySessions()` function runs with these defaults, which you can override:
1254
1266
  * - All session types are returned.
1255
- * - `instances` is true. This means only single sessions and instances of recurring sessions are returned.
1267
+ * - `options.instances` is true. This means only single sessions and instances of recurring sessions are returned.
1256
1268
  * - Session objects are returned with the fields specified in the `NO_PI` fieldset. This means they don't contain personal information.
1257
- * - `query.cursorPaging.limit` is `100`.
1258
1269
  *
1259
1270
  * Note the following limitations, which you can't override:
1260
1271
  * - Sessions are always sorted by `start.timestamp` in `ASC` order.
1261
1272
  * - The maximum time range you can query is 1 year.
1262
1273
  *
1263
- * 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.
1274
+ * To query only for events, set `options.type` to `EVENT`. An event is a single or recurring session that appears in a calendar, for example an appointment or a class.
1264
1275
  *
1265
- * To query for recurring session pattern definitions, set `instances` to `false`. In this case, you don't need to specify a time range.
1276
+ * To query for recurring session pattern definitions, set `options.instances` to `false`. In this case, you don't need to specify a time range.
1266
1277
  *
1267
- * To return session objects including personal information, use the `ALL_PI` fieldset. This requires the CALENDAR.SESSION_READ_PI permission scope.
1278
+ * To return session objects including personal information, use the `ALL_PI` fieldset.
1268
1279
  *
1269
- * For details on fieldsets, see [Sessions: Supported Fieldsets](#fieldsets).
1280
+ * For details on fieldsets, see [Sessions: Supported Fieldsets](https://www.wix.com/velo/reference/wix-bookings-v2/sessions/fieldsets).
1270
1281
  *
1271
- * For field support for filters, see [Sessions: Supported Filters](#filtering).
1272
- *
1273
- * To learn about working with _Query_ endpoints in general, see
1274
- * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) and
1275
- * [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
1282
+ * >**Note:** This function is restricted and only runs if you elevate permissions using the [`wix-auth.elevate()`](https://www.wix.com/velo/reference/wix-auth/elevate) function.
1276
1283
  * @public
1277
1284
  * @documentationMaturity preview
1278
1285
  */
@@ -1299,6 +1306,9 @@ export interface QuerySessionsOptions {
1299
1306
  /**
1300
1307
  * Type of sessions to return.
1301
1308
  *
1309
+ * - `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.
1310
+ * - `WORKING_HOURS`: Placeholder for available time on a resource’s schedule.
1311
+ *
1302
1312
  * Default: `UNDEFINED`. This returns sessions of all types.
1303
1313
  */
1304
1314
  type?: SessionType | undefined;
@@ -1352,8 +1362,12 @@ export interface SessionsQueryBuilder {
1352
1362
  * Retrieves a session by ID.
1353
1363
  *
1354
1364
  *
1365
+ * The `getSession()` function returns a Promise that resolves to a session with the specified session ID.
1366
+ *
1355
1367
  * By default, a session object is returned with the fields specified in the `NO_PI` fieldset. This means it doesn't contain personal information.
1356
- * To retrieve a full session object including all personal information, use the `ALL_PI` fieldset. This requires the CALENDAR.SESSION_READ_PI permission scope.
1368
+ * To retrieve a full session object including all personal information, use the `ALL_PI` fieldset.
1369
+ *
1370
+ * >**Note:** This function is restricted and only runs if you elevate permissions using the [`wix-auth.elevate()`](https://www.wix.com/velo/reference/wix-auth/elevate) function.
1357
1371
  * @param _id - ID of the session to retrieve.
1358
1372
  * @public
1359
1373
  * @documentationMaturity preview
@@ -1375,8 +1389,12 @@ export interface GetSessionOptions {
1375
1389
  * Retrieves a list of sessions by their IDs.
1376
1390
  *
1377
1391
  *
1392
+ * The `listSessions()` function returns a Promise that resolves to the sessions with the specified IDs.
1393
+ *
1378
1394
  * By default, session objects are returned with the fields specified in the `NO_PI` fieldset. This means they don't contain personal information.
1379
- * To retrieve full session objects including all personal information, use the `ALL_PI` fieldset. This requires the CALENDAR.SESSION_READ_PI permission scope.
1395
+ * To retrieve full session objects including all personal information, use the `ALL_PI` fieldset.
1396
+ *
1397
+ * >**Note:** This function is restricted and only runs if you elevate permissions using the [`wix-auth.elevate()`](https://www.wix.com/velo/reference/wix-auth/elevate) function.
1380
1398
  * @param ids - IDs of the sessions to retrieve.
1381
1399
  * @public
1382
1400
  * @documentationMaturity preview
@@ -150,26 +150,31 @@ const _updateSessionResponse = { session: '_session' };
150
150
  /**
151
151
  * Creates a session.
152
152
  *
153
+ *
154
+ * The `createSession()` function returns a Promise that resolves when a session is created.
153
155
  * A session is one of the following:
154
- * + `"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.
155
- * + `"WORKING_HOURS"`: Placeholder for available time on a resource’s schedule. Set `type` to `"WORKING_HOURS"` when creating sessions for resource availability.
156
+ * + `EVENT`: Reserved period of time on any schedule. 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.
157
+ * + `WORKING_HOURS`: Placeholder for available time on a resource’s schedule. Set `type` to `WORKING_HOURS` when creating sessions for resource availability.
156
158
  *
157
159
  * Sessions belong to a schedule. Schedules are owned by a resource or a service.
158
160
  *
159
161
  * A session may be an individual session or a recurring session.
160
162
  * 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.
163
+ *
161
164
  * 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.
162
- * 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.
165
+ * For recurring sessions, use the `localDateTime` property only.
166
+ *
167
+ * 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.
163
168
  *
164
169
  * 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`.
170
+ *
165
171
  * The `UNTIL` keyword in the `recurrence` property sets the date for the last recurring session.
166
172
  *
167
- * You can create a session that blocks hours on the resource's calendar, making the resource unavailable.
168
- * Create a non-recurring session of type `"EVENT"`, and add `"Blocked"` to the `tags` array.
173
+ * You can create a session that blocks hours on the resource's calendar, making the resource unavailable, by creating a non-recurring session of type `"EVENT"`, and add `"Blocked"` to the `tags` array.
169
174
  *
170
175
  * >**Notes:**
171
176
  * > + For properties where there is no explicit timezone information, the timezone used is the business’s timezone.
172
- * > + 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`.
177
+ * > + This function is restricted and only runs if you elevate permissions using the [`wix-auth.elevate()`](https://www.wix.com/velo/reference/wix-auth/elevate) function.
173
178
  * @param session - The session to create.
174
179
  * @public
175
180
  * @documentationMaturity preview
@@ -225,7 +230,10 @@ export function createSession(session) {
225
230
  /**
226
231
  * Updates a session.
227
232
  *
228
- * 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:
233
+ *
234
+ * The `updateSession()` function returns a Promise that resolves to the updated session.
235
+ *
236
+ * 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 pattern definition affect the session instance:
229
237
  * |Change made to the instance | Effect of changes made to the recurrence
230
238
  * |--|--|
231
239
  * |Instance `start` time changed.|Changes to the recurring session's `start` or `end` time will not update the instance.|
@@ -238,7 +246,7 @@ export function createSession(session) {
238
246
  *
239
247
  * >**Notes:**
240
248
  * > + Where there is no explicit timezone information, the timezone used is the business’s timezone.
241
- * > + 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`.
249
+ * > + This function is restricted and only runs if you elevate permissions using the [`wix-auth.elevate()`](https://www.wix.com/velo/reference/wix-auth/elevate) function.
242
250
  * @param _id - Session ID.
243
251
  * @public
244
252
  * @documentationMaturity preview
@@ -298,12 +306,17 @@ export function updateSession(_id, session, options) {
298
306
  /**
299
307
  * Deletes a session.
300
308
  *
301
- * Use the `participantNotification` property to send an email to the participants when the session is deleted.
302
- * When deleting a session of type `"EVENT"` where a booking exists, the booking's status is updated to `"CANCELED"`.
303
- * To delete a set of recurring sessions, specify the session's `recurringSessionId` in the `sessionId` property in the parameters.
309
+ *
310
+ * The `deleteSession()` function returns a Promise that resolves when the session has been deleted.
311
+ *
312
+ * Use the `options.participantNotification` property to send an email notification to the participants when the session is deleted.
313
+ *
314
+ * When deleting a session of type `EVENT` where a booking exists, the booking's status is updated to `CANCELED`.
315
+ *
316
+ * To delete a set of recurring sessions, specify the session's `recurringSessionId` in the `sessionId` parameter.
304
317
  * When deleting a recurrence, only future instances of the recurrence are deleted.
305
318
  *
306
- * >**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`.
319
+ * >**Note:** This function is restricted and only runs if you elevate permissions using the [`wix-auth.elevate()`](https://www.wix.com/velo/reference/wix-auth/elevate) function.
307
320
  * @param sessionId - The ID of the session to delete.
308
321
  * @public
309
322
  * @documentationMaturity preview
@@ -359,29 +372,31 @@ export function deleteSession(sessionId, options) {
359
372
  /**
360
373
  * Retrieves a list of sessions, given the provided time range, filtering, and paging.
361
374
  *
362
- * Query Sessions runs with these defaults, which you can override:
375
+ *
376
+ * The `querySessions()` function builds a query to retrieve a list of sessions, and returns a `SessionQueryBuilder` object.
377
+ *
378
+ * The returned object contains the query definition, which is typically used to run the query using the `find()` function.
379
+ *
380
+ * You can refine the query by chaining `SessionQueryBuilder` functions to the query, before chaining `find()`. These enable you to filter and control the results a query returns.
381
+ *
382
+ * The `querySessions()` function runs with these defaults, which you can override:
363
383
  * - All session types are returned.
364
- * - `instances` is true. This means only single sessions and instances of recurring sessions are returned.
384
+ * - `options.instances` is true. This means only single sessions and instances of recurring sessions are returned.
365
385
  * - Session objects are returned with the fields specified in the `NO_PI` fieldset. This means they don't contain personal information.
366
- * - `query.cursorPaging.limit` is `100`.
367
386
  *
368
387
  * Note the following limitations, which you can't override:
369
388
  * - Sessions are always sorted by `start.timestamp` in `ASC` order.
370
389
  * - The maximum time range you can query is 1 year.
371
390
  *
372
- * 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.
373
- *
374
- * To query for recurring session pattern definitions, set `instances` to `false`. In this case, you don't need to specify a time range.
391
+ * To query only for events, set `options.type` to `EVENT`. An event is a single or recurring session that appears in a calendar, for example an appointment or a class.
375
392
  *
376
- * To return session objects including personal information, use the `ALL_PI` fieldset. This requires the CALENDAR.SESSION_READ_PI permission scope.
393
+ * To query for recurring session pattern definitions, set `options.instances` to `false`. In this case, you don't need to specify a time range.
377
394
  *
378
- * For details on fieldsets, see [Sessions: Supported Fieldsets](#fieldsets).
395
+ * To return session objects including personal information, use the `ALL_PI` fieldset.
379
396
  *
380
- * For field support for filters, see [Sessions: Supported Filters](#filtering).
397
+ * For details on fieldsets, see [Sessions: Supported Fieldsets](https://www.wix.com/velo/reference/wix-bookings-v2/sessions/fieldsets).
381
398
  *
382
- * To learn about working with _Query_ endpoints in general, see
383
- * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) and
384
- * [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
399
+ * >**Note:** This function is restricted and only runs if you elevate permissions using the [`wix-auth.elevate()`](https://www.wix.com/velo/reference/wix-auth/elevate) function.
385
400
  * @public
386
401
  * @documentationMaturity preview
387
402
  */
@@ -440,8 +455,12 @@ export function querySessions(options) {
440
455
  * Retrieves a session by ID.
441
456
  *
442
457
  *
458
+ * The `getSession()` function returns a Promise that resolves to a session with the specified session ID.
459
+ *
443
460
  * By default, a session object is returned with the fields specified in the `NO_PI` fieldset. This means it doesn't contain personal information.
444
- * To retrieve a full session object including all personal information, use the `ALL_PI` fieldset. This requires the CALENDAR.SESSION_READ_PI permission scope.
461
+ * To retrieve a full session object including all personal information, use the `ALL_PI` fieldset.
462
+ *
463
+ * >**Note:** This function is restricted and only runs if you elevate permissions using the [`wix-auth.elevate()`](https://www.wix.com/velo/reference/wix-auth/elevate) function.
445
464
  * @param _id - ID of the session to retrieve.
446
465
  * @public
447
466
  * @documentationMaturity preview
@@ -496,8 +515,12 @@ export function getSession(_id, options) {
496
515
  * Retrieves a list of sessions by their IDs.
497
516
  *
498
517
  *
518
+ * The `listSessions()` function returns a Promise that resolves to the sessions with the specified IDs.
519
+ *
499
520
  * By default, session objects are returned with the fields specified in the `NO_PI` fieldset. This means they don't contain personal information.
500
- * To retrieve full session objects including all personal information, use the `ALL_PI` fieldset. This requires the CALENDAR.SESSION_READ_PI permission scope.
521
+ * To retrieve full session objects including all personal information, use the `ALL_PI` fieldset.
522
+ *
523
+ * >**Note:** This function is restricted and only runs if you elevate permissions using the [`wix-auth.elevate()`](https://www.wix.com/velo/reference/wix-auth/elevate) function.
501
524
  * @param ids - IDs of the sessions to retrieve.
502
525
  * @public
503
526
  * @documentationMaturity preview
@@ -1 +1 @@
1
- {"version":3,"file":"bookings-calendar-v1-session.universal.js","sourceRoot":"","sources":["../../../src/bookings-calendar-v1-session.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,UAAU,EACV,cAAc,EACd,qCAAqC,GACtC,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,sCAAsC,MAAM,qCAAqC,CAAC;AAC9F,aAAa;AACb,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAE7E,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;A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,UAAU,EAAE,qBAAqB;YACjC,UAAU,EAAE,EAAE,SAAS,EAAE,kBAAkB,EAAE,QAAQ,EAAE;YACvD,kBAAkB,EAAE;gBAClB,KAAK,EAAE,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;gBAC9B,cAAc,EAAE,aAAa;aAC9B;YACD,oBAAoB,EAAE,sBAAsB;SAC7C,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,mBAAmB,CAAC,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC;QAEpD,MAAM,OAAO,GAAG,sCAAsC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAE7E,KAAK,CAAC,wCAAwC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAEpE,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,+CAAvB,WAAW,CAAgB,CAAC;QAC5B,IAAI;YACF,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,+CAAtB,WAAW,EAAc,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;SACrC;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,cAAc,CAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,KAAK;gBACL,SAAS;aACV,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF"}
1
+ {"version":3,"file":"bookings-calendar-v1-session.universal.js","sourceRoot":"","sources":["../../../src/bookings-calendar-v1-session.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,UAAU,EACV,cAAc,EACd,qCAAqC,GACtC,MAAM,yBAAyB,C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,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,+CAAtB,WAAW,EAAc,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;SACrC;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,cAAc,CAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,KAAK;gBACL,SAAS;aACV,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF"}
@@ -0,0 +1,64 @@
1
+ import { RequestOptionsFactory } from '@wix/sdk-types';
2
+ import { CloneServiceOptionsAndVariantsRequest, CloneServiceOptionsAndVariantsResponse, CreateServiceOptionsAndVariantsRequest, CreateServiceOptionsAndVariantsResponse, DeleteServiceOptionsAndVariantsRequest, DeleteServiceOptionsAndVariantsResponse, GetServiceOptionsAndVariantsByServiceIdRequest, GetServiceOptionsAndVariantsByServiceIdResponse, GetServiceOptionsAndVariantsRequest, GetServiceOptionsAndVariantsResponse, QueryServiceOptionsAndVariantsRequest, QueryServiceOptionsAndVariantsResponse, UpdateServiceOptionsAndVariantsRequest, UpdateServiceOptionsAndVariantsResponse } from './bookings-catalog-v1-service-options-and-variants.types';
3
+ /**
4
+ * Creates options and variants for a service. Note that only a single
5
+ * `serviceOptionsAndVariants` object is supported per service.
6
+ *
7
+ *
8
+ * Currently, only a single option is supported per `serviceOptionsAndVariants` object.
9
+ *
10
+ * Before creating the `serviceOptionsAndVariants` object you need to calculate
11
+ * all variants, since you must pass them in the `variants` array of the
12
+ * request. Variants aren't automatically calculated from the options. Currently,
13
+ * services are limited to a single option. Therefore, the variants
14
+ * array is equal to the list of all choices for custom options,
15
+ * or all staff members providing the service for staff member based options.
16
+ */
17
+ export declare function createServiceOptionsAndVariants(payload: CreateServiceOptionsAndVariantsRequest): RequestOptionsFactory<CreateServiceOptionsAndVariantsResponse>;
18
+ /**
19
+ * Clones a `serviceOptionsAndVariants` object. This endpoint can be called, for example, when duplicating a service.
20
+ * The result is a deep clone in which all Service Options and Service Variants are duplicated. Each Service Option
21
+ * in the clone will have a newly generated ID that is copied to all Service Choices of the Service Variants in the
22
+ * clone. The clone will reference the service provided in the request by `target_service_id`.
23
+ */
24
+ export declare function cloneServiceOptionsAndVariants(payload: CloneServiceOptionsAndVariantsRequest): RequestOptionsFactory<CloneServiceOptionsAndVariantsResponse>;
25
+ /** Retrieves a `serviceOptionsAndVariants` object. */
26
+ export declare function getServiceOptionsAndVariants(payload: GetServiceOptionsAndVariantsRequest): RequestOptionsFactory<GetServiceOptionsAndVariantsResponse>;
27
+ /** Retrieves a service's options and variants by `service_id`. */
28
+ export declare function getServiceOptionsAndVariantsByServiceId(payload: GetServiceOptionsAndVariantsByServiceIdRequest): RequestOptionsFactory<GetServiceOptionsAndVariantsByServiceIdResponse>;
29
+ /**
30
+ * Updates the specified fields of the `serviceOptionsAndVariants` object.
31
+ *
32
+ * Currently, only a single option is supported per `serviceOptionsAndVariants` object.
33
+ *
34
+ * If you want to update `variants`, you must pass the full list of supported variants.
35
+ *
36
+ * If you want to update `options`, you must pass the full list of supported options.
37
+ */
38
+ export declare function updateServiceOptionsAndVariants(payload: UpdateServiceOptionsAndVariantsRequest): RequestOptionsFactory<UpdateServiceOptionsAndVariantsResponse>;
39
+ /**
40
+ * Deletes a `serviceOptionsAndVariants` object.
41
+ *
42
+ *
43
+ * Since each service has only a single `serviceOptionsAndVariants` object, the
44
+ * service won't have any supported options and variants any longer. Instead
45
+ * the standard Wix Bookings service price calculation will be used.
46
+ */
47
+ export declare function deleteServiceOptionsAndVariants(payload: DeleteServiceOptionsAndVariantsRequest): RequestOptionsFactory<DeleteServiceOptionsAndVariantsResponse>;
48
+ /**
49
+ * Retrieves a list of `serviceOptionsAndVariants`, given the provided paging, filtering, and sorting.
50
+ *
51
+ * Query Service Options And Variants runs with these defaults, which you can override:
52
+ *
53
+ * - `id` is sorted in `ASC` order
54
+ * - `cursorPaging.limit` is `100`
55
+ *
56
+ * For a detailed list of supported filtering operations see
57
+ * [supported filters](https://dev.wix.com/api/rest/wix-bookings/service-variants/supported-filters).
58
+ *
59
+ * To learn about working with _Query_ endpoints, see
60
+ * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
61
+ * [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination),
62
+ * and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
63
+ */
64
+ export declare function queryServiceOptionsAndVariants(payload: QueryServiceOptionsAndVariantsRequest): RequestOptionsFactory<QueryServiceOptionsAndVariantsResponse>;