@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.
- package/build/cjs/index.d.ts +2 -2
- package/build/cjs/index.js +3 -3
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +3 -3
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/src/bookings-catalog-v1-resource.http.d.ts +25 -66
- package/build/cjs/src/bookings-catalog-v1-resource.http.js +25 -66
- package/build/cjs/src/bookings-catalog-v1-resource.http.js.map +1 -1
- package/build/cjs/src/bookings-catalog-v1-resource.public.d.ts +5 -5
- package/build/cjs/src/bookings-catalog-v1-resource.public.js +10 -10
- package/build/cjs/src/bookings-catalog-v1-resource.public.js.map +1 -1
- package/build/cjs/src/bookings-catalog-v1-resource.universal.d.ts +30 -73
- package/build/cjs/src/bookings-catalog-v1-resource.universal.js +32 -75
- package/build/cjs/src/bookings-catalog-v1-resource.universal.js.map +1 -1
- package/build/cjs/src/bookings-v2-booking.public.d.ts +1 -1
- package/build/cjs/src/bookings-v2-booking.types.d.ts +15 -9
- package/build/cjs/src/bookings-v2-booking.types.js.map +1 -1
- package/build/cjs/src/bookings-v2-booking.universal.d.ts +15 -9
- package/build/cjs/src/bookings-v2-booking.universal.js.map +1 -1
- package/build/es/index.d.ts +2 -2
- package/build/es/index.js +2 -2
- package/build/es/index.js.map +1 -1
- package/build/es/index.typings.d.ts +2 -2
- package/build/es/index.typings.js +2 -2
- package/build/es/index.typings.js.map +1 -1
- package/build/es/src/bookings-catalog-v1-resource.http.d.ts +25 -66
- package/build/es/src/bookings-catalog-v1-resource.http.js +25 -66
- package/build/es/src/bookings-catalog-v1-resource.http.js.map +1 -1
- package/build/es/src/bookings-catalog-v1-resource.public.d.ts +5 -5
- package/build/es/src/bookings-catalog-v1-resource.public.js +7 -7
- package/build/es/src/bookings-catalog-v1-resource.public.js.map +1 -1
- package/build/es/src/bookings-catalog-v1-resource.universal.d.ts +30 -73
- package/build/es/src/bookings-catalog-v1-resource.universal.js +28 -71
- package/build/es/src/bookings-catalog-v1-resource.universal.js.map +1 -1
- package/build/es/src/bookings-v2-booking.public.d.ts +1 -1
- package/build/es/src/bookings-v2-booking.types.d.ts +15 -9
- package/build/es/src/bookings-v2-booking.types.js.map +1 -1
- package/build/es/src/bookings-v2-booking.universal.d.ts +15 -9
- package/build/es/src/bookings-v2-booking.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -1470,48 +1470,27 @@ export interface QueryResourcesOptions {
|
|
|
1470
1470
|
}
|
|
1471
1471
|
/**
|
|
1472
1472
|
* Creates a resource.
|
|
1473
|
-
* <!--ONLY:VELO
|
|
1474
|
-
* The `createResource()` function returns a Promise that resolves to the created resource.
|
|
1475
|
-
* <!--END:ONLY:VELO-->
|
|
1476
1473
|
*
|
|
1477
|
-
* Bookings resources are created with a schedule. The schedule and its sessions determine the resource's availability. Note that the schedule must contain a start date in the `availability.start` property.
|
|
1478
|
-
* For resources that are available during the business's default hours, add the business's schedule as a linked schedule in the resource's schedule. For resources that have their own hours, create sessions with type `"WORKING_HOURS"` using the resource's schedule.
|
|
1479
|
-
* You can use both individual and recurring sessions to define resource availability. You cannot use availability constraints for resource schedules.
|
|
1480
|
-
*
|
|
1481
|
-
* <!--ONLY:VELO
|
|
1482
|
-
* When creating a resource using `createResource()`, include the resource's schedule information. Set the schedule information as follows:
|
|
1483
|
-
* + If the resource uses the default business hours, get the business resource's schedule ID and include it in the `scheduleInfo.availability.linkedSchedules` array in the `scheduleInfo` parameter. The default hours can bee found in the Dashboard under **Settings** in the **Bookings** section, on the **Appointment hours** page.
|
|
1484
|
-
* + If the resource has its own custom working hours, create the resource, then create sessions of type `"WORKING_HOURS"` using the [`createSession()`](wix-bookings-backend.Sessions/createsession) function. Use the `scheduleId` returned from `createResource()` when creating the sessions. These session can be single sessions or recurring sessions.
|
|
1485
|
-
* + You can have both default business hours and custom hours for the same resource schedule by combining the steps above.
|
|
1486
1474
|
*
|
|
1487
|
-
*
|
|
1488
|
-
*
|
|
1489
|
-
* > + The Wix Bookings app does not show non-recurring `WORKING_HOURS` sessions in the resource calendar.
|
|
1490
|
-
* > + You can only add the business resource's schedule as a linked schedule for a resource.
|
|
1491
|
-
* > + A resource can have one schedule only.
|
|
1492
|
-
* > + You can have up to 135 active resources and an additional 135 deleted resources.
|
|
1493
|
-
* > + Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can create a resource. You can override the role permissions by setting the `options.suppressAuth` parameter to `true`.
|
|
1494
|
-
* <!--END:ONLY:VELO-->
|
|
1475
|
+
* The `createResource()` function returns a Promise that resolves to the created resource.
|
|
1476
|
+
* Bookings resources are created with a schedule. The schedule and its sessions determine the resource's availability. Note that the schedule must contain a start date in the availability.start property. For resources that are available during the business's default hours, add the business's schedule as a linked schedule in the resource's schedule. For resources that have their own hours, create sessions with type `WORKING_HOURS` using the resource's schedule. You can use both individual and recurring sessions to define resource availability. You cannot use availability constraints for resource schedules.
|
|
1495
1477
|
*
|
|
1496
|
-
* <!--ONLY:REST-->
|
|
1497
|
-
* Use the following steps to create resources:
|
|
1498
|
-
* - Create the resource using including schedule information.
|
|
1499
|
-
* - If the resource uses the default business hours, get the business resource's schedule ID and include it in the `scheduleInfo.availability.linkedSchedules` array in the in the schedule parameters.
|
|
1500
|
-
* - If the resource has its own custom working hours, create sessions of type `"WORKING_HOURS"`. Use the `scheduleId` of the new resource when creating the sessions. These session can be single sessions or recurring sessions. You can have both business hours and custom hours for the same resource schedule.
|
|
1501
|
-
*
|
|
1502
|
-
* >**Notes:**
|
|
1503
|
-
* > + A resource can have one schedule only.
|
|
1504
|
-
* > + You can have up to 135 active resources and an additional 135 deleted resources.
|
|
1505
|
-
* > + The `businessLocation.businessSchedule` object in the `schedule.location` object is not supported.
|
|
1506
1478
|
*
|
|
1479
|
+
* When creating a resource using `createResource()`, include the resource's schedule information. Set the schedule information as follows:
|
|
1480
|
+
* - If the resource uses the default business hours, get the business resource's schedule ID and include it in the `scheduleInfo.availability.linkedSchedules` array in the `scheduleInfo` parameter. The default hours can bee found in the Dashboard under **Settings** in the **Bookings** section, on the **Appointment hours** page.
|
|
1481
|
+
* - If the resource has its own custom working hours, create the resource, then create sessions of type `WORKING_HOURS` using the [`createSession()`](wix-bookings-v2/sessions/createsession) function. Use the `scheduleId` returned from `createResource()` when creating the sessions. These session can be single sessions or recurring sessions.
|
|
1482
|
+
* - You can have both default business hours and custom hours for the same resource schedule by combining the steps above.
|
|
1507
1483
|
*
|
|
1508
1484
|
*
|
|
1509
|
-
*
|
|
1510
|
-
*
|
|
1511
|
-
*
|
|
1485
|
+
* > **Notes:**
|
|
1486
|
+
* - The Wix Bookings app does not show both default business hours and custom hours on the **Staff** page in the dashboard. If you've set up both custom and default business hours, only the default business hours will appear in the app, although both are working.
|
|
1487
|
+
* - The Wix Bookings app does not show non-recurring `WORKING_HOURS` sessions in the resource calendar.
|
|
1488
|
+
* - You can only add the business resource's schedule as a linked schedule for a resource.
|
|
1489
|
+
* - A resource can have one schedule only.
|
|
1490
|
+
* - You can have up to 135 active resources and an additional 135 deleted resources.
|
|
1491
|
+
* - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can create a resource.
|
|
1512
1492
|
* @param resource - Resource details.
|
|
1513
1493
|
* @public
|
|
1514
|
-
* @documentationMaturity preview
|
|
1515
1494
|
* @requiredField options.schedules.availability.start
|
|
1516
1495
|
* @requiredField options.schedules.intervals.start
|
|
1517
1496
|
* @requiredField resource
|
|
@@ -1519,8 +1498,8 @@ export interface QueryResourcesOptions {
|
|
|
1519
1498
|
* @permissionScope Manage Bookings
|
|
1520
1499
|
* @applicableIdentity APP
|
|
1521
1500
|
*/
|
|
1522
|
-
export declare function
|
|
1523
|
-
export interface
|
|
1501
|
+
export declare function createResource(resource: Resource, options?: CreateResourceOptions): Promise<CreateResourceResponse & CreateResourceResponseNonNullableFields>;
|
|
1502
|
+
export interface CreateResourceOptions {
|
|
1524
1503
|
/**
|
|
1525
1504
|
* List of schedules to be assigned for the created resource. Currently only a single schedule is allowed.
|
|
1526
1505
|
* If provided, any schedules in the resource entity will be ignored.
|
|
@@ -1529,35 +1508,22 @@ export interface CreateResourcesOptions {
|
|
|
1529
1508
|
}
|
|
1530
1509
|
/**
|
|
1531
1510
|
* Updates a resource.
|
|
1532
|
-
* <!--ONLY:VELO
|
|
1533
|
-
* The `updateResource()` function returns a Promise that resolves when a resource is updated.
|
|
1534
|
-
* Use this function to update all bookings resource information except for the resource's schedule. To update a resource's schedule use [`updateResourceSchedule()`](wix-bookings-backend/resource/updateresourceschedule).
|
|
1535
1511
|
*
|
|
1536
|
-
* >**Notes:**
|
|
1537
|
-
* > + When updating a resource you cannot change the system tags used by the Wix Bookings app. Tags used by the app have the values `"business"` and `"staff"`.
|
|
1538
|
-
* > + Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can update a resource. You can override the role permissions by setting the `options.suppressAuth` parameter to `true`.
|
|
1539
|
-
* <!--END:ONLY:VELO-->
|
|
1540
|
-
* <!--ONLY:REST-->
|
|
1541
|
-
* Use this endpoint to update all resource information except for the resource's schedule. To update a resource's schedule use
|
|
1542
|
-
* the [Update Schedule](https://dev.wix.com/api/rest/wix-bookings/resources/update-schedule) endpoint.
|
|
1543
1512
|
*
|
|
1544
|
-
*
|
|
1545
|
-
* > + When updating a resource you cannot change the system tags used by the Wix Bookings app. Tags used by the app have the values `"business"` and `"staff"`.
|
|
1546
|
-
* > + When updating a resource's schedule you cannot change the resource tag used by the Wix Bookings app. Tags used by the app have the values `"INDIVIDUAL"`, `"GROUP"`, and `"COURSE”`.
|
|
1547
|
-
* > + The `businessLocation.businessSchedule` object in the `schedule.location` object is not supported.
|
|
1513
|
+
* The `updateResource()` function returns a Promise that resolves when a resource is updated. Use this function to update all bookings resource information except for the resource's schedule. To update a resource's schedule use [`updateResourceSchedule()`](#updateresourceschedule).
|
|
1548
1514
|
*
|
|
1549
|
-
*
|
|
1550
|
-
*
|
|
1551
|
-
*
|
|
1515
|
+
*
|
|
1516
|
+
* >**Notes:**
|
|
1517
|
+
* - When updating a resource you cannot change the system tags used by the Wix Bookings app. Tags used by the app have the values `"business"` and `"staff"`.
|
|
1518
|
+
* - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can update a resource.
|
|
1552
1519
|
* @param _id - Resource ID.
|
|
1553
1520
|
* @public
|
|
1554
|
-
* @documentationMaturity preview
|
|
1555
1521
|
* @requiredField _id
|
|
1556
1522
|
* @permissionScope Manage Bookings
|
|
1557
1523
|
* @applicableIdentity APP
|
|
1558
1524
|
*/
|
|
1559
|
-
export declare function
|
|
1560
|
-
export interface
|
|
1525
|
+
export declare function updateResource(_id: string | null, options?: UpdateResourceOptions): Promise<UpdateResourceResponse & UpdateResourceResponseNonNullableFields>;
|
|
1526
|
+
export interface UpdateResourceOptions {
|
|
1561
1527
|
resource: {
|
|
1562
1528
|
/**
|
|
1563
1529
|
* Resource ID.
|
|
@@ -1678,28 +1644,19 @@ export interface UpdateScheduleOptions {
|
|
|
1678
1644
|
}
|
|
1679
1645
|
/**
|
|
1680
1646
|
* Deletes a resource.
|
|
1681
|
-
*
|
|
1647
|
+
*
|
|
1682
1648
|
* The `deleteResource()` function returns a Promise that is resolved when a resource is deleted.
|
|
1683
|
-
*
|
|
1684
|
-
*
|
|
1649
|
+
*
|
|
1650
|
+
*
|
|
1651
|
+
* Deleting a resource updates its status to `DELETED`.
|
|
1685
1652
|
*
|
|
1686
1653
|
* You cannot delete a resource if it has booked sessions.
|
|
1687
1654
|
*
|
|
1688
|
-
* <!--ONLY:VELO
|
|
1689
|
-
* >**Notes:**
|
|
1690
|
-
* > + The Bookings app automatically creates a resource with a name and tag of value `"business"``. This resource is used for the business's schedule and working hours and cannot be deleted.
|
|
1691
|
-
* > + You can have up to 135 active resources and an additional 135 deleted resources.
|
|
1692
|
-
* > + Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can delete a resource. You can override the role permissions by setting the `options.suppressAuth` parameter to `true`.
|
|
1693
|
-
* <!--END:ONLY:VELO-->
|
|
1694
1655
|
*
|
|
1695
|
-
* <!--ONLY:REST-->
|
|
1696
1656
|
* >**Notes:**
|
|
1697
|
-
*
|
|
1698
|
-
*
|
|
1699
|
-
*
|
|
1700
|
-
* >**Permissions:**
|
|
1701
|
-
* > This endpoint requires the Manage Bookings [permission scope](https://devforum.wix.com/kb/en/article/available-permissions).
|
|
1702
|
-
* <!--END:ONLY:REST-->
|
|
1657
|
+
* - The Bookings app automatically creates a resource with a name and tag of value `business`. This resource is used for the business's schedule and working hours and cannot be deleted.
|
|
1658
|
+
* - You can have up to 135 active resources and an additional 135 deleted resources.
|
|
1659
|
+
* - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can delete a resource.
|
|
1703
1660
|
* @param _id - ID of the resource to delete.
|
|
1704
1661
|
* @public
|
|
1705
1662
|
* @documentationMaturity preview
|
|
@@ -1707,4 +1664,4 @@ export interface UpdateScheduleOptions {
|
|
|
1707
1664
|
* @permissionScope Manage Bookings
|
|
1708
1665
|
* @applicableIdentity APP
|
|
1709
1666
|
*/
|
|
1710
|
-
export declare function
|
|
1667
|
+
export declare function deleteResource(_id: string): Promise<DeleteResourceResponse & DeleteResourceResponseNonNullableFields>;
|
|
@@ -28,7 +28,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
30
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
-
exports.
|
|
31
|
+
exports.deleteResource = exports.updateSchedule = exports.updateResource = exports.createResource = exports.queryResources = 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.__debug = void 0;
|
|
32
32
|
const velo_1 = require("@wix/metro-runtime/velo");
|
|
33
33
|
const ambassadorWixBookingsCatalogV1Resource = __importStar(require("./bookings-catalog-v1-resource.http"));
|
|
34
34
|
let __verbose = false;
|
|
@@ -290,48 +290,27 @@ function queryResources(options) {
|
|
|
290
290
|
exports.queryResources = queryResources;
|
|
291
291
|
/**
|
|
292
292
|
* Creates a resource.
|
|
293
|
-
* <!--ONLY:VELO
|
|
294
|
-
* The `createResource()` function returns a Promise that resolves to the created resource.
|
|
295
|
-
* <!--END:ONLY:VELO-->
|
|
296
293
|
*
|
|
297
|
-
* 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.
|
|
298
|
-
* 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.
|
|
299
|
-
* You can use both individual and recurring sessions to define resource availability. You cannot use availability constraints for resource schedules.
|
|
300
|
-
*
|
|
301
|
-
* <!--ONLY:VELO
|
|
302
|
-
* When creating a resource using `createResource()`, include the resource's schedule information. Set the schedule information as follows:
|
|
303
|
-
* + 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.
|
|
304
|
-
* + 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.
|
|
305
|
-
* + You can have both default business hours and custom hours for the same resource schedule by combining the steps above.
|
|
306
294
|
*
|
|
307
|
-
*
|
|
308
|
-
*
|
|
309
|
-
* > + The Wix Bookings app does not show non-recurring `WORKING_HOURS` sessions in the resource calendar.
|
|
310
|
-
* > + You can only add the business resource's schedule as a linked schedule for a resource.
|
|
311
|
-
* > + A resource can have one schedule only.
|
|
312
|
-
* > + You can have up to 135 active resources and an additional 135 deleted resources.
|
|
313
|
-
* > + 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`.
|
|
314
|
-
* <!--END:ONLY:VELO-->
|
|
295
|
+
* The `createResource()` function returns a Promise that resolves to the created resource.
|
|
296
|
+
* 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.
|
|
315
297
|
*
|
|
316
|
-
* <!--ONLY:REST-->
|
|
317
|
-
* Use the following steps to create resources:
|
|
318
|
-
* - Create the resource using including schedule information.
|
|
319
|
-
* - 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.
|
|
320
|
-
* - 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.
|
|
321
|
-
*
|
|
322
|
-
* >**Notes:**
|
|
323
|
-
* > + A resource can have one schedule only.
|
|
324
|
-
* > + You can have up to 135 active resources and an additional 135 deleted resources.
|
|
325
|
-
* > + The `businessLocation.businessSchedule` object in the `schedule.location` object is not supported.
|
|
326
298
|
*
|
|
299
|
+
* When creating a resource using `createResource()`, include the resource's schedule information. Set the schedule information as follows:
|
|
300
|
+
* - 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.
|
|
301
|
+
* - 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.
|
|
302
|
+
* - You can have both default business hours and custom hours for the same resource schedule by combining the steps above.
|
|
327
303
|
*
|
|
328
304
|
*
|
|
329
|
-
*
|
|
330
|
-
*
|
|
331
|
-
*
|
|
305
|
+
* > **Notes:**
|
|
306
|
+
* - 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.
|
|
307
|
+
* - The Wix Bookings app does not show non-recurring `WORKING_HOURS` sessions in the resource calendar.
|
|
308
|
+
* - You can only add the business resource's schedule as a linked schedule for a resource.
|
|
309
|
+
* - A resource can have one schedule only.
|
|
310
|
+
* - You can have up to 135 active resources and an additional 135 deleted resources.
|
|
311
|
+
* - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can create a resource.
|
|
332
312
|
* @param resource - Resource details.
|
|
333
313
|
* @public
|
|
334
|
-
* @documentationMaturity preview
|
|
335
314
|
* @requiredField options.schedules.availability.start
|
|
336
315
|
* @requiredField options.schedules.intervals.start
|
|
337
316
|
* @requiredField resource
|
|
@@ -339,7 +318,7 @@ exports.queryResources = queryResources;
|
|
|
339
318
|
* @permissionScope Manage Bookings
|
|
340
319
|
* @applicableIdentity APP
|
|
341
320
|
*/
|
|
342
|
-
function
|
|
321
|
+
function createResource(resource, options) {
|
|
343
322
|
var _a, _b, _c;
|
|
344
323
|
return __awaiter(this, arguments, void 0, function* () {
|
|
345
324
|
const requestTransformation = {
|
|
@@ -398,37 +377,24 @@ function createResources(resource, options) {
|
|
|
398
377
|
}
|
|
399
378
|
});
|
|
400
379
|
}
|
|
401
|
-
exports.
|
|
380
|
+
exports.createResource = createResource;
|
|
402
381
|
/**
|
|
403
382
|
* Updates a resource.
|
|
404
|
-
* <!--ONLY:VELO
|
|
405
|
-
* The `updateResource()` function returns a Promise that resolves when a resource is updated.
|
|
406
|
-
* 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).
|
|
407
383
|
*
|
|
408
|
-
* >**Notes:**
|
|
409
|
-
* > + 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"`.
|
|
410
|
-
* > + 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`.
|
|
411
|
-
* <!--END:ONLY:VELO-->
|
|
412
|
-
* <!--ONLY:REST-->
|
|
413
|
-
* Use this endpoint to update all resource information except for the resource's schedule. To update a resource's schedule use
|
|
414
|
-
* the [Update Schedule](https://dev.wix.com/api/rest/wix-bookings/resources/update-schedule) endpoint.
|
|
415
384
|
*
|
|
416
|
-
*
|
|
417
|
-
* > + 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"`.
|
|
418
|
-
* > + 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”`.
|
|
419
|
-
* > + The `businessLocation.businessSchedule` object in the `schedule.location` object is not supported.
|
|
385
|
+
* 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).
|
|
420
386
|
*
|
|
421
|
-
*
|
|
422
|
-
*
|
|
423
|
-
*
|
|
387
|
+
*
|
|
388
|
+
* >**Notes:**
|
|
389
|
+
* - 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"`.
|
|
390
|
+
* - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can update a resource.
|
|
424
391
|
* @param _id - Resource ID.
|
|
425
392
|
* @public
|
|
426
|
-
* @documentationMaturity preview
|
|
427
393
|
* @requiredField _id
|
|
428
394
|
* @permissionScope Manage Bookings
|
|
429
395
|
* @applicableIdentity APP
|
|
430
396
|
*/
|
|
431
|
-
function
|
|
397
|
+
function updateResource(_id, options) {
|
|
432
398
|
var _a, _b, _c;
|
|
433
399
|
return __awaiter(this, arguments, void 0, function* () {
|
|
434
400
|
const requestTransformation = {
|
|
@@ -491,7 +457,7 @@ function updateResources(_id, options) {
|
|
|
491
457
|
}
|
|
492
458
|
});
|
|
493
459
|
}
|
|
494
|
-
exports.
|
|
460
|
+
exports.updateResource = updateResource;
|
|
495
461
|
/**
|
|
496
462
|
* Updates a resource's schedule
|
|
497
463
|
* <!--ONLY:VELO
|
|
@@ -603,28 +569,19 @@ function updateSchedule(resourceId, options) {
|
|
|
603
569
|
exports.updateSchedule = updateSchedule;
|
|
604
570
|
/**
|
|
605
571
|
* Deletes a resource.
|
|
606
|
-
*
|
|
572
|
+
*
|
|
607
573
|
* The `deleteResource()` function returns a Promise that is resolved when a resource is deleted.
|
|
608
|
-
*
|
|
609
|
-
*
|
|
574
|
+
*
|
|
575
|
+
*
|
|
576
|
+
* Deleting a resource updates its status to `DELETED`.
|
|
610
577
|
*
|
|
611
578
|
* You cannot delete a resource if it has booked sessions.
|
|
612
579
|
*
|
|
613
|
-
* <!--ONLY:VELO
|
|
614
|
-
* >**Notes:**
|
|
615
|
-
* > + 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.
|
|
616
|
-
* > + You can have up to 135 active resources and an additional 135 deleted resources.
|
|
617
|
-
* > + 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`.
|
|
618
|
-
* <!--END:ONLY:VELO-->
|
|
619
580
|
*
|
|
620
|
-
* <!--ONLY:REST-->
|
|
621
581
|
* >**Notes:**
|
|
622
|
-
*
|
|
623
|
-
*
|
|
624
|
-
*
|
|
625
|
-
* >**Permissions:**
|
|
626
|
-
* > This endpoint requires the Manage Bookings [permission scope](https://devforum.wix.com/kb/en/article/available-permissions).
|
|
627
|
-
* <!--END:ONLY:REST-->
|
|
582
|
+
* - 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.
|
|
583
|
+
* - You can have up to 135 active resources and an additional 135 deleted resources.
|
|
584
|
+
* - Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can delete a resource.
|
|
628
585
|
* @param _id - ID of the resource to delete.
|
|
629
586
|
* @public
|
|
630
587
|
* @documentationMaturity preview
|
|
@@ -632,7 +589,7 @@ exports.updateSchedule = updateSchedule;
|
|
|
632
589
|
* @permissionScope Manage Bookings
|
|
633
590
|
* @applicableIdentity APP
|
|
634
591
|
*/
|
|
635
|
-
function
|
|
592
|
+
function deleteResource(_id) {
|
|
636
593
|
var _a, _b, _c;
|
|
637
594
|
return __awaiter(this, arguments, void 0, function* () {
|
|
638
595
|
const requestTransformation = { id: '$[0]' };
|
|
@@ -675,5 +632,5 @@ function deleteResources(_id) {
|
|
|
675
632
|
}
|
|
676
633
|
});
|
|
677
634
|
}
|
|
678
|
-
exports.
|
|
635
|
+
exports.deleteResource = deleteResource;
|
|
679
636
|
//# sourceMappingURL=bookings-catalog-v1-resource.universal.js.map
|
|
@@ -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,C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AG,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;AApDD,0CAoDC"}
|
|
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,EA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M,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;AApDD,wCAoDC"}
|
|
@@ -14,4 +14,4 @@ export declare function updateNumberOfParticipants(httpClient: HttpClient): (boo
|
|
|
14
14
|
export declare function confirmOrDeclineBooking(httpClient: HttpClient): (bookingId: string, options?: ConfirmOrDeclineBookingOptions | undefined) => Promise<import("./bookings-v2-booking.universal").ConfirmOrDeclineBookingResponse & import("./bookings-v2-booking.universal").ConfirmOrDeclineBookingResponseNonNullableFields>;
|
|
15
15
|
export declare function bulkConfirmOrDeclineBooking(httpClient: HttpClient): (details: BulkConfirmOrDeclineBookingRequestBookingDetails[], options?: BulkConfirmOrDeclineBookingOptions | undefined) => Promise<import("./bookings-v2-booking.universal").BulkConfirmOrDeclineBookingResponse & import("./bookings-v2-booking.universal").BulkConfirmOrDeclineBookingResponseNonNullableFields>;
|
|
16
16
|
export { LocationType, Type, ValueType, BookingStatus, PaymentStatus, SelectedPaymentOption, Platform, Actor, IdentificationDataIdentityType, IdentityType, LocationLocationType, SortOrder, } from './bookings-v2-booking.universal';
|
|
17
|
-
export { Booking, BookingParticipantsInfoOneOf, BookedEntity, BookedEntityItemOneOf, BookedSlot, BookedResource, Location, GroupedResources, BookedSchedule, ContactDetails, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, CustomFormField, BookingSource, ParticipantNotification, CommonIdentificationData, CommonIdentificationDataIdOneOf, FlowControlSettings, ExtendedFields, ParticipantChoices, ServiceChoices, ServiceChoice, ServiceChoiceChoiceOneOf, CreateGroupedBookingsRequest, CreateBookingFlowControlSettings, CreateGroupedBookingsResponse, BookingResult, GetGroupedBookingsAvailabilityRequest, GetGroupedBookingsAvailabilityResponse, BookingPolicyViolations, BookingPolicySettings, GroupedBookingInfo, CancelGroupedBookingsRequest, CancelBookingFlowControlSettings, CancelGroupedBookingsResponse, BookingCanceled, IdentificationData, IdentificationDataIdOneOf, RescheduleGroupedBookingsRequest, V2Slot, SlotSlotResource, SlotLocation, RescheduleBookingInfo, RescheduleBookingInfoParticipantsInfoOneOf, RescheduleBookingFlowControlSettings, RescheduleGroupedBookingsResponse, BookingRescheduled, BookingRescheduledPreviousParticipantsInfoOneOf, ConfirmGroupedBookingsRequest, BookingInfo, ConfirmGroupedBookingsResponse, BookingConfirmed, DeclineGroupedBookingsRequest, DeclineGroupedBookingsResponse, BookingDeclined, BulkCalculateGroupedBookingsAllowedActionsRequest, BulkCalculateGroupedBookingsAllowedActionsResponse, BulkCalculateAllowedActionsResult, ItemMetadata, ApplicationError, AllowedActions, BulkActionMetadata, SplitGroupedBookingsRequest, SplitGroupedBookingsResponse, AddToGroupRequest, AddToGroupResponse, RemoveFromGroupRequest, RemoveFromGroupResponse, BookingChanged, CreateBookingRequest, CreateBookingResponse, UpdateBookingRequest, UpdateBookingResponse, LegacyCreateBookingRequest, LegacyCreateBookingResponse, BulkUpdateBookingRequest, MaskedBooking, BulkUpdateBookingResponse, BulkCreateBookingRequest, CreateBookingInfo, BulkCreateBookingResponse, BulkBookingResult, RescheduleBookingRequest, RescheduleBookingRequestParticipantsInfoOneOf, RescheduleBookingResponse, BulkRescheduleBookingRequest, BulkRescheduleBookingRequestBooking, SlotBookings, BulkRescheduleBookingResponse, BulkUpdateBookedScheduleRequest, BookingDetails, BulkUpdateBookedScheduleResponse, QueryBookingsRequest, QueryV2, QueryV2PagingMethodOneOf, Sorting, Paging, CursorPaging, QueryBookingsResponse, PagingMetadataV2, Cursors, ConfirmRequest, ConfirmResponse, ConfirmBookingRequest,
|
|
17
|
+
export { Booking, BookingParticipantsInfoOneOf, BookedEntity, BookedEntityItemOneOf, BookedSlot, BookedResource, Location, GroupedResources, BookedSchedule, ContactDetails, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, CustomFormField, BookingSource, ParticipantNotification, CommonIdentificationData, CommonIdentificationDataIdOneOf, FlowControlSettings, ExtendedFields, ParticipantChoices, ServiceChoices, ServiceChoice, ServiceChoiceChoiceOneOf, CreateGroupedBookingsRequest, CreateBookingFlowControlSettings, CreateGroupedBookingsResponse, BookingResult, GetGroupedBookingsAvailabilityRequest, GetGroupedBookingsAvailabilityResponse, BookingPolicyViolations, BookingPolicySettings, GroupedBookingInfo, CancelGroupedBookingsRequest, CancelBookingFlowControlSettings, CancelGroupedBookingsResponse, BookingCanceled, IdentificationData, IdentificationDataIdOneOf, RescheduleGroupedBookingsRequest, V2Slot, SlotSlotResource, SlotLocation, RescheduleBookingInfo, RescheduleBookingInfoParticipantsInfoOneOf, RescheduleBookingFlowControlSettings, RescheduleGroupedBookingsResponse, BookingRescheduled, BookingRescheduledPreviousParticipantsInfoOneOf, ConfirmGroupedBookingsRequest, BookingInfo, ConfirmBookingFlowControlSettings, ConfirmGroupedBookingsResponse, BookingConfirmed, DeclineGroupedBookingsRequest, DeclineGroupedBookingsResponse, BookingDeclined, BulkCalculateGroupedBookingsAllowedActionsRequest, BulkCalculateGroupedBookingsAllowedActionsResponse, BulkCalculateAllowedActionsResult, ItemMetadata, ApplicationError, AllowedActions, BulkActionMetadata, SplitGroupedBookingsRequest, SplitGroupedBookingsResponse, AddToGroupRequest, AddToGroupResponse, RemoveFromGroupRequest, RemoveFromGroupResponse, BookingChanged, CreateBookingRequest, CreateBookingResponse, UpdateBookingRequest, UpdateBookingResponse, LegacyCreateBookingRequest, LegacyCreateBookingResponse, BulkUpdateBookingRequest, MaskedBooking, BulkUpdateBookingResponse, BulkCreateBookingRequest, CreateBookingInfo, BulkCreateBookingResponse, BulkBookingResult, RescheduleBookingRequest, RescheduleBookingRequestParticipantsInfoOneOf, RescheduleBookingResponse, BulkRescheduleBookingRequest, BulkRescheduleBookingRequestBooking, SlotBookings, BulkRescheduleBookingResponse, BulkUpdateBookedScheduleRequest, BookingDetails, BulkUpdateBookedScheduleResponse, QueryBookingsRequest, QueryV2, QueryV2PagingMethodOneOf, Sorting, Paging, CursorPaging, QueryBookingsResponse, PagingMetadataV2, Cursors, ConfirmRequest, ConfirmResponse, ConfirmBookingRequest, ConfirmBookingResponse, PartySizeRequest, PartySizeRequestPartySizeForOneOf, PartySizeResponse, ConsistentQueryBookingsRequest, ConsistentQueryBookingsResponse, SetBookingSessionIdRequest, SetBookingSessionIdResponse, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse, DeclineBookingRequest, DeclineBookingResponse, CancelBookingRequest, CancelBookingResponse, UpdateNumberOfParticipantsRequest, UpdateNumberOfParticipantsRequestParticipantsInfoOneOf, UpdateNumberOfParticipantsResponse, NumberOfParticipantsUpdated, NumberOfParticipantsUpdatedPreviousParticipantsInfoOneOf, CalculateAllowedActionsRequest, CalculateAllowedActionsResponse, BulkCalculateAllowedActionsRequest, BulkCalculateAllowedActionsResponse, GetSlotAvailabilityRequest, GetSlotAvailabilityResponse, SlotAvailability, WaitingList, GetScheduleAvailabilityRequest, GetScheduleAvailabilityResponse, ScheduleAvailability, MarkBookingAsPendingRequest, MarkBookingAsPendingFlowControlSettings, MarkBookingAsPendingResponse, ConfirmOrDeclineBookingRequest, ConfirmOrDeclineBookingResponse, BulkConfirmOrDeclineBookingRequest, BulkConfirmOrDeclineBookingRequestBookingDetails, BulkConfirmOrDeclineBookingResponse, V2CreateBookingRequest, V2CreateBookingRequestBookableItemOneOf, V2CreateBookingRequestParticipantsInfoOneOf, Slot, SlotResource, CreateBookingRequestFlowControlSettings, V2CreateBookingResponse, V2CancelBookingRequest, V2CancelBookingRequestFlowControlSettings, V2CancelBookingResponse, V2RescheduleBookingRequest, V2RescheduleBookingRequestParticipantsInfoOneOf, V2RescheduleBookingRequestFlowControlSettings, V2RescheduleBookingResponse, V2ConfirmBookingRequest, V2ConfirmBookingResponse, V2DeclineBookingRequest, V2DeclineBookingResponse, V2UpdateNumberOfParticipantsRequest, V2UpdateNumberOfParticipantsRequestParticipantsInfoOneOf, V2UpdateNumberOfParticipantsResponse, CreateBookingResponseNonNullableFields, BulkCreateBookingResponseNonNullableFields, RescheduleBookingResponseNonNullableFields, ConfirmBookingResponseNonNullableFields, UpdateExtendedFieldsResponseNonNullableFields, DeclineBookingResponseNonNullableFields, CancelBookingResponseNonNullableFields, UpdateNumberOfParticipantsResponseNonNullableFields, ConfirmOrDeclineBookingResponseNonNullableFields, BulkConfirmOrDeclineBookingResponseNonNullableFields, CreateBookingOptions, BulkCreateBookingOptions, RescheduleBookingOptions, ConfirmBookingOptions, UpdateExtendedFieldsOptions, DeclineBookingOptions, CancelBookingOptions, UpdateNumberOfParticipantsOptions, ConfirmOrDeclineBookingOptions, BulkConfirmOrDeclineBookingOptions, } from './bookings-v2-booking.universal';
|
|
@@ -902,6 +902,12 @@ export interface ConfirmGroupedBookingsRequest {
|
|
|
902
902
|
doubleBooked?: boolean | null;
|
|
903
903
|
/** Whether to return the confirmed grouped bookings entities. */
|
|
904
904
|
returnFullEntity?: boolean;
|
|
905
|
+
/**
|
|
906
|
+
* Information about whether specific procedures of the standard Wix Bookings
|
|
907
|
+
* confirmation flow are changed. For example, whether the availability is
|
|
908
|
+
* checked before confirming the booking.
|
|
909
|
+
*/
|
|
910
|
+
flowControlSettings?: ConfirmBookingFlowControlSettings;
|
|
905
911
|
}
|
|
906
912
|
export interface BookingInfo {
|
|
907
913
|
/** ID of the booking. */
|
|
@@ -923,6 +929,15 @@ export interface BookingInfo {
|
|
|
923
929
|
*/
|
|
924
930
|
paymentStatus?: PaymentStatus;
|
|
925
931
|
}
|
|
932
|
+
export interface ConfirmBookingFlowControlSettings {
|
|
933
|
+
/**
|
|
934
|
+
* todo add notes regard any flow
|
|
935
|
+
* Whether the availability is checked before confirming the booking.
|
|
936
|
+
* When passing `false` a booking is only being updated with status CONFIRMED
|
|
937
|
+
* Default: `false`.
|
|
938
|
+
*/
|
|
939
|
+
checkAvailabilityValidation?: boolean;
|
|
940
|
+
}
|
|
926
941
|
export interface ConfirmGroupedBookingsResponse {
|
|
927
942
|
/** Confirmed grouped bookings. */
|
|
928
943
|
bookings?: BookingResult[];
|
|
@@ -1404,15 +1419,6 @@ export interface ConfirmBookingRequest {
|
|
|
1404
1419
|
*/
|
|
1405
1420
|
flowControlSettings?: ConfirmBookingFlowControlSettings;
|
|
1406
1421
|
}
|
|
1407
|
-
export interface ConfirmBookingFlowControlSettings {
|
|
1408
|
-
/**
|
|
1409
|
-
* todo add notes regard any flow
|
|
1410
|
-
* Whether the availability is checked before confirming the booking.
|
|
1411
|
-
* When passing `false` a booking is only being updated with status CONFIRMED
|
|
1412
|
-
* Default: `false`.
|
|
1413
|
-
*/
|
|
1414
|
-
checkAvailabilityValidation?: boolean;
|
|
1415
|
-
}
|
|
1416
1422
|
export interface ConfirmBookingResponse {
|
|
1417
1423
|
booking?: Booking;
|
|
1418
1424
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-v2-booking.types.js","sourceRoot":"","sources":["../../../src/bookings-v2-booking.types.ts"],"names":[],"mappings":";;;AAyMA,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB;AASD,IAAY,IAGX;AAHD,WAAY,IAAI;IACd,mCAA2B,CAAA;IAC3B,iDAAyC,CAAA;AAC3C,CAAC,EAHW,IAAI,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,aAAK,KAAL,aAAK,QAIhB;AAuCD,IAAY,8BAMX;AAND,WAAY,8BAA8B;IACxC,qDAAmB,CAAA;IACnB,yEAAuC,CAAA;IACvC,mDAAiB,CAAA;IACjB,uDAAqB,CAAA;IACrB,6CAAW,CAAA;AACb,CAAC,EANW,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAMzC;AAyQD,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,uDAAuC,CAAA;IACvC,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,2BAAW,CAAA;AACb,CAAC,EANW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAMvB;AAgDD,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,+CAAuB,CAAA;IACvB,yDAAiC,CAAA;IACjC,qDAA6B,CAAA;IAC7B,yCAAiB,CAAA;AACnB,CAAC,EALW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAK/B;AA+
|
|
1
|
+
{"version":3,"file":"bookings-v2-booking.types.js","sourceRoot":"","sources":["../../../src/bookings-v2-booking.types.ts"],"names":[],"mappings":";;;AAyMA,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB;AASD,IAAY,IAGX;AAHD,WAAY,IAAI;IACd,mCAA2B,CAAA;IAC3B,iDAAyC,CAAA;AAC3C,CAAC,EAHW,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAGf;AA+HD,IAAY,SAOX;AAPD,WAAY,SAAS;IACnB,kDAAkD;IAClD,sCAAyB,CAAA;IACzB,gBAAgB;IAChB,oCAAuB,CAAA;IACvB,qGAAqG;IACrG,oCAAuB,CAAA;AACzB,CAAC,EAPW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAOpB;AAED,sBA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Y,YAMX;AAND,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,uDAAuC,CAAA;IACvC,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,2BAAW,CAAA;AACb,CAAC,EANW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAMvB;AAgDD,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,+CAAuB,CAAA;IACvB,yDAAiC,CAAA;IACjC,qDAA6B,CAAA;IAC7B,yCAAiB,CAAA;AACnB,CAAC,EALW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAK/B;AA+nBD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB"}
|
|
@@ -904,6 +904,12 @@ export interface ConfirmGroupedBookingsRequest {
|
|
|
904
904
|
doubleBooked?: boolean | null;
|
|
905
905
|
/** Whether to return the confirmed grouped bookings entities. */
|
|
906
906
|
returnFullEntity?: boolean;
|
|
907
|
+
/**
|
|
908
|
+
* Information about whether specific procedures of the standard Wix Bookings
|
|
909
|
+
* confirmation flow are changed. For example, whether the availability is
|
|
910
|
+
* checked before confirming the booking.
|
|
911
|
+
*/
|
|
912
|
+
flowControlSettings?: ConfirmBookingFlowControlSettings;
|
|
907
913
|
}
|
|
908
914
|
export interface BookingInfo {
|
|
909
915
|
/** ID of the booking. */
|
|
@@ -925,6 +931,15 @@ export interface BookingInfo {
|
|
|
925
931
|
*/
|
|
926
932
|
paymentStatus?: PaymentStatus;
|
|
927
933
|
}
|
|
934
|
+
export interface ConfirmBookingFlowControlSettings {
|
|
935
|
+
/**
|
|
936
|
+
* todo add notes regard any flow
|
|
937
|
+
* Whether the availability is checked before confirming the booking.
|
|
938
|
+
* When passing `false` a booking is only being updated with status CONFIRMED
|
|
939
|
+
* Default: `false`.
|
|
940
|
+
*/
|
|
941
|
+
checkAvailabilityValidation?: boolean;
|
|
942
|
+
}
|
|
928
943
|
export interface ConfirmGroupedBookingsResponse {
|
|
929
944
|
/** Confirmed grouped bookings. */
|
|
930
945
|
bookings?: BookingResult[];
|
|
@@ -1407,15 +1422,6 @@ export interface ConfirmBookingRequest {
|
|
|
1407
1422
|
*/
|
|
1408
1423
|
flowControlSettings?: ConfirmBookingFlowControlSettings;
|
|
1409
1424
|
}
|
|
1410
|
-
export interface ConfirmBookingFlowControlSettings {
|
|
1411
|
-
/**
|
|
1412
|
-
* todo add notes regard any flow
|
|
1413
|
-
* Whether the availability is checked before confirming the booking.
|
|
1414
|
-
* When passing `false` a booking is only being updated with status CONFIRMED
|
|
1415
|
-
* Default: `false`.
|
|
1416
|
-
*/
|
|
1417
|
-
checkAvailabilityValidation?: boolean;
|
|
1418
|
-
}
|
|
1419
1425
|
export interface ConfirmBookingResponse {
|
|
1420
1426
|
booking?: Booking;
|
|
1421
1427
|
}
|