@wix/auto_sdk_bookings_staff-members 1.0.66 → 1.0.68
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-DG3a38ei.d.ts → bookings-staff-v1-staff-member-staff-members.universal-ClAII2Rf.d.ts} +52 -89
- package/build/cjs/index.d.ts +20 -23
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +5 -5
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +30 -58
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{bookings-staff-v1-staff-member-staff-members.universal-DG3a38ei.d.mts → bookings-staff-v1-staff-member-staff-members.universal-ClAII2Rf.d.mts} +52 -89
- package/build/es/index.d.mts +20 -23
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +5 -5
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +30 -58
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/{bookings-staff-v1-staff-member-staff-members.universal-DG3a38ei.d.ts → bookings-staff-v1-staff-member-staff-members.universal-ClAII2Rf.d.ts} +52 -89
- package/build/internal/cjs/index.d.ts +20 -23
- 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.map +1 -1
- package/build/internal/cjs/meta.d.ts +30 -58
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/{bookings-staff-v1-staff-member-staff-members.universal-DG3a38ei.d.mts → bookings-staff-v1-staff-member-staff-members.universal-ClAII2Rf.d.mts} +52 -89
- package/build/internal/es/index.d.mts +20 -23
- 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.map +1 -1
- package/build/internal/es/meta.d.mts +30 -58
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aq as CreateStaffMemberRequest$1, ar as CreateStaffMemberResponse$1, as as GetStaffMemberRequest$1, at as GetStaffMemberResponse$1, au as GetDeletedStaffMemberRequest$1, b as GetDeletedStaffMemberResponse$1, av as ListDeletedStaffMembersRequest$1, c as ListDeletedStaffMembersResponse$1, az as RemoveStaffMemberFromTrashBinRequest$1, aA as RemoveStaffMemberFromTrashBinResponse$1, aD as UpdateStaffMemberRequest$1, aE as UpdateStaffMemberResponse$1, aF as DeleteStaffMemberRequest$1, aG as DeleteStaffMemberResponse$1, aH as QueryStaffMembersRequest$1, aL as QueryStaffMembersResponse$1, aO as CountStaffMembersRequest$1, g as CountStaffMembersResponse$1, aP as ConnectStaffMemberToUserRequest$1, i as ConnectStaffMemberToUserResponse$1, aQ as SearchStaffMembersRequest$1, l as SearchStaffMembersResponse$1, bd as DisconnectStaffMemberFromUserRequest$1, m as DisconnectStaffMemberFromUserResponse$1, be as AssignWorkingHoursScheduleRequest$1, n as AssignWorkingHoursScheduleResponse$1, bf as AssignCustomScheduleRequest$1, p as AssignCustomScheduleResponse$1, bg as BulkUpdateStaffMemberTagsRequest$1, q as BulkUpdateStaffMemberTagsResponse$1, bl as BulkUpdateStaffMemberTagsByFilterRequest$1, s as BulkUpdateStaffMemberTagsByFilterResponse$1 } from './bookings-staff-v1-staff-member-staff-members.universal-
|
|
1
|
+
import { aq as CreateStaffMemberRequest$1, ar as CreateStaffMemberResponse$1, as as GetStaffMemberRequest$1, at as GetStaffMemberResponse$1, au as GetDeletedStaffMemberRequest$1, b as GetDeletedStaffMemberResponse$1, av as ListDeletedStaffMembersRequest$1, c as ListDeletedStaffMembersResponse$1, az as RemoveStaffMemberFromTrashBinRequest$1, aA as RemoveStaffMemberFromTrashBinResponse$1, aD as UpdateStaffMemberRequest$1, aE as UpdateStaffMemberResponse$1, aF as DeleteStaffMemberRequest$1, aG as DeleteStaffMemberResponse$1, aH as QueryStaffMembersRequest$1, aL as QueryStaffMembersResponse$1, aO as CountStaffMembersRequest$1, g as CountStaffMembersResponse$1, aP as ConnectStaffMemberToUserRequest$1, i as ConnectStaffMemberToUserResponse$1, aQ as SearchStaffMembersRequest$1, l as SearchStaffMembersResponse$1, bd as DisconnectStaffMemberFromUserRequest$1, m as DisconnectStaffMemberFromUserResponse$1, be as AssignWorkingHoursScheduleRequest$1, n as AssignWorkingHoursScheduleResponse$1, bf as AssignCustomScheduleRequest$1, p as AssignCustomScheduleResponse$1, bg as BulkUpdateStaffMemberTagsRequest$1, q as BulkUpdateStaffMemberTagsResponse$1, bl as BulkUpdateStaffMemberTagsByFilterRequest$1, s as BulkUpdateStaffMemberTagsByFilterResponse$1 } from './bookings-staff-v1-staff-member-staff-members.universal-ClAII2Rf.js';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -39,16 +39,14 @@ interface StaffMember {
|
|
|
39
39
|
/** Staff media. */
|
|
40
40
|
mainMedia?: MediaItem;
|
|
41
41
|
/**
|
|
42
|
-
* Staff member's
|
|
43
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/introduction)),
|
|
42
|
+
* Staff member's [resource ID](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/introduction),
|
|
44
43
|
* identical to `resource.id`.
|
|
45
44
|
* @readonly
|
|
46
45
|
* @format GUID
|
|
47
46
|
*/
|
|
48
47
|
resourceId?: string | null;
|
|
49
48
|
/**
|
|
50
|
-
* Details about the
|
|
51
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/introduction))
|
|
49
|
+
* Details about the [resource object](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/resource-object)
|
|
52
50
|
* associated with the staff member. Available only if you specify `RESOURCE_DETAILS`
|
|
53
51
|
* in the `fields` array.
|
|
54
52
|
* @readonly
|
|
@@ -56,8 +54,7 @@ interface StaffMember {
|
|
|
56
54
|
resource?: Resource;
|
|
57
55
|
/**
|
|
58
56
|
* Identity of the Wix user associated with the staff member. Learn more about
|
|
59
|
-
*
|
|
60
|
-
* ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-identities) | [REST](https://dev.wix.com/docs/rest/articles/getting-started/about-identities)).
|
|
57
|
+
* [identities](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities).
|
|
61
58
|
* @readonly
|
|
62
59
|
*/
|
|
63
60
|
associatedWixIdentity?: AssociatedWixIdentity;
|
|
@@ -80,10 +77,7 @@ interface StaffMember {
|
|
|
80
77
|
updatedDate?: Date | null;
|
|
81
78
|
/** Extensions enabling users to save custom data related to the staff member. */
|
|
82
79
|
extendedFields?: ExtendedFields;
|
|
83
|
-
/**
|
|
84
|
-
* Tags allowing you to classify staff members. Learn more about *tags*
|
|
85
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/tags/tags/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/tags/introduction)).
|
|
86
|
-
*/
|
|
80
|
+
/** Tags allowing you to classify staff members. Learn more about [tags](https://dev.wix.com/docs/api-reference/business-management/tags/introduction). */
|
|
87
81
|
tags?: Tags;
|
|
88
82
|
}
|
|
89
83
|
interface MediaItem extends MediaItemMediaOneOf {
|
|
@@ -130,31 +124,26 @@ interface Image {
|
|
|
130
124
|
}
|
|
131
125
|
interface Resource {
|
|
132
126
|
/**
|
|
133
|
-
* ID of the
|
|
134
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/introduction))
|
|
127
|
+
* ID of the [resource](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/introduction)
|
|
135
128
|
* associated with the staff member.
|
|
136
129
|
* @format GUID
|
|
137
130
|
*/
|
|
138
131
|
id?: string | null;
|
|
139
132
|
/**
|
|
140
|
-
* Working hour
|
|
141
|
-
* ([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))
|
|
133
|
+
* Working hour [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction)
|
|
142
134
|
* of the staff member. By default, identical the opening hours of the
|
|
143
|
-
* business's
|
|
144
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/introduction)).
|
|
135
|
+
* business's [default location](https://dev.wix.com/docs/rest/business-management/locations/introduction).
|
|
145
136
|
* If the staff has custom working hours, identical to `eventsSchedule`.
|
|
146
137
|
* @maxSize 1
|
|
147
138
|
*/
|
|
148
139
|
workingHoursSchedules?: WorkingHoursSchedule[];
|
|
149
140
|
/**
|
|
150
|
-
* Event
|
|
151
|
-
* ([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))
|
|
141
|
+
* Event [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction)
|
|
152
142
|
* of the staff member.
|
|
153
143
|
*/
|
|
154
144
|
eventsSchedule?: EventSchedule;
|
|
155
145
|
/**
|
|
156
|
-
* Whether the staff member works according to business's
|
|
157
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/introduction))
|
|
146
|
+
* Whether the staff member works according to business's [default location](https://dev.wix.com/docs/rest/business-management/locations/introduction)
|
|
158
147
|
* opening hours.
|
|
159
148
|
*
|
|
160
149
|
* `false`: The staff has custom working hours.
|
|
@@ -162,22 +151,15 @@ interface Resource {
|
|
|
162
151
|
* Default: `true`
|
|
163
152
|
*/
|
|
164
153
|
usesDefaultWorkingHours?: boolean;
|
|
165
|
-
/**
|
|
166
|
-
* Revision number, which increments by 1 each time the resource is updated.
|
|
167
|
-
* To prevent conflicting changes,
|
|
168
|
-
* the current revision must be passed when updating the resource.
|
|
169
|
-
* @readonly
|
|
170
|
-
*/
|
|
154
|
+
/** Revision number, which increments by 1 each time the resource is updated. */
|
|
171
155
|
revision?: string | null;
|
|
172
156
|
}
|
|
173
157
|
interface WorkingHoursSchedule {
|
|
174
158
|
/**
|
|
175
|
-
* ID of the working hour
|
|
176
|
-
* ([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))
|
|
159
|
+
* ID of the working hour [schedule](https://dev.wix.com/docs/api-reference/business-management/calendar/schedules-v3/introduction)
|
|
177
160
|
* associated with the staff member. Currently, each staff member can't have more than a
|
|
178
161
|
* single working hour schedule. Learn more about
|
|
179
|
-
*
|
|
180
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/calendar/wix-bookings-integration) | [REST](https://dev.wix.com/docs/rest/business-management/calendar/wix-bookings-integration)).
|
|
162
|
+
* [how Wix Bookings uses the Calendar APIs](https://dev.wix.com/docs/api-reference/business-management/calendar/wix-bookings-integration).
|
|
181
163
|
* @format GUID
|
|
182
164
|
*/
|
|
183
165
|
id?: string | null;
|
|
@@ -189,19 +171,17 @@ interface WorkingHoursSchedule {
|
|
|
189
171
|
}
|
|
190
172
|
interface EventSchedule {
|
|
191
173
|
/**
|
|
192
|
-
* ID of the event
|
|
193
|
-
* ([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))
|
|
174
|
+
* ID of the event [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction)
|
|
194
175
|
* associated with the staff member. Learn more about
|
|
195
176
|
* _how Wix Bookings uses the Calendar APIs_
|
|
196
|
-
*
|
|
177
|
+
* [Wix Bookings](https://dev.wix.com/docs/rest/business-management/calendar/wix-bookings-integration).
|
|
197
178
|
* @format GUID
|
|
198
179
|
*/
|
|
199
180
|
id?: string | null;
|
|
200
181
|
}
|
|
201
182
|
interface LocationOptions {
|
|
202
183
|
/**
|
|
203
|
-
* Whether the resource is available in all
|
|
204
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/about-service-locations#backend-modules_bookings_services_location-types) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/about-service-locations#location-types)).
|
|
184
|
+
* Whether the resource is available in all [business locations](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/about-service-locations#location-types).
|
|
205
185
|
*
|
|
206
186
|
* - `true`: The resource is available in all business locations.
|
|
207
187
|
* - `false`: The resource is available only in specific locations.
|
|
@@ -214,8 +194,7 @@ interface LocationOptions {
|
|
|
214
194
|
}
|
|
215
195
|
interface SpecificLocation {
|
|
216
196
|
/**
|
|
217
|
-
* Whether the resource is available in
|
|
218
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/about-service-locations#backend-modules_bookings_services_location-types) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/about-service-locations#location-types)).
|
|
197
|
+
* Whether the resource is available in [business locations](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/about-service-locations#location-types).
|
|
219
198
|
*
|
|
220
199
|
* - `true`: The resource is available in business locations.
|
|
221
200
|
* - `false`: The resource isn't available in business locations.
|
|
@@ -234,8 +213,7 @@ interface SpecificLocation {
|
|
|
234
213
|
}
|
|
235
214
|
interface BusinessLocation {
|
|
236
215
|
/**
|
|
237
|
-
* ID of the business
|
|
238
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/introduction)).
|
|
216
|
+
* ID of the business [location](https://dev.wix.com/docs/rest/business-management/locations/introduction).
|
|
239
217
|
* @format GUID
|
|
240
218
|
*/
|
|
241
219
|
locationId?: string | null;
|
|
@@ -244,8 +222,7 @@ interface BusinessLocation {
|
|
|
244
222
|
interface AssociatedWixIdentity {
|
|
245
223
|
/**
|
|
246
224
|
* Information about the identity connected to the staff member. Available only
|
|
247
|
-
* if the staff member is connected to a Wix user. Learn more about
|
|
248
|
-
* ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-identities) | [REST](https://dev.wix.com/docs/rest/articles/getting-started/about-identities)).
|
|
225
|
+
* if the staff member is connected to a Wix user. Learn more about [identities](https://dev.wix.com/docs/rest/articles/getting-started/about-identities).
|
|
249
226
|
*/
|
|
250
227
|
identificationData?: CommonIdentificationData;
|
|
251
228
|
/**
|
|
@@ -667,9 +644,8 @@ interface DeleteStaffMemberResponse {
|
|
|
667
644
|
}
|
|
668
645
|
interface QueryStaffMembersRequest {
|
|
669
646
|
/**
|
|
670
|
-
* Information about filters, paging, and sorting. See the
|
|
671
|
-
*
|
|
672
|
-
* ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members/filtering-and-sorting))
|
|
647
|
+
* Information about filters, paging, and sorting. See the
|
|
648
|
+
* [supported filters article](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members/filtering-and-sorting)
|
|
673
649
|
* for all supported filters and sorting options.
|
|
674
650
|
*/
|
|
675
651
|
query?: CursorQuery;
|
|
@@ -727,8 +703,7 @@ interface QueryStaffMembersResponse {
|
|
|
727
703
|
interface QueryStaffMembersMultiLanguageRequest {
|
|
728
704
|
/**
|
|
729
705
|
* Information about filters, paging, and sorting. See the article about
|
|
730
|
-
* booking policy filters
|
|
731
|
-
* ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members/filtering-and-sorting))
|
|
706
|
+
* [booking policy filters](https://dev.wix.com/docs/api-reference/business-solutions/bookings/policies/booking-policies/supported-filters)
|
|
732
707
|
* for all supported filters and sorting options.
|
|
733
708
|
*/
|
|
734
709
|
query?: CursorQuery;
|
|
@@ -748,8 +723,8 @@ interface QueryStaffMembersMultiLanguageResponse {
|
|
|
748
723
|
}
|
|
749
724
|
interface CountStaffMembersRequest {
|
|
750
725
|
/**
|
|
751
|
-
* Filter to base the count upon. See the
|
|
752
|
-
*
|
|
726
|
+
* Filter to base the count upon. See the
|
|
727
|
+
* [supported filters article](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members/filtering-and-sorting)
|
|
753
728
|
* for a complete list of supported filters.
|
|
754
729
|
*/
|
|
755
730
|
filter?: Record<string, any> | null;
|
|
@@ -786,7 +761,7 @@ interface SearchStaffMembersRequest {
|
|
|
786
761
|
/**
|
|
787
762
|
* Search criteria including filter, sort, and paging options.
|
|
788
763
|
*
|
|
789
|
-
* See the supported filters article
|
|
764
|
+
* 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.
|
|
790
765
|
*/
|
|
791
766
|
search: CursorSearch;
|
|
792
767
|
/**
|
|
@@ -804,13 +779,13 @@ interface CursorSearch extends CursorSearchPagingMethodOneOf {
|
|
|
804
779
|
/**
|
|
805
780
|
* Filter object for narrowing search results. For example, to return only staff members with specific email domains: `"filter": {"email": {"$contains": "@company.com"}}`.
|
|
806
781
|
*
|
|
807
|
-
* Learn more about the filter format in the supported filters article
|
|
782
|
+
* Learn more about the filter format in the [supported filters article](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/filtering-and-sorting).
|
|
808
783
|
*/
|
|
809
784
|
filter?: Record<string, any> | null;
|
|
810
785
|
/**
|
|
811
786
|
* Array of sort objects specifying result order. For example, to sort by creation date in descending order: `"sort": [{"fieldName": "createdDate", "order": "DESC"}]`.
|
|
812
787
|
*
|
|
813
|
-
* Learn more about the sort format in the supported filters article
|
|
788
|
+
* Learn more about the sort format in the [supported filters article](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/filtering-and-sorting).
|
|
814
789
|
* @maxSize 10
|
|
815
790
|
*/
|
|
816
791
|
sort?: Sorting[];
|
|
@@ -1124,8 +1099,7 @@ interface AssignWorkingHoursScheduleRequest {
|
|
|
1124
1099
|
*/
|
|
1125
1100
|
staffMemberId: string;
|
|
1126
1101
|
/**
|
|
1127
|
-
* ID of the
|
|
1128
|
-
* ([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))
|
|
1102
|
+
* ID of the [schedule](https://dev.wix.com/docs/api-reference/business-management/calendar/schedules-v3/introduction)
|
|
1129
1103
|
* to assign to the staff member.
|
|
1130
1104
|
*
|
|
1131
1105
|
* Must be either the staff member's event schedule ID or the working hour
|
|
@@ -1150,8 +1124,7 @@ interface AssignCustomScheduleRequest {
|
|
|
1150
1124
|
*/
|
|
1151
1125
|
staffMemberId: string;
|
|
1152
1126
|
/**
|
|
1153
|
-
* ID of the
|
|
1154
|
-
* ([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))
|
|
1127
|
+
* ID of the [schedule](https://dev.wix.com/docs/api-reference/business-management/calendar/schedules-v3/introduction)
|
|
1155
1128
|
* to assign to the staff member.
|
|
1156
1129
|
* @format GUID
|
|
1157
1130
|
*/
|
|
@@ -1224,8 +1197,7 @@ interface BulkActionMetadata {
|
|
|
1224
1197
|
}
|
|
1225
1198
|
interface BulkUpdateStaffMemberTagsByFilterRequest {
|
|
1226
1199
|
/**
|
|
1227
|
-
* Filter to base the update upon. See the
|
|
1228
|
-
* ([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))
|
|
1200
|
+
* 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)
|
|
1229
1201
|
* for a complete list of supported filters.
|
|
1230
1202
|
*/
|
|
1231
1203
|
filter: Record<string, any> | null;
|