order3000 0.18.3 → 0.19.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 +0 -8
- package/dist/client.d.cts +746 -23
- package/dist/client.d.mts +746 -23
- package/dist/client.mjs +0 -8
- package/dist/schemas.cjs +122 -0
- package/dist/schemas.d.cts +2753 -0
- package/dist/schemas.d.mts +2753 -0
- package/dist/schemas.mjs +120 -0
- package/package.json +24 -9
package/dist/client.mjs
CHANGED
|
@@ -429,14 +429,6 @@ class OrdersResource extends BaseResource {
|
|
|
429
429
|
async confirm(orderId, request) {
|
|
430
430
|
return this.request("POST", `/${orderId}/confirm`, request);
|
|
431
431
|
}
|
|
432
|
-
/**
|
|
433
|
-
* Record an additional cash handover amount for a team-order participant
|
|
434
|
-
* who has added items after their initial cash payment. No Stripe
|
|
435
|
-
* interaction — this updates the handover total the Lead will collect.
|
|
436
|
-
*/
|
|
437
|
-
async addCashDelta(request) {
|
|
438
|
-
return this.request("POST", "/cash-delta", request);
|
|
439
|
-
}
|
|
440
432
|
}
|
|
441
433
|
|
|
442
434
|
class PaymentIntentsResource extends BaseResource {
|
package/dist/schemas.cjs
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var zod = require('zod');
|
|
4
|
+
|
|
5
|
+
const Area = zod.z.object({ id: zod.z.string(), venueId: zod.z.string(), accessor: zod.z.string(), name: zod.z.record(zod.z.string()), description: zod.z.record(zod.z.string()).nullable(), longDescription: zod.z.record(zod.z.string()).nullable(), minCapacity: zod.z.number().int().gte(-9007199254740991).lte(9007199254740991).nullable(), maxCapacity: zod.z.number().int().gte(-9007199254740991).lte(9007199254740991), currency: zod.z.enum(["EUR", "CHF"]), basePrice: zod.z.number().int().gte(-9007199254740991).lte(9007199254740991).nullable(), perPersonPrice: zod.z.number().int().gte(-9007199254740991).lte(9007199254740991).nullable(), features: zod.z.array(zod.z.object({ icon: zod.z.string(), label: zod.z.record(zod.z.string()), description: zod.z.record(zod.z.string()).optional() }).strict()).nullable(), bookingMode: zod.z.enum(["slot", "day"]), assets: zod.z.array(zod.z.object({ id: zod.z.string(), type: zod.z.enum(["image", "video", "document"]), tags: zod.z.array(zod.z.string()).nullable(), filename: zod.z.string(), contentType: zod.z.string(), metadata: zod.z.object({ width: zod.z.number(), height: zod.z.number(), duration: zod.z.number() }).partial().strict().nullable(), cropArea: zod.z.object({ x: zod.z.number(), y: zod.z.number(), width: zod.z.number(), height: zod.z.number() }).strict().nullable(), publicUrl: zod.z.string().url() }).strict()).optional() }).strict();
|
|
6
|
+
const ListAreasResponse = zod.z.array(Area);
|
|
7
|
+
const GetAreaResponse = zod.z.object({ id: zod.z.string(), venueId: zod.z.string(), accessor: zod.z.string(), name: zod.z.record(zod.z.string()), description: zod.z.record(zod.z.string()).nullable(), longDescription: zod.z.record(zod.z.string()).nullable(), minCapacity: zod.z.number().int().gte(-9007199254740991).lte(9007199254740991).nullable(), maxCapacity: zod.z.number().int().gte(-9007199254740991).lte(9007199254740991), currency: zod.z.enum(["EUR", "CHF"]), basePrice: zod.z.number().int().gte(-9007199254740991).lte(9007199254740991).nullable(), perPersonPrice: zod.z.number().int().gte(-9007199254740991).lte(9007199254740991).nullable(), features: zod.z.array(zod.z.object({ icon: zod.z.string(), label: zod.z.record(zod.z.string()), description: zod.z.record(zod.z.string()).optional() }).strict()).nullable(), bookingMode: zod.z.enum(["slot", "day"]), assets: zod.z.array(zod.z.object({ id: zod.z.string(), type: zod.z.enum(["image", "video", "document"]), tags: zod.z.array(zod.z.string()).nullable(), filename: zod.z.string(), contentType: zod.z.string(), metadata: zod.z.object({ width: zod.z.number(), height: zod.z.number(), duration: zod.z.number() }).partial().strict().nullable(), cropArea: zod.z.object({ x: zod.z.number(), y: zod.z.number(), width: zod.z.number(), height: zod.z.number() }).strict().nullable(), publicUrl: zod.z.string().url() }).strict()).optional() }).strict();
|
|
8
|
+
const GetAreaAvailabilityResponse = zod.z.object({ from: zod.z.string().regex(/^\d{4}-\d{2}-\d{2}$/), to: zod.z.string().regex(/^\d{4}-\d{2}-\d{2}$/), bookingMode: zod.z.enum(["slot", "day"]), occupied: zod.z.array(zod.z.object({ date: zod.z.string().regex(/^\d{4}-\d{2}-\d{2}$/), startTime: zod.z.string().regex(/^\d{2}:\d{2}(:\d{2})?$/).nullable(), endTime: zod.z.string().regex(/^\d{2}:\d{2}(:\d{2})?$/).nullable() }).strict()) }).strict();
|
|
9
|
+
const SubmitAreaBookingRequest = zod.z.object({ requestedDate: zod.z.string().regex(/^\d{4}-\d{2}-\d{2}$/), requestedStartTime: zod.z.string().regex(/^\d{2}:\d{2}(:\d{2})?$/).optional(), requestedEndTime: zod.z.string().regex(/^\d{2}:\d{2}(:\d{2})?$/).optional(), partySize: zod.z.number().int().lte(9007199254740991), customerFirstName: zod.z.string().min(1), customerLastName: zod.z.string().min(1), customerEmail: zod.z.string().regex(/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/).email(), customerPhone: zod.z.string().optional(), message: zod.z.string().optional(), source: zod.z.enum(["website", "phone", "walk_in"]).optional() }).strict();
|
|
10
|
+
const SubmitAreaBookingResponse = zod.z.object({ id: zod.z.string(), venueId: zod.z.string(), areaId: zod.z.string(), requestedDate: zod.z.string().regex(/^\d{4}-\d{2}-\d{2}$/), requestedStartTime: zod.z.string().regex(/^\d{2}:\d{2}(:\d{2})?$/).nullable(), requestedEndTime: zod.z.string().regex(/^\d{2}:\d{2}(:\d{2})?$/).nullable(), partySize: zod.z.number().int().gte(-9007199254740991).lte(9007199254740991), customerFirstName: zod.z.string(), customerLastName: zod.z.string(), customerEmail: zod.z.string(), customerPhone: zod.z.string().nullable(), message: zod.z.string().nullable(), source: zod.z.enum(["website", "phone", "walk_in"]), status: zod.z.enum(["pending", "approved", "rejected", "cancelled"]), areaBookingId: zod.z.string().nullable(), createdAt: zod.z.string().nullable(), updatedAt: zod.z.string().nullable() }).strict();
|
|
11
|
+
const AddToBasketRequest = zod.z.object({ venueId: zod.z.string().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/).uuid(), sessionId: zod.z.string().min(1), menuItems: zod.z.array(zod.z.object({ menuItemId: zod.z.string().min(1), role: zod.z.string().optional(), quantity: zod.z.number().gt(0).optional(), unit: zod.z.enum(["grams", "kilograms", "liters", "milliliters", "pieces"]).optional() }).strict()).min(1), metadata: zod.z.object({}).partial().strict().passthrough().optional() }).strict();
|
|
12
|
+
const AddToBasketResponse = zod.z.object({ basketItemId: zod.z.string().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/).uuid(), itemCount: zod.z.number().int().gte(0).lte(9007199254740991), deposit: zod.z.object({ depositwareTemplateId: zod.z.string(), name: zod.z.record(zod.z.string()), amount: zod.z.number().int().gte(0).lte(9007199254740991), currency: zod.z.enum(["EUR", "CHF"]) }).strict().nullable(), totals: zod.z.object({ currency: zod.z.enum(["EUR", "CHF"]), itemsTotal: zod.z.number().int().gte(0).lte(9007199254740991), taxAmount: zod.z.number().int().gte(0).lte(9007199254740991), depositCharge: zod.z.number().int().gte(0).lte(9007199254740991), grossTotal: zod.z.number().int().gte(0).lte(9007199254740991), depositCredit: zod.z.number().int().gte(0).lte(9007199254740991), effectiveTotal: zod.z.number().int().gte(0).lte(9007199254740991), cashRefund: zod.z.number().int().gte(0).lte(9007199254740991), returnable: zod.z.array(zod.z.object({ depositwareTemplateId: zod.z.string(), count: zod.z.number().int().gte(0).lte(9007199254740991) }).strict()) }).strict() }).strict();
|
|
13
|
+
const RemoveFromBasketResponse = zod.z.object({ success: zod.z.boolean(), basketItemId: zod.z.string().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/).uuid(), itemCount: zod.z.number().int().gte(0).lte(9007199254740991), totals: zod.z.object({ currency: zod.z.enum(["EUR", "CHF"]), itemsTotal: zod.z.number().int().gte(0).lte(9007199254740991), taxAmount: zod.z.number().int().gte(0).lte(9007199254740991), depositCharge: zod.z.number().int().gte(0).lte(9007199254740991), grossTotal: zod.z.number().int().gte(0).lte(9007199254740991), depositCredit: zod.z.number().int().gte(0).lte(9007199254740991), effectiveTotal: zod.z.number().int().gte(0).lte(9007199254740991), cashRefund: zod.z.number().int().gte(0).lte(9007199254740991), returnable: zod.z.array(zod.z.object({ depositwareTemplateId: zod.z.string(), count: zod.z.number().int().gte(0).lte(9007199254740991) }).strict()) }).strict().nullable() }).strict();
|
|
14
|
+
const GetBasketTotalsRequest = zod.z.object({ declaredReturns: zod.z.array(zod.z.object({ depositwareTemplateId: zod.z.string().min(1), count: zod.z.number().int().gte(0).lte(9007199254740991) }).strict()) }).partial().strict();
|
|
15
|
+
const GetBasketTotalsResponse = zod.z.object({ currency: zod.z.enum(["EUR", "CHF"]), itemsTotal: zod.z.number().int().gte(0).lte(9007199254740991), taxAmount: zod.z.number().int().gte(0).lte(9007199254740991), depositCharge: zod.z.number().int().gte(0).lte(9007199254740991), grossTotal: zod.z.number().int().gte(0).lte(9007199254740991), depositCredit: zod.z.number().int().gte(0).lte(9007199254740991), effectiveTotal: zod.z.number().int().gte(0).lte(9007199254740991), cashRefund: zod.z.number().int().gte(0).lte(9007199254740991), returnable: zod.z.array(zod.z.object({ depositwareTemplateId: zod.z.string(), count: zod.z.number().int().gte(0).lte(9007199254740991) }).strict()) }).strict();
|
|
16
|
+
const SetBasketDeclaredReturnsRequest = zod.z.object({ basketId: zod.z.string().min(1), sessionId: zod.z.string().min(1), declaredReturns: zod.z.array(zod.z.object({ depositwareTemplateId: zod.z.string().min(1), count: zod.z.number().int().gte(0).lte(9007199254740991) }).strict()) }).strict();
|
|
17
|
+
const SetBasketDeclaredReturnsResponse = zod.z.object({ basketId: zod.z.string(), declaredReturns: zod.z.array(zod.z.object({ depositwareTemplateId: zod.z.string().min(1), count: zod.z.number().int().gte(0).lte(9007199254740991) }).strict()) }).strict();
|
|
18
|
+
const CreateEventRequest = zod.z.object({ accessor: zod.z.string().nullish(), name: zod.z.union([zod.z.union([zod.z.string(), zod.z.number(), zod.z.boolean(), zod.z.literal(null)]), zod.z.object({}).partial().strict().passthrough(), zod.z.array(zod.z.unknown())]), description: zod.z.union([zod.z.union([zod.z.string(), zod.z.number(), zod.z.boolean(), zod.z.literal(null)]), zod.z.object({}).partial().strict().passthrough(), zod.z.array(zod.z.unknown())]).nullish(), scheduleId: zod.z.string().nullish(), maxBookings: zod.z.number().int().gte(-2147483648).lte(2147483647).nullish(), maxGuests: zod.z.number().int().gte(-2147483648).lte(2147483647).nullish(), minPartySize: zod.z.number().int().gte(-2147483648).lte(2147483647).nullish(), maxPartySize: zod.z.number().int().gte(-2147483648).lte(2147483647).nullish(), isPublic: zod.z.boolean().optional(), isRecurring: zod.z.boolean().optional(), reservationsEnabled: zod.z.boolean().optional(), bookingOpensAtDays: zod.z.number().int().gte(-2147483648).lte(2147483647).nullish(), bookingClosesAtHours: zod.z.number().int().gte(-2147483648).lte(2147483647).nullish(), isActive: zod.z.boolean().optional(), isFeatured: zod.z.boolean().optional(), priority: zod.z.number().int().gte(-2147483648).lte(2147483647).optional(), schedule: zod.z.object({ rrule: zod.z.string().nullish(), timezone: zod.z.string().nullish(), validFrom: zod.z.string().regex(/^\d{4}-\d{2}-\d{2}$/).nullish(), validTo: zod.z.string().regex(/^\d{4}-\d{2}-\d{2}$/).nullish(), timeRanges: zod.z.array(zod.z.object({ startTime: zod.z.string().regex(/^\d{2}:\d{2}$/), endTime: zod.z.string().regex(/^\d{2}:\d{2}$/), lastSeatingTime: zod.z.string().regex(/^\d{2}:\d{2}$/).nullish() }).strict()).min(1), slotMode: zod.z.enum(["interval", "duration"]).nullish(), intervalMinutes: zod.z.number().nullish(), durationMinutes: zod.z.number().nullish() }).strict().nullish(), ritualAccessor: zod.z.string().nullish(), venueAccessor: zod.z.string().min(1) }).strict();
|
|
19
|
+
const CreateEventResponse = zod.z.object({ id: zod.z.string(), venueId: zod.z.string(), accessor: zod.z.string().nullable(), name: zod.z.union([zod.z.union([zod.z.string(), zod.z.number(), zod.z.boolean(), zod.z.literal(null)]), zod.z.object({}).partial().strict().passthrough(), zod.z.array(zod.z.unknown())]), description: zod.z.union([zod.z.union([zod.z.string(), zod.z.number(), zod.z.boolean(), zod.z.literal(null)]), zod.z.object({}).partial().strict().passthrough(), zod.z.array(zod.z.unknown())]).nullable(), scheduleId: zod.z.string().nullable(), ritualId: zod.z.string().nullable(), maxBookings: zod.z.number().int().gte(-2147483648).lte(2147483647).nullable(), maxGuests: zod.z.number().int().gte(-2147483648).lte(2147483647).nullable(), minPartySize: zod.z.number().int().gte(-2147483648).lte(2147483647).nullable(), maxPartySize: zod.z.number().int().gte(-2147483648).lte(2147483647).nullable(), isPublic: zod.z.boolean(), isRecurring: zod.z.boolean(), reservationsEnabled: zod.z.boolean(), bookingOpensAtDays: zod.z.number().int().gte(-2147483648).lte(2147483647).nullable(), bookingClosesAtHours: zod.z.number().int().gte(-2147483648).lte(2147483647).nullable(), isActive: zod.z.boolean(), isFeatured: zod.z.boolean(), priority: zod.z.number().int().gte(-2147483648).lte(2147483647), createdBy: zod.z.string().nullable(), updatedBy: zod.z.string().nullable(), createdAt: zod.z.unknown().nullable(), updatedAt: zod.z.unknown().nullable() }).strict();
|
|
20
|
+
const GetMenuResponse = zod.z.object({ id: zod.z.string(), venueId: zod.z.string(), accessor: zod.z.string(), name: zod.z.record(zod.z.string()) }).strict().passthrough();
|
|
21
|
+
const ListMenuBundlesResponse = zod.z.array(zod.z.object({ id: zod.z.string(), menuId: zod.z.string() }).strict().passthrough());
|
|
22
|
+
const ListMenuSubscriptionsResponse = zod.z.array(zod.z.object({ id: zod.z.string(), menuId: zod.z.string() }).strict().passthrough());
|
|
23
|
+
const PlaceOrderRequest = zod.z.object({ id: zod.z.string().optional(), venueId: zod.z.string(), basketId: zod.z.string(), publicId: zod.z.string().nullish(), quickReferenceNumber: zod.z.number().int().gte(-2147483648).lte(2147483647).nullish(), status: zod.z.enum(["pending", "in_progress", "ready", "completed", "cancelled"]).optional(), paymentIntentId: zod.z.string().nullish(), paymentMethod: zod.z.enum(["card", "cash", "voucher"]).nullish(), paymentStatus: zod.z.enum(["unpaid", "paid", "refunded", "authorized", "cash_pending"]).optional(), taxAmount: zod.z.number().int().gte(-2147483648).lte(2147483647), totalAmount: zod.z.number().int().gte(-2147483648).lte(2147483647), currency: zod.z.enum(["EUR", "CHF"]).optional(), fulfillmentType: zod.z.enum(["pickup", "delivery"]).nullish(), fulfillmentAt: zod.z.unknown().nullish(), orderedAt: zod.z.unknown().optional(), orderedBy: zod.z.string(), updatedAt: zod.z.unknown().nullish(), updatedBy: zod.z.string().nullish(), teamOrderId: zod.z.string().nullish(), participantDisplayName: zod.z.string().nullish(), leadSettledAt: zod.z.unknown().nullish() }).strict();
|
|
24
|
+
const PlaceOrderResponse = zod.z.object({ id: zod.z.string(), venueId: zod.z.string(), basketId: zod.z.string(), publicId: zod.z.string().nullable(), quickReferenceNumber: zod.z.number().int().gte(-2147483648).lte(2147483647).nullable(), status: zod.z.enum(["pending", "in_progress", "ready", "completed", "cancelled"]), paymentIntentId: zod.z.string().nullable(), paymentMethod: zod.z.enum(["card", "cash", "voucher"]).nullable(), paymentStatus: zod.z.enum(["unpaid", "paid", "refunded", "authorized", "cash_pending"]), taxAmount: zod.z.number().int().gte(-2147483648).lte(2147483647), totalAmount: zod.z.number().int().gte(-2147483648).lte(2147483647), currency: zod.z.enum(["EUR", "CHF"]), fulfillmentType: zod.z.enum(["pickup", "delivery"]).nullable(), fulfillmentAt: zod.z.unknown().nullable(), orderedAt: zod.z.unknown(), orderedBy: zod.z.string(), updatedAt: zod.z.unknown().nullable(), updatedBy: zod.z.string().nullable(), teamOrderId: zod.z.string().nullable(), participantDisplayName: zod.z.string().nullable(), leadSettledAt: zod.z.unknown().nullable() }).strict();
|
|
25
|
+
const CreatePaymentIntentRequest = zod.z.object({ basketId: zod.z.string().min(1), currency: zod.z.enum(["EUR", "CHF"]), sessionId: zod.z.string().min(1), fulfillmentType: zod.z.enum(["pickup", "delivery"]), fulfillmentAt: zod.z.string().regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$/).datetime({ offset: true }).nullish(), customerFirstName: zod.z.string().optional(), customerLastName: zod.z.string().optional(), teamOrderPublicId: zod.z.string().optional(), declaredReturns: zod.z.array(zod.z.object({ depositwareTemplateId: zod.z.string().min(1), count: zod.z.number().int().gte(0).lte(9007199254740991) }).strict()).optional() }).strict();
|
|
26
|
+
const CreatePaymentIntentResponse = zod.z.object({ clientSecret: zod.z.string().nullable(), paymentIntentId: zod.z.string(), orderId: zod.z.string() }).strict();
|
|
27
|
+
const CreateDeltaPaymentIntentRequest = zod.z.object({ basketId: zod.z.string().min(1), sessionId: zod.z.string().min(1), currency: zod.z.enum(["EUR", "CHF"]), declaredReturns: zod.z.array(zod.z.object({ depositwareTemplateId: zod.z.string().min(1), count: zod.z.number().int().gte(0).lte(9007199254740991) }).strict()).optional() }).strict();
|
|
28
|
+
const CreateDeltaPaymentIntentResponse = zod.z.object({ clientSecret: zod.z.string().nullable(), paymentIntentId: zod.z.string(), orderId: zod.z.string(), amount: zod.z.number().int().lte(9007199254740991), status: zod.z.enum(["requires_payment_method", "requires_confirmation", "requires_action", "processing", "requires_capture", "canceled", "succeeded"]) }).strict();
|
|
29
|
+
const ReduceDeltaPaymentIntentRequest = zod.z.object({ basketId: zod.z.string().min(1), sessionId: zod.z.string().min(1), currency: zod.z.enum(["EUR", "CHF"]), declaredReturns: zod.z.array(zod.z.object({ depositwareTemplateId: zod.z.string().min(1), count: zod.z.number().int().gte(0).lte(9007199254740991) }).strict()).optional() }).strict();
|
|
30
|
+
const ReduceDeltaPaymentIntentResponse = zod.z.object({ orderId: zod.z.string(), paidTotal: zod.z.number().int().gte(0).lte(9007199254740991), released: zod.z.number().int().gte(0).lte(9007199254740991) }).strict();
|
|
31
|
+
const MakeReservationRequest = zod.z.object({ eventId: zod.z.string().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/).uuid(), quickReferenceNumber: zod.z.number().int().gte(-2147483648).lte(2147483647).nullish(), reservationDate: zod.z.string(), reservationTime: zod.z.string(), partySize: zod.z.number().int().gte(1).lte(20), duration: zod.z.number().int().gte(30).lte(300).nullable(), customerId: zod.z.string().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/).uuid().nullable(), customerFirstName: zod.z.string().min(1).max(50), customerLastName: zod.z.string().min(1).max(50), customerEmail: zod.z.string().regex(/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/).email().nullish(), customerPhone: zod.z.string().min(1).nullish(), contactPreference: zod.z.enum(["email", "phone", "sms", "none"]), source: zod.z.enum(["website", "phone", "walk_in"]), specialRequests: zod.z.string().max(500).nullable(), tablePreference: zod.z.string().max(100).nullable(), venueAccessor: zod.z.string().min(1) }).strict();
|
|
32
|
+
const MakeReservationResponse = zod.z.object({ id: zod.z.string().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/).uuid(), venueId: zod.z.string().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/).uuid(), eventId: zod.z.string().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/).uuid(), quickReferenceNumber: zod.z.number().int().gte(-2147483648).lte(2147483647).nullable(), reservationDate: zod.z.string(), reservationTime: zod.z.string(), partySize: zod.z.number().int().gte(-9007199254740991).lte(9007199254740991), duration: zod.z.number().int().gte(-9007199254740991).lte(9007199254740991).nullable(), customerId: zod.z.string().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/).uuid().nullable(), customerFirstName: zod.z.string(), customerLastName: zod.z.string(), customerEmail: zod.z.string().nullable(), customerPhone: zod.z.string().nullable(), contactPreference: zod.z.enum(["email", "phone", "sms", "none"]), status: zod.z.enum(["pending", "confirmed", "arrived", "seated", "completed", "cancelled", "no_show"]), confirmationCode: zod.z.string().nullable(), confirmedAt: zod.z.unknown().nullable(), arrivedAt: zod.z.unknown().nullable(), seatedAt: zod.z.unknown().nullable(), completedAt: zod.z.unknown().nullable(), cancelledAt: zod.z.unknown().nullable(), cancellationReason: zod.z.enum(["customer_request", "restaurant_request"]).nullable(), cancellationNote: zod.z.string().nullable(), source: zod.z.enum(["website", "phone", "walk_in"]), specialRequests: zod.z.string().nullable(), tablePreference: zod.z.string().nullable(), createdBy: zod.z.string().nullable(), updatedBy: zod.z.string().nullable(), createdAt: zod.z.unknown().nullable(), updatedAt: zod.z.unknown().nullable() }).strict();
|
|
33
|
+
const GetSubscriptionResponse = zod.z.object({ id: zod.z.string(), menuId: zod.z.string(), accessor: zod.z.string(), name: zod.z.record(zod.z.string()), shortName: zod.z.record(zod.z.string()).nullable(), description: zod.z.record(zod.z.string()).nullable(), scheduleId: zod.z.string().nullable(), allowance: zod.z.number().int().lte(9007199254740991), billingPeriod: zod.z.enum(["week", "month", "year"]), allowancePeriod: zod.z.enum(["week", "month", "year"]), redeemableTagSets: zod.z.array(zod.z.string()).nullable(), expiryInDays: zod.z.number().int().lte(9007199254740991).nullable(), price: zod.z.number().int().gte(0).lte(9007199254740991), currency: zod.z.enum(["EUR", "CHF"]), isActive: zod.z.boolean(), sortIndex: zod.z.number().int().gte(-9007199254740991).lte(9007199254740991).nullable(), posters: zod.z.array(zod.z.object({ id: zod.z.string(), menuSubscriptionId: zod.z.string(), storagePath: zod.z.string(), publicUrl: zod.z.string().url(), filename: zod.z.string(), contentType: zod.z.string(), sizeBytes: zod.z.number().int().gte(-9007199254740991).lte(9007199254740991).nullable(), sortIndex: zod.z.number().int().gte(-9007199254740991).lte(9007199254740991).nullable(), createdBy: zod.z.string().nullable(), createdAt: zod.z.string().nullable() }).strict()) }).strict();
|
|
34
|
+
const SubscribeRequest = zod.z.object({ email: zod.z.string().regex(/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/).email(), firstName: zod.z.string().optional(), lastName: zod.z.string().optional(), sessionId: zod.z.string().optional(), successUrl: zod.z.string().url(), cancelUrl: zod.z.string().url() }).strict();
|
|
35
|
+
const SubscribeResponse = zod.z.object({ checkoutUrl: zod.z.string().url().nullable(), sessionId: zod.z.string() }).strict();
|
|
36
|
+
const CancelSubscriptionRequest = zod.z.object({ subscriberId: zod.z.string().min(1) }).strict();
|
|
37
|
+
const CancelSubscriptionResponse = zod.z.object({ success: zod.z.literal(true) }).strict();
|
|
38
|
+
const GetSubscriptionCreditsResponse = zod.z.array(zod.z.object({ id: zod.z.string(), subscriberId: zod.z.string(), periodStart: zod.z.string(), periodEnd: zod.z.string(), expiresAt: zod.z.string().nullable(), status: zod.z.enum(["available", "redeemed", "expired"]), redeemedAt: zod.z.string().nullable(), orderId: zod.z.string().nullable(), createdAt: zod.z.string().nullable() }).strict());
|
|
39
|
+
const CreateTeamOrderRequest = zod.z.object({ venueId: zod.z.string().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/).uuid(), sessionId: zod.z.string().min(1), menuId: zod.z.string().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/).uuid(), leadDisplayName: zod.z.string().min(1), teamName: zod.z.string().min(1).optional(), logoUrl: zod.z.string().url().optional(), deadlineAt: zod.z.string().regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/).datetime({ offset: true }).nullish(), fulfillmentType: zod.z.enum(["pickup", "delivery"]), fulfillmentAt: zod.z.string().regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/).datetime({ offset: true }).nullish(), deliveryAddress: zod.z.object({ street: zod.z.string(), city: zod.z.string(), state: zod.z.string(), postalCode: zod.z.string(), country: zod.z.string() }).strict().optional(), allowedPaymentMethods: zod.z.array(zod.z.enum(["card", "cash", "voucher"])).min(1), eventId: zod.z.string().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/).uuid().optional() }).strict();
|
|
40
|
+
const CreateTeamOrderResponse = zod.z.object({ publicId: zod.z.string(), teamOrderId: zod.z.string().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/).uuid() }).strict();
|
|
41
|
+
const FetchTeamOrderResponse = zod.z.object({ teamOrder: zod.z.object({ id: zod.z.string(), publicId: zod.z.string(), venueId: zod.z.string(), menuId: zod.z.string(), eventId: zod.z.string().nullable(), teamName: zod.z.string().nullable(), logoUrl: zod.z.string().nullable(), leadDisplayName: zod.z.string(), status: zod.z.enum(["draft", "collecting", "locked", "placed", "ready", "completed", "cancelled"]), allowedPaymentMethods: zod.z.array(zod.z.enum(["card", "cash", "voucher"])), fulfillmentType: zod.z.enum(["pickup", "delivery"]), fulfillmentAt: zod.z.string().regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/).datetime({ offset: true }).nullable(), deadlineAt: zod.z.string().regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/).datetime({ offset: true }).nullable(), lockedAt: zod.z.string().regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/).datetime({ offset: true }).nullable(), placedAt: zod.z.string().regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/).datetime({ offset: true }).nullable(), cancelledAt: zod.z.string().regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/).datetime({ offset: true }).nullable(), cancelReason: zod.z.string().nullable(), deliveryAddressId: zod.z.string().nullable(), diningLocation: zod.z.string().nullable(), diningTime: zod.z.string().nullable(), isDeliveryEnabled: zod.z.boolean(), quickReferenceNumber: zod.z.number().int().gte(-9007199254740991).lte(9007199254740991).nullable() }).strict(), deliveryThreshold: zod.z.object({ amount: zod.z.number().int().gte(-9007199254740991).lte(9007199254740991).nullable(), quantity: zod.z.number().int().gte(-9007199254740991).lte(9007199254740991).nullable() }).strict(), participants: zod.z.array(zod.z.object({ customerId: zod.z.string(), basketId: zod.z.string().nullable(), orderId: zod.z.string().nullable(), participantNumber: zod.z.number().int().lte(9007199254740991).nullable(), displayName: zod.z.string().nullable(), status: zod.z.enum(["browsing", "authorized", "cash_pending", "placed", "completed", "cancelled"]), bundleCount: zod.z.number().int().gte(0).lte(9007199254740991), amount: zod.z.number().int().gte(0).lte(9007199254740991), paymentMethod: zod.z.enum(["card", "cash", "voucher"]).nullable(), isLead: zod.z.boolean(), isMe: zod.z.boolean(), joinedAt: zod.z.string().regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/).datetime({ offset: true }), items: zod.z.array(zod.z.object({ id: zod.z.string(), metadata: zod.z.unknown().nullable(), menuItems: zod.z.array(zod.z.object({ menuItemId: zod.z.string(), role: zod.z.string().nullable(), quantity: zod.z.number(), unit: zod.z.enum(["grams", "kilograms", "liters", "milliliters", "pieces"]) }).strict()), isPaid: zod.z.boolean() }).strict()), payments: zod.z.array(zod.z.object({ amount: zod.z.number().int().gte(0).lte(9007199254740991), method: zod.z.enum(["card", "cash", "voucher"]), status: zod.z.enum(["authorized", "captured", "cash_pending", "cash_received"]), createdAt: zod.z.string().regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/).datetime({ offset: true }), cardLast4: zod.z.string().min(4).max(4).nullable() }).strict()), paidTotal: zod.z.number().int().gte(0).lte(9007199254740991), amountDue: zod.z.number().int().gte(0).lte(9007199254740991), declaredReturns: zod.z.array(zod.z.object({ depositwareTemplateId: zod.z.string(), count: zod.z.number().int().gte(0).lte(9007199254740991) }).strict()), leadSettledAt: zod.z.string().nullable() }).strict()), aggregatedTotals: zod.z.object({ confirmedBundleCount: zod.z.number().int().gte(0).lte(9007199254740991), confirmedAmount: zod.z.number().int().gte(0).lte(9007199254740991), totalBundleCount: zod.z.number().int().gte(0).lte(9007199254740991) }).strict(), thresholdCheck: zod.z.object({ meets: zod.z.boolean(), failedConstraints: zod.z.array(zod.z.enum(["quantity", "amount"])), requiredQuantity: zod.z.number().int().gte(-9007199254740991).lte(9007199254740991).nullable(), currentQuantity: zod.z.number().int().gte(-9007199254740991).lte(9007199254740991), requiredAmount: zod.z.number().int().gte(-9007199254740991).lte(9007199254740991).nullable(), currentAmount: zod.z.number().int().gte(-9007199254740991).lte(9007199254740991) }).strict(), isLead: zod.z.boolean() }).strict();
|
|
42
|
+
const JoinTeamOrderRequest = zod.z.object({ publicId: zod.z.string().min(1), sessionId: zod.z.string().min(1), displayName: zod.z.string().min(1).optional() }).strict();
|
|
43
|
+
const JoinTeamOrderResponse = zod.z.object({ teamOrderId: zod.z.string().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/).uuid(), basketId: zod.z.string(), customerId: zod.z.string(), status: zod.z.enum(["draft", "collecting", "locked", "placed", "ready", "completed", "cancelled"]), isLead: zod.z.boolean(), alreadyJoined: zod.z.boolean() }).strict();
|
|
44
|
+
const SubmitTeamOrderRequest = zod.z.object({ publicId: zod.z.string().min(1), sessionId: zod.z.string().min(1) }).strict();
|
|
45
|
+
const SubmitTeamOrderResponse = zod.z.object({ teamOrderId: zod.z.string().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/).uuid(), status: zod.z.enum(["draft", "collecting", "locked", "placed", "ready", "completed", "cancelled"]), capturedOrderIds: zod.z.array(zod.z.string()), cashPendingOrderIds: zod.z.array(zod.z.string()), droppedBasketIds: zod.z.array(zod.z.string()), placedAt: zod.z.string().regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/).datetime({ offset: true }) }).strict();
|
|
46
|
+
const CancelTeamOrderRequest = zod.z.object({ publicId: zod.z.string().min(1), sessionId: zod.z.string().min(1), reason: zod.z.string().max(500).optional() }).strict();
|
|
47
|
+
const CancelTeamOrderResponse = zod.z.object({ teamOrderId: zod.z.string().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/).uuid(), status: zod.z.enum(["draft", "collecting", "locked", "placed", "ready", "completed", "cancelled"]), voidedPaymentIntentIds: zod.z.array(zod.z.string()), cancelledAt: zod.z.string().regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/).datetime({ offset: true }) }).strict();
|
|
48
|
+
const ExtendDeadlineTeamOrderRequest = zod.z.object({ publicId: zod.z.string().min(1), sessionId: zod.z.string().min(1), newDeadlineAt: zod.z.string().regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/).datetime({ offset: true }) }).strict();
|
|
49
|
+
const ExtendDeadlineTeamOrderResponse = zod.z.object({ teamOrderId: zod.z.string().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/).uuid(), status: zod.z.enum(["draft", "collecting", "locked", "placed", "ready", "completed", "cancelled"]), deadlineAt: zod.z.string().regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/).datetime({ offset: true }).nullable() }).strict();
|
|
50
|
+
const SetFulfillmentAtTeamOrderRequest = zod.z.object({ publicId: zod.z.string().min(1), sessionId: zod.z.string().min(1), fulfillmentAt: zod.z.string().regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/).datetime({ offset: true }) }).strict();
|
|
51
|
+
const SetFulfillmentAtTeamOrderResponse = zod.z.object({ teamOrderId: zod.z.string().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/).uuid(), status: zod.z.enum(["draft", "collecting", "locked", "placed", "ready", "completed", "cancelled"]), fulfillmentAt: zod.z.string().regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/).datetime({ offset: true }), deadlineAt: zod.z.string().regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/).datetime({ offset: true }).nullable() }).strict();
|
|
52
|
+
const SetDiningLocationTeamOrderRequest = zod.z.object({ publicId: zod.z.string().min(1), sessionId: zod.z.string().min(1), diningLocation: zod.z.string().max(200) }).strict();
|
|
53
|
+
const SetDiningLocationTeamOrderResponse = zod.z.object({ teamOrderId: zod.z.string().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/).uuid(), status: zod.z.enum(["draft", "collecting", "locked", "placed", "ready", "completed", "cancelled"]), diningLocation: zod.z.string().nullable() }).strict();
|
|
54
|
+
const SetDiningTimeTeamOrderRequest = zod.z.object({ publicId: zod.z.string().min(1), sessionId: zod.z.string().min(1), diningTime: zod.z.string().regex(/^\d{2}:\d{2}$/) }).strict();
|
|
55
|
+
const SetDiningTimeTeamOrderResponse = zod.z.object({ teamOrderId: zod.z.string().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/).uuid(), status: zod.z.enum(["draft", "collecting", "locked", "placed", "ready", "completed", "cancelled"]), diningTime: zod.z.string(), diningOffsetMinutes: zod.z.number().int().gte(0).lte(9007199254740991) }).strict();
|
|
56
|
+
const postTeamOrdersPublicIdleadSettled_Body = zod.z.object({ publicId: zod.z.string().min(1), sessionId: zod.z.string().min(1), orderId: zod.z.string().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/).uuid(), settled: zod.z.boolean() }).strict();
|
|
57
|
+
const postTeamOrdersPublicIdautoExtendFulfillmentIfExpired_Body = zod.z.object({ publicId: zod.z.string().min(1), sessionId: zod.z.string().min(1), proposedFulfillmentAt: zod.z.string().regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/).datetime({ offset: true }) }).strict();
|
|
58
|
+
const SwitchFulfillmentTeamOrderRequest = zod.z.object({ publicId: zod.z.string().min(1), sessionId: zod.z.string().min(1), fulfillmentType: zod.z.enum(["pickup", "delivery"]), deliveryAddress: zod.z.object({ street: zod.z.string(), city: zod.z.string(), state: zod.z.string(), postalCode: zod.z.string(), country: zod.z.string() }).strict().optional() }).strict();
|
|
59
|
+
const SwitchFulfillmentTeamOrderResponse = zod.z.object({ teamOrderId: zod.z.string().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/).uuid(), status: zod.z.enum(["draft", "collecting", "locked", "placed", "ready", "completed", "cancelled"]), fulfillmentType: zod.z.enum(["pickup", "delivery"]), deliveryAddressId: zod.z.string().nullable() }).strict();
|
|
60
|
+
const UpdateDeliveryAddressTeamOrderRequest = zod.z.object({ publicId: zod.z.string().min(1), sessionId: zod.z.string().min(1), deliveryAddress: zod.z.object({ street: zod.z.string(), city: zod.z.string(), state: zod.z.string(), postalCode: zod.z.string(), country: zod.z.string() }).strict() }).strict();
|
|
61
|
+
const UpdateDeliveryAddressTeamOrderResponse = zod.z.object({ teamOrderId: zod.z.string().regex(/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/).uuid(), deliveryAddressId: zod.z.string() }).strict();
|
|
62
|
+
const schemas = {
|
|
63
|
+
Area,
|
|
64
|
+
ListAreasResponse,
|
|
65
|
+
GetAreaResponse,
|
|
66
|
+
GetAreaAvailabilityResponse,
|
|
67
|
+
SubmitAreaBookingRequest,
|
|
68
|
+
SubmitAreaBookingResponse,
|
|
69
|
+
AddToBasketRequest,
|
|
70
|
+
AddToBasketResponse,
|
|
71
|
+
RemoveFromBasketResponse,
|
|
72
|
+
GetBasketTotalsRequest,
|
|
73
|
+
GetBasketTotalsResponse,
|
|
74
|
+
SetBasketDeclaredReturnsRequest,
|
|
75
|
+
SetBasketDeclaredReturnsResponse,
|
|
76
|
+
CreateEventRequest,
|
|
77
|
+
CreateEventResponse,
|
|
78
|
+
GetMenuResponse,
|
|
79
|
+
ListMenuBundlesResponse,
|
|
80
|
+
ListMenuSubscriptionsResponse,
|
|
81
|
+
PlaceOrderRequest,
|
|
82
|
+
PlaceOrderResponse,
|
|
83
|
+
CreatePaymentIntentRequest,
|
|
84
|
+
CreatePaymentIntentResponse,
|
|
85
|
+
CreateDeltaPaymentIntentRequest,
|
|
86
|
+
CreateDeltaPaymentIntentResponse,
|
|
87
|
+
ReduceDeltaPaymentIntentRequest,
|
|
88
|
+
ReduceDeltaPaymentIntentResponse,
|
|
89
|
+
MakeReservationRequest,
|
|
90
|
+
MakeReservationResponse,
|
|
91
|
+
GetSubscriptionResponse,
|
|
92
|
+
SubscribeRequest,
|
|
93
|
+
SubscribeResponse,
|
|
94
|
+
CancelSubscriptionRequest,
|
|
95
|
+
CancelSubscriptionResponse,
|
|
96
|
+
GetSubscriptionCreditsResponse,
|
|
97
|
+
CreateTeamOrderRequest,
|
|
98
|
+
CreateTeamOrderResponse,
|
|
99
|
+
FetchTeamOrderResponse,
|
|
100
|
+
JoinTeamOrderRequest,
|
|
101
|
+
JoinTeamOrderResponse,
|
|
102
|
+
SubmitTeamOrderRequest,
|
|
103
|
+
SubmitTeamOrderResponse,
|
|
104
|
+
CancelTeamOrderRequest,
|
|
105
|
+
CancelTeamOrderResponse,
|
|
106
|
+
ExtendDeadlineTeamOrderRequest,
|
|
107
|
+
ExtendDeadlineTeamOrderResponse,
|
|
108
|
+
SetFulfillmentAtTeamOrderRequest,
|
|
109
|
+
SetFulfillmentAtTeamOrderResponse,
|
|
110
|
+
SetDiningLocationTeamOrderRequest,
|
|
111
|
+
SetDiningLocationTeamOrderResponse,
|
|
112
|
+
SetDiningTimeTeamOrderRequest,
|
|
113
|
+
SetDiningTimeTeamOrderResponse,
|
|
114
|
+
postTeamOrdersPublicIdleadSettled_Body,
|
|
115
|
+
postTeamOrdersPublicIdautoExtendFulfillmentIfExpired_Body,
|
|
116
|
+
SwitchFulfillmentTeamOrderRequest,
|
|
117
|
+
SwitchFulfillmentTeamOrderResponse,
|
|
118
|
+
UpdateDeliveryAddressTeamOrderRequest,
|
|
119
|
+
UpdateDeliveryAddressTeamOrderResponse
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
exports.schemas = schemas;
|