@wix/auto_sdk_bookings_staff-members 1.0.39 → 1.0.41

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.
@@ -1,7 +1,8 @@
1
- import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
1
+ import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
2
  import { S as StaffMember, C as CreateStaffMemberOptions, G as GetStaffMemberOptions, U as UpdateStaffMember, a as UpdateStaffMemberOptions, Q as QueryStaffMembersOptions, b as StaffMembersQueryBuilder, c as CountStaffMembersOptions, d as CountStaffMembersResponse, e as ConnectStaffMemberToUserOptions, f as ConnectStaffMemberToUserResponse, g as StaffMemberSearch, h as SearchStaffMembersOptions, i as SearchStaffMembersResponse, D as DisconnectStaffMemberFromUserOptions, j as DisconnectStaffMemberFromUserResponse, A as AssignWorkingHoursScheduleOptions, k as AssignWorkingHoursScheduleResponse, l as AssignCustomScheduleOptions, m as AssignCustomScheduleResponse, B as BulkUpdateStaffMemberTagsOptions, n as BulkUpdateStaffMemberTagsResponse, o as BulkUpdateStaffMemberTagsByFilterOptions, p as BulkUpdateStaffMemberTagsByFilterResponse, q as StaffMemberConnectedToUserEnvelope, r as StaffMemberCreatedEnvelope, s as StaffMemberDeletedEnvelope, t as StaffMemberDisconnectedFromUserEnvelope, u as StaffMemberFullyCreatedEnvelope, v as StaffMemberUpdatedEnvelope } from './bookings-staff-v1-staff-member-staff-members.universal-DAzRKrA6.js';
