@wix/auto_sdk_bookings_staff-members 1.0.113 → 1.0.114
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-Ci2mBnKc.d.ts → bookings-staff-v1-staff-member-staff-members.universal-DCHTw6c2.d.ts} +22 -22
- package/build/cjs/index.d.ts +2 -2
- package/build/cjs/index.js +6 -24
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +6 -24
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +6 -13
- package/build/cjs/meta.js +0 -7
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{bookings-staff-v1-staff-member-staff-members.universal-Ci2mBnKc.d.mts → bookings-staff-v1-staff-member-staff-members.universal-DCHTw6c2.d.mts} +22 -22
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs +6 -23
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +6 -23
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +6 -13
- package/build/es/meta.mjs +0 -6
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/{bookings-staff-v1-staff-member-staff-members.universal-Ciz8V6mu.d.ts → bookings-staff-v1-staff-member-staff-members.universal-BV_GB9_x.d.ts} +46 -70
- package/build/internal/cjs/index.d.ts +11 -5
- package/build/internal/cjs/index.js +6 -24
- 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 +6 -24
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +6 -13
- package/build/internal/cjs/meta.js +0 -7
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/{bookings-staff-v1-staff-member-staff-members.universal-Ciz8V6mu.d.mts → bookings-staff-v1-staff-member-staff-members.universal-BV_GB9_x.d.mts} +46 -70
- package/build/internal/es/index.d.mts +11 -5
- package/build/internal/es/index.mjs +6 -23
- 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 +6 -23
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +6 -13
- package/build/internal/es/meta.mjs +0 -6
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -2,8 +2,9 @@ import * as _wix_sdk_types from '@wix/sdk-types';
|
|
|
2
2
|
import { QuerySpec, SearchSpec, Query, Search, NonNullablePaths } from '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* An individual
|
|
6
|
-
*
|
|
5
|
+
* An individual working at a business. Staff members who are service providers
|
|
6
|
+
* provide services to customers and appear in booking flows. Only staff members
|
|
7
|
+
* who are also Wix users can manage their working hours in the dashboard.
|
|
7
8
|
*/
|
|
8
9
|
interface StaffMember {
|
|
9
10
|
/**
|
|
@@ -541,14 +542,6 @@ interface CursorPaging {
|
|
|
541
542
|
*/
|
|
542
543
|
cursor?: string | null;
|
|
543
544
|
}
|
|
544
|
-
declare enum ServiceProviderFilter {
|
|
545
|
-
/** Only staff members who are service providers (have a resource). */
|
|
546
|
-
SERVICE_PROVIDERS_ONLY = "SERVICE_PROVIDERS_ONLY",
|
|
547
|
-
/** All staff members, including non-providers. */
|
|
548
|
-
ALL_STAFF_MEMBERS = "ALL_STAFF_MEMBERS"
|
|
549
|
-
}
|
|
550
|
-
/** @enumType */
|
|
551
|
-
type ServiceProviderFilterWithLiterals = ServiceProviderFilter | 'SERVICE_PROVIDERS_ONLY' | 'ALL_STAFF_MEMBERS';
|
|
552
545
|
interface ListDeletedStaffMembersResponse {
|
|
553
546
|
/** Retrieved staff members. */
|
|
554
547
|
staffMembers?: StaffMember[];
|
|
@@ -753,7 +746,7 @@ interface ConnectStaffMemberToUserResponse {
|
|
|
753
746
|
}
|
|
754
747
|
interface SetServiceProviderRequest {
|
|
755
748
|
/**
|
|
756
|
-
* ID of the staff member
|
|
749
|
+
* ID of the staff member whose service provider status to set.
|
|
757
750
|
* @format GUID
|
|
758
751
|
*/
|
|
759
752
|
staffMemberId: string;
|
|
@@ -3022,11 +3015,11 @@ interface StaffMembersQueryBuilder {
|
|
|
3022
3015
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
3023
3016
|
* @param value - Value to compare against.
|
|
3024
3017
|
*/
|
|
3025
|
-
eq: (propertyName: '_id' | 'name' | 'email' | 'phone' | 'description' | 'resourceId' | 'resource.id' | 'associatedWixIdentity.identificationData.wixUserId' | 'associatedWixIdentity.identificationData.contactId' | '_createdDate' | '_updatedDate', value: any) => StaffMembersQueryBuilder;
|
|
3018
|
+
eq: (propertyName: '_id' | 'name' | 'email' | 'phone' | 'description' | 'resourceId' | 'resource.id' | 'associatedWixIdentity.identificationData.wixUserId' | 'associatedWixIdentity.identificationData.contactId' | '_createdDate' | '_updatedDate' | 'serviceProvider', value: any) => StaffMembersQueryBuilder;
|
|
3026
3019
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
3027
3020
|
* @param value - Value to compare against.
|
|
3028
3021
|
*/
|
|
3029
|
-
ne: (propertyName: '_id' | 'name' | 'email' | 'phone' | 'description' | 'resourceId' | 'resource.id' | 'associatedWixIdentity.identificationData.wixUserId' | 'associatedWixIdentity.identificationData.contactId' | '_createdDate' | '_updatedDate', value: any) => StaffMembersQueryBuilder;
|
|
3022
|
+
ne: (propertyName: '_id' | 'name' | 'email' | 'phone' | 'description' | 'resourceId' | 'resource.id' | 'associatedWixIdentity.identificationData.wixUserId' | 'associatedWixIdentity.identificationData.contactId' | '_createdDate' | '_updatedDate' | 'serviceProvider', value: any) => StaffMembersQueryBuilder;
|
|
3030
3023
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
3031
3024
|
* @param value - Value to compare against.
|
|
3032
3025
|
*/
|
|
@@ -3050,17 +3043,17 @@ interface StaffMembersQueryBuilder {
|
|
|
3050
3043
|
/** @param propertyName - Property whose value is compared with `values`.
|
|
3051
3044
|
* @param values - List of values to compare against.
|
|
3052
3045
|
*/
|
|
3053
|
-
hasSome: (propertyName: '_id' | 'description' | 'resourceId' | 'resource.id' | 'associatedWixIdentity.identificationData.wixUserId' | 'associatedWixIdentity.identificationData.contactId' | '_createdDate' | '_updatedDate', value: any[]) => StaffMembersQueryBuilder;
|
|
3046
|
+
hasSome: (propertyName: '_id' | 'description' | 'resourceId' | 'resource.id' | 'associatedWixIdentity.identificationData.wixUserId' | 'associatedWixIdentity.identificationData.contactId' | '_createdDate' | '_updatedDate' | 'serviceProvider', value: any[]) => StaffMembersQueryBuilder;
|
|
3054
3047
|
/** @param propertyName - Property whose value is compared with `values`.
|
|
3055
3048
|
* @param values - List of values to compare against.
|
|
3056
3049
|
*/
|
|
3057
3050
|
hasAll: (propertyName: string, value: any[]) => StaffMembersQueryBuilder;
|
|
3058
|
-
in: (propertyName: '_id' | 'name' | 'email' | 'phone' | 'description' | 'resourceId' | 'resource.id' | 'associatedWixIdentity.identificationData.wixUserId' | 'associatedWixIdentity.identificationData.contactId' | '_createdDate' | '_updatedDate', value: any) => StaffMembersQueryBuilder;
|
|
3059
|
-
exists: (propertyName: '_id' | 'name' | 'email' | 'phone' | 'description' | 'resourceId' | 'resource.id' | 'associatedWixIdentity.identificationData.wixUserId' | 'associatedWixIdentity.identificationData.contactId' | '_createdDate' | '_updatedDate', value: boolean) => StaffMembersQueryBuilder;
|
|
3051
|
+
in: (propertyName: '_id' | 'name' | 'email' | 'phone' | 'description' | 'resourceId' | 'resource.id' | 'associatedWixIdentity.identificationData.wixUserId' | 'associatedWixIdentity.identificationData.contactId' | '_createdDate' | '_updatedDate' | 'serviceProvider', value: any) => StaffMembersQueryBuilder;
|
|
3052
|
+
exists: (propertyName: '_id' | 'name' | 'email' | 'phone' | 'description' | 'resourceId' | 'resource.id' | 'associatedWixIdentity.identificationData.wixUserId' | 'associatedWixIdentity.identificationData.contactId' | '_createdDate' | '_updatedDate' | 'serviceProvider', value: boolean) => StaffMembersQueryBuilder;
|
|
3060
3053
|
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
|
|
3061
|
-
ascending: (...propertyNames: Array<'_id' | 'description' | 'resourceId' | 'resource.id' | 'associatedWixIdentity.identificationData.wixUserId' | 'associatedWixIdentity.identificationData.contactId' | 'associatedWixIdentity.identificationData.identityType' | 'default' | '_createdDate' | '_updatedDate'>) => StaffMembersQueryBuilder;
|
|
3054
|
+
ascending: (...propertyNames: Array<'_id' | 'description' | 'resourceId' | 'resource.id' | 'associatedWixIdentity.identificationData.wixUserId' | 'associatedWixIdentity.identificationData.contactId' | 'associatedWixIdentity.identificationData.identityType' | 'default' | '_createdDate' | '_updatedDate' | 'serviceProvider'>) => StaffMembersQueryBuilder;
|
|
3062
3055
|
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
|
|
3063
|
-
descending: (...propertyNames: Array<'_id' | 'description' | 'resourceId' | 'resource.id' | 'associatedWixIdentity.identificationData.wixUserId' | 'associatedWixIdentity.identificationData.contactId' | 'associatedWixIdentity.identificationData.identityType' | 'default' | '_createdDate' | '_updatedDate'>) => StaffMembersQueryBuilder;
|
|
3056
|
+
descending: (...propertyNames: Array<'_id' | 'description' | 'resourceId' | 'resource.id' | 'associatedWixIdentity.identificationData.wixUserId' | 'associatedWixIdentity.identificationData.contactId' | 'associatedWixIdentity.identificationData.identityType' | 'default' | '_createdDate' | '_updatedDate' | 'serviceProvider'>) => StaffMembersQueryBuilder;
|
|
3064
3057
|
/** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
|
|
3065
3058
|
limit: (limit: number) => StaffMembersQueryBuilder;
|
|
3066
3059
|
/** @param cursor - A pointer to specific record */
|
|
@@ -3084,7 +3077,8 @@ interface StaffMemberQuerySpec extends QuerySpec {
|
|
|
3084
3077
|
'associatedWixIdentity.identificationData.contactId',
|
|
3085
3078
|
'associatedWixIdentity.identificationData.wixUserId',
|
|
3086
3079
|
'description',
|
|
3087
|
-
'resourceId'
|
|
3080
|
+
'resourceId',
|
|
3081
|
+
'serviceProvider'
|
|
3088
3082
|
];
|
|
3089
3083
|
operators: '*';
|
|
3090
3084
|
sort: 'BOTH';
|
|
@@ -3161,7 +3155,6 @@ declare const utils: {
|
|
|
3161
3155
|
Filter: _wix_sdk_types.FilterFactory<StaffMember, StaffMemberSearchSpec>;
|
|
3162
3156
|
Sort: _wix_sdk_types.SortFactory<StaffMemberSearchSpec>;
|
|
3163
3157
|
SearchParams: _wix_sdk_types.SearchParamsFactory<StaffMemberSearchSpec>;
|
|
3164
|
-
/** Tags to add to the staff members. */
|
|
3165
3158
|
Aggregation: _wix_sdk_types.AggregationFactory<StaffMemberSearchSpec>;
|
|
3166
3159
|
};
|
|
3167
3160
|
};
|
|
@@ -3243,7 +3236,14 @@ interface StaffMemberSearchSpec extends SearchSpec {
|
|
|
3243
3236
|
wql: [
|
|
3244
3237
|
{
|
|
3245
3238
|
operators: '*';
|
|
3246
|
-
fields: [
|
|
3239
|
+
fields: [
|
|
3240
|
+
'description',
|
|
3241
|
+
'email',
|
|
3242
|
+
'name',
|
|
3243
|
+
'phone',
|
|
3244
|
+
'resourceId',
|
|
3245
|
+
'serviceProvider'
|
|
3246
|
+
];
|
|
3247
3247
|
sort: 'BOTH';
|
|
3248
3248
|
}
|
|
3249
3249
|
];
|
|
@@ -3462,4 +3462,4 @@ interface BulkUpdateStaffMemberTagsByFilterOptions {
|
|
|
3462
3462
|
unassignTags?: Tags;
|
|
3463
3463
|
}
|
|
3464
3464
|
|
|
3465
|
-
export {
|
|
3465
|
+
export { LocationsLocationType as $, type AssignWorkingHoursScheduleOptions as A, type BulkUpdateStaffMemberTagsOptions as B, type CreateStaffMemberOptions as C, type DisconnectStaffMemberFromUserOptions as D, type StaffMemberUpdatedEnvelope as E, type StaffMemberQuery as F, type GetStaffMemberOptions as G, typedQueryStaffMembers as H, type StaffMembersQueryBuilder as I, IdentityType as J, AssociatedWixIdentityConnectionStatusEnumConnectionStatus as K, type ListDeletedStaffMembersOptions as L, ConnectionStatus as M, Gender as N, SortOrder as O, Mode as P, type QueryStaffMembersOptions as Q, RequestedFields as R, type StaffMember as S, ScalarType as T, type UpdateStaffMember as U, AggregationType as V, Day as W, Transparency as X, RecurringIntervalType as Y, LocationType as Z, LocationStatus as _, type GetDeletedStaffMemberOptions as a, type CursorSearchPagingMethodOneOf as a$, DayOfWeek as a0, ApprovalStatus as a1, ScheduleStatus as a2, ConferenceType as a3, CalendarType as a4, Status as a5, SessionType as a6, WebhookIdentityType as a7, type MediaItem as a8, type MediaItemMediaOneOf as a9, type GetStaffMemberResponse as aA, type GetDeletedStaffMemberRequest as aB, type ListDeletedStaffMembersRequest as aC, type CursorPaging as aD, type CursorPagingMetadata as aE, type Cursors as aF, type RemoveStaffMemberFromTrashBinRequest as aG, type RemoveStaffMemberFromTrashBinResponse as aH, type RestoreStaffMemberFromTrashBinRequest as aI, type RestoreStaffMemberFromTrashBinResponse as aJ, type UpdateStaffMemberRequest as aK, type UpdateStaffMemberResponse as aL, type DeleteStaffMemberRequest as aM, type DeleteStaffMemberResponse as aN, type QueryStaffMembersRequest as aO, type CursorQuery as aP, type CursorQueryPagingMethodOneOf as aQ, type Sorting as aR, type QueryStaffMembersResponse as aS, type QueryStaffMembersMultiLanguageRequest as aT, type QueryStaffMembersMultiLanguageResponse as aU, type CountStaffMembersRequest as aV, type ConnectStaffMemberToUserRequest as aW, type SetServiceProviderRequest as aX, type SetServiceProviderResponse as aY, type SearchStaffMembersRequest as aZ, type CursorSearch as a_, type Resource as aa, type WorkingHoursSchedule as ab, type EventSchedule as ac, type LocationOptions as ad, type SpecificLocation as ae, type BusinessLocation as af, type AssociatedWixIdentity as ag, type CommonIdentificationData as ah, type CommonIdentificationDataIdOneOf as ai, type Connection as aj, type AssociatedConferencingProviders as ak, type AssociatedConferencingProvider as al, type AssociatedConferencingAccounts as am, type AssociatedConferencingAccount as an, type AssociatedConferencingAccountAccountOneOf as ao, type CustomConferenceAccount as ap, type ExtendedFields as aq, type Tags as ar, type TagList as as, type StaffMemberDisconnectedFromUser as at, type StaffMemberConnectedToUser as au, type StaffMemberFullyCreated as av, type TagsModified as aw, type CreateStaffMemberRequest as ax, type CreateStaffMemberResponse as ay, type GetStaffMemberRequest as az, type GetDeletedStaffMemberResponse as b, type SpecialHourPeriod as b$, type SearchDetails as b0, type AggregationData as b1, type ValueAggregationResult as b2, type RangeAggregationResult as b3, type NestedAggregationResults as b4, type NestedAggregationResultsResultOneOf as b5, type ValueResults as b6, type RangeResults as b7, type AggregationResultsScalarResult as b8, type NestedValueAggregationResult as b9, type DomainEvent as bA, type DomainEventBodyOneOf as bB, type EntityCreatedEvent as bC, type RestoreInfo as bD, type EntityUpdatedEvent as bE, type EntityDeletedEvent as bF, type ActionEvent as bG, type ScheduleNotification as bH, type ScheduleNotificationEventOneOf as bI, type ScheduleCreated as bJ, type Schedule as bK, type RecurringInterval as bL, type Interval as bM, type Frequency as bN, type LinkedSchedule as bO, type Location as bP, type Address as bQ, type AddressStreetOneOf as bR, type StreetAddress as bS, type AddressLocation as bT, type Subdivision as bU, type LocationsLocation as bV, type LocationsAddress as bW, type LocationsStreetAddress as bX, type LocationsAddressLocation as bY, type BusinessSchedule as bZ, type TimePeriod as b_, type ValueResult as ba, type RangeResult as bb, type ScalarResult as bc, type NestedResultValue as bd, type NestedResultValueResultOneOf as be, type Results as bf, type DateHistogramResult as bg, type GroupByValueResults as bh, type DateHistogramResults as bi, type NestedResults as bj, type AggregationResults as bk, type AggregationResultsResultOneOf as bl, type DisconnectStaffMemberFromUserRequest as bm, type AssignWorkingHoursScheduleRequest as bn, type AssignCustomScheduleRequest as bo, type BulkUpdateStaffMemberTagsRequest as bp, type ItemMetadata as bq, type ApplicationError as br, type BulkUpdateStaffMemberTagsResult as bs, type BulkActionMetadata as bt, type BulkUpdateStaffMemberTagsByFilterRequest as bu, type RestoreStaffRequest as bv, type RestoreStaffResponse as bw, type Empty as bx, type PolicyRemovedFromContributor as by, type PolicyUpdatedForContributor as bz, type ListDeletedStaffMembersResponse as c, type ConferenceTypeWithLiterals as c$, type Rate as c0, type Price as c1, type Availability as c2, type AvailabilityConstraints as c3, type SplitInterval as c4, type Participant as c5, type ExternalCalendarOverrides as c6, type Version as c7, type ConferenceProvider as c8, type CalendarConference as c9, type AccountInfo as cA, type BaseEventMetadata as cB, type EventMetadata as cC, type AccountInfoMetadata as cD, type StaffMembersQueryResult as cE, type StaffMemberQuerySpec as cF, type SetServiceProviderOptions as cG, type StaffMemberSearchSpec as cH, utils as cI, type IdentityTypeWithLiterals as cJ, type AssociatedWixIdentityConnectionStatusEnumConnectionStatusWithLiterals as cK, type ConnectionStatusWithLiterals as cL, type GenderWithLiterals as cM, type RequestedFieldsWithLiterals as cN, type SortOrderWithLiterals as cO, type ModeWithLiterals as cP, type ScalarTypeWithLiterals as cQ, type AggregationTypeWithLiterals as cR, type DayWithLiterals as cS, type TransparencyWithLiterals as cT, type RecurringIntervalTypeWithLiterals as cU, type LocationTypeWithLiterals as cV, type LocationStatusWithLiterals as cW, type LocationsLocationTypeWithLiterals as cX, type DayOfWeekWithLiterals as cY, type ApprovalStatusWithLiterals as cZ, type ScheduleStatusWithLiterals as c_, type ScheduleUpdated as ca, type RecurringSessionsUpdated as cb, type Session as cc, type CalendarDateTime as cd, type LocalDateTime as ce, type ExternalCalendarInfo as cf, type SessionVersion as cg, type ParticipantNotification as ch, type ScheduleCancelled as ci, type SessionCreated as cj, type SessionUpdated as ck, type SessionCancelled as cl, type AvailabilityPolicyUpdated as cm, type AvailabilityPolicy as cn, type IntervalSplit as co, type RecurringSessionSplit as cp, type ScheduleUnassignedFromUser as cq, type MultipleSessionsCreated as cr, type ScheduleWithSessions as cs, type SitePropertiesOnScheduleCreation as ct, type MigrationEvent as cu, type MigrationData as cv, type StaffData as cw, type MessageEnvelope as cx, type IdentificationData as cy, type IdentificationDataIdOneOf as cz, type UpdateStaffMemberOptions as d, type CalendarTypeWithLiterals as d0, type StatusWithLiterals as d1, type SessionTypeWithLiterals as d2, type WebhookIdentityTypeWithLiterals as d3, type CommonQueryWithEntityContext as d4, type CommonSearchWithEntityContext as d5, onStaffMemberConnectedToUser as d6, onStaffMemberCreated as d7, onStaffMemberDeleted as d8, onStaffMemberDisconnectedFromUser as d9, onStaffMemberFullyCreated as da, onStaffMemberTagsModified as db, onStaffMemberUpdated as dc, createStaffMember as dd, getStaffMember as de, getDeletedStaffMember as df, listDeletedStaffMembers as dg, removeStaffMemberFromTrashBin as dh, updateStaffMember as di, deleteStaffMember as dj, queryStaffMembers as dk, countStaffMembers as dl, connectStaffMemberToUser as dm, disconnectStaffMemberFromUser as dn, assignWorkingHoursSchedule as dp, assignCustomSchedule as dq, bulkUpdateStaffMemberTags as dr, bulkUpdateStaffMemberTagsByFilter as ds, 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 BulkUpdateStaffMemberTagsApplicationErrors as q, type BulkUpdateStaffMemberTagsByFilterOptions as r, type BulkUpdateStaffMemberTagsByFilterResponse as s, type BulkUpdateStaffMemberTagsByFilterApplicationErrors as t, type StaffMemberConnectedToUserEnvelope as u, type StaffMemberCreatedEnvelope as v, type StaffMemberDeletedEnvelope as w, type StaffMemberDisconnectedFromUserEnvelope as x, type StaffMemberFullyCreatedEnvelope as y, type StaffMemberTagsModifiedEnvelope as z };
|
package/build/cjs/index.d.ts
CHANGED
|
@@ -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, 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 BulkUpdateStaffMemberTagsApplicationErrors, r as BulkUpdateStaffMemberTagsByFilterOptions, s as BulkUpdateStaffMemberTagsByFilterResponse, t as BulkUpdateStaffMemberTagsByFilterApplicationErrors, u as StaffMemberConnectedToUserEnvelope, v as StaffMemberCreatedEnvelope, w as StaffMemberDeletedEnvelope, x as StaffMemberDisconnectedFromUserEnvelope, y as StaffMemberFullyCreatedEnvelope, z as StaffMemberTagsModifiedEnvelope, E as StaffMemberUpdatedEnvelope, F as StaffMemberQuery, Q as QueryStaffMembersOptions, H as typedQueryStaffMembers, I as StaffMembersQueryBuilder } from './bookings-staff-v1-staff-member-staff-members.universal-
|
|
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 BulkUpdateStaffMemberTagsApplicationErrors, r as BulkUpdateStaffMemberTagsByFilterOptions, s as BulkUpdateStaffMemberTagsByFilterResponse, t as BulkUpdateStaffMemberTagsByFilterApplicationErrors, u as StaffMemberConnectedToUserEnvelope, v as StaffMemberCreatedEnvelope, w as StaffMemberDeletedEnvelope, x as StaffMemberDisconnectedFromUserEnvelope, y as StaffMemberFullyCreatedEnvelope, z as StaffMemberTagsModifiedEnvelope, E as StaffMemberUpdatedEnvelope, F as StaffMemberQuery, Q as QueryStaffMembersOptions, H as typedQueryStaffMembers, I as StaffMembersQueryBuilder } from './bookings-staff-v1-staff-member-staff-members.universal-DCHTw6c2.js';
|
|
3
|
+
export { cA as AccountInfo, cD as AccountInfoMetadata, bG as ActionEvent, bQ as Address, bT as AddressLocation, bR as AddressStreetOneOf, b1 as AggregationData, bk as AggregationResults, bl as AggregationResultsResultOneOf, b8 as AggregationResultsScalarResult, V as AggregationType, cR as AggregationTypeWithLiterals, br as ApplicationError, a1 as ApprovalStatus, cZ as ApprovalStatusWithLiterals, bo as AssignCustomScheduleRequest, bn as AssignWorkingHoursScheduleRequest, an as AssociatedConferencingAccount, ao as AssociatedConferencingAccountAccountOneOf, am as AssociatedConferencingAccounts, al as AssociatedConferencingProvider, ak as AssociatedConferencingProviders, ag as AssociatedWixIdentity, K as AssociatedWixIdentityConnectionStatusEnumConnectionStatus, cK as AssociatedWixIdentityConnectionStatusEnumConnectionStatusWithLiterals, c2 as Availability, c3 as AvailabilityConstraints, cn as AvailabilityPolicy, cm as AvailabilityPolicyUpdated, cB as BaseEventMetadata, bt as BulkActionMetadata, bu as BulkUpdateStaffMemberTagsByFilterRequest, bp as BulkUpdateStaffMemberTagsRequest, bs as BulkUpdateStaffMemberTagsResult, af as BusinessLocation, bZ as BusinessSchedule, c9 as CalendarConference, cd as CalendarDateTime, a4 as CalendarType, d0 as CalendarTypeWithLiterals, ah as CommonIdentificationData, ai as CommonIdentificationDataIdOneOf, d4 as CommonQueryWithEntityContext, d5 as CommonSearchWithEntityContext, c8 as ConferenceProvider, a3 as ConferenceType, c$ as ConferenceTypeWithLiterals, aW as ConnectStaffMemberToUserRequest, aj as Connection, M as ConnectionStatus, cL as ConnectionStatusWithLiterals, aV as CountStaffMembersRequest, ax as CreateStaffMemberRequest, ay as CreateStaffMemberResponse, aD as CursorPaging, aE as CursorPagingMetadata, aP as CursorQuery, aQ as CursorQueryPagingMethodOneOf, a_ as CursorSearch, a$ as CursorSearchPagingMethodOneOf, aF as Cursors, ap as CustomConferenceAccount, bg as DateHistogramResult, bi as DateHistogramResults, W as Day, a0 as DayOfWeek, cY as DayOfWeekWithLiterals, cS as DayWithLiterals, aM as DeleteStaffMemberRequest, aN as DeleteStaffMemberResponse, bm as DisconnectStaffMemberFromUserRequest, bA as DomainEvent, bB as DomainEventBodyOneOf, bx as Empty, bC as EntityCreatedEvent, bF as EntityDeletedEvent, bE as EntityUpdatedEvent, cC as EventMetadata, ac as EventSchedule, aq as ExtendedFields, cf as ExternalCalendarInfo, c6 as ExternalCalendarOverrides, bN as Frequency, N as Gender, cM as GenderWithLiterals, aB as GetDeletedStaffMemberRequest, az as GetStaffMemberRequest, aA as GetStaffMemberResponse, bh as GroupByValueResults, cy as IdentificationData, cz as IdentificationDataIdOneOf, J as IdentityType, cJ as IdentityTypeWithLiterals, bM as Interval, co as IntervalSplit, bq as ItemMetadata, bO as LinkedSchedule, aC as ListDeletedStaffMembersRequest, ce as LocalDateTime, bP as Location, ad as LocationOptions, _ as LocationStatus, cW as LocationStatusWithLiterals, Z as LocationType, cV as LocationTypeWithLiterals, bW as LocationsAddress, bY as LocationsAddressLocation, bV as LocationsLocation, $ as LocationsLocationType, cX as LocationsLocationTypeWithLiterals, bX as LocationsStreetAddress, a8 as MediaItem, a9 as MediaItemMediaOneOf, cx as MessageEnvelope, cv as MigrationData, cu as MigrationEvent, P as Mode, cP as ModeWithLiterals, cr as MultipleSessionsCreated, b4 as NestedAggregationResults, b5 as NestedAggregationResultsResultOneOf, bd as NestedResultValue, be as NestedResultValueResultOneOf, bj as NestedResults, b9 as NestedValueAggregationResult, c5 as Participant, ch as ParticipantNotification, by as PolicyRemovedFromContributor, bz as PolicyUpdatedForContributor, c1 as Price, aT as QueryStaffMembersMultiLanguageRequest, aU as QueryStaffMembersMultiLanguageResponse, aO as QueryStaffMembersRequest, aS as QueryStaffMembersResponse, b3 as RangeAggregationResult, bb as RangeResult, b7 as RangeResults, c0 as Rate, bL as RecurringInterval, Y as RecurringIntervalType, cU as RecurringIntervalTypeWithLiterals, cp as RecurringSessionSplit, cb as RecurringSessionsUpdated, aG as RemoveStaffMemberFromTrashBinRequest, aH as RemoveStaffMemberFromTrashBinResponse, R as RequestedFields, cN as RequestedFieldsWithLiterals, aa as Resource, bD as RestoreInfo, aI as RestoreStaffMemberFromTrashBinRequest, aJ as RestoreStaffMemberFromTrashBinResponse, bv as RestoreStaffRequest, bw as RestoreStaffResponse, bf as Results, bc as ScalarResult, T as ScalarType, cQ as ScalarTypeWithLiterals, bK as Schedule, ci as ScheduleCancelled, bJ as ScheduleCreated, bH as ScheduleNotification, bI as ScheduleNotificationEventOneOf, a2 as ScheduleStatus, c_ as ScheduleStatusWithLiterals, cq as ScheduleUnassignedFromUser, ca as ScheduleUpdated, cs as ScheduleWithSessions, b0 as SearchDetails, aZ as SearchStaffMembersRequest, cc as Session, cl as SessionCancelled, cj as SessionCreated, a6 as SessionType, d2 as SessionTypeWithLiterals, ck as SessionUpdated, cg as SessionVersion, cG as SetServiceProviderOptions, aX as SetServiceProviderRequest, aY as SetServiceProviderResponse, ct as SitePropertiesOnScheduleCreation, O as SortOrder, cO as SortOrderWithLiterals, aR as Sorting, b$ as SpecialHourPeriod, ae as SpecificLocation, c4 as SplitInterval, cw as StaffData, au as StaffMemberConnectedToUser, at as StaffMemberDisconnectedFromUser, av as StaffMemberFullyCreated, cF as StaffMemberQuerySpec, cH as StaffMemberSearchSpec, cE as StaffMembersQueryResult, a5 as Status, d1 as StatusWithLiterals, bS as StreetAddress, bU as Subdivision, as as TagList, ar as Tags, aw as TagsModified, b_ as TimePeriod, X as Transparency, cT as TransparencyWithLiterals, aK as UpdateStaffMemberRequest, aL as UpdateStaffMemberResponse, b2 as ValueAggregationResult, ba as ValueResult, b6 as ValueResults, c7 as Version, a7 as WebhookIdentityType, d3 as WebhookIdentityTypeWithLiterals, ab as WorkingHoursSchedule, cI as utils } from './bookings-staff-v1-staff-member-staff-members.universal-DCHTw6c2.js';
|
|
4
4
|
|
|
5
5
|
declare function createStaffMember$1(httpClient: HttpClient): CreateStaffMemberSignature;
|
|
6
6
|
interface CreateStaffMemberSignature {
|
package/build/cjs/index.js
CHANGED
|
@@ -38,7 +38,6 @@ __export(index_exports, {
|
|
|
38
38
|
RequestedFields: () => RequestedFields,
|
|
39
39
|
ScalarType: () => ScalarType,
|
|
40
40
|
ScheduleStatus: () => ScheduleStatus,
|
|
41
|
-
ServiceProviderFilter: () => ServiceProviderFilter,
|
|
42
41
|
SessionType: () => SessionType,
|
|
43
42
|
SortOrder: () => SortOrder,
|
|
44
43
|
Status: () => Status,
|
|
@@ -730,11 +729,6 @@ var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
|
|
|
730
729
|
RequestedFields2["ASSOCIATED_IDENTITY_STATUS"] = "ASSOCIATED_IDENTITY_STATUS";
|
|
731
730
|
return RequestedFields2;
|
|
732
731
|
})(RequestedFields || {});
|
|
733
|
-
var ServiceProviderFilter = /* @__PURE__ */ ((ServiceProviderFilter2) => {
|
|
734
|
-
ServiceProviderFilter2["SERVICE_PROVIDERS_ONLY"] = "SERVICE_PROVIDERS_ONLY";
|
|
735
|
-
ServiceProviderFilter2["ALL_STAFF_MEMBERS"] = "ALL_STAFF_MEMBERS";
|
|
736
|
-
return ServiceProviderFilter2;
|
|
737
|
-
})(ServiceProviderFilter || {});
|
|
738
732
|
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
739
733
|
SortOrder2["ASC"] = "ASC";
|
|
740
734
|
SortOrder2["DESC"] = "DESC";
|
|
@@ -988,8 +982,7 @@ async function listDeletedStaffMembers2(options) {
|
|
|
988
982
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
989
983
|
staffMemberIds: options?.staffMemberIds,
|
|
990
984
|
paging: options?.paging,
|
|
991
|
-
fields: options?.fields
|
|
992
|
-
serviceProviderFilter: options?.serviceProviderFilter
|
|
985
|
+
fields: options?.fields
|
|
993
986
|
});
|
|
994
987
|
const reqOpts = listDeletedStaffMembers(payload);
|
|
995
988
|
sideEffects?.onSiteCall?.();
|
|
@@ -1012,8 +1005,7 @@ async function listDeletedStaffMembers2(options) {
|
|
|
1012
1005
|
explicitPathsToArguments: {
|
|
1013
1006
|
staffMemberIds: "$[0].staffMemberIds",
|
|
1014
1007
|
paging: "$[0].paging",
|
|
1015
|
-
fields: "$[0].fields"
|
|
1016
|
-
serviceProviderFilter: "$[0].serviceProviderFilter"
|
|
1008
|
+
fields: "$[0].fields"
|
|
1017
1009
|
},
|
|
1018
1010
|
singleArgumentUnchanged: false
|
|
1019
1011
|
},
|
|
@@ -1213,8 +1205,7 @@ var utils = {
|
|
|
1213
1205
|
async function countStaffMembers2(options) {
|
|
1214
1206
|
const { httpClient, sideEffects } = arguments[1];
|
|
1215
1207
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1216
|
-
filter: options?.filter
|
|
1217
|
-
serviceProviderFilter: options?.serviceProviderFilter
|
|
1208
|
+
filter: options?.filter
|
|
1218
1209
|
});
|
|
1219
1210
|
const reqOpts = countStaffMembers(payload);
|
|
1220
1211
|
sideEffects?.onSiteCall?.();
|
|
@@ -1227,10 +1218,7 @@ async function countStaffMembers2(options) {
|
|
|
1227
1218
|
err,
|
|
1228
1219
|
{
|
|
1229
1220
|
spreadPathsToArguments: {},
|
|
1230
|
-
explicitPathsToArguments: {
|
|
1231
|
-
filter: "$[0].filter",
|
|
1232
|
-
serviceProviderFilter: "$[0].serviceProviderFilter"
|
|
1233
|
-
},
|
|
1221
|
+
explicitPathsToArguments: { filter: "$[0].filter" },
|
|
1234
1222
|
singleArgumentUnchanged: false
|
|
1235
1223
|
},
|
|
1236
1224
|
["options"]
|
|
@@ -1319,8 +1307,7 @@ async function searchStaffMembers2(search, options) {
|
|
|
1319
1307
|
const { httpClient, sideEffects } = arguments[2];
|
|
1320
1308
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1321
1309
|
search,
|
|
1322
|
-
fields: options?.fields
|
|
1323
|
-
serviceProviderFilter: options?.serviceProviderFilter
|
|
1310
|
+
fields: options?.fields
|
|
1324
1311
|
});
|
|
1325
1312
|
const reqOpts = searchStaffMembers(payload);
|
|
1326
1313
|
sideEffects?.onSiteCall?.();
|
|
@@ -1340,11 +1327,7 @@ async function searchStaffMembers2(search, options) {
|
|
|
1340
1327
|
err,
|
|
1341
1328
|
{
|
|
1342
1329
|
spreadPathsToArguments: {},
|
|
1343
|
-
explicitPathsToArguments: {
|
|
1344
|
-
search: "$[0]",
|
|
1345
|
-
fields: "$[1].fields",
|
|
1346
|
-
serviceProviderFilter: "$[1].serviceProviderFilter"
|
|
1347
|
-
},
|
|
1330
|
+
explicitPathsToArguments: { search: "$[0]", fields: "$[1].fields" },
|
|
1348
1331
|
singleArgumentUnchanged: false
|
|
1349
1332
|
},
|
|
1350
1333
|
["search", "options"]
|
|
@@ -1895,7 +1878,6 @@ var onStaffMemberUpdated2 = (0, import_event_definition_modules.createEventModul
|
|
|
1895
1878
|
RequestedFields,
|
|
1896
1879
|
ScalarType,
|
|
1897
1880
|
ScheduleStatus,
|
|
1898
|
-
ServiceProviderFilter,
|
|
1899
1881
|
SessionType,
|
|
1900
1882
|
SortOrder,
|
|
1901
1883
|
Status,
|