@wix/bookings 1.0.236 → 1.0.237

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.
@@ -1,27 +1,19 @@
1
1
  import { RequestOptionsFactory } from '@wix/sdk-types';
2
2
  import { CreateResourceRequest, CreateResourceResponse, DeleteResourceRequest, DeleteResourceResponse, QueryResourcesRequest, QueryResourcesResponse, UpdateResourceRequest, UpdateResourceResponse, ResourceUpdateScheduleRequest, UpdateScheduleResponse, QueryResourcesResponseNonNullableFields, CreateResourceResponseNonNullableFields, UpdateResourceResponseNonNullableFields, UpdateScheduleResponseNonNullableFields, DeleteResourceResponseNonNullableFields } from './bookings-catalog-v1-resource.types';
3
3
  /**
4
- * Retrieves a list of the resources according to the specified filters and paging.
4
+ * Creates a query to retrieve extended resource information.
5
5
  *
6
- * The query parameter is optional. If no query is provided then all non-deleted resources are returned.
7
- * Resources that are in a resource group (i.e. the group_id property contains an ID) are excluded from the result for backwards compatibility unless the `include_resources_with_groups` request field is set to true.
6
+ * The `queryResources()` function builds a query to retrieve a catalog of resources, including resources' related schedules and slugs, and returns a [`ResourceQueryBuilder`](#) object. The returned object contains the query definition, which is typically used to run the query using the [`find()`](#) function.
8
7
  *
9
- * |Property|Is supported|
10
- * |--|--|
11
- * |filter | supported fields: `resource.id`, `resource.tags`, `resource.status`|
12
- * |paging | supported |
13
- * |fields | supported |
14
- * |fieldsets | **not supported** |
15
- * |sort | **not supported** |
8
+ * The `ResourceQueryBuilder` functions enable you to run, filter, and control which results a query returns.
16
9
  *
10
+ * Typically, you build a query using the `queryResources()` function, refine the query by chaining `ResourceQueryBuilder` functions, and then execute the query by chaining the `find()` function.
17
11
  *
18
- * >**Notes:**
19
- * > + The following objects in the `query` parameter are not supported for this query:
20
- * > - `sort`
21
- * > - `fieldsets`
12
+ * The query runs with the following defaults that you can override:
13
+ * - [`skip`](#): `0`
14
+ * - [`limit`](#): `50`
22
15
  *
23
- * > **Permissions**
24
- * > This endpoint requires the Read Bookings Calendar, Read Bookings - Public Data, Read Bookings - Including Participants or Manage Bookings permission scope.
16
+ * The following query builder functions are supported for `queryResources()`. For a full description of the `Resources` object, see the object returned for the [`items`](#) array in [`ResourceQueryResult`](#).
25
17
  */
26
18
  export declare function query(payload: QueryResourcesRequest): RequestOptionsFactory<QueryResourcesResponse & QueryResourcesResponseNonNullableFields>;
