@wix/bookings 1.0.511 → 1.0.513
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/bookings",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.513",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@wix/bookings_service-categories": "1.0.1",
|
|
39
39
|
"@wix/bookings_service-options-and-variants": "1.0.58",
|
|
40
40
|
"@wix/bookings_services": "1.0.82",
|
|
41
|
-
"@wix/bookings_staff-members": "1.0.
|
|
41
|
+
"@wix/bookings_staff-members": "1.0.20"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"glob": "^10.4.1",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"fqdn": ""
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
|
-
"falconPackageHash": "
|
|
66
|
+
"falconPackageHash": "5e431b19b891d866c4859076138a6178d2b30babe2471f986291fbf7"
|
|
67
67
|
}
|
|
@@ -19371,6 +19371,7 @@ interface CreateStaffMemberSignature {
|
|
|
19371
19371
|
*
|
|
19372
19372
|
* To modify the working hours of a staff member, use the `AssignWorkingHoursSchedule` API.
|
|
19373
19373
|
* @param - Staff member to be created.
|
|
19374
|
+
* @param - Options for creating the staff member.
|
|
19374
19375
|
* @returns The created staff member.
|
|
19375
19376
|
*/
|
|
19376
19377
|
(staffMember: StaffMember, options?: CreateStaffMemberOptions | undefined): Promise<StaffMember & StaffMemberNonNullableFields>;
|
|
@@ -19380,6 +19381,7 @@ interface GetStaffMemberSignature {
|
|
|
19380
19381
|
/**
|
|
19381
19382
|
* Retrieves a staff member.
|
|
19382
19383
|
* @param - ID of the staff member to retrieve.
|
|
19384
|
+
* @param - Option for retrieving the staff member.
|
|
19383
19385
|
* @returns The retrieved staff member.
|
|
19384
19386
|
*/
|
|
19385
19387
|
(staffMemberId: string, options?: GetStaffMemberOptions | undefined): Promise<StaffMember & StaffMemberNonNullableFields>;
|
|
@@ -19392,6 +19394,8 @@ interface UpdateStaffMemberSignature {
|
|
|
19392
19394
|
* Each time the staff member is updated, `revision` increments by 1. You must include current revision of the staff member when updating it.
|
|
19393
19395
|
* This ensures you're working with the latest service information and prevents unintended overwrites.
|
|
19394
19396
|
* @param - Staff member's ID.
|
|
19397
|
+
* @param - The staff member to update
|
|
19398
|
+
* @param - Options for updating the staff member.
|
|
19395
19399
|
* @returns The updated staff member.
|
|
19396
19400
|
*/
|
|
19397
19401
|
(_id: string | null, staffMember: UpdateStaffMember, options?: UpdateStaffMemberOptions | undefined): Promise<StaffMember & StaffMemberNonNullableFields>;
|
|
@@ -19409,9 +19413,22 @@ interface DeleteStaffMemberSignature {
|
|
|
19409
19413
|
declare function queryStaffMembers$1(httpClient: HttpClient): QueryStaffMembersSignature;
|
|
19410
19414
|
interface QueryStaffMembersSignature {
|
|
19411
19415
|
/**
|
|
19412
|
-
*
|
|
19416
|
+
* Creates a query to retrieve a list of staff members.
|
|
19413
19417
|
*
|
|
19414
|
-
*
|
|
19418
|
+
* The `queryStaffMembers()` function builds a query to retrieve a list of staff members and returns a `StaffMembersQueryBuilder` object.
|
|
19419
|
+
*
|
|
19420
|
+
* The returned object contains the query definition, which is typically used to run the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/bookings/staff-members/staff-members-query-builder/find) function.
|
|
19421
|
+
*
|
|
19422
|
+
* You can refine the query by chaining `StaffMembersQueryBuilder` functions onto the query. `StaffMembersQueryBuilder` functions enable you to sort, filter, and control the results that `queryStaffMembers()` returns.
|
|
19423
|
+
*
|
|
19424
|
+
* `queryStaffMembers()` runs with the following `StaffMembersQueryBuilder` default that you can override:
|
|
19425
|
+
*
|
|
19426
|
+
* + `limit` is `50`.
|
|
19427
|
+
* + Sorted by `id` in ascending order.
|
|
19428
|
+
*
|
|
19429
|
+
* The functions that are chained to `staffMembersTypes()` are applied in the order they are called.
|
|
19430
|
+
*
|
|
19431
|
+
* The following `StaffMembersQueryBuilder` functions are supported for the `queryStaffMembers()` function. For a full description of the resource object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/bookings/staff-members/staff-members-query-result/items) property in `StaffMembersQueryResult`.
|
|
19415
19432
|
*/
|
|
19416
19433
|
(options?: QueryStaffMembersOptions | undefined): StaffMembersQueryBuilder;
|
|
19417
19434
|
}
|
|
@@ -19447,6 +19464,7 @@ interface ConnectStaffMemberToUserSignature {
|
|
|
19447
19464
|
* - `EXPIRED` - The invitation to connect to the staff member has expired.
|
|
19448
19465
|
* - `DISCONNECTED` - The staff member is not connected to a user.
|
|
19449
19466
|
* @param - ID of the staff member. The staff member to connect to a user.
|
|
19467
|
+
* @param - Options for connecting the staff member to a Wix user.
|
|
19450
19468
|
*/
|
|
19451
19469
|
(staffMemberId: string, options?: ConnectStaffMemberToUserOptions | undefined): Promise<ConnectStaffMemberToUserResponse & ConnectStaffMemberToUserResponseNonNullableFields>;
|
|
19452
19470
|
}
|
|
@@ -19473,6 +19491,7 @@ interface DisconnectStaffMemberFromUserSignature {
|
|
|
19473
19491
|
*
|
|
19474
19492
|
* After the staff member is disconnected from the user, the staff member can be connected to a different user.
|
|
19475
19493
|
* @param - ID of the StaffMember to disconnect.
|
|
19494
|
+
* @param - Options to disconnect the staff member from a Wix user.
|
|
19476
19495
|
*/
|
|
19477
19496
|
(staffMemberId: string, options?: DisconnectStaffMemberFromUserOptions | undefined): Promise<DisconnectStaffMemberFromUserResponse & DisconnectStaffMemberFromUserResponseNonNullableFields>;
|
|
19478
19497
|
}
|
|
@@ -19482,15 +19501,17 @@ interface AssignWorkingHoursScheduleSignature {
|
|
|
19482
19501
|
* Assigns a custom working hours schedule to the staff member
|
|
19483
19502
|
*
|
|
19484
19503
|
*
|
|
19485
|
-
*
|
|
19486
|
-
*
|
|
19504
|
+
* The working hours schedule is a schedule that defines the working hours of a staff member,
|
|
19505
|
+
* and dictate when the staff member is available for bookings.
|
|
19487
19506
|
*
|
|
19488
|
-
*
|
|
19489
|
-
*
|
|
19507
|
+
* By default staff members use the shared business working hours schedule. By assigning a custom working hours schedule to a staff member,
|
|
19508
|
+
* you can define specific working hours f
|
|
19509
|
+
* or that staff member.
|
|
19490
19510
|
*
|
|
19491
|
-
*
|
|
19511
|
+
* To create and manage schedules and working hours sessions, use [Events API](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/intro).
|
|
19492
19512
|
* @param - Id of the staff member to assign the schedule to.
|
|
19493
19513
|
* @param - Id of a schedule to assign to the staff's working hours schedule.
|
|
19514
|
+
* @param - Options for setting the staff member's working hours schedule.
|
|
19494
19515
|
*/
|
|
19495
19516
|
(staffMemberId: string, scheduleId: string, options?: AssignWorkingHoursScheduleOptions | undefined): Promise<AssignWorkingHoursScheduleResponse & AssignWorkingHoursScheduleResponseNonNullableFields>;
|
|
19496
19517
|
}
|
|
@@ -19371,6 +19371,7 @@ interface CreateStaffMemberSignature {
|
|
|
19371
19371
|
*
|
|
19372
19372
|
* To modify the working hours of a staff member, use the `AssignWorkingHoursSchedule` API.
|
|
19373
19373
|
* @param - Staff member to be created.
|
|
19374
|
+
* @param - Options for creating the staff member.
|
|
19374
19375
|
* @returns The created staff member.
|
|
19375
19376
|
*/
|
|
19376
19377
|
(staffMember: StaffMember, options?: CreateStaffMemberOptions | undefined): Promise<StaffMember & StaffMemberNonNullableFields>;
|
|
@@ -19380,6 +19381,7 @@ interface GetStaffMemberSignature {
|
|
|
19380
19381
|
/**
|
|
19381
19382
|
* Retrieves a staff member.
|
|
19382
19383
|
* @param - ID of the staff member to retrieve.
|
|
19384
|
+
* @param - Option for retrieving the staff member.
|
|
19383
19385
|
* @returns The retrieved staff member.
|
|
19384
19386
|
*/
|
|
19385
19387
|
(staffMemberId: string, options?: GetStaffMemberOptions | undefined): Promise<StaffMember & StaffMemberNonNullableFields>;
|
|
@@ -19392,6 +19394,8 @@ interface UpdateStaffMemberSignature {
|
|
|
19392
19394
|
* Each time the staff member is updated, `revision` increments by 1. You must include current revision of the staff member when updating it.
|
|
19393
19395
|
* This ensures you're working with the latest service information and prevents unintended overwrites.
|
|
19394
19396
|
* @param - Staff member's ID.
|
|
19397
|
+
* @param - The staff member to update
|
|
19398
|
+
* @param - Options for updating the staff member.
|
|
19395
19399
|
* @returns The updated staff member.
|
|
19396
19400
|
*/
|
|
19397
19401
|
(_id: string | null, staffMember: UpdateStaffMember, options?: UpdateStaffMemberOptions | undefined): Promise<StaffMember & StaffMemberNonNullableFields>;
|
|
@@ -19409,9 +19413,22 @@ interface DeleteStaffMemberSignature {
|
|
|
19409
19413
|
declare function queryStaffMembers$1(httpClient: HttpClient): QueryStaffMembersSignature;
|
|
19410
19414
|
interface QueryStaffMembersSignature {
|
|
19411
19415
|
/**
|
|
19412
|
-
*
|
|
19416
|
+
* Creates a query to retrieve a list of staff members.
|
|
19413
19417
|
*
|
|
19414
|
-
*
|
|
19418
|
+
* The `queryStaffMembers()` function builds a query to retrieve a list of staff members and returns a `StaffMembersQueryBuilder` object.
|
|
19419
|
+
*
|
|
19420
|
+
* The returned object contains the query definition, which is typically used to run the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/bookings/staff-members/staff-members-query-builder/find) function.
|
|
19421
|
+
*
|
|
19422
|
+
* You can refine the query by chaining `StaffMembersQueryBuilder` functions onto the query. `StaffMembersQueryBuilder` functions enable you to sort, filter, and control the results that `queryStaffMembers()` returns.
|
|
19423
|
+
*
|
|
19424
|
+
* `queryStaffMembers()` runs with the following `StaffMembersQueryBuilder` default that you can override:
|
|
19425
|
+
*
|
|
19426
|
+
* + `limit` is `50`.
|
|
19427
|
+
* + Sorted by `id` in ascending order.
|
|
19428
|
+
*
|
|
19429
|
+
* The functions that are chained to `staffMembersTypes()` are applied in the order they are called.
|
|
19430
|
+
*
|
|
19431
|
+
* The following `StaffMembersQueryBuilder` functions are supported for the `queryStaffMembers()` function. For a full description of the resource object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/bookings/staff-members/staff-members-query-result/items) property in `StaffMembersQueryResult`.
|
|
19415
19432
|
*/
|
|
19416
19433
|
(options?: QueryStaffMembersOptions | undefined): StaffMembersQueryBuilder;
|
|
19417
19434
|
}
|
|
@@ -19447,6 +19464,7 @@ interface ConnectStaffMemberToUserSignature {
|
|
|
19447
19464
|
* - `EXPIRED` - The invitation to connect to the staff member has expired.
|
|
19448
19465
|
* - `DISCONNECTED` - The staff member is not connected to a user.
|
|
19449
19466
|
* @param - ID of the staff member. The staff member to connect to a user.
|
|
19467
|
+
* @param - Options for connecting the staff member to a Wix user.
|
|
19450
19468
|
*/
|
|
19451
19469
|
(staffMemberId: string, options?: ConnectStaffMemberToUserOptions | undefined): Promise<ConnectStaffMemberToUserResponse & ConnectStaffMemberToUserResponseNonNullableFields>;
|
|
19452
19470
|
}
|
|
@@ -19473,6 +19491,7 @@ interface DisconnectStaffMemberFromUserSignature {
|
|
|
19473
19491
|
*
|
|
19474
19492
|
* After the staff member is disconnected from the user, the staff member can be connected to a different user.
|
|
19475
19493
|
* @param - ID of the StaffMember to disconnect.
|
|
19494
|
+
* @param - Options to disconnect the staff member from a Wix user.
|
|
19476
19495
|
*/
|
|
19477
19496
|
(staffMemberId: string, options?: DisconnectStaffMemberFromUserOptions | undefined): Promise<DisconnectStaffMemberFromUserResponse & DisconnectStaffMemberFromUserResponseNonNullableFields>;
|
|
19478
19497
|
}
|
|
@@ -19482,15 +19501,17 @@ interface AssignWorkingHoursScheduleSignature {
|
|
|
19482
19501
|
* Assigns a custom working hours schedule to the staff member
|
|
19483
19502
|
*
|
|
19484
19503
|
*
|
|
19485
|
-
*
|
|
19486
|
-
*
|
|
19504
|
+
* The working hours schedule is a schedule that defines the working hours of a staff member,
|
|
19505
|
+
* and dictate when the staff member is available for bookings.
|
|
19487
19506
|
*
|
|
19488
|
-
*
|
|
19489
|
-
*
|
|
19507
|
+
* By default staff members use the shared business working hours schedule. By assigning a custom working hours schedule to a staff member,
|
|
19508
|
+
* you can define specific working hours f
|
|
19509
|
+
* or that staff member.
|
|
19490
19510
|
*
|
|
19491
|
-
*
|
|
19511
|
+
* To create and manage schedules and working hours sessions, use [Events API](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/intro).
|
|
19492
19512
|
* @param - Id of the staff member to assign the schedule to.
|
|
19493
19513
|
* @param - Id of a schedule to assign to the staff's working hours schedule.
|
|
19514
|
+
* @param - Options for setting the staff member's working hours schedule.
|
|
19494
19515
|
*/
|
|
19495
19516
|
(staffMemberId: string, scheduleId: string, options?: AssignWorkingHoursScheduleOptions | undefined): Promise<AssignWorkingHoursScheduleResponse & AssignWorkingHoursScheduleResponseNonNullableFields>;
|
|
19496
19517
|
}
|