@wix/bookings 1.0.232 → 1.0.234

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/build/cjs/index.d.ts +2 -2
  2. package/build/cjs/index.js +3 -3
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +2 -2
  5. package/build/cjs/index.typings.js +3 -3
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/src/bookings-catalog-v1-resource.http.d.ts +25 -66
  8. package/build/cjs/src/bookings-catalog-v1-resource.http.js +25 -66
  9. package/build/cjs/src/bookings-catalog-v1-resource.http.js.map +1 -1
  10. package/build/cjs/src/bookings-catalog-v1-resource.public.d.ts +5 -5
  11. package/build/cjs/src/bookings-catalog-v1-resource.public.js +10 -10
  12. package/build/cjs/src/bookings-catalog-v1-resource.public.js.map +1 -1
  13. package/build/cjs/src/bookings-catalog-v1-resource.universal.d.ts +30 -73
  14. package/build/cjs/src/bookings-catalog-v1-resource.universal.js +32 -75
  15. package/build/cjs/src/bookings-catalog-v1-resource.universal.js.map +1 -1
  16. package/build/cjs/src/bookings-v2-booking.public.d.ts +1 -1
  17. package/build/cjs/src/bookings-v2-booking.types.d.ts +15 -9
  18. package/build/cjs/src/bookings-v2-booking.types.js.map +1 -1
  19. package/build/cjs/src/bookings-v2-booking.universal.d.ts +15 -9
  20. package/build/cjs/src/bookings-v2-booking.universal.js.map +1 -1
  21. package/build/es/index.d.ts +2 -2
  22. package/build/es/index.js +2 -2
  23. package/build/es/index.js.map +1 -1
  24. package/build/es/index.typings.d.ts +2 -2
  25. package/build/es/index.typings.js +2 -2
  26. package/build/es/index.typings.js.map +1 -1
  27. package/build/es/src/bookings-catalog-v1-resource.http.d.ts +25 -66
  28. package/build/es/src/bookings-catalog-v1-resource.http.js +25 -66
  29. package/build/es/src/bookings-catalog-v1-resource.http.js.map +1 -1
  30. package/build/es/src/bookings-catalog-v1-resource.public.d.ts +5 -5
  31. package/build/es/src/bookings-catalog-v1-resource.public.js +7 -7
  32. package/build/es/src/bookings-catalog-v1-resource.public.js.map +1 -1
  33. package/build/es/src/bookings-catalog-v1-resource.universal.d.ts +30 -73
  34. package/build/es/src/bookings-catalog-v1-resource.universal.js +28 -71
  35. package/build/es/src/bookings-catalog-v1-resource.universal.js.map +1 -1
  36. package/build/es/src/bookings-v2-booking.public.d.ts +1 -1
  37. package/build/es/src/bookings-v2-booking.types.d.ts +15 -9
  38. package/build/es/src/bookings-v2-booking.types.js.map +1 -1
  39. package/build/es/src/bookings-v2-booking.universal.d.ts +15 -9
  40. package/build/es/src/bookings-v2-booking.universal.js.map +1 -1
  41. package/package.json +2 -2
@@ -1,4 +1,6 @@
1
1
  export * as sessionsFeed from './src/bookings-calendar-v2-session-feed-event.public';
2
+ export * as resources from './src/bookings-catalog-v1-resource.public';
3
+ export * as categories from './src/bookings-v1-category.public';
2
4
  export * as availabilityCalendar from './src/bookings-availability-v1-slot-availability.public';
3
5
  export * as sessions from './src/bookings-calendar-v1-session.public';
4
6
  export * as externalCalendars from './src/bookings-calendar-v2-external-calendar.public';
@@ -9,5 +11,3 @@ export * as services from './src/bookings-services-v2-service.public';
9
11
  export * as attendance from './src/bookings-v2-attendance.public';
10
12
  export * as bookings from './src/bookings-v2-booking.public';
11
13
  export * as pricing from './src/bookings-v2-price-info.public';