27
19
  /**
@@ -29,88 +21,62 @@ export declare function query(payload: QueryResourcesRequest): RequestOptionsFac
29
21
  *
30
22
  *
31
23
  * The `createResource()` function returns a Promise that resolves to the created resource.
32
- * Bookings resources are created with a schedule. The schedule and its sessions determine the resource's availability. Note that the schedule must contain a start date in the availability.start property. For resources that are available during the business's default hours, add the business's schedule as a linked schedule in the resource's schedule. For resources that have their own hours, create sessions with type `WORKING_HOURS` using the resource's schedule. You can use both individual and recurring sessions to define resource availability. You cannot use availability constraints for resource schedules.
24
+ * Bookings resources are created with a schedule. The schedule and its sessions determine the resource's availability. Note that the schedule must contain a start date in the `availability.start` property. For resources that are available during the business's default hours, add the business's schedule as a linked schedule in the resource's schedule. For resources that have their own hours, create sessions with type `WORKING_HOURS` using the resource's schedule. You can use both individual and recurring sessions to define resource availability. You cannot use availability constraints for resource schedules.
33
25
  *
34
26
  *
35
27
  * When creating a resource using `createResource()`, include the resource's schedule information. Set the schedule information as follows:
36
28
  * - If the resource uses the default business hours, get the business resource's schedule ID and include it in the `scheduleInfo.availability.linkedSchedules` array in the `scheduleInfo` parameter. The default hours can bee found in the Dashboard under **Settings** in the **Bookings** section, on the **Appointment hours** page.
37
- * - If the resource has its own custom working hours, create the resource, then create sessions of type `WORKING_HOURS` using the [`createSession()`](wix-bookings-v2/sessions/createsession) function. Use the `scheduleId` returned from `createResource()` when creating the sessions. These session can be single sessions or recurring sessions.
29
+ * - If the resource has its own custom working hours, create the resource, then create sessions of type `WORKING_HOURS` using the [`createSession()`](#createsession) function. Use the `scheduleId` returned from `createResource()` when creating the sessions. These session can be single sessions or recurring sessions.
38
30
  * - You can have both default business hours and custom hours for the same resource schedule by combining the steps above.
39
31
  *
40
32
  *
41
33
  * > **Notes:**
42
- * - The Wix Bookings app does not show both default business hours and custom hours on the **Staff** page in the dashboard. If you've set up both custom and default business hours, only the default business hours will appear in the app, although both are working.
43
- * - The Wix Bookings app does not show non-recurring `WORKING_HOURS` sessions in the resource calendar.
44
- * - You can only add the business resource's schedule as a linked schedule for a resource.
45
- * - A resource can have one schedule only.
46
- * - You can have up to 135 active resources and an additional 135 deleted resources.
47
- * - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can create a resource.
34
+ * >- The Wix Bookings app does not show both default business hours and custom hours on the **Staff** page in the dashboard. If you've set up both custom and default business hours, only the default business hours will appear in the app, although both are working.
35
+ * >- The Wix Bookings app does not show non-recurring `WORKING_HOURS` sessions in the resource calendar.
36
+ * >- You can only add the business resource's schedule as a linked schedule for a resource.
37
+ * >- A resource can have one schedule only.
38
+ * >- You can have up to 135 active resources and an additional 135 deleted resources.
48
39
  */
49
40
  export declare function create(payload: CreateResourceRequest): RequestOptionsFactory<CreateResourceResponse & CreateResourceResponseNonNullableFields>;
50
41
  /**
51
42
  * Updates a resource.
52
43
  *
53
44
  *
54
- * The `updateResource()` function returns a Promise that resolves when a resource is updated. Use this function to update all bookings resource information except for the resource's schedule. To update a resource's schedule use [`updateResourceSchedule()`](#updateresourceschedule).
45
+ * The `updateResource()` function returns a Promise that resolves when a resource is updated. Use this function to update all bookings resource information except for the resource's schedule. To update a resource's schedule use [`updateSchedule()`](#updateschedule).
55
46
  *
56
47
  *
57
- * >**Notes:**
58
- * - When updating a resource you cannot change the system tags used by the Wix Bookings app. Tags used by the app have the values `"business"` and `"staff"`.
59
- * - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can update a resource.
48
+ * >**Note:**
49
+ * > When updating a resource you cannot change the system tags used by the Wix Bookings app. Tags used by the app have the values `"business"` and `"staff"`.
60
50
  */
61
51
  export declare function update(payload: UpdateResourceRequest): RequestOptionsFactory<UpdateResourceResponse & UpdateResourceResponseNonNullableFields>;
