order3000 1.13.0 → 2.0.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/README.md +1 -1
- package/dist/client.cjs +1 -1
- package/dist/client.d.cts +534 -10
- package/dist/client.d.mts +534 -10
- package/dist/client.mjs +2 -2
- package/dist/deliveryAddressSchema-CnPDZB64.cjs +295 -0
- package/dist/deliveryAddressSchema-DQqwND91.mjs +288 -0
- package/dist/{index-CJebGltI.d.cts → index-Cq_XIA1w.d.cts} +92 -15
- package/dist/{index-CJebGltI.d.mts → index-Cq_XIA1w.d.mts} +92 -15
- package/dist/menu.d.cts +1 -1
- package/dist/menu.d.mts +1 -1
- package/dist/schemas.cjs +284 -266
- package/dist/schemas.d.cts +1291 -38
- package/dist/schemas.d.mts +1291 -38
- package/dist/schemas.mjs +284 -266
- package/package.json +2 -2
- package/dist/deliveryAddressSchema-DQJ8BDYX.cjs +0 -40
- package/dist/deliveryAddressSchema-DZlkW-QX.mjs +0 -34
package/dist/schemas.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
|
-
import { t as teamOrderStatusSchema, f as fulfillmentTypeSchema, a as paymentMethodSchema, d as deliveryAddressSchema, p as participantStatusSchema } from './deliveryAddressSchema-
|
|
2
|
+
import { t as teamOrderStatusSchema, f as fulfillmentTypeSchema, a as paymentMethodSchema, d as deliveryAddressSchema, p as participantStatusSchema, c as countrySchema } from './deliveryAddressSchema-DQqwND91.mjs';
|
|
3
3
|
|
|
4
4
|
const abandonBasketRequestSchema = z.object({
|
|
5
5
|
sessionId: z.string().min(1)
|
|
@@ -9,6 +9,13 @@ const abandonBasketResponseSchema = z.object({
|
|
|
9
9
|
abandonedCount: z.int().min(0).max(9007199254740991)
|
|
10
10
|
});
|
|
11
11
|
|
|
12
|
+
const activePaymentStatusSchema = z.enum([
|
|
13
|
+
"authorized",
|
|
14
|
+
"captured",
|
|
15
|
+
"cash_pending",
|
|
16
|
+
"cash_received"
|
|
17
|
+
]);
|
|
18
|
+
|
|
12
19
|
const actorTypeSchema = z.enum(["human", "robot"]);
|
|
13
20
|
|
|
14
21
|
const adBiddingStrategySchema = z.enum([
|
|
@@ -308,6 +315,8 @@ const autoExtendFulfillmentIfExpiredResponseSchema = z.object({
|
|
|
308
315
|
waitingCount: z.int().min(0).max(9007199254740991)
|
|
309
316
|
});
|
|
310
317
|
|
|
318
|
+
const bankAccountStatusSchema = z.enum(["active", "inactive", "closed"]);
|
|
319
|
+
|
|
311
320
|
const basketStatusSchema = z.enum(["active", "abandoned", "converted"]);
|
|
312
321
|
|
|
313
322
|
const beverageCategorySchema = z.enum([
|
|
@@ -323,6 +332,8 @@ const beverageCategorySchema = z.enum([
|
|
|
323
332
|
"water"
|
|
324
333
|
]);
|
|
325
334
|
|
|
335
|
+
const billingIntervalSchema = z.enum(["month", "year"]);
|
|
336
|
+
|
|
326
337
|
const billingModeSchema = z.enum(["single_anchor", "split"]);
|
|
327
338
|
|
|
328
339
|
const bookingChannelSchema = z.enum(["reservation", "order"]);
|
|
@@ -333,6 +344,11 @@ const bookletSectionInputSchema = z.object({
|
|
|
333
344
|
pageEnd: z.optional(z.int().min(1).max(9007199254740991))
|
|
334
345
|
});
|
|
335
346
|
|
|
347
|
+
const campaignControlReasonSchema = z.enum([
|
|
348
|
+
"quota_exhausted",
|
|
349
|
+
"campaign_removed"
|
|
350
|
+
]);
|
|
351
|
+
|
|
336
352
|
const cancelSubscriptionRequestSchema = z.object({
|
|
337
353
|
subscriberId: z.string().min(1)
|
|
338
354
|
});
|
|
@@ -392,260 +408,17 @@ const confirmOrderResponseSchema = z.object({
|
|
|
392
408
|
guestId: z.optional(z.string())
|
|
393
409
|
});
|
|
394
410
|
|
|
395
|
-
const
|
|
411
|
+
const contactEmailTypeSchema = z.enum(["primary", "billing"]);
|
|
396
412
|
|
|
397
|
-
const
|
|
398
|
-
"
|
|
399
|
-
"
|
|
400
|
-
"
|
|
401
|
-
"
|
|
402
|
-
"AI",
|
|
403
|
-
"AL",
|
|
404
|
-
"AM",
|
|
405
|
-
"AO",
|
|
406
|
-
"AQ",
|
|
407
|
-
"AR",
|
|
408
|
-
"AS",
|
|
409
|
-
"AT",
|
|
410
|
-
"AU",
|
|
411
|
-
"AW",
|
|
412
|
-
"AX",
|
|
413
|
-
"AZ",
|
|
414
|
-
"BA",
|
|
415
|
-
"BB",
|
|
416
|
-
"BD",
|
|
417
|
-
"BE",
|
|
418
|
-
"BF",
|
|
419
|
-
"BG",
|
|
420
|
-
"BH",
|
|
421
|
-
"BI",
|
|
422
|
-
"BJ",
|
|
423
|
-
"BL",
|
|
424
|
-
"BM",
|
|
425
|
-
"BN",
|
|
426
|
-
"BO",
|
|
427
|
-
"BQ",
|
|
428
|
-
"BR",
|
|
429
|
-
"BS",
|
|
430
|
-
"BT",
|
|
431
|
-
"BV",
|
|
432
|
-
"BW",
|
|
433
|
-
"BY",
|
|
434
|
-
"BZ",
|
|
435
|
-
"CA",
|
|
436
|
-
"CC",
|
|
437
|
-
"CD",
|
|
438
|
-
"CF",
|
|
439
|
-
"CG",
|
|
440
|
-
"CH",
|
|
441
|
-
"CI",
|
|
442
|
-
"CK",
|
|
443
|
-
"CL",
|
|
444
|
-
"CM",
|
|
445
|
-
"CN",
|
|
446
|
-
"CO",
|
|
447
|
-
"CR",
|
|
448
|
-
"CU",
|
|
449
|
-
"CV",
|
|
450
|
-
"CW",
|
|
451
|
-
"CX",
|
|
452
|
-
"CY",
|
|
453
|
-
"CZ",
|
|
454
|
-
"DE",
|
|
455
|
-
"DJ",
|
|
456
|
-
"DK",
|
|
457
|
-
"DM",
|
|
458
|
-
"DO",
|
|
459
|
-
"DZ",
|
|
460
|
-
"EC",
|
|
461
|
-
"EE",
|
|
462
|
-
"EG",
|
|
463
|
-
"EH",
|
|
464
|
-
"ER",
|
|
465
|
-
"ES",
|
|
466
|
-
"ET",
|
|
467
|
-
"FI",
|
|
468
|
-
"FJ",
|
|
469
|
-
"FK",
|
|
470
|
-
"FM",
|
|
471
|
-
"FO",
|
|
472
|
-
"FR",
|
|
473
|
-
"GA",
|
|
474
|
-
"GB",
|
|
475
|
-
"GD",
|
|
476
|
-
"GE",
|
|
477
|
-
"GF",
|
|
478
|
-
"GG",
|
|
479
|
-
"GH",
|
|
480
|
-
"GI",
|
|
481
|
-
"GL",
|
|
482
|
-
"GM",
|
|
483
|
-
"GN",
|
|
484
|
-
"GP",
|
|
485
|
-
"GQ",
|
|
486
|
-
"GR",
|
|
487
|
-
"GS",
|
|
488
|
-
"GT",
|
|
489
|
-
"GU",
|
|
490
|
-
"GW",
|
|
491
|
-
"GY",
|
|
492
|
-
"HK",
|
|
493
|
-
"HM",
|
|
494
|
-
"HN",
|
|
495
|
-
"HR",
|
|
496
|
-
"HT",
|
|
497
|
-
"HU",
|
|
498
|
-
"ID",
|
|
499
|
-
"IE",
|
|
500
|
-
"IL",
|
|
501
|
-
"IM",
|
|
502
|
-
"IN",
|
|
503
|
-
"IO",
|
|
504
|
-
"IQ",
|
|
505
|
-
"IR",
|
|
506
|
-
"IS",
|
|
507
|
-
"IT",
|
|
508
|
-
"JE",
|
|
509
|
-
"JM",
|
|
510
|
-
"JO",
|
|
511
|
-
"JP",
|
|
512
|
-
"KE",
|
|
513
|
-
"KG",
|
|
514
|
-
"KH",
|
|
515
|
-
"KI",
|
|
516
|
-
"KM",
|
|
517
|
-
"KN",
|
|
518
|
-
"KP",
|
|
519
|
-
"KR",
|
|
520
|
-
"KW",
|
|
521
|
-
"KY",
|
|
522
|
-
"KZ",
|
|
523
|
-
"LA",
|
|
524
|
-
"LB",
|
|
525
|
-
"LC",
|
|
526
|
-
"LI",
|
|
527
|
-
"LK",
|
|
528
|
-
"LR",
|
|
529
|
-
"LS",
|
|
530
|
-
"LT",
|
|
531
|
-
"LU",
|
|
532
|
-
"LV",
|
|
533
|
-
"LY",
|
|
534
|
-
"MA",
|
|
535
|
-
"MC",
|
|
536
|
-
"MD",
|
|
537
|
-
"ME",
|
|
538
|
-
"MF",
|
|
539
|
-
"MG",
|
|
540
|
-
"MH",
|
|
541
|
-
"MK",
|
|
542
|
-
"ML",
|
|
543
|
-
"MM",
|
|
544
|
-
"MN",
|
|
545
|
-
"MO",
|
|
546
|
-
"MP",
|
|
547
|
-
"MQ",
|
|
548
|
-
"MR",
|
|
549
|
-
"MS",
|
|
550
|
-
"MT",
|
|
551
|
-
"MU",
|
|
552
|
-
"MV",
|
|
553
|
-
"MW",
|
|
554
|
-
"MX",
|
|
555
|
-
"MY",
|
|
556
|
-
"MZ",
|
|
557
|
-
"NA",
|
|
558
|
-
"NC",
|
|
559
|
-
"NE",
|
|
560
|
-
"NF",
|
|
561
|
-
"NG",
|
|
562
|
-
"NI",
|
|
563
|
-
"NL",
|
|
564
|
-
"NO",
|
|
565
|
-
"NP",
|
|
566
|
-
"NR",
|
|
567
|
-
"NU",
|
|
568
|
-
"NZ",
|
|
569
|
-
"OM",
|
|
570
|
-
"PA",
|
|
571
|
-
"PE",
|
|
572
|
-
"PF",
|
|
573
|
-
"PG",
|
|
574
|
-
"PH",
|
|
575
|
-
"PK",
|
|
576
|
-
"PL",
|
|
577
|
-
"PM",
|
|
578
|
-
"PN",
|
|
579
|
-
"PR",
|
|
580
|
-
"PS",
|
|
581
|
-
"PT",
|
|
582
|
-
"PW",
|
|
583
|
-
"PY",
|
|
584
|
-
"QA",
|
|
585
|
-
"RE",
|
|
586
|
-
"RO",
|
|
587
|
-
"RS",
|
|
588
|
-
"RU",
|
|
589
|
-
"RW",
|
|
590
|
-
"SA",
|
|
591
|
-
"SB",
|
|
592
|
-
"SC",
|
|
593
|
-
"SD",
|
|
594
|
-
"SE",
|
|
595
|
-
"SG",
|
|
596
|
-
"SH",
|
|
597
|
-
"SI",
|
|
598
|
-
"SJ",
|
|
599
|
-
"SK",
|
|
600
|
-
"SL",
|
|
601
|
-
"SM",
|
|
602
|
-
"SN",
|
|
603
|
-
"SO",
|
|
604
|
-
"SR",
|
|
605
|
-
"SS",
|
|
606
|
-
"ST",
|
|
607
|
-
"SV",
|
|
608
|
-
"SX",
|
|
609
|
-
"SY",
|
|
610
|
-
"SZ",
|
|
611
|
-
"TC",
|
|
612
|
-
"TD",
|
|
613
|
-
"TF",
|
|
614
|
-
"TG",
|
|
615
|
-
"TH",
|
|
616
|
-
"TJ",
|
|
617
|
-
"TK",
|
|
618
|
-
"TL",
|
|
619
|
-
"TM",
|
|
620
|
-
"TN",
|
|
621
|
-
"TO",
|
|
622
|
-
"TR",
|
|
623
|
-
"TT",
|
|
624
|
-
"TV",
|
|
625
|
-
"TW",
|
|
626
|
-
"TZ",
|
|
627
|
-
"UA",
|
|
628
|
-
"UG",
|
|
629
|
-
"UM",
|
|
630
|
-
"US",
|
|
631
|
-
"UY",
|
|
632
|
-
"UZ",
|
|
633
|
-
"VA",
|
|
634
|
-
"VC",
|
|
635
|
-
"VE",
|
|
636
|
-
"VG",
|
|
637
|
-
"VI",
|
|
638
|
-
"VN",
|
|
639
|
-
"VU",
|
|
640
|
-
"WF",
|
|
641
|
-
"WS",
|
|
642
|
-
"YE",
|
|
643
|
-
"YT",
|
|
644
|
-
"ZA",
|
|
645
|
-
"ZM",
|
|
646
|
-
"ZW"
|
|
413
|
+
const contactEmailVerificationStatusSchema = z.enum([
|
|
414
|
+
"pending",
|
|
415
|
+
"verified",
|
|
416
|
+
"completed",
|
|
417
|
+
"superseded"
|
|
647
418
|
]);
|
|
648
419
|
|
|
420
|
+
const contactPreferenceSchema = z.enum(["email", "phone", "sms", "none"]);
|
|
421
|
+
|
|
649
422
|
const createAdRequestSchema = z.object({
|
|
650
423
|
venueAccessor: z.string().min(1),
|
|
651
424
|
get ownerEntityType() {
|
|
@@ -979,6 +752,8 @@ const createMenuPublicationResponseSchema = z.object({
|
|
|
979
752
|
z.object({}).catchall(z.any())
|
|
980
753
|
]),
|
|
981
754
|
renderedAssetId: z.nullable(z.string()),
|
|
755
|
+
frameId: z.nullable(z.string()),
|
|
756
|
+
ruleIconAssetId: z.nullable(z.string()),
|
|
982
757
|
templateId: z.nullable(z.string()),
|
|
983
758
|
get sourceType() {
|
|
984
759
|
return publicationSourceTypeSchema;
|
|
@@ -1318,6 +1093,12 @@ const depositwareStatusSchema = z.enum([
|
|
|
1318
1093
|
"retired"
|
|
1319
1094
|
]);
|
|
1320
1095
|
|
|
1096
|
+
const directionSchema = z.enum(["left", "right", "up", "down"]);
|
|
1097
|
+
|
|
1098
|
+
const directionXSchema = z.enum(["left", "right"]);
|
|
1099
|
+
|
|
1100
|
+
const directionYSchema = z.enum(["up", "down"]);
|
|
1101
|
+
|
|
1321
1102
|
const editAdRequestSchema = z.object({
|
|
1322
1103
|
venueAccessor: z.string().min(1),
|
|
1323
1104
|
id: z.string().min(1),
|
|
@@ -2159,6 +1940,8 @@ const featureCategorySchema = z.enum([
|
|
|
2159
1940
|
"venues"
|
|
2160
1941
|
]);
|
|
2161
1942
|
|
|
1943
|
+
const featureGateSchema = z.enum(["custom-email-sender"]);
|
|
1944
|
+
|
|
2162
1945
|
const featureStatusSchema = z.enum([
|
|
2163
1946
|
"backlog",
|
|
2164
1947
|
"in_development",
|
|
@@ -3654,6 +3437,8 @@ const fetchSlotAvailabilityResponseSchema = z.array(
|
|
|
3654
3437
|
})
|
|
3655
3438
|
);
|
|
3656
3439
|
|
|
3440
|
+
const teamOrderThresholdConstraintSchema = z.enum(["quantity", "amount"]);
|
|
3441
|
+
|
|
3657
3442
|
const fetchTeamOrderResponseSchema = z.object({
|
|
3658
3443
|
teamOrder: z.object({
|
|
3659
3444
|
id: z.string(),
|
|
@@ -3732,12 +3517,9 @@ const fetchTeamOrderResponseSchema = z.object({
|
|
|
3732
3517
|
get method() {
|
|
3733
3518
|
return paymentMethodSchema;
|
|
3734
3519
|
},
|
|
3735
|
-
status
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
"cash_pending",
|
|
3739
|
-
"cash_received"
|
|
3740
|
-
]),
|
|
3520
|
+
get status() {
|
|
3521
|
+
return activePaymentStatusSchema;
|
|
3522
|
+
},
|
|
3741
3523
|
createdAt: z.iso.datetime(),
|
|
3742
3524
|
cardLast4: z.nullable(z.string().min(4).max(4))
|
|
3743
3525
|
})
|
|
@@ -3760,7 +3542,9 @@ const fetchTeamOrderResponseSchema = z.object({
|
|
|
3760
3542
|
}),
|
|
3761
3543
|
thresholdCheck: z.object({
|
|
3762
3544
|
meets: z.boolean(),
|
|
3763
|
-
failedConstraints
|
|
3545
|
+
get failedConstraints() {
|
|
3546
|
+
return z.array(teamOrderThresholdConstraintSchema);
|
|
3547
|
+
},
|
|
3764
3548
|
requiredQuantity: z.nullable(
|
|
3765
3549
|
z.int().min(-9007199254740991).max(9007199254740991)
|
|
3766
3550
|
),
|
|
@@ -3792,7 +3576,7 @@ const gbpSyncStatusSchema = z.enum([
|
|
|
3792
3576
|
"removed"
|
|
3793
3577
|
]);
|
|
3794
3578
|
|
|
3795
|
-
const geoAreaTypeSchema = z.enum(["postcode", "city"
|
|
3579
|
+
const geoAreaTypeSchema = z.enum(["postcode", "city"]);
|
|
3796
3580
|
|
|
3797
3581
|
const getAreaAvailabilityResponseSchema = z.object({
|
|
3798
3582
|
from: z.string().regex(/^\d{4}-\d{2}-\d{2}$/),
|
|
@@ -3960,6 +3744,14 @@ const getWebsitePagesResponseSchema = z.array(
|
|
|
3960
3744
|
|
|
3961
3745
|
const googleAdsAssetFamilySchema = z.enum(["sitelinks", "callouts"]);
|
|
3962
3746
|
|
|
3747
|
+
const guestTierSchema = z.enum([
|
|
3748
|
+
"blacklisted",
|
|
3749
|
+
"atRisk",
|
|
3750
|
+
"loyal",
|
|
3751
|
+
"newGuest",
|
|
3752
|
+
"regular"
|
|
3753
|
+
]);
|
|
3754
|
+
|
|
3963
3755
|
const integrationNotificationTypeSchema = z.enum([
|
|
3964
3756
|
"order_created",
|
|
3965
3757
|
"order_cancelled",
|
|
@@ -4016,6 +3808,14 @@ const joinTeamOrderResponseSchema = z.object({
|
|
|
4016
3808
|
|
|
4017
3809
|
const jurisdictionSchema = z.enum(["DE", "CH", "FR", "IT"]);
|
|
4018
3810
|
|
|
3811
|
+
const jurisdictionTypeSchema = z.enum([
|
|
3812
|
+
"country",
|
|
3813
|
+
"region",
|
|
3814
|
+
"municipality"
|
|
3815
|
+
]);
|
|
3816
|
+
|
|
3817
|
+
const keywordDefaultScopeSchema = z.enum(["venueType", "cuisine"]);
|
|
3818
|
+
|
|
4019
3819
|
const keywordPolaritySchema = z.enum(["positive", "negative"]);
|
|
4020
3820
|
|
|
4021
3821
|
const localeSchema = z.enum([
|
|
@@ -4277,6 +4077,7 @@ const makeReservationResponseSchema = z.object({
|
|
|
4277
4077
|
guestId: z.nullable(
|
|
4278
4078
|
z.uuid().describe("Link to customer profile if exists")
|
|
4279
4079
|
),
|
|
4080
|
+
partyId: z.nullable(z.string()),
|
|
4280
4081
|
guestFirstName: z.string().describe("First name of the customer"),
|
|
4281
4082
|
guestLastName: z.string().describe("Last name of the customer"),
|
|
4282
4083
|
guestEmail: z.nullable(z.string().describe("Customer email address")),
|
|
@@ -4353,6 +4154,35 @@ const menuItemMarkerSchema = z.enum([
|
|
|
4353
4154
|
"spicy"
|
|
4354
4155
|
]);
|
|
4355
4156
|
|
|
4157
|
+
const metaCallToActionSchema = z.enum([
|
|
4158
|
+
"LEARN_MORE",
|
|
4159
|
+
"BOOK_TRAVEL",
|
|
4160
|
+
"ORDER_NOW",
|
|
4161
|
+
"GET_OFFER",
|
|
4162
|
+
"CONTACT_US",
|
|
4163
|
+
"SIGN_UP"
|
|
4164
|
+
]);
|
|
4165
|
+
|
|
4166
|
+
const metaChannelSchema = z.enum(["facebook", "instagram"]);
|
|
4167
|
+
|
|
4168
|
+
const metaInsightsDatePresetSchema = z.enum([
|
|
4169
|
+
"last_7d",
|
|
4170
|
+
"last_30d",
|
|
4171
|
+
"maximum"
|
|
4172
|
+
]);
|
|
4173
|
+
|
|
4174
|
+
const metaIntegrationStatusSchema = z.enum([
|
|
4175
|
+
"invited",
|
|
4176
|
+
"linked",
|
|
4177
|
+
"active"
|
|
4178
|
+
]);
|
|
4179
|
+
|
|
4180
|
+
const metaServingTargetStatusSchema = z.enum(["ACTIVE", "PAUSED"]);
|
|
4181
|
+
|
|
4182
|
+
const orientationSchema = z.enum(["vertical", "horizontal"]);
|
|
4183
|
+
|
|
4184
|
+
const partyTypeSchema = z.enum(["natural_person", "legal_entity"]);
|
|
4185
|
+
|
|
4356
4186
|
const patchArticleFeatureImageBodySchema = z.object({
|
|
4357
4187
|
caption: z.optional(z.object({}).catchall(z.any())),
|
|
4358
4188
|
alt: z.optional(z.object({}).catchall(z.any()))
|
|
@@ -4370,6 +4200,85 @@ const pendingSuperadminTransferStatusSchema = z.enum([
|
|
|
4370
4200
|
"expired"
|
|
4371
4201
|
]);
|
|
4372
4202
|
|
|
4203
|
+
const permissionSchema = z.enum([
|
|
4204
|
+
"area-booking-requests:create",
|
|
4205
|
+
"bank-accounts:manage",
|
|
4206
|
+
"bank-accounts:view",
|
|
4207
|
+
"beverages:create",
|
|
4208
|
+
"beverages:delete",
|
|
4209
|
+
"beverages:read",
|
|
4210
|
+
"beverages:update",
|
|
4211
|
+
"categories:create",
|
|
4212
|
+
"categories:delete",
|
|
4213
|
+
"categories:update",
|
|
4214
|
+
"deposits:calculate",
|
|
4215
|
+
"deposits:mark-lost",
|
|
4216
|
+
"deposits:override-penalty",
|
|
4217
|
+
"deposits:process-return",
|
|
4218
|
+
"deposits:report",
|
|
4219
|
+
"deposits:view",
|
|
4220
|
+
"dishes:create",
|
|
4221
|
+
"dishes:delete",
|
|
4222
|
+
"dishes:read",
|
|
4223
|
+
"dishes:update",
|
|
4224
|
+
"features:create",
|
|
4225
|
+
"features:delete",
|
|
4226
|
+
"features:update",
|
|
4227
|
+
"features:view",
|
|
4228
|
+
"fulfillment:assign",
|
|
4229
|
+
"fulfillment:mark-delivered",
|
|
4230
|
+
"iam:human",
|
|
4231
|
+
"iam:robot",
|
|
4232
|
+
"kitchen:mark-preparing",
|
|
4233
|
+
"kitchen:mark-ready",
|
|
4234
|
+
"kitchen:view",
|
|
4235
|
+
"m2m:ping",
|
|
4236
|
+
"menus:manage",
|
|
4237
|
+
"menus:read",
|
|
4238
|
+
"orders:activity",
|
|
4239
|
+
"orders:analytics",
|
|
4240
|
+
"orders:cancel",
|
|
4241
|
+
"orders:create",
|
|
4242
|
+
"orders:discount",
|
|
4243
|
+
"orders:export",
|
|
4244
|
+
"orders:read-all",
|
|
4245
|
+
"orders:read-own",
|
|
4246
|
+
"orders:refund",
|
|
4247
|
+
"orders:update",
|
|
4248
|
+
"orders:void",
|
|
4249
|
+
"payments:process",
|
|
4250
|
+
"payments:refund",
|
|
4251
|
+
"plans:create",
|
|
4252
|
+
"plans:delete",
|
|
4253
|
+
"plans:update",
|
|
4254
|
+
"plans:view",
|
|
4255
|
+
"platform:view",
|
|
4256
|
+
"users:delete",
|
|
4257
|
+
"platform-mention-fields:manage",
|
|
4258
|
+
"reports:analytics",
|
|
4259
|
+
"reports:orders",
|
|
4260
|
+
"roles:assign",
|
|
4261
|
+
"roles:create",
|
|
4262
|
+
"roles:delete",
|
|
4263
|
+
"roles:update",
|
|
4264
|
+
"roles:view",
|
|
4265
|
+
"rolodex:manage",
|
|
4266
|
+
"rolodex:view",
|
|
4267
|
+
"subscriptions:create",
|
|
4268
|
+
"subscriptions:delete",
|
|
4269
|
+
"subscriptions:update",
|
|
4270
|
+
"subscriptions:view",
|
|
4271
|
+
"team:invite",
|
|
4272
|
+
"team:remove",
|
|
4273
|
+
"team:revoke",
|
|
4274
|
+
"team:update",
|
|
4275
|
+
"team:view",
|
|
4276
|
+
"venue:manage-gbp",
|
|
4277
|
+
"venue:manage-payments",
|
|
4278
|
+
"venue:update",
|
|
4279
|
+
"venue:view"
|
|
4280
|
+
]);
|
|
4281
|
+
|
|
4373
4282
|
const placeOrderRequestSchema = z.object({
|
|
4374
4283
|
venueAccessor: z.string().min(1),
|
|
4375
4284
|
basketId: z.string().min(1),
|
|
@@ -4409,9 +4318,34 @@ const placeOrderResponseSchema = z.object({
|
|
|
4409
4318
|
|
|
4410
4319
|
const platformRoleSchema = z.enum(["platform_maintainer"]);
|
|
4411
4320
|
|
|
4321
|
+
const positionCenterSchema = z.enum(["center"]);
|
|
4322
|
+
|
|
4323
|
+
const positionCornerSchema = z.enum([
|
|
4324
|
+
"top-left",
|
|
4325
|
+
"top-right",
|
|
4326
|
+
"bottom-left",
|
|
4327
|
+
"bottom-right"
|
|
4328
|
+
]);
|
|
4329
|
+
|
|
4330
|
+
const positionEdgeSchema = z.enum(["start", "end"]);
|
|
4331
|
+
|
|
4332
|
+
const positionSchema = z.enum([
|
|
4333
|
+
"left",
|
|
4334
|
+
"right",
|
|
4335
|
+
"top",
|
|
4336
|
+
"bottom",
|
|
4337
|
+
"top-left",
|
|
4338
|
+
"top-right",
|
|
4339
|
+
"bottom-left",
|
|
4340
|
+
"bottom-right",
|
|
4341
|
+
"center"
|
|
4342
|
+
]);
|
|
4343
|
+
|
|
4344
|
+
const positionYSchema = z.enum(["top", "bottom"]);
|
|
4345
|
+
|
|
4412
4346
|
const publicationEventTypeSchema = z.enum(["download", "scan"]);
|
|
4413
4347
|
|
|
4414
|
-
const publicationFrameStyleSchema = z.enum(["solid", "
|
|
4348
|
+
const publicationFrameStyleSchema = z.enum(["solid", "icon"]);
|
|
4415
4349
|
|
|
4416
4350
|
const publicationGroupBySchema = z.enum([
|
|
4417
4351
|
"weekday",
|
|
@@ -4449,7 +4383,7 @@ const publicationRuleStyleSchema = z.enum([
|
|
|
4449
4383
|
"asterisks",
|
|
4450
4384
|
"fade",
|
|
4451
4385
|
"dot_ornament",
|
|
4452
|
-
"
|
|
4386
|
+
"icon"
|
|
4453
4387
|
]);
|
|
4454
4388
|
|
|
4455
4389
|
const publicationSectionTypeSchema = z.enum(["cover", "body", "back"]);
|
|
@@ -4507,6 +4441,17 @@ const renderMenuPublicationPdfResponseSchema = z.object({
|
|
|
4507
4441
|
pdfBase64: z.string()
|
|
4508
4442
|
});
|
|
4509
4443
|
|
|
4444
|
+
const requestContactEmailChangeOutcomeSchema = z.enum([
|
|
4445
|
+
"requested",
|
|
4446
|
+
"unchanged"
|
|
4447
|
+
]);
|
|
4448
|
+
|
|
4449
|
+
const reservationDeclineReasonSchema = z.enum([
|
|
4450
|
+
"fully_booked",
|
|
4451
|
+
"closed",
|
|
4452
|
+
"other"
|
|
4453
|
+
]);
|
|
4454
|
+
|
|
4510
4455
|
const reservationMessageStatusSchema = z.enum(["draft", "sent"]);
|
|
4511
4456
|
|
|
4512
4457
|
const reservationModeSchema = z.enum(["passive", "auto_steer"]);
|
|
@@ -4580,6 +4525,18 @@ const saveAdWebsitePagesResponseSchema = z.object({
|
|
|
4580
4525
|
|
|
4581
4526
|
const scanTokenEntityTypeSchema = z.enum(["order", "depositware"]);
|
|
4582
4527
|
|
|
4528
|
+
const scheduleOverrideModeSchema = z.enum(["closed", "deviating"]);
|
|
4529
|
+
|
|
4530
|
+
const servedMarketAreaTypeSchema = z.enum([
|
|
4531
|
+
"pin",
|
|
4532
|
+
"postcode",
|
|
4533
|
+
"city",
|
|
4534
|
+
"region",
|
|
4535
|
+
"country"
|
|
4536
|
+
]);
|
|
4537
|
+
|
|
4538
|
+
const servedMarketScopeSchema = z.enum(["include", "exclude"]);
|
|
4539
|
+
|
|
4583
4540
|
const setAdBudgetRequestSchema = z.object({
|
|
4584
4541
|
venueAccessor: z.string().min(1),
|
|
4585
4542
|
adId: z.string().min(1),
|
|
@@ -4894,6 +4851,16 @@ const setMenuPublicationBlocksRequestSchema = z.object({
|
|
|
4894
4851
|
]).nullish(),
|
|
4895
4852
|
frameWidth: z.optional(z.number().min(1).max(12)),
|
|
4896
4853
|
frameInset: z.optional(z.number().min(2).max(16)),
|
|
4854
|
+
frameId: z.optional(z.string()),
|
|
4855
|
+
frameName: z.optional(z.string().max(255)),
|
|
4856
|
+
frameIcons: z.optional(
|
|
4857
|
+
z.array(
|
|
4858
|
+
z.object({
|
|
4859
|
+
assetId: z.string(),
|
|
4860
|
+
rotation: z.int().min(0).max(359)
|
|
4861
|
+
})
|
|
4862
|
+
)
|
|
4863
|
+
),
|
|
4897
4864
|
get titleAlign() {
|
|
4898
4865
|
return enumCenterLeftRightSchema.optional();
|
|
4899
4866
|
},
|
|
@@ -4919,6 +4886,7 @@ const setMenuPublicationBlocksRequestSchema = z.object({
|
|
|
4919
4886
|
custom: z.string()
|
|
4920
4887
|
})
|
|
4921
4888
|
]).nullish(),
|
|
4889
|
+
ruleIconAssetId: z.optional(z.string()),
|
|
4922
4890
|
showQr: z.optional(z.boolean()),
|
|
4923
4891
|
get qrTarget() {
|
|
4924
4892
|
return publicationQrTargetSchema.optional();
|
|
@@ -5195,13 +5163,22 @@ const uploadAssetResponseSchema = z.object({
|
|
|
5195
5163
|
publicUrl: z.nullable(z.string())
|
|
5196
5164
|
});
|
|
5197
5165
|
|
|
5166
|
+
const variantSchema = z.enum([
|
|
5167
|
+
"dark",
|
|
5168
|
+
"light",
|
|
5169
|
+
"success",
|
|
5170
|
+
"warning",
|
|
5171
|
+
"danger",
|
|
5172
|
+
"primary",
|
|
5173
|
+
"secondary"
|
|
5174
|
+
]);
|
|
5175
|
+
|
|
5198
5176
|
const venueAssetTypeSchema = z.enum([
|
|
5199
5177
|
"logomark",
|
|
5200
5178
|
"wordmark",
|
|
5201
5179
|
"combinationmark_horizontal",
|
|
5202
5180
|
"combinationmark_vertical",
|
|
5203
|
-
"
|
|
5204
|
-
"divider"
|
|
5181
|
+
"icon"
|
|
5205
5182
|
]);
|
|
5206
5183
|
|
|
5207
5184
|
const venueChargeTypeSchema = z.enum(["base", "addon"]);
|
|
@@ -5222,9 +5199,17 @@ const venueTypeSchema = z.enum([
|
|
|
5222
5199
|
|
|
5223
5200
|
const venueUserStatusSchema = z.enum(["pending", "confirmed", "revoked"]);
|
|
5224
5201
|
|
|
5202
|
+
const wizardKeySchema = z.enum([
|
|
5203
|
+
"ads-venue-explainer-v1",
|
|
5204
|
+
"ads-menu-explainer-v1",
|
|
5205
|
+
"ads-dish-explainer-v1",
|
|
5206
|
+
"ads-beverage-explainer-v1"
|
|
5207
|
+
]);
|
|
5208
|
+
|
|
5225
5209
|
const schemas = {
|
|
5226
5210
|
AbandonBasketRequest: abandonBasketRequestSchema,
|
|
5227
5211
|
AbandonBasketResponse: abandonBasketResponseSchema,
|
|
5212
|
+
ActivePaymentStatus: activePaymentStatusSchema,
|
|
5228
5213
|
ActorType: actorTypeSchema,
|
|
5229
5214
|
AdBiddingStrategy: adBiddingStrategySchema,
|
|
5230
5215
|
AdChannel: adChannelSchema,
|
|
@@ -5246,12 +5231,15 @@ const schemas = {
|
|
|
5246
5231
|
AssetWithPublicUrl: assetWithPublicUrlSchema,
|
|
5247
5232
|
AutoExtendFulfillmentIfExpiredRequest: autoExtendFulfillmentIfExpiredRequestSchema,
|
|
5248
5233
|
AutoExtendFulfillmentIfExpiredResponse: autoExtendFulfillmentIfExpiredResponseSchema,
|
|
5234
|
+
BankAccountStatus: bankAccountStatusSchema,
|
|
5249
5235
|
BasketStatus: basketStatusSchema,
|
|
5250
5236
|
BasketTotals: basketTotalsSchema,
|
|
5251
5237
|
BeverageCategory: beverageCategorySchema,
|
|
5238
|
+
BillingInterval: billingIntervalSchema,
|
|
5252
5239
|
BillingMode: billingModeSchema,
|
|
5253
5240
|
BookingChannel: bookingChannelSchema,
|
|
5254
5241
|
BookletSectionInput: bookletSectionInputSchema,
|
|
5242
|
+
CampaignControlReason: campaignControlReasonSchema,
|
|
5255
5243
|
CancelSubscriptionRequest: cancelSubscriptionRequestSchema,
|
|
5256
5244
|
CancelSubscriptionResponse: cancelSubscriptionResponseSchema,
|
|
5257
5245
|
CancelTeamOrderRequest: cancelTeamOrderRequestSchema,
|
|
@@ -5261,8 +5249,10 @@ const schemas = {
|
|
|
5261
5249
|
ComposeMenuPublicationBookletResponse: composeMenuPublicationBookletResponseSchema,
|
|
5262
5250
|
ConfirmOrderRequest: confirmOrderRequestSchema,
|
|
5263
5251
|
ConfirmOrderResponse: confirmOrderResponseSchema,
|
|
5252
|
+
ContactEmailType: contactEmailTypeSchema,
|
|
5253
|
+
ContactEmailVerificationStatus: contactEmailVerificationStatusSchema,
|
|
5264
5254
|
ContactPreference: contactPreferenceSchema,
|
|
5265
|
-
|
|
5255
|
+
Country: countrySchema,
|
|
5266
5256
|
CreateAdRequest: createAdRequestSchema,
|
|
5267
5257
|
CreateAdResponse: createAdResponseSchema,
|
|
5268
5258
|
CreateCalloutRequest: createCalloutRequestSchema,
|
|
@@ -5289,6 +5279,9 @@ const schemas = {
|
|
|
5289
5279
|
DeliveryAddress: deliveryAddressSchema,
|
|
5290
5280
|
DepositTransactionType: depositTransactionTypeSchema,
|
|
5291
5281
|
DepositwareStatus: depositwareStatusSchema,
|
|
5282
|
+
Direction: directionSchema,
|
|
5283
|
+
DirectionX: directionXSchema,
|
|
5284
|
+
DirectionY: directionYSchema,
|
|
5292
5285
|
EditAdRequest: editAdRequestSchema,
|
|
5293
5286
|
EditAdResponse: editAdResponseSchema,
|
|
5294
5287
|
EditArticleRequest: editArticleRequestSchema,
|
|
@@ -5309,6 +5302,7 @@ const schemas = {
|
|
|
5309
5302
|
ExtendDeadlineTeamOrderRequest: extendDeadlineTeamOrderRequestSchema,
|
|
5310
5303
|
ExtendDeadlineTeamOrderResponse: extendDeadlineTeamOrderResponseSchema,
|
|
5311
5304
|
FeatureCategory: featureCategorySchema,
|
|
5305
|
+
FeatureGate: featureGateSchema,
|
|
5312
5306
|
FeatureImage: featureImageSchema,
|
|
5313
5307
|
FeatureStatus: featureStatusSchema,
|
|
5314
5308
|
FetchAdResponse: fetchAdResponseSchema,
|
|
@@ -5346,6 +5340,7 @@ const schemas = {
|
|
|
5346
5340
|
GetVenueResponse: getVenueResponseSchema,
|
|
5347
5341
|
GetWebsitePagesResponse: getWebsitePagesResponseSchema,
|
|
5348
5342
|
GoogleAdsAssetFamily: googleAdsAssetFamilySchema,
|
|
5343
|
+
GuestTier: guestTierSchema,
|
|
5349
5344
|
IntegrationNotificationType: integrationNotificationTypeSchema,
|
|
5350
5345
|
IntegrationType: integrationTypeSchema,
|
|
5351
5346
|
InventoryAssetStatus: inventoryAssetStatusSchema,
|
|
@@ -5354,6 +5349,8 @@ const schemas = {
|
|
|
5354
5349
|
JoinTeamOrderRequest: joinTeamOrderRequestSchema,
|
|
5355
5350
|
JoinTeamOrderResponse: joinTeamOrderResponseSchema,
|
|
5356
5351
|
Jurisdiction: jurisdictionSchema,
|
|
5352
|
+
JurisdictionType: jurisdictionTypeSchema,
|
|
5353
|
+
KeywordDefaultScope: keywordDefaultScopeSchema,
|
|
5357
5354
|
KeywordPolarity: keywordPolaritySchema,
|
|
5358
5355
|
Locale: localeSchema,
|
|
5359
5356
|
MakeReservationRequest: makeReservationRequestSchema,
|
|
@@ -5363,18 +5360,31 @@ const schemas = {
|
|
|
5363
5360
|
MentionType: mentionTypeSchema,
|
|
5364
5361
|
MenuItemMarker: menuItemMarkerSchema,
|
|
5365
5362
|
MenuItemType: menuItemTypeSchema,
|
|
5363
|
+
MetaCallToAction: metaCallToActionSchema,
|
|
5364
|
+
MetaChannel: metaChannelSchema,
|
|
5365
|
+
MetaInsightsDatePreset: metaInsightsDatePresetSchema,
|
|
5366
|
+
MetaIntegrationStatus: metaIntegrationStatusSchema,
|
|
5367
|
+
MetaServingTargetStatus: metaServingTargetStatusSchema,
|
|
5366
5368
|
OccupancyReason: occupancyReasonSchema,
|
|
5367
5369
|
OgImage: ogImageSchema,
|
|
5368
5370
|
OrderStatus: orderStatusSchema,
|
|
5371
|
+
Orientation: orientationSchema,
|
|
5369
5372
|
ParticipantStatus: participantStatusSchema,
|
|
5373
|
+
PartyType: partyTypeSchema,
|
|
5370
5374
|
PatchArticleFeatureImageBody: patchArticleFeatureImageBodySchema,
|
|
5371
5375
|
PaxBand: paxBandSchema,
|
|
5372
5376
|
PaymentMethod: paymentMethodSchema,
|
|
5373
5377
|
PaymentStatus: paymentStatusSchema,
|
|
5374
5378
|
PendingSuperadminTransferStatus: pendingSuperadminTransferStatusSchema,
|
|
5379
|
+
Permission: permissionSchema,
|
|
5375
5380
|
PlaceOrderRequest: placeOrderRequestSchema,
|
|
5376
5381
|
PlaceOrderResponse: placeOrderResponseSchema,
|
|
5377
5382
|
PlatformRole: platformRoleSchema,
|
|
5383
|
+
PositionCenter: positionCenterSchema,
|
|
5384
|
+
PositionCorner: positionCornerSchema,
|
|
5385
|
+
PositionEdge: positionEdgeSchema,
|
|
5386
|
+
Position: positionSchema,
|
|
5387
|
+
PositionY: positionYSchema,
|
|
5378
5388
|
PromotionBenefitType: promotionBenefitTypeSchema,
|
|
5379
5389
|
PublicationEventType: publicationEventTypeSchema,
|
|
5380
5390
|
PublicationFrameStyle: publicationFrameStyleSchema,
|
|
@@ -5397,6 +5407,8 @@ const schemas = {
|
|
|
5397
5407
|
RemoveFromBasketResponse: removeFromBasketResponseSchema,
|
|
5398
5408
|
RenderMenuPublicationPdfRequest: renderMenuPublicationPdfRequestSchema,
|
|
5399
5409
|
RenderMenuPublicationPdfResponse: renderMenuPublicationPdfResponseSchema,
|
|
5410
|
+
RequestContactEmailChangeOutcome: requestContactEmailChangeOutcomeSchema,
|
|
5411
|
+
ReservationDeclineReason: reservationDeclineReasonSchema,
|
|
5400
5412
|
ReservationMessageStatus: reservationMessageStatusSchema,
|
|
5401
5413
|
ReservationMode: reservationModeSchema,
|
|
5402
5414
|
ReservationPromotionStatus: reservationPromotionStatusSchema,
|
|
@@ -5412,7 +5424,10 @@ const schemas = {
|
|
|
5412
5424
|
SaveAdWebsitePagesRequest: saveAdWebsitePagesRequestSchema,
|
|
5413
5425
|
SaveAdWebsitePagesResponse: saveAdWebsitePagesResponseSchema,
|
|
5414
5426
|
ScanTokenEntityType: scanTokenEntityTypeSchema,
|
|
5427
|
+
ScheduleOverrideMode: scheduleOverrideModeSchema,
|
|
5415
5428
|
Schedule: scheduleSchema,
|
|
5429
|
+
ServedMarketAreaType: servedMarketAreaTypeSchema,
|
|
5430
|
+
ServedMarketScope: servedMarketScopeSchema,
|
|
5416
5431
|
SetAdBudgetRequest: setAdBudgetRequestSchema,
|
|
5417
5432
|
SetAdBudgetResponse: setAdBudgetResponseSchema,
|
|
5418
5433
|
SetArticleFeatureImageUploadBody: setArticleFeatureImageUploadBodySchema,
|
|
@@ -5443,6 +5458,7 @@ const schemas = {
|
|
|
5443
5458
|
SwitchFulfillmentTeamOrderResponse: switchFulfillmentTeamOrderResponseSchema,
|
|
5444
5459
|
TeamOrderPaymentStatus: teamOrderPaymentStatusSchema,
|
|
5445
5460
|
TeamOrderStatus: teamOrderStatusSchema,
|
|
5461
|
+
TeamOrderThresholdConstraint: teamOrderThresholdConstraintSchema,
|
|
5446
5462
|
Unit: unitSchema,
|
|
5447
5463
|
UpdateCalloutRequest: updateCalloutRequestSchema,
|
|
5448
5464
|
UpdateCalloutResponse: updateCalloutResponseSchema,
|
|
@@ -5451,12 +5467,14 @@ const schemas = {
|
|
|
5451
5467
|
UpdateWebsitePageRequest: updateWebsitePageRequestSchema,
|
|
5452
5468
|
UpdateWebsitePageResponse: updateWebsitePageResponseSchema,
|
|
5453
5469
|
UploadAssetResponse: uploadAssetResponseSchema,
|
|
5470
|
+
Variant: variantSchema,
|
|
5454
5471
|
VenueAssetType: venueAssetTypeSchema,
|
|
5455
5472
|
VenueChargeType: venueChargeTypeSchema,
|
|
5456
5473
|
VenueEmailSenderStatus: venueEmailSenderStatusSchema,
|
|
5457
5474
|
VenueType: venueTypeSchema,
|
|
5458
5475
|
VenueUserStatus: venueUserStatusSchema,
|
|
5459
|
-
WebsitePageOwnerType: websitePageOwnerTypeSchema
|
|
5476
|
+
WebsitePageOwnerType: websitePageOwnerTypeSchema,
|
|
5477
|
+
WizardKey: wizardKeySchema
|
|
5460
5478
|
};
|
|
5461
5479
|
|
|
5462
5480
|
export { schemas };
|