@wix/auto_sdk_bookings_services 1.0.232 → 1.0.234

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.
Files changed (53) hide show
  1. package/build/cjs/{bookings-services-v2-service-services.universal-ChxNzFxH.d.ts → bookings-services-v2-service-services.universal-CKfqET6d.d.ts} +35 -17
  2. package/build/cjs/index.d.ts +11 -11
  3. package/build/cjs/index.js +11 -13
  4. package/build/cjs/index.js.map +1 -1
  5. package/build/cjs/index.typings.d.ts +2 -2
  6. package/build/cjs/index.typings.js +9 -12
  7. package/build/cjs/index.typings.js.map +1 -1
  8. package/build/cjs/meta.d.ts +14 -10
  9. package/build/cjs/meta.js +0 -7
  10. package/build/cjs/meta.js.map +1 -1
  11. package/build/cjs/schemas.d.ts +223 -0
  12. package/build/cjs/schemas.js +514 -2
  13. package/build/cjs/schemas.js.map +1 -1
  14. package/build/es/{bookings-services-v2-service-services.universal-ChxNzFxH.d.mts → bookings-services-v2-service-services.universal-CKfqET6d.d.mts} +35 -17
  15. package/build/es/index.d.mts +11 -11
  16. package/build/es/index.mjs +11 -12
  17. package/build/es/index.mjs.map +1 -1
  18. package/build/es/index.typings.d.mts +2 -2
  19. package/build/es/index.typings.mjs +9 -11
  20. package/build/es/index.typings.mjs.map +1 -1
  21. package/build/es/meta.d.mts +14 -10
  22. package/build/es/meta.mjs +0 -6
  23. package/build/es/meta.mjs.map +1 -1
  24. package/build/es/schemas.d.mts +223 -0
  25. package/build/es/schemas.mjs +514 -2
  26. package/build/es/schemas.mjs.map +1 -1
  27. package/build/internal/cjs/{bookings-services-v2-service-services.universal-BwC5_Csn.d.ts → bookings-services-v2-service-services.universal-BttseWU4.d.ts} +35 -27
  28. package/build/internal/cjs/index.d.ts +11 -11
  29. package/build/internal/cjs/index.js +11 -13
  30. package/build/internal/cjs/index.js.map +1 -1
  31. package/build/internal/cjs/index.typings.d.ts +2 -2
  32. package/build/internal/cjs/index.typings.js +9 -12
  33. package/build/internal/cjs/index.typings.js.map +1 -1
  34. package/build/internal/cjs/meta.d.ts +14 -10
  35. package/build/internal/cjs/meta.js +0 -7
  36. package/build/internal/cjs/meta.js.map +1 -1
  37. package/build/internal/cjs/schemas.d.ts +223 -0
  38. package/build/internal/cjs/schemas.js +514 -2
  39. package/build/internal/cjs/schemas.js.map +1 -1
  40. package/build/internal/es/{bookings-services-v2-service-services.universal-BwC5_Csn.d.mts → bookings-services-v2-service-services.universal-BttseWU4.d.mts} +35 -27
  41. package/build/internal/es/index.d.mts +11 -11
  42. package/build/internal/es/index.mjs +11 -12
  43. package/build/internal/es/index.mjs.map +1 -1
  44. package/build/internal/es/index.typings.d.mts +2 -2
  45. package/build/internal/es/index.typings.mjs +9 -11
  46. package/build/internal/es/index.typings.mjs.map +1 -1
  47. package/build/internal/es/meta.d.mts +14 -10
  48. package/build/internal/es/meta.mjs +0 -6
  49. package/build/internal/es/meta.mjs.map +1 -1
  50. package/build/internal/es/schemas.d.mts +223 -0
  51. package/build/internal/es/schemas.mjs +514 -2
  52. package/build/internal/es/schemas.mjs.map +1 -1
  53. package/package.json +2 -2
