@wix/auto_sdk_bookings_services 1.0.264 → 1.0.266
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-DP1rt4uY.d.ts → bookings-services-v2-service-services.universal-BUP4OIa7.d.ts} +8 -25
- package/build/cjs/index.d.ts +10 -10
- package/build/cjs/index.js +5 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +5 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -12
- package/build/cjs/meta.js +7 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +0 -399
- package/build/cjs/schemas.js +19 -780
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/{bookings-services-v2-service-services.universal-DP1rt4uY.d.mts → bookings-services-v2-service-services.universal-BUP4OIa7.d.mts} +8 -25
- package/build/es/index.d.mts +10 -10
- package/build/es/index.mjs +5 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +5 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1 -12
- package/build/es/meta.mjs +7 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +0 -399
- package/build/es/schemas.mjs +19 -780
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/{bookings-services-v2-service-services.universal-BOPh4Nt0.d.ts → bookings-services-v2-service-services.universal-BluU4Y4M.d.ts} +647 -16
- package/build/internal/cjs/index.d.ts +10 -10
- package/build/internal/cjs/index.js +5 -0
- 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 +5 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +770 -3
- package/build/internal/cjs/meta.js +7 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +0 -399
- package/build/internal/cjs/schemas.js +19 -780
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/{bookings-services-v2-service-services.universal-BOPh4Nt0.d.mts → bookings-services-v2-service-services.universal-BluU4Y4M.d.mts} +647 -16
- package/build/internal/es/index.d.mts +10 -10
- package/build/internal/es/index.mjs +5 -0
- 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 +5 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +770 -3
- package/build/internal/es/meta.mjs +7 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +0 -399
- package/build/internal/es/schemas.mjs +19 -780
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +4 -4
package/build/cjs/schemas.js
CHANGED
|
@@ -636,44 +636,7 @@ var CreateServiceRequest = z.object({
|
|
|
636
636
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
637
637
|
timeBetweenSessions: z.number().int().describe(
|
|
638
638
|
"The number of minutes between the end of a session and the start of the next."
|
|
639
|
-
).min(0).max(720).optional()
|
|
640
|
-
durationRange: z.intersection(
|
|
641
|
-
z.object({ unitType: z.enum(["HOUR", "DAY"]).optional() }),
|
|
642
|
-
z.xor([
|
|
643
|
-
z.object({
|
|
644
|
-
hourOptions: z.never().optional(),
|
|
645
|
-
dayOptions: z.never().optional()
|
|
646
|
-
}),
|
|
647
|
-
z.object({
|
|
648
|
-
dayOptions: z.never().optional(),
|
|
649
|
-
hourOptions: z.object({
|
|
650
|
-
minDurationInMinutes: z.number().int().describe(
|
|
651
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
652
|
-
).min(30).max(1440).optional(),
|
|
653
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
654
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
655
|
-
).min(30).max(1440).optional()
|
|
656
|
-
}).describe(
|
|
657
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
658
|
-
)
|
|
659
|
-
}),
|
|
660
|
-
z.object({
|
|
661
|
-
hourOptions: z.never().optional(),
|
|
662
|
-
dayOptions: z.object({
|
|
663
|
-
minDurationInDays: z.number().int().describe(
|
|
664
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
665
|
-
).min(1).max(8).optional(),
|
|
666
|
-
maxDurationInDays: z.number().int().describe(
|
|
667
|
-
"Maximum bookable duration in days. The customer can't book for more than this number of days.\n\nMust be greater than or equal to `minDurationInDays`."
|
|
668
|
-
).min(1).max(8).optional()
|
|
669
|
-
}).describe(
|
|
670
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
671
|
-
)
|
|
672
|
-
})
|
|
673
|
-
])
|
|
674
|
-
).describe(
|
|
675
|
-
"Duration range for the service. When set, the customer picks a duration\nwithin the configured min/max range instead of a fixed session duration.\nMutually exclusive with `sessionDurations`. A service uses one or the other.\nCan't be combined with `workingHours`.\n\nUse `durationRange` for services where the customer chooses how long to book,\nsuch as equipment or space rentals. The `unitType` determines whether the range\nis measured in hours or days."
|
|
676
|
-
).optional()
|
|
639
|
+
).min(0).max(720).optional()
|
|
677
640
|
}).describe("Limitations affecting the service availability.").optional()
|
|
678
641
|
}).describe(
|
|
679
642
|
"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)."
|
|
@@ -1416,48 +1379,7 @@ var CreateServiceResponse = z.object({
|
|
|
1416
1379
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
1417
1380
|
timeBetweenSessions: z.number().int().describe(
|
|
1418
1381
|
"The number of minutes between the end of a session and the start of the next."
|
|
1419
|
-
).min(0).max(720).optional()
|
|
1420
|
-
durationRange: z.intersection(
|
|
1421
|
-
z.object({
|
|
1422
|
-
unitType: z.enum(["HOUR", "DAY"]).describe(
|
|
1423
|
-
"The unit type for this duration range. Determines which configuration to use in the `config` union."
|
|
1424
|
-
).optional()
|
|
1425
|
-
}),
|
|
1426
|
-
z.xor([
|
|
1427
|
-
z.object({
|
|
1428
|
-
hourOptions: z.never().optional(),
|
|
1429
|
-
dayOptions: z.never().optional()
|
|
1430
|
-
}),
|
|
1431
|
-
z.object({
|
|
1432
|
-
dayOptions: z.never().optional(),
|
|
1433
|
-
hourOptions: z.object({
|
|
1434
|
-
minDurationInMinutes: z.number().int().describe(
|
|
1435
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
1436
|
-
).min(30).max(1440).optional(),
|
|
1437
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
1438
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
1439
|
-
).min(30).max(1440).optional()
|
|
1440
|
-
}).describe(
|
|
1441
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
1442
|
-
)
|
|
1443
|
-
}),
|
|
1444
|
-
z.object({
|
|
1445
|
-
hourOptions: z.never().optional(),
|
|
1446
|
-
dayOptions: z.object({
|
|
1447
|
-
minDurationInDays: z.number().int().describe(
|
|
1448
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
1449
|
-
).min(1).max(8).optional(),
|
|
1450
|
-
maxDurationInDays: z.number().int().describe(
|
|
1451
|
-
"Maximum bookable duration in days. The customer can't book for more than this number of days.\n\nMust be greater than or equal to `minDurationInDays`."
|
|
1452
|
-
).min(1).max(8).optional()
|
|
1453
|
-
}).describe(
|
|
1454
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
1455
|
-
)
|
|
1456
|
-
})
|
|
1457
|
-
])
|
|
1458
|
-
).describe(
|
|
1459
|
-
"Duration range for the service. When set, the customer picks a duration\nwithin the configured min/max range instead of a fixed session duration.\nMutually exclusive with `sessionDurations`. A service uses one or the other.\nCan't be combined with `workingHours`.\n\nUse `durationRange` for services where the customer chooses how long to book,\nsuch as equipment or space rentals. The `unitType` determines whether the range\nis measured in hours or days."
|
|
1460
|
-
).optional()
|
|
1382
|
+
).min(0).max(720).optional()
|
|
1461
1383
|
}).describe("Limitations affecting the service availability.").optional()
|
|
1462
1384
|
}).describe(
|
|
1463
1385
|
"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)."
|
|
@@ -2199,44 +2121,7 @@ var BulkCreateServicesRequest = z.object({
|
|
|
2199
2121
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
2200
2122
|
timeBetweenSessions: z.number().int().describe(
|
|
2201
2123
|
"The number of minutes between the end of a session and the start of the next."
|
|
2202
|
-
).min(0).max(720).optional()
|
|
2203
|
-
durationRange: z.intersection(
|
|
2204
|
-
z.object({ unitType: z.enum(["HOUR", "DAY"]).optional() }),
|
|
2205
|
-
z.xor([
|
|
2206
|
-
z.object({
|
|
2207
|
-
hourOptions: z.never().optional(),
|
|
2208
|
-
dayOptions: z.never().optional()
|
|
2209
|
-
}),
|
|
2210
|
-
z.object({
|
|
2211
|
-
dayOptions: z.never().optional(),
|
|
2212
|
-
hourOptions: z.object({
|
|
2213
|
-
minDurationInMinutes: z.number().int().describe(
|
|
2214
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
2215
|
-
).min(30).max(1440).optional(),
|
|
2216
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
2217
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
2218
|
-
).min(30).max(1440).optional()
|
|
2219
|
-
}).describe(
|
|
2220
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
2221
|
-
)
|
|
2222
|
-
}),
|
|
2223
|
-
z.object({
|
|
2224
|
-
hourOptions: z.never().optional(),
|
|
2225
|
-
dayOptions: z.object({
|
|
2226
|
-
minDurationInDays: z.number().int().describe(
|
|
2227
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
2228
|
-
).min(1).max(8).optional(),
|
|
2229
|
-
maxDurationInDays: z.number().int().describe(
|
|
2230
|
-
"Maximum bookable duration in days. The customer can't book for more than this number of days.\n\nMust be greater than or equal to `minDurationInDays`."
|
|
2231
|
-
).min(1).max(8).optional()
|
|
2232
|
-
}).describe(
|
|
2233
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
2234
|
-
)
|
|
2235
|
-
})
|
|
2236
|
-
])
|
|
2237
|
-
).describe(
|
|
2238
|
-
"Duration range for the service. When set, the customer picks a duration\nwithin the configured min/max range instead of a fixed session duration.\nMutually exclusive with `sessionDurations`. A service uses one or the other.\nCan't be combined with `workingHours`.\n\nUse `durationRange` for services where the customer chooses how long to book,\nsuch as equipment or space rentals. The `unitType` determines whether the range\nis measured in hours or days."
|
|
2239
|
-
).optional()
|
|
2124
|
+
).min(0).max(720).optional()
|
|
2240
2125
|
}).describe("Limitations affecting the service availability.").optional()
|
|
2241
2126
|
}).describe(
|
|
2242
2127
|
"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)."
|
|
@@ -3025,48 +2910,7 @@ var BulkCreateServicesResponse = z.object({
|
|
|
3025
2910
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
3026
2911
|
timeBetweenSessions: z.number().int().describe(
|
|
3027
2912
|
"The number of minutes between the end of a session and the start of the next."
|
|
3028
|
-
).min(0).max(720).optional()
|
|
3029
|
-
durationRange: z.intersection(
|
|
3030
|
-
z.object({
|
|
3031
|
-
unitType: z.enum(["HOUR", "DAY"]).describe(
|
|
3032
|
-
"The unit type for this duration range. Determines which configuration to use in the `config` union."
|
|
3033
|
-
).optional()
|
|
3034
|
-
}),
|
|
3035
|
-
z.xor([
|
|
3036
|
-
z.object({
|
|
3037
|
-
hourOptions: z.never().optional(),
|
|
3038
|
-
dayOptions: z.never().optional()
|
|
3039
|
-
}),
|
|
3040
|
-
z.object({
|
|
3041
|
-
dayOptions: z.never().optional(),
|
|
3042
|
-
hourOptions: z.object({
|
|
3043
|
-
minDurationInMinutes: z.number().int().describe(
|
|
3044
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
3045
|
-
).min(30).max(1440).optional(),
|
|
3046
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
3047
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
3048
|
-
).min(30).max(1440).optional()
|
|
3049
|
-
}).describe(
|
|
3050
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
3051
|
-
)
|
|
3052
|
-
}),
|
|
3053
|
-
z.object({
|
|
3054
|
-
hourOptions: z.never().optional(),
|
|
3055
|
-
dayOptions: z.object({
|
|
3056
|
-
minDurationInDays: z.number().int().describe(
|
|
3057
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
3058
|
-
).min(1).max(8).optional(),
|
|
3059
|
-
maxDurationInDays: z.number().int().describe(
|
|
3060
|
-
"Maximum bookable duration in days. The customer can't book for more than this number of days.\n\nMust be greater than or equal to `minDurationInDays`."
|
|
3061
|
-
).min(1).max(8).optional()
|
|
3062
|
-
}).describe(
|
|
3063
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
3064
|
-
)
|
|
3065
|
-
})
|
|
3066
|
-
])
|
|
3067
|
-
).describe(
|
|
3068
|
-
"Duration range for the service. When set, the customer picks a duration\nwithin the configured min/max range instead of a fixed session duration.\nMutually exclusive with `sessionDurations`. A service uses one or the other.\nCan't be combined with `workingHours`.\n\nUse `durationRange` for services where the customer chooses how long to book,\nsuch as equipment or space rentals. The `unitType` determines whether the range\nis measured in hours or days."
|
|
3069
|
-
).optional()
|
|
2913
|
+
).min(0).max(720).optional()
|
|
3070
2914
|
}).describe("Limitations affecting the service availability.").optional()
|
|
3071
2915
|
}).describe(
|
|
3072
2916
|
"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)."
|
|
@@ -3836,48 +3680,7 @@ var GetServiceResponse = z.object({
|
|
|
3836
3680
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
3837
3681
|
timeBetweenSessions: z.number().int().describe(
|
|
3838
3682
|
"The number of minutes between the end of a session and the start of the next."
|
|
3839
|
-
).min(0).max(720).optional()
|
|
3840
|
-
durationRange: z.intersection(
|
|
3841
|
-
z.object({
|
|
3842
|
-
unitType: z.enum(["HOUR", "DAY"]).describe(
|
|
3843
|
-
"The unit type for this duration range. Determines which configuration to use in the `config` union."
|
|
3844
|
-
).optional()
|
|
3845
|
-
}),
|
|
3846
|
-
z.xor([
|
|
3847
|
-
z.object({
|
|
3848
|
-
hourOptions: z.never().optional(),
|
|
3849
|
-
dayOptions: z.never().optional()
|
|
3850
|
-
}),
|
|
3851
|
-
z.object({
|
|
3852
|
-
dayOptions: z.never().optional(),
|
|
3853
|
-
hourOptions: z.object({
|
|
3854
|
-
minDurationInMinutes: z.number().int().describe(
|
|
3855
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
3856
|
-
).min(30).max(1440).optional(),
|
|
3857
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
3858
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
3859
|
-
).min(30).max(1440).optional()
|
|
3860
|
-
}).describe(
|
|
3861
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
3862
|
-
)
|
|
3863
|
-
}),
|
|
3864
|
-
z.object({
|
|
3865
|
-
hourOptions: z.never().optional(),
|
|
3866
|
-
dayOptions: z.object({
|
|
3867
|
-
minDurationInDays: z.number().int().describe(
|
|
3868
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
3869
|
-
).min(1).max(8).optional(),
|
|
3870
|
-
maxDurationInDays: z.number().int().describe(
|
|
3871
|
-
"Maximum bookable duration in days. The customer can't book for more than this number of days.\n\nMust be greater than or equal to `minDurationInDays`."
|
|
3872
|
-
).min(1).max(8).optional()
|
|
3873
|
-
}).describe(
|
|
3874
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
3875
|
-
)
|
|
3876
|
-
})
|
|
3877
|
-
])
|
|
3878
|
-
).describe(
|
|
3879
|
-
"Duration range for the service. When set, the customer picks a duration\nwithin the configured min/max range instead of a fixed session duration.\nMutually exclusive with `sessionDurations`. A service uses one or the other.\nCan't be combined with `workingHours`.\n\nUse `durationRange` for services where the customer chooses how long to book,\nsuch as equipment or space rentals. The `unitType` determines whether the range\nis measured in hours or days."
|
|
3880
|
-
).optional()
|
|
3683
|
+
).min(0).max(720).optional()
|
|
3881
3684
|
}).describe("Limitations affecting the service availability.").optional()
|
|
3882
3685
|
}).describe(
|
|
3883
3686
|
"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)."
|
|
@@ -4618,44 +4421,7 @@ var UpdateServiceRequest = z.object({
|
|
|
4618
4421
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
4619
4422
|
timeBetweenSessions: z.number().int().describe(
|
|
4620
4423
|
"The number of minutes between the end of a session and the start of the next."
|
|
4621
|
-
).min(0).max(720).optional()
|
|
4622
|
-
durationRange: z.intersection(
|
|
4623
|
-
z.object({ unitType: z.enum(["HOUR", "DAY"]).optional() }),
|
|
4624
|
-
z.xor([
|
|
4625
|
-
z.object({
|
|
4626
|
-
hourOptions: z.never().optional(),
|
|
4627
|
-
dayOptions: z.never().optional()
|
|
4628
|
-
}),
|
|
4629
|
-
z.object({
|
|
4630
|
-
dayOptions: z.never().optional(),
|
|
4631
|
-
hourOptions: z.object({
|
|
4632
|
-
minDurationInMinutes: z.number().int().describe(
|
|
4633
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
4634
|
-
).min(30).max(1440).optional(),
|
|
4635
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
4636
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
4637
|
-
).min(30).max(1440).optional()
|
|
4638
|
-
}).describe(
|
|
4639
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
4640
|
-
)
|
|
4641
|
-
}),
|
|
4642
|
-
z.object({
|
|
4643
|
-
hourOptions: z.never().optional(),
|
|
4644
|
-
dayOptions: z.object({
|
|
4645
|
-
minDurationInDays: z.number().int().describe(
|
|
4646
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
4647
|
-
).min(1).max(8).optional(),
|
|
4648
|
-
maxDurationInDays: z.number().int().describe(
|
|
4649
|
-
"Maximum bookable duration in days. The customer can't book for more than this number of days.\n\nMust be greater than or equal to `minDurationInDays`."
|
|
4650
|
-
).min(1).max(8).optional()
|
|
4651
|
-
}).describe(
|
|
4652
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
4653
|
-
)
|
|
4654
|
-
})
|
|
4655
|
-
])
|
|
4656
|
-
).describe(
|
|
4657
|
-
"Duration range for the service. When set, the customer picks a duration\nwithin the configured min/max range instead of a fixed session duration.\nMutually exclusive with `sessionDurations`. A service uses one or the other.\nCan't be combined with `workingHours`.\n\nUse `durationRange` for services where the customer chooses how long to book,\nsuch as equipment or space rentals. The `unitType` determines whether the range\nis measured in hours or days."
|
|
4658
|
-
).optional()
|
|
4424
|
+
).min(0).max(720).optional()
|
|
4659
4425
|
}).describe("Limitations affecting the service availability.").optional()
|
|
4660
4426
|
}).describe(
|
|
4661
4427
|
"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)."
|
|
@@ -5398,48 +5164,7 @@ var UpdateServiceResponse = z.object({
|
|
|
5398
5164
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
5399
5165
|
timeBetweenSessions: z.number().int().describe(
|
|
5400
5166
|
"The number of minutes between the end of a session and the start of the next."
|
|
5401
|
-
).min(0).max(720).optional()
|
|
5402
|
-
durationRange: z.intersection(
|
|
5403
|
-
z.object({
|
|
5404
|
-
unitType: z.enum(["HOUR", "DAY"]).describe(
|
|
5405
|
-
"The unit type for this duration range. Determines which configuration to use in the `config` union."
|
|
5406
|
-
).optional()
|
|
5407
|
-
}),
|
|
5408
|
-
z.xor([
|
|
5409
|
-
z.object({
|
|
5410
|
-
hourOptions: z.never().optional(),
|
|
5411
|
-
dayOptions: z.never().optional()
|
|
5412
|
-
}),
|
|
5413
|
-
z.object({
|
|
5414
|
-
dayOptions: z.never().optional(),
|
|
5415
|
-
hourOptions: z.object({
|
|
5416
|
-
minDurationInMinutes: z.number().int().describe(
|
|
5417
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
5418
|
-
).min(30).max(1440).optional(),
|
|
5419
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
5420
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
5421
|
-
).min(30).max(1440).optional()
|
|
5422
|
-
}).describe(
|
|
5423
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
5424
|
-
)
|
|
5425
|
-
}),
|
|
5426
|
-
z.object({
|
|
5427
|
-
hourOptions: z.never().optional(),
|
|
5428
|
-
dayOptions: z.object({
|
|
5429
|
-
minDurationInDays: z.number().int().describe(
|
|
5430
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
5431
|
-
).min(1).max(8).optional(),
|
|
5432
|
-
maxDurationInDays: z.number().int().describe(
|
|
5433
|
-
"Maximum bookable duration in days. The customer can't book for more than this number of days.\n\nMust be greater than or equal to `minDurationInDays`."
|
|
5434
|
-
).min(1).max(8).optional()
|
|
5435
|
-
}).describe(
|
|
5436
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
5437
|
-
)
|
|
5438
|
-
})
|
|
5439
|
-
])
|
|
5440
|
-
).describe(
|
|
5441
|
-
"Duration range for the service. When set, the customer picks a duration\nwithin the configured min/max range instead of a fixed session duration.\nMutually exclusive with `sessionDurations`. A service uses one or the other.\nCan't be combined with `workingHours`.\n\nUse `durationRange` for services where the customer chooses how long to book,\nsuch as equipment or space rentals. The `unitType` determines whether the range\nis measured in hours or days."
|
|
5442
|
-
).optional()
|
|
5167
|
+
).min(0).max(720).optional()
|
|
5443
5168
|
}).describe("Limitations affecting the service availability.").optional()
|
|
5444
5169
|
}).describe(
|
|
5445
5170
|
"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)."
|
|
@@ -6201,46 +5926,7 @@ var BulkUpdateServicesRequest = z.object({
|
|
|
6201
5926
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
6202
5927
|
timeBetweenSessions: z.number().int().describe(
|
|
6203
5928
|
"The number of minutes between the end of a session and the start of the next."
|
|
6204
|
-
).min(0).max(720).optional()
|
|
6205
|
-
durationRange: z.intersection(
|
|
6206
|
-
z.object({
|
|
6207
|
-
unitType: z.enum(["HOUR", "DAY"]).optional()
|
|
6208
|
-
}),
|
|
6209
|
-
z.xor([
|
|
6210
|
-
z.object({
|
|
6211
|
-
hourOptions: z.never().optional(),
|
|
6212
|
-
dayOptions: z.never().optional()
|
|
6213
|
-
}),
|
|
6214
|
-
z.object({
|
|
6215
|
-
dayOptions: z.never().optional(),
|
|
6216
|
-
hourOptions: z.object({
|
|
6217
|
-
minDurationInMinutes: z.number().int().describe(
|
|
6218
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
6219
|
-
).min(30).max(1440).optional(),
|
|
6220
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
6221
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
6222
|
-
).min(30).max(1440).optional()
|
|
6223
|
-
}).describe(
|
|
6224
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
6225
|
-
)
|
|
6226
|
-
}),
|
|
6227
|
-
z.object({
|
|
6228
|
-
hourOptions: z.never().optional(),
|
|
6229
|
-
dayOptions: z.object({
|
|
6230
|
-
minDurationInDays: z.number().int().describe(
|
|
6231
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
6232
|
-
).min(1).max(8).optional(),
|
|
6233
|
-
maxDurationInDays: z.number().int().describe(
|
|
6234
|
-
"Maximum bookable duration in days. The customer can't book for more than this number of days.\n\nMust be greater than or equal to `minDurationInDays`."
|
|
6235
|
-
).min(1).max(8).optional()
|
|
6236
|
-
}).describe(
|
|
6237
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
6238
|
-
)
|
|
6239
|
-
})
|
|
6240
|
-
])
|
|
6241
|
-
).describe(
|
|
6242
|
-
"Duration range for the service. When set, the customer picks a duration\nwithin the configured min/max range instead of a fixed session duration.\nMutually exclusive with `sessionDurations`. A service uses one or the other.\nCan't be combined with `workingHours`.\n\nUse `durationRange` for services where the customer chooses how long to book,\nsuch as equipment or space rentals. The `unitType` determines whether the range\nis measured in hours or days."
|
|
6243
|
-
).optional()
|
|
5929
|
+
).min(0).max(720).optional()
|
|
6244
5930
|
}).describe(
|
|
6245
5931
|
"Limitations affecting the service availability."
|
|
6246
5932
|
).optional()
|
|
@@ -7036,48 +6722,7 @@ var BulkUpdateServicesResponse = z.object({
|
|
|
7036
6722
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
7037
6723
|
timeBetweenSessions: z.number().int().describe(
|
|
7038
6724
|
"The number of minutes between the end of a session and the start of the next."
|
|
7039
|
-
).min(0).max(720).optional()
|
|
7040
|
-
durationRange: z.intersection(
|
|
7041
|
-
z.object({
|
|
7042
|
-
unitType: z.enum(["HOUR", "DAY"]).describe(
|
|
7043
|
-
"The unit type for this duration range. Determines which configuration to use in the `config` union."
|
|
7044
|
-
).optional()
|
|
7045
|
-
}),
|
|
7046
|
-
z.xor([
|
|
7047
|
-
z.object({
|
|
7048
|
-
hourOptions: z.never().optional(),
|
|
7049
|
-
dayOptions: z.never().optional()
|
|
7050
|
-
}),
|
|
7051
|
-
z.object({
|
|
7052
|
-
dayOptions: z.never().optional(),
|
|
7053
|
-
hourOptions: z.object({
|
|
7054
|
-
minDurationInMinutes: z.number().int().describe(
|
|
7055
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
7056
|
-
).min(30).max(1440).optional(),
|
|
7057
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
7058
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
7059
|
-
).min(30).max(1440).optional()
|
|
7060
|
-
}).describe(
|
|
7061
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
7062
|
-
)
|
|
7063
|
-
}),
|
|
7064
|
-
z.object({
|
|
7065
|
-
hourOptions: z.never().optional(),
|
|
7066
|
-
dayOptions: z.object({
|
|
7067
|
-
minDurationInDays: z.number().int().describe(
|
|
7068
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
7069
|
-
).min(1).max(8).optional(),
|
|
7070
|
-
maxDurationInDays: z.number().int().describe(
|
|
7071
|
-
"Maximum bookable duration in days. The customer can't book for more than this number of days.\n\nMust be greater than or equal to `minDurationInDays`."
|
|
7072
|
-
).min(1).max(8).optional()
|
|
7073
|
-
}).describe(
|
|
7074
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
7075
|
-
)
|
|
7076
|
-
})
|
|
7077
|
-
])
|
|
7078
|
-
).describe(
|
|
7079
|
-
"Duration range for the service. When set, the customer picks a duration\nwithin the configured min/max range instead of a fixed session duration.\nMutually exclusive with `sessionDurations`. A service uses one or the other.\nCan't be combined with `workingHours`.\n\nUse `durationRange` for services where the customer chooses how long to book,\nsuch as equipment or space rentals. The `unitType` determines whether the range\nis measured in hours or days."
|
|
7080
|
-
).optional()
|
|
6725
|
+
).min(0).max(720).optional()
|
|
7081
6726
|
}).describe("Limitations affecting the service availability.").optional()
|
|
7082
6727
|
}).describe(
|
|
7083
6728
|
"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)."
|
|
@@ -7836,44 +7481,7 @@ var BulkUpdateServicesByFilterRequest = z.object({
|
|
|
7836
7481
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
7837
7482
|
timeBetweenSessions: z.number().int().describe(
|
|
7838
7483
|
"The number of minutes between the end of a session and the start of the next."
|
|
7839
|
-
).min(0).max(720).optional()
|
|
7840
|
-
durationRange: z.intersection(
|
|
7841
|
-
z.object({ unitType: z.enum(["HOUR", "DAY"]).optional() }),
|
|
7842
|
-
z.xor([
|
|
7843
|
-
z.object({
|
|
7844
|
-
hourOptions: z.never().optional(),
|
|
7845
|
-
dayOptions: z.never().optional()
|
|
7846
|
-
}),
|
|
7847
|
-
z.object({
|
|
7848
|
-
dayOptions: z.never().optional(),
|
|
7849
|
-
hourOptions: z.object({
|
|
7850
|
-
minDurationInMinutes: z.number().int().describe(
|
|
7851
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
7852
|
-
).min(30).max(1440).optional(),
|
|
7853
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
7854
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
7855
|
-
).min(30).max(1440).optional()
|
|
7856
|
-
}).describe(
|
|
7857
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
7858
|
-
)
|
|
7859
|
-
}),
|
|
7860
|
-
z.object({
|
|
7861
|
-
hourOptions: z.never().optional(),
|
|
7862
|
-
dayOptions: z.object({
|
|
7863
|
-
minDurationInDays: z.number().int().describe(
|
|
7864
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
7865
|
-
).min(1).max(8).optional(),
|
|
7866
|
-
maxDurationInDays: z.number().int().describe(
|
|
7867
|
-
"Maximum bookable duration in days. The customer can't book for more than this number of days.\n\nMust be greater than or equal to `minDurationInDays`."
|
|
7868
|
-
).min(1).max(8).optional()
|
|
7869
|
-
}).describe(
|
|
7870
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
7871
|
-
)
|
|
7872
|
-
})
|
|
7873
|
-
])
|
|
7874
|
-
).describe(
|
|
7875
|
-
"Duration range for the service. When set, the customer picks a duration\nwithin the configured min/max range instead of a fixed session duration.\nMutually exclusive with `sessionDurations`. A service uses one or the other.\nCan't be combined with `workingHours`.\n\nUse `durationRange` for services where the customer chooses how long to book,\nsuch as equipment or space rentals. The `unitType` determines whether the range\nis measured in hours or days."
|
|
7876
|
-
).optional()
|
|
7484
|
+
).min(0).max(720).optional()
|
|
7877
7485
|
}).describe("Limitations affecting the service availability.").optional()
|
|
7878
7486
|
}).describe(
|
|
7879
7487
|
"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)."
|
|
@@ -8709,48 +8317,7 @@ var BulkDeleteServicesResponse = z.object({
|
|
|
8709
8317
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
8710
8318
|
timeBetweenSessions: z.number().int().describe(
|
|
8711
8319
|
"The number of minutes between the end of a session and the start of the next."
|
|
8712
|
-
).min(0).max(720).optional()
|
|
8713
|
-
durationRange: z.intersection(
|
|
8714
|
-
z.object({
|
|
8715
|
-
unitType: z.enum(["HOUR", "DAY"]).describe(
|
|
8716
|
-
"The unit type for this duration range. Determines which configuration to use in the `config` union."
|
|
8717
|
-
).optional()
|
|
8718
|
-
}),
|
|
8719
|
-
z.xor([
|
|
8720
|
-
z.object({
|
|
8721
|
-
hourOptions: z.never().optional(),
|
|
8722
|
-
dayOptions: z.never().optional()
|
|
8723
|
-
}),
|
|
8724
|
-
z.object({
|
|
8725
|
-
dayOptions: z.never().optional(),
|
|
8726
|
-
hourOptions: z.object({
|
|
8727
|
-
minDurationInMinutes: z.number().int().describe(
|
|
8728
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
8729
|
-
).min(30).max(1440).optional(),
|
|
8730
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
8731
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
8732
|
-
).min(30).max(1440).optional()
|
|
8733
|
-
}).describe(
|
|
8734
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
8735
|
-
)
|
|
8736
|
-
}),
|
|
8737
|
-
z.object({
|
|
8738
|
-
hourOptions: z.never().optional(),
|
|
8739
|
-
dayOptions: z.object({
|
|
8740
|
-
minDurationInDays: z.number().int().describe(
|
|
8741
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
8742
|
-
).min(1).max(8).optional(),
|
|
8743
|
-
maxDurationInDays: z.number().int().describe(
|
|
8744
|
-
"Maximum bookable duration in days. The customer can't book for more than this number of days.\n\nMust be greater than or equal to `minDurationInDays`."
|
|
8745
|
-
).min(1).max(8).optional()
|
|
8746
|
-
}).describe(
|
|
8747
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
8748
|
-
)
|
|
8749
|
-
})
|
|
8750
|
-
])
|
|
8751
|
-
).describe(
|
|
8752
|
-
"Duration range for the service. When set, the customer picks a duration\nwithin the configured min/max range instead of a fixed session duration.\nMutually exclusive with `sessionDurations`. A service uses one or the other.\nCan't be combined with `workingHours`.\n\nUse `durationRange` for services where the customer chooses how long to book,\nsuch as equipment or space rentals. The `unitType` determines whether the range\nis measured in hours or days."
|
|
8753
|
-
).optional()
|
|
8320
|
+
).min(0).max(720).optional()
|
|
8754
8321
|
}).describe("Limitations affecting the service availability.").optional()
|
|
8755
8322
|
}).describe(
|
|
8756
8323
|
"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)."
|
|
@@ -9881,48 +9448,7 @@ var QueryServicesResponse = z.object({
|
|
|
9881
9448
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
9882
9449
|
timeBetweenSessions: z.number().int().describe(
|
|
9883
9450
|
"The number of minutes between the end of a session and the start of the next."
|
|
9884
|
-
).min(0).max(720).optional()
|
|
9885
|
-
durationRange: z.intersection(
|
|
9886
|
-
z.object({
|
|
9887
|
-
unitType: z.enum(["HOUR", "DAY"]).describe(
|
|
9888
|
-
"The unit type for this duration range. Determines which configuration to use in the `config` union."
|
|
9889
|
-
).optional()
|
|
9890
|
-
}),
|
|
9891
|
-
z.xor([
|
|
9892
|
-
z.object({
|
|
9893
|
-
hourOptions: z.never().optional(),
|
|
9894
|
-
dayOptions: z.never().optional()
|
|
9895
|
-
}),
|
|
9896
|
-
z.object({
|
|
9897
|
-
dayOptions: z.never().optional(),
|
|
9898
|
-
hourOptions: z.object({
|
|
9899
|
-
minDurationInMinutes: z.number().int().describe(
|
|
9900
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
9901
|
-
).min(30).max(1440).optional(),
|
|
9902
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
9903
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
9904
|
-
).min(30).max(1440).optional()
|
|
9905
|
-
}).describe(
|
|
9906
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
9907
|
-
)
|
|
9908
|
-
}),
|
|
9909
|
-
z.object({
|
|
9910
|
-
hourOptions: z.never().optional(),
|
|
9911
|
-
dayOptions: z.object({
|
|
9912
|
-
minDurationInDays: z.number().int().describe(
|
|
9913
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
9914
|
-
).min(1).max(8).optional(),
|
|
9915
|
-
maxDurationInDays: z.number().int().describe(
|
|
9916
|
-
"Maximum bookable duration in days. The customer can't book for more than this number of days.\n\nMust be greater than or equal to `minDurationInDays`."
|
|
9917
|
-
).min(1).max(8).optional()
|
|
9918
|
-
}).describe(
|
|
9919
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
9920
|
-
)
|
|
9921
|
-
})
|
|
9922
|
-
])
|
|
9923
|
-
).describe(
|
|
9924
|
-
"Duration range for the service. When set, the customer picks a duration\nwithin the configured min/max range instead of a fixed session duration.\nMutually exclusive with `sessionDurations`. A service uses one or the other.\nCan't be combined with `workingHours`.\n\nUse `durationRange` for services where the customer chooses how long to book,\nsuch as equipment or space rentals. The `unitType` determines whether the range\nis measured in hours or days."
|
|
9925
|
-
).optional()
|
|
9451
|
+
).min(0).max(720).optional()
|
|
9926
9452
|
}).describe("Limitations affecting the service availability.").optional()
|
|
9927
9453
|
}).describe(
|
|
9928
9454
|
"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)."
|
|
@@ -11089,48 +10615,7 @@ var SearchServicesResponse = z.object({
|
|
|
11089
10615
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
11090
10616
|
timeBetweenSessions: z.number().int().describe(
|
|
11091
10617
|
"The number of minutes between the end of a session and the start of the next."
|
|
11092
|
-
).min(0).max(720).optional()
|
|
11093
|
-
durationRange: z.intersection(
|
|
11094
|
-
z.object({
|
|
11095
|
-
unitType: z.enum(["HOUR", "DAY"]).describe(
|
|
11096
|
-
"The unit type for this duration range. Determines which configuration to use in the `config` union."
|
|
11097
|
-
).optional()
|
|
11098
|
-
}),
|
|
11099
|
-
z.xor([
|
|
11100
|
-
z.object({
|
|
11101
|
-
hourOptions: z.never().optional(),
|
|
11102
|
-
dayOptions: z.never().optional()
|
|
11103
|
-
}),
|
|
11104
|
-
z.object({
|
|
11105
|
-
dayOptions: z.never().optional(),
|
|
11106
|
-
hourOptions: z.object({
|
|
11107
|
-
minDurationInMinutes: z.number().int().describe(
|
|
11108
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
11109
|
-
).min(30).max(1440).optional(),
|
|
11110
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
11111
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
11112
|
-
).min(30).max(1440).optional()
|
|
11113
|
-
}).describe(
|
|
11114
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
11115
|
-
)
|
|
11116
|
-
}),
|
|
11117
|
-
z.object({
|
|
11118
|
-
hourOptions: z.never().optional(),
|
|
11119
|
-
dayOptions: z.object({
|
|
11120
|
-
minDurationInDays: z.number().int().describe(
|
|
11121
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
11122
|
-
).min(1).max(8).optional(),
|
|
11123
|
-
maxDurationInDays: z.number().int().describe(
|
|
11124
|
-
"Maximum bookable duration in days. The customer can't book for more than this number of days.\n\nMust be greater than or equal to `minDurationInDays`."
|
|
11125
|
-
).min(1).max(8).optional()
|
|
11126
|
-
}).describe(
|
|
11127
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
11128
|
-
)
|
|
11129
|
-
})
|
|
11130
|
-
])
|
|
11131
|
-
).describe(
|
|
11132
|
-
"Duration range for the service. When set, the customer picks a duration\nwithin the configured min/max range instead of a fixed session duration.\nMutually exclusive with `sessionDurations`. A service uses one or the other.\nCan't be combined with `workingHours`.\n\nUse `durationRange` for services where the customer chooses how long to book,\nsuch as equipment or space rentals. The `unitType` determines whether the range\nis measured in hours or days."
|
|
11133
|
-
).optional()
|
|
10618
|
+
).min(0).max(720).optional()
|
|
11134
10619
|
}).describe("Limitations affecting the service availability.").optional()
|
|
11135
10620
|
}).describe(
|
|
11136
10621
|
"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)."
|
|
@@ -12382,48 +11867,7 @@ var QueryPoliciesResponse = z.object({
|
|
|
12382
11867
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
12383
11868
|
timeBetweenSessions: z.number().int().describe(
|
|
12384
11869
|
"The number of minutes between the end of a session and the start of the next."
|
|
12385
|
-
).min(0).max(720).optional()
|
|
12386
|
-
durationRange: z.intersection(
|
|
12387
|
-
z.object({
|
|
12388
|
-
unitType: z.enum(["HOUR", "DAY"]).describe(
|
|
12389
|
-
"The unit type for this duration range. Determines which configuration to use in the `config` union."
|
|
12390
|
-
).optional()
|
|
12391
|
-
}),
|
|
12392
|
-
z.xor([
|
|
12393
|
-
z.object({
|
|
12394
|
-
hourOptions: z.never().optional(),
|
|
12395
|
-
dayOptions: z.never().optional()
|
|
12396
|
-
}),
|
|
12397
|
-
z.object({
|
|
12398
|
-
dayOptions: z.never().optional(),
|
|
12399
|
-
hourOptions: z.object({
|
|
12400
|
-
minDurationInMinutes: z.number().int().describe(
|
|
12401
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
12402
|
-
).min(30).max(1440).optional(),
|
|
12403
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
12404
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
12405
|
-
).min(30).max(1440).optional()
|
|
12406
|
-
}).describe(
|
|
12407
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
12408
|
-
)
|
|
12409
|
-
}),
|
|
12410
|
-
z.object({
|
|
12411
|
-
hourOptions: z.never().optional(),
|
|
12412
|
-
dayOptions: z.object({
|
|
12413
|
-
minDurationInDays: z.number().int().describe(
|
|
12414
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
12415
|
-
).min(1).max(8).optional(),
|
|
12416
|
-
maxDurationInDays: z.number().int().describe(
|
|
12417
|
-
"Maximum bookable duration in days. The customer can't book for more than this number of days.\n\nMust be greater than or equal to `minDurationInDays`."
|
|
12418
|
-
).min(1).max(8).optional()
|
|
12419
|
-
}).describe(
|
|
12420
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
12421
|
-
)
|
|
12422
|
-
})
|
|
12423
|
-
])
|
|
12424
|
-
).describe(
|
|
12425
|
-
"Duration range for the service. When set, the customer picks a duration\nwithin the configured min/max range instead of a fixed session duration.\nMutually exclusive with `sessionDurations`. A service uses one or the other.\nCan't be combined with `workingHours`.\n\nUse `durationRange` for services where the customer chooses how long to book,\nsuch as equipment or space rentals. The `unitType` determines whether the range\nis measured in hours or days."
|
|
12426
|
-
).optional()
|
|
11870
|
+
).min(0).max(720).optional()
|
|
12427
11871
|
}).describe("Limitations affecting the service availability.").optional()
|
|
12428
11872
|
}).describe(
|
|
12429
11873
|
"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)."
|
|
@@ -13601,48 +13045,7 @@ var SetServiceLocationsResponse = z.object({
|
|
|
13601
13045
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
13602
13046
|
timeBetweenSessions: z.number().int().describe(
|
|
13603
13047
|
"The number of minutes between the end of a session and the start of the next."
|
|
13604
|
-
).min(0).max(720).optional()
|
|
13605
|
-
durationRange: z.intersection(
|
|
13606
|
-
z.object({
|
|
13607
|
-
unitType: z.enum(["HOUR", "DAY"]).describe(
|
|
13608
|
-
"The unit type for this duration range. Determines which configuration to use in the `config` union."
|
|
13609
|
-
).optional()
|
|
13610
|
-
}),
|
|
13611
|
-
z.xor([
|
|
13612
|
-
z.object({
|
|
13613
|
-
hourOptions: z.never().optional(),
|
|
13614
|
-
dayOptions: z.never().optional()
|
|
13615
|
-
}),
|
|
13616
|
-
z.object({
|
|
13617
|
-
dayOptions: z.never().optional(),
|
|
13618
|
-
hourOptions: z.object({
|
|
13619
|
-
minDurationInMinutes: z.number().int().describe(
|
|
13620
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
13621
|
-
).min(30).max(1440).optional(),
|
|
13622
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
13623
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
13624
|
-
).min(30).max(1440).optional()
|
|
13625
|
-
}).describe(
|
|
13626
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
13627
|
-
)
|
|
13628
|
-
}),
|
|
13629
|
-
z.object({
|
|
13630
|
-
hourOptions: z.never().optional(),
|
|
13631
|
-
dayOptions: z.object({
|
|
13632
|
-
minDurationInDays: z.number().int().describe(
|
|
13633
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
13634
|
-
).min(1).max(8).optional(),
|
|
13635
|
-
maxDurationInDays: z.number().int().describe(
|
|
13636
|
-
"Maximum bookable duration in days. The customer can't book for more than this number of days.\n\nMust be greater than or equal to `minDurationInDays`."
|
|
13637
|
-
).min(1).max(8).optional()
|
|
13638
|
-
}).describe(
|
|
13639
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
13640
|
-
)
|
|
13641
|
-
})
|
|
13642
|
-
])
|
|
13643
|
-
).describe(
|
|
13644
|
-
"Duration range for the service. When set, the customer picks a duration\nwithin the configured min/max range instead of a fixed session duration.\nMutually exclusive with `sessionDurations`. A service uses one or the other.\nCan't be combined with `workingHours`.\n\nUse `durationRange` for services where the customer chooses how long to book,\nsuch as equipment or space rentals. The `unitType` determines whether the range\nis measured in hours or days."
|
|
13645
|
-
).optional()
|
|
13048
|
+
).min(0).max(720).optional()
|
|
13646
13049
|
}).describe("Limitations affecting the service availability.").optional()
|
|
13647
13050
|
}).describe(
|
|
13648
13051
|
"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)."
|
|
@@ -14397,48 +13800,7 @@ var EnablePricingPlansForServiceResponse = z.object({
|
|
|
14397
13800
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
14398
13801
|
timeBetweenSessions: z.number().int().describe(
|
|
14399
13802
|
"The number of minutes between the end of a session and the start of the next."
|
|
14400
|
-
).min(0).max(720).optional()
|
|
14401
|
-
durationRange: z.intersection(
|
|
14402
|
-
z.object({
|
|
14403
|
-
unitType: z.enum(["HOUR", "DAY"]).describe(
|
|
14404
|
-
"The unit type for this duration range. Determines which configuration to use in the `config` union."
|
|
14405
|
-
).optional()
|
|
14406
|
-
}),
|
|
14407
|
-
z.xor([
|
|
14408
|
-
z.object({
|
|
14409
|
-
hourOptions: z.never().optional(),
|
|
14410
|
-
dayOptions: z.never().optional()
|
|
14411
|
-
}),
|
|
14412
|
-
z.object({
|
|
14413
|
-
dayOptions: z.never().optional(),
|
|
14414
|
-
hourOptions: z.object({
|
|
14415
|
-
minDurationInMinutes: z.number().int().describe(
|
|
14416
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
14417
|
-
).min(30).max(1440).optional(),
|
|
14418
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
14419
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
14420
|
-
).min(30).max(1440).optional()
|
|
14421
|
-
}).describe(
|
|
14422
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
14423
|
-
)
|
|
14424
|
-
}),
|
|
14425
|
-
z.object({
|
|
14426
|
-
hourOptions: z.never().optional(),
|
|
14427
|
-
dayOptions: z.object({
|
|
14428
|
-
minDurationInDays: z.number().int().describe(
|
|
14429
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
14430
|
-
).min(1).max(8).optional(),
|
|
14431
|
-
maxDurationInDays: z.number().int().describe(
|
|
14432
|
-
"Maximum bookable duration in days. The customer can't book for more than this number of days.\n\nMust be greater than or equal to `minDurationInDays`."
|
|
14433
|
-
).min(1).max(8).optional()
|
|
14434
|
-
}).describe(
|
|
14435
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
14436
|
-
)
|
|
14437
|
-
})
|
|
14438
|
-
])
|
|
14439
|
-
).describe(
|
|
14440
|
-
"Duration range for the service. When set, the customer picks a duration\nwithin the configured min/max range instead of a fixed session duration.\nMutually exclusive with `sessionDurations`. A service uses one or the other.\nCan't be combined with `workingHours`.\n\nUse `durationRange` for services where the customer chooses how long to book,\nsuch as equipment or space rentals. The `unitType` determines whether the range\nis measured in hours or days."
|
|
14441
|
-
).optional()
|
|
13803
|
+
).min(0).max(720).optional()
|
|
14442
13804
|
}).describe("Limitations affecting the service availability.").optional()
|
|
14443
13805
|
}).describe(
|
|
14444
13806
|
"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)."
|
|
@@ -15193,48 +14555,7 @@ var DisablePricingPlansForServiceResponse = z.object({
|
|
|
15193
14555
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
15194
14556
|
timeBetweenSessions: z.number().int().describe(
|
|
15195
14557
|
"The number of minutes between the end of a session and the start of the next."
|
|
15196
|
-
).min(0).max(720).optional()
|
|
15197
|
-
durationRange: z.intersection(
|
|
15198
|
-
z.object({
|
|
15199
|
-
unitType: z.enum(["HOUR", "DAY"]).describe(
|
|
15200
|
-
"The unit type for this duration range. Determines which configuration to use in the `config` union."
|
|
15201
|
-
).optional()
|
|
15202
|
-
}),
|
|
15203
|
-
z.xor([
|
|
15204
|
-
z.object({
|
|
15205
|
-
hourOptions: z.never().optional(),
|
|
15206
|
-
dayOptions: z.never().optional()
|
|
15207
|
-
}),
|
|
15208
|
-
z.object({
|
|
15209
|
-
dayOptions: z.never().optional(),
|
|
15210
|
-
hourOptions: z.object({
|
|
15211
|
-
minDurationInMinutes: z.number().int().describe(
|
|
15212
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
15213
|
-
).min(30).max(1440).optional(),
|
|
15214
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
15215
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
15216
|
-
).min(30).max(1440).optional()
|
|
15217
|
-
}).describe(
|
|
15218
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
15219
|
-
)
|
|
15220
|
-
}),
|
|
15221
|
-
z.object({
|
|
15222
|
-
hourOptions: z.never().optional(),
|
|
15223
|
-
dayOptions: z.object({
|
|
15224
|
-
minDurationInDays: z.number().int().describe(
|
|
15225
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
15226
|
-
).min(1).max(8).optional(),
|
|
15227
|
-
maxDurationInDays: z.number().int().describe(
|
|
15228
|
-
"Maximum bookable duration in days. The customer can't book for more than this number of days.\n\nMust be greater than or equal to `minDurationInDays`."
|
|
15229
|
-
).min(1).max(8).optional()
|
|
15230
|
-
}).describe(
|
|
15231
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
15232
|
-
)
|
|
15233
|
-
})
|
|
15234
|
-
])
|
|
15235
|
-
).describe(
|
|
15236
|
-
"Duration range for the service. When set, the customer picks a duration\nwithin the configured min/max range instead of a fixed session duration.\nMutually exclusive with `sessionDurations`. A service uses one or the other.\nCan't be combined with `workingHours`.\n\nUse `durationRange` for services where the customer chooses how long to book,\nsuch as equipment or space rentals. The `unitType` determines whether the range\nis measured in hours or days."
|
|
15237
|
-
).optional()
|
|
14558
|
+
).min(0).max(720).optional()
|
|
15238
14559
|
}).describe("Limitations affecting the service availability.").optional()
|
|
15239
14560
|
}).describe(
|
|
15240
14561
|
"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)."
|
|
@@ -16000,48 +15321,7 @@ var SetCustomSlugResponse = z.object({
|
|
|
16000
15321
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
16001
15322
|
timeBetweenSessions: z.number().int().describe(
|
|
16002
15323
|
"The number of minutes between the end of a session and the start of the next."
|
|
16003
|
-
).min(0).max(720).optional()
|
|
16004
|
-
durationRange: z.intersection(
|
|
16005
|
-
z.object({
|
|
16006
|
-
unitType: z.enum(["HOUR", "DAY"]).describe(
|
|
16007
|
-
"The unit type for this duration range. Determines which configuration to use in the `config` union."
|
|
16008
|
-
).optional()
|
|
16009
|
-
}),
|
|
16010
|
-
z.xor([
|
|
16011
|
-
z.object({
|
|
16012
|
-
hourOptions: z.never().optional(),
|
|
16013
|
-
dayOptions: z.never().optional()
|
|
16014
|
-
}),
|
|
16015
|
-
z.object({
|
|
16016
|
-
dayOptions: z.never().optional(),
|
|
16017
|
-
hourOptions: z.object({
|
|
16018
|
-
minDurationInMinutes: z.number().int().describe(
|
|
16019
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
16020
|
-
).min(30).max(1440).optional(),
|
|
16021
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
16022
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
16023
|
-
).min(30).max(1440).optional()
|
|
16024
|
-
}).describe(
|
|
16025
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
16026
|
-
)
|
|
16027
|
-
}),
|
|
16028
|
-
z.object({
|
|
16029
|
-
hourOptions: z.never().optional(),
|
|
16030
|
-
dayOptions: z.object({
|
|
16031
|
-
minDurationInDays: z.number().int().describe(
|
|
16032
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
16033
|
-
).min(1).max(8).optional(),
|
|
16034
|
-
maxDurationInDays: z.number().int().describe(
|
|
16035
|
-
"Maximum bookable duration in days. The customer can't book for more than this number of days.\n\nMust be greater than or equal to `minDurationInDays`."
|
|
16036
|
-
).min(1).max(8).optional()
|
|
16037
|
-
}).describe(
|
|
16038
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
16039
|
-
)
|
|
16040
|
-
})
|
|
16041
|
-
])
|
|
16042
|
-
).describe(
|
|
16043
|
-
"Duration range for the service. When set, the customer picks a duration\nwithin the configured min/max range instead of a fixed session duration.\nMutually exclusive with `sessionDurations`. A service uses one or the other.\nCan't be combined with `workingHours`.\n\nUse `durationRange` for services where the customer chooses how long to book,\nsuch as equipment or space rentals. The `unitType` determines whether the range\nis measured in hours or days."
|
|
16044
|
-
).optional()
|
|
15324
|
+
).min(0).max(720).optional()
|
|
16045
15325
|
}).describe("Limitations affecting the service availability.").optional()
|
|
16046
15326
|
}).describe(
|
|
16047
15327
|
"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)."
|
|
@@ -16809,48 +16089,7 @@ var CloneServiceResponse = z.object({
|
|
|
16809
16089
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
16810
16090
|
timeBetweenSessions: z.number().int().describe(
|
|
16811
16091
|
"The number of minutes between the end of a session and the start of the next."
|
|
16812
|
-
).min(0).max(720).optional()
|
|
16813
|
-
durationRange: z.intersection(
|
|
16814
|
-
z.object({
|
|
16815
|
-
unitType: z.enum(["HOUR", "DAY"]).describe(
|
|
16816
|
-
"The unit type for this duration range. Determines which configuration to use in the `config` union."
|
|
16817
|
-
).optional()
|
|
16818
|
-
}),
|
|
16819
|
-
z.xor([
|
|
16820
|
-
z.object({
|
|
16821
|
-
hourOptions: z.never().optional(),
|
|
16822
|
-
dayOptions: z.never().optional()
|
|
16823
|
-
}),
|
|
16824
|
-
z.object({
|
|
16825
|
-
dayOptions: z.never().optional(),
|
|
16826
|
-
hourOptions: z.object({
|
|
16827
|
-
minDurationInMinutes: z.number().int().describe(
|
|
16828
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
16829
|
-
).min(30).max(1440).optional(),
|
|
16830
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
16831
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
16832
|
-
).min(30).max(1440).optional()
|
|
16833
|
-
}).describe(
|
|
16834
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
16835
|
-
)
|
|
16836
|
-
}),
|
|
16837
|
-
z.object({
|
|
16838
|
-
hourOptions: z.never().optional(),
|
|
16839
|
-
dayOptions: z.object({
|
|
16840
|
-
minDurationInDays: z.number().int().describe(
|
|
16841
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
16842
|
-
).min(1).max(8).optional(),
|
|
16843
|
-
maxDurationInDays: z.number().int().describe(
|
|
16844
|
-
"Maximum bookable duration in days. The customer can't book for more than this number of days.\n\nMust be greater than or equal to `minDurationInDays`."
|
|
16845
|
-
).min(1).max(8).optional()
|
|
16846
|
-
}).describe(
|
|
16847
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
16848
|
-
)
|
|
16849
|
-
})
|
|
16850
|
-
])
|
|
16851
|
-
).describe(
|
|
16852
|
-
"Duration range for the service. When set, the customer picks a duration\nwithin the configured min/max range instead of a fixed session duration.\nMutually exclusive with `sessionDurations`. A service uses one or the other.\nCan't be combined with `workingHours`.\n\nUse `durationRange` for services where the customer chooses how long to book,\nsuch as equipment or space rentals. The `unitType` determines whether the range\nis measured in hours or days."
|
|
16853
|
-
).optional()
|
|
16092
|
+
).min(0).max(720).optional()
|
|
16854
16093
|
}).describe("Limitations affecting the service availability.").optional()
|
|
16855
16094
|
}).describe(
|
|
16856
16095
|
"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)."
|