3
3
  export { bv as ActionEvent, bF as Address, bI as AddressLocation, bG as AddressStreetOneOf, aS as AggregationData, b9 as AggregationResults, ba as AggregationResultsResultOneOf, aZ as AggregationResultsScalarResult, E as AggregationType, bg as ApplicationError, O as ApprovalStatus, bd as AssignCustomScheduleRequest, bc as AssignWorkingHoursScheduleRequest, ad as AssociatedConferencingAccount, ae as AssociatedConferencingAccountAccountOneOf, ac as AssociatedConferencingAccounts, ab as AssociatedConferencingProvider, aa as AssociatedConferencingProviders, a6 as AssociatedWixIdentity, w as AssociatedWixIdentityConnectionStatusEnumConnectionStatus, bT as Availability, bU as AvailabilityConstraints, cc as AvailabilityPolicy, cb as AvailabilityPolicyUpdated, cp as BaseEventMetadata, bi as BulkActionMetadata, bj as BulkUpdateStaffMemberTagsByFilterRequest, be as BulkUpdateStaffMemberTagsRequest, bh as BulkUpdateStaffMemberTagsResult, a5 as BusinessLocation, bO as BusinessSchedule, b_ as CalendarConference, c2 as CalendarDateTime, W as CalendarType, a7 as CommonIdentificationData, a8 as CommonIdentificationDataIdOneOf, bZ as ConferenceProvider, V as ConferenceType, aN as ConnectStaffMemberToUserRequest, a9 as Connection, x as ConnectionStatus, aM as CountStaffMembersRequest, am as CreateStaffMemberRequest, an as CreateStaffMemberResponse, at as CursorPaging, av as CursorPagingMetadata, aG as CursorQuery, aH as CursorQueryPagingMethodOneOf, aP as CursorSearch, aQ as CursorSearchPagingMethodOneOf, aw as Cursors, af as CustomConferenceAccount, b5 as DateHistogramResult, b7 as DateHistogramResults, F as Day, N as DayOfWeek, aD as DeleteStaffMemberRequest, aE as DeleteStaffMemberResponse, bb as DisconnectStaffMemberFromUserRequest, bp as DomainEvent, bq as DomainEventBodyOneOf, bm as Empty, br as EntityCreatedEvent, bu as EntityDeletedEvent, bt as EntityUpdatedEvent, cq as EventMetadata, a2 as EventSchedule, ag as ExtendedFields, c4 as ExternalCalendarInfo, bX as ExternalCalendarOverrides, bC as Frequency, aq as GetDeletedStaffMemberRequest, ar as GetDeletedStaffMemberResponse, ao as GetStaffMemberRequest, ap as GetStaffMemberResponse, b6 as GroupByValueResults, cn as IdentificationData, co as IdentificationDataIdOneOf, I as IdentityType, bB as Interval, cd as IntervalSplit, bf as ItemMetadata, bD as LinkedSchedule, as as ListDeletedStaffMembersRequest, au as ListDeletedStaffMembersResponse, c3 as LocalDateTime, bE as Location, a3 as LocationOptions, J as LocationStatus, L as LocationType, bL as LocationsAddress, bN as LocationsAddressLocation, bK as LocationsLocation, K as LocationsLocationType, bM as LocationsStreetAddress, _ as MediaItem, $ as MediaItemMediaOneOf, cm as MessageEnvelope, ck as MigrationData, cj as MigrationEvent, M as Mode, cg as MultipleSessionsCreated, aV as NestedAggregationResults, aW as NestedAggregationResultsResultOneOf, b2 as NestedResultValue, b3 as NestedResultValueResultOneOf, b8 as NestedResults, a_ as NestedValueAggregationResult, bW as Participant, c6 as ParticipantNotification, bn as PolicyRemovedFromContributor, bo as PolicyUpdatedForContributor, bS as Price, aK as QueryStaffMembersMultiLanguageRequest, aL as QueryStaffMembersMultiLanguageResponse, aF as QueryStaffMembersRequest, aJ as QueryStaffMembersResponse, aU as RangeAggregationResult, b0 as RangeResult, aY as RangeResults, bR as Rate, bA as RecurringInterval, H as RecurringIntervalType, ce as RecurringSessionSplit, c0 as RecurringSessionsUpdated, ax as RemoveStaffMemberFromTrashBinRequest, ay as RemoveStaffMemberFromTrashBinResponse, R as RequestedFields, a0 as Resource, bs as RestoreInfo, az as RestoreStaffMemberFromTrashBinRequest, aA as RestoreStaffMemberFromTrashBinResponse, bk as RestoreStaffRequest, bl as RestoreStaffResponse, b4 as Results, b1 as ScalarResult, z as ScalarType, bz as Schedule, c7 as ScheduleCancelled, by as ScheduleCreated, bw as ScheduleNotification, bx as ScheduleNotificationEventOneOf, P as ScheduleStatus, cf as ScheduleUnassignedFromUser, b$ as ScheduleUpdated, ch as ScheduleWithSessions, aR as SearchDetails, aO as SearchStaffMembersRequest, c1 as Session, ca as SessionCancelled, c8 as SessionCreated, Y as SessionType, c9 as SessionUpdated, c5 as SessionVersion, ci as SitePropertiesOnScheduleCreation, y as SortOrder, aI as Sorting, bQ as SpecialHourPeriod, a4 as SpecificLocation, bV as SplitInterval, cl as StaffData, ak as StaffMemberConnectedToUser, aj as StaffMemberDisconnectedFromUser, al as StaffMemberFullyCreated, cs as StaffMemberSearchSpec, cr as StaffMembersQueryResult, X as Status, bH as StreetAddress, bJ as Subdivision, ai as TagList, ah as Tags, bP as TimePeriod, T as Transparency, aB as UpdateStaffMemberRequest, aC as UpdateStaffMemberResponse, aT as ValueAggregationResult, a$ as ValueResult, aX as ValueResults, bY as Version, Z as WebhookIdentityType, a1 as WorkingHoursSchedule } from './bookings-staff-v1-staff-member-staff-members.universal-DAzRKrA6.js';
4
4
 
5
+ type StaffMemberNonNullablePaths = `resource.workingHoursSchedules` | `resource.workingHoursSchedules.${number}.shared` | `resource.usesDefaultWorkingHours` | `associatedWixIdentity.identificationData.anonymousVisitorId` | `associatedWixIdentity.identificationData.memberId` | `associatedWixIdentity.identificationData.wixUserId` | `associatedWixIdentity.identificationData.appId` | `associatedWixIdentity.connectionStatus` | `associatedWixIdentity.connection.status` | `tags.privateTags.tagIds`;
5
6
  declare function createStaffMember$1(httpClient: HttpClient): CreateStaffMemberSignature;
6
7
  interface CreateStaffMemberSignature {
7
8
  /**
@@ -16,7 +17,7 @@ interface CreateStaffMemberSignature {
16
17
  * @param - Options for creating the staff member.
17
18
  * @returns Created staff member.
18
19
  */
19
- (staffMember: StaffMember, options?: CreateStaffMemberOptions | undefined): Promise<StaffMember>;
20
+ (staffMember: NonNullablePaths<StaffMember, `name`>, options?: CreateStaffMemberOptions): Promise<NonNullablePaths<StaffMember, StaffMemberNonNullablePaths>>;
20
21
  }
21
22
  declare function getStaffMember$1(httpClient: HttpClient): GetStaffMemberSignature;
