@wix/bookings 1.0.160 → 1.0.161
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/src/bookings-catalog-v1-resource.http.d.ts +21 -15
- package/build/cjs/src/bookings-catalog-v1-resource.http.js +21 -15
- package/build/cjs/src/bookings-catalog-v1-resource.http.js.map +1 -1
- package/build/cjs/src/bookings-catalog-v1-resource.universal.d.ts +21 -15
- package/build/cjs/src/bookings-catalog-v1-resource.universal.js +21 -15
- package/build/cjs/src/bookings-catalog-v1-resource.universal.js.map +1 -1
- package/build/es/src/bookings-catalog-v1-resource.http.d.ts +21 -15
- package/build/es/src/bookings-catalog-v1-resource.http.js +21 -15
- package/build/es/src/bookings-catalog-v1-resource.http.js.map +1 -1
- package/build/es/src/bookings-catalog-v1-resource.universal.d.ts +21 -15
- package/build/es/src/bookings-catalog-v1-resource.universal.js +21 -15
- package/build/es/src/bookings-catalog-v1-resource.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -8,8 +8,6 @@ export declare function list(payload: ListResourcesRequest): RequestOptionsFacto
|
|
|
8
8
|
*
|
|
9
9
|
* The query parameter is optional. If no query is provided, all non-deleted resources are returned.
|
|
10
10
|
*
|
|
11
|
-
* |Property|Is supported| |--|--| |filter | supported fields: resource.id, resource.tags, resource.status| |paging | supported | |fields | supported | |fieldsets | not supported | |sort | not supported |
|
|
12
|
-
*
|
|
13
11
|
* > **Notes:** The following objects in the query parameter are not supported for this query:
|
|
14
12
|
* > - sort
|
|
15
13
|
* > - fieldsets
|
|
@@ -21,23 +19,22 @@ export declare function query(payload: QueryResourcesRequest): RequestOptionsFac
|
|
|
21
19
|
*
|
|
22
20
|
*
|
|
23
21
|
* The `createResource()` function returns a Promise that resolves to the created resource.
|
|
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
|
|
22
|
+
* 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.
|
|
25
23
|
*
|
|
26
24
|
*
|
|
27
25
|
* When creating a resource using `createResource()`, include the resource's schedule information. Set the schedule information as follows:
|
|
28
26
|
* - 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.
|
|
29
27
|
* - If the resource has its own custom working hours, create the resource, then create sessions of type `WORKING_HOURS` using the [`createSession()`](../Sessions/createsession) function. Use the `scheduleId` returned from `createResource()` when creating the sessions. These session can be single sessions or recurring sessions.
|
|
30
|
-
*
|
|
31
|
-
* You can have both default business hours and custom hours for the same resource schedule by combining the steps above.
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* > **Notes:** 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.
|
|
28
|
+
* - You can have both default business hours and custom hours for the same resource schedule by combining the steps above.
|
|
35
29
|
*
|
|
36
30
|
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* You can
|
|
31
|
+
* > **Notes:**
|
|
32
|
+
* - 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.
|
|
33
|
+
* - The Wix Bookings app does not show non-recurring `WORKING_HOURS` sessions in the resource calendar.
|
|
34
|
+
* - You can only add the business resource's schedule as a linked schedule for a resource.
|
|
35
|
+
* - A resource can have one schedule only.
|
|
36
|
+
* - You can have up to 135 active resources and an additional 135 deleted resources.
|
|
37
|
+
* - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can create a resource.
|
|
41
38
|
*/
|
|
42
39
|
export declare function create(payload: CreateResourceRequest): RequestOptionsFactory<CreateResourceResponse>;
|
|
43
40
|
/**
|
|
@@ -47,14 +44,20 @@ export declare function create(payload: CreateResourceRequest): RequestOptionsFa
|
|
|
47
44
|
* 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).
|
|
48
45
|
*
|
|
49
46
|
*
|
|
50
|
-
* >**Notes:**
|
|
47
|
+
* >**Notes:**
|
|
48
|
+
* - 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"`.
|
|
49
|
+
* - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can update a resource.
|
|
51
50
|
*/
|
|
52
51
|
export declare function update(payload: UpdateResourceRequest): RequestOptionsFactory<UpdateResourceResponse>;
|
|
53
52
|
/**
|
|
54
53
|
* Updates a resource's schedule.
|
|
55
54
|
*
|
|
56
55
|
*
|
|
57
|
-
* The `updateResourceSchedule()` 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). The following schedule properties can be updated:
|
|
56
|
+
* The `updateResourceSchedule()` 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). The following schedule properties can be updated:
|
|
57
|
+
*
|
|
58
|
+
* - `availability.start`
|
|
59
|
+
*
|
|
60
|
+
* - `availability.linkedSchedules`
|
|
58
61
|
*
|
|
59
62
|
*
|
|
60
63
|
* To update a resource's schedule to remove business hours and add custom hours:
|
|
@@ -82,6 +85,9 @@ export declare function updateSchedule(payload: ResourceUpdateScheduleRequest):
|
|
|
82
85
|
* You cannot delete a resource if it has booked sessions.
|
|
83
86
|
*
|
|
84
87
|
*
|
|
85
|
-
* >**Notes:**
|
|
88
|
+
* >**Notes:**
|
|
89
|
+
* - 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.
|
|
90
|
+
* - You can have up to 135 active resources and an additional 135 deleted resources.
|
|
91
|
+
* - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can delete a resource.
|
|
86
92
|
*/
|
|
87
93
|
export declare function _delete(payload: DeleteResourceRequest): RequestOptionsFactory<DeleteResourceResponse>;
|
|
@@ -209,8 +209,6 @@ exports.list = list;
|
|
|
209
209
|
*
|
|
210
210
|
* The query parameter is optional. If no query is provided, all non-deleted resources are returned.
|
|
211
211
|
*
|
|
212
|
-
* |Property|Is supported| |--|--| |filter | supported fields: resource.id, resource.tags, resource.status| |paging | supported | |fields | supported | |fieldsets | not supported | |sort | not supported |
|
|
213
|
-
*
|
|
214
212
|
* > **Notes:** The following objects in the query parameter are not supported for this query:
|
|
215
213
|
* > - sort
|
|
216
214
|
* > - fieldsets
|
|
@@ -252,23 +250,22 @@ exports.query = query;
|
|
|
252
250
|
*
|
|
253
251
|
*
|
|
254
252
|
* The `createResource()` function returns a Promise that resolves to the created resource.
|
|
255
|
-
* 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
|
|
253
|
+
* 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.
|
|
256
254
|
*
|
|
257
255
|
*
|
|
258
256
|
* When creating a resource using `createResource()`, include the resource's schedule information. Set the schedule information as follows:
|
|
259
257
|
* - 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.
|
|
260
258
|
* - If the resource has its own custom working hours, create the resource, then create sessions of type `WORKING_HOURS` using the [`createSession()`](../Sessions/createsession) function. Use the `scheduleId` returned from `createResource()` when creating the sessions. These session can be single sessions or recurring sessions.
|
|
261
|
-
*
|
|
262
|
-
* You can have both default business hours and custom hours for the same resource schedule by combining the steps above.
|
|
263
|
-
*
|
|
264
|
-
*
|
|
265
|
-
* > **Notes:** 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.
|
|
259
|
+
* - You can have both default business hours and custom hours for the same resource schedule by combining the steps above.
|
|
266
260
|
*
|
|
267
261
|
*
|
|
268
|
-
*
|
|
269
|
-
*
|
|
270
|
-
*
|
|
271
|
-
* You can
|
|
262
|
+
* > **Notes:**
|
|
263
|
+
* - 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.
|
|
264
|
+
* - The Wix Bookings app does not show non-recurring `WORKING_HOURS` sessions in the resource calendar.
|
|
265
|
+
* - You can only add the business resource's schedule as a linked schedule for a resource.
|
|
266
|
+
* - A resource can have one schedule only.
|
|
267
|
+
* - You can have up to 135 active resources and an additional 135 deleted resources.
|
|
268
|
+
* - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can create a resource.
|
|
272
269
|
*/
|
|
273
270
|
function create(payload) {
|
|
274
271
|
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_createResourceRequest, {
|
|
@@ -320,7 +317,9 @@ exports.create = create;
|
|
|
320
317
|
* 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).
|
|
321
318
|
*
|
|
322
319
|
*
|
|
323
|
-
* >**Notes:**
|
|
320
|
+
* >**Notes:**
|
|
321
|
+
* - 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"`.
|
|
322
|
+
* - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can update a resource.
|
|
324
323
|
*/
|
|
325
324
|
function update(payload) {
|
|
326
325
|
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_updateResourceRequest, {
|
|
@@ -374,7 +373,11 @@ exports.update = update;
|
|
|
374
373
|
* Updates a resource's schedule.
|
|
375
374
|
*
|
|
376
375
|
*
|
|
377
|
-
* The `updateResourceSchedule()` 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). The following schedule properties can be updated:
|
|
376
|
+
* The `updateResourceSchedule()` 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). The following schedule properties can be updated:
|
|
377
|
+
*
|
|
378
|
+
* - `availability.start`
|
|
379
|
+
*
|
|
380
|
+
* - `availability.linkedSchedules`
|
|
378
381
|
*
|
|
379
382
|
*
|
|
380
383
|
* To update a resource's schedule to remove business hours and add custom hours:
|
|
@@ -444,7 +447,10 @@ exports.updateSchedule = updateSchedule;
|
|
|
444
447
|
* You cannot delete a resource if it has booked sessions.
|
|
445
448
|
*
|
|
446
449
|
*
|
|
447
|
-
* >**Notes:**
|
|
450
|
+
* >**Notes:**
|
|
451
|
+
* - 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.
|
|
452
|
+
* - You can have up to 135 active resources and an additional 135 deleted resources.
|
|
453
|
+
* - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can delete a resource.
|
|
448
454
|
*/
|
|
449
455
|
function _delete(payload) {
|
|
450
456
|
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;AAkBhD,MAAM,QAAQ,GAAG,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;AACjD,MAAM,gBAAgB,GAAG;IACvB,QAAQ,EAAE,6BAA6B;IACvC,SAAS,EAAE,6BAA6B;CACzC,CAAC;AACF,MAAM,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,sBAAsB,GAAG;IAC7B,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,WAAW;CACvB,CAAC;AACF,MAAM,uBAAuB,GAAG,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC;AAC1D,MAAM,sBAAsB,GAAG,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC;AACzD,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAClC,MAAM,uBAAuB,GAAG,EAAE,CAAC;AACnC,MAAM,MAAM,GAAG,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,CAAC;AAClE,MAAM,qBAAqB,GAAG,EAAE,CAAC;AACjC,MAAM,sBAAsB,GAAG,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;AAChB,CAAC;AAzCD,oBAyCC;AAED
|
|
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;AAkBhD,MAAM,QAAQ,GAAG,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;AACjD,MAAM,gBAAgB,GAAG;IACvB,QAAQ,EAAE,6BAA6B;IACvC,SAAS,EAAE,6BAA6B;CACzC,CAAC;AACF,MAAM,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,sBAAsB,GAAG;IAC7B,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,WAAW;CACvB,CAAC;AACF,MAAM,uBAAuB,GAAG,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC;AAC1D,MAAM,sBAAsB,GAAG,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC;AACzD,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAClC,MAAM,uBAAuB,GAAG,EAAE,CAAC;AACnC,MAAM,MAAM,GAAG,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,CAAC;AAClE,MAAM,qBAAqB,GAAG,EAAE,CAAC;AACjC,MAAM,sBAAsB,GAAG,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;AAC1D,MAAM,SAAS,GAAG;IAChB,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@ -932,8 +932,6 @@ export interface ListOptions {
|
|
|
932
932
|
*
|
|
933
933
|
* The query parameter is optional. If no query is provided, all non-deleted resources are returned.
|
|
934
934
|
*
|
|
935
|
-
* |Property|Is supported| |--|--| |filter | supported fields: resource.id, resource.tags, resource.status| |paging | supported | |fields | supported | |fieldsets | not supported | |sort | not supported |
|
|
936
|
-
*
|
|
937
935
|
* > **Notes:** The following objects in the query parameter are not supported for this query:
|
|
938
936
|
* > - sort
|
|
939
937
|
* > - fieldsets
|
|
@@ -955,23 +953,22 @@ export interface QueryResourceCatalogOptions {
|
|
|
955
953
|
*
|
|
956
954
|
*
|
|
957
955
|
* The `createResource()` function returns a Promise that resolves to the created resource.
|
|
958
|
-
* 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
|
|
956
|
+
* 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.
|
|
959
957
|
*
|
|
960
958
|
*
|
|
961
959
|
* When creating a resource using `createResource()`, include the resource's schedule information. Set the schedule information as follows:
|
|
962
960
|
* - 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.
|
|
963
961
|
* - If the resource has its own custom working hours, create the resource, then create sessions of type `WORKING_HOURS` using the [`createSession()`](../Sessions/createsession) function. Use the `scheduleId` returned from `createResource()` when creating the sessions. These session can be single sessions or recurring sessions.
|
|
964
|
-
*
|
|
965
|
-
* You can have both default business hours and custom hours for the same resource schedule by combining the steps above.
|
|
966
|
-
*
|
|
967
|
-
*
|
|
968
|
-
* > **Notes:** 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.
|
|
962
|
+
* - You can have both default business hours and custom hours for the same resource schedule by combining the steps above.
|
|
969
963
|
*
|
|
970
964
|
*
|
|
971
|
-
*
|
|
972
|
-
*
|
|
973
|
-
*
|
|
974
|
-
* You can
|
|
965
|
+
* > **Notes:**
|
|
966
|
+
* - 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.
|
|
967
|
+
* - The Wix Bookings app does not show non-recurring `WORKING_HOURS` sessions in the resource calendar.
|
|
968
|
+
* - You can only add the business resource's schedule as a linked schedule for a resource.
|
|
969
|
+
* - A resource can have one schedule only.
|
|
970
|
+
* - You can have up to 135 active resources and an additional 135 deleted resources.
|
|
971
|
+
* - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can create a resource.
|
|
975
972
|
* @param resource - Resource details.
|
|
976
973
|
* @public
|
|
977
974
|
* @requiredField options.schedules.availability.start
|
|
@@ -996,7 +993,9 @@ export interface CreateResourceOptions {
|
|
|
996
993
|
* 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).
|
|
997
994
|
*
|
|
998
995
|
*
|
|
999
|
-
* >**Notes:**
|
|
996
|
+
* >**Notes:**
|
|
997
|
+
* - 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"`.
|
|
998
|
+
* - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can update a resource.
|
|
1000
999
|
* @param _id - Resource ID.
|
|
1001
1000
|
* @public
|
|
1002
1001
|
* @requiredField _id
|
|
@@ -1065,7 +1064,11 @@ export interface UpdateResourceOptions {
|
|
|
1065
1064
|
* Updates a resource's schedule.
|
|
1066
1065
|
*
|
|
1067
1066
|
*
|
|
1068
|
-
* The `updateResourceSchedule()` 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). The following schedule properties can be updated:
|
|
1067
|
+
* The `updateResourceSchedule()` 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). The following schedule properties can be updated:
|
|
1068
|
+
*
|
|
1069
|
+
* - `availability.start`
|
|
1070
|
+
*
|
|
1071
|
+
* - `availability.linkedSchedules`
|
|
1069
1072
|
*
|
|
1070
1073
|
*
|
|
1071
1074
|
* To update a resource's schedule to remove business hours and add custom hours:
|
|
@@ -1105,7 +1108,10 @@ export interface UpdateResourceScheduleOptions {
|
|
|
1105
1108
|
* You cannot delete a resource if it has booked sessions.
|
|
1106
1109
|
*
|
|
1107
1110
|
*
|
|
1108
|
-
* >**Notes:**
|
|
1111
|
+
* >**Notes:**
|
|
1112
|
+
* - 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.
|
|
1113
|
+
* - You can have up to 135 active resources and an additional 135 deleted resources.
|
|
1114
|
+
* - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can delete a resource.
|
|
1109
1115
|
* @param _id - ID of the resource to delete.
|
|
1110
1116
|
* @public
|
|
1111
1117
|
* @documentationMaturity preview
|
|
@@ -270,8 +270,6 @@ exports.list = list;
|
|
|
270
270
|
*
|
|
271
271
|
* The query parameter is optional. If no query is provided, all non-deleted resources are returned.
|
|
272
272
|
*
|
|
273
|
-
* |Property|Is supported| |--|--| |filter | supported fields: resource.id, resource.tags, resource.status| |paging | supported | |fields | supported | |fieldsets | not supported | |sort | not supported |
|
|
274
|
-
*
|
|
275
273
|
* > **Notes:** The following objects in the query parameter are not supported for this query:
|
|
276
274
|
* > - sort
|
|
277
275
|
* > - fieldsets
|
|
@@ -339,23 +337,22 @@ exports.queryResourceCatalog = queryResourceCatalog;
|
|
|
339
337
|
*
|
|
340
338
|
*
|
|
341
339
|
* The `createResource()` function returns a Promise that resolves to the created resource.
|
|
342
|
-
* 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
|
|
340
|
+
* 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.
|
|
343
341
|
*
|
|
344
342
|
*
|
|
345
343
|
* When creating a resource using `createResource()`, include the resource's schedule information. Set the schedule information as follows:
|
|
346
344
|
* - 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.
|
|
347
345
|
* - If the resource has its own custom working hours, create the resource, then create sessions of type `WORKING_HOURS` using the [`createSession()`](../Sessions/createsession) function. Use the `scheduleId` returned from `createResource()` when creating the sessions. These session can be single sessions or recurring sessions.
|
|
348
|
-
*
|
|
349
|
-
* You can have both default business hours and custom hours for the same resource schedule by combining the steps above.
|
|
350
|
-
*
|
|
351
|
-
*
|
|
352
|
-
* > **Notes:** 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.
|
|
346
|
+
* - You can have both default business hours and custom hours for the same resource schedule by combining the steps above.
|
|
353
347
|
*
|
|
354
348
|
*
|
|
355
|
-
*
|
|
356
|
-
*
|
|
357
|
-
*
|
|
358
|
-
* You can
|
|
349
|
+
* > **Notes:**
|
|
350
|
+
* - 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.
|
|
351
|
+
* - The Wix Bookings app does not show non-recurring `WORKING_HOURS` sessions in the resource calendar.
|
|
352
|
+
* - You can only add the business resource's schedule as a linked schedule for a resource.
|
|
353
|
+
* - A resource can have one schedule only.
|
|
354
|
+
* - You can have up to 135 active resources and an additional 135 deleted resources.
|
|
355
|
+
* - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can create a resource.
|
|
359
356
|
* @param resource - Resource details.
|
|
360
357
|
* @public
|
|
361
358
|
* @requiredField options.schedules.availability.start
|
|
@@ -432,7 +429,9 @@ exports.createResource = createResource;
|
|
|
432
429
|
* 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).
|
|
433
430
|
*
|
|
434
431
|
*
|
|
435
|
-
* >**Notes:**
|
|
432
|
+
* >**Notes:**
|
|
433
|
+
* - 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"`.
|
|
434
|
+
* - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can update a resource.
|
|
436
435
|
* @param _id - Resource ID.
|
|
437
436
|
* @public
|
|
438
437
|
* @requiredField _id
|
|
@@ -512,7 +511,11 @@ exports.updateResource = updateResource;
|
|
|
512
511
|
* Updates a resource's schedule.
|
|
513
512
|
*
|
|
514
513
|
*
|
|
515
|
-
* The `updateResourceSchedule()` 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). The following schedule properties can be updated:
|
|
514
|
+
* The `updateResourceSchedule()` 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). The following schedule properties can be updated:
|
|
515
|
+
*
|
|
516
|
+
* - `availability.start`
|
|
517
|
+
*
|
|
518
|
+
* - `availability.linkedSchedules`
|
|
516
519
|
*
|
|
517
520
|
*
|
|
518
521
|
* To update a resource's schedule to remove business hours and add custom hours:
|
|
@@ -594,7 +597,10 @@ exports.updateResourceSchedule = updateResourceSchedule;
|
|
|
594
597
|
* You cannot delete a resource if it has booked sessions.
|
|
595
598
|
*
|
|
596
599
|
*
|
|
597
|
-
* >**Notes:**
|
|
600
|
+
* >**Notes:**
|
|
601
|
+
* - 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.
|
|
602
|
+
* - You can have up to 135 active resources and an additional 135 deleted resources.
|
|
603
|
+
* - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can delete a resource.
|
|
598
604
|
* @param _id - ID of the resource to delete.
|
|
599
605
|
* @public
|
|
600
606
|
* @documentationMaturity preview
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-catalog-v1-resource.universal.js","sourceRoot":"","sources":["../../../src/bookings-catalog-v1-resource.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqE;AAErE,4GAA8F;AAE9F,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;AAEY,QAAA,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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AAmB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QAE3C,MAAM,OAAO,GAAG,sCAAsC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAExE,KAAK,CAAC,mCAAmC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAE/D,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,IAAA,qBAAc,EAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,KAAK;aACN,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF;AAlDD,0BAkDC"}
|
|
1
|
+
{"version":3,"file":"bookings-catalog-v1-resource.universal.js","sourceRoot":"","sources":["../../../src/bookings-catalog-v1-resource.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqE;AAErE,4GAA8F;AAE9F,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;AAEY,QAAA,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE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,UAAU,EAAE,uBAAuB;YACnC,UAAU,EAAE,EAAE;YACd,kBAAkB,EAAE;gBAClB,KAAK,EAAE,EAAE;gBACT,cAAc,EAAE,aAAa;aAC9B;YACD,oBAAoB,EAAE,sBAAsB;SAC7C,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,mBAAmB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QAE3C,MAAM,OAAO,GAAG,sCAAsC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAExE,KAAK,CAAC,mCAAmC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAE/D,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,IAAA,qBAAc,EAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,KAAK;aACN,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF;AAlDD,0BAkDC"}
|
|
@@ -8,8 +8,6 @@ export declare function list(payload: ListResourcesRequest): RequestOptionsFacto
|
|
|
8
8
|
*
|
|
9
9
|
* The query parameter is optional. If no query is provided, all non-deleted resources are returned.
|
|
10
10
|
*
|
|
11
|
-
* |Property|Is supported| |--|--| |filter | supported fields: resource.id, resource.tags, resource.status| |paging | supported | |fields | supported | |fieldsets | not supported | |sort | not supported |
|
|
12
|
-
*
|
|
13
11
|
* > **Notes:** The following objects in the query parameter are not supported for this query:
|
|
14
12
|
* > - sort
|
|
15
13
|
* > - fieldsets
|
|
@@ -21,23 +19,22 @@ export declare function query(payload: QueryResourcesRequest): RequestOptionsFac
|
|
|
21
19
|
*
|
|
22
20
|
*
|
|
23
21
|
* The `createResource()` function returns a Promise that resolves to the created resource.
|
|
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
|
|
22
|
+
* 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.
|
|
25
23
|
*
|
|
26
24
|
*
|
|
27
25
|
* When creating a resource using `createResource()`, include the resource's schedule information. Set the schedule information as follows:
|
|
28
26
|
* - 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.
|
|
29
27
|
* - If the resource has its own custom working hours, create the resource, then create sessions of type `WORKING_HOURS` using the [`createSession()`](../Sessions/createsession) function. Use the `scheduleId` returned from `createResource()` when creating the sessions. These session can be single sessions or recurring sessions.
|
|
30
|
-
*
|
|
31
|
-
* You can have both default business hours and custom hours for the same resource schedule by combining the steps above.
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* > **Notes:** 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.
|
|
28
|
+
* - You can have both default business hours and custom hours for the same resource schedule by combining the steps above.
|
|
35
29
|
*
|
|
36
30
|
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* You can
|
|
31
|
+
* > **Notes:**
|
|
32
|
+
* - 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.
|
|
33
|
+
* - The Wix Bookings app does not show non-recurring `WORKING_HOURS` sessions in the resource calendar.
|
|
34
|
+
* - You can only add the business resource's schedule as a linked schedule for a resource.
|
|
35
|
+
* - A resource can have one schedule only.
|
|
36
|
+
* - You can have up to 135 active resources and an additional 135 deleted resources.
|
|
37
|
+
* - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can create a resource.
|
|
41
38
|
*/
|
|
42
39
|
export declare function create(payload: CreateResourceRequest): RequestOptionsFactory<CreateResourceResponse>;
|
|
43
40
|
/**
|
|
@@ -47,14 +44,20 @@ export declare function create(payload: CreateResourceRequest): RequestOptionsFa
|
|
|
47
44
|
* 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).
|
|
48
45
|
*
|
|
49
46
|
*
|
|
50
|
-
* >**Notes:**
|
|
47
|
+
* >**Notes:**
|
|
48
|
+
* - 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"`.
|
|
49
|
+
* - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can update a resource.
|
|
51
50
|
*/
|
|
52
51
|
export declare function update(payload: UpdateResourceRequest): RequestOptionsFactory<UpdateResourceResponse>;
|
|
53
52
|
/**
|
|
54
53
|
* Updates a resource's schedule.
|
|
55
54
|
*
|
|
56
55
|
*
|
|
57
|
-
* The `updateResourceSchedule()` 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). The following schedule properties can be updated:
|
|
56
|
+
* The `updateResourceSchedule()` 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). The following schedule properties can be updated:
|
|
57
|
+
*
|
|
58
|
+
* - `availability.start`
|
|
59
|
+
*
|
|
60
|
+
* - `availability.linkedSchedules`
|
|
58
61
|
*
|
|
59
62
|
*
|
|
60
63
|
* To update a resource's schedule to remove business hours and add custom hours:
|
|
@@ -82,6 +85,9 @@ export declare function updateSchedule(payload: ResourceUpdateScheduleRequest):
|
|
|
82
85
|
* You cannot delete a resource if it has booked sessions.
|
|
83
86
|
*
|
|
84
87
|
*
|
|
85
|
-
* >**Notes:**
|
|
88
|
+
* >**Notes:**
|
|
89
|
+
* - 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.
|
|
90
|
+
* - You can have up to 135 active resources and an additional 135 deleted resources.
|
|
91
|
+
* - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can delete a resource.
|
|
86
92
|
*/
|
|
87
93
|
export declare function _delete(payload: DeleteResourceRequest): RequestOptionsFactory<DeleteResourceResponse>;
|
|
@@ -205,8 +205,6 @@ export function list(payload) {
|
|
|
205
205
|
*
|
|
206
206
|
* The query parameter is optional. If no query is provided, all non-deleted resources are returned.
|
|
207
207
|
*
|
|
208
|
-
* |Property|Is supported| |--|--| |filter | supported fields: resource.id, resource.tags, resource.status| |paging | supported | |fields | supported | |fieldsets | not supported | |sort | not supported |
|
|
209
|
-
*
|
|
210
208
|
* > **Notes:** The following objects in the query parameter are not supported for this query:
|
|
211
209
|
* > - sort
|
|
212
210
|
* > - fieldsets
|
|
@@ -247,23 +245,22 @@ export function query(payload) {
|
|
|
247
245
|
*
|
|
248
246
|
*
|
|
249
247
|
* The `createResource()` function returns a Promise that resolves to the created resource.
|
|
250
|
-
* 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
|
|
248
|
+
* 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.
|
|
251
249
|
*
|
|
252
250
|
*
|
|
253
251
|
* When creating a resource using `createResource()`, include the resource's schedule information. Set the schedule information as follows:
|
|
254
252
|
* - 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.
|
|
255
253
|
* - If the resource has its own custom working hours, create the resource, then create sessions of type `WORKING_HOURS` using the [`createSession()`](../Sessions/createsession) function. Use the `scheduleId` returned from `createResource()` when creating the sessions. These session can be single sessions or recurring sessions.
|
|
256
|
-
*
|
|
257
|
-
* You can have both default business hours and custom hours for the same resource schedule by combining the steps above.
|
|
258
|
-
*
|
|
259
|
-
*
|
|
260
|
-
* > **Notes:** 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.
|
|
254
|
+
* - You can have both default business hours and custom hours for the same resource schedule by combining the steps above.
|
|
261
255
|
*
|
|
262
256
|
*
|
|
263
|
-
*
|
|
264
|
-
*
|
|
265
|
-
*
|
|
266
|
-
* You can
|
|
257
|
+
* > **Notes:**
|
|
258
|
+
* - 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.
|
|
259
|
+
* - The Wix Bookings app does not show non-recurring `WORKING_HOURS` sessions in the resource calendar.
|
|
260
|
+
* - You can only add the business resource's schedule as a linked schedule for a resource.
|
|
261
|
+
* - A resource can have one schedule only.
|
|
262
|
+
* - You can have up to 135 active resources and an additional 135 deleted resources.
|
|
263
|
+
* - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can create a resource.
|
|
267
264
|
*/
|
|
268
265
|
export function create(payload) {
|
|
269
266
|
const { toJSON: toReq, fromJSON: fromReq } = serializer(_createResourceRequest, {
|
|
@@ -314,7 +311,9 @@ export function create(payload) {
|
|
|
314
311
|
* 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).
|
|
315
312
|
*
|
|
316
313
|
*
|
|
317
|
-
* >**Notes:**
|
|
314
|
+
* >**Notes:**
|
|
315
|
+
* - 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"`.
|
|
316
|
+
* - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can update a resource.
|
|
318
317
|
*/
|
|
319
318
|
export function update(payload) {
|
|
320
319
|
const { toJSON: toReq, fromJSON: fromReq } = serializer(_updateResourceRequest, {
|
|
@@ -367,7 +366,11 @@ export function update(payload) {
|
|
|
367
366
|
* Updates a resource's schedule.
|
|
368
367
|
*
|
|
369
368
|
*
|
|
370
|
-
* The `updateResourceSchedule()` 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). The following schedule properties can be updated:
|
|
369
|
+
* The `updateResourceSchedule()` 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). The following schedule properties can be updated:
|
|
370
|
+
*
|
|
371
|
+
* - `availability.start`
|
|
372
|
+
*
|
|
373
|
+
* - `availability.linkedSchedules`
|
|
371
374
|
*
|
|
372
375
|
*
|
|
373
376
|
* To update a resource's schedule to remove business hours and add custom hours:
|
|
@@ -436,7 +439,10 @@ export function updateSchedule(payload) {
|
|
|
436
439
|
* You cannot delete a resource if it has booked sessions.
|
|
437
440
|
*
|
|
438
441
|
*
|
|
439
|
-
* >**Notes:**
|
|
442
|
+
* >**Notes:**
|
|
443
|
+
* - 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.
|
|
444
|
+
* - You can have up to 135 active resources and an additional 135 deleted resources.
|
|
445
|
+
* - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can delete a resource.
|
|
440
446
|
*/
|
|
441
447
|
export function _delete(payload) {
|
|
442
448
|
const { toJSON: toReq, fromJSON: fromReq } = 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,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAkBhD,MAAM,QAAQ,GAAG,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;AACjD,MAAM,gBAAgB,GAAG;IACvB,QAAQ,EAAE,6BAA6B;IACvC,SAAS,EAAE,6BAA6B;CACzC,CAAC;AACF,MAAM,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;AAC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AC;QACtC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,kCAAkC;YAC9C,MAAM,EAAE,KAAY;YACpB,SAAS,EACP,4EAA4E;YAC9E,GAAG,EAAE,uEAAuE,CAC1E,EAAE,SAAS,EAAE,eAAe,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,CAC3D;YACD,MAAM,EAAE,iBAAiB,CAAC,cAAc,CAAC;YACzC,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC;IAEzB,OAAO,MAAM,CAAC;AAChB,CAAC;AAED
|
|
1
|
+
{"version":3,"file":"bookings-catalog-v1-resource.http.js","sourceRoot":"","sources":["../../../src/bookings-catalog-v1-resource.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAkBhD,MAAM,QAAQ,GAAG,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;AACjD,MAAM,gBAAgB,GAAG;IACvB,QAAQ,EAAE,6BAA6B;IACvC,SAAS,EAAE,6BAA6B;CACzC,CAAC;AACF,MAAM,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;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EAA+E;YACjF,GAAG,EAAE,uEAAuE,CAC1E,EAAE,SAAS,EAAE,oBAAoB,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,CAChE;YACD,MAAM,EAAE,iBAAiB,CAAC,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"}
|
|
@@ -932,8 +932,6 @@ export interface ListOptions {
|
|
|
932
932
|
*
|
|
933
933
|
* The query parameter is optional. If no query is provided, all non-deleted resources are returned.
|
|
934
934
|
*
|
|
935
|
-
* |Property|Is supported| |--|--| |filter | supported fields: resource.id, resource.tags, resource.status| |paging | supported | |fields | supported | |fieldsets | not supported | |sort | not supported |
|
|
936
|
-
*
|
|
937
935
|
* > **Notes:** The following objects in the query parameter are not supported for this query:
|
|
938
936
|
* > - sort
|
|
939
937
|
* > - fieldsets
|
|
@@ -955,23 +953,22 @@ export interface QueryResourceCatalogOptions {
|
|
|
955
953
|
*
|
|
956
954
|
*
|
|
957
955
|
* The `createResource()` function returns a Promise that resolves to the created resource.
|
|
958
|
-
* 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
|
|
956
|
+
* 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.
|
|
959
957
|
*
|
|
960
958
|
*
|
|
961
959
|
* When creating a resource using `createResource()`, include the resource's schedule information. Set the schedule information as follows:
|
|
962
960
|
* - 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.
|
|
963
961
|
* - If the resource has its own custom working hours, create the resource, then create sessions of type `WORKING_HOURS` using the [`createSession()`](../Sessions/createsession) function. Use the `scheduleId` returned from `createResource()` when creating the sessions. These session can be single sessions or recurring sessions.
|
|
964
|
-
*
|
|
965
|
-
* You can have both default business hours and custom hours for the same resource schedule by combining the steps above.
|
|
966
|
-
*
|
|
967
|
-
*
|
|
968
|
-
* > **Notes:** 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.
|
|
962
|
+
* - You can have both default business hours and custom hours for the same resource schedule by combining the steps above.
|
|
969
963
|
*
|
|
970
964
|
*
|
|
971
|
-
*
|
|
972
|
-
*
|
|
973
|
-
*
|
|
974
|
-
* You can
|
|
965
|
+
* > **Notes:**
|
|
966
|
+
* - 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.
|
|
967
|
+
* - The Wix Bookings app does not show non-recurring `WORKING_HOURS` sessions in the resource calendar.
|
|
968
|
+
* - You can only add the business resource's schedule as a linked schedule for a resource.
|
|
969
|
+
* - A resource can have one schedule only.
|
|
970
|
+
* - You can have up to 135 active resources and an additional 135 deleted resources.
|
|
971
|
+
* - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can create a resource.
|
|
975
972
|
* @param resource - Resource details.
|
|
976
973
|
* @public
|
|
977
974
|
* @requiredField options.schedules.availability.start
|
|
@@ -996,7 +993,9 @@ export interface CreateResourceOptions {
|
|
|
996
993
|
* 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).
|
|
997
994
|
*
|
|
998
995
|
*
|
|
999
|
-
* >**Notes:**
|
|
996
|
+
* >**Notes:**
|
|
997
|
+
* - 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"`.
|
|
998
|
+
* - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can update a resource.
|
|
1000
999
|
* @param _id - Resource ID.
|
|
1001
1000
|
* @public
|
|
1002
1001
|
* @requiredField _id
|
|
@@ -1065,7 +1064,11 @@ export interface UpdateResourceOptions {
|
|
|
1065
1064
|
* Updates a resource's schedule.
|
|
1066
1065
|
*
|
|
1067
1066
|
*
|
|
1068
|
-
* The `updateResourceSchedule()` 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). The following schedule properties can be updated:
|
|
1067
|
+
* The `updateResourceSchedule()` 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). The following schedule properties can be updated:
|
|
1068
|
+
*
|
|
1069
|
+
* - `availability.start`
|
|
1070
|
+
*
|
|
1071
|
+
* - `availability.linkedSchedules`
|
|
1069
1072
|
*
|
|
1070
1073
|
*
|
|
1071
1074
|
* To update a resource's schedule to remove business hours and add custom hours:
|
|
@@ -1105,7 +1108,10 @@ export interface UpdateResourceScheduleOptions {
|
|
|
1105
1108
|
* You cannot delete a resource if it has booked sessions.
|
|
1106
1109
|
*
|
|
1107
1110
|
*
|
|
1108
|
-
* >**Notes:**
|
|
1111
|
+
* >**Notes:**
|
|
1112
|
+
* - 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.
|
|
1113
|
+
* - You can have up to 135 active resources and an additional 135 deleted resources.
|
|
1114
|
+
* - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can delete a resource.
|
|
1109
1115
|
* @param _id - ID of the resource to delete.
|
|
1110
1116
|
* @public
|
|
1111
1117
|
* @documentationMaturity preview
|
|
@@ -247,8 +247,6 @@ export function list(options) {
|
|
|
247
247
|
*
|
|
248
248
|
* The query parameter is optional. If no query is provided, all non-deleted resources are returned.
|
|
249
249
|
*
|
|
250
|
-
* |Property|Is supported| |--|--| |filter | supported fields: resource.id, resource.tags, resource.status| |paging | supported | |fields | supported | |fieldsets | not supported | |sort | not supported |
|
|
251
|
-
*
|
|
252
250
|
* > **Notes:** The following objects in the query parameter are not supported for this query:
|
|
253
251
|
* > - sort
|
|
254
252
|
* > - fieldsets
|
|
@@ -315,23 +313,22 @@ export function queryResourceCatalog(options) {
|
|
|
315
313
|
*
|
|
316
314
|
*
|
|
317
315
|
* The `createResource()` function returns a Promise that resolves to the created resource.
|
|
318
|
-
* 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
|
|
316
|
+
* 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.
|
|
319
317
|
*
|
|
320
318
|
*
|
|
321
319
|
* When creating a resource using `createResource()`, include the resource's schedule information. Set the schedule information as follows:
|
|
322
320
|
* - 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.
|
|
323
321
|
* - If the resource has its own custom working hours, create the resource, then create sessions of type `WORKING_HOURS` using the [`createSession()`](../Sessions/createsession) function. Use the `scheduleId` returned from `createResource()` when creating the sessions. These session can be single sessions or recurring sessions.
|
|
324
|
-
*
|
|
325
|
-
* You can have both default business hours and custom hours for the same resource schedule by combining the steps above.
|
|
326
|
-
*
|
|
327
|
-
*
|
|
328
|
-
* > **Notes:** 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.
|
|
322
|
+
* - You can have both default business hours and custom hours for the same resource schedule by combining the steps above.
|
|
329
323
|
*
|
|
330
324
|
*
|
|
331
|
-
*
|
|
332
|
-
*
|
|
333
|
-
*
|
|
334
|
-
* You can
|
|
325
|
+
* > **Notes:**
|
|
326
|
+
* - 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.
|
|
327
|
+
* - The Wix Bookings app does not show non-recurring `WORKING_HOURS` sessions in the resource calendar.
|
|
328
|
+
* - You can only add the business resource's schedule as a linked schedule for a resource.
|
|
329
|
+
* - A resource can have one schedule only.
|
|
330
|
+
* - You can have up to 135 active resources and an additional 135 deleted resources.
|
|
331
|
+
* - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can create a resource.
|
|
335
332
|
* @param resource - Resource details.
|
|
336
333
|
* @public
|
|
337
334
|
* @requiredField options.schedules.availability.start
|
|
@@ -407,7 +404,9 @@ export function createResource(resource, options) {
|
|
|
407
404
|
* 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).
|
|
408
405
|
*
|
|
409
406
|
*
|
|
410
|
-
* >**Notes:**
|
|
407
|
+
* >**Notes:**
|
|
408
|
+
* - 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"`.
|
|
409
|
+
* - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can update a resource.
|
|
411
410
|
* @param _id - Resource ID.
|
|
412
411
|
* @public
|
|
413
412
|
* @requiredField _id
|
|
@@ -486,7 +485,11 @@ export function updateResource(_id, options) {
|
|
|
486
485
|
* Updates a resource's schedule.
|
|
487
486
|
*
|
|
488
487
|
*
|
|
489
|
-
* The `updateResourceSchedule()` 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). The following schedule properties can be updated:
|
|
488
|
+
* The `updateResourceSchedule()` 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). The following schedule properties can be updated:
|
|
489
|
+
*
|
|
490
|
+
* - `availability.start`
|
|
491
|
+
*
|
|
492
|
+
* - `availability.linkedSchedules`
|
|
490
493
|
*
|
|
491
494
|
*
|
|
492
495
|
* To update a resource's schedule to remove business hours and add custom hours:
|
|
@@ -567,7 +570,10 @@ export function updateResourceSchedule(resourceId, options) {
|
|
|
567
570
|
* You cannot delete a resource if it has booked sessions.
|
|
568
571
|
*
|
|
569
572
|
*
|
|
570
|
-
* >**Notes:**
|
|
573
|
+
* >**Notes:**
|
|
574
|
+
* - 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.
|
|
575
|
+
* - You can have up to 135 active resources and an additional 135 deleted resources.
|
|
576
|
+
* - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can delete a resource.
|
|
571
577
|
* @param _id - ID of the resource to delete.
|
|
572
578
|
* @public
|
|
573
579
|
* @documentationMaturity preview
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-catalog-v1-resource.universal.js","sourceRoot":"","sources":["../../../src/bookings-catalog-v1-resource.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,KAAK,sCAAsC,MAAM,qCAAqC,CAAC;AAE9F,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,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AE,uBAAuB;YACnC,UAAU,EAAE,EAAE;YACd,kBAAkB,EAAE;gBAClB,KAAK,EAAE,EAAE;gBACT,cAAc,EAAE,aAAa;aAC9B;YACD,oBAAoB,EAAE,sBAAsB;SAC7C,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,mBAAmB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QAE3C,MAAM,OAAO,GAAG,sCAAsC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAExE,KAAK,CAAC,mCAAmC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAE/D,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;aACN,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-catalog-v1-resource.universal.js","sourceRoot":"","sources":["../../../src/bookings-catalog-v1-resource.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,KAAK,sCAAsC,MAAM,qCAAqC,CAAC;AAE9F,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAA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QAAQ,EAAE,GAAG,UAAU,CAAC;YAC9B,UAAU,EAAE,uBAAuB;YACnC,UAAU,EAAE,EAAE;YACd,kBAAkB,EAAE;gBAClB,KAAK,EAAE,EAAE;gBACT,cAAc,EAAE,aAAa;aAC9B;YACD,oBAAoB,EAAE,sBAAsB;SAC7C,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,mBAAmB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QAE3C,MAAM,OAAO,GAAG,sCAAsC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAExE,KAAK,CAAC,mCAAmC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAE/D,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;aACN,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/bookings",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.161",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"groupId": "com.wixpress.public-sdk-autogen"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
-
"falconPackageHash": "
|
|
36
|
+
"falconPackageHash": "cb69a7079371e1e5815697ed0171f874f7b301b4b61a4a76f8e7c1d2"
|
|
37
37
|
}
|