@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
|
@@ -547,44 +547,7 @@ var CreateServiceRequest = z.object({
|
|
|
547
547
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
548
548
|
timeBetweenSessions: z.number().int().describe(
|
|
549
549
|
"The number of minutes between the end of a session and the start of the next."
|
|
550
|
-
).min(0).max(720).optional()
|
|
551
|
-
durationRange: z.intersection(
|
|
552
|
-
z.object({ unitType: z.enum(["HOUR", "DAY"]).optional() }),
|
|
553
|
-
z.xor([
|
|
554
|
-
z.object({
|
|
555
|
-
hourOptions: z.never().optional(),
|
|
556
|
-
dayOptions: z.never().optional()
|
|
557
|
-
}),
|
|
558
|
-
z.object({
|
|
559
|
-
dayOptions: z.never().optional(),
|
|
560
|
-
hourOptions: z.object({
|
|
561
|
-
minDurationInMinutes: z.number().int().describe(
|
|
562
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
563
|
-
).min(30).max(1440).optional(),
|
|
564
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
565
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
566
|
-
).min(30).max(1440).optional()
|
|
567
|
-
}).describe(
|
|
568
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
569
|
-
)
|
|
570
|
-
}),
|
|
571
|
-
z.object({
|
|
572
|
-
hourOptions: z.never().optional(),
|
|
573
|
-
dayOptions: z.object({
|
|
574
|
-
minDurationInDays: z.number().int().describe(
|
|
575
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
576
|
-
).min(1).max(8).optional(),
|
|
577
|
-
maxDurationInDays: z.number().int().describe(
|
|
578
|
-
"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`."
|
|
579
|
-
).min(1).max(8).optional()
|
|
580
|
-
}).describe(
|
|
581
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
582
|
-
)
|
|
583
|
-
})
|
|
584
|
-
])
|
|
585
|
-
).describe(
|
|
586
|
-
"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."
|
|
587
|
-
).optional()
|
|
550
|
+
).min(0).max(720).optional()
|
|
588
551
|
}).describe("Limitations affecting the service availability.").optional()
|
|
589
552
|
}).describe(
|
|
590
553
|
"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)."
|
|
@@ -1327,48 +1290,7 @@ var CreateServiceResponse = z.object({
|
|
|
1327
1290
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
1328
1291
|
timeBetweenSessions: z.number().int().describe(
|
|
1329
1292
|
"The number of minutes between the end of a session and the start of the next."
|
|
1330
|
-
).min(0).max(720).optional()
|
|
1331
|
-
durationRange: z.intersection(
|
|
1332
|
-
z.object({
|
|
1333
|
-
unitType: z.enum(["HOUR", "DAY"]).describe(
|
|
1334
|
-
"The unit type for this duration range. Determines which configuration to use in the `config` union."
|
|
1335
|
-
).optional()
|
|
1336
|
-
}),
|
|
1337
|
-
z.xor([
|
|
1338
|
-
z.object({
|
|
1339
|
-
hourOptions: z.never().optional(),
|
|
1340
|
-
dayOptions: z.never().optional()
|
|
1341
|
-
}),
|
|
1342
|
-
z.object({
|
|
1343
|
-
dayOptions: z.never().optional(),
|
|
1344
|
-
hourOptions: z.object({
|
|
1345
|
-
minDurationInMinutes: z.number().int().describe(
|
|
1346
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
1347
|
-
).min(30).max(1440).optional(),
|
|
1348
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
1349
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
1350
|
-
).min(30).max(1440).optional()
|
|
1351
|
-
}).describe(
|
|
1352
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
1353
|
-
)
|
|
1354
|
-
}),
|
|
1355
|
-
z.object({
|
|
1356
|
-
hourOptions: z.never().optional(),
|
|
1357
|
-
dayOptions: z.object({
|
|
1358
|
-
minDurationInDays: z.number().int().describe(
|
|
1359
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
1360
|
-
).min(1).max(8).optional(),
|
|
1361
|
-
maxDurationInDays: z.number().int().describe(
|
|
1362
|
-
"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`."
|
|
1363
|
-
).min(1).max(8).optional()
|
|
1364
|
-
}).describe(
|
|
1365
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
1366
|
-
)
|
|
1367
|
-
})
|
|
1368
|
-
])
|
|
1369
|
-
).describe(
|
|
1370
|
-
"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."
|
|
1371
|
-
).optional()
|
|
1293
|
+
).min(0).max(720).optional()
|
|
1372
1294
|
}).describe("Limitations affecting the service availability.").optional()
|
|
1373
1295
|
}).describe(
|
|
1374
1296
|
"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)."
|
|
@@ -2110,44 +2032,7 @@ var BulkCreateServicesRequest = z.object({
|
|
|
2110
2032
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
2111
2033
|
timeBetweenSessions: z.number().int().describe(
|
|
2112
2034
|
"The number of minutes between the end of a session and the start of the next."
|
|
2113
|
-
).min(0).max(720).optional()
|
|
2114
|
-
durationRange: z.intersection(
|
|
2115
|
-
z.object({ unitType: z.enum(["HOUR", "DAY"]).optional() }),
|
|
2116
|
-
z.xor([
|
|
2117
|
-
z.object({
|
|
2118
|
-
hourOptions: z.never().optional(),
|
|
2119
|
-
dayOptions: z.never().optional()
|
|
2120
|
-
}),
|
|
2121
|
-
z.object({
|
|
2122
|
-
dayOptions: z.never().optional(),
|
|
2123
|
-
hourOptions: z.object({
|
|
2124
|
-
minDurationInMinutes: z.number().int().describe(
|
|
2125
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
2126
|
-
).min(30).max(1440).optional(),
|
|
2127
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
2128
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
2129
|
-
).min(30).max(1440).optional()
|
|
2130
|
-
}).describe(
|
|
2131
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
2132
|
-
)
|
|
2133
|
-
}),
|
|
2134
|
-
z.object({
|
|
2135
|
-
hourOptions: z.never().optional(),
|
|
2136
|
-
dayOptions: z.object({
|
|
2137
|
-
minDurationInDays: z.number().int().describe(
|
|
2138
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
2139
|
-
).min(1).max(8).optional(),
|
|
2140
|
-
maxDurationInDays: z.number().int().describe(
|
|
2141
|
-
"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`."
|
|
2142
|
-
).min(1).max(8).optional()
|
|
2143
|
-
}).describe(
|
|
2144
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
2145
|
-
)
|
|
2146
|
-
})
|
|
2147
|
-
])
|
|
2148
|
-
).describe(
|
|
2149
|
-
"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."
|
|
2150
|
-
).optional()
|
|
2035
|
+
).min(0).max(720).optional()
|
|
2151
2036
|
}).describe("Limitations affecting the service availability.").optional()
|
|
2152
2037
|
}).describe(
|
|
2153
2038
|
"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)."
|
|
@@ -2936,48 +2821,7 @@ var BulkCreateServicesResponse = z.object({
|
|
|
2936
2821
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
2937
2822
|
timeBetweenSessions: z.number().int().describe(
|
|
2938
2823
|
"The number of minutes between the end of a session and the start of the next."
|
|
2939
|
-
).min(0).max(720).optional()
|
|
2940
|
-
durationRange: z.intersection(
|
|
2941
|
-
z.object({
|
|
2942
|
-
unitType: z.enum(["HOUR", "DAY"]).describe(
|
|
2943
|
-
"The unit type for this duration range. Determines which configuration to use in the `config` union."
|
|
2944
|
-
).optional()
|
|
2945
|
-
}),
|
|
2946
|
-
z.xor([
|
|
2947
|
-
z.object({
|
|
2948
|
-
hourOptions: z.never().optional(),
|
|
2949
|
-
dayOptions: z.never().optional()
|
|
2950
|
-
}),
|
|
2951
|
-
z.object({
|
|
2952
|
-
dayOptions: z.never().optional(),
|
|
2953
|
-
hourOptions: z.object({
|
|
2954
|
-
minDurationInMinutes: z.number().int().describe(
|
|
2955
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
2956
|
-
).min(30).max(1440).optional(),
|
|
2957
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
2958
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
2959
|
-
).min(30).max(1440).optional()
|
|
2960
|
-
}).describe(
|
|
2961
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
2962
|
-
)
|
|
2963
|
-
}),
|
|
2964
|
-
z.object({
|
|
2965
|
-
hourOptions: z.never().optional(),
|
|
2966
|
-
dayOptions: z.object({
|
|
2967
|
-
minDurationInDays: z.number().int().describe(
|
|
2968
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
2969
|
-
).min(1).max(8).optional(),
|
|
2970
|
-
maxDurationInDays: z.number().int().describe(
|
|
2971
|
-
"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`."
|
|
2972
|
-
).min(1).max(8).optional()
|
|
2973
|
-
}).describe(
|
|
2974
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
2975
|
-
)
|
|
2976
|
-
})
|
|
2977
|
-
])
|
|
2978
|
-
).describe(
|
|
2979
|
-
"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."
|
|
2980
|
-
).optional()
|
|
2824
|
+
).min(0).max(720).optional()
|
|
2981
2825
|
}).describe("Limitations affecting the service availability.").optional()
|
|
2982
2826
|
}).describe(
|
|
2983
2827
|
"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)."
|
|
@@ -3747,48 +3591,7 @@ var GetServiceResponse = z.object({
|
|
|
3747
3591
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
3748
3592
|
timeBetweenSessions: z.number().int().describe(
|
|
3749
3593
|
"The number of minutes between the end of a session and the start of the next."
|
|
3750
|
-
).min(0).max(720).optional()
|
|
3751
|
-
durationRange: z.intersection(
|
|
3752
|
-
z.object({
|
|
3753
|
-
unitType: z.enum(["HOUR", "DAY"]).describe(
|
|
3754
|
-
"The unit type for this duration range. Determines which configuration to use in the `config` union."
|
|
3755
|
-
).optional()
|
|
3756
|
-
}),
|
|
3757
|
-
z.xor([
|
|
3758
|
-
z.object({
|
|
3759
|
-
hourOptions: z.never().optional(),
|
|
3760
|
-
dayOptions: z.never().optional()
|
|
3761
|
-
}),
|
|
3762
|
-
z.object({
|
|
3763
|
-
dayOptions: z.never().optional(),
|
|
3764
|
-
hourOptions: z.object({
|
|
3765
|
-
minDurationInMinutes: z.number().int().describe(
|
|
3766
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
3767
|
-
).min(30).max(1440).optional(),
|
|
3768
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
3769
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
3770
|
-
).min(30).max(1440).optional()
|
|
3771
|
-
}).describe(
|
|
3772
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
3773
|
-
)
|
|
3774
|
-
}),
|
|
3775
|
-
z.object({
|
|
3776
|
-
hourOptions: z.never().optional(),
|
|
3777
|
-
dayOptions: z.object({
|
|
3778
|
-
minDurationInDays: z.number().int().describe(
|
|
3779
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
3780
|
-
).min(1).max(8).optional(),
|
|
3781
|
-
maxDurationInDays: z.number().int().describe(
|
|
3782
|
-
"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`."
|
|
3783
|
-
).min(1).max(8).optional()
|
|
3784
|
-
}).describe(
|
|
3785
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
3786
|
-
)
|
|
3787
|
-
})
|
|
3788
|
-
])
|
|
3789
|
-
).describe(
|
|
3790
|
-
"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."
|
|
3791
|
-
).optional()
|
|
3594
|
+
).min(0).max(720).optional()
|
|
3792
3595
|
}).describe("Limitations affecting the service availability.").optional()
|
|
3793
3596
|
}).describe(
|
|
3794
3597
|
"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)."
|
|
@@ -4529,44 +4332,7 @@ var UpdateServiceRequest = z.object({
|
|
|
4529
4332
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
4530
4333
|
timeBetweenSessions: z.number().int().describe(
|
|
4531
4334
|
"The number of minutes between the end of a session and the start of the next."
|
|
4532
|
-
).min(0).max(720).optional()
|
|
4533
|
-
durationRange: z.intersection(
|
|
4534
|
-
z.object({ unitType: z.enum(["HOUR", "DAY"]).optional() }),
|
|
4535
|
-
z.xor([
|
|
4536
|
-
z.object({
|
|
4537
|
-
hourOptions: z.never().optional(),
|
|
4538
|
-
dayOptions: z.never().optional()
|
|
4539
|
-
}),
|
|
4540
|
-
z.object({
|
|
4541
|
-
dayOptions: z.never().optional(),
|
|
4542
|
-
hourOptions: z.object({
|
|
4543
|
-
minDurationInMinutes: z.number().int().describe(
|
|
4544
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
4545
|
-
).min(30).max(1440).optional(),
|
|
4546
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
4547
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
4548
|
-
).min(30).max(1440).optional()
|
|
4549
|
-
}).describe(
|
|
4550
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
4551
|
-
)
|
|
4552
|
-
}),
|
|
4553
|
-
z.object({
|
|
4554
|
-
hourOptions: z.never().optional(),
|
|
4555
|
-
dayOptions: z.object({
|
|
4556
|
-
minDurationInDays: z.number().int().describe(
|
|
4557
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
4558
|
-
).min(1).max(8).optional(),
|
|
4559
|
-
maxDurationInDays: z.number().int().describe(
|
|
4560
|
-
"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`."
|
|
4561
|
-
).min(1).max(8).optional()
|
|
4562
|
-
}).describe(
|
|
4563
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
4564
|
-
)
|
|
4565
|
-
})
|
|
4566
|
-
])
|
|
4567
|
-
).describe(
|
|
4568
|
-
"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."
|
|
4569
|
-
).optional()
|
|
4335
|
+
).min(0).max(720).optional()
|
|
4570
4336
|
}).describe("Limitations affecting the service availability.").optional()
|
|
4571
4337
|
}).describe(
|
|
4572
4338
|
"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)."
|
|
@@ -5309,48 +5075,7 @@ var UpdateServiceResponse = z.object({
|
|
|
5309
5075
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
5310
5076
|
timeBetweenSessions: z.number().int().describe(
|
|
5311
5077
|
"The number of minutes between the end of a session and the start of the next."
|
|
5312
|
-
).min(0).max(720).optional()
|
|
5313
|
-
durationRange: z.intersection(
|
|
5314
|
-
z.object({
|
|
5315
|
-
unitType: z.enum(["HOUR", "DAY"]).describe(
|
|
5316
|
-
"The unit type for this duration range. Determines which configuration to use in the `config` union."
|
|
5317
|
-
).optional()
|
|
5318
|
-
}),
|
|
5319
|
-
z.xor([
|
|
5320
|
-
z.object({
|
|
5321
|
-
hourOptions: z.never().optional(),
|
|
5322
|
-
dayOptions: z.never().optional()
|
|
5323
|
-
}),
|
|
5324
|
-
z.object({
|
|
5325
|
-
dayOptions: z.never().optional(),
|
|
5326
|
-
hourOptions: z.object({
|
|
5327
|
-
minDurationInMinutes: z.number().int().describe(
|
|
5328
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
5329
|
-
).min(30).max(1440).optional(),
|
|
5330
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
5331
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
5332
|
-
).min(30).max(1440).optional()
|
|
5333
|
-
}).describe(
|
|
5334
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
5335
|
-
)
|
|
5336
|
-
}),
|
|
5337
|
-
z.object({
|
|
5338
|
-
hourOptions: z.never().optional(),
|
|
5339
|
-
dayOptions: z.object({
|
|
5340
|
-
minDurationInDays: z.number().int().describe(
|
|
5341
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
5342
|
-
).min(1).max(8).optional(),
|
|
5343
|
-
maxDurationInDays: z.number().int().describe(
|
|
5344
|
-
"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`."
|
|
5345
|
-
).min(1).max(8).optional()
|
|
5346
|
-
}).describe(
|
|
5347
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
5348
|
-
)
|
|
5349
|
-
})
|
|
5350
|
-
])
|
|
5351
|
-
).describe(
|
|
5352
|
-
"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."
|
|
5353
|
-
).optional()
|
|
5078
|
+
).min(0).max(720).optional()
|
|
5354
5079
|
}).describe("Limitations affecting the service availability.").optional()
|
|
5355
5080
|
}).describe(
|
|
5356
5081
|
"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)."
|
|
@@ -6112,46 +5837,7 @@ var BulkUpdateServicesRequest = z.object({
|
|
|
6112
5837
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
6113
5838
|
timeBetweenSessions: z.number().int().describe(
|
|
6114
5839
|
"The number of minutes between the end of a session and the start of the next."
|
|
6115
|
-
).min(0).max(720).optional()
|
|
6116
|
-
durationRange: z.intersection(
|
|
6117
|
-
z.object({
|
|
6118
|
-
unitType: z.enum(["HOUR", "DAY"]).optional()
|
|
6119
|
-
}),
|
|
6120
|
-
z.xor([
|
|
6121
|
-
z.object({
|
|
6122
|
-
hourOptions: z.never().optional(),
|
|
6123
|
-
dayOptions: z.never().optional()
|
|
6124
|
-
}),
|
|
6125
|
-
z.object({
|
|
6126
|
-
dayOptions: z.never().optional(),
|
|
6127
|
-
hourOptions: z.object({
|
|
6128
|
-
minDurationInMinutes: z.number().int().describe(
|
|
6129
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
6130
|
-
).min(30).max(1440).optional(),
|
|
6131
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
6132
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
6133
|
-
).min(30).max(1440).optional()
|
|
6134
|
-
}).describe(
|
|
6135
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
6136
|
-
)
|
|
6137
|
-
}),
|
|
6138
|
-
z.object({
|
|
6139
|
-
hourOptions: z.never().optional(),
|
|
6140
|
-
dayOptions: z.object({
|
|
6141
|
-
minDurationInDays: z.number().int().describe(
|
|
6142
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
6143
|
-
).min(1).max(8).optional(),
|
|
6144
|
-
maxDurationInDays: z.number().int().describe(
|
|
6145
|
-
"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`."
|
|
6146
|
-
).min(1).max(8).optional()
|
|
6147
|
-
}).describe(
|
|
6148
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
6149
|
-
)
|
|
6150
|
-
})
|
|
6151
|
-
])
|
|
6152
|
-
).describe(
|
|
6153
|
-
"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."
|
|
6154
|
-
).optional()
|
|
5840
|
+
).min(0).max(720).optional()
|
|
6155
5841
|
}).describe(
|
|
6156
5842
|
"Limitations affecting the service availability."
|
|
6157
5843
|
).optional()
|
|
@@ -6947,48 +6633,7 @@ var BulkUpdateServicesResponse = z.object({
|
|
|
6947
6633
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
6948
6634
|
timeBetweenSessions: z.number().int().describe(
|
|
6949
6635
|
"The number of minutes between the end of a session and the start of the next."
|
|
6950
|
-
).min(0).max(720).optional()
|
|
6951
|
-
durationRange: z.intersection(
|
|
6952
|
-
z.object({
|
|
6953
|
-
unitType: z.enum(["HOUR", "DAY"]).describe(
|
|
6954
|
-
"The unit type for this duration range. Determines which configuration to use in the `config` union."
|
|
6955
|
-
).optional()
|
|
6956
|
-
}),
|
|
6957
|
-
z.xor([
|
|
6958
|
-
z.object({
|
|
6959
|
-
hourOptions: z.never().optional(),
|
|
6960
|
-
dayOptions: z.never().optional()
|
|
6961
|
-
}),
|
|
6962
|
-
z.object({
|
|
6963
|
-
dayOptions: z.never().optional(),
|
|
6964
|
-
hourOptions: z.object({
|
|
6965
|
-
minDurationInMinutes: z.number().int().describe(
|
|
6966
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
6967
|
-
).min(30).max(1440).optional(),
|
|
6968
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
6969
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
6970
|
-
).min(30).max(1440).optional()
|
|
6971
|
-
}).describe(
|
|
6972
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
6973
|
-
)
|
|
6974
|
-
}),
|
|
6975
|
-
z.object({
|
|
6976
|
-
hourOptions: z.never().optional(),
|
|
6977
|
-
dayOptions: z.object({
|
|
6978
|
-
minDurationInDays: z.number().int().describe(
|
|
6979
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
6980
|
-
).min(1).max(8).optional(),
|
|
6981
|
-
maxDurationInDays: z.number().int().describe(
|
|
6982
|
-
"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`."
|
|
6983
|
-
).min(1).max(8).optional()
|
|
6984
|
-
}).describe(
|
|
6985
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
6986
|
-
)
|
|
6987
|
-
})
|
|
6988
|
-
])
|
|
6989
|
-
).describe(
|
|
6990
|
-
"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."
|
|
6991
|
-
).optional()
|
|
6636
|
+
).min(0).max(720).optional()
|
|
6992
6637
|
}).describe("Limitations affecting the service availability.").optional()
|
|
6993
6638
|
}).describe(
|
|
6994
6639
|
"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)."
|
|
@@ -7747,44 +7392,7 @@ var BulkUpdateServicesByFilterRequest = z.object({
|
|
|
7747
7392
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
7748
7393
|
timeBetweenSessions: z.number().int().describe(
|
|
7749
7394
|
"The number of minutes between the end of a session and the start of the next."
|
|
7750
|
-
).min(0).max(720).optional()
|
|
7751
|
-
durationRange: z.intersection(
|
|
7752
|
-
z.object({ unitType: z.enum(["HOUR", "DAY"]).optional() }),
|
|
7753
|
-
z.xor([
|
|
7754
|
-
z.object({
|
|
7755
|
-
hourOptions: z.never().optional(),
|
|
7756
|
-
dayOptions: z.never().optional()
|
|
7757
|
-
}),
|
|
7758
|
-
z.object({
|
|
7759
|
-
dayOptions: z.never().optional(),
|
|
7760
|
-
hourOptions: z.object({
|
|
7761
|
-
minDurationInMinutes: z.number().int().describe(
|
|
7762
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
7763
|
-
).min(30).max(1440).optional(),
|
|
7764
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
7765
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
7766
|
-
).min(30).max(1440).optional()
|
|
7767
|
-
}).describe(
|
|
7768
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
7769
|
-
)
|
|
7770
|
-
}),
|
|
7771
|
-
z.object({
|
|
7772
|
-
hourOptions: z.never().optional(),
|
|
7773
|
-
dayOptions: z.object({
|
|
7774
|
-
minDurationInDays: z.number().int().describe(
|
|
7775
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
7776
|
-
).min(1).max(8).optional(),
|
|
7777
|
-
maxDurationInDays: z.number().int().describe(
|
|
7778
|
-
"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`."
|
|
7779
|
-
).min(1).max(8).optional()
|
|
7780
|
-
}).describe(
|
|
7781
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
7782
|
-
)
|
|
7783
|
-
})
|
|
7784
|
-
])
|
|
7785
|
-
).describe(
|
|
7786
|
-
"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."
|
|
7787
|
-
).optional()
|
|
7395
|
+
).min(0).max(720).optional()
|
|
7788
7396
|
}).describe("Limitations affecting the service availability.").optional()
|
|
7789
7397
|
}).describe(
|
|
7790
7398
|
"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)."
|
|
@@ -8620,48 +8228,7 @@ var BulkDeleteServicesResponse = z.object({
|
|
|
8620
8228
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
8621
8229
|
timeBetweenSessions: z.number().int().describe(
|
|
8622
8230
|
"The number of minutes between the end of a session and the start of the next."
|
|
8623
|
-
).min(0).max(720).optional()
|
|
8624
|
-
durationRange: z.intersection(
|
|
8625
|
-
z.object({
|
|
8626
|
-
unitType: z.enum(["HOUR", "DAY"]).describe(
|
|
8627
|
-
"The unit type for this duration range. Determines which configuration to use in the `config` union."
|
|
8628
|
-
).optional()
|
|
8629
|
-
}),
|
|
8630
|
-
z.xor([
|
|
8631
|
-
z.object({
|
|
8632
|
-
hourOptions: z.never().optional(),
|
|
8633
|
-
dayOptions: z.never().optional()
|
|
8634
|
-
}),
|
|
8635
|
-
z.object({
|
|
8636
|
-
dayOptions: z.never().optional(),
|
|
8637
|
-
hourOptions: z.object({
|
|
8638
|
-
minDurationInMinutes: z.number().int().describe(
|
|
8639
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
8640
|
-
).min(30).max(1440).optional(),
|
|
8641
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
8642
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
8643
|
-
).min(30).max(1440).optional()
|
|
8644
|
-
}).describe(
|
|
8645
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
8646
|
-
)
|
|
8647
|
-
}),
|
|
8648
|
-
z.object({
|
|
8649
|
-
hourOptions: z.never().optional(),
|
|
8650
|
-
dayOptions: z.object({
|
|
8651
|
-
minDurationInDays: z.number().int().describe(
|
|
8652
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
8653
|
-
).min(1).max(8).optional(),
|
|
8654
|
-
maxDurationInDays: z.number().int().describe(
|
|
8655
|
-
"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`."
|
|
8656
|
-
).min(1).max(8).optional()
|
|
8657
|
-
}).describe(
|
|
8658
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
8659
|
-
)
|
|
8660
|
-
})
|
|
8661
|
-
])
|
|
8662
|
-
).describe(
|
|
8663
|
-
"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."
|
|
8664
|
-
).optional()
|
|
8231
|
+
).min(0).max(720).optional()
|
|
8665
8232
|
}).describe("Limitations affecting the service availability.").optional()
|
|
8666
8233
|
}).describe(
|
|
8667
8234
|
"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)."
|
|
@@ -9792,48 +9359,7 @@ var QueryServicesResponse = z.object({
|
|
|
9792
9359
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
9793
9360
|
timeBetweenSessions: z.number().int().describe(
|
|
9794
9361
|
"The number of minutes between the end of a session and the start of the next."
|
|
9795
|
-
).min(0).max(720).optional()
|
|
9796
|
-
durationRange: z.intersection(
|
|
9797
|
-
z.object({
|
|
9798
|
-
unitType: z.enum(["HOUR", "DAY"]).describe(
|
|
9799
|
-
"The unit type for this duration range. Determines which configuration to use in the `config` union."
|
|
9800
|
-
).optional()
|
|
9801
|
-
}),
|
|
9802
|
-
z.xor([
|
|
9803
|
-
z.object({
|
|
9804
|
-
hourOptions: z.never().optional(),
|
|
9805
|
-
dayOptions: z.never().optional()
|
|
9806
|
-
}),
|
|
9807
|
-
z.object({
|
|
9808
|
-
dayOptions: z.never().optional(),
|
|
9809
|
-
hourOptions: z.object({
|
|
9810
|
-
minDurationInMinutes: z.number().int().describe(
|
|
9811
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
9812
|
-
).min(30).max(1440).optional(),
|
|
9813
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
9814
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
9815
|
-
).min(30).max(1440).optional()
|
|
9816
|
-
}).describe(
|
|
9817
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
9818
|
-
)
|
|
9819
|
-
}),
|
|
9820
|
-
z.object({
|
|
9821
|
-
hourOptions: z.never().optional(),
|
|
9822
|
-
dayOptions: z.object({
|
|
9823
|
-
minDurationInDays: z.number().int().describe(
|
|
9824
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
9825
|
-
).min(1).max(8).optional(),
|
|
9826
|
-
maxDurationInDays: z.number().int().describe(
|
|
9827
|
-
"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`."
|
|
9828
|
-
).min(1).max(8).optional()
|
|
9829
|
-
}).describe(
|
|
9830
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
9831
|
-
)
|
|
9832
|
-
})
|
|
9833
|
-
])
|
|
9834
|
-
).describe(
|
|
9835
|
-
"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."
|
|
9836
|
-
).optional()
|
|
9362
|
+
).min(0).max(720).optional()
|
|
9837
9363
|
}).describe("Limitations affecting the service availability.").optional()
|
|
9838
9364
|
}).describe(
|
|
9839
9365
|
"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)."
|
|
@@ -11000,48 +10526,7 @@ var SearchServicesResponse = z.object({
|
|
|
11000
10526
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
11001
10527
|
timeBetweenSessions: z.number().int().describe(
|
|
11002
10528
|
"The number of minutes between the end of a session and the start of the next."
|
|
11003
|
-
).min(0).max(720).optional()
|
|
11004
|
-
durationRange: z.intersection(
|
|
11005
|
-
z.object({
|
|
11006
|
-
unitType: z.enum(["HOUR", "DAY"]).describe(
|
|
11007
|
-
"The unit type for this duration range. Determines which configuration to use in the `config` union."
|
|
11008
|
-
).optional()
|
|
11009
|
-
}),
|
|
11010
|
-
z.xor([
|
|
11011
|
-
z.object({
|
|
11012
|
-
hourOptions: z.never().optional(),
|
|
11013
|
-
dayOptions: z.never().optional()
|
|
11014
|
-
}),
|
|
11015
|
-
z.object({
|
|
11016
|
-
dayOptions: z.never().optional(),
|
|
11017
|
-
hourOptions: z.object({
|
|
11018
|
-
minDurationInMinutes: z.number().int().describe(
|
|
11019
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
11020
|
-
).min(30).max(1440).optional(),
|
|
11021
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
11022
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
11023
|
-
).min(30).max(1440).optional()
|
|
11024
|
-
}).describe(
|
|
11025
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
11026
|
-
)
|
|
11027
|
-
}),
|
|
11028
|
-
z.object({
|
|
11029
|
-
hourOptions: z.never().optional(),
|
|
11030
|
-
dayOptions: z.object({
|
|
11031
|
-
minDurationInDays: z.number().int().describe(
|
|
11032
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
11033
|
-
).min(1).max(8).optional(),
|
|
11034
|
-
maxDurationInDays: z.number().int().describe(
|
|
11035
|
-
"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`."
|
|
11036
|
-
).min(1).max(8).optional()
|
|
11037
|
-
}).describe(
|
|
11038
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
11039
|
-
)
|
|
11040
|
-
})
|
|
11041
|
-
])
|
|
11042
|
-
).describe(
|
|
11043
|
-
"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."
|
|
11044
|
-
).optional()
|
|
10529
|
+
).min(0).max(720).optional()
|
|
11045
10530
|
}).describe("Limitations affecting the service availability.").optional()
|
|
11046
10531
|
}).describe(
|
|
11047
10532
|
"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)."
|
|
@@ -12293,48 +11778,7 @@ var QueryPoliciesResponse = z.object({
|
|
|
12293
11778
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
12294
11779
|
timeBetweenSessions: z.number().int().describe(
|
|
12295
11780
|
"The number of minutes between the end of a session and the start of the next."
|
|
12296
|
-
).min(0).max(720).optional()
|
|
12297
|
-
durationRange: z.intersection(
|
|
12298
|
-
z.object({
|
|
12299
|
-
unitType: z.enum(["HOUR", "DAY"]).describe(
|
|
12300
|
-
"The unit type for this duration range. Determines which configuration to use in the `config` union."
|
|
12301
|
-
).optional()
|
|
12302
|
-
}),
|
|
12303
|
-
z.xor([
|
|
12304
|
-
z.object({
|
|
12305
|
-
hourOptions: z.never().optional(),
|
|
12306
|
-
dayOptions: z.never().optional()
|
|
12307
|
-
}),
|
|
12308
|
-
z.object({
|
|
12309
|
-
dayOptions: z.never().optional(),
|
|
12310
|
-
hourOptions: z.object({
|
|
12311
|
-
minDurationInMinutes: z.number().int().describe(
|
|
12312
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
12313
|
-
).min(30).max(1440).optional(),
|
|
12314
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
12315
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
12316
|
-
).min(30).max(1440).optional()
|
|
12317
|
-
}).describe(
|
|
12318
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
12319
|
-
)
|
|
12320
|
-
}),
|
|
12321
|
-
z.object({
|
|
12322
|
-
hourOptions: z.never().optional(),
|
|
12323
|
-
dayOptions: z.object({
|
|
12324
|
-
minDurationInDays: z.number().int().describe(
|
|
12325
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
12326
|
-
).min(1).max(8).optional(),
|
|
12327
|
-
maxDurationInDays: z.number().int().describe(
|
|
12328
|
-
"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`."
|
|
12329
|
-
).min(1).max(8).optional()
|
|
12330
|
-
}).describe(
|
|
12331
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
12332
|
-
)
|
|
12333
|
-
})
|
|
12334
|
-
])
|
|
12335
|
-
).describe(
|
|
12336
|
-
"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."
|
|
12337
|
-
).optional()
|
|
11781
|
+
).min(0).max(720).optional()
|
|
12338
11782
|
}).describe("Limitations affecting the service availability.").optional()
|
|
12339
11783
|
}).describe(
|
|
12340
11784
|
"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)."
|
|
@@ -13512,48 +12956,7 @@ var SetServiceLocationsResponse = z.object({
|
|
|
13512
12956
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
13513
12957
|
timeBetweenSessions: z.number().int().describe(
|
|
13514
12958
|
"The number of minutes between the end of a session and the start of the next."
|
|
13515
|
-
).min(0).max(720).optional()
|
|
13516
|
-
durationRange: z.intersection(
|
|
13517
|
-
z.object({
|
|
13518
|
-
unitType: z.enum(["HOUR", "DAY"]).describe(
|
|
13519
|
-
"The unit type for this duration range. Determines which configuration to use in the `config` union."
|
|
13520
|
-
).optional()
|
|
13521
|
-
}),
|
|
13522
|
-
z.xor([
|
|
13523
|
-
z.object({
|
|
13524
|
-
hourOptions: z.never().optional(),
|
|
13525
|
-
dayOptions: z.never().optional()
|
|
13526
|
-
}),
|
|
13527
|
-
z.object({
|
|
13528
|
-
dayOptions: z.never().optional(),
|
|
13529
|
-
hourOptions: z.object({
|
|
13530
|
-
minDurationInMinutes: z.number().int().describe(
|
|
13531
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
13532
|
-
).min(30).max(1440).optional(),
|
|
13533
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
13534
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
13535
|
-
).min(30).max(1440).optional()
|
|
13536
|
-
}).describe(
|
|
13537
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
13538
|
-
)
|
|
13539
|
-
}),
|
|
13540
|
-
z.object({
|
|
13541
|
-
hourOptions: z.never().optional(),
|
|
13542
|
-
dayOptions: z.object({
|
|
13543
|
-
minDurationInDays: z.number().int().describe(
|
|
13544
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
13545
|
-
).min(1).max(8).optional(),
|
|
13546
|
-
maxDurationInDays: z.number().int().describe(
|
|
13547
|
-
"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`."
|
|
13548
|
-
).min(1).max(8).optional()
|
|
13549
|
-
}).describe(
|
|
13550
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
13551
|
-
)
|
|
13552
|
-
})
|
|
13553
|
-
])
|
|
13554
|
-
).describe(
|
|
13555
|
-
"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."
|
|
13556
|
-
).optional()
|
|
12959
|
+
).min(0).max(720).optional()
|
|
13557
12960
|
}).describe("Limitations affecting the service availability.").optional()
|
|
13558
12961
|
}).describe(
|
|
13559
12962
|
"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)."
|
|
@@ -14308,48 +13711,7 @@ var EnablePricingPlansForServiceResponse = z.object({
|
|
|
14308
13711
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
14309
13712
|
timeBetweenSessions: z.number().int().describe(
|
|
14310
13713
|
"The number of minutes between the end of a session and the start of the next."
|
|
14311
|
-
).min(0).max(720).optional()
|
|
14312
|
-
durationRange: z.intersection(
|
|
14313
|
-
z.object({
|
|
14314
|
-
unitType: z.enum(["HOUR", "DAY"]).describe(
|
|
14315
|
-
"The unit type for this duration range. Determines which configuration to use in the `config` union."
|
|
14316
|
-
).optional()
|
|
14317
|
-
}),
|
|
14318
|
-
z.xor([
|
|
14319
|
-
z.object({
|
|
14320
|
-
hourOptions: z.never().optional(),
|
|
14321
|
-
dayOptions: z.never().optional()
|
|
14322
|
-
}),
|
|
14323
|
-
z.object({
|
|
14324
|
-
dayOptions: z.never().optional(),
|
|
14325
|
-
hourOptions: z.object({
|
|
14326
|
-
minDurationInMinutes: z.number().int().describe(
|
|
14327
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
14328
|
-
).min(30).max(1440).optional(),
|
|
14329
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
14330
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
14331
|
-
).min(30).max(1440).optional()
|
|
14332
|
-
}).describe(
|
|
14333
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
14334
|
-
)
|
|
14335
|
-
}),
|
|
14336
|
-
z.object({
|
|
14337
|
-
hourOptions: z.never().optional(),
|
|
14338
|
-
dayOptions: z.object({
|
|
14339
|
-
minDurationInDays: z.number().int().describe(
|
|
14340
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
14341
|
-
).min(1).max(8).optional(),
|
|
14342
|
-
maxDurationInDays: z.number().int().describe(
|
|
14343
|
-
"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`."
|
|
14344
|
-
).min(1).max(8).optional()
|
|
14345
|
-
}).describe(
|
|
14346
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
14347
|
-
)
|
|
14348
|
-
})
|
|
14349
|
-
])
|
|
14350
|
-
).describe(
|
|
14351
|
-
"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."
|
|
14352
|
-
).optional()
|
|
13714
|
+
).min(0).max(720).optional()
|
|
14353
13715
|
}).describe("Limitations affecting the service availability.").optional()
|
|
14354
13716
|
}).describe(
|
|
14355
13717
|
"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)."
|
|
@@ -15104,48 +14466,7 @@ var DisablePricingPlansForServiceResponse = z.object({
|
|
|
15104
14466
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
15105
14467
|
timeBetweenSessions: z.number().int().describe(
|
|
15106
14468
|
"The number of minutes between the end of a session and the start of the next."
|
|
15107
|
-
).min(0).max(720).optional()
|
|
15108
|
-
durationRange: z.intersection(
|
|
15109
|
-
z.object({
|
|
15110
|
-
unitType: z.enum(["HOUR", "DAY"]).describe(
|
|
15111
|
-
"The unit type for this duration range. Determines which configuration to use in the `config` union."
|
|
15112
|
-
).optional()
|
|
15113
|
-
}),
|
|
15114
|
-
z.xor([
|
|
15115
|
-
z.object({
|
|
15116
|
-
hourOptions: z.never().optional(),
|
|
15117
|
-
dayOptions: z.never().optional()
|
|
15118
|
-
}),
|
|
15119
|
-
z.object({
|
|
15120
|
-
dayOptions: z.never().optional(),
|
|
15121
|
-
hourOptions: z.object({
|
|
15122
|
-
minDurationInMinutes: z.number().int().describe(
|
|
15123
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
15124
|
-
).min(30).max(1440).optional(),
|
|
15125
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
15126
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
15127
|
-
).min(30).max(1440).optional()
|
|
15128
|
-
}).describe(
|
|
15129
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
15130
|
-
)
|
|
15131
|
-
}),
|
|
15132
|
-
z.object({
|
|
15133
|
-
hourOptions: z.never().optional(),
|
|
15134
|
-
dayOptions: z.object({
|
|
15135
|
-
minDurationInDays: z.number().int().describe(
|
|
15136
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
15137
|
-
).min(1).max(8).optional(),
|
|
15138
|
-
maxDurationInDays: z.number().int().describe(
|
|
15139
|
-
"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`."
|
|
15140
|
-
).min(1).max(8).optional()
|
|
15141
|
-
}).describe(
|
|
15142
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
15143
|
-
)
|
|
15144
|
-
})
|
|
15145
|
-
])
|
|
15146
|
-
).describe(
|
|
15147
|
-
"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."
|
|
15148
|
-
).optional()
|
|
14469
|
+
).min(0).max(720).optional()
|
|
15149
14470
|
}).describe("Limitations affecting the service availability.").optional()
|
|
15150
14471
|
}).describe(
|
|
15151
14472
|
"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)."
|
|
@@ -15911,48 +15232,7 @@ var SetCustomSlugResponse = z.object({
|
|
|
15911
15232
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
15912
15233
|
timeBetweenSessions: z.number().int().describe(
|
|
15913
15234
|
"The number of minutes between the end of a session and the start of the next."
|
|
15914
|
-
).min(0).max(720).optional()
|
|
15915
|
-
durationRange: z.intersection(
|
|
15916
|
-
z.object({
|
|
15917
|
-
unitType: z.enum(["HOUR", "DAY"]).describe(
|
|
15918
|
-
"The unit type for this duration range. Determines which configuration to use in the `config` union."
|
|
15919
|
-
).optional()
|
|
15920
|
-
}),
|
|
15921
|
-
z.xor([
|
|
15922
|
-
z.object({
|
|
15923
|
-
hourOptions: z.never().optional(),
|
|
15924
|
-
dayOptions: z.never().optional()
|
|
15925
|
-
}),
|
|
15926
|
-
z.object({
|
|
15927
|
-
dayOptions: z.never().optional(),
|
|
15928
|
-
hourOptions: z.object({
|
|
15929
|
-
minDurationInMinutes: z.number().int().describe(
|
|
15930
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
15931
|
-
).min(30).max(1440).optional(),
|
|
15932
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
15933
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
15934
|
-
).min(30).max(1440).optional()
|
|
15935
|
-
}).describe(
|
|
15936
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
15937
|
-
)
|
|
15938
|
-
}),
|
|
15939
|
-
z.object({
|
|
15940
|
-
hourOptions: z.never().optional(),
|
|
15941
|
-
dayOptions: z.object({
|
|
15942
|
-
minDurationInDays: z.number().int().describe(
|
|
15943
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
15944
|
-
).min(1).max(8).optional(),
|
|
15945
|
-
maxDurationInDays: z.number().int().describe(
|
|
15946
|
-
"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`."
|
|
15947
|
-
).min(1).max(8).optional()
|
|
15948
|
-
}).describe(
|
|
15949
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
15950
|
-
)
|
|
15951
|
-
})
|
|
15952
|
-
])
|
|
15953
|
-
).describe(
|
|
15954
|
-
"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."
|
|
15955
|
-
).optional()
|
|
15235
|
+
).min(0).max(720).optional()
|
|
15956
15236
|
}).describe("Limitations affecting the service availability.").optional()
|
|
15957
15237
|
}).describe(
|
|
15958
15238
|
"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)."
|
|
@@ -16720,48 +16000,7 @@ var CloneServiceResponse = z.object({
|
|
|
16720
16000
|
sessionDurations: z.array(z.number().int()).max(50).optional(),
|
|
16721
16001
|
timeBetweenSessions: z.number().int().describe(
|
|
16722
16002
|
"The number of minutes between the end of a session and the start of the next."
|
|
16723
|
-
).min(0).max(720).optional()
|
|
16724
|
-
durationRange: z.intersection(
|
|
16725
|
-
z.object({
|
|
16726
|
-
unitType: z.enum(["HOUR", "DAY"]).describe(
|
|
16727
|
-
"The unit type for this duration range. Determines which configuration to use in the `config` union."
|
|
16728
|
-
).optional()
|
|
16729
|
-
}),
|
|
16730
|
-
z.xor([
|
|
16731
|
-
z.object({
|
|
16732
|
-
hourOptions: z.never().optional(),
|
|
16733
|
-
dayOptions: z.never().optional()
|
|
16734
|
-
}),
|
|
16735
|
-
z.object({
|
|
16736
|
-
dayOptions: z.never().optional(),
|
|
16737
|
-
hourOptions: z.object({
|
|
16738
|
-
minDurationInMinutes: z.number().int().describe(
|
|
16739
|
-
"Minimum bookable duration in minutes. The customer can't book for less than this duration."
|
|
16740
|
-
).min(30).max(1440).optional(),
|
|
16741
|
-
maxDurationInMinutes: z.number().int().describe(
|
|
16742
|
-
"Maximum bookable duration in minutes. The customer can't book for more than this duration.\n\nMust be greater than or equal to `minDurationInMinutes`."
|
|
16743
|
-
).min(30).max(1440).optional()
|
|
16744
|
-
}).describe(
|
|
16745
|
-
"Configuration for hourly duration ranges. Set when `unitType` is `HOUR`."
|
|
16746
|
-
)
|
|
16747
|
-
}),
|
|
16748
|
-
z.object({
|
|
16749
|
-
hourOptions: z.never().optional(),
|
|
16750
|
-
dayOptions: z.object({
|
|
16751
|
-
minDurationInDays: z.number().int().describe(
|
|
16752
|
-
"Minimum bookable duration in days. The customer can't book for less than this number of days."
|
|
16753
|
-
).min(1).max(8).optional(),
|
|
16754
|
-
maxDurationInDays: z.number().int().describe(
|
|
16755
|
-
"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`."
|
|
16756
|
-
).min(1).max(8).optional()
|
|
16757
|
-
}).describe(
|
|
16758
|
-
"Configuration for daily duration ranges. Set when `unitType` is `DAY`."
|
|
16759
|
-
)
|
|
16760
|
-
})
|
|
16761
|
-
])
|
|
16762
|
-
).describe(
|
|
16763
|
-
"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."
|
|
16764
|
-
).optional()
|
|
16003
|
+
).min(0).max(720).optional()
|
|
16765
16004
|
}).describe("Limitations affecting the service availability.").optional()
|
|
16766
16005
|
}).describe(
|
|
16767
16006
|
"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)."
|