@@ -591,6 +591,32 @@ var CreateServiceRequest = z.object({
591
591
  "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)."
592
592
  ).optional(),
593
593
  staffMemberIds: z.array(z.string()).max(220).optional(),
594
+ staffMemberDetails: z.object({
595
+ staffMembers: z.array(
596
+ z.object({
597
+ staffMemberId: z.string().describe(
598
+ "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."
599
+ ).regex(
600
+ /^[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}$/,
601
+ "Must be a valid GUID"
602
+ ).optional(),
603
+ name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
604
+ mainMedia: z.intersection(
605
+ z.object({}),
606
+ z.xor([
607
+ z.object({ image: z.never().optional() }),
608
+ z.object({
609
+ image: z.string().describe(
610
+ "Details of the image associated with the staff, such as URL and size."
611
+ )
612
+ })
613
+ ])
614
+ ).describe("Main media associated with the service.").optional()
615
+ })
616
+ ).max(220).optional()
617
+ }).describe(
618
+ "Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
619
+ ).optional(),
594
620
  serviceResources: z.array(
595
621
  z.object({
596
622
  resourceType: z.object({
@@ -1234,6 +1260,32 @@ var CreateServiceResponse = z.object({
1234
1260
  "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)."
1235
1261
  ).optional(),
1236
1262
  staffMemberIds: z.array(z.string()).max(220).optional(),
1263
+ staffMemberDetails: z.object({
1264
+ staffMembers: z.array(
1265
+ z.object({
1266
+ staffMemberId: z.string().describe(
1267
+ "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."
1268
+ ).regex(
1269
+ /^[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}$/,
1270
+ "Must be a valid GUID"
1271
+ ).optional(),
1272
+ name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
1273
+ mainMedia: z.intersection(
1274
+ z.object({}),
1275
+ z.xor([
1276
+ z.object({ image: z.never().optional() }),
1277
+ z.object({
1278
+ image: z.string().describe(
1279
+ "Details of the image associated with the staff, such as URL and size."
1280
+ )
1281
+ })
1282
+ ])
1283
+ ).describe("Main media associated with the service.").optional()
1284
+ })
1285
+ ).max(220).optional()
1286
+ }).describe(
1287
+ "Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
1288
+ ).optional(),
1237
1289
  serviceResources: z.array(
1238
1290
  z.object({
1239
1291
  resourceType: z.object({
@@ -1876,6 +1928,32 @@ var BulkCreateServicesRequest = z.object({
1876
1928
  "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)."
1877
1929
  ).optional(),
1878
1930
  staffMemberIds: z.array(z.string()).max(220).optional(),
1931
+ staffMemberDetails: z.object({
1932
+ staffMembers: z.array(
1933
+ z.object({
1934
+ staffMemberId: z.string().describe(
1935
+ "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."
1936
+ ).regex(
1937
+ /^[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}$/,
1938
+ "Must be a valid GUID"
1939
+ ).optional(),
1940
+ name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
1941
+ mainMedia: z.intersection(
1942
+ z.object({}),
1943
+ z.xor([
1944
+ z.object({ image: z.never().optional() }),
1945
+ z.object({
1946
+ image: z.string().describe(
1947
+ "Details of the image associated with the staff, such as URL and size."
1948
+ )
1949
+ })
1950
+ ])
1951
+ ).describe("Main media associated with the service.").optional()
1952
+ })
1953
+ ).max(220).optional()
1954
+ }).describe(
1955
+ "Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
1956
+ ).optional(),
1879
1957
  serviceResources: z.array(
1880
1958
  z.object({
1881
1959
  resourceType: z.object({
@@ -2559,6 +2637,32 @@ var BulkCreateServicesResponse = z.object({
2559
2637
  "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)."
2560
2638
  ).optional(),
2561
2639
  staffMemberIds: z.array(z.string()).max(220).optional(),
2640
+ staffMemberDetails: z.object({
2641
+ staffMembers: z.array(
2642
+ z.object({
2643
+ staffMemberId: z.string().describe(
2644
+ "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."
2645
+ ).regex(
2646
+ /^[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}$/,
2647
+ "Must be a valid GUID"
2648
+ ).optional(),
2649
+ name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
2650
+ mainMedia: z.intersection(
2651
+ z.object({}),
2652
+ z.xor([
2653
+ z.object({ image: z.never().optional() }),
2654
+ z.object({
2655
+ image: z.string().describe(
2656
+ "Details of the image associated with the staff, such as URL and size."
2657
+ )
2658
+ })
2659
+ ])
2660
+ ).describe("Main media associated with the service.").optional()
2661
+ })
2662
+ ).max(220).optional()
2663
+ }).describe(
2664
+ "Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
2665
+ ).optional(),
2562
2666
  serviceResources: z.array(
2563
2667
  z.object({
2564
2668
  resourceType: z.object({
@@ -2712,7 +2816,16 @@ var GetServiceRequest = z.object({
2712
2816
  serviceId: z.string().describe("ID of the service to retrieve.").regex(
2713
2817
  /^[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}$/,
2714
2818
  "Must be a valid GUID"
2715
- )
2819
+ ),
2820
+ options: z.object({
2821
+ conditionalFields: z.array(
2822
+ z.enum([
2823
+ "STAFF_MEMBER_DETAILS",
2824
+ "RESOURCE_TYPE_DETAILS",
2825
+ "DISCOUNT_INFO_DETAILS"
2826
+ ])
2827
+ ).max(5).optional()
2828
+ }).optional()
2716
2829
  });
2717
2830
  var GetServiceResponse = z.object({
2718
2831
  _id: z.string().describe("Service ID.").regex(
@@ -3217,6 +3330,32 @@ var GetServiceResponse = z.object({
3217
3330
  "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)."
3218
3331
  ).optional(),
3219
3332
  staffMemberIds: z.array(z.string()).max(220).optional(),
3333
+ staffMemberDetails: z.object({
3334
+ staffMembers: z.array(
3335
+ z.object({
3336
+ staffMemberId: z.string().describe(
3337
+ "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."
3338
+ ).regex(
3339
+ /^[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}$/,
3340
+ "Must be a valid GUID"
3341
+ ).optional(),
3342
+ name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
3343
+ mainMedia: z.intersection(
3344
+ z.object({}),
3345
+ z.xor([
3346
+ z.object({ image: z.never().optional() }),
3347
+ z.object({
3348
+ image: z.string().describe(
3349
+ "Details of the image associated with the staff, such as URL and size."
3350
+ )
3351
+ })
3352
+ ])
3353
+ ).describe("Main media associated with the service.").optional()
3354
+ })
3355
+ ).max(220).optional()
3356
+ }).describe(
3357
+ "Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
3358
+ ).optional(),
3220
3359
  serviceResources: z.array(
3221
3360
  z.object({
3222
3361
  resourceType: z.object({
@@ -3858,6 +3997,32 @@ var UpdateServiceRequest = z.object({
3858
3997
  "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)."
3859
3998
  ).optional(),
3860
3999
  staffMemberIds: z.array(z.string()).max(220).optional(),
4000
+ staffMemberDetails: z.object({
4001
+ staffMembers: z.array(
4002
+ z.object({
4003
+ staffMemberId: z.string().describe(
4004
+ "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."
4005
+ ).regex(
4006
+ /^[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}$/,
4007
+ "Must be a valid GUID"
4008
+ ).optional(),
4009
+ name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
4010
+ mainMedia: z.intersection(
4011
+ z.object({}),
4012
+ z.xor([
4013
+ z.object({ image: z.never().optional() }),
4014
+ z.object({
4015
+ image: z.string().describe(
4016
+ "Details of the image associated with the staff, such as URL and size."
4017
+ )
4018
+ })
4019
+ ])
4020
+ ).describe("Main media associated with the service.").optional()
4021
+ })
4022
+ ).max(220).optional()
4023
+ }).describe(
4024
+ "Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
4025
+ ).optional(),
3861
4026
  serviceResources: z.array(
3862
4027
  z.object({
3863
4028
  resourceType: z.object({
@@ -4501,6 +4666,32 @@ var UpdateServiceResponse = z.object({
4501
4666
  "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)."
4502
4667
  ).optional(),
4503
4668
  staffMemberIds: z.array(z.string()).max(220).optional(),
4669
+ staffMemberDetails: z.object({
4670
+ staffMembers: z.array(
4671
+ z.object({
4672
+ staffMemberId: z.string().describe(
4673
+ "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."
4674
+ ).regex(
4675
+ /^[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}$/,
4676
+ "Must be a valid GUID"
4677
+ ).optional(),
4678
+ name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
4679
+ mainMedia: z.intersection(
4680
+ z.object({}),
4681
+ z.xor([
4682
+ z.object({ image: z.never().optional() }),
4683
+ z.object({
4684
+ image: z.string().describe(
4685
+ "Details of the image associated with the staff, such as URL and size."
4686
+ )
4687
+ })
4688
+ ])
4689
+ ).describe("Main media associated with the service.").optional()
4690
+ })
4691
+ ).max(220).optional()
4692
+ }).describe(
4693
+ "Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
4694
+ ).optional(),
4504
4695
  serviceResources: z.array(
4505
4696
  z.object({
4506
4697
  resourceType: z.object({
@@ -5157,6 +5348,32 @@ var BulkUpdateServicesRequest = z.object({
5157
5348
  "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)."
5158
5349
  ).optional(),
5159
5350
  staffMemberIds: z.array(z.string()).max(220).optional(),
5351
+ staffMemberDetails: z.object({
5352
+ staffMembers: z.array(
5353
+ z.object({
5354
+ staffMemberId: z.string().describe(
5355
+ "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."
5356
+ ).regex(
5357
+ /^[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}$/,
5358
+ "Must be a valid GUID"
5359
+ ).optional(),
5360
+ name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
5361
+ mainMedia: z.intersection(
5362
+ z.object({}),
5363
+ z.xor([
5364
+ z.object({ image: z.never().optional() }),
5365
+ z.object({
5366
+ image: z.string().describe(
5367
+ "Details of the image associated with the staff, such as URL and size."
5368
+ )
5369
+ })
5370
+ ])
5371
+ ).describe("Main media associated with the service.").optional()
5372
+ })
5373
+ ).max(220).optional()
5374
+ }).describe(
5375
+ "Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
5376
+ ).optional(),
5160
5377
  serviceResources: z.array(
5161
5378
  z.object({
5162
5379
  resourceType: z.object({
@@ -5843,6 +6060,32 @@ var BulkUpdateServicesResponse = z.object({
5843
6060
  "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)."
5844
6061
  ).optional(),
5845
6062
  staffMemberIds: z.array(z.string()).max(220).optional(),
6063
+ staffMemberDetails: z.object({
6064
+ staffMembers: z.array(
6065
+ z.object({
6066
+ staffMemberId: z.string().describe(
6067
+ "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."
6068
+ ).regex(
6069
+ /^[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}$/,
6070
+ "Must be a valid GUID"
6071
+ ).optional(),
6072
+ name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
6073
+ mainMedia: z.intersection(
6074
+ z.object({}),
6075
+ z.xor([
6076
+ z.object({ image: z.never().optional() }),
6077
+ z.object({
6078
+ image: z.string().describe(
6079
+ "Details of the image associated with the staff, such as URL and size."
6080
+ )
6081
+ })
6082
+ ])
6083
+ ).describe("Main media associated with the service.").optional()
6084
+ })
6085
+ ).max(220).optional()
6086
+ }).describe(
6087
+ "Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
6088
+ ).optional(),
5846
6089
  serviceResources: z.array(
5847
6090
  z.object({
5848
6091
  resourceType: z.object({
@@ -6500,6 +6743,32 @@ var BulkUpdateServicesByFilterRequest = z.object({
6500
6743
  "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)."
6501
6744
  ).optional(),
6502
6745
  staffMemberIds: z.array(z.string()).max(220).optional(),
6746
+ staffMemberDetails: z.object({
6747
+ staffMembers: z.array(
6748
+ z.object({
6749
+ staffMemberId: z.string().describe(
6750
+ "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."
6751
+ ).regex(
6752
+ /^[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}$/,
6753
+ "Must be a valid GUID"
6754
+ ).optional(),
6755
+ name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
6756
+ mainMedia: z.intersection(
6757
+ z.object({}),
6758
+ z.xor([
6759
+ z.object({ image: z.never().optional() }),
6760
+ z.object({
6761
+ image: z.string().describe(
6762
+ "Details of the image associated with the staff, such as URL and size."
6763
+ )
6764
+ })
6765
+ ])
6766
+ ).describe("Main media associated with the service.").optional()
6767
+ })
6768
+ ).max(220).optional()
6769
+ }).describe(
6770
+ "Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
6771
+ ).optional(),
6503
6772
  serviceResources: z.array(
6504
6773
  z.object({
6505
6774
  resourceType: z.object({
@@ -7230,6 +7499,32 @@ var BulkDeleteServicesResponse = z.object({
7230
7499
  "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)."
7231
7500
  ).optional(),
7232
7501
  staffMemberIds: z.array(z.string()).max(220).optional(),
7502
+ staffMemberDetails: z.object({
7503
+ staffMembers: z.array(
7504
+ z.object({
7505
+ staffMemberId: z.string().describe(
7506
+ "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."
7507
+ ).regex(
7508
+ /^[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}$/,
7509
+ "Must be a valid GUID"
7510
+ ).optional(),
7511
+ name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
7512
+ mainMedia: z.intersection(
7513
+ z.object({}),
7514
+ z.xor([
7515
+ z.object({ image: z.never().optional() }),
7516
+ z.object({
7517
+ image: z.string().describe(
7518
+ "Details of the image associated with the staff, such as URL and size."
7519
+ )
7520
+ })
7521
+ ])
7522
+ ).describe("Main media associated with the service.").optional()
7523
+ })
7524
+ ).max(220).optional()
7525
+ }).describe(
7526
+ "Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
7527
+ ).optional(),
7233
7528
  serviceResources: z.array(
7234
7529
  z.object({
7235
7530
  resourceType: z.object({
@@ -7719,7 +8014,16 @@ var QueryServicesRequest = z.object({
7719
8014
  order: z.enum(["ASC", "DESC"]).optional()
7720
8015
  })
7721
8016
  ).optional()
7722
- }).catchall(z.any()).describe("WQL expression.")
8017
+ }).catchall(z.any()).describe("WQL expression."),
8018
+ options: z.object({
8019
+ conditionalFields: z.array(
8020
+ z.enum([
8021
+ "STAFF_MEMBER_DETAILS",
8022
+ "RESOURCE_TYPE_DETAILS",
8023
+ "DISCOUNT_INFO_DETAILS"
8024
+ ])
8025
+ ).max(5).optional()
8026
+ }).optional()
7723
8027
  });
7724
8028
  var QueryServicesResponse = z.object({
7725
8029
  services: z.array(
@@ -8234,6 +8538,32 @@ var QueryServicesResponse = z.object({
8234
8538
  "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)."
8235
8539
  ).optional(),
8236
8540
  staffMemberIds: z.array(z.string()).max(220).optional(),
8541
+ staffMemberDetails: z.object({
8542
+ staffMembers: z.array(
8543
+ z.object({
8544
+ staffMemberId: z.string().describe(
8545
+ "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."
8546
+ ).regex(
8547
+ /^[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}$/,
8548
+ "Must be a valid GUID"
8549
+ ).optional(),
8550
+ name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
8551
+ mainMedia: z.intersection(
8552
+ z.object({}),
8553
+ z.xor([
8554
+ z.object({ image: z.never().optional() }),
8555
+ z.object({
8556
+ image: z.string().describe(
8557
+ "Details of the image associated with the staff, such as URL and size."
8558
+ )
8559
+ })
8560
+ ])
8561
+ ).describe("Main media associated with the service.").optional()
8562
+ })
8563
+ ).max(220).optional()
8564
+ }).describe(
8565
+ "Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
8566
+ ).optional(),
8237
8567
  serviceResources: z.array(
8238
8568
  z.object({
8239
8569
  resourceType: z.object({
@@ -9286,6 +9616,32 @@ var SearchServicesResponse = z.object({
9286
9616
  "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)."
9287
9617
  ).optional(),
9288
9618
  staffMemberIds: z.array(z.string()).max(220).optional(),
9619
+ staffMemberDetails: z.object({
9620
+ staffMembers: z.array(
9621
+ z.object({
9622
+ staffMemberId: z.string().describe(
9623
+ "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."
9624
+ ).regex(
9625
+ /^[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}$/,
9626
+ "Must be a valid GUID"
9627
+ ).optional(),
9628
+ name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
9629
+ mainMedia: z.intersection(
9630
+ z.object({}),
9631
+ z.xor([
9632
+ z.object({ image: z.never().optional() }),
9633
+ z.object({
9634
+ image: z.string().describe(
9635
+ "Details of the image associated with the staff, such as URL and size."
9636
+ )
9637
+ })
9638
+ ])
9639
+ ).describe("Main media associated with the service.").optional()
9640
+ })
9641
+ ).max(220).optional()
9642
+ }).describe(
9643
+ "Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
9644
+ ).optional(),
9289
9645
  serviceResources: z.array(
9290
9646
  z.object({
9291
9647
  resourceType: z.object({
@@ -10430,6 +10786,32 @@ var QueryPoliciesResponse = z.object({
10430
10786
  "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)."
10431
10787
  ).optional(),
10432
10788
  staffMemberIds: z.array(z.string()).max(220).optional(),
10789
+ staffMemberDetails: z.object({
10790
+ staffMembers: z.array(
10791
+ z.object({
10792
+ staffMemberId: z.string().describe(
10793
+ "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."
10794
+ ).regex(
10795
+ /^[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}$/,
10796
+ "Must be a valid GUID"
10797
+ ).optional(),
10798
+ name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
10799
+ mainMedia: z.intersection(
10800
+ z.object({}),
10801
+ z.xor([
10802
+ z.object({ image: z.never().optional() }),
10803
+ z.object({
10804
+ image: z.string().describe(
10805
+ "Details of the image associated with the staff, such as URL and size."
10806
+ )
10807
+ })
10808
+ ])
10809
+ ).describe("Main media associated with the service.").optional()
10810
+ })
10811
+ ).max(220).optional()
10812
+ }).describe(
10813
+ "Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
10814
+ ).optional(),
10433
10815
  serviceResources: z.array(
10434
10816
  z.object({
10435
10817
  resourceType: z.object({
@@ -11494,6 +11876,32 @@ var SetServiceLocationsResponse = z.object({
11494
11876
  "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)."
11495
11877
  ).optional(),
11496
11878
  staffMemberIds: z.array(z.string()).max(220).optional(),
11879
+ staffMemberDetails: z.object({
11880
+ staffMembers: z.array(
11881
+ z.object({
11882
+ staffMemberId: z.string().describe(
11883
+ "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."
11884
+ ).regex(
11885
+ /^[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}$/,
11886
+ "Must be a valid GUID"
11887
+ ).optional(),
11888
+ name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
11889
+ mainMedia: z.intersection(
11890
+ z.object({}),
11891
+ z.xor([
11892
+ z.object({ image: z.never().optional() }),
11893
+ z.object({
11894
+ image: z.string().describe(
11895
+ "Details of the image associated with the staff, such as URL and size."
11896
+ )
11897
+ })
11898
+ ])
11899
+ ).describe("Main media associated with the service.").optional()
11900
+ })
11901
+ ).max(220).optional()
11902
+ }).describe(
11903
+ "Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
11904
+ ).optional(),
11497
11905
  serviceResources: z.array(
11498
11906
  z.object({
11499
11907
  resourceType: z.object({
@@ -12149,6 +12557,32 @@ var EnablePricingPlansForServiceResponse = z.object({
12149
12557
  "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)."
12150
12558
  ).optional(),
12151
12559
  staffMemberIds: z.array(z.string()).max(220).optional(),
12560
+ staffMemberDetails: z.object({
12561
+ staffMembers: z.array(
12562
+ z.object({
12563
+ staffMemberId: z.string().describe(
12564
+ "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."
12565
+ ).regex(
12566
+ /^[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}$/,
12567
+ "Must be a valid GUID"
12568
+ ).optional(),
12569
+ name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
12570
+ mainMedia: z.intersection(
12571
+ z.object({}),
12572
+ z.xor([
12573
+ z.object({ image: z.never().optional() }),
12574
+ z.object({
12575
+ image: z.string().describe(
12576
+ "Details of the image associated with the staff, such as URL and size."
12577
+ )
12578
+ })
12579
+ ])
12580
+ ).describe("Main media associated with the service.").optional()
12581
+ })
12582
+ ).max(220).optional()
12583
+ }).describe(
12584
+ "Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
12585
+ ).optional(),
12152
12586
  serviceResources: z.array(
12153
12587
  z.object({
12154
12588
  resourceType: z.object({
@@ -12804,6 +13238,32 @@ var DisablePricingPlansForServiceResponse = z.object({
12804
13238
  "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)."
12805
13239
  ).optional(),
12806
13240
  staffMemberIds: z.array(z.string()).max(220).optional(),
13241
+ staffMemberDetails: z.object({
13242
+ staffMembers: z.array(
13243
+ z.object({
13244
+ staffMemberId: z.string().describe(
13245
+ "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."
13246
+ ).regex(
13247
+ /^[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}$/,
13248
+ "Must be a valid GUID"
13249
+ ).optional(),
13250
+ name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
13251
+ mainMedia: z.intersection(
13252
+ z.object({}),
13253
+ z.xor([
13254
+ z.object({ image: z.never().optional() }),
13255
+ z.object({
13256
+ image: z.string().describe(
13257
+ "Details of the image associated with the staff, such as URL and size."
13258
+ )
13259
+ })
13260
+ ])
13261
+ ).describe("Main media associated with the service.").optional()
13262
+ })
13263
+ ).max(220).optional()
13264
+ }).describe(
13265
+ "Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
13266
+ ).optional(),
12807
13267
  serviceResources: z.array(
12808
13268
  z.object({
12809
13269
  resourceType: z.object({
@@ -13470,6 +13930,32 @@ var SetCustomSlugResponse = z.object({
13470
13930
  "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)."
13471
13931
  ).optional(),
13472
13932
  staffMemberIds: z.array(z.string()).max(220).optional(),
13933
+ staffMemberDetails: z.object({
13934
+ staffMembers: z.array(
13935
+ z.object({
13936
+ staffMemberId: z.string().describe(
13937
+ "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."
13938
+ ).regex(
13939
+ /^[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}$/,
13940
+ "Must be a valid GUID"
13941
+ ).optional(),
13942
+ name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
13943
+ mainMedia: z.intersection(
13944
+ z.object({}),
13945
+ z.xor([
13946
+ z.object({ image: z.never().optional() }),
13947
+ z.object({
13948
+ image: z.string().describe(
13949
+ "Details of the image associated with the staff, such as URL and size."
13950
+ )
13951
+ })
13952
+ ])
13953
+ ).describe("Main media associated with the service.").optional()
13954
+ })
13955
+ ).max(220).optional()
13956
+ }).describe(
13957
+ "Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
13958
+ ).optional(),
13473
13959
  serviceResources: z.array(
13474
13960
  z.object({
13475
13961
  resourceType: z.object({
@@ -14138,6 +14624,32 @@ var CloneServiceResponse = z.object({
14138
14624
  "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)."
14139
14625
  ).optional(),
14140
14626
  staffMemberIds: z.array(z.string()).max(220).optional(),
14627
+ staffMemberDetails: z.object({
14628
+ staffMembers: z.array(
14629
+ z.object({
14630
+ staffMemberId: z.string().describe(
14631
+ "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."
14632
+ ).regex(
14633
+ /^[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}$/,
14634
+ "Must be a valid GUID"
14635
+ ).optional(),
14636
+ name: z.string().describe("Name of the staff member").max(40).optional().nullable(),
14637
+ mainMedia: z.intersection(
14638
+ z.object({}),
14639
+ z.xor([
14640
+ z.object({ image: z.never().optional() }),
14641
+ z.object({
14642
+ image: z.string().describe(
14643
+ "Details of the image associated with the staff, such as URL and size."
14644
+ )
14645
+ })
14646
+ ])
14647
+ ).describe("Main media associated with the service.").optional()
14648
+ })
14649
+ ).max(220).optional()
14650
+ }).describe(
14651
+ "Staff members details. Returned only if `STAFF_MEMBER_DETAILS` conditional field was specified."
14652
+ ).optional(),
14141
14653
  serviceResources: z.array(
14142
14654
  z.object({
14143
14655
  resourceType: z.object({