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