62
52
  /**
63
- * Updates a resource's schedule
64
- * <!--ONLY:VELO
65
- * The `updateResourceSchedule()` function returns a Promise that resolves when a resource's schedule has been updated.
66
- * Use this function to update the bookings resource's schedule. To update other resource details use [`updateResource()`] (wix-bookings-backend/resources/updateresource).
53
+ * Updates a resource's schedule.
54
+ *
55
+ *
56
+ * The `updateSchedule()` function returns a Promise that resolves when a resource's schedule has been updated. Use this function to update the bookings resource's schedule. To update other resource details use [`updateResource()`](#updateresource).
57
+ *
67
58
  * The following schedule properties can be updated:
68
- * + `availability.start`
69
- * + `availability.linkedSchedules`
70
- * <!--END:ONLY:VELO-->
59
+ *
60
+ * - `availability.start`
61
+ *
62
+ * - `availability.linkedSchedules`
63
+ *
71
64
  *
72
65
  * To update a resource's schedule to remove business hours and add custom hours:
73
- * <!--ONLY:REST-->
74
- * + Update the resource's schedule to remove the business's `scheduleId` from the `availability.linkedSchedules` array.
75
- * + Create a set of recurring sessions of type `"WORKING_HOURS"` to define the resource's new hours.
76
- * <!--END:ONLY:REST-->
77
- * <!--ONLY:VELO
78
- * + Use [`updateResourceSchedule()`](wix-bookings-backend.Resources/updateresourcesession) to remove the business's scheduleId from the `availability.linkedSchedules` array.
79
- * + Use [`createSession()`](wix-bookings-backend.Sessions/createsession) to create a set of recurring sessions of type `"WORKING_HOURS"` to define the resource's new hours.
80
- * <!--END:ONLY:VELO-->
66
+ * - Use [`updateSchedule()`](#updateschedule) to remove the business's scheduleId from the `availability.linkedSchedules` array.
67
+ * - Use [`createSession()`](#createsession) to create a set of recurring sessions of type `"WORKING_HOURS"` to define the resource's new hours.
81
68
  *
82
- * To update a resource's schedule to add default business hours, and keep or remove custom hours:
83
- * <!--ONLY:REST-->
84
- * + Update the resource's schedule to add the business resource's `scheduleId` to the `availability.linkedSchedules` array.
85
- * + If you want to remove the custom sessions, delete the resource's sessions of type `"WORKING_HOURS"`.
86
- * You do not have to delete exiting custom sessions. Custom session that are not deleted will continue to be included in availability calculations and can still be booked.
87
- * <!--END:ONLY:REST-->
88
- * <!--ONLY:VELO
89
- * + Use [`updateResourceSchedule()`](wix-bookings-backend.Resources/updateresourcesession) to add the business resource's `scheduleId` to the `availability.linkedSchedules` array.
90
- * + If you want to remove the custom sessions, use [`deleteSession()`](wix-bookings-backend.Sessions/deletesession) to delete the resource's sessions of type `"WORKING_HOURS"`. You do not have to delete exiting custom sessions. You can have both default working hours and custom hours for the same schedule. Custom sessions that are not deleted will continue to be included in availability calculations and can still be booked.
91
69
  *
92
- * > **Notes:**
93
- * > + The Wix Bookings app does not show both default business hours and custom hours on the **Staff** page in the dashboard. If you've set up both custom and default business hours, only the default business hours will appear in the app, although both are working.
94
- * > + A resource can have one schedule only.
95
- * > + A resource can have both default business hours and custom hours in its schedule.
96
- * > + When updating a resource's schedule you cannot change the system tags used by the Wix Bookings app. Tags used by the app have the values `"INDIVIDUAL"`, `"GROUP"`, and `"COURSE”`.
97
- * > + Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can update a resource schedule. You can override the role permissions by setting the `options.suppressAuth` parameter to `true`.
98
- * @snippet [updateResourceScheduleDefaultToCustom.es6=Update a resource's schedule from business to custom hours]
99
- * Update a resource's schedule from the business's default working hours to 2 custom days per week.
100
- * @snippet [updateResourceScheduleCustomToDefault.es6=Update a resource's schedule from custom to business hours]
101
- * <!--END:ONLY:VELO-->
102
- * <!--ONLY:REST-->
103
- * >**Notes:**
104
- * > + A resource can have one schedule only.
105
- * > + A resource can have both default business hours and custom hours in its schedule.
106
- * > + When updating a resource's schedule you cannot change the system tags used by the Wix Bookings app. Tags used by the app have the values `"INDIVIDUAL"`, `"GROUP"`, and `"COURSE”`.
107
- * > + The `businessLocation.businessSchedule` object in the `schedule.location` object is not supported.
70
+ * To update a resource's schedule to add default business hours, and keep or remove custom hours:
108
71
  *
72
+ * - Use [`updateSchedule()`](#updateschedule) to add the business resource's `scheduleId` to the `availability.linkedSchedules` array.
109
73
  *
110
74
  *
111
- * >**Permissions:**
112
- * > This endpoint requires the Manage Bookings [permission scope](https://devforum.wix.com/kb/en/article/available-permissions).
113
- * <!--END:ONLY:REST-->
75
+ * > **Notes:**
76
+ * >- The Wix Bookings app does not show both default business hours and custom hours on the **Staff** page in the dashboard. If you've set up both custom and default business hours, only the default business hours will appear in the app, although both are working.
77
+ * >- A resource can have one schedule only.
78
+ * >- A resource can have both default business hours and custom hours in its schedule.
79
+ * >- When updating a resource's schedule you cannot change the system tags used by the Wix Bookings app. Tags used by the app have the values `"INDIVIDUAL"`, `"GROUP"`, and `"COURSE"`.
114
80
  */
