@wix/bookings 1.0.232 → 1.0.233

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.
@@ -26,69 +26,37 @@ import { CreateResourceRequest, CreateResourceResponse, DeleteResourceRequest, D
26
26
  export declare function query(payload: QueryResourcesRequest): RequestOptionsFactory<QueryResourcesResponse & QueryResourcesResponseNonNullableFields>;
27
27
  /**
28
28
  * Creates a resource.
29
- * <!--ONLY:VELO
30
- * The `createResource()` function returns a Promise that resolves to the created resource.
31
- * <!--END:ONLY:VELO-->
32
29
  *
33
- * 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.
34
- * 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.
35
- * You can use both individual and recurring sessions to define resource availability. You cannot use availability constraints for resource schedules.
36
- *
37
- * <!--ONLY:VELO
38
- * When creating a resource using `createResource()`, include the resource's schedule information. Set the schedule information as follows:
39
- * + 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.
40
- * + If the resource has its own custom working hours, create the resource, then create sessions of type `"WORKING_HOURS"` using the [`createSession()`](wix-bookings-backend.Sessions/createsession) function. Use the `scheduleId` returned from `createResource()` when creating the sessions. These session can be single sessions or recurring sessions.
41
- * + You can have both default business hours and custom hours for the same resource schedule by combining the steps above.
42
30
  *
43
- * > **Notes:**
44
- * > + 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.
45
- * > + The Wix Bookings app does not show non-recurring `WORKING_HOURS` sessions in the resource calendar.
46
- * > + You can only add the business resource's schedule as a linked schedule for a resource.
47
- * > + A resource can have one schedule only.
48
- * > + You can have up to 135 active resources and an additional 135 deleted resources.
49
- * > + Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can create a resource. You can override the role permissions by setting the `options.suppressAuth` parameter to `true`.
50
- * <!--END:ONLY:VELO-->
51
- *
52
- * <!--ONLY:REST-->
53
- * Use the following steps to create resources:
54
- * - Create the resource using including schedule information.
55
- * - 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 in the schedule parameters.
56
- * - If the resource has its own custom working hours, create sessions of type `"WORKING_HOURS"`. Use the `scheduleId` of the new resource when creating the sessions. These session can be single sessions or recurring sessions. You can have both business hours and custom hours for the same resource schedule.
31
+ * 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.
57
33
  *
58
- * >**Notes:**
59
- * > + A resource can have one schedule only.
60
- * > + You can have up to 135 active resources and an additional 135 deleted resources.
61
- * > + The `businessLocation.businessSchedule` object in the `schedule.location` object is not supported.
62
34
  *
35
+ * When creating a resource using `createResource()`, include the resource's schedule information. Set the schedule information as follows:
36
+ * - 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.
38
+ * - You can have both default business hours and custom hours for the same resource schedule by combining the steps above.
63
39
  *
64
40
  *
65
- * >**Permissions:**
66
- * > This endpoint requires the Manage Bookings [permission scope](https://devforum.wix.com/kb/en/article/available-permissions).
67
- * <!--END:ONLY:REST-->
41
+ * > **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.
68
48
  */
69
49
  export declare function create(payload: CreateResourceRequest): RequestOptionsFactory<CreateResourceResponse & CreateResourceResponseNonNullableFields>;
70
50
  /**
71
51
  * Updates a resource.
72
- * <!--ONLY:VELO
73
- * The `updateResource()` function returns a Promise that resolves when a resource is updated.
74
- * Use this function to update all bookings resource information except for the resource's schedule. To update a resource's schedule use [`updateResourceSchedule()`](wix-bookings-backend/resource/updateresourceschedule).
75
52
  *
76
- * >**Notes:**
77
- * > + 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"`.
78
- * > + Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can update a resource. You can override the role permissions by setting the `options.suppressAuth` parameter to `true`.
79
- * <!--END:ONLY:VELO-->
80
- * <!--ONLY:REST-->
81
- * Use this endpoint to update all resource information except for the resource's schedule. To update a resource's schedule use
82
- * the [Update Schedule](https://dev.wix.com/api/rest/wix-bookings/resources/update-schedule) endpoint.
83
53
  *
84
- * >**Notes:**
85
- * > + 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"`.
86
- * > + When updating a resource's schedule you cannot change the resource tag used by the Wix Bookings app. Tags used by the app have the values `"INDIVIDUAL"`, `"GROUP"`, and `"COURSE”`.
87
- * > + The `businessLocation.businessSchedule` object in the `schedule.location` object is not supported.
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).
88
55
  *
89
- * >**Permissions:**
90
- * > This endpoint requires the Manage Bookings [permission scope](https://devforum.wix.com/kb/en/article/available-permissions).
91
- * <!--END:ONLY:REST-->
56
+ *
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.
92
60
  */
93
61
  export declare function update(payload: UpdateResourceRequest): RequestOptionsFactory<UpdateResourceResponse & UpdateResourceResponseNonNullableFields>;
94
62
  /**
@@ -147,27 +115,18 @@ export declare function update(payload: UpdateResourceRequest): RequestOptionsFa
147
115
  export declare function updateSchedule(payload: ResourceUpdateScheduleRequest): RequestOptionsFactory<UpdateScheduleResponse & UpdateScheduleResponseNonNullableFields>;
148
116
  /**
149
117
  * Deletes a resource.
150
- * <!--ONLY:VELO
118
+ *
151
119
  * The `deleteResource()` function returns a Promise that is resolved when a resource is deleted.
152
- * <!--END:ONLY:VELO-->
153
- * Deleting a resource updates its `status` to `"DELETED"`.
120
+ *
121
+ *
122
+ * Deleting a resource updates its status to `DELETED`.
154
123
  *
155
124
  * You cannot delete a resource if it has booked sessions.
156
125
  *
157
- * <!--ONLY:VELO
158
- * >**Notes:**
159
- * > + 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.
160
- * > + You can have up to 135 active resources and an additional 135 deleted resources.
161
- * > + Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can delete a resource. You can override the role permissions by setting the `options.suppressAuth` parameter to `true`.
162
- * <!--END:ONLY:VELO-->
163
126
  *
164
- * <!--ONLY:REST-->
165
127
  * >**Notes:**
166
- * > + The Bookings app creates a resource with `"business"` in name and tag values. This resource is used for the business's schedule and working hours and cannot be deleted.
167
- * > + You can have up to 135 active resources and an additional 135 deleted resources.
168
- *
169
- * >**Permissions:**
170
- * > This endpoint requires the Manage Bookings [permission scope](https://devforum.wix.com/kb/en/article/available-permissions).
171
- * <!--END:ONLY:REST-->
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.
172
131
  */
173
132
  export declare function _delete(payload: DeleteResourceRequest): RequestOptionsFactory<DeleteResourceResponse & DeleteResourceResponseNonNullableFields>;
@@ -233,45 +233,25 @@ function query(payload) {
233
233
  exports.query = query;
234
234
  /**
235
235
  * Creates a resource.
236
- * <!--ONLY:VELO
237
- * The `createResource()` function returns a Promise that resolves to the created resource.
238
- * <!--END:ONLY:VELO-->
239
236
  *
240
- * 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.
241
- * 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.
242
- * You can use both individual and recurring sessions to define resource availability. You cannot use availability constraints for resource schedules.
243
- *
244
- * <!--ONLY:VELO
245
- * When creating a resource using `createResource()`, include the resource's schedule information. Set the schedule information as follows:
246
- * + 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.
247
- * + If the resource has its own custom working hours, create the resource, then create sessions of type `"WORKING_HOURS"` using the [`createSession()`](wix-bookings-backend.Sessions/createsession) function. Use the `scheduleId` returned from `createResource()` when creating the sessions. These session can be single sessions or recurring sessions.
248
- * + You can have both default business hours and custom hours for the same resource schedule by combining the steps above.
249
237
  *
250
- * > **Notes:**
251
- * > + 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.
252
- * > + The Wix Bookings app does not show non-recurring `WORKING_HOURS` sessions in the resource calendar.
253
- * > + You can only add the business resource's schedule as a linked schedule for a resource.
254
- * > + A resource can have one schedule only.
255
- * > + You can have up to 135 active resources and an additional 135 deleted resources.
256
- * > + Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can create a resource. You can override the role permissions by setting the `options.suppressAuth` parameter to `true`.
257
- * <!--END:ONLY:VELO-->
258
- *
259
- * <!--ONLY:REST-->
260
- * Use the following steps to create resources:
261
- * - Create the resource using including schedule information.
262
- * - 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 in the schedule parameters.
263
- * - If the resource has its own custom working hours, create sessions of type `"WORKING_HOURS"`. Use the `scheduleId` of the new resource when creating the sessions. These session can be single sessions or recurring sessions. You can have both business hours and custom hours for the same resource schedule.
238
+ * 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.
264
240
  *
265
- * >**Notes:**
266
- * > + A resource can have one schedule only.
267
- * > + You can have up to 135 active resources and an additional 135 deleted resources.
268
- * > + The `businessLocation.businessSchedule` object in the `schedule.location` object is not supported.
269
241
  *
242
+ * When creating a resource using `createResource()`, include the resource's schedule information. Set the schedule information as follows:
243
+ * - 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.
245
+ * - You can have both default business hours and custom hours for the same resource schedule by combining the steps above.
270
246
  *
271
247
  *
272
- * >**Permissions:**
273
- * > This endpoint requires the Manage Bookings [permission scope](https://devforum.wix.com/kb/en/article/available-permissions).
274
- * <!--END:ONLY:REST-->
248
+ * > **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.
275
255
  */
276
256
  function create(payload) {
277
257
  const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_createResourceRequest, {
@@ -318,26 +298,14 @@ function create(payload) {
318
298
  exports.create = create;
319
299
  /**
320
300
  * Updates a resource.
321
- * <!--ONLY:VELO
322
- * The `updateResource()` function returns a Promise that resolves when a resource is updated.
323
- * Use this function to update all bookings resource information except for the resource's schedule. To update a resource's schedule use [`updateResourceSchedule()`](wix-bookings-backend/resource/updateresourceschedule).
324
301
  *
325
- * >**Notes:**
326
- * > + 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"`.
327
- * > + Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can update a resource. You can override the role permissions by setting the `options.suppressAuth` parameter to `true`.
328
- * <!--END:ONLY:VELO-->
329
- * <!--ONLY:REST-->
330
- * Use this endpoint to update all resource information except for the resource's schedule. To update a resource's schedule use
331
- * the [Update Schedule](https://dev.wix.com/api/rest/wix-bookings/resources/update-schedule) endpoint.
332
302
  *
333
- * >**Notes:**
334
- * > + 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"`.
335
- * > + When updating a resource's schedule you cannot change the resource tag used by the Wix Bookings app. Tags used by the app have the values `"INDIVIDUAL"`, `"GROUP"`, and `"COURSE”`.
336
- * > + The `businessLocation.businessSchedule` object in the `schedule.location` object is not supported.
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).
337
304
  *
338
- * >**Permissions:**
339
- * > This endpoint requires the Manage Bookings [permission scope](https://devforum.wix.com/kb/en/article/available-permissions).
340
- * <!--END:ONLY:REST-->
305
+ *
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.
341
309
  */
342
310
  function update(payload) {
343
311
  const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_updateResourceRequest, {
@@ -485,28 +453,19 @@ function updateSchedule(payload) {
485
453
  exports.updateSchedule = updateSchedule;
486
454
  /**
487
455
  * Deletes a resource.
488
- * <!--ONLY:VELO
456
+ *
489
457
  * The `deleteResource()` function returns a Promise that is resolved when a resource is deleted.
490
- * <!--END:ONLY:VELO-->
491
- * Deleting a resource updates its `status` to `"DELETED"`.
458
+ *
459
+ *
460
+ * Deleting a resource updates its status to `DELETED`.
492
461
  *
493
462
  * You cannot delete a resource if it has booked sessions.
494
463
  *
495
- * <!--ONLY:VELO
496
- * >**Notes:**
497
- * > + 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.
498
- * > + You can have up to 135 active resources and an additional 135 deleted resources.
499
- * > + Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can delete a resource. You can override the role permissions by setting the `options.suppressAuth` parameter to `true`.
500
- * <!--END:ONLY:VELO-->
501
464
  *
502
- * <!--ONLY:REST-->
503
465
  * >**Notes:**
504
- * > + The Bookings app creates a resource with `"business"` in name and tag values. This resource is used for the business's schedule and working hours and cannot be deleted.
505
- * > + You can have up to 135 active resources and an additional 135 deleted resources.
506
- *
507
- * >**Permissions:**
508
- * > This endpoint requires the Manage Bookings [permission scope](https://devforum.wix.com/kb/en/article/available-permissions).
509
- * <!--END:ONLY:REST-->
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.
510
469
  */
511
470
  function _delete(payload) {
512
471
  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,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AEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,gBAAgB,CAAC,OAAO,GAAG,OAAO,CAAC;IAEnC,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAvDD,wCAuDC;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;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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/BD,0BA+BC"}
@@ -1,12 +1,12 @@
1
1
  import { HttpClient } from '@wix/sdk-types';
2
- import { Resource, CreateResourcesOptions, QueryResourcesOptions, UpdateResourcesOptions, UpdateScheduleOptions } from './bookings-catalog-v1-resource.universal';
2
+ import { Resource, CreateResourceOptions, QueryResourcesOptions, UpdateResourceOptions, UpdateScheduleOptions } from './bookings-catalog-v1-resource.universal';
3
3
  export declare const __metadata: {
4
4
  PACKAGE_NAME: string;
5
5
  };
6
6
  export declare function queryResources(httpClient: HttpClient): (options?: QueryResourcesOptions | undefined) => Promise<import("./bookings-catalog-v1-resource.universal").QueryResourcesResponse & import("./bookings-catalog-v1-resource.universal").QueryResourcesResponseNonNullableFields>;
7
- export declare function createResources(httpClient: HttpClient): (resource: Resource, options?: CreateResourcesOptions | undefined) => Promise<import("./bookings-catalog-v1-resource.universal").CreateResourceResponse & import("./bookings-catalog-v1-resource.universal").CreateResourceResponseNonNullableFields>;
8
- export declare function updateResources(httpClient: HttpClient): (_id: string | null, options?: UpdateResourcesOptions | undefined) => Promise<import("./bookings-catalog-v1-resource.universal").UpdateResourceResponse & import("./bookings-catalog-v1-resource.universal").UpdateResourceResponseNonNullableFields>;
7
+ export declare function createResource(httpClient: HttpClient): (resource: Resource, options?: CreateResourceOptions | undefined) => Promise<import("./bookings-catalog-v1-resource.universal").CreateResourceResponse & import("./bookings-catalog-v1-resource.universal").CreateResourceResponseNonNullableFields>;
8
+ export declare function updateResource(httpClient: HttpClient): (_id: string | null, options?: UpdateResourceOptions | undefined) => Promise<import("./bookings-catalog-v1-resource.universal").UpdateResourceResponse & import("./bookings-catalog-v1-resource.universal").UpdateResourceResponseNonNullableFields>;
9
9
  export declare function updateSchedule(httpClient: HttpClient): (resourceId: string | null, options?: UpdateScheduleOptions | undefined) => Promise<import("./bookings-catalog-v1-resource.universal").UpdateScheduleResponse & import("./bookings-catalog-v1-resource.universal").UpdateScheduleResponseNonNullableFields>;
10
- export declare function deleteResources(httpClient: HttpClient): (_id: string) => Promise<import("./bookings-catalog-v1-resource.universal").DeleteResourceResponse & import("./bookings-catalog-v1-resource.universal").DeleteResourceResponseNonNullableFields>;
10
+ export declare function deleteResource(httpClient: HttpClient): (_id: string) => Promise<import("./bookings-catalog-v1-resource.universal").DeleteResourceResponse & import("./bookings-catalog-v1-resource.universal").DeleteResourceResponseNonNullableFields>;
11
11
  export { Day, Transparency, RecurringIntervalType, LocationType, LocationStatus, LocationsLocationType, DayOfWeek, ApprovalStatus, ScheduleStatus, ConferenceType, ResourceStatus, SortOrder, Event, } from './bookings-catalog-v1-resource.universal';
12
- export { Resource, Schedule, RecurringInterval, Interval, Frequency, LinkedSchedule, Location, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, LocationsLocation, LocationsAddress, LocationsStreetAddress, LocationsAddressLocation, BusinessSchedule, TimePeriod, SpecialHourPeriod, Rate, Price, Availability, AvailabilityConstraints, SplitInterval, Participant, ExternalCalendarOverrides, Version, ConferenceProvider, CalendarConference, BusinessLocation, ListResourcesRequest, Query, Sorting, Paging, ListResourcesResponse, QueryMetaData, PagingMetadataV2, Cursors, QueryResourcesRequest, QueryV2, QueryV2PagingMethodOneOf, CursorPaging, QueryResourcesResponse, CreateResourceRequest, CreateResourceResponse, ResourceNotification, BatchCreateResourceRequest, BatchCreateResourceResponse, UpdateResourceRequest, BatchRequest, CreateScheduleRequest, UpdateScheduleRequest, ParticipantNotification, CancelScheduleRequest, UpdateResourceResponse, BatchResponse, ResourceUpdateScheduleRequest, UpdateScheduleResponse, DeleteResourceRequest, DeleteResourceResponse, BatchDeleteResourceRequest, BatchDeleteResourceResponse, LinkResourceToUserRequest, LinkResourceToUserResponse, UnLinkResourceFromOwnerRequest, UnLinkResourceFromOwnerResponse, QueryResourcesResponseNonNullableFields, CreateResourceResponseNonNullableFields, UpdateResourceResponseNonNullableFields, UpdateScheduleResponseNonNullableFields, DeleteResourceResponseNonNullableFields, QueryResourcesOptions, CreateResourcesOptions, UpdateResourcesOptions, UpdateScheduleOptions, } from './bookings-catalog-v1-resource.universal';
12
+ export { Resource, Schedule, RecurringInterval, Interval, Frequency, LinkedSchedule, Location, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, LocationsLocation, LocationsAddress, LocationsStreetAddress, LocationsAddressLocation, BusinessSchedule, TimePeriod, SpecialHourPeriod, Rate, Price, Availability, AvailabilityConstraints, SplitInterval, Participant, ExternalCalendarOverrides, Version, ConferenceProvider, CalendarConference, BusinessLocation, ListResourcesRequest, Query, Sorting, Paging, ListResourcesResponse, QueryMetaData, PagingMetadataV2, Cursors, QueryResourcesRequest, QueryV2, QueryV2PagingMethodOneOf, CursorPaging, QueryResourcesResponse, CreateResourceRequest, CreateResourceResponse, ResourceNotification, BatchCreateResourceRequest, BatchCreateResourceResponse, UpdateResourceRequest, BatchRequest, CreateScheduleRequest, UpdateScheduleRequest, ParticipantNotification, CancelScheduleRequest, UpdateResourceResponse, BatchResponse, ResourceUpdateScheduleRequest, UpdateScheduleResponse, DeleteResourceRequest, DeleteResourceResponse, BatchDeleteResourceRequest, BatchDeleteResourceResponse, LinkResourceToUserRequest, LinkResourceToUserResponse, UnLinkResourceFromOwnerRequest, UnLinkResourceFromOwnerResponse, QueryResourcesResponseNonNullableFields, CreateResourceResponseNonNullableFields, UpdateResourceResponseNonNullableFields, UpdateScheduleResponseNonNullableFields, DeleteResourceResponseNonNullableFields, QueryResourcesOptions, CreateResourceOptions, UpdateResourceOptions, UpdateScheduleOptions, } from './bookings-catalog-v1-resource.universal';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Event = exports.SortOrder = exports.ResourceStatus = exports.ConferenceType = exports.ScheduleStatus = exports.ApprovalStatus = exports.DayOfWeek = exports.LocationsLocationType = exports.LocationStatus = exports.LocationType = exports.RecurringIntervalType = exports.Transparency = exports.Day = exports.deleteResources = exports.updateSchedule = exports.updateResources = exports.createResources = exports.queryResources = exports.__metadata = void 0;
3
+ exports.Event = exports.SortOrder = exports.ResourceStatus = exports.ConferenceType = exports.ScheduleStatus = exports.ApprovalStatus = exports.DayOfWeek = exports.LocationsLocationType = exports.LocationStatus = exports.LocationType = exports.RecurringIntervalType = exports.Transparency = exports.Day = exports.deleteResource = exports.updateSchedule = exports.updateResource = exports.createResource = exports.queryResources = exports.__metadata = void 0;
4
4
  const bookings_catalog_v1_resource_universal_1 = require("./bookings-catalog-v1-resource.universal");
5
5
  exports.__metadata = { PACKAGE_NAME: '@wix/bookings' };
6
6
  function queryResources(httpClient) {
@@ -9,30 +9,30 @@ function queryResources(httpClient) {
9
9
  { httpClient });
10
10
  }
11
11
  exports.queryResources = queryResources;
12
- function createResources(httpClient) {
13
- return (resource, options) => (0, bookings_catalog_v1_resource_universal_1.createResources)(resource, options,
12
+ function createResource(httpClient) {
13
+ return (resource, options) => (0, bookings_catalog_v1_resource_universal_1.createResource)(resource, options,
14
14
  // @ts-ignore
15
15
  { httpClient });
16
16
  }
17
- exports.createResources = createResources;
18
- function updateResources(httpClient) {
19
- return (_id, options) => (0, bookings_catalog_v1_resource_universal_1.updateResources)(_id, options,
17
+ exports.createResource = createResource;
18
+ function updateResource(httpClient) {
19
+ return (_id, options) => (0, bookings_catalog_v1_resource_universal_1.updateResource)(_id, options,
20
20
  // @ts-ignore
21
21
  { httpClient });
22
22
  }
23
- exports.updateResources = updateResources;
23
+ exports.updateResource = updateResource;
24
24
  function updateSchedule(httpClient) {
25
25
  return (resourceId, options) => (0, bookings_catalog_v1_resource_universal_1.updateSchedule)(resourceId, options,
26
26
  // @ts-ignore
27
27
  { httpClient });
28
28
  }
29
29
  exports.updateSchedule = updateSchedule;
30
- function deleteResources(httpClient) {
31
- return (_id) => (0, bookings_catalog_v1_resource_universal_1.deleteResources)(_id,
30
+ function deleteResource(httpClient) {
31
+ return (_id) => (0, bookings_catalog_v1_resource_universal_1.deleteResource)(_id,
32
32
  // @ts-ignore
33
33
  { httpClient });
34
34
  }
35
- exports.deleteResources = deleteResources;
35
+ exports.deleteResource = deleteResource;
36
36
  var bookings_catalog_v1_resource_universal_2 = require("./bookings-catalog-v1-resource.universal");
37
37
  Object.defineProperty(exports, "Day", { enumerable: true, get: function () { return bookings_catalog_v1_resource_universal_2.Day; } });
38
38
  Object.defineProperty(exports, "Transparency", { enumerable: true, get: function () { return bookings_catalog_v1_resource_universal_2.Transparency; } });
@@ -1 +1 @@
1
- {"version":3,"file":"bookings-catalog-v1-resource.public.js","sourceRoot":"","sources":["../../../src/bookings-catalog-v1-resource.public.ts"],"names":[],"mappings":";;;AACA,qGAWkD;AAErC,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,SAAgB,cAAc,CAAC,UAAsB;IACnD,OAAO,CAAC,OAA+B,EAAE,EAAE,CACzC,IAAA,uDAAuB,EACrB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,wCAOC;AAED,SAAgB,eAAe,CAAC,UAAsB;IACpD,OAAO,CAAC,QAAkB,EAAE,OAAgC,EAAE,EAAE,CAC9D,IAAA,wDAAwB,EACtB,QAAQ,EACR,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,0CAQC;AAED,SAAgB,eAAe,CAAC,UAAsB;IACpD,OAAO,CAAC,GAAkB,EAAE,OAAgC,EAAE,EAAE,CAC9D,IAAA,wDAAwB,EACtB,GAAG,EACH,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,0CAQC;AAED,SAAgB,cAAc,CAAC,UAAsB;IACnD,OAAO,CAAC,UAAyB,EAAE,OAA+B,EAAE,EAAE,CACpE,IAAA,uDAAuB,EACrB,UAAU,EACV,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,wCAQC;AAED,SAAgB,eAAe,CAAC,UAAsB;IACpD,OAAO,CAAC,GAAW,EAAE,EAAE,CACrB,IAAA,wDAAwB,EACtB,GAAG;IACH,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,0CAOC;AAED,mGAckD;AAbhD,6HAAA,GAAG,OAAA;AACH,sIAAA,YAAY,OAAA;AACZ,+IAAA,qBAAqB,OAAA;AACrB,sIAAA,YAAY,OAAA;AACZ,wIAAA,cAAc,OAAA;AACd,+IAAA,qBAAqB,OAAA;AACrB,mIAAA,SAAS,OAAA;AACT,wIAAA,cAAc,OAAA;AACd,wIAAA,cAAc,OAAA;AACd,wIAAA,cAAc,OAAA;AACd,wIAAA,cAAc,OAAA;AACd,mIAAA,SAAS,OAAA;AACT,+HAAA,KAAK,OAAA"}
1
+ {"version":3,"file":"bookings-catalog-v1-resource.public.js","sourceRoot":"","sources":["../../../src/bookings-catalog-v1-resource.public.ts"],"names":[],"mappings":";;;AACA,qGAWkD;AAErC,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,SAAgB,cAAc,CAAC,UAAsB;IACnD,OAAO,CAAC,OAA+B,EAAE,EAAE,CACzC,IAAA,uDAAuB,EACrB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,wCAOC;AAED,SAAgB,cAAc,CAAC,UAAsB;IACnD,OAAO,CAAC,QAAkB,EAAE,OAA+B,EAAE,EAAE,CAC7D,IAAA,uDAAuB,EACrB,QAAQ,EACR,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,wCAQC;AAED,SAAgB,cAAc,CAAC,UAAsB;IACnD,OAAO,CAAC,GAAkB,EAAE,OAA+B,EAAE,EAAE,CAC7D,IAAA,uDAAuB,EACrB,GAAG,EACH,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,wCAQC;AAED,SAAgB,cAAc,CAAC,UAAsB;IACnD,OAAO,CAAC,UAAyB,EAAE,OAA+B,EAAE,EAAE,CACpE,IAAA,uDAAuB,EACrB,UAAU,EACV,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,wCAQC;AAED,SAAgB,cAAc,CAAC,UAAsB;IACnD,OAAO,CAAC,GAAW,EAAE,EAAE,CACrB,IAAA,uDAAuB,EACrB,GAAG;IACH,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,wCAOC;AAED,mGAckD;AAbhD,6HAAA,GAAG,OAAA;AACH,sIAAA,YAAY,OAAA;AACZ,+IAAA,qBAAqB,OAAA;AACrB,sIAAA,YAAY,OAAA;AACZ,wIAAA,cAAc,OAAA;AACd,+IAAA,qBAAqB,OAAA;AACrB,mIAAA,SAAS,OAAA;AACT,wIAAA,cAAc,OAAA;AACd,wIAAA,cAAc,OAAA;AACd,wIAAA,cAAc,OAAA;AACd,wIAAA,cAAc,OAAA;AACd,mIAAA,SAAS,OAAA;AACT,+HAAA,KAAK,OAAA"}
@@ -1470,48 +1470,27 @@ export interface QueryResourcesOptions {
1470
1470
  }
1471
1471
  /**
1472
1472
  * Creates a resource.
1473
- * <!--ONLY:VELO
1474
- * The `createResource()` function returns a Promise that resolves to the created resource.
1475
- * <!--END:ONLY:VELO-->
1476
1473
  *
1477
- * 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.
1478
- * 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.
1479
- * You can use both individual and recurring sessions to define resource availability. You cannot use availability constraints for resource schedules.
1480
- *
1481
- * <!--ONLY:VELO
1482
- * When creating a resource using `createResource()`, include the resource's schedule information. Set the schedule information as follows:
1483
- * + 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.
1484
- * + If the resource has its own custom working hours, create the resource, then create sessions of type `"WORKING_HOURS"` using the [`createSession()`](wix-bookings-backend.Sessions/createsession) function. Use the `scheduleId` returned from `createResource()` when creating the sessions. These session can be single sessions or recurring sessions.
1485
- * + You can have both default business hours and custom hours for the same resource schedule by combining the steps above.
1486
1474
  *
1487
- * > **Notes:**
1488
- * > + 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.
1489
- * > + The Wix Bookings app does not show non-recurring `WORKING_HOURS` sessions in the resource calendar.
1490
- * > + You can only add the business resource's schedule as a linked schedule for a resource.
1491
- * > + A resource can have one schedule only.
1492
- * > + You can have up to 135 active resources and an additional 135 deleted resources.
1493
- * > + Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can create a resource. You can override the role permissions by setting the `options.suppressAuth` parameter to `true`.
1494
- * <!--END:ONLY:VELO-->
1475
+ * The `createResource()` function returns a Promise that resolves to the created resource.
1476
+ * 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.
1495
1477
  *
1496
- * <!--ONLY:REST-->
1497
- * Use the following steps to create resources:
1498
- * - Create the resource using including schedule information.
1499
- * - 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 in the schedule parameters.
1500
- * - If the resource has its own custom working hours, create sessions of type `"WORKING_HOURS"`. Use the `scheduleId` of the new resource when creating the sessions. These session can be single sessions or recurring sessions. You can have both business hours and custom hours for the same resource schedule.
1501
- *
1502
- * >**Notes:**
1503
- * > + A resource can have one schedule only.
1504
- * > + You can have up to 135 active resources and an additional 135 deleted resources.
1505
- * > + The `businessLocation.businessSchedule` object in the `schedule.location` object is not supported.
1506
1478
  *
1479
+ * When creating a resource using `createResource()`, include the resource's schedule information. Set the schedule information as follows:
1480
+ * - 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.
1481
+ * - 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.
1482
+ * - You can have both default business hours and custom hours for the same resource schedule by combining the steps above.
1507
1483
  *
1508
1484
  *
1509
- * >**Permissions:**
1510
- * > This endpoint requires the Manage Bookings [permission scope](https://devforum.wix.com/kb/en/article/available-permissions).
1511
- * <!--END:ONLY:REST-->
1485
+ * > **Notes:**
1486
+ * - 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.
1487
+ * - The Wix Bookings app does not show non-recurring `WORKING_HOURS` sessions in the resource calendar.
1488
+ * - You can only add the business resource's schedule as a linked schedule for a resource.
1489
+ * - A resource can have one schedule only.
1490
+ * - You can have up to 135 active resources and an additional 135 deleted resources.
1491
+ * - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can create a resource.
1512
1492
  * @param resource - Resource details.
1513
1493
  * @public
1514
- * @documentationMaturity preview
1515
1494
  * @requiredField options.schedules.availability.start
1516
1495
  * @requiredField options.schedules.intervals.start
1517
1496
  * @requiredField resource
@@ -1519,8 +1498,8 @@ export interface QueryResourcesOptions {
1519
1498
  * @permissionScope Manage Bookings
1520
1499
  * @applicableIdentity APP
1521
1500
  */
1522
- export declare function createResources(resource: Resource, options?: CreateResourcesOptions): Promise<CreateResourceResponse & CreateResourceResponseNonNullableFields>;
1523
- export interface CreateResourcesOptions {
1501
+ export declare function createResource(resource: Resource, options?: CreateResourceOptions): Promise<CreateResourceResponse & CreateResourceResponseNonNullableFields>;
1502
+ export interface CreateResourceOptions {
1524
1503
  /**
1525
1504
  * List of schedules to be assigned for the created resource. Currently only a single schedule is allowed.
1526
1505
  * If provided, any schedules in the resource entity will be ignored.
@@ -1529,35 +1508,22 @@ export interface CreateResourcesOptions {
1529
1508
  }
1530
1509
  /**
1531
1510
  * Updates a resource.
1532
- * <!--ONLY:VELO
1533
- * The `updateResource()` function returns a Promise that resolves when a resource is updated.
1534
- * Use this function to update all bookings resource information except for the resource's schedule. To update a resource's schedule use [`updateResourceSchedule()`](wix-bookings-backend/resource/updateresourceschedule).
1535
1511
  *
1536
- * >**Notes:**
1537
- * > + 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"`.
1538
- * > + Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can update a resource. You can override the role permissions by setting the `options.suppressAuth` parameter to `true`.
1539
- * <!--END:ONLY:VELO-->
1540
- * <!--ONLY:REST-->
1541
- * Use this endpoint to update all resource information except for the resource's schedule. To update a resource's schedule use
1542
- * the [Update Schedule](https://dev.wix.com/api/rest/wix-bookings/resources/update-schedule) endpoint.
1543
1512
  *
1544
- * >**Notes:**
1545
- * > + 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"`.
1546
- * > + When updating a resource's schedule you cannot change the resource tag used by the Wix Bookings app. Tags used by the app have the values `"INDIVIDUAL"`, `"GROUP"`, and `"COURSE”`.
1547
- * > + The `businessLocation.businessSchedule` object in the `schedule.location` object is not supported.
1513
+ * 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).
1548
1514
  *
1549
- * >**Permissions:**
1550
- * > This endpoint requires the Manage Bookings [permission scope](https://devforum.wix.com/kb/en/article/available-permissions).
1551
- * <!--END:ONLY:REST-->
1515
+ *
1516
+ * >**Notes:**
1517
+ * - 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"`.
1518
+ * - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can update a resource.
1552
1519
  * @param _id - Resource ID.
1553
1520
  * @public
1554
- * @documentationMaturity preview
1555
1521
  * @requiredField _id
1556
1522
  * @permissionScope Manage Bookings
1557
1523
  * @applicableIdentity APP
1558
1524
  */
1559
- export declare function updateResources(_id: string | null, options?: UpdateResourcesOptions): Promise<UpdateResourceResponse & UpdateResourceResponseNonNullableFields>;
1560
- export interface UpdateResourcesOptions {
1525
+ export declare function updateResource(_id: string | null, options?: UpdateResourceOptions): Promise<UpdateResourceResponse & UpdateResourceResponseNonNullableFields>;
1526
+ export interface UpdateResourceOptions {
1561
1527
  resource: {
1562
1528
  /**
1563
1529
  * Resource ID.
@@ -1678,28 +1644,19 @@ export interface UpdateScheduleOptions {
1678
1644
  }
1679
1645
  /**
1680
1646
  * Deletes a resource.
1681
- * <!--ONLY:VELO
1647
+ *
1682
1648
  * The `deleteResource()` function returns a Promise that is resolved when a resource is deleted.
1683
- * <!--END:ONLY:VELO-->
1684
- * Deleting a resource updates its `status` to `"DELETED"`.
1649
+ *
1650
+ *
1651
+ * Deleting a resource updates its status to `DELETED`.
1685
1652
  *
1686
1653
  * You cannot delete a resource if it has booked sessions.
1687
1654
  *
1688
- * <!--ONLY:VELO
1689
- * >**Notes:**
1690
- * > + 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.
1691
- * > + You can have up to 135 active resources and an additional 135 deleted resources.
1692
- * > + Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can delete a resource. You can override the role permissions by setting the `options.suppressAuth` parameter to `true`.
1693
- * <!--END:ONLY:VELO-->
1694
1655
  *
1695
- * <!--ONLY:REST-->
1696
1656
  * >**Notes:**
1697
- * > + The Bookings app creates a resource with `"business"` in name and tag values. This resource is used for the business's schedule and working hours and cannot be deleted.
1698
- * > + You can have up to 135 active resources and an additional 135 deleted resources.
1699
- *
1700
- * >**Permissions:**
1701
- * > This endpoint requires the Manage Bookings [permission scope](https://devforum.wix.com/kb/en/article/available-permissions).
1702
- * <!--END:ONLY:REST-->
1657
+ * - 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.
1658
+ * - You can have up to 135 active resources and an additional 135 deleted resources.
1659
+ * - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can delete a resource.
1703
1660
  * @param _id - ID of the resource to delete.
1704
1661
  * @public
1705
1662
  * @documentationMaturity preview
@@ -1707,4 +1664,4 @@ export interface UpdateScheduleOptions {
1707
1664
  * @permissionScope Manage Bookings
1708
1665
  * @applicableIdentity APP
1709
1666
  */
1710
- export declare function deleteResources(_id: string): Promise<DeleteResourceResponse & DeleteResourceResponseNonNullableFields>;
1667
+ export declare function deleteResource(_id: string): Promise<DeleteResourceResponse & DeleteResourceResponseNonNullableFields>;