12
- export * as resources from './src/bookings-catalog-v1-resource.public';
13
- export * as categories from './src/bookings-v1-category.public';
@@ -19,8 +19,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
19
19
  return result;
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.categories = exports.resources = exports.pricing = exports.bookings = exports.attendance = exports.services = exports.extendedBookings = exports.serviceOptionsAndVariants = exports.sessionsView = exports.externalCalendars = exports.sessions = exports.availabilityCalendar = exports.sessionsFeed = void 0;
22
+ exports.pricing = exports.bookings = exports.attendance = exports.services = exports.extendedBookings = exports.serviceOptionsAndVariants = exports.sessionsView = exports.externalCalendars = exports.sessions = exports.availabilityCalendar = exports.categories = exports.resources = exports.sessionsFeed = void 0;
23
23
  exports.sessionsFeed = __importStar(require("./src/bookings-calendar-v2-session-feed-event.public"));
24
+ exports.resources = __importStar(require("./src/bookings-catalog-v1-resource.public"));
25
+ exports.categories = __importStar(require("./src/bookings-v1-category.public"));
24
26
  exports.availabilityCalendar = __importStar(require("./src/bookings-availability-v1-slot-availability.public"));
25
27
  exports.sessions = __importStar(require("./src/bookings-calendar-v1-session.public"));
26
28
  exports.externalCalendars = __importStar(require("./src/bookings-calendar-v2-external-calendar.public"));
