@wix/auto_sdk_bookings_staff-members 1.0.68 → 1.0.70
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-ClAII2Rf.d.ts → bookings-staff-v1-staff-member-staff-members.universal-BXgWwq9J.d.ts} +7 -1
- package/build/cjs/index.d.ts +10 -26
- package/build/cjs/index.js +54 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +35 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -1
- package/build/es/{bookings-staff-v1-staff-member-staff-members.universal-ClAII2Rf.d.mts → bookings-staff-v1-staff-member-staff-members.universal-BXgWwq9J.d.mts} +7 -1
- package/build/es/index.d.mts +10 -26
- package/build/es/index.mjs +54 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +34 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1 -1
- package/build/internal/cjs/{bookings-staff-v1-staff-member-staff-members.universal-ClAII2Rf.d.ts → bookings-staff-v1-staff-member-staff-members.universal-BXgWwq9J.d.ts} +7 -1
- package/build/internal/cjs/index.d.ts +10 -26
- 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 +2 -2
- 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 +1 -1
- package/build/internal/es/{bookings-staff-v1-staff-member-staff-members.universal-ClAII2Rf.d.mts → bookings-staff-v1-staff-member-staff-members.universal-BXgWwq9J.d.mts} +7 -1
- package/build/internal/es/index.d.mts +10 -26
- 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 +2 -2
- 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 +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { as as CreateStaffMemberRequest$1, at as CreateStaffMemberResponse$1, au as GetStaffMemberRequest$1, av as GetStaffMemberResponse$1, aw as GetDeletedStaffMemberRequest$1, b as GetDeletedStaffMemberResponse$1, ax as ListDeletedStaffMembersRequest$1, c as ListDeletedStaffMembersResponse$1, aB as RemoveStaffMemberFromTrashBinRequest$1, aC as RemoveStaffMemberFromTrashBinResponse$1, aF as UpdateStaffMemberRequest$1, aG as UpdateStaffMemberResponse$1, aH as DeleteStaffMemberRequest$1, aI as DeleteStaffMemberResponse$1, aJ as QueryStaffMembersRequest$1, aM as QueryStaffMembersResponse$1, aP as CountStaffMembersRequest$1, f as CountStaffMembersResponse$1, aQ as ConnectStaffMemberToUserRequest$1, h as ConnectStaffMemberToUserResponse$1, aR as SearchStaffMembersRequest$1, k as SearchStaffMembersResponse$1, be as DisconnectStaffMemberFromUserRequest$1, l as DisconnectStaffMemberFromUserResponse$1, bf as AssignWorkingHoursScheduleRequest$1, m as AssignWorkingHoursScheduleResponse$1, bg as AssignCustomScheduleRequest$1, o as AssignCustomScheduleResponse$1, bh as BulkUpdateStaffMemberTagsRequest$1, p as BulkUpdateStaffMemberTagsResponse$1, bm as BulkUpdateStaffMemberTagsByFilterRequest$1, r as BulkUpdateStaffMemberTagsByFilterResponse$1 } from './bookings-staff-v1-staff-member-staff-members.universal-BXgWwq9J.js';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -2924,6 +2924,12 @@ interface StaffMembersQueryBuilder {
|
|
|
2924
2924
|
skipTo: (cursor: string) => StaffMembersQueryBuilder;
|
|
2925
2925
|
find: () => Promise<StaffMembersQueryResult>;
|
|
2926
2926
|
}
|
|
2927
|
+
/**
|
|
2928
|
+
* @hidden
|
|
2929
|
+
* @fqn wix.bookings.staff.v1.StaffMembersService.QueryStaffMembers
|
|
2930
|
+
* @requiredField query
|
|
2931
|
+
*/
|
|
2932
|
+
declare function typedQueryStaffMembers(query: CursorQuery, options?: QueryStaffMembersOptions): Promise<NonNullablePaths<QueryStaffMembersResponse, `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`, 6>>;
|
|
2927
2933
|
/**
|
|
2928
2934
|
* Counts how many staff members match the given filter.
|
|
2929
2935
|
*
|
|
@@ -3213,4 +3219,4 @@ interface BulkUpdateStaffMemberTagsByFilterOptions {
|
|
|
3213
3219
|
unassignTags?: Tags;
|
|
3214
3220
|
}
|
|
3215
3221
|
|
|
3216
|
-
export {
|
|
3222
|
+
export { ConferenceType as $, type AssignWorkingHoursScheduleOptions as A, type BulkUpdateStaffMemberTagsOptions as B, type CreateStaffMemberOptions as C, type DisconnectStaffMemberFromUserOptions as D, type StaffMembersQueryBuilder as E, AssociatedWixIdentityConnectionStatusEnumConnectionStatus as F, type GetStaffMemberOptions as G, ConnectionStatus as H, IdentityType as I, SortOrder as J, ScalarType as K, type ListDeletedStaffMembersOptions as L, Mode as M, AggregationType as N, Day as O, RecurringIntervalType as P, type QueryStaffMembersOptions as Q, RequestedFields as R, type StaffMember as S, Transparency as T, type UpdateStaffMember as U, LocationType as V, LocationStatus as W, LocationsLocationType as X, DayOfWeek as Y, ApprovalStatus as Z, ScheduleStatus as _, type GetDeletedStaffMemberOptions as a, type RangeResults as a$, CalendarType as a0, Status as a1, SessionType as a2, WebhookIdentityType as a3, type MediaItem as a4, type MediaItemMediaOneOf as a5, type Resource as a6, type WorkingHoursSchedule as a7, type EventSchedule as a8, type LocationOptions as a9, type Cursors as aA, type RemoveStaffMemberFromTrashBinRequest as aB, type RemoveStaffMemberFromTrashBinResponse as aC, type RestoreStaffMemberFromTrashBinRequest as aD, type RestoreStaffMemberFromTrashBinResponse as aE, type UpdateStaffMemberRequest as aF, type UpdateStaffMemberResponse as aG, type DeleteStaffMemberRequest as aH, type DeleteStaffMemberResponse as aI, type QueryStaffMembersRequest as aJ, type CursorQueryPagingMethodOneOf as aK, type Sorting as aL, type QueryStaffMembersResponse as aM, type QueryStaffMembersMultiLanguageRequest as aN, type QueryStaffMembersMultiLanguageResponse as aO, type CountStaffMembersRequest as aP, type ConnectStaffMemberToUserRequest as aQ, type SearchStaffMembersRequest as aR, type CursorSearch as aS, type CursorSearchPagingMethodOneOf as aT, type SearchDetails as aU, type AggregationData as aV, type ValueAggregationResult as aW, type RangeAggregationResult as aX, type NestedAggregationResults as aY, type NestedAggregationResultsResultOneOf as aZ, type ValueResults as a_, type SpecificLocation as aa, type BusinessLocation as ab, type AssociatedWixIdentity as ac, type CommonIdentificationData as ad, type CommonIdentificationDataIdOneOf as ae, type Connection as af, type AssociatedConferencingProviders as ag, type AssociatedConferencingProvider as ah, type AssociatedConferencingAccounts as ai, type AssociatedConferencingAccount as aj, type AssociatedConferencingAccountAccountOneOf as ak, type CustomConferenceAccount as al, type ExtendedFields as am, type Tags as an, type TagList as ao, type StaffMemberDisconnectedFromUser as ap, type StaffMemberConnectedToUser as aq, type StaffMemberFullyCreated as ar, type CreateStaffMemberRequest as as, type CreateStaffMemberResponse as at, type GetStaffMemberRequest as au, type GetStaffMemberResponse as av, type GetDeletedStaffMemberRequest as aw, type ListDeletedStaffMembersRequest as ax, type CursorPaging as ay, type CursorPagingMetadata as az, type GetDeletedStaffMemberResponse as b, type Version as b$, type AggregationResultsScalarResult as b0, type NestedValueAggregationResult as b1, type ValueResult as b2, type RangeResult as b3, type ScalarResult as b4, type NestedResultValue as b5, type NestedResultValueResultOneOf as b6, type Results as b7, type DateHistogramResult as b8, type GroupByValueResults as b9, type ScheduleNotificationEventOneOf as bA, type ScheduleCreated as bB, type Schedule as bC, type RecurringInterval as bD, type Interval as bE, type Frequency as bF, type LinkedSchedule as bG, type Location as bH, type Address as bI, type AddressStreetOneOf as bJ, type StreetAddress as bK, type AddressLocation as bL, type Subdivision as bM, type LocationsLocation as bN, type LocationsAddress as bO, type LocationsStreetAddress as bP, type LocationsAddressLocation as bQ, type BusinessSchedule as bR, type TimePeriod as bS, type SpecialHourPeriod as bT, type Rate as bU, type Price as bV, type Availability as bW, type AvailabilityConstraints as bX, type SplitInterval as bY, type Participant as bZ, type ExternalCalendarOverrides as b_, type DateHistogramResults as ba, type NestedResults as bb, type AggregationResults as bc, type AggregationResultsResultOneOf as bd, type DisconnectStaffMemberFromUserRequest as be, type AssignWorkingHoursScheduleRequest as bf, type AssignCustomScheduleRequest as bg, type BulkUpdateStaffMemberTagsRequest as bh, type ItemMetadata as bi, type ApplicationError as bj, type BulkUpdateStaffMemberTagsResult as bk, type BulkActionMetadata as bl, type BulkUpdateStaffMemberTagsByFilterRequest as bm, type RestoreStaffRequest as bn, type RestoreStaffResponse as bo, type Empty as bp, type PolicyRemovedFromContributor as bq, type PolicyUpdatedForContributor as br, type DomainEvent as bs, type DomainEventBodyOneOf as bt, type EntityCreatedEvent as bu, type RestoreInfo as bv, type EntityUpdatedEvent as bw, type EntityDeletedEvent as bx, type ActionEvent as by, type ScheduleNotification as bz, type ListDeletedStaffMembersResponse as c, getDeletedStaffMember as c$, type ConferenceProvider as c0, type CalendarConference as c1, type ScheduleUpdated as c2, type RecurringSessionsUpdated as c3, type Session as c4, type CalendarDateTime as c5, type LocalDateTime as c6, type ExternalCalendarInfo as c7, type SessionVersion as c8, type ParticipantNotification as c9, type SortOrderWithLiterals as cA, type ModeWithLiterals as cB, type ScalarTypeWithLiterals as cC, type AggregationTypeWithLiterals as cD, type DayWithLiterals as cE, type TransparencyWithLiterals as cF, type RecurringIntervalTypeWithLiterals as cG, type LocationTypeWithLiterals as cH, type LocationStatusWithLiterals as cI, type LocationsLocationTypeWithLiterals as cJ, type DayOfWeekWithLiterals as cK, type ApprovalStatusWithLiterals as cL, type ScheduleStatusWithLiterals as cM, type ConferenceTypeWithLiterals as cN, type CalendarTypeWithLiterals as cO, type StatusWithLiterals as cP, type SessionTypeWithLiterals as cQ, type WebhookIdentityTypeWithLiterals as cR, type CommonSearchWithEntityContext as cS, onStaffMemberConnectedToUser as cT, onStaffMemberCreated as cU, onStaffMemberDeleted as cV, onStaffMemberDisconnectedFromUser as cW, onStaffMemberFullyCreated as cX, onStaffMemberUpdated as cY, createStaffMember as cZ, getStaffMember as c_, type ScheduleCancelled as ca, type SessionCreated as cb, type SessionUpdated as cc, type SessionCancelled as cd, type AvailabilityPolicyUpdated as ce, type AvailabilityPolicy as cf, type IntervalSplit as cg, type RecurringSessionSplit as ch, type ScheduleUnassignedFromUser as ci, type MultipleSessionsCreated as cj, type ScheduleWithSessions as ck, type SitePropertiesOnScheduleCreation as cl, type MigrationEvent as cm, type MigrationData as cn, type StaffData as co, type MessageEnvelope as cp, type IdentificationData as cq, type IdentificationDataIdOneOf as cr, type BaseEventMetadata as cs, type EventMetadata as ct, type StaffMembersQueryResult as cu, type StaffMemberSearchSpec as cv, type IdentityTypeWithLiterals as cw, type AssociatedWixIdentityConnectionStatusEnumConnectionStatusWithLiterals as cx, type ConnectionStatusWithLiterals as cy, type RequestedFieldsWithLiterals as cz, type UpdateStaffMemberOptions as d, listDeletedStaffMembers as d0, removeStaffMemberFromTrashBin as d1, updateStaffMember as d2, deleteStaffMember as d3, queryStaffMembers as d4, countStaffMembers as d5, connectStaffMemberToUser as d6, disconnectStaffMemberFromUser as d7, assignWorkingHoursSchedule as d8, assignCustomSchedule as d9, bulkUpdateStaffMemberTags as da, bulkUpdateStaffMemberTagsByFilter as db, type CountStaffMembersOptions as e, type CountStaffMembersResponse as f, type ConnectStaffMemberToUserOptions as g, type ConnectStaffMemberToUserResponse as h, type StaffMemberSearch as i, type SearchStaffMembersOptions as j, type SearchStaffMembersResponse as k, type DisconnectStaffMemberFromUserResponse as l, type AssignWorkingHoursScheduleResponse as m, type AssignCustomScheduleOptions as n, type AssignCustomScheduleResponse as o, type BulkUpdateStaffMemberTagsResponse as p, type BulkUpdateStaffMemberTagsByFilterOptions as q, type BulkUpdateStaffMemberTagsByFilterResponse as r, type StaffMemberConnectedToUserEnvelope as s, type StaffMemberCreatedEnvelope as t, type StaffMemberDeletedEnvelope as u, type StaffMemberDisconnectedFromUserEnvelope as v, type StaffMemberFullyCreatedEnvelope as w, type StaffMemberUpdatedEnvelope as x, type CursorQuery as y, typedQueryStaffMembers as z };
|
|
@@ -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.mjs';
|
|
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.mjs';
|
|
4
4
|
|
|
5
5
|
declare function createStaffMember$1(httpClient: HttpClient): CreateStaffMemberSignature;
|
|
6
6
|
interface CreateStaffMemberSignature {
|
|
@@ -83,28 +83,6 @@ interface DeleteStaffMemberSignature {
|
|
|
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
|
/**
|
|
@@ -264,6 +242,12 @@ declare const onStaffMemberDisconnectedFromUser$1: EventDefinition<StaffMemberDi
|
|
|
264
242
|
declare const onStaffMemberFullyCreated$1: EventDefinition<StaffMemberFullyCreatedEnvelope, "wix.bookings.staff.v1.staff_member_fully_created">;
|
|
265
243
|
declare const onStaffMemberUpdated$1: EventDefinition<StaffMemberUpdatedEnvelope, "wix.bookings.staff.v1.staff_member_updated">;
|
|
266
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
|
+
};
|
|
267
251
|
declare const createStaffMember: MaybeContext<BuildRESTFunction<typeof createStaffMember$1> & typeof createStaffMember$1>;
|
|
268
252
|
declare const getStaffMember: MaybeContext<BuildRESTFunction<typeof getStaffMember$1> & typeof getStaffMember$1>;
|
|
269
253
|
declare const getDeletedStaffMember: MaybeContext<BuildRESTFunction<typeof getDeletedStaffMember$1> & typeof getDeletedStaffMember$1>;
|
|
@@ -271,7 +255,6 @@ declare const listDeletedStaffMembers: MaybeContext<BuildRESTFunction<typeof lis
|
|
|
271
255
|
declare const removeStaffMemberFromTrashBin: MaybeContext<BuildRESTFunction<typeof removeStaffMemberFromTrashBin$1> & typeof removeStaffMemberFromTrashBin$1>;
|
|
272
256
|
declare const updateStaffMember: MaybeContext<BuildRESTFunction<typeof updateStaffMember$1> & typeof updateStaffMember$1>;
|
|
273
257
|
declare const deleteStaffMember: MaybeContext<BuildRESTFunction<typeof deleteStaffMember$1> & typeof deleteStaffMember$1>;
|
|
274
|
-
declare const queryStaffMembers: MaybeContext<BuildRESTFunction<typeof queryStaffMembers$1> & typeof queryStaffMembers$1>;
|
|
275
258
|
declare const countStaffMembers: MaybeContext<BuildRESTFunction<typeof countStaffMembers$1> & typeof countStaffMembers$1>;
|
|
276
259
|
declare const connectStaffMemberToUser: MaybeContext<BuildRESTFunction<typeof connectStaffMemberToUser$1> & typeof connectStaffMemberToUser$1>;
|
|
277
260
|
declare const searchStaffMembers: MaybeContext<BuildRESTFunction<typeof searchStaffMembers$1> & typeof searchStaffMembers$1>;
|
|
@@ -280,6 +263,7 @@ declare const assignWorkingHoursSchedule: MaybeContext<BuildRESTFunction<typeof
|
|
|
280
263
|
declare const assignCustomSchedule: MaybeContext<BuildRESTFunction<typeof assignCustomSchedule$1> & typeof assignCustomSchedule$1>;
|
|
281
264
|
declare const bulkUpdateStaffMemberTags: MaybeContext<BuildRESTFunction<typeof bulkUpdateStaffMemberTags$1> & typeof bulkUpdateStaffMemberTags$1>;
|
|
282
265
|
declare const bulkUpdateStaffMemberTagsByFilter: MaybeContext<BuildRESTFunction<typeof bulkUpdateStaffMemberTagsByFilter$1> & typeof bulkUpdateStaffMemberTagsByFilter$1>;
|
|
266
|
+
declare const queryStaffMembers: MaybeContext<BuildRESTFunction<typeof customQueryStaffMembers> & typeof customQueryStaffMembers>;
|
|
283
267
|
/**
|
|
284
268
|
* Triggered when a Wix user is connected to a staff member.
|
|
285
269
|
*
|
|
@@ -310,4 +294,4 @@ declare const onStaffMemberFullyCreated: BuildEventDefinition<typeof onStaffMemb
|
|
|
310
294
|
*/
|
|
311
295
|
declare const onStaffMemberUpdated: BuildEventDefinition<typeof onStaffMemberUpdated$1> & typeof onStaffMemberUpdated$1;
|
|
312
296
|
|
|
313
|
-
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 };
|
|
@@ -1042,6 +1042,39 @@ function queryStaffMembers2(options) {
|
|
|
1042
1042
|
transformationPaths: {}
|
|
1043
1043
|
});
|
|
1044
1044
|
}
|
|
1045
|
+
async function typedQueryStaffMembers(query, options) {
|
|
1046
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1047
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1048
|
+
query,
|
|
1049
|
+
...options
|
|
1050
|
+
});
|
|
1051
|
+
const reqOpts = queryStaffMembers(payload);
|
|
1052
|
+
sideEffects?.onSiteCall?.();
|
|
1053
|
+
try {
|
|
1054
|
+
const result = await httpClient.request(reqOpts);
|
|
1055
|
+
sideEffects?.onSuccess?.(result);
|
|
1056
|
+
return renameKeysFromRESTResponseToSDKResponse(
|
|
1057
|
+
transformPaths2(result.data, [
|
|
1058
|
+
{
|
|
1059
|
+
transformFn: transformRESTImageToSDKImage,
|
|
1060
|
+
paths: [{ path: "staffMembers.mainMedia.image" }]
|
|
1061
|
+
}
|
|
1062
|
+
])
|
|
1063
|
+
);
|
|
1064
|
+
} catch (err) {
|
|
1065
|
+
const transformedError = sdkTransformError(
|
|
1066
|
+
err,
|
|
1067
|
+
{
|
|
1068
|
+
spreadPathsToArguments: {},
|
|
1069
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
1070
|
+
singleArgumentUnchanged: false
|
|
1071
|
+
},
|
|
1072
|
+
["query", "options"]
|
|
1073
|
+
);
|
|
1074
|
+
sideEffects?.onError?.(err);
|
|
1075
|
+
throw transformedError;
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1045
1078
|
async function countStaffMembers2(options) {
|
|
1046
1079
|
const { httpClient, sideEffects } = arguments[1];
|
|
1047
1080
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -1379,6 +1412,14 @@ function queryStaffMembers3(httpClient) {
|
|
|
1379
1412
|
{ httpClient }
|
|
1380
1413
|
);
|
|
1381
1414
|
}
|
|
1415
|
+
function typedQueryStaffMembers2(httpClient) {
|
|
1416
|
+
return (query, options) => typedQueryStaffMembers(
|
|
1417
|
+
query,
|
|
1418
|
+
options,
|
|
1419
|
+
// @ts-ignore
|
|
1420
|
+
{ httpClient }
|
|
1421
|
+
);
|
|
1422
|
+
}
|
|
1382
1423
|
function countStaffMembers3(httpClient) {
|
|
1383
1424
|
return (options) => countStaffMembers2(
|
|
1384
1425
|
options,
|
|
@@ -1568,6 +1609,18 @@ var onStaffMemberUpdated = EventDefinition(
|
|
|
1568
1609
|
// src/bookings-staff-v1-staff-member-staff-members.context.ts
|
|
1569
1610
|
import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
|
|
1570
1611
|
import { createEventModule } from "@wix/sdk-runtime/event-definition-modules";
|
|
1612
|
+
import { createQueryOverloadRouter } from "@wix/sdk-runtime/query-method-router";
|
|
1613
|
+
function customQueryStaffMembers(httpClient) {
|
|
1614
|
+
const router = createQueryOverloadRouter({
|
|
1615
|
+
builderQueryFunction: (options) => queryStaffMembers3(httpClient)(options),
|
|
1616
|
+
typedQueryFunction: (query, options) => typedQueryStaffMembers2(httpClient)(query, options),
|
|
1617
|
+
hasOptionsParameter: true
|
|
1618
|
+
});
|
|
1619
|
+
function overloadedQuery(queryOrOptions, options) {
|
|
1620
|
+
return router(...arguments);
|
|
1621
|
+
}
|
|
1622
|
+
return overloadedQuery;
|
|
1623
|
+
}
|
|
1571
1624
|
var createStaffMember4 = /* @__PURE__ */ createRESTModule(createStaffMember3);
|
|
1572
1625
|
var getStaffMember4 = /* @__PURE__ */ createRESTModule(getStaffMember3);
|
|
1573
1626
|
var getDeletedStaffMember4 = /* @__PURE__ */ createRESTModule(getDeletedStaffMember3);
|
|
@@ -1575,7 +1628,6 @@ var listDeletedStaffMembers4 = /* @__PURE__ */ createRESTModule(listDeletedStaff
|
|
|
1575
1628
|
var removeStaffMemberFromTrashBin4 = /* @__PURE__ */ createRESTModule(removeStaffMemberFromTrashBin3);
|
|
1576
1629
|
var updateStaffMember4 = /* @__PURE__ */ createRESTModule(updateStaffMember3);
|
|
1577
1630
|
var deleteStaffMember4 = /* @__PURE__ */ createRESTModule(deleteStaffMember3);
|
|
1578
|
-
var queryStaffMembers4 = /* @__PURE__ */ createRESTModule(queryStaffMembers3);
|
|
1579
1631
|
var countStaffMembers4 = /* @__PURE__ */ createRESTModule(countStaffMembers3);
|
|
1580
1632
|
var connectStaffMemberToUser4 = /* @__PURE__ */ createRESTModule(connectStaffMemberToUser3);
|
|
1581
1633
|
var searchStaffMembers4 = /* @__PURE__ */ createRESTModule(searchStaffMembers3);
|
|
@@ -1584,6 +1636,7 @@ var assignWorkingHoursSchedule4 = /* @__PURE__ */ createRESTModule(assignWorking
|
|
|
1584
1636
|
var assignCustomSchedule4 = /* @__PURE__ */ createRESTModule(assignCustomSchedule3);
|
|
1585
1637
|
var bulkUpdateStaffMemberTags4 = /* @__PURE__ */ createRESTModule(bulkUpdateStaffMemberTags3);
|
|
1586
1638
|
var bulkUpdateStaffMemberTagsByFilter4 = /* @__PURE__ */ createRESTModule(bulkUpdateStaffMemberTagsByFilter3);
|
|
1639
|
+
var queryStaffMembers4 = /* @__PURE__ */ createRESTModule(customQueryStaffMembers);
|
|
1587
1640
|
var onStaffMemberConnectedToUser2 = createEventModule(
|
|
1588
1641
|
onStaffMemberConnectedToUser
|
|
1589
1642
|
);
|