@wix/auto_sdk_bookings_staff-members 1.0.67 → 1.0.69
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/{bookings-staff-v1-staff-member-staff-members.universal-q-tWyQ3e.d.ts → bookings-staff-v1-staff-member-staff-members.universal-BXgWwq9J.d.ts} +58 -84
- package/build/cjs/index.d.ts +28 -47
- package/build/cjs/index.js +54 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +5 -5
- package/build/cjs/index.typings.js +35 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +29 -52
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{bookings-staff-v1-staff-member-staff-members.universal-q-tWyQ3e.d.mts → bookings-staff-v1-staff-member-staff-members.universal-BXgWwq9J.d.mts} +58 -84
- package/build/es/index.d.mts +28 -47
- package/build/es/index.mjs +54 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +5 -5
- package/build/es/index.typings.mjs +34 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +29 -52
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/{bookings-staff-v1-staff-member-staff-members.universal-q-tWyQ3e.d.ts → bookings-staff-v1-staff-member-staff-members.universal-BXgWwq9J.d.ts} +58 -84
- package/build/internal/cjs/index.d.ts +28 -47
- package/build/internal/cjs/index.js +54 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +5 -5
- package/build/internal/cjs/index.typings.js +35 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +29 -52
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/{bookings-staff-v1-staff-member-staff-members.universal-q-tWyQ3e.d.mts → bookings-staff-v1-staff-member-staff-members.universal-BXgWwq9J.d.mts} +58 -84
- package/build/internal/es/index.d.mts +28 -47
- package/build/internal/es/index.mjs +54 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +5 -5
- package/build/internal/es/index.typings.mjs +34 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +29 -52
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import { S as StaffMember, C as CreateStaffMemberOptions, G as GetStaffMemberOptions, a as GetDeletedStaffMemberOptions, b as GetDeletedStaffMemberResponse, L as ListDeletedStaffMembersOptions, c as ListDeletedStaffMembersResponse, U as UpdateStaffMember, d as UpdateStaffMemberOptions,
|
|
3
|
-
export {
|
|
2
|
+
import { S as StaffMember, C as CreateStaffMemberOptions, G as GetStaffMemberOptions, a as GetDeletedStaffMemberOptions, b as GetDeletedStaffMemberResponse, L as ListDeletedStaffMembersOptions, c as ListDeletedStaffMembersResponse, U as UpdateStaffMember, d as UpdateStaffMemberOptions, e as CountStaffMembersOptions, f as CountStaffMembersResponse, g as ConnectStaffMemberToUserOptions, h as ConnectStaffMemberToUserResponse, i as StaffMemberSearch, j as SearchStaffMembersOptions, k as SearchStaffMembersResponse, D as DisconnectStaffMemberFromUserOptions, l as DisconnectStaffMemberFromUserResponse, A as AssignWorkingHoursScheduleOptions, m as AssignWorkingHoursScheduleResponse, n as AssignCustomScheduleOptions, o as AssignCustomScheduleResponse, B as BulkUpdateStaffMemberTagsOptions, p as BulkUpdateStaffMemberTagsResponse, q as BulkUpdateStaffMemberTagsByFilterOptions, r as BulkUpdateStaffMemberTagsByFilterResponse, s as StaffMemberConnectedToUserEnvelope, t as StaffMemberCreatedEnvelope, u as StaffMemberDeletedEnvelope, v as StaffMemberDisconnectedFromUserEnvelope, w as StaffMemberFullyCreatedEnvelope, x as StaffMemberUpdatedEnvelope, y as CursorQuery, z as typedQueryStaffMembers, Q as QueryStaffMembersOptions, E as StaffMembersQueryBuilder } from './bookings-staff-v1-staff-member-staff-members.universal-BXgWwq9J.js';
|
|
3
|
+
export { by as ActionEvent, bI as Address, bL as AddressLocation, bJ as AddressStreetOneOf, aV as AggregationData, bc as AggregationResults, bd as AggregationResultsResultOneOf, b0 as AggregationResultsScalarResult, N as AggregationType, cD as AggregationTypeWithLiterals, bj as ApplicationError, Z as ApprovalStatus, cL as ApprovalStatusWithLiterals, bg as AssignCustomScheduleRequest, bf as AssignWorkingHoursScheduleRequest, aj as AssociatedConferencingAccount, ak as AssociatedConferencingAccountAccountOneOf, ai as AssociatedConferencingAccounts, ah as AssociatedConferencingProvider, ag as AssociatedConferencingProviders, ac as AssociatedWixIdentity, F as AssociatedWixIdentityConnectionStatusEnumConnectionStatus, cx as AssociatedWixIdentityConnectionStatusEnumConnectionStatusWithLiterals, bW as Availability, bX as AvailabilityConstraints, cf as AvailabilityPolicy, ce as AvailabilityPolicyUpdated, cs as BaseEventMetadata, bl as BulkActionMetadata, bm as BulkUpdateStaffMemberTagsByFilterRequest, bh as BulkUpdateStaffMemberTagsRequest, bk as BulkUpdateStaffMemberTagsResult, ab as BusinessLocation, bR as BusinessSchedule, c1 as CalendarConference, c5 as CalendarDateTime, a0 as CalendarType, cO as CalendarTypeWithLiterals, ad as CommonIdentificationData, ae as CommonIdentificationDataIdOneOf, cS as CommonSearchWithEntityContext, c0 as ConferenceProvider, $ as ConferenceType, cN as ConferenceTypeWithLiterals, aQ as ConnectStaffMemberToUserRequest, af as Connection, H as ConnectionStatus, cy as ConnectionStatusWithLiterals, aP as CountStaffMembersRequest, as as CreateStaffMemberRequest, at as CreateStaffMemberResponse, ay as CursorPaging, az as CursorPagingMetadata, aK as CursorQueryPagingMethodOneOf, aS as CursorSearch, aT as CursorSearchPagingMethodOneOf, aA as Cursors, al as CustomConferenceAccount, b8 as DateHistogramResult, ba as DateHistogramResults, O as Day, Y as DayOfWeek, cK as DayOfWeekWithLiterals, cE as DayWithLiterals, aH as DeleteStaffMemberRequest, aI as DeleteStaffMemberResponse, be as DisconnectStaffMemberFromUserRequest, bs as DomainEvent, bt as DomainEventBodyOneOf, bp as Empty, bu as EntityCreatedEvent, bx as EntityDeletedEvent, bw as EntityUpdatedEvent, ct as EventMetadata, a8 as EventSchedule, am as ExtendedFields, c7 as ExternalCalendarInfo, b_ as ExternalCalendarOverrides, bF as Frequency, aw as GetDeletedStaffMemberRequest, au as GetStaffMemberRequest, av as GetStaffMemberResponse, b9 as GroupByValueResults, cq as IdentificationData, cr as IdentificationDataIdOneOf, I as IdentityType, cw as IdentityTypeWithLiterals, bE as Interval, cg as IntervalSplit, bi as ItemMetadata, bG as LinkedSchedule, ax as ListDeletedStaffMembersRequest, c6 as LocalDateTime, bH as Location, a9 as LocationOptions, W as LocationStatus, cI as LocationStatusWithLiterals, V as LocationType, cH as LocationTypeWithLiterals, bO as LocationsAddress, bQ as LocationsAddressLocation, bN as LocationsLocation, X as LocationsLocationType, cJ as LocationsLocationTypeWithLiterals, bP as LocationsStreetAddress, a4 as MediaItem, a5 as MediaItemMediaOneOf, cp as MessageEnvelope, cn as MigrationData, cm as MigrationEvent, M as Mode, cB as ModeWithLiterals, cj as MultipleSessionsCreated, aY as NestedAggregationResults, aZ as NestedAggregationResultsResultOneOf, b5 as NestedResultValue, b6 as NestedResultValueResultOneOf, bb as NestedResults, b1 as NestedValueAggregationResult, bZ as Participant, c9 as ParticipantNotification, bq as PolicyRemovedFromContributor, br as PolicyUpdatedForContributor, bV as Price, aN as QueryStaffMembersMultiLanguageRequest, aO as QueryStaffMembersMultiLanguageResponse, aJ as QueryStaffMembersRequest, aM as QueryStaffMembersResponse, aX as RangeAggregationResult, b3 as RangeResult, a$ as RangeResults, bU as Rate, bD as RecurringInterval, P as RecurringIntervalType, cG as RecurringIntervalTypeWithLiterals, ch as RecurringSessionSplit, c3 as RecurringSessionsUpdated, aB as RemoveStaffMemberFromTrashBinRequest, aC as RemoveStaffMemberFromTrashBinResponse, R as RequestedFields, cz as RequestedFieldsWithLiterals, a6 as Resource, bv as RestoreInfo, aD as RestoreStaffMemberFromTrashBinRequest, aE as RestoreStaffMemberFromTrashBinResponse, bn as RestoreStaffRequest, bo as RestoreStaffResponse, b7 as Results, b4 as ScalarResult, K as ScalarType, cC as ScalarTypeWithLiterals, bC as Schedule, ca as ScheduleCancelled, bB as ScheduleCreated, bz as ScheduleNotification, bA as ScheduleNotificationEventOneOf, _ as ScheduleStatus, cM as ScheduleStatusWithLiterals, ci as ScheduleUnassignedFromUser, c2 as ScheduleUpdated, ck as ScheduleWithSessions, aU as SearchDetails, aR as SearchStaffMembersRequest, c4 as Session, cd as SessionCancelled, cb as SessionCreated, a2 as SessionType, cQ as SessionTypeWithLiterals, cc as SessionUpdated, c8 as SessionVersion, cl as SitePropertiesOnScheduleCreation, J as SortOrder, cA as SortOrderWithLiterals, aL as Sorting, bT as SpecialHourPeriod, aa as SpecificLocation, bY as SplitInterval, co as StaffData, aq as StaffMemberConnectedToUser, ap as StaffMemberDisconnectedFromUser, ar as StaffMemberFullyCreated, cv as StaffMemberSearchSpec, cu as StaffMembersQueryResult, a1 as Status, cP as StatusWithLiterals, bK as StreetAddress, bM as Subdivision, ao as TagList, an as Tags, bS as TimePeriod, T as Transparency, cF as TransparencyWithLiterals, aF as UpdateStaffMemberRequest, aG as UpdateStaffMemberResponse, aW as ValueAggregationResult, b2 as ValueResult, a_ as ValueResults, b$ as Version, a3 as WebhookIdentityType, cR as WebhookIdentityTypeWithLiterals, a7 as WorkingHoursSchedule } from './bookings-staff-v1-staff-member-staff-members.universal-BXgWwq9J.js';
|
|
4
4
|
|
|
5
5
|
declare function createStaffMember$1(httpClient: HttpClient): CreateStaffMemberSignature;
|
|
6
6
|
interface CreateStaffMemberSignature {
|
|
@@ -9,7 +9,7 @@ interface CreateStaffMemberSignature {
|
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* By default, the staff member works during the business working hours.
|
|
12
|
-
* You could follow this sample flow
|
|
12
|
+
* You could follow this [sample flow](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/sample-flows#assign-a-staff-working-hour-schedule) to set custom working hours.
|
|
13
13
|
* @param - Staff member to create.
|
|
14
14
|
* @param - Options for creating the staff member.
|
|
15
15
|
* @returns Created staff member.
|
|
@@ -78,33 +78,11 @@ interface DeleteStaffMemberSignature {
|
|
|
78
78
|
* Deletes a staff member.
|
|
79
79
|
*
|
|
80
80
|
*
|
|
81
|
-
* Also deletes the resource
|
|
81
|
+
* Also deletes the [resource](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/introduction) associated with the staff member.
|
|
82
82
|
* @param - ID of the staff member to delete.
|
|
83
83
|
*/
|
|
84
84
|
(staffMemberId: string): Promise<void>;
|
|
85
85
|
}
|
|
86
|
-
declare function queryStaffMembers$1(httpClient: HttpClient): QueryStaffMembersSignature;
|
|
87
|
-
interface QueryStaffMembersSignature {
|
|
88
|
-
/**
|
|
89
|
-
* Creates a query to retrieve a list of staff members.
|
|
90
|
-
*
|
|
91
|
-
* The `queryStaffMembers()` function builds a query to retrieve a list of staff members and returns a `StaffMembersQueryBuilder` object.
|
|
92
|
-
*
|
|
93
|
-
* 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.
|
|
94
|
-
*
|
|
95
|
-
* 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.
|
|
96
|
-
*
|
|
97
|
-
* `queryStaffMembers()` runs with the following `StaffMembersQueryBuilder` default that you can override:
|
|
98
|
-
*
|
|
99
|
-
* + `limit` is `50`.
|
|
100
|
-
* + Sorted by `id` in ascending order.
|
|
101
|
-
*
|
|
102
|
-
* The functions that are chained to `staffMembersTypes()` are applied in the order they are called.
|
|
103
|
-
*
|
|
104
|
-
* 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`.
|
|
105
|
-
*/
|
|
106
|
-
(options?: QueryStaffMembersOptions): StaffMembersQueryBuilder;
|
|
107
|
-
}
|
|
108
86
|
declare function countStaffMembers$1(httpClient: HttpClient): CountStaffMembersSignature;
|
|
109
87
|
interface CountStaffMembersSignature {
|
|
110
88
|
/**
|
|
@@ -113,7 +91,7 @@ interface CountStaffMembersSignature {
|
|
|
113
91
|
*
|
|
114
92
|
* ### Filter
|
|
115
93
|
*
|
|
116
|
-
* Refer to the supported filters article
|
|
94
|
+
* Refer to the [supported filters article](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/filtering-and-sorting) for a complete list of supported filters and sorting options.
|
|
117
95
|
*
|
|
118
96
|
* ### See also
|
|
119
97
|
*
|
|
@@ -131,9 +109,9 @@ interface ConnectStaffMemberToUserSignature {
|
|
|
131
109
|
* However, you can specify an alternative email address. If no existing Wix user is associated with that email, Wix sends them an invitation to become a Wix user.
|
|
132
110
|
* If an existing user is found but not linked to the site, Wix Bookings sends an invitation to join the site.
|
|
133
111
|
*
|
|
134
|
-
* To check the connection status, call Get Staff Member
|
|
112
|
+
* To check the connection status, call [Get Staff Member](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/get-staff-member), and specify `ASSOCIATED_IDENTITY_STATUS` in the `fields` parameter.
|
|
135
113
|
*
|
|
136
|
-
* You must call Disconnect Staff Member From User
|
|
114
|
+
* You must call [Disconnect Staff Member From User](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/disconnect-staff-member-from-user) before connecting a different Wix user to the staff member.
|
|
137
115
|
* @param - ID of the staff member to connect to the Wix user.
|
|
138
116
|
* @param - Options for connecting the staff member to a Wix user.
|
|
139
117
|
*/
|
|
@@ -153,14 +131,14 @@ interface SearchStaffMembersSignature {
|
|
|
153
131
|
*
|
|
154
132
|
* ### Filter
|
|
155
133
|
*
|
|
156
|
-
* Refer to the supported filters article
|
|
134
|
+
* Refer to the [supported filters article](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/filtering-and-sorting) for a complete list of supported filters and sorting options.
|
|
157
135
|
*
|
|
158
136
|
* ### See also
|
|
159
137
|
*
|
|
160
|
-
* To learn about working with Search methods, see API Query Language
|
|
138
|
+
* To learn about working with Search methods, see [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language) and [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging).
|
|
161
139
|
* @param - Search criteria including filter, sort, and paging options.
|
|
162
140
|
*
|
|
163
|
-
* See the supported filters article
|
|
141
|
+
* See the [supported filters article](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members/filtering-and-sorting) for complete filter and sorting options.
|
|
164
142
|
*/
|
|
165
143
|
(search: StaffMemberSearch, options?: SearchStaffMembersOptions): Promise<NonNullablePaths<SearchStaffMembersResponse, `staffMembers` | `staffMembers.${number}.resource.usesDefaultWorkingHours` | `staffMembers.${number}.associatedWixIdentity.identificationData.anonymousVisitorId` | `staffMembers.${number}.associatedWixIdentity.identificationData.memberId` | `staffMembers.${number}.associatedWixIdentity.identificationData.wixUserId` | `staffMembers.${number}.associatedWixIdentity.identificationData.appId` | `staffMembers.${number}.associatedWixIdentity.connectionStatus` | `staffMembers.${number}.associatedWixIdentity.connection.status` | `aggregationData.results` | `aggregationData.results.${number}.scalar.type` | `aggregationData.results.${number}.scalar.value` | `aggregationData.results.${number}.name` | `aggregationData.results.${number}.type` | `aggregationData.results.${number}.fieldPath`, 6>>;
|
|
166
144
|
}
|
|
@@ -181,12 +159,12 @@ interface DisconnectStaffMemberFromUserSignature {
|
|
|
181
159
|
declare function assignWorkingHoursSchedule$1(httpClient: HttpClient): AssignWorkingHoursScheduleSignature;
|
|
182
160
|
interface AssignWorkingHoursScheduleSignature {
|
|
183
161
|
/**
|
|
184
|
-
* Updates a staff member's working hours based on the specified schedule ID
|
|
162
|
+
* Updates a staff member's working hours based on the specified [schedule ID](https://dev.wix.com/docs/api-reference/business-management/calendar/schedules-v3/introduction).
|
|
185
163
|
*
|
|
186
164
|
*
|
|
187
165
|
* ### Default working hours
|
|
188
166
|
*
|
|
189
|
-
* By default, staff members work during the opening hours of the business's default location
|
|
167
|
+
* By default, staff members work during the opening hours of the business's default [location](https://dev.wix.com/docs/api-reference/business-management/locations/introduction).
|
|
190
168
|
*
|
|
191
169
|
* ### Schedule ID
|
|
192
170
|
*
|
|
@@ -196,14 +174,13 @@ interface AssignWorkingHoursScheduleSignature {
|
|
|
196
174
|
* #### Staff event schedule
|
|
197
175
|
*
|
|
198
176
|
* To customize a staff member's working hours, specify their event schedule ID as `scheduleId`.
|
|
199
|
-
* Refer to this sample flow
|
|
177
|
+
* Refer to this [sample flow](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/sample-flows#assign-a-staff-working-hour-schedule) for more details.
|
|
200
178
|
*
|
|
201
179
|
* #### Business working hour schedule
|
|
202
180
|
*
|
|
203
181
|
* To reset a staff member's working hours to the default business hours, specify the ID of the business working hour schedule as `scheduleId`.
|
|
204
182
|
* @param - ID of the staff member to assign the schedule to.
|
|
205
|
-
* @param - ID of the
|
|
206
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction))
|
|
183
|
+
* @param - ID of the [schedule](https://dev.wix.com/docs/api-reference/business-management/calendar/schedules-v3/introduction)
|
|
207
184
|
* to assign to the staff member.
|
|
208
185
|
*
|
|
209
186
|
* Must be either the staff member's event schedule ID or the working hour
|
|
@@ -223,10 +200,9 @@ interface AssignCustomScheduleSignature {
|
|
|
223
200
|
* By default staff members use the shared business working hours schedule.
|
|
224
201
|
* By assigning a custom working hours schedule to a staff member, you can define specific working hours for that staff member.
|
|
225
202
|
*
|
|
226
|
-
* To create and manage schedules and working hours sessions, use the Events API
|
|
203
|
+
* To create and manage schedules and working hours sessions, use the [Events API](https://dev.wix.com/docs/api-reference/business-management/calendar/events-v3/introduction).
|
|
227
204
|
* @param - ID of the staff member for which to assign a working hour schedule.
|
|
228
|
-
* @param - ID of the
|
|
229
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction))
|
|
205
|
+
* @param - ID of the [schedule](https://dev.wix.com/docs/api-reference/business-management/calendar/schedules-v3/introduction)
|
|
230
206
|
* to assign to the staff member.
|
|
231
207
|
* @deprecated
|
|
232
208
|
*/
|
|
@@ -235,7 +211,7 @@ interface AssignCustomScheduleSignature {
|
|
|
235
211
|
declare function bulkUpdateStaffMemberTags$1(httpClient: HttpClient): BulkUpdateStaffMemberTagsSignature;
|
|
236
212
|
interface BulkUpdateStaffMemberTagsSignature {
|
|
237
213
|
/**
|
|
238
|
-
* Synchronously updates tags
|
|
214
|
+
* Synchronously updates [tags](https://dev.wix.com/docs/api-reference/business-management/tags/introduction) for up to 100 staff members.
|
|
239
215
|
*
|
|
240
216
|
*
|
|
241
217
|
* If you specify a tag both in `assignTags` and `unassignTags`, the call succeeds and the tag is assigned.
|
|
@@ -246,16 +222,15 @@ interface BulkUpdateStaffMemberTagsSignature {
|
|
|
246
222
|
declare function bulkUpdateStaffMemberTagsByFilter$1(httpClient: HttpClient): BulkUpdateStaffMemberTagsByFilterSignature;
|
|
247
223
|
interface BulkUpdateStaffMemberTagsByFilterSignature {
|
|
248
224
|
/**
|
|
249
|
-
* Asynchronously updates tags
|
|
225
|
+
* Asynchronously updates [tags](https://dev.wix.com/docs/api-reference/business-management/tags/introduction) for staff members, given the provided filtering.
|
|
250
226
|
*
|
|
251
227
|
*
|
|
252
228
|
* If you specify a tag both in `assignTags` and `unassignTags`, the call succeeds and the tag is assigned.
|
|
253
229
|
*
|
|
254
230
|
* ### Filter
|
|
255
231
|
*
|
|
256
|
-
* Refer to the supported filters article
|
|
257
|
-
* @param - Filter to base the update upon. See the
|
|
258
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/staff-members/supported-filters) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members/filtering-and-sorting))
|
|
232
|
+
* Refer to the [supported filters article](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/filtering-and-sorting) for a complete list of supported filters and sorting options.
|
|
233
|
+
* @param - Filter to base the update upon. See the [supported filters article](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members/filtering-and-sorting)
|
|
259
234
|
* for a complete list of supported filters.
|
|
260
235
|
*/
|
|
261
236
|
(filter: Record<string, any>, options?: BulkUpdateStaffMemberTagsByFilterOptions): Promise<NonNullablePaths<BulkUpdateStaffMemberTagsByFilterResponse, `jobId`, 2>>;
|
|
@@ -267,6 +242,12 @@ declare const onStaffMemberDisconnectedFromUser$1: EventDefinition<StaffMemberDi
|
|
|
267
242
|
declare const onStaffMemberFullyCreated$1: EventDefinition<StaffMemberFullyCreatedEnvelope, "wix.bookings.staff.v1.staff_member_fully_created">;
|
|
268
243
|
declare const onStaffMemberUpdated$1: EventDefinition<StaffMemberUpdatedEnvelope, "wix.bookings.staff.v1.staff_member_updated">;
|
|
269
244
|
|
|
245
|
+
declare function customQueryStaffMembers(httpClient: HttpClient): {
|
|
246
|
+
(query: CursorQuery): ReturnType<typeof typedQueryStaffMembers>;
|
|
247
|
+
(query: CursorQuery, options: QueryStaffMembersOptions): ReturnType<typeof typedQueryStaffMembers>;
|
|
248
|
+
(): StaffMembersQueryBuilder;
|
|
249
|
+
(options: QueryStaffMembersOptions): StaffMembersQueryBuilder;
|
|
250
|
+
};
|
|
270
251
|
declare const createStaffMember: MaybeContext<BuildRESTFunction<typeof createStaffMember$1> & typeof createStaffMember$1>;
|
|
271
252
|
declare const getStaffMember: MaybeContext<BuildRESTFunction<typeof getStaffMember$1> & typeof getStaffMember$1>;
|
|
272
253
|
declare const getDeletedStaffMember: MaybeContext<BuildRESTFunction<typeof getDeletedStaffMember$1> & typeof getDeletedStaffMember$1>;
|
|
@@ -274,7 +255,6 @@ declare const listDeletedStaffMembers: MaybeContext<BuildRESTFunction<typeof lis
|
|
|
274
255
|
declare const removeStaffMemberFromTrashBin: MaybeContext<BuildRESTFunction<typeof removeStaffMemberFromTrashBin$1> & typeof removeStaffMemberFromTrashBin$1>;
|
|
275
256
|
declare const updateStaffMember: MaybeContext<BuildRESTFunction<typeof updateStaffMember$1> & typeof updateStaffMember$1>;
|
|
276
257
|
declare const deleteStaffMember: MaybeContext<BuildRESTFunction<typeof deleteStaffMember$1> & typeof deleteStaffMember$1>;
|
|
277
|
-
declare const queryStaffMembers: MaybeContext<BuildRESTFunction<typeof queryStaffMembers$1> & typeof queryStaffMembers$1>;
|
|
278
258
|
declare const countStaffMembers: MaybeContext<BuildRESTFunction<typeof countStaffMembers$1> & typeof countStaffMembers$1>;
|
|
279
259
|
declare const connectStaffMemberToUser: MaybeContext<BuildRESTFunction<typeof connectStaffMemberToUser$1> & typeof connectStaffMemberToUser$1>;
|
|
280
260
|
declare const searchStaffMembers: MaybeContext<BuildRESTFunction<typeof searchStaffMembers$1> & typeof searchStaffMembers$1>;
|
|
@@ -283,6 +263,7 @@ declare const assignWorkingHoursSchedule: MaybeContext<BuildRESTFunction<typeof
|
|
|
283
263
|
declare const assignCustomSchedule: MaybeContext<BuildRESTFunction<typeof assignCustomSchedule$1> & typeof assignCustomSchedule$1>;
|
|
284
264
|
declare const bulkUpdateStaffMemberTags: MaybeContext<BuildRESTFunction<typeof bulkUpdateStaffMemberTags$1> & typeof bulkUpdateStaffMemberTags$1>;
|
|
285
265
|
declare const bulkUpdateStaffMemberTagsByFilter: MaybeContext<BuildRESTFunction<typeof bulkUpdateStaffMemberTagsByFilter$1> & typeof bulkUpdateStaffMemberTagsByFilter$1>;
|
|
266
|
+
declare const queryStaffMembers: MaybeContext<BuildRESTFunction<typeof customQueryStaffMembers> & typeof customQueryStaffMembers>;
|
|
286
267
|
/**
|
|
287
268
|
* Triggered when a Wix user is connected to a staff member.
|
|
288
269
|
*
|
|
@@ -313,4 +294,4 @@ declare const onStaffMemberFullyCreated: BuildEventDefinition<typeof onStaffMemb
|
|
|
313
294
|
*/
|
|
314
295
|
declare const onStaffMemberUpdated: BuildEventDefinition<typeof onStaffMemberUpdated$1> & typeof onStaffMemberUpdated$1;
|
|
315
296
|
|
|
316
|
-
export { AssignCustomScheduleOptions, AssignCustomScheduleResponse, AssignWorkingHoursScheduleOptions, AssignWorkingHoursScheduleResponse, BulkUpdateStaffMemberTagsByFilterOptions, BulkUpdateStaffMemberTagsByFilterResponse, BulkUpdateStaffMemberTagsOptions, BulkUpdateStaffMemberTagsResponse, ConnectStaffMemberToUserOptions, ConnectStaffMemberToUserResponse, CountStaffMembersOptions, CountStaffMembersResponse, CreateStaffMemberOptions, DisconnectStaffMemberFromUserOptions, DisconnectStaffMemberFromUserResponse, GetDeletedStaffMemberOptions, GetDeletedStaffMemberResponse, GetStaffMemberOptions, ListDeletedStaffMembersOptions, ListDeletedStaffMembersResponse, QueryStaffMembersOptions, SearchStaffMembersOptions, SearchStaffMembersResponse, StaffMember, StaffMemberConnectedToUserEnvelope, StaffMemberCreatedEnvelope, StaffMemberDeletedEnvelope, StaffMemberDisconnectedFromUserEnvelope, StaffMemberFullyCreatedEnvelope, StaffMemberSearch, StaffMemberUpdatedEnvelope, StaffMembersQueryBuilder, UpdateStaffMember, UpdateStaffMemberOptions, assignCustomSchedule, assignWorkingHoursSchedule, bulkUpdateStaffMemberTags, bulkUpdateStaffMemberTagsByFilter, connectStaffMemberToUser, countStaffMembers, createStaffMember, deleteStaffMember, disconnectStaffMemberFromUser, getDeletedStaffMember, getStaffMember, listDeletedStaffMembers, onStaffMemberConnectedToUser, onStaffMemberCreated, onStaffMemberDeleted, onStaffMemberDisconnectedFromUser, onStaffMemberFullyCreated, onStaffMemberUpdated, queryStaffMembers, removeStaffMemberFromTrashBin, searchStaffMembers, updateStaffMember };
|
|
297
|
+
export { AssignCustomScheduleOptions, AssignCustomScheduleResponse, AssignWorkingHoursScheduleOptions, AssignWorkingHoursScheduleResponse, BulkUpdateStaffMemberTagsByFilterOptions, BulkUpdateStaffMemberTagsByFilterResponse, BulkUpdateStaffMemberTagsOptions, BulkUpdateStaffMemberTagsResponse, ConnectStaffMemberToUserOptions, ConnectStaffMemberToUserResponse, CountStaffMembersOptions, CountStaffMembersResponse, CreateStaffMemberOptions, CursorQuery, DisconnectStaffMemberFromUserOptions, DisconnectStaffMemberFromUserResponse, GetDeletedStaffMemberOptions, GetDeletedStaffMemberResponse, GetStaffMemberOptions, ListDeletedStaffMembersOptions, ListDeletedStaffMembersResponse, QueryStaffMembersOptions, SearchStaffMembersOptions, SearchStaffMembersResponse, StaffMember, StaffMemberConnectedToUserEnvelope, StaffMemberCreatedEnvelope, StaffMemberDeletedEnvelope, StaffMemberDisconnectedFromUserEnvelope, StaffMemberFullyCreatedEnvelope, StaffMemberSearch, StaffMemberUpdatedEnvelope, StaffMembersQueryBuilder, UpdateStaffMember, UpdateStaffMemberOptions, assignCustomSchedule, assignWorkingHoursSchedule, bulkUpdateStaffMemberTags, bulkUpdateStaffMemberTagsByFilter, connectStaffMemberToUser, countStaffMembers, createStaffMember, deleteStaffMember, disconnectStaffMemberFromUser, getDeletedStaffMember, getStaffMember, listDeletedStaffMembers, onStaffMemberConnectedToUser, onStaffMemberCreated, onStaffMemberDeleted, onStaffMemberDisconnectedFromUser, onStaffMemberFullyCreated, onStaffMemberUpdated, queryStaffMembers, removeStaffMemberFromTrashBin, searchStaffMembers, updateStaffMember };
|
|
@@ -1108,6 +1108,39 @@ function queryStaffMembers2(options) {
|
|
|
1108
1108
|
transformationPaths: {}
|
|
1109
1109
|
});
|
|
1110
1110
|
}
|
|
1111
|
+
async function typedQueryStaffMembers(query, options) {
|
|
1112
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1113
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1114
|
+
query,
|
|
1115
|
+
...options
|
|
1116
|
+
});
|
|
1117
|
+
const reqOpts = queryStaffMembers(payload);
|
|
1118
|
+
sideEffects?.onSiteCall?.();
|
|
1119
|
+
try {
|
|
1120
|
+
const result = await httpClient.request(reqOpts);
|
|
1121
|
+
sideEffects?.onSuccess?.(result);
|
|
1122
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1123
|
+
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1124
|
+
{
|
|
1125
|
+
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1126
|
+
paths: [{ path: "staffMembers.mainMedia.image" }]
|
|
1127
|
+
}
|
|
1128
|
+
])
|
|
1129
|
+
);
|
|
1130
|
+
} catch (err) {
|
|
1131
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1132
|
+
err,
|
|
1133
|
+
{
|
|
1134
|
+
spreadPathsToArguments: {},
|
|
1135
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
1136
|
+
singleArgumentUnchanged: false
|
|
1137
|
+
},
|
|
1138
|
+
["query", "options"]
|
|
1139
|
+
);
|
|
1140
|
+
sideEffects?.onError?.(err);
|
|
1141
|
+
throw transformedError;
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1111
1144
|
async function countStaffMembers2(options) {
|
|
1112
1145
|
const { httpClient, sideEffects } = arguments[1];
|
|
1113
1146
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -1445,6 +1478,14 @@ function queryStaffMembers3(httpClient) {
|
|
|
1445
1478
|
{ httpClient }
|
|
1446
1479
|
);
|
|
1447
1480
|
}
|
|
1481
|
+
function typedQueryStaffMembers2(httpClient) {
|
|
1482
|
+
return (query, options) => typedQueryStaffMembers(
|
|
1483
|
+
query,
|
|
1484
|
+
options,
|
|
1485
|
+
// @ts-ignore
|
|
1486
|
+
{ httpClient }
|
|
1487
|
+
);
|
|
1488
|
+
}
|
|
1448
1489
|
function countStaffMembers3(httpClient) {
|
|
1449
1490
|
return (options) => countStaffMembers2(
|
|
1450
1491
|
options,
|
|
@@ -1634,6 +1675,18 @@ var onStaffMemberUpdated = (0, import_sdk_types.EventDefinition)(
|
|
|
1634
1675
|
// src/bookings-staff-v1-staff-member-staff-members.context.ts
|
|
1635
1676
|
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
1636
1677
|
var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
|
|
1678
|
+
var import_query_method_router = require("@wix/sdk-runtime/query-method-router");
|
|
1679
|
+
function customQueryStaffMembers(httpClient) {
|
|
1680
|
+
const router = (0, import_query_method_router.createQueryOverloadRouter)({
|
|
1681
|
+
builderQueryFunction: (options) => queryStaffMembers3(httpClient)(options),
|
|
1682
|
+
typedQueryFunction: (query, options) => typedQueryStaffMembers2(httpClient)(query, options),
|
|
1683
|
+
hasOptionsParameter: true
|
|
1684
|
+
});
|
|
1685
|
+
function overloadedQuery(queryOrOptions, options) {
|
|
1686
|
+
return router(...arguments);
|
|
1687
|
+
}
|
|
1688
|
+
return overloadedQuery;
|
|
1689
|
+
}
|
|
1637
1690
|
var createStaffMember4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createStaffMember3);
|
|
1638
1691
|
var getStaffMember4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getStaffMember3);
|
|
1639
1692
|
var getDeletedStaffMember4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getDeletedStaffMember3);
|
|
@@ -1641,7 +1694,6 @@ var listDeletedStaffMembers4 = /* @__PURE__ */ (0, import_rest_modules3.createRE
|
|
|
1641
1694
|
var removeStaffMemberFromTrashBin4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(removeStaffMemberFromTrashBin3);
|
|
1642
1695
|
var updateStaffMember4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateStaffMember3);
|
|
1643
1696
|
var deleteStaffMember4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteStaffMember3);
|
|
1644
|
-
var queryStaffMembers4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryStaffMembers3);
|
|
1645
1697
|
var countStaffMembers4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(countStaffMembers3);
|
|
1646
1698
|
var connectStaffMemberToUser4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(connectStaffMemberToUser3);
|
|
1647
1699
|
var searchStaffMembers4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(searchStaffMembers3);
|
|
@@ -1650,6 +1702,7 @@ var assignWorkingHoursSchedule4 = /* @__PURE__ */ (0, import_rest_modules3.creat
|
|
|
1650
1702
|
var assignCustomSchedule4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(assignCustomSchedule3);
|
|
1651
1703
|
var bulkUpdateStaffMemberTags4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateStaffMemberTags3);
|
|
1652
1704
|
var bulkUpdateStaffMemberTagsByFilter4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateStaffMemberTagsByFilter3);
|
|
1705
|
+
var queryStaffMembers4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryStaffMembers);
|
|
1653
1706
|
var onStaffMemberConnectedToUser2 = (0, import_event_definition_modules.createEventModule)(
|
|
1654
1707
|
onStaffMemberConnectedToUser
|
|
1655
1708
|
);
|