115
81
  export declare function updateSchedule(payload: ResourceUpdateScheduleRequest): RequestOptionsFactory<UpdateScheduleResponse & UpdateScheduleResponseNonNullableFields>;
116
82
  /**
@@ -125,8 +91,7 @@ export declare function updateSchedule(payload: ResourceUpdateScheduleRequest):
125
91
  *
126
92
  *
127
93
  * >**Notes:**
128
- * - The Bookings app automatically creates a resource with a name and tag of value `business`. This resource is used for the business's schedule and working hours and cannot be deleted.
129
- * - You can have up to 135 active resources and an additional 135 deleted resources.
130
- * - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can delete a resource.
94
+ * >- The Bookings app automatically creates a resource with a name and tag of value `"business"`. This resource is used for the business's schedule and working hours and cannot be deleted.
95
+ * >- You can have up to 135 active resources and an additional 135 deleted resources.
131
96
  */
132
97
  export declare function _delete(payload: DeleteResourceRequest): RequestOptionsFactory<DeleteResourceResponse & DeleteResourceResponseNonNullableFields>;
@@ -178,27 +178,19 @@ function resolveComWixpressBookingsResourcesCoreApiV1ResourceResourcesServiceUrl
178
178
  return (0, metro_runtime_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
179
179
  }
180
180
  /**
181
- * Retrieves a list of the resources according to the specified filters and paging.
181
+ * Creates a query to retrieve extended resource information.
182
182
  *
183
- * The query parameter is optional. If no query is provided then all non-deleted resources are returned.
184
- * Resources that are in a resource group (i.e. the group_id property contains an ID) are excluded from the result for backwards compatibility unless the `include_resources_with_groups` request field is set to true.
183
+ * The `queryResources()` function builds a query to retrieve a catalog of resources, including resources' related schedules and slugs, and returns a [`ResourceQueryBuilder`](#) object. The returned object contains the query definition, which is typically used to run the query using the [`find()`](#) function.
185
184
  *
186
- * |Property|Is supported|
187
- * |--|--|
188
- * |filter | supported fields: `resource.id`, `resource.tags`, `resource.status`|
189
- * |paging | supported |
190
- * |fields | supported |
191
- * |fieldsets | **not supported** |
192
- * |sort | **not supported** |
185
+ * The `ResourceQueryBuilder` functions enable you to run, filter, and control which results a query returns.
193
186
  *
187
+ * Typically, you build a query using the `queryResources()` function, refine the query by chaining `ResourceQueryBuilder` functions, and then execute the query by chaining the `find()` function.
194
188
  *
195
- * >**Notes:**
196
- * > + The following objects in the `query` parameter are not supported for this query:
197
- * > - `sort`
198
- * > - `fieldsets`
189
+ * The query runs with the following defaults that you can override:
190
+ * - [`skip`](#): `0`
191
+ * - [`limit`](#): `50`
199
192
  *
200
- * > **Permissions**
201
- * > This endpoint requires the Read Bookings Calendar, Read Bookings - Public Data, Read Bookings - Including Participants or Manage Bookings permission scope.
193
+ * The following query builder functions are supported for `queryResources()`. For a full description of the `Resources` object, see the object returned for the [`items`](#) array in [`ResourceQueryResult`](#).
202
194
  */
203
195
  function query(payload) {
204
196
  const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_queryResourcesRequest, {});
@@ -236,22 +228,21 @@ exports.query = query;
236
228
  *
237
229
  *
238
230
  * The `createResource()` function returns a Promise that resolves to the created resource.
239
- * Bookings resources are created with a schedule. The schedule and its sessions determine the resource's availability. Note that the schedule must contain a start date in the availability.start property. For resources that are available during the business's default hours, add the business's schedule as a linked schedule in the resource's schedule. For resources that have their own hours, create sessions with type `WORKING_HOURS` using the resource's schedule. You can use both individual and recurring sessions to define resource availability. You cannot use availability constraints for resource schedules.
231
+ * Bookings resources are created with a schedule. The schedule and its sessions determine the resource's availability. Note that the schedule must contain a start date in the `availability.start` property. For resources that are available during the business's default hours, add the business's schedule as a linked schedule in the resource's schedule. For resources that have their own hours, create sessions with type `WORKING_HOURS` using the resource's schedule. You can use both individual and recurring sessions to define resource availability. You cannot use availability constraints for resource schedules.
240
232
  *
