@wix/auto_sdk_bookings_services 1.0.233 → 1.0.235
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-services-v2-service-services.universal-tLAV9Npb.d.ts → bookings-services-v2-service-services.universal-BYcPQXaQ.d.ts} +41 -9
- package/build/cjs/index.d.ts +11 -11
- package/build/cjs/index.js +18 -6
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +16 -5
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +20 -2
- package/build/cjs/meta.js +7 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +223 -0
- package/build/cjs/schemas.js +514 -2
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/{bookings-services-v2-service-services.universal-tLAV9Npb.d.mts → bookings-services-v2-service-services.universal-BYcPQXaQ.d.mts} +41 -9
- package/build/es/index.d.mts +11 -11
- package/build/es/index.mjs +17 -6
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +15 -5
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +20 -2
- package/build/es/meta.mjs +6 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +223 -0
- package/build/es/schemas.mjs +514 -2
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/{bookings-services-v2-service-services.universal-PNFcMyNW.d.ts → bookings-services-v2-service-services.universal-OMm0Xdxb.d.ts} +57 -9
- package/build/internal/cjs/index.d.ts +11 -11
- package/build/internal/cjs/index.js +18 -6
- 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 +16 -5
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +20 -2
- package/build/internal/cjs/meta.js +7 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +223 -0
- package/build/internal/cjs/schemas.js +514 -2
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/{bookings-services-v2-service-services.universal-PNFcMyNW.d.mts → bookings-services-v2-service-services.universal-OMm0Xdxb.d.mts} +57 -9
- package/build/internal/es/index.d.mts +11 -11
- package/build/internal/es/index.mjs +17 -6
- 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 +15 -5
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +20 -2
- package/build/internal/es/meta.mjs +6 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +223 -0
- package/build/internal/es/schemas.mjs +514 -2
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -502,6 +502,32 @@ var CreateServiceRequest = z.object({
|
|
|
502
502
|
"The service's [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction),\nwhich can be used to manage the service's [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)."
|
|
503
503
|
).optional(),
|
|
504
504
|
staffMemberIds: z.array(z.string()).max(220).optional(),
|
|
505
|
+
staffMemberDetails: z.object({
|
|
506
|
+
staffMembers: z.array(
|
|
507
|
+
z.object({
|
|
508
|
+
staffMemberId: z.string().describe(
|
|
509
|
+
"ID of the [resource](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/introduction) associated with the staff member providing the service.\nDespite the field name, this is the resource ID, not the staff member ID.\nThis value matches the staff member's `resourceId` from the [Staff Members API](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/introduction)\nand corresponds to the IDs in the service's `staffMemberIds` field."
|
|
510
|
+
).regex(
|
|
511
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
512
|
+
"Must be a valid GUID"
|
|
513
|
+
).optional(),
|
|
514
|
+
name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
|
|
515
|
+
mainMedia: z.intersection(
|
|
516
|
+
z.object({}),
|
|
517
|
+
z.xor([
|
|
518
|
+
z.object({ image: z.never().optional() }),
|
|
519
|
+
z.object({
|
|
520
|
+
image: z.string().describe(
|
|
521
|
+
"Details of the image associated with the staff, such as URL and size."
|
|
522
|
+
)
|
|
523
|
+
})
|
|
524
|
+
])
|
|
525
|
+
).describe("Main media associated with the service.").optional()
|
|
526
|
+
})
|
|
527
|
+
).max(220).optional()
|
|
528
|
+
}).describe(
|
|
529
|
+
"Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
|
|
530
|
+
).optional(),
|
|
505
531
|
serviceResources: z.array(
|
|
506
532
|
z.object({
|
|
507
533
|
resourceType: z.object({
|
|
@@ -1145,6 +1171,32 @@ var CreateServiceResponse = z.object({
|
|
|
1145
1171
|
"The service's [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction),\nwhich can be used to manage the service's [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)."
|
|
1146
1172
|
).optional(),
|
|
1147
1173
|
staffMemberIds: z.array(z.string()).max(220).optional(),
|
|
1174
|
+
staffMemberDetails: z.object({
|
|
1175
|
+
staffMembers: z.array(
|
|
1176
|
+
z.object({
|
|
1177
|
+
staffMemberId: z.string().describe(
|
|
1178
|
+
"ID of the [resource](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/introduction) associated with the staff member providing the service.\nDespite the field name, this is the resource ID, not the staff member ID.\nThis value matches the staff member's `resourceId` from the [Staff Members API](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/introduction)\nand corresponds to the IDs in the service's `staffMemberIds` field."
|
|
1179
|
+
).regex(
|
|
1180
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1181
|
+
"Must be a valid GUID"
|
|
1182
|
+
).optional(),
|
|
1183
|
+
name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
|
|
1184
|
+
mainMedia: z.intersection(
|
|
1185
|
+
z.object({}),
|
|
1186
|
+
z.xor([
|
|
1187
|
+
z.object({ image: z.never().optional() }),
|
|
1188
|
+
z.object({
|
|
1189
|
+
image: z.string().describe(
|
|
1190
|
+
"Details of the image associated with the staff, such as URL and size."
|
|
1191
|
+
)
|
|
1192
|
+
})
|
|
1193
|
+
])
|
|
1194
|
+
).describe("Main media associated with the service.").optional()
|
|
1195
|
+
})
|
|
1196
|
+
).max(220).optional()
|
|
1197
|
+
}).describe(
|
|
1198
|
+
"Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
|
|
1199
|
+
).optional(),
|
|
1148
1200
|
serviceResources: z.array(
|
|
1149
1201
|
z.object({
|
|
1150
1202
|
resourceType: z.object({
|
|
@@ -1787,6 +1839,32 @@ var BulkCreateServicesRequest = z.object({
|
|
|
1787
1839
|
"The service's [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction),\nwhich can be used to manage the service's [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)."
|
|
1788
1840
|
).optional(),
|
|
1789
1841
|
staffMemberIds: z.array(z.string()).max(220).optional(),
|
|
1842
|
+
staffMemberDetails: z.object({
|
|
1843
|
+
staffMembers: z.array(
|
|
1844
|
+
z.object({
|
|
1845
|
+
staffMemberId: z.string().describe(
|
|
1846
|
+
"ID of the [resource](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/introduction) associated with the staff member providing the service.\nDespite the field name, this is the resource ID, not the staff member ID.\nThis value matches the staff member's `resourceId` from the [Staff Members API](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/introduction)\nand corresponds to the IDs in the service's `staffMemberIds` field."
|
|
1847
|
+
).regex(
|
|
1848
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1849
|
+
"Must be a valid GUID"
|
|
1850
|
+
).optional(),
|
|
1851
|
+
name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
|
|
1852
|
+
mainMedia: z.intersection(
|
|
1853
|
+
z.object({}),
|
|
1854
|
+
z.xor([
|
|
1855
|
+
z.object({ image: z.never().optional() }),
|
|
1856
|
+
z.object({
|
|
1857
|
+
image: z.string().describe(
|
|
1858
|
+
"Details of the image associated with the staff, such as URL and size."
|
|
1859
|
+
)
|
|
1860
|
+
})
|
|
1861
|
+
])
|
|
1862
|
+
).describe("Main media associated with the service.").optional()
|
|
1863
|
+
})
|
|
1864
|
+
).max(220).optional()
|
|
1865
|
+
}).describe(
|
|
1866
|
+
"Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
|
|
1867
|
+
).optional(),
|
|
1790
1868
|
serviceResources: z.array(
|
|
1791
1869
|
z.object({
|
|
1792
1870
|
resourceType: z.object({
|
|
@@ -2470,6 +2548,32 @@ var BulkCreateServicesResponse = z.object({
|
|
|
2470
2548
|
"The service's [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction),\nwhich can be used to manage the service's [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)."
|
|
2471
2549
|
).optional(),
|
|
2472
2550
|
staffMemberIds: z.array(z.string()).max(220).optional(),
|
|
2551
|
+
staffMemberDetails: z.object({
|
|
2552
|
+
staffMembers: z.array(
|
|
2553
|
+
z.object({
|
|
2554
|
+
staffMemberId: z.string().describe(
|
|
2555
|
+
"ID of the [resource](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/introduction) associated with the staff member providing the service.\nDespite the field name, this is the resource ID, not the staff member ID.\nThis value matches the staff member's `resourceId` from the [Staff Members API](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/introduction)\nand corresponds to the IDs in the service's `staffMemberIds` field."
|
|
2556
|
+
).regex(
|
|
2557
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
2558
|
+
"Must be a valid GUID"
|
|
2559
|
+
).optional(),
|
|
2560
|
+
name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
|
|
2561
|
+
mainMedia: z.intersection(
|
|
2562
|
+
z.object({}),
|
|
2563
|
+
z.xor([
|
|
2564
|
+
z.object({ image: z.never().optional() }),
|
|
2565
|
+
z.object({
|
|
2566
|
+
image: z.string().describe(
|
|
2567
|
+
"Details of the image associated with the staff, such as URL and size."
|
|
2568
|
+
)
|
|
2569
|
+
})
|
|
2570
|
+
])
|
|
2571
|
+
).describe("Main media associated with the service.").optional()
|
|
2572
|
+
})
|
|
2573
|
+
).max(220).optional()
|
|
2574
|
+
}).describe(
|
|
2575
|
+
"Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
|
|
2576
|
+
).optional(),
|
|
2473
2577
|
serviceResources: z.array(
|
|
2474
2578
|
z.object({
|
|
2475
2579
|
resourceType: z.object({
|
|
@@ -2623,7 +2727,16 @@ var GetServiceRequest = z.object({
|
|
|
2623
2727
|
serviceId: z.string().describe("ID of the service to retrieve.").regex(
|
|
2624
2728
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
2625
2729
|
"Must be a valid GUID"
|
|
2626
|
-
)
|
|
2730
|
+
),
|
|
2731
|
+
options: z.object({
|
|
2732
|
+
conditionalFields: z.array(
|
|
2733
|
+
z.enum([
|
|
2734
|
+
"STAFF_MEMBER_DETAILS",
|
|
2735
|
+
"RESOURCE_TYPE_DETAILS",
|
|
2736
|
+
"DISCOUNT_INFO_DETAILS"
|
|
2737
|
+
])
|
|
2738
|
+
).max(5).optional()
|
|
2739
|
+
}).optional()
|
|
2627
2740
|
});
|
|
2628
2741
|
var GetServiceResponse = z.object({
|
|
2629
2742
|
_id: z.string().describe("Service ID.").regex(
|
|
@@ -3128,6 +3241,32 @@ var GetServiceResponse = z.object({
|
|
|
3128
3241
|
"The service's [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction),\nwhich can be used to manage the service's [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)."
|
|
3129
3242
|
).optional(),
|
|
3130
3243
|
staffMemberIds: z.array(z.string()).max(220).optional(),
|
|
3244
|
+
staffMemberDetails: z.object({
|
|
3245
|
+
staffMembers: z.array(
|
|
3246
|
+
z.object({
|
|
3247
|
+
staffMemberId: z.string().describe(
|
|
3248
|
+
"ID of the [resource](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/introduction) associated with the staff member providing the service.\nDespite the field name, this is the resource ID, not the staff member ID.\nThis value matches the staff member's `resourceId` from the [Staff Members API](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/introduction)\nand corresponds to the IDs in the service's `staffMemberIds` field."
|
|
3249
|
+
).regex(
|
|
3250
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
3251
|
+
"Must be a valid GUID"
|
|
3252
|
+
).optional(),
|
|
3253
|
+
name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
|
|
3254
|
+
mainMedia: z.intersection(
|
|
3255
|
+
z.object({}),
|
|
3256
|
+
z.xor([
|
|
3257
|
+
z.object({ image: z.never().optional() }),
|
|
3258
|
+
z.object({
|
|
3259
|
+
image: z.string().describe(
|
|
3260
|
+
"Details of the image associated with the staff, such as URL and size."
|
|
3261
|
+
)
|
|
3262
|
+
})
|
|
3263
|
+
])
|
|
3264
|
+
).describe("Main media associated with the service.").optional()
|
|
3265
|
+
})
|
|
3266
|
+
).max(220).optional()
|
|
3267
|
+
}).describe(
|
|
3268
|
+
"Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
|
|
3269
|
+
).optional(),
|
|
3131
3270
|
serviceResources: z.array(
|
|
3132
3271
|
z.object({
|
|
3133
3272
|
resourceType: z.object({
|
|
@@ -3769,6 +3908,32 @@ var UpdateServiceRequest = z.object({
|
|
|
3769
3908
|
"The service's [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction),\nwhich can be used to manage the service's [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)."
|
|
3770
3909
|
).optional(),
|
|
3771
3910
|
staffMemberIds: z.array(z.string()).max(220).optional(),
|
|
3911
|
+
staffMemberDetails: z.object({
|
|
3912
|
+
staffMembers: z.array(
|
|
3913
|
+
z.object({
|
|
3914
|
+
staffMemberId: z.string().describe(
|
|
3915
|
+
"ID of the [resource](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/introduction) associated with the staff member providing the service.\nDespite the field name, this is the resource ID, not the staff member ID.\nThis value matches the staff member's `resourceId` from the [Staff Members API](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/introduction)\nand corresponds to the IDs in the service's `staffMemberIds` field."
|
|
3916
|
+
).regex(
|
|
3917
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
3918
|
+
"Must be a valid GUID"
|
|
3919
|
+
).optional(),
|
|
3920
|
+
name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
|
|
3921
|
+
mainMedia: z.intersection(
|
|
3922
|
+
z.object({}),
|
|
3923
|
+
z.xor([
|
|
3924
|
+
z.object({ image: z.never().optional() }),
|
|
3925
|
+
z.object({
|
|
3926
|
+
image: z.string().describe(
|
|
3927
|
+
"Details of the image associated with the staff, such as URL and size."
|
|
3928
|
+
)
|
|
3929
|
+
})
|
|
3930
|
+
])
|
|
3931
|
+
).describe("Main media associated with the service.").optional()
|
|
3932
|
+
})
|
|
3933
|
+
).max(220).optional()
|
|
3934
|
+
}).describe(
|
|
3935
|
+
"Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
|
|
3936
|
+
).optional(),
|
|
3772
3937
|
serviceResources: z.array(
|
|
3773
3938
|
z.object({
|
|
3774
3939
|
resourceType: z.object({
|
|
@@ -4412,6 +4577,32 @@ var UpdateServiceResponse = z.object({
|
|
|
4412
4577
|
"The service's [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction),\nwhich can be used to manage the service's [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)."
|
|
4413
4578
|
).optional(),
|
|
4414
4579
|
staffMemberIds: z.array(z.string()).max(220).optional(),
|
|
4580
|
+
staffMemberDetails: z.object({
|
|
4581
|
+
staffMembers: z.array(
|
|
4582
|
+
z.object({
|
|
4583
|
+
staffMemberId: z.string().describe(
|
|
4584
|
+
"ID of the [resource](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/introduction) associated with the staff member providing the service.\nDespite the field name, this is the resource ID, not the staff member ID.\nThis value matches the staff member's `resourceId` from the [Staff Members API](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/introduction)\nand corresponds to the IDs in the service's `staffMemberIds` field."
|
|
4585
|
+
).regex(
|
|
4586
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
4587
|
+
"Must be a valid GUID"
|
|
4588
|
+
).optional(),
|
|
4589
|
+
name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
|
|
4590
|
+
mainMedia: z.intersection(
|
|
4591
|
+
z.object({}),
|
|
4592
|
+
z.xor([
|
|
4593
|
+
z.object({ image: z.never().optional() }),
|
|
4594
|
+
z.object({
|
|
4595
|
+
image: z.string().describe(
|
|
4596
|
+
"Details of the image associated with the staff, such as URL and size."
|
|
4597
|
+
)
|
|
4598
|
+
})
|
|
4599
|
+
])
|
|
4600
|
+
).describe("Main media associated with the service.").optional()
|
|
4601
|
+
})
|
|
4602
|
+
).max(220).optional()
|
|
4603
|
+
}).describe(
|
|
4604
|
+
"Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
|
|
4605
|
+
).optional(),
|
|
4415
4606
|
serviceResources: z.array(
|
|
4416
4607
|
z.object({
|
|
4417
4608
|
resourceType: z.object({
|
|
@@ -5068,6 +5259,32 @@ var BulkUpdateServicesRequest = z.object({
|
|
|
5068
5259
|
"The service's [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction),\nwhich can be used to manage the service's [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)."
|
|
5069
5260
|
).optional(),
|
|
5070
5261
|
staffMemberIds: z.array(z.string()).max(220).optional(),
|
|
5262
|
+
staffMemberDetails: z.object({
|
|
5263
|
+
staffMembers: z.array(
|
|
5264
|
+
z.object({
|
|
5265
|
+
staffMemberId: z.string().describe(
|
|
5266
|
+
"ID of the [resource](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/introduction) associated with the staff member providing the service.\nDespite the field name, this is the resource ID, not the staff member ID.\nThis value matches the staff member's `resourceId` from the [Staff Members API](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/introduction)\nand corresponds to the IDs in the service's `staffMemberIds` field."
|
|
5267
|
+
).regex(
|
|
5268
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
5269
|
+
"Must be a valid GUID"
|
|
5270
|
+
).optional(),
|
|
5271
|
+
name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
|
|
5272
|
+
mainMedia: z.intersection(
|
|
5273
|
+
z.object({}),
|
|
5274
|
+
z.xor([
|
|
5275
|
+
z.object({ image: z.never().optional() }),
|
|
5276
|
+
z.object({
|
|
5277
|
+
image: z.string().describe(
|
|
5278
|
+
"Details of the image associated with the staff, such as URL and size."
|
|
5279
|
+
)
|
|
5280
|
+
})
|
|
5281
|
+
])
|
|
5282
|
+
).describe("Main media associated with the service.").optional()
|
|
5283
|
+
})
|
|
5284
|
+
).max(220).optional()
|
|
5285
|
+
}).describe(
|
|
5286
|
+
"Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
|
|
5287
|
+
).optional(),
|
|
5071
5288
|
serviceResources: z.array(
|
|
5072
5289
|
z.object({
|
|
5073
5290
|
resourceType: z.object({
|
|
@@ -5754,6 +5971,32 @@ var BulkUpdateServicesResponse = z.object({
|
|
|
5754
5971
|
"The service's [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction),\nwhich can be used to manage the service's [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)."
|
|
5755
5972
|
).optional(),
|
|
5756
5973
|
staffMemberIds: z.array(z.string()).max(220).optional(),
|
|
5974
|
+
staffMemberDetails: z.object({
|
|
5975
|
+
staffMembers: z.array(
|
|
5976
|
+
z.object({
|
|
5977
|
+
staffMemberId: z.string().describe(
|
|
5978
|
+
"ID of the [resource](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/introduction) associated with the staff member providing the service.\nDespite the field name, this is the resource ID, not the staff member ID.\nThis value matches the staff member's `resourceId` from the [Staff Members API](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/introduction)\nand corresponds to the IDs in the service's `staffMemberIds` field."
|
|
5979
|
+
).regex(
|
|
5980
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
5981
|
+
"Must be a valid GUID"
|
|
5982
|
+
).optional(),
|
|
5983
|
+
name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
|
|
5984
|
+
mainMedia: z.intersection(
|
|
5985
|
+
z.object({}),
|
|
5986
|
+
z.xor([
|
|
5987
|
+
z.object({ image: z.never().optional() }),
|
|
5988
|
+
z.object({
|
|
5989
|
+
image: z.string().describe(
|
|
5990
|
+
"Details of the image associated with the staff, such as URL and size."
|
|
5991
|
+
)
|
|
5992
|
+
})
|
|
5993
|
+
])
|
|
5994
|
+
).describe("Main media associated with the service.").optional()
|
|
5995
|
+
})
|
|
5996
|
+
).max(220).optional()
|
|
5997
|
+
}).describe(
|
|
5998
|
+
"Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
|
|
5999
|
+
).optional(),
|
|
5757
6000
|
serviceResources: z.array(
|
|
5758
6001
|
z.object({
|
|
5759
6002
|
resourceType: z.object({
|
|
@@ -6411,6 +6654,32 @@ var BulkUpdateServicesByFilterRequest = z.object({
|
|
|
6411
6654
|
"The service's [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction),\nwhich can be used to manage the service's [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)."
|
|
6412
6655
|
).optional(),
|
|
6413
6656
|
staffMemberIds: z.array(z.string()).max(220).optional(),
|
|
6657
|
+
staffMemberDetails: z.object({
|
|
6658
|
+
staffMembers: z.array(
|
|
6659
|
+
z.object({
|
|
6660
|
+
staffMemberId: z.string().describe(
|
|
6661
|
+
"ID of the [resource](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/introduction) associated with the staff member providing the service.\nDespite the field name, this is the resource ID, not the staff member ID.\nThis value matches the staff member's `resourceId` from the [Staff Members API](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/introduction)\nand corresponds to the IDs in the service's `staffMemberIds` field."
|
|
6662
|
+
).regex(
|
|
6663
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
6664
|
+
"Must be a valid GUID"
|
|
6665
|
+
).optional(),
|
|
6666
|
+
name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
|
|
6667
|
+
mainMedia: z.intersection(
|
|
6668
|
+
z.object({}),
|
|
6669
|
+
z.xor([
|
|
6670
|
+
z.object({ image: z.never().optional() }),
|
|
6671
|
+
z.object({
|
|
6672
|
+
image: z.string().describe(
|
|
6673
|
+
"Details of the image associated with the staff, such as URL and size."
|
|
6674
|
+
)
|
|
6675
|
+
})
|
|
6676
|
+
])
|
|
6677
|
+
).describe("Main media associated with the service.").optional()
|
|
6678
|
+
})
|
|
6679
|
+
).max(220).optional()
|
|
6680
|
+
}).describe(
|
|
6681
|
+
"Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
|
|
6682
|
+
).optional(),
|
|
6414
6683
|
serviceResources: z.array(
|
|
6415
6684
|
z.object({
|
|
6416
6685
|
resourceType: z.object({
|
|
@@ -7141,6 +7410,32 @@ var BulkDeleteServicesResponse = z.object({
|
|
|
7141
7410
|
"The service's [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction),\nwhich can be used to manage the service's [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)."
|
|
7142
7411
|
).optional(),
|
|
7143
7412
|
staffMemberIds: z.array(z.string()).max(220).optional(),
|
|
7413
|
+
staffMemberDetails: z.object({
|
|
7414
|
+
staffMembers: z.array(
|
|
7415
|
+
z.object({
|
|
7416
|
+
staffMemberId: z.string().describe(
|
|
7417
|
+
"ID of the [resource](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/introduction) associated with the staff member providing the service.\nDespite the field name, this is the resource ID, not the staff member ID.\nThis value matches the staff member's `resourceId` from the [Staff Members API](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/introduction)\nand corresponds to the IDs in the service's `staffMemberIds` field."
|
|
7418
|
+
).regex(
|
|
7419
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
7420
|
+
"Must be a valid GUID"
|
|
7421
|
+
).optional(),
|
|
7422
|
+
name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
|
|
7423
|
+
mainMedia: z.intersection(
|
|
7424
|
+
z.object({}),
|
|
7425
|
+
z.xor([
|
|
7426
|
+
z.object({ image: z.never().optional() }),
|
|
7427
|
+
z.object({
|
|
7428
|
+
image: z.string().describe(
|
|
7429
|
+
"Details of the image associated with the staff, such as URL and size."
|
|
7430
|
+
)
|
|
7431
|
+
})
|
|
7432
|
+
])
|
|
7433
|
+
).describe("Main media associated with the service.").optional()
|
|
7434
|
+
})
|
|
7435
|
+
).max(220).optional()
|
|
7436
|
+
}).describe(
|
|
7437
|
+
"Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
|
|
7438
|
+
).optional(),
|
|
7144
7439
|
serviceResources: z.array(
|
|
7145
7440
|
z.object({
|
|
7146
7441
|
resourceType: z.object({
|
|
@@ -7630,7 +7925,16 @@ var QueryServicesRequest = z.object({
|
|
|
7630
7925
|
order: z.enum(["ASC", "DESC"]).optional()
|
|
7631
7926
|
})
|
|
7632
7927
|
).optional()
|
|
7633
|
-
}).catchall(z.any()).describe("WQL expression.")
|
|
7928
|
+
}).catchall(z.any()).describe("WQL expression."),
|
|
7929
|
+
options: z.object({
|
|
7930
|
+
conditionalFields: z.array(
|
|
7931
|
+
z.enum([
|
|
7932
|
+
"STAFF_MEMBER_DETAILS",
|
|
7933
|
+
"RESOURCE_TYPE_DETAILS",
|
|
7934
|
+
"DISCOUNT_INFO_DETAILS"
|
|
7935
|
+
])
|
|
7936
|
+
).max(5).optional()
|
|
7937
|
+
}).optional()
|
|
7634
7938
|
});
|
|
7635
7939
|
var QueryServicesResponse = z.object({
|
|
7636
7940
|
services: z.array(
|
|
@@ -8145,6 +8449,32 @@ var QueryServicesResponse = z.object({
|
|
|
8145
8449
|
"The service's [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction),\nwhich can be used to manage the service's [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)."
|
|
8146
8450
|
).optional(),
|
|
8147
8451
|
staffMemberIds: z.array(z.string()).max(220).optional(),
|
|
8452
|
+
staffMemberDetails: z.object({
|
|
8453
|
+
staffMembers: z.array(
|
|
8454
|
+
z.object({
|
|
8455
|
+
staffMemberId: z.string().describe(
|
|
8456
|
+
"ID of the [resource](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/introduction) associated with the staff member providing the service.\nDespite the field name, this is the resource ID, not the staff member ID.\nThis value matches the staff member's `resourceId` from the [Staff Members API](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/introduction)\nand corresponds to the IDs in the service's `staffMemberIds` field."
|
|
8457
|
+
).regex(
|
|
8458
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
8459
|
+
"Must be a valid GUID"
|
|
8460
|
+
).optional(),
|
|
8461
|
+
name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
|
|
8462
|
+
mainMedia: z.intersection(
|
|
8463
|
+
z.object({}),
|
|
8464
|
+
z.xor([
|
|
8465
|
+
z.object({ image: z.never().optional() }),
|
|
8466
|
+
z.object({
|
|
8467
|
+
image: z.string().describe(
|
|
8468
|
+
"Details of the image associated with the staff, such as URL and size."
|
|
8469
|
+
)
|
|
8470
|
+
})
|
|
8471
|
+
])
|
|
8472
|
+
).describe("Main media associated with the service.").optional()
|
|
8473
|
+
})
|
|
8474
|
+
).max(220).optional()
|
|
8475
|
+
}).describe(
|
|
8476
|
+
"Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
|
|
8477
|
+
).optional(),
|
|
8148
8478
|
serviceResources: z.array(
|
|
8149
8479
|
z.object({
|
|
8150
8480
|
resourceType: z.object({
|
|
@@ -9197,6 +9527,32 @@ var SearchServicesResponse = z.object({
|
|
|
9197
9527
|
"The service's [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction),\nwhich can be used to manage the service's [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)."
|
|
9198
9528
|
).optional(),
|
|
9199
9529
|
staffMemberIds: z.array(z.string()).max(220).optional(),
|
|
9530
|
+
staffMemberDetails: z.object({
|
|
9531
|
+
staffMembers: z.array(
|
|
9532
|
+
z.object({
|
|
9533
|
+
staffMemberId: z.string().describe(
|
|
9534
|
+
"ID of the [resource](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/introduction) associated with the staff member providing the service.\nDespite the field name, this is the resource ID, not the staff member ID.\nThis value matches the staff member's `resourceId` from the [Staff Members API](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/introduction)\nand corresponds to the IDs in the service's `staffMemberIds` field."
|
|
9535
|
+
).regex(
|
|
9536
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
9537
|
+
"Must be a valid GUID"
|
|
9538
|
+
).optional(),
|
|
9539
|
+
name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
|
|
9540
|
+
mainMedia: z.intersection(
|
|
9541
|
+
z.object({}),
|
|
9542
|
+
z.xor([
|
|
9543
|
+
z.object({ image: z.never().optional() }),
|
|
9544
|
+
z.object({
|
|
9545
|
+
image: z.string().describe(
|
|
9546
|
+
"Details of the image associated with the staff, such as URL and size."
|
|
9547
|
+
)
|
|
9548
|
+
})
|
|
9549
|
+
])
|
|
9550
|
+
).describe("Main media associated with the service.").optional()
|
|
9551
|
+
})
|
|
9552
|
+
).max(220).optional()
|
|
9553
|
+
}).describe(
|
|
9554
|
+
"Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
|
|
9555
|
+
).optional(),
|
|
9200
9556
|
serviceResources: z.array(
|
|
9201
9557
|
z.object({
|
|
9202
9558
|
resourceType: z.object({
|
|
@@ -10341,6 +10697,32 @@ var QueryPoliciesResponse = z.object({
|
|
|
10341
10697
|
"The service's [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction),\nwhich can be used to manage the service's [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)."
|
|
10342
10698
|
).optional(),
|
|
10343
10699
|
staffMemberIds: z.array(z.string()).max(220).optional(),
|
|
10700
|
+
staffMemberDetails: z.object({
|
|
10701
|
+
staffMembers: z.array(
|
|
10702
|
+
z.object({
|
|
10703
|
+
staffMemberId: z.string().describe(
|
|
10704
|
+
"ID of the [resource](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/introduction) associated with the staff member providing the service.\nDespite the field name, this is the resource ID, not the staff member ID.\nThis value matches the staff member's `resourceId` from the [Staff Members API](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/introduction)\nand corresponds to the IDs in the service's `staffMemberIds` field."
|
|
10705
|
+
).regex(
|
|
10706
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
10707
|
+
"Must be a valid GUID"
|
|
10708
|
+
).optional(),
|
|
10709
|
+
name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
|
|
10710
|
+
mainMedia: z.intersection(
|
|
10711
|
+
z.object({}),
|
|
10712
|
+
z.xor([
|
|
10713
|
+
z.object({ image: z.never().optional() }),
|
|
10714
|
+
z.object({
|
|
10715
|
+
image: z.string().describe(
|
|
10716
|
+
"Details of the image associated with the staff, such as URL and size."
|
|
10717
|
+
)
|
|
10718
|
+
})
|
|
10719
|
+
])
|
|
10720
|
+
).describe("Main media associated with the service.").optional()
|
|
10721
|
+
})
|
|
10722
|
+
).max(220).optional()
|
|
10723
|
+
}).describe(
|
|
10724
|
+
"Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
|
|
10725
|
+
).optional(),
|
|
10344
10726
|
serviceResources: z.array(
|
|
10345
10727
|
z.object({
|
|
10346
10728
|
resourceType: z.object({
|
|
@@ -11405,6 +11787,32 @@ var SetServiceLocationsResponse = z.object({
|
|
|
11405
11787
|
"The service's [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction),\nwhich can be used to manage the service's [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)."
|
|
11406
11788
|
).optional(),
|
|
11407
11789
|
staffMemberIds: z.array(z.string()).max(220).optional(),
|
|
11790
|
+
staffMemberDetails: z.object({
|
|
11791
|
+
staffMembers: z.array(
|
|
11792
|
+
z.object({
|
|
11793
|
+
staffMemberId: z.string().describe(
|
|
11794
|
+
"ID of the [resource](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/introduction) associated with the staff member providing the service.\nDespite the field name, this is the resource ID, not the staff member ID.\nThis value matches the staff member's `resourceId` from the [Staff Members API](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/introduction)\nand corresponds to the IDs in the service's `staffMemberIds` field."
|
|
11795
|
+
).regex(
|
|
11796
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
11797
|
+
"Must be a valid GUID"
|
|
11798
|
+
).optional(),
|
|
11799
|
+
name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
|
|
11800
|
+
mainMedia: z.intersection(
|
|
11801
|
+
z.object({}),
|
|
11802
|
+
z.xor([
|
|
11803
|
+
z.object({ image: z.never().optional() }),
|
|
11804
|
+
z.object({
|
|
11805
|
+
image: z.string().describe(
|
|
11806
|
+
"Details of the image associated with the staff, such as URL and size."
|
|
11807
|
+
)
|
|
11808
|
+
})
|
|
11809
|
+
])
|
|
11810
|
+
).describe("Main media associated with the service.").optional()
|
|
11811
|
+
})
|
|
11812
|
+
).max(220).optional()
|
|
11813
|
+
}).describe(
|
|
11814
|
+
"Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
|
|
11815
|
+
).optional(),
|
|
11408
11816
|
serviceResources: z.array(
|
|
11409
11817
|
z.object({
|
|
11410
11818
|
resourceType: z.object({
|
|
@@ -12060,6 +12468,32 @@ var EnablePricingPlansForServiceResponse = z.object({
|
|
|
12060
12468
|
"The service's [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction),\nwhich can be used to manage the service's [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)."
|
|
12061
12469
|
).optional(),
|
|
12062
12470
|
staffMemberIds: z.array(z.string()).max(220).optional(),
|
|
12471
|
+
staffMemberDetails: z.object({
|
|
12472
|
+
staffMembers: z.array(
|
|
12473
|
+
z.object({
|
|
12474
|
+
staffMemberId: z.string().describe(
|
|
12475
|
+
"ID of the [resource](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/introduction) associated with the staff member providing the service.\nDespite the field name, this is the resource ID, not the staff member ID.\nThis value matches the staff member's `resourceId` from the [Staff Members API](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/introduction)\nand corresponds to the IDs in the service's `staffMemberIds` field."
|
|
12476
|
+
).regex(
|
|
12477
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
12478
|
+
"Must be a valid GUID"
|
|
12479
|
+
).optional(),
|
|
12480
|
+
name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
|
|
12481
|
+
mainMedia: z.intersection(
|
|
12482
|
+
z.object({}),
|
|
12483
|
+
z.xor([
|
|
12484
|
+
z.object({ image: z.never().optional() }),
|
|
12485
|
+
z.object({
|
|
12486
|
+
image: z.string().describe(
|
|
12487
|
+
"Details of the image associated with the staff, such as URL and size."
|
|
12488
|
+
)
|
|
12489
|
+
})
|
|
12490
|
+
])
|
|
12491
|
+
).describe("Main media associated with the service.").optional()
|
|
12492
|
+
})
|
|
12493
|
+
).max(220).optional()
|
|
12494
|
+
}).describe(
|
|
12495
|
+
"Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
|
|
12496
|
+
).optional(),
|
|
12063
12497
|
serviceResources: z.array(
|
|
12064
12498
|
z.object({
|
|
12065
12499
|
resourceType: z.object({
|
|
@@ -12715,6 +13149,32 @@ var DisablePricingPlansForServiceResponse = z.object({
|
|
|
12715
13149
|
"The service's [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction),\nwhich can be used to manage the service's [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)."
|
|
12716
13150
|
).optional(),
|
|
12717
13151
|
staffMemberIds: z.array(z.string()).max(220).optional(),
|
|
13152
|
+
staffMemberDetails: z.object({
|
|
13153
|
+
staffMembers: z.array(
|
|
13154
|
+
z.object({
|
|
13155
|
+
staffMemberId: z.string().describe(
|
|
13156
|
+
"ID of the [resource](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/introduction) associated with the staff member providing the service.\nDespite the field name, this is the resource ID, not the staff member ID.\nThis value matches the staff member's `resourceId` from the [Staff Members API](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/introduction)\nand corresponds to the IDs in the service's `staffMemberIds` field."
|
|
13157
|
+
).regex(
|
|
13158
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
13159
|
+
"Must be a valid GUID"
|
|
13160
|
+
).optional(),
|
|
13161
|
+
name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
|
|
13162
|
+
mainMedia: z.intersection(
|
|
13163
|
+
z.object({}),
|
|
13164
|
+
z.xor([
|
|
13165
|
+
z.object({ image: z.never().optional() }),
|
|
13166
|
+
z.object({
|
|
13167
|
+
image: z.string().describe(
|
|
13168
|
+
"Details of the image associated with the staff, such as URL and size."
|
|
13169
|
+
)
|
|
13170
|
+
})
|
|
13171
|
+
])
|
|
13172
|
+
).describe("Main media associated with the service.").optional()
|
|
13173
|
+
})
|
|
13174
|
+
).max(220).optional()
|
|
13175
|
+
}).describe(
|
|
13176
|
+
"Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
|
|
13177
|
+
).optional(),
|
|
12718
13178
|
serviceResources: z.array(
|
|
12719
13179
|
z.object({
|
|
12720
13180
|
resourceType: z.object({
|
|
@@ -13381,6 +13841,32 @@ var SetCustomSlugResponse = z.object({
|
|
|
13381
13841
|
"The service's [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction),\nwhich can be used to manage the service's [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)."
|
|
13382
13842
|
).optional(),
|
|
13383
13843
|
staffMemberIds: z.array(z.string()).max(220).optional(),
|
|
13844
|
+
staffMemberDetails: z.object({
|
|
13845
|
+
staffMembers: z.array(
|
|
13846
|
+
z.object({
|
|
13847
|
+
staffMemberId: z.string().describe(
|
|
13848
|
+
"ID of the [resource](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/introduction) associated with the staff member providing the service.\nDespite the field name, this is the resource ID, not the staff member ID.\nThis value matches the staff member's `resourceId` from the [Staff Members API](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/introduction)\nand corresponds to the IDs in the service's `staffMemberIds` field."
|
|
13849
|
+
).regex(
|
|
13850
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
13851
|
+
"Must be a valid GUID"
|
|
13852
|
+
).optional(),
|
|
13853
|
+
name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
|
|
13854
|
+
mainMedia: z.intersection(
|
|
13855
|
+
z.object({}),
|
|
13856
|
+
z.xor([
|
|
13857
|
+
z.object({ image: z.never().optional() }),
|
|
13858
|
+
z.object({
|
|
13859
|
+
image: z.string().describe(
|
|
13860
|
+
"Details of the image associated with the staff, such as URL and size."
|
|
13861
|
+
)
|
|
13862
|
+
})
|
|
13863
|
+
])
|
|
13864
|
+
).describe("Main media associated with the service.").optional()
|
|
13865
|
+
})
|
|
13866
|
+
).max(220).optional()
|
|
13867
|
+
}).describe(
|
|
13868
|
+
"Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
|
|
13869
|
+
).optional(),
|
|
13384
13870
|
serviceResources: z.array(
|
|
13385
13871
|
z.object({
|
|
13386
13872
|
resourceType: z.object({
|
|
@@ -14049,6 +14535,32 @@ var CloneServiceResponse = z.object({
|
|
|
14049
14535
|
"The service's [schedule](https://dev.wix.com/docs/rest/business-management/calendar/schedules-v3/introduction),\nwhich can be used to manage the service's [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)."
|
|
14050
14536
|
).optional(),
|
|
14051
14537
|
staffMemberIds: z.array(z.string()).max(220).optional(),
|
|
14538
|
+
staffMemberDetails: z.object({
|
|
14539
|
+
staffMembers: z.array(
|
|
14540
|
+
z.object({
|
|
14541
|
+
staffMemberId: z.string().describe(
|
|
14542
|
+
"ID of the [resource](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/introduction) associated with the staff member providing the service.\nDespite the field name, this is the resource ID, not the staff member ID.\nThis value matches the staff member's `resourceId` from the [Staff Members API](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/introduction)\nand corresponds to the IDs in the service's `staffMemberIds` field."
|
|
14543
|
+
).regex(
|
|
14544
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
14545
|
+
"Must be a valid GUID"
|
|
14546
|
+
).optional(),
|
|
14547
|
+
name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
|
|
14548
|
+
mainMedia: z.intersection(
|
|
14549
|
+
z.object({}),
|
|
14550
|
+
z.xor([
|
|
14551
|
+
z.object({ image: z.never().optional() }),
|
|
14552
|
+
z.object({
|
|
14553
|
+
image: z.string().describe(
|
|
14554
|
+
"Details of the image associated with the staff, such as URL and size."
|
|
14555
|
+
)
|
|
14556
|
+
})
|
|
14557
|
+
])
|
|
14558
|
+
).describe("Main media associated with the service.").optional()
|
|
14559
|
+
})
|
|
14560
|
+
).max(220).optional()
|
|
14561
|
+
}).describe(
|
|
14562
|
+
"Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
|
|
14563
|
+
).optional(),
|
|
14052
14564
|
serviceResources: z.array(
|
|
14053
14565
|
z.object({
|
|
14054
14566
|
resourceType: z.object({
|