order3000 1.7.0 → 1.8.0
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/dist/client.cjs +16 -0
- package/dist/client.d.cts +170 -115
- package/dist/client.d.mts +170 -115
- package/dist/client.mjs +16 -0
- package/dist/schemas.cjs +239 -160
- package/dist/schemas.d.cts +220 -7
- package/dist/schemas.d.mts +220 -7
- package/dist/schemas.mjs +239 -160
- package/package.json +1 -1
package/dist/schemas.mjs
CHANGED
|
@@ -132,6 +132,8 @@ const areaBookingStatusSchema = z.enum([
|
|
|
132
132
|
"no_show"
|
|
133
133
|
]);
|
|
134
134
|
|
|
135
|
+
const areaTypeSchema = z.enum(["indoor", "outdoor"]);
|
|
136
|
+
|
|
135
137
|
const assetTypeSchema = z.enum(["image", "video", "document"]);
|
|
136
138
|
|
|
137
139
|
const areaSchema = z.object({
|
|
@@ -167,6 +169,11 @@ const areaSchema = z.object({
|
|
|
167
169
|
isBookable: z.optional(z.boolean()),
|
|
168
170
|
isPublic: z.optional(z.boolean()),
|
|
169
171
|
isActive: z.optional(z.boolean()),
|
|
172
|
+
get areaType() {
|
|
173
|
+
return areaTypeSchema.optional();
|
|
174
|
+
},
|
|
175
|
+
turnTimes: z.object({}).catchall(z.number()).nullish(),
|
|
176
|
+
cleanup: z.int().min(-9007199254740991).max(9007199254740991).nullish(),
|
|
170
177
|
assets: z.optional(
|
|
171
178
|
z.array(
|
|
172
179
|
z.object({
|
|
@@ -195,6 +202,16 @@ const areaSchema = z.object({
|
|
|
195
202
|
publicUrl: z.url()
|
|
196
203
|
})
|
|
197
204
|
)
|
|
205
|
+
),
|
|
206
|
+
closures: z.optional(
|
|
207
|
+
z.array(
|
|
208
|
+
z.object({
|
|
209
|
+
id: z.string(),
|
|
210
|
+
date: z.string(),
|
|
211
|
+
reason: z.nullable(z.object({}).catchall(z.string())),
|
|
212
|
+
isActive: z.boolean()
|
|
213
|
+
})
|
|
214
|
+
)
|
|
198
215
|
)
|
|
199
216
|
}).describe(
|
|
200
217
|
"A bookable + public area for a venue. Assets are only included when the request expands them. Operational flags (`isActive`, `isPublic`, `isBookable`) and audit columns are only populated for authenticated venue staff."
|
|
@@ -687,6 +704,11 @@ const createEventRequestSchema = z.object({
|
|
|
687
704
|
maxGuests: z.int().min(-2147483648).max(2147483647).nullish(),
|
|
688
705
|
minPartySize: z.int().min(-2147483648).max(2147483647).nullish(),
|
|
689
706
|
maxPartySize: z.int().min(-2147483648).max(2147483647).nullish(),
|
|
707
|
+
staffByRole: z.union([
|
|
708
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
709
|
+
z.array(z.any()),
|
|
710
|
+
z.object({}).catchall(z.any())
|
|
711
|
+
]).nullish(),
|
|
690
712
|
isPublic: z.optional(z.boolean()),
|
|
691
713
|
reservationsEnabled: z.optional(z.boolean()),
|
|
692
714
|
bookingOpensAtDays: z.int().min(-2147483648).max(2147483647).nullish(),
|
|
@@ -744,6 +766,13 @@ const createEventResponseSchema = z.object({
|
|
|
744
766
|
maxGuests: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
745
767
|
minPartySize: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
746
768
|
maxPartySize: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
769
|
+
staffByRole: z.nullable(
|
|
770
|
+
z.union([
|
|
771
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
772
|
+
z.array(z.any()),
|
|
773
|
+
z.object({}).catchall(z.any())
|
|
774
|
+
])
|
|
775
|
+
),
|
|
747
776
|
isPublic: z.boolean(),
|
|
748
777
|
reservationsEnabled: z.boolean(),
|
|
749
778
|
bookingOpensAtDays: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
@@ -934,6 +963,13 @@ const deleteEventResponseSchema = z.object({
|
|
|
934
963
|
maxGuests: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
935
964
|
minPartySize: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
936
965
|
maxPartySize: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
966
|
+
staffByRole: z.nullable(
|
|
967
|
+
z.union([
|
|
968
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
969
|
+
z.array(z.any()),
|
|
970
|
+
z.object({}).catchall(z.any())
|
|
971
|
+
])
|
|
972
|
+
),
|
|
937
973
|
isPublic: z.boolean(),
|
|
938
974
|
reservationsEnabled: z.boolean(),
|
|
939
975
|
bookingOpensAtDays: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
@@ -1144,6 +1180,11 @@ const editEventRequestSchema = z.object({
|
|
|
1144
1180
|
maxGuests: z.int().min(-2147483648).max(2147483647).nullish(),
|
|
1145
1181
|
minPartySize: z.int().min(-2147483648).max(2147483647).nullish(),
|
|
1146
1182
|
maxPartySize: z.int().min(-2147483648).max(2147483647).nullish(),
|
|
1183
|
+
staffByRole: z.union([
|
|
1184
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1185
|
+
z.array(z.any()),
|
|
1186
|
+
z.object({}).catchall(z.any())
|
|
1187
|
+
]).nullish(),
|
|
1147
1188
|
isPublic: z.optional(z.boolean()),
|
|
1148
1189
|
reservationsEnabled: z.optional(z.boolean()),
|
|
1149
1190
|
bookingOpensAtDays: z.int().min(-2147483648).max(2147483647).nullish(),
|
|
@@ -1177,6 +1218,120 @@ const editEventRequestSchema = z.object({
|
|
|
1177
1218
|
ritualAccessor: z.string().nullish()
|
|
1178
1219
|
}).describe("Partial-update body for an existing event");
|
|
1179
1220
|
|
|
1221
|
+
const scheduleSchema = z.object({
|
|
1222
|
+
id: z.string(),
|
|
1223
|
+
name: z.union([
|
|
1224
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1225
|
+
z.array(z.any()),
|
|
1226
|
+
z.object({}).catchall(z.any())
|
|
1227
|
+
]),
|
|
1228
|
+
description: z.nullable(
|
|
1229
|
+
z.union([
|
|
1230
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1231
|
+
z.array(z.any()),
|
|
1232
|
+
z.object({}).catchall(z.any())
|
|
1233
|
+
])
|
|
1234
|
+
),
|
|
1235
|
+
timezone: z.string(),
|
|
1236
|
+
rrule: z.nullable(z.string()),
|
|
1237
|
+
exdates: z.nullable(z.array(z.string())),
|
|
1238
|
+
validFrom: z.nullable(z.string()),
|
|
1239
|
+
validTo: z.nullable(z.string()),
|
|
1240
|
+
get slotMode() {
|
|
1241
|
+
return slotModeSchema;
|
|
1242
|
+
},
|
|
1243
|
+
intervalDuration: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1244
|
+
duration: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1245
|
+
isActive: z.boolean(),
|
|
1246
|
+
sortIndex: z.nullable(z.string().max(255)),
|
|
1247
|
+
updatedAt: z.nullable(z.any()),
|
|
1248
|
+
updatedBy: z.nullable(z.string()),
|
|
1249
|
+
createdAt: z.nullable(z.any()),
|
|
1250
|
+
createdBy: z.nullable(z.string()),
|
|
1251
|
+
scheduleTimeSlots: z.optional(
|
|
1252
|
+
z.array(
|
|
1253
|
+
z.object({
|
|
1254
|
+
scheduleId: z.nullable(z.string()),
|
|
1255
|
+
timeSlotId: z.nullable(z.string()),
|
|
1256
|
+
get dayOfWeek() {
|
|
1257
|
+
return dayOfWeekSchema;
|
|
1258
|
+
},
|
|
1259
|
+
sortIndex: z.nullable(z.string().max(255)),
|
|
1260
|
+
timeSlot: z.nullable(
|
|
1261
|
+
z.object({
|
|
1262
|
+
id: z.string(),
|
|
1263
|
+
startTime: z.string(),
|
|
1264
|
+
endTime: z.nullable(z.string()),
|
|
1265
|
+
isActive: z.nullable(z.boolean()),
|
|
1266
|
+
isSchedulable: z.nullable(z.boolean()),
|
|
1267
|
+
maxBookings: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1268
|
+
maxGuests: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1269
|
+
overflowBookings: z.nullable(
|
|
1270
|
+
z.int().min(-2147483648).max(2147483647)
|
|
1271
|
+
),
|
|
1272
|
+
overflowGuests: z.nullable(
|
|
1273
|
+
z.int().min(-2147483648).max(2147483647)
|
|
1274
|
+
),
|
|
1275
|
+
sortIndex: z.nullable(z.string().max(255)),
|
|
1276
|
+
updatedAt: z.nullable(z.any()),
|
|
1277
|
+
updatedBy: z.nullable(z.string()),
|
|
1278
|
+
createdAt: z.nullable(z.any()),
|
|
1279
|
+
createdBy: z.nullable(z.string())
|
|
1280
|
+
})
|
|
1281
|
+
)
|
|
1282
|
+
})
|
|
1283
|
+
)
|
|
1284
|
+
),
|
|
1285
|
+
scheduleOverrides: z.optional(
|
|
1286
|
+
z.array(
|
|
1287
|
+
z.object({
|
|
1288
|
+
id: z.string(),
|
|
1289
|
+
scheduleId: z.string(),
|
|
1290
|
+
date: z.string(),
|
|
1291
|
+
reason: z.nullable(
|
|
1292
|
+
z.union([
|
|
1293
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1294
|
+
z.array(z.any()),
|
|
1295
|
+
z.object({}).catchall(z.any())
|
|
1296
|
+
])
|
|
1297
|
+
),
|
|
1298
|
+
isActive: z.boolean(),
|
|
1299
|
+
updatedAt: z.nullable(z.any()),
|
|
1300
|
+
updatedBy: z.nullable(z.string()),
|
|
1301
|
+
createdAt: z.nullable(z.any()),
|
|
1302
|
+
createdBy: z.nullable(z.string()),
|
|
1303
|
+
scheduleOverrideTimeSlots: z.array(
|
|
1304
|
+
z.object({
|
|
1305
|
+
overrideId: z.string(),
|
|
1306
|
+
timeSlotId: z.string(),
|
|
1307
|
+
sortIndex: z.nullable(z.string().max(255)),
|
|
1308
|
+
timeSlot: z.object({
|
|
1309
|
+
id: z.string(),
|
|
1310
|
+
startTime: z.string(),
|
|
1311
|
+
endTime: z.nullable(z.string()),
|
|
1312
|
+
isActive: z.nullable(z.boolean()),
|
|
1313
|
+
isSchedulable: z.nullable(z.boolean()),
|
|
1314
|
+
maxBookings: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1315
|
+
maxGuests: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1316
|
+
overflowBookings: z.nullable(
|
|
1317
|
+
z.int().min(-2147483648).max(2147483647)
|
|
1318
|
+
),
|
|
1319
|
+
overflowGuests: z.nullable(
|
|
1320
|
+
z.int().min(-2147483648).max(2147483647)
|
|
1321
|
+
),
|
|
1322
|
+
sortIndex: z.nullable(z.string().max(255)),
|
|
1323
|
+
updatedAt: z.nullable(z.any()),
|
|
1324
|
+
updatedBy: z.nullable(z.string()),
|
|
1325
|
+
createdAt: z.nullable(z.any()),
|
|
1326
|
+
createdBy: z.nullable(z.string())
|
|
1327
|
+
})
|
|
1328
|
+
})
|
|
1329
|
+
)
|
|
1330
|
+
})
|
|
1331
|
+
)
|
|
1332
|
+
)
|
|
1333
|
+
});
|
|
1334
|
+
|
|
1180
1335
|
const editEventResponseSchema = z.object({
|
|
1181
1336
|
id: z.string(),
|
|
1182
1337
|
venueId: z.string(),
|
|
@@ -1200,6 +1355,13 @@ const editEventResponseSchema = z.object({
|
|
|
1200
1355
|
maxGuests: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1201
1356
|
minPartySize: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1202
1357
|
maxPartySize: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1358
|
+
staffByRole: z.nullable(
|
|
1359
|
+
z.union([
|
|
1360
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1361
|
+
z.array(z.any()),
|
|
1362
|
+
z.object({}).catchall(z.any())
|
|
1363
|
+
])
|
|
1364
|
+
),
|
|
1203
1365
|
isPublic: z.boolean(),
|
|
1204
1366
|
reservationsEnabled: z.boolean(),
|
|
1205
1367
|
bookingOpensAtDays: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
@@ -1218,65 +1380,9 @@ const editEventResponseSchema = z.object({
|
|
|
1218
1380
|
updatedBy: z.nullable(z.string()),
|
|
1219
1381
|
createdAt: z.nullable(z.any()),
|
|
1220
1382
|
updatedAt: z.nullable(z.any()),
|
|
1221
|
-
schedule
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
name: z.union([
|
|
1225
|
-
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1226
|
-
z.array(z.any()),
|
|
1227
|
-
z.object({}).catchall(z.any())
|
|
1228
|
-
]),
|
|
1229
|
-
description: z.nullable(
|
|
1230
|
-
z.union([
|
|
1231
|
-
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1232
|
-
z.array(z.any()),
|
|
1233
|
-
z.object({}).catchall(z.any())
|
|
1234
|
-
])
|
|
1235
|
-
),
|
|
1236
|
-
timezone: z.string(),
|
|
1237
|
-
rrule: z.nullable(z.string()),
|
|
1238
|
-
exdates: z.nullable(z.array(z.string())),
|
|
1239
|
-
validFrom: z.nullable(z.string()),
|
|
1240
|
-
validTo: z.nullable(z.string()),
|
|
1241
|
-
get slotMode() {
|
|
1242
|
-
return slotModeSchema;
|
|
1243
|
-
},
|
|
1244
|
-
intervalDuration: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1245
|
-
duration: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1246
|
-
isActive: z.boolean(),
|
|
1247
|
-
sortIndex: z.nullable(z.string().max(255)),
|
|
1248
|
-
updatedAt: z.nullable(z.any()),
|
|
1249
|
-
updatedBy: z.nullable(z.string()),
|
|
1250
|
-
createdAt: z.nullable(z.any()),
|
|
1251
|
-
createdBy: z.nullable(z.string()),
|
|
1252
|
-
scheduleTimeSlots: z.optional(
|
|
1253
|
-
z.array(
|
|
1254
|
-
z.object({
|
|
1255
|
-
scheduleId: z.nullable(z.string()),
|
|
1256
|
-
timeSlotId: z.nullable(z.string()),
|
|
1257
|
-
get dayOfWeek() {
|
|
1258
|
-
return dayOfWeekSchema;
|
|
1259
|
-
},
|
|
1260
|
-
sortIndex: z.nullable(z.string().max(255)),
|
|
1261
|
-
timeSlot: z.nullable(
|
|
1262
|
-
z.object({
|
|
1263
|
-
id: z.string(),
|
|
1264
|
-
startTime: z.string(),
|
|
1265
|
-
endTime: z.nullable(z.string()),
|
|
1266
|
-
isActive: z.nullable(z.boolean()),
|
|
1267
|
-
isSchedulable: z.nullable(z.boolean()),
|
|
1268
|
-
sortIndex: z.nullable(z.string().max(255)),
|
|
1269
|
-
updatedAt: z.nullable(z.any()),
|
|
1270
|
-
updatedBy: z.nullable(z.string()),
|
|
1271
|
-
createdAt: z.nullable(z.any()),
|
|
1272
|
-
createdBy: z.nullable(z.string())
|
|
1273
|
-
})
|
|
1274
|
-
)
|
|
1275
|
-
})
|
|
1276
|
-
)
|
|
1277
|
-
)
|
|
1278
|
-
})
|
|
1279
|
-
)
|
|
1383
|
+
get schedule() {
|
|
1384
|
+
return scheduleSchema.nullable();
|
|
1385
|
+
}
|
|
1280
1386
|
}).describe("Successfully updated event with schedule");
|
|
1281
1387
|
|
|
1282
1388
|
const editMetaAdRequestSchema = z.object({
|
|
@@ -1637,6 +1743,11 @@ const fetchAreaResponseSchema = z.object({
|
|
|
1637
1743
|
isBookable: z.optional(z.boolean()),
|
|
1638
1744
|
isPublic: z.optional(z.boolean()),
|
|
1639
1745
|
isActive: z.optional(z.boolean()),
|
|
1746
|
+
get areaType() {
|
|
1747
|
+
return areaTypeSchema.optional();
|
|
1748
|
+
},
|
|
1749
|
+
turnTimes: z.object({}).catchall(z.number()).nullish(),
|
|
1750
|
+
cleanup: z.int().min(-9007199254740991).max(9007199254740991).nullish(),
|
|
1640
1751
|
assets: z.optional(
|
|
1641
1752
|
z.array(
|
|
1642
1753
|
z.object({
|
|
@@ -1665,6 +1776,16 @@ const fetchAreaResponseSchema = z.object({
|
|
|
1665
1776
|
publicUrl: z.url()
|
|
1666
1777
|
})
|
|
1667
1778
|
)
|
|
1779
|
+
),
|
|
1780
|
+
closures: z.optional(
|
|
1781
|
+
z.array(
|
|
1782
|
+
z.object({
|
|
1783
|
+
id: z.string(),
|
|
1784
|
+
date: z.string(),
|
|
1785
|
+
reason: z.nullable(z.object({}).catchall(z.string())),
|
|
1786
|
+
isActive: z.boolean()
|
|
1787
|
+
})
|
|
1788
|
+
)
|
|
1668
1789
|
)
|
|
1669
1790
|
}).describe(
|
|
1670
1791
|
"A bookable + public area for a venue. Assets are only included when the request expands them. Operational flags (`isActive`, `isPublic`, `isBookable`) and audit columns are only populated for authenticated venue staff."
|
|
@@ -2597,6 +2718,13 @@ const fetchRitualResponseSchema = z.object({
|
|
|
2597
2718
|
maxGuests: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
2598
2719
|
minPartySize: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
2599
2720
|
maxPartySize: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
2721
|
+
staffByRole: z.nullable(
|
|
2722
|
+
z.union([
|
|
2723
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2724
|
+
z.array(z.any()),
|
|
2725
|
+
z.object({}).catchall(z.any())
|
|
2726
|
+
])
|
|
2727
|
+
),
|
|
2600
2728
|
isPublic: z.boolean(),
|
|
2601
2729
|
reservationsEnabled: z.boolean(),
|
|
2602
2730
|
bookingOpensAtDays: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
@@ -2620,103 +2748,26 @@ const fetchRitualResponseSchema = z.object({
|
|
|
2620
2748
|
covers: z.number()
|
|
2621
2749
|
})
|
|
2622
2750
|
),
|
|
2623
|
-
schedule
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
name: z.union([
|
|
2627
|
-
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2628
|
-
z.array(z.any()),
|
|
2629
|
-
z.object({}).catchall(z.any())
|
|
2630
|
-
]),
|
|
2631
|
-
description: z.nullable(
|
|
2632
|
-
z.union([
|
|
2633
|
-
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2634
|
-
z.array(z.any()),
|
|
2635
|
-
z.object({}).catchall(z.any())
|
|
2636
|
-
])
|
|
2637
|
-
),
|
|
2638
|
-
timezone: z.string(),
|
|
2639
|
-
rrule: z.nullable(z.string()),
|
|
2640
|
-
exdates: z.nullable(z.array(z.string())),
|
|
2641
|
-
validFrom: z.nullable(z.string()),
|
|
2642
|
-
validTo: z.nullable(z.string()),
|
|
2643
|
-
get slotMode() {
|
|
2644
|
-
return slotModeSchema;
|
|
2645
|
-
},
|
|
2646
|
-
intervalDuration: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
2647
|
-
duration: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
2648
|
-
isActive: z.boolean(),
|
|
2649
|
-
sortIndex: z.nullable(z.string().max(255)),
|
|
2650
|
-
updatedAt: z.nullable(z.any()),
|
|
2651
|
-
updatedBy: z.nullable(z.string()),
|
|
2652
|
-
createdAt: z.nullable(z.any()),
|
|
2653
|
-
createdBy: z.nullable(z.string()),
|
|
2654
|
-
scheduleTimeSlots: z.array(
|
|
2655
|
-
z.object({
|
|
2656
|
-
scheduleId: z.nullable(z.string()),
|
|
2657
|
-
timeSlotId: z.nullable(z.string()),
|
|
2658
|
-
get dayOfWeek() {
|
|
2659
|
-
return dayOfWeekSchema;
|
|
2660
|
-
},
|
|
2661
|
-
sortIndex: z.nullable(z.string().max(255)),
|
|
2662
|
-
timeSlot: z.nullable(
|
|
2663
|
-
z.object({
|
|
2664
|
-
id: z.string(),
|
|
2665
|
-
startTime: z.string(),
|
|
2666
|
-
endTime: z.nullable(z.string()),
|
|
2667
|
-
isActive: z.nullable(z.boolean()),
|
|
2668
|
-
isSchedulable: z.nullable(z.boolean()),
|
|
2669
|
-
sortIndex: z.nullable(z.string().max(255)),
|
|
2670
|
-
updatedAt: z.nullable(z.any()),
|
|
2671
|
-
updatedBy: z.nullable(z.string()),
|
|
2672
|
-
createdAt: z.nullable(z.any()),
|
|
2673
|
-
createdBy: z.nullable(z.string())
|
|
2674
|
-
})
|
|
2675
|
-
)
|
|
2676
|
-
})
|
|
2677
|
-
),
|
|
2678
|
-
scheduleOverrides: z.array(
|
|
2679
|
-
z.object({
|
|
2680
|
-
id: z.string(),
|
|
2681
|
-
scheduleId: z.string(),
|
|
2682
|
-
date: z.string(),
|
|
2683
|
-
reason: z.nullable(
|
|
2684
|
-
z.union([
|
|
2685
|
-
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2686
|
-
z.array(z.any()),
|
|
2687
|
-
z.object({}).catchall(z.any())
|
|
2688
|
-
])
|
|
2689
|
-
),
|
|
2690
|
-
isActive: z.boolean(),
|
|
2691
|
-
updatedAt: z.nullable(z.any()),
|
|
2692
|
-
updatedBy: z.nullable(z.string()),
|
|
2693
|
-
createdAt: z.nullable(z.any()),
|
|
2694
|
-
createdBy: z.nullable(z.string()),
|
|
2695
|
-
scheduleOverrideTimeSlots: z.array(
|
|
2696
|
-
z.object({
|
|
2697
|
-
overrideId: z.string(),
|
|
2698
|
-
timeSlotId: z.string(),
|
|
2699
|
-
sortIndex: z.nullable(z.string().max(255)),
|
|
2700
|
-
timeSlot: z.object({
|
|
2701
|
-
id: z.string(),
|
|
2702
|
-
startTime: z.string(),
|
|
2703
|
-
endTime: z.nullable(z.string()),
|
|
2704
|
-
isActive: z.nullable(z.boolean()),
|
|
2705
|
-
isSchedulable: z.nullable(z.boolean()),
|
|
2706
|
-
sortIndex: z.nullable(z.string().max(255)),
|
|
2707
|
-
updatedAt: z.nullable(z.any()),
|
|
2708
|
-
updatedBy: z.nullable(z.string()),
|
|
2709
|
-
createdAt: z.nullable(z.any()),
|
|
2710
|
-
createdBy: z.nullable(z.string())
|
|
2711
|
-
})
|
|
2712
|
-
})
|
|
2713
|
-
)
|
|
2714
|
-
})
|
|
2715
|
-
)
|
|
2716
|
-
})
|
|
2717
|
-
)
|
|
2751
|
+
get schedule() {
|
|
2752
|
+
return scheduleSchema.nullable();
|
|
2753
|
+
}
|
|
2718
2754
|
});
|
|
2719
2755
|
|
|
2756
|
+
const occupancyReasonSchema = z.enum(["ok", "tables", "personnel"]);
|
|
2757
|
+
|
|
2758
|
+
const fetchSlotAvailabilityResponseSchema = z.array(
|
|
2759
|
+
z.object({
|
|
2760
|
+
startTime: z.string().describe("Slot start time in HH:MM:SS format"),
|
|
2761
|
+
acceptable: z.boolean().describe("Whether a party of this size can be booked at this slot"),
|
|
2762
|
+
offered: z.boolean().describe(
|
|
2763
|
+
"Whether the public widget should offer this slot \u2014 passive: always; auto_steer: only when acceptable"
|
|
2764
|
+
),
|
|
2765
|
+
get reason() {
|
|
2766
|
+
return occupancyReasonSchema;
|
|
2767
|
+
}
|
|
2768
|
+
})
|
|
2769
|
+
);
|
|
2770
|
+
|
|
2720
2771
|
const fetchTeamOrderResponseSchema = z.object({
|
|
2721
2772
|
teamOrder: z.object({
|
|
2722
2773
|
id: z.string(),
|
|
@@ -2851,7 +2902,7 @@ const gbpSyncStatusSchema = z.enum([
|
|
|
2851
2902
|
"removed"
|
|
2852
2903
|
]);
|
|
2853
2904
|
|
|
2854
|
-
const
|
|
2905
|
+
const geoAreaTypeSchema = z.enum(["postcode", "city", "region"]);
|
|
2855
2906
|
|
|
2856
2907
|
const getAreaAvailabilityResponseSchema = z.object({
|
|
2857
2908
|
from: z.string().regex(/^\d{4}-\d{2}-\d{2}$/),
|
|
@@ -3225,6 +3276,9 @@ const makeReservationRequestSchema = z.object({
|
|
|
3225
3276
|
"Venue identifier \u2014 UUID or URL-friendly slug (accessor). Resolved server-side."
|
|
3226
3277
|
),
|
|
3227
3278
|
eventId: z.uuid().describe("UUID of the event this reservation is for"),
|
|
3279
|
+
areaId: z.uuid().describe(
|
|
3280
|
+
"UUID of the area to seat this party in. Defaults to the event's primary area (the one with the most tables) when omitted; the occupancy gate evaluates capacity against this area."
|
|
3281
|
+
).nullish(),
|
|
3228
3282
|
reservationDate: z.string().describe("Date of the reservation in YYYY-MM-DD format"),
|
|
3229
3283
|
reservationTime: z.string().describe("Time of the reservation in HH:MM:SS format"),
|
|
3230
3284
|
partySize: z.int().min(1).max(20).describe("Number of guests in the party. Must be between 1 and 20."),
|
|
@@ -3278,6 +3332,7 @@ const makeReservationResponseSchema = z.object({
|
|
|
3278
3332
|
id: z.uuid().describe("Unique identifier for the reservation"),
|
|
3279
3333
|
venueId: z.uuid().describe("Restaurant/tenant identifier"),
|
|
3280
3334
|
eventId: z.uuid().describe("Event identifier for this reservation"),
|
|
3335
|
+
areaId: z.nullable(z.string()),
|
|
3281
3336
|
quickReferenceNumber: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
3282
3337
|
reservationDate: z.string().describe("Date of the reservation in YYYY-MM-DD format"),
|
|
3283
3338
|
reservationTime: z.string().describe("Time of the reservation in HH:MM:SS format"),
|
|
@@ -3355,7 +3410,7 @@ const mentionFieldFormatterSchema = z.enum([
|
|
|
3355
3410
|
"boolean"
|
|
3356
3411
|
]);
|
|
3357
3412
|
|
|
3358
|
-
const
|
|
3413
|
+
const mentionTypeSchema = z.enum(["link", "value"]);
|
|
3359
3414
|
|
|
3360
3415
|
const patchArticleFeatureImageBodySchema = z.object({
|
|
3361
3416
|
caption: z.optional(z.object({}).catchall(z.any())),
|
|
@@ -3364,6 +3419,8 @@ const patchArticleFeatureImageBodySchema = z.object({
|
|
|
3364
3419
|
"Locale-keyed merge of the asset-side `caption` and `alt` records. Each locale value may be a plain string OR a TipTap doc; strings are wrapped server-side. Setting `en` does not touch `de`."
|
|
3365
3420
|
);
|
|
3366
3421
|
|
|
3422
|
+
const paxBandSchema = z.enum(["1-2", "3-4", "5-6", "7+"]);
|
|
3423
|
+
|
|
3367
3424
|
const pendingSuperadminTransferStatusSchema = z.enum([
|
|
3368
3425
|
"pending_invite",
|
|
3369
3426
|
"accepted_awaiting_payment",
|
|
@@ -3409,6 +3466,8 @@ const placeOrderResponseSchema = z.object({
|
|
|
3409
3466
|
}
|
|
3410
3467
|
});
|
|
3411
3468
|
|
|
3469
|
+
const platformRoleSchema = z.enum(["platform_maintainer"]);
|
|
3470
|
+
|
|
3412
3471
|
const reduceDeltaPaymentIntentRequestSchema = z.object({
|
|
3413
3472
|
venueAccessor: z.string().min(1),
|
|
3414
3473
|
basketId: z.string().min(1),
|
|
@@ -3443,12 +3502,24 @@ const removeFromBasketResponseSchema = z.object({
|
|
|
3443
3502
|
|
|
3444
3503
|
const reservationMessageStatusSchema = z.enum(["draft", "sent"]);
|
|
3445
3504
|
|
|
3505
|
+
const reservationModeSchema = z.enum(["passive", "auto_steer"]);
|
|
3506
|
+
|
|
3446
3507
|
const reservationPromotionStatusSchema = z.enum([
|
|
3447
3508
|
"applied",
|
|
3448
3509
|
"redeemed",
|
|
3449
3510
|
"expired"
|
|
3450
3511
|
]);
|
|
3451
3512
|
|
|
3513
|
+
const roleSchema = z.enum([
|
|
3514
|
+
"superadmin",
|
|
3515
|
+
"admin",
|
|
3516
|
+
"manager",
|
|
3517
|
+
"chef",
|
|
3518
|
+
"cook",
|
|
3519
|
+
"waiter",
|
|
3520
|
+
"rider"
|
|
3521
|
+
]);
|
|
3522
|
+
|
|
3452
3523
|
const saveAdKeywordsRequestSchema = z.object({
|
|
3453
3524
|
venueAccessor: z.string().min(1),
|
|
3454
3525
|
adId: z.string().min(1),
|
|
@@ -3725,7 +3796,7 @@ const venueAssetTypeSchema = z.enum([
|
|
|
3725
3796
|
"combinationmark_vertical"
|
|
3726
3797
|
]);
|
|
3727
3798
|
|
|
3728
|
-
const
|
|
3799
|
+
const venueChargeTypeSchema = z.enum(["base", "addon"]);
|
|
3729
3800
|
|
|
3730
3801
|
const venueEmailSenderStatusSchema = z.enum([
|
|
3731
3802
|
"pending",
|
|
@@ -3758,6 +3829,7 @@ const schemas = {
|
|
|
3758
3829
|
AreaBookingRequestStatus: areaBookingRequestStatusSchema,
|
|
3759
3830
|
AreaBookingStatus: areaBookingStatusSchema,
|
|
3760
3831
|
Area: areaSchema,
|
|
3832
|
+
AreaType: areaTypeSchema,
|
|
3761
3833
|
ArticleEditorSaveState: articleEditorSaveStateSchema,
|
|
3762
3834
|
ArticleMentionCounts: articleMentionCountsSchema,
|
|
3763
3835
|
ArticleStatus: articleStatusSchema,
|
|
@@ -3828,11 +3900,12 @@ const schemas = {
|
|
|
3828
3900
|
FetchMenuResponse: fetchMenuResponseSchema,
|
|
3829
3901
|
FetchMenuSubscriptionsResponse: fetchMenuSubscriptionsResponseSchema,
|
|
3830
3902
|
FetchRitualResponse: fetchRitualResponseSchema,
|
|
3903
|
+
FetchSlotAvailabilityResponse: fetchSlotAvailabilityResponseSchema,
|
|
3831
3904
|
FetchTeamOrderResponse: fetchTeamOrderResponseSchema,
|
|
3832
3905
|
FulfillmentType: fulfillmentTypeSchema,
|
|
3833
3906
|
GbpMediaCategory: gbpMediaCategorySchema,
|
|
3834
3907
|
GbpSyncStatus: gbpSyncStatusSchema,
|
|
3835
|
-
|
|
3908
|
+
GeoAreaType: geoAreaTypeSchema,
|
|
3836
3909
|
GetAreaAvailabilityResponse: getAreaAvailabilityResponseSchema,
|
|
3837
3910
|
GetBasketTotalsRequest: getBasketTotalsRequestSchema,
|
|
3838
3911
|
GetBasketTotalsResponse: getBasketTotalsResponseSchema,
|
|
@@ -3852,28 +3925,34 @@ const schemas = {
|
|
|
3852
3925
|
MakeReservationResponse: makeReservationResponseSchema,
|
|
3853
3926
|
MentionEntityType: mentionEntityTypeSchema,
|
|
3854
3927
|
MentionFieldFormatter: mentionFieldFormatterSchema,
|
|
3855
|
-
|
|
3928
|
+
MentionType: mentionTypeSchema,
|
|
3856
3929
|
MenuItemType: menuItemTypeSchema,
|
|
3930
|
+
OccupancyReason: occupancyReasonSchema,
|
|
3857
3931
|
OgImage: ogImageSchema,
|
|
3858
3932
|
OrderStatus: orderStatusSchema,
|
|
3859
3933
|
ParticipantStatus: participantStatusSchema,
|
|
3860
3934
|
PatchArticleFeatureImageBody: patchArticleFeatureImageBodySchema,
|
|
3935
|
+
PaxBand: paxBandSchema,
|
|
3861
3936
|
PaymentMethod: paymentMethodSchema,
|
|
3862
3937
|
PaymentStatus: paymentStatusSchema,
|
|
3863
3938
|
PendingSuperadminTransferStatus: pendingSuperadminTransferStatusSchema,
|
|
3864
3939
|
PlaceOrderRequest: placeOrderRequestSchema,
|
|
3865
3940
|
PlaceOrderResponse: placeOrderResponseSchema,
|
|
3941
|
+
PlatformRole: platformRoleSchema,
|
|
3866
3942
|
PromotionBenefitType: promotionBenefitTypeSchema,
|
|
3867
3943
|
ReduceDeltaPaymentIntentRequest: reduceDeltaPaymentIntentRequestSchema,
|
|
3868
3944
|
ReduceDeltaPaymentIntentResponse: reduceDeltaPaymentIntentResponseSchema,
|
|
3869
3945
|
RemoveFromBasketResponse: removeFromBasketResponseSchema,
|
|
3870
3946
|
ReservationMessageStatus: reservationMessageStatusSchema,
|
|
3947
|
+
ReservationMode: reservationModeSchema,
|
|
3871
3948
|
ReservationPromotionStatus: reservationPromotionStatusSchema,
|
|
3872
3949
|
ReservationStatus: reservationStatusSchema,
|
|
3873
3950
|
RitualType: ritualTypeSchema,
|
|
3951
|
+
Role: roleSchema,
|
|
3874
3952
|
SaveAdKeywordsRequest: saveAdKeywordsRequestSchema,
|
|
3875
3953
|
SaveAdKeywordsResponse: saveAdKeywordsResponseSchema,
|
|
3876
3954
|
ScanTokenEntityType: scanTokenEntityTypeSchema,
|
|
3955
|
+
Schedule: scheduleSchema,
|
|
3877
3956
|
SetArticleFeatureImageUploadBody: setArticleFeatureImageUploadBodySchema,
|
|
3878
3957
|
SetBasketDeclaredReturnsRequest: setBasketDeclaredReturnsRequestSchema,
|
|
3879
3958
|
SetBasketDeclaredReturnsResponse: setBasketDeclaredReturnsResponseSchema,
|
|
@@ -3905,7 +3984,7 @@ const schemas = {
|
|
|
3905
3984
|
UpdateDeliveryAddressTeamOrderResponse: updateDeliveryAddressTeamOrderResponseSchema,
|
|
3906
3985
|
UploadAssetResponse: uploadAssetResponseSchema,
|
|
3907
3986
|
VenueAssetType: venueAssetTypeSchema,
|
|
3908
|
-
|
|
3987
|
+
VenueChargeType: venueChargeTypeSchema,
|
|
3909
3988
|
VenueEmailSenderStatus: venueEmailSenderStatusSchema,
|
|
3910
3989
|
VenueType: venueTypeSchema,
|
|
3911
3990
|
VenueUserStatus: venueUserStatusSchema
|