22
23
  interface GetStaffMemberSignature {
@@ -26,7 +27,7 @@ interface GetStaffMemberSignature {
26
27
  * @param - Option for retrieving the staff member.
27
28
  * @returns Retrieved staff member.
28
29
  */
29
- (staffMemberId: string, options?: GetStaffMemberOptions | undefined): Promise<StaffMember>;
30
+ (staffMemberId: string, options?: GetStaffMemberOptions): Promise<NonNullablePaths<StaffMember, StaffMemberNonNullablePaths>>;
30
31
  }
31
32
  declare function updateStaffMember$1(httpClient: HttpClient): UpdateStaffMemberSignature;
32
33
  interface UpdateStaffMemberSignature {
@@ -43,7 +44,7 @@ interface UpdateStaffMemberSignature {
43
44
  * @param - Options for updating the staff member.
44
45
  * @returns Updated staff member.
45
46
  */
46
- (_id: string, staffMember: UpdateStaffMember, options?: UpdateStaffMemberOptions | undefined): Promise<StaffMember>;
47
+ (_id: string, staffMember: NonNullablePaths<UpdateStaffMember, `revision`>, options?: UpdateStaffMemberOptions): Promise<NonNullablePaths<StaffMember, StaffMemberNonNullablePaths>>;
47
48
  }
48
49
  declare function deleteStaffMember$1(httpClient: HttpClient): DeleteStaffMemberSignature;
49
50
  interface DeleteStaffMemberSignature {
@@ -78,7 +79,7 @@ interface QueryStaffMembersSignature {
78
79
  *
79
80
  * 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`.
80
81
  */
81
- (options?: QueryStaffMembersOptions | undefined): StaffMembersQueryBuilder;
82
+ (options?: QueryStaffMembersOptions): StaffMembersQueryBuilder;
82
83
  }
83
84
  declare function countStaffMembers$1(httpClient: HttpClient): CountStaffMembersSignature;
84
85
  interface CountStaffMembersSignature {
@@ -97,7 +98,7 @@ interface CountStaffMembersSignature {
97
98
  * To learn about working with filters in general, see
98
99
  * [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
99
100
  */
100
- (options?: CountStaffMembersOptions | undefined): Promise<CountStaffMembersResponse>;
101
+ (options?: CountStaffMembersOptions): Promise<NonNullablePaths<CountStaffMembersResponse, `count`>>;
101
102
  }
102
103
  declare function connectStaffMemberToUser$1(httpClient: HttpClient): ConnectStaffMemberToUserSignature;
103
104
  interface ConnectStaffMemberToUserSignature {
@@ -122,7 +123,9 @@ interface ConnectStaffMemberToUserSignature {
122
123
  * @param - ID of the staff member to connect to the Wix user.
123
124
  * @param - Options for connecting the staff member to a Wix user.
124
125
  */
125
- (staffMemberId: string, options?: ConnectStaffMemberToUserOptions | undefined): Promise<ConnectStaffMemberToUserResponse>;
126
+ (staffMemberId: string, options?: ConnectStaffMemberToUserOptions): Promise<NonNullablePaths<ConnectStaffMemberToUserResponse, {
127
+ [P in StaffMemberNonNullablePaths]: `staffMember.${P}`;
128
+ }[StaffMemberNonNullablePaths]>>;
126
129
  }
127
130
  declare function searchStaffMembers$1(httpClient: HttpClient): SearchStaffMembersSignature;
128
131
  interface SearchStaffMembersSignature {
@@ -154,7 +157,9 @@ interface SearchStaffMembersSignature {
154
157
  *
155
158
  * See the supported filters article ([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)) for complete filter and sorting options.
156
159
  */
157
- (search: StaffMemberSearch, options?: SearchStaffMembersOptions | undefined): Promise<SearchStaffMembersResponse>;
160
+ (search: StaffMemberSearch, options?: SearchStaffMembersOptions): Promise<NonNullablePaths<SearchStaffMembersResponse, {
161
+ [P in StaffMemberNonNullablePaths]: `staffMembers.${number}.${P}`;
162
+ }[StaffMemberNonNullablePaths] | `aggregationData.results` | `aggregationData.results.${number}.scalar.type` | `aggregationData.results.${number}.scalar.value` | `aggregationData.results.${number}.name` | `aggregationData.results.${number}.type` | `aggregationData.results.${number}.fieldPath`>>;
158
163
  }
159
164
  declare function disconnectStaffMemberFromUser$1(httpClient: HttpClient): DisconnectStaffMemberFromUserSignature;
160
165
  interface DisconnectStaffMemberFromUserSignature {
@@ -169,7 +174,9 @@ interface DisconnectStaffMemberFromUserSignature {
169
174
  * @param - ID of the staff member to disconnect from its Wix user.
170
175
  * @param - Options to disconnect the staff member from a Wix user.
171
176
  */
172
- (staffMemberId: string, options?: DisconnectStaffMemberFromUserOptions | undefined): Promise<DisconnectStaffMemberFromUserResponse>;
177
+ (staffMemberId: string, options?: DisconnectStaffMemberFromUserOptions): Promise<NonNullablePaths<DisconnectStaffMemberFromUserResponse, {
178
+ [P in StaffMemberNonNullablePaths]: `staffMember.${P}`;
179
+ }[StaffMemberNonNullablePaths]>>;
173
180
  }
174
181
  declare function assignWorkingHoursSchedule$1(httpClient: HttpClient): AssignWorkingHoursScheduleSignature;
175
182
  interface AssignWorkingHoursScheduleSignature {
@@ -210,7 +217,9 @@ interface AssignWorkingHoursScheduleSignature {
210
217
  * schedule ID for a business location.
211
218
  * @param - Options for setting the staff member's working hours schedule.
212
219
  */
213
- (staffMemberId: string, scheduleId: string, options?: AssignWorkingHoursScheduleOptions | undefined): Promise<AssignWorkingHoursScheduleResponse>;
220
+ (staffMemberId: string, scheduleId: string, options?: AssignWorkingHoursScheduleOptions): Promise<NonNullablePaths<AssignWorkingHoursScheduleResponse, {
221
+ [P in StaffMemberNonNullablePaths]: `staffMember.${P}`;
222
+ }[StaffMemberNonNullablePaths]>>;
214
223
  }
215
224
  declare function assignCustomSchedule$1(httpClient: HttpClient): AssignCustomScheduleSignature;
216
225
  interface AssignCustomScheduleSignature {
@@ -231,7 +240,9 @@ interface AssignCustomScheduleSignature {
231
240
  * to assign to the staff member.
232
241
  * @deprecated
233
242
  */
234
- (staffMemberId: string, scheduleId: string, options?: AssignCustomScheduleOptions | undefined): Promise<AssignCustomScheduleResponse>;
243
+ (staffMemberId: string, scheduleId: string, options?: AssignCustomScheduleOptions): Promise<NonNullablePaths<AssignCustomScheduleResponse, {
244
+ [P in StaffMemberNonNullablePaths]: `staffMember.${P}`;
245
+ }[StaffMemberNonNullablePaths]>>;
235
246
  }
236
247
  declare function bulkUpdateStaffMemberTags$1(httpClient: HttpClient): BulkUpdateStaffMemberTagsSignature;
237
248
  interface BulkUpdateStaffMemberTagsSignature {
@@ -245,7 +256,7 @@ interface BulkUpdateStaffMemberTagsSignature {
245
256
  * succeeds and the tag is assigned.
246
257
  * @param - IDs of staff members to update tags for.
247
258
  */
248
- (ids: string[], options?: BulkUpdateStaffMemberTagsOptions | undefined): Promise<BulkUpdateStaffMemberTagsResponse>;
259
+ (ids: string[], options?: BulkUpdateStaffMemberTagsOptions): Promise<NonNullablePaths<BulkUpdateStaffMemberTagsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
249
260
  }
250
261
  declare function bulkUpdateStaffMemberTagsByFilter$1(httpClient: HttpClient): BulkUpdateStaffMemberTagsByFilterSignature;
251
262
  interface BulkUpdateStaffMemberTagsByFilterSignature {
@@ -267,7 +278,7 @@ interface BulkUpdateStaffMemberTagsByFilterSignature {
267
278
  * ([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))
268
279
  * for a complete list of supported filters.
269
280
  */
270
- (filter: Record<string, any>, options?: BulkUpdateStaffMemberTagsByFilterOptions | undefined): Promise<BulkUpdateStaffMemberTagsByFilterResponse>;
281
+ (filter: Record<string, any>, options?: BulkUpdateStaffMemberTagsByFilterOptions): Promise<NonNullablePaths<BulkUpdateStaffMemberTagsByFilterResponse, `jobId`>>;
271
282
  }
272
283
  declare const onStaffMemberConnectedToUser$1: EventDefinition<StaffMemberConnectedToUserEnvelope, "wix.bookings.staff.v1.staff_member_connected_to_user">;
273
284
  declare const onStaffMemberCreated$1: EventDefinition<StaffMemberCreatedEnvelope, "wix.bookings.staff.v1.staff_member_created">;