241
233
  *
242
234
  * When creating a resource using `createResource()`, include the resource's schedule information. Set the schedule information as follows:
243
235
  * - If the resource uses the default business hours, get the business resource's schedule ID and include it in the `scheduleInfo.availability.linkedSchedules` array in the `scheduleInfo` parameter. The default hours can bee found in the Dashboard under **Settings** in the **Bookings** section, on the **Appointment hours** page.
244
- * - If the resource has its own custom working hours, create the resource, then create sessions of type `WORKING_HOURS` using the [`createSession()`](wix-bookings-v2/sessions/createsession) function. Use the `scheduleId` returned from `createResource()` when creating the sessions. These session can be single sessions or recurring sessions.
236
+ * - If the resource has its own custom working hours, create the resource, then create sessions of type `WORKING_HOURS` using the [`createSession()`](#createsession) function. Use the `scheduleId` returned from `createResource()` when creating the sessions. These session can be single sessions or recurring sessions.
245
237
  * - You can have both default business hours and custom hours for the same resource schedule by combining the steps above.
246
238
  *
247
239
  *
248
240
  * > **Notes:**
249
- * - The Wix Bookings app does not show both default business hours and custom hours on the **Staff** page in the dashboard. If you've set up both custom and default business hours, only the default business hours will appear in the app, although both are working.
250
- * - The Wix Bookings app does not show non-recurring `WORKING_HOURS` sessions in the resource calendar.
251
- * - You can only add the business resource's schedule as a linked schedule for a resource.
252
- * - A resource can have one schedule only.
253
- * - You can have up to 135 active resources and an additional 135 deleted resources.
254
- * - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can create a resource.
241
+ * >- The Wix Bookings app does not show both default business hours and custom hours on the **Staff** page in the dashboard. If you've set up both custom and default business hours, only the default business hours will appear in the app, although both are working.
242
+ * >- The Wix Bookings app does not show non-recurring `WORKING_HOURS` sessions in the resource calendar.
243
+ * >- You can only add the business resource's schedule as a linked schedule for a resource.
244
+ * >- A resource can have one schedule only.
245
+ * >- You can have up to 135 active resources and an additional 135 deleted resources.
255
246
  */
256
247
  function create(payload) {
257
248
  const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_createResourceRequest, {
@@ -300,12 +291,11 @@ exports.create = create;
300
291
  * Updates a resource.
301
292
  *
302
293
  *
303
- * The `updateResource()` function returns a Promise that resolves when a resource is updated. Use this function to update all bookings resource information except for the resource's schedule. To update a resource's schedule use [`updateResourceSchedule()`](#updateresourceschedule).
294
+ * The `updateResource()` function returns a Promise that resolves when a resource is updated. Use this function to update all bookings resource information except for the resource's schedule. To update a resource's schedule use [`updateSchedule()`](#updateschedule).
304
295
  *
305
296
  *
306
- * >**Notes:**
307
- * - When updating a resource you cannot change the system tags used by the Wix Bookings app. Tags used by the app have the values `"business"` and `"staff"`.
308
- * - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can update a resource.
297
+ * >**Note:**
298
+ * > When updating a resource you cannot change the system tags used by the Wix Bookings app. Tags used by the app have the values `"business"` and `"staff"`.
309
299
  */
310
300
  function update(payload) {
311
301
  const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_updateResourceRequest, {
@@ -356,57 +346,33 @@ function update(payload) {
356
346
  }
357
347
  exports.update = update;
358
348
  /**
359
- * Updates a resource's schedule
360
- * <!--ONLY:VELO
361
- * The `updateResourceSchedule()` function returns a Promise that resolves when a resource's schedule has been updated.
362
- * Use this function to update the bookings resource's schedule. To update other resource details use [`updateResource()`] (wix-bookings-backend/resources/updateresource).
349
+ * Updates a resource's schedule.
350
+ *
351
+ *
352
+ * The `updateSchedule()` function returns a Promise that resolves when a resource's schedule has been updated. Use this function to update the bookings resource's schedule. To update other resource details use [`updateResource()`](#updateresource).
353
+ *
363
354
  * The following schedule properties can be updated:
364
- * + `availability.start`
365
- * + `availability.linkedSchedules`
366
- * <!--END:ONLY:VELO-->
355
+ *
356
+ * - `availability.start`
357
+ *
358
+ * - `availability.linkedSchedules`
359
+ *
367
360
  *
368
361
  * To update a resource's schedule to remove business hours and add custom hours:
369
- * <!--ONLY:REST-->
370
- * + Update the resource's schedule to remove the business's `scheduleId` from the `availability.linkedSchedules` array.
371
- * + Create a set of recurring sessions of type `"WORKING_HOURS"` to define the resource's new hours.
372
- * <!--END:ONLY:REST-->
373
- * <!--ONLY:VELO
374
- * + Use [`updateResourceSchedule()`](wix-bookings-backend.Resources/updateresourcesession) to remove the business's scheduleId from the `availability.linkedSchedules` array.
375
- * + Use [`createSession()`](wix-bookings-backend.Sessions/createsession) to create a set of recurring sessions of type `"WORKING_HOURS"` to define the resource's new hours.
376
- * <!--END:ONLY:VELO-->
362
+ * - Use [`updateSchedule()`](#updateschedule) to remove the business's scheduleId from the `availability.linkedSchedules` array.
363
+ * - Use [`createSession()`](#createsession) to create a set of recurring sessions of type `"WORKING_HOURS"` to define the resource's new hours.
377
364
  *
378
- * To update a resource's schedule to add default business hours, and keep or remove custom hours:
379
- * <!--ONLY:REST-->
380
- * + Update the resource's schedule to add the business resource's `scheduleId` to the `availability.linkedSchedules` array.
381
- * + If you want to remove the custom sessions, delete the resource's sessions of type `"WORKING_HOURS"`.
382
- * You do not have to delete exiting custom sessions. Custom session that are not deleted will continue to be included in availability calculations and can still be booked.
383
- * <!--END:ONLY:REST-->
384
- * <!--ONLY:VELO
385
- * + Use [`updateResourceSchedule()`](wix-bookings-backend.Resources/updateresourcesession) to add the business resource's `scheduleId` to the `availability.linkedSchedules` array.
386
- * + If you want to remove the custom sessions, use [`deleteSession()`](wix-bookings-backend.Sessions/deletesession) to delete the resource's sessions of type `"WORKING_HOURS"`. You do not have to delete exiting custom sessions. You can have both default working hours and custom hours for the same schedule. Custom sessions that are not deleted will continue to be included in availability calculations and can still be booked.
387
365
  *
388
- * > **Notes:**
389
- * > + The Wix Bookings app does not show both default business hours and custom hours on the **Staff** page in the dashboard. If you've set up both custom and default business hours, only the default business hours will appear in the app, although both are working.
390
- * > + A resource can have one schedule only.
391
- * > + A resource can have both default business hours and custom hours in its schedule.
392
- * > + When updating a resource's schedule you cannot change the system tags used by the Wix Bookings app. Tags used by the app have the values `"INDIVIDUAL"`, `"GROUP"`, and `"COURSE”`.
393
- * > + Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can update a resource schedule. You can override the role permissions by setting the `options.suppressAuth` parameter to `true`.
394
- * @snippet [updateResourceScheduleDefaultToCustom.es6=Update a resource's schedule from business to custom hours]
395
- * Update a resource's schedule from the business's default working hours to 2 custom days per week.
396
- * @snippet [updateResourceScheduleCustomToDefault.es6=Update a resource's schedule from custom to business hours]
397
- * <!--END:ONLY:VELO-->
398
- * <!--ONLY:REST-->
399
- * >**Notes:**
400
- * > + A resource can have one schedule only.
401
- * > + A resource can have both default business hours and custom hours in its schedule.
402
- * > + When updating a resource's schedule you cannot change the system tags used by the Wix Bookings app. Tags used by the app have the values `"INDIVIDUAL"`, `"GROUP"`, and `"COURSE”`.
403
- * > + The `businessLocation.businessSchedule` object in the `schedule.location` object is not supported.
366
+ * To update a resource's schedule to add default business hours, and keep or remove custom hours:
404
367
  *
368
+ * - Use [`updateSchedule()`](#updateschedule) to add the business resource's `scheduleId` to the `availability.linkedSchedules` array.
405
369
  *
406
370
  *
407
- * >**Permissions:**
408
- * > This endpoint requires the Manage Bookings [permission scope](https://devforum.wix.com/kb/en/article/available-permissions).
409
- * <!--END:ONLY:REST-->
371
+ * > **Notes:**
372
+ * >- The Wix Bookings app does not show both default business hours and custom hours on the **Staff** page in the dashboard. If you've set up both custom and default business hours, only the default business hours will appear in the app, although both are working.
373
+ * >- A resource can have one schedule only.
374
+ * >- A resource can have both default business hours and custom hours in its schedule.
375
+ * >- When updating a resource's schedule you cannot change the system tags used by the Wix Bookings app. Tags used by the app have the values `"INDIVIDUAL"`, `"GROUP"`, and `"COURSE"`.
410
376
  */
411
377
  function updateSchedule(payload) {
412
378
  const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_resourceUpdateScheduleRequest, {
@@ -463,9 +429,8 @@ exports.updateSchedule = updateSchedule;
463
429
  *
464
430
  *
465
431
  * >**Notes:**
466
- * - The Bookings app automatically creates a resource with a name and tag of value `business`. This resource is used for the business's schedule and working hours and cannot be deleted.
467
- * - You can have up to 135 active resources and an additional 135 deleted resources.
468
- * - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can delete a resource.
432
+ * >- The Bookings app automatically creates a resource with a name and tag of value `"business"`. This resource is used for the business's schedule and working hours and cannot be deleted.
433
+ * >- You can have up to 135 active resources and an additional 135 deleted resources.
469
434
  */
470
435
  function _delete(payload) {
471
436
  const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_deleteResourceRequest, {});
@@ -1 +1 @@
1
- {"version":3,"file":"bookings-catalog-v1-resource.http.js","sourceRoot":"","sources":["../../../src/bookings-catalog-v1-resource.http.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AACvD,8DAA2D;AAC3D,sDAAgD;AAqBhD,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,aAAa,GAAG;IACpB,KAAK,EAAE,2BAA2B;IAClC,GAAG,EAAE,2BAA2B;IAChC,SAAS,EAAE,WAAW;CACvB,CAAC;AACF,MAAM,aAAa,GAAG;IACpB,cAAc,EAAE,wBAAwB;IACxC,cAAc,EAAE,wBAAwB;IACxC,cAAc,EAAE,wBAAwB;CACzC,CAAC;AACF,MAAM,cAAc,GAAG;IACrB,OAAO,EAAE,WAAW;IACpB,OAAO,EAAE,WAAW;IACpB,SAAS,EAAE,WAAW;CACvB,CAAC;AACF,MAAM,sBAAsB,GAAG,EAAE,IAAI,EAAE,2BAA2B,EAAE,CAAC;AACrE,MAAM,sBAAs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;;;;;GAeG;AACH,SAAgB,OAAO,CACrB,OAA8B;IAI9B,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAA,uBAAU,EACrD,sBAAsB,EACtB,EAAE,CACH,CAAC;IACF,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAA,uBAAU,EAAC,uBAAuB,EAAE,EAAE,CAAC,CAAC;IAEtE,SAAS,SAAS,CAAC,EAAE,IAAI,EAAO;QAC9B,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,kCAAkC;YAC9C,MAAM,EAAE,QAAe;YACvB,SAAS,EACP,+EAA+E;YACjF,GAAG,EAAE,uEAAuE,CAC1E,EAAE,SAAS,EAAE,oBAAoB,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,CAChE;YACD,MAAM,EAAE,IAAA,iCAAiB,EAAC,cAAc,CAAC;YACzC,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,SAAS,CAAC,OAAO,GAAG,OAAO,CAAC;IAE5B,OAAO,SAAS,CAAC;AACnB,CAAC;AA/BD,0BA+BC"}
1
+ {"version":3,"file":"bookings-catalog-v1-resource.http.js","sourceRoot":"","sources":["../../../src/bookings-catalog-v1-resource.http.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AACvD,8DAA2D;AAC3D,sDAAgD;AAqBhD,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,aAAa,GAAG;IACpB,KAAK,EAAE,2BAA2B;IAClC,GAAG,EAAE,2BAA2B;IAChC,SAAS,EAAE,WAAW;CACvB,CAAC;AACF,MAAM,aAAa,G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