@@ -31,6 +33,4 @@ exports.services = __importStar(require("./src/bookings-services-v2-service.publ
31
33
  exports.attendance = __importStar(require("./src/bookings-v2-attendance.public"));
32
34
  exports.bookings = __importStar(require("./src/bookings-v2-booking.public"));
33
35
  exports.pricing = __importStar(require("./src/bookings-v2-price-info.public"));
34
- exports.resources = __importStar(require("./src/bookings-catalog-v1-resource.public"));
35
- exports.categories = __importStar(require("./src/bookings-v1-category.public"));
36
36
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,qGAAqF;AACrF,gHAAgG;AAChG,sFAAsE;AACtE,yGAAyF;AACzF,+FAA+E;AAC/E,2HAA2G;AAC3G,qGAAqF;AACrF,sFAAsE;AACtE,kFAAkE;AAClE,6EAA6D;AAC7D,+EAA+D;AAC/D,uFAAuE;AACvE,gFAAgE"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,qGAAqF;AACrF,uFAAuE;AACvE,gFAAgE;AAChE,gHAAgG;AAChG,sFAAsE;AACtE,yGAAyF;AACzF,+FAA+E;AAC/E,2HAA2G;AAC3G,qGAAqF;AACrF,sFAAsE;AACtE,kFAAkE;AAClE,6EAA6D;AAC7D,+EAA+D"}
@@ -1,3 +1,5 @@
1
+ export * as resources from './src/bookings-catalog-v1-resource.universal';
2
+ export * as categories from './src/bookings-v1-category.universal';
1
3
  export * as availabilityCalendar from './src/bookings-availability-v1-slot-availability.universal';
2
4
  export * as sessions from './src/bookings-calendar-v1-session.universal';
3
5
  export * as externalCalendars from './src/bookings-calendar-v2-external-calendar.universal';
@@ -8,5 +10,3 @@ export * as services from './src/bookings-services-v2-service.universal';
8
10
  export * as attendance from './src/bookings-v2-attendance.universal';
9
11
  export * as bookings from './src/bookings-v2-booking.universal';
10
12
  export * as pricing from './src/bookings-v2-price-info.universal';
11
- export * as resources from './src/bookings-catalog-v1-resource.universal';
12
- export * as categories from './src/bookings-v1-category.universal';
@@ -19,7 +19,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
19
19
  return result;
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.categories = exports.resources = exports.pricing = exports.bookings = exports.attendance = exports.services = exports.extendedBookings = exports.serviceOptionsAndVariants = exports.sessionsView = exports.externalCalendars = exports.sessions = exports.availabilityCalendar = void 0;
22
+ exports.pricing = exports.bookings = exports.attendance = exports.services = exports.extendedBookings = exports.serviceOptionsAndVariants = exports.sessionsView = exports.externalCalendars = exports.sessions = exports.availabilityCalendar = exports.categories = exports.resources = void 0;
23
+ exports.resources = __importStar(require("./src/bookings-catalog-v1-resource.universal"));
24
+ exports.categories = __importStar(require("./src/bookings-v1-category.universal"));
23
25
  exports.availabilityCalendar = __importStar(require("./src/bookings-availability-v1-slot-availability.universal"));
24
26
  exports.sessions = __importStar(require("./src/bookings-calendar-v1-session.universal"));
25
27
  exports.externalCalendars = __importStar(require("./src/bookings-calendar-v2-external-calendar.universal"));
@@ -30,6 +32,4 @@ exports.services = __importStar(require("./src/bookings-services-v2-service.univ
30
32
  exports.attendance = __importStar(require("./src/bookings-v2-attendance.universal"));
31
33
  exports.bookings = __importStar(require("./src/bookings-v2-booking.universal"));
32
34
  exports.pricing = __importStar(require("./src/bookings-v2-price-info.universal"));
33
- exports.resources = __importStar(require("./src/bookings-catalog-v1-resource.universal"));
34
- exports.categories = __importStar(require("./src/bookings-v1-category.universal"));
35
35
  //# sourceMappingURL=index.typings.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,mHAAmG;AACnG,yFAAyE;AACzE,4GAA4F;AAC5F,kGAAkF;AAClF,8HAA8G;AAC9G,wGAAwF;AACxF,yFAAyE;AACzE,qFAAqE;AACrE,gFAAgE;AAChE,kFAAkE;AAClE,0FAA0E;AAC1E,mFAAmE"}
1
+ {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,0FAA0E;AAC1E,mFAAmE;AACnE,mHAAmG;AACnG,yFAAyE;AACzE,4GAA4F;AAC5F,kGAAkF;AAClF,8HAA8G;AAC9G,wGAAwF;AACxF,yFAAyE;AACzE,qFAAqE;AACrE,gFAAgE;AAChE,kFAAkE"}
@@ -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,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,SAAS,GAAG;IAChB,aAAa,EAAE,UAAU;IACzB,gBAAgB,EAAE,oBAAoB;CACvC,CAAC;AACF,MAAM,iBAAiB,GAAG,EAAE,OAAO,EAAE,2BAA2B,EAAE,CAAC;AACnE,MAAM,yBAAyB,GAAG;IACh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F,GAAG,EAAE,uEAAuE,CAC1E,EAAE,SAAS,EAAE,oBAAoB,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,CAChE;YACD,MAAM,EAAE,IAAA,iCAAiB,EAAC,cAAc,CAAC;YACzC,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,SAAS,CAAC,OAAO,GAAG,OAAO,CAAC;IAE5B,OAAO,SAAS,CAAC;AACnB,CAAC;AA/BD,0BA+BC"}
1
+ {"version":3,"file":"bookings-catalog-v1-resource.http.js","sourceRoot":"","sources":["../../../src/bookings-catalog-v1-resource.http.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AACvD,8DAA2D;AAC3D,sDAAgD;AAqBhD,MAAM,QAAQ,GAAG,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;AACjD,MAAM,gBAAgB,GAAG;IACvB,QAAQ,EAAE,6BAA6B;IACvC,SAAS,EAAE,6BAA6B;CACzC,CAAC;AACF,MAAM,aAAa,GAAG;IACpB,KAAK,EAAE,2BAA2B;IAClC,GAAG,EAAE,2BAA2B;IAChC,SAAS,EAAE,WAAW;CACvB,CAAC;AACF,MAAM,aAAa,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,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AAQ,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,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,SAA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