order3000 1.13.1 → 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/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-BYRSx8Te.d.cts → index-Cq_XIA1w.d.cts} +12 -6
- package/dist/{index-BYRSx8Te.d.mts → index-Cq_XIA1w.d.mts} +12 -6
- package/dist/menu.d.cts +1 -1
- package/dist/menu.d.mts +1 -1
- package/dist/schemas.cjs +93 -255
- package/dist/schemas.d.cts +1100 -15
- package/dist/schemas.d.mts +1100 -15
- package/dist/schemas.mjs +92 -254
- package/package.json +2 -2
- package/dist/deliveryAddressSchema-DQJ8BDYX.cjs +0 -40
- package/dist/deliveryAddressSchema-DZlkW-QX.mjs +0 -34
package/dist/menu.d.mts
CHANGED
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)
|
|
@@ -421,258 +421,6 @@ const contactEmailVerificationStatusSchema = v4.z.enum([
|
|
|
421
421
|
|
|
422
422
|
const contactPreferenceSchema = v4.z.enum(["email", "phone", "sms", "none"]);
|
|
423
423
|
|
|
424
|
-
const countrySchema = v4.z.enum([
|
|
425
|
-
"AD",
|
|
426
|
-
"AE",
|
|
427
|
-
"AF",
|
|
428
|
-
"AG",
|
|
429
|
-
"AI",
|
|
430
|
-
"AL",
|
|
431
|
-
"AM",
|
|
432
|
-
"AO",
|
|
433
|
-
"AQ",
|
|
434
|
-
"AR",
|
|
435
|
-
"AS",
|
|
436
|
-
"AT",
|
|
437
|
-
"AU",
|
|
438
|
-
"AW",
|
|
439
|
-
"AX",
|
|
440
|
-
"AZ",
|
|
441
|
-
"BA",
|
|
442
|
-
"BB",
|
|
443
|
-
"BD",
|
|
444
|
-
"BE",
|
|
445
|
-
"BF",
|
|
446
|
-
"BG",
|
|
447
|
-
"BH",
|
|
448
|
-
"BI",
|
|
449
|
-
"BJ",
|
|
450
|
-
"BL",
|
|
451
|
-
"BM",
|
|
452
|
-
"BN",
|
|
453
|
-
"BO",
|
|
454
|
-
"BQ",
|
|
455
|
-
"BR",
|
|
456
|
-
"BS",
|
|
457
|
-
"BT",
|
|
458
|
-
"BV",
|
|
459
|
-
"BW",
|
|
460
|
-
"BY",
|
|
461
|
-
"BZ",
|
|
462
|
-
"CA",
|
|
463
|
-
"CC",
|
|
464
|
-
"CD",
|
|
465
|
-
"CF",
|
|
466
|
-
"CG",
|
|
467
|
-
"CH",
|
|
468
|
-
"CI",
|
|
469
|
-
"CK",
|
|
470
|
-
"CL",
|
|
471
|
-
"CM",
|
|
472
|
-
"CN",
|
|
473
|
-
"CO",
|
|
474
|
-
"CR",
|
|
475
|
-
"CU",
|
|
476
|
-
"CV",
|
|
477
|
-
"CW",
|
|
478
|
-
"CX",
|
|
479
|
-
"CY",
|
|
480
|
-
"CZ",
|
|
481
|
-
"DE",
|
|
482
|
-
"DJ",
|
|
483
|
-
"DK",
|
|
484
|
-
"DM",
|
|
485
|
-
"DO",
|
|
486
|
-
"DZ",
|
|
487
|
-
"EC",
|
|
488
|
-
"EE",
|
|
489
|
-
"EG",
|
|
490
|
-
"EH",
|
|
491
|
-
"ER",
|
|
492
|
-
"ES",
|
|
493
|
-
"ET",
|
|
494
|
-
"FI",
|
|
495
|
-
"FJ",
|
|
496
|
-
"FK",
|
|
497
|
-
"FM",
|
|
498
|
-
"FO",
|
|
499
|
-
"FR",
|
|
500
|
-
"GA",
|
|
501
|
-
"GB",
|
|
502
|
-
"GD",
|
|
503
|
-
"GE",
|
|
504
|
-
"GF",
|
|
505
|
-
"GG",
|
|
506
|
-
"GH",
|
|
507
|
-
"GI",
|
|
508
|
-
"GL",
|
|
509
|
-
"GM",
|
|
510
|
-
"GN",
|
|
511
|
-
"GP",
|
|
512
|
-
"GQ",
|
|
513
|
-
"GR",
|
|
514
|
-
"GS",
|
|
515
|
-
"GT",
|
|
516
|
-
"GU",
|
|
517
|
-
"GW",
|
|
518
|
-
"GY",
|
|
519
|
-
"HK",
|
|
520
|
-
"HM",
|
|
521
|
-
"HN",
|
|
522
|
-
"HR",
|
|
523
|
-
"HT",
|
|
524
|
-
"HU",
|
|
525
|
-
"ID",
|
|
526
|
-
"IE",
|
|
527
|
-
"IL",
|
|
528
|
-
"IM",
|
|
529
|
-
"IN",
|
|
530
|
-
"IO",
|
|
531
|
-
"IQ",
|
|
532
|
-
"IR",
|
|
533
|
-
"IS",
|
|
534
|
-
"IT",
|
|
535
|
-
"JE",
|
|
536
|
-
"JM",
|
|
537
|
-
"JO",
|
|
538
|
-
"JP",
|
|
539
|
-
"KE",
|
|
540
|
-
"KG",
|
|
541
|
-
"KH",
|
|
542
|
-
"KI",
|
|
543
|
-
"KM",
|
|
544
|
-
"KN",
|
|
545
|
-
"KP",
|
|
546
|
-
"KR",
|
|
547
|
-
"KW",
|
|
548
|
-
"KY",
|
|
549
|
-
"KZ",
|
|
550
|
-
"LA",
|
|
551
|
-
"LB",
|
|
552
|
-
"LC",
|
|
553
|
-
"LI",
|
|
554
|
-
"LK",
|
|
555
|
-
"LR",
|
|
556
|
-
"LS",
|
|
557
|
-
"LT",
|
|
558
|
-
"LU",
|
|
559
|
-
"LV",
|
|
560
|
-
"LY",
|
|
561
|
-
"MA",
|
|
562
|
-
"MC",
|
|
563
|
-
"MD",
|
|
564
|
-
"ME",
|
|
565
|
-
"MF",
|
|
566
|
-
"MG",
|
|
567
|
-
"MH",
|
|
568
|
-
"MK",
|
|
569
|
-
"ML",
|
|
570
|
-
"MM",
|
|
571
|
-
"MN",
|
|
572
|
-
"MO",
|
|
573
|
-
"MP",
|
|
574
|
-
"MQ",
|
|
575
|
-
"MR",
|
|
576
|
-
"MS",
|
|
577
|
-
"MT",
|
|
578
|
-
"MU",
|
|
579
|
-
"MV",
|
|
580
|
-
"MW",
|
|
581
|
-
"MX",
|
|
582
|
-
"MY",
|
|
583
|
-
"MZ",
|
|
584
|
-
"NA",
|
|
585
|
-
"NC",
|
|
586
|
-
"NE",
|
|
587
|
-
"NF",
|
|
588
|
-
"NG",
|
|
589
|
-
"NI",
|
|
590
|
-
"NL",
|
|
591
|
-
"NO",
|
|
592
|
-
"NP",
|
|
593
|
-
"NR",
|
|
594
|
-
"NU",
|
|
595
|
-
"NZ",
|
|
596
|
-
"OM",
|
|
597
|
-
"PA",
|
|
598
|
-
"PE",
|
|
599
|
-
"PF",
|
|
600
|
-
"PG",
|
|
601
|
-
"PH",
|
|
602
|
-
"PK",
|
|
603
|
-
"PL",
|
|
604
|
-
"PM",
|
|
605
|
-
"PN",
|
|
606
|
-
"PR",
|
|
607
|
-
"PS",
|
|
608
|
-
"PT",
|
|
609
|
-
"PW",
|
|
610
|
-
"PY",
|
|
611
|
-
"QA",
|
|
612
|
-
"RE",
|
|
613
|
-
"RO",
|
|
614
|
-
"RS",
|
|
615
|
-
"RU",
|
|
616
|
-
"RW",
|
|
617
|
-
"SA",
|
|
618
|
-
"SB",
|
|
619
|
-
"SC",
|
|
620
|
-
"SD",
|
|
621
|
-
"SE",
|
|
622
|
-
"SG",
|
|
623
|
-
"SH",
|
|
624
|
-
"SI",
|
|
625
|
-
"SJ",
|
|
626
|
-
"SK",
|
|
627
|
-
"SL",
|
|
628
|
-
"SM",
|
|
629
|
-
"SN",
|
|
630
|
-
"SO",
|
|
631
|
-
"SR",
|
|
632
|
-
"SS",
|
|
633
|
-
"ST",
|
|
634
|
-
"SV",
|
|
635
|
-
"SX",
|
|
636
|
-
"SY",
|
|
637
|
-
"SZ",
|
|
638
|
-
"TC",
|
|
639
|
-
"TD",
|
|
640
|
-
"TF",
|
|
641
|
-
"TG",
|
|
642
|
-
"TH",
|
|
643
|
-
"TJ",
|
|
644
|
-
"TK",
|
|
645
|
-
"TL",
|
|
646
|
-
"TM",
|
|
647
|
-
"TN",
|
|
648
|
-
"TO",
|
|
649
|
-
"TR",
|
|
650
|
-
"TT",
|
|
651
|
-
"TV",
|
|
652
|
-
"TW",
|
|
653
|
-
"TZ",
|
|
654
|
-
"UA",
|
|
655
|
-
"UG",
|
|
656
|
-
"UM",
|
|
657
|
-
"US",
|
|
658
|
-
"UY",
|
|
659
|
-
"UZ",
|
|
660
|
-
"VA",
|
|
661
|
-
"VC",
|
|
662
|
-
"VE",
|
|
663
|
-
"VG",
|
|
664
|
-
"VI",
|
|
665
|
-
"VN",
|
|
666
|
-
"VU",
|
|
667
|
-
"WF",
|
|
668
|
-
"WS",
|
|
669
|
-
"YE",
|
|
670
|
-
"YT",
|
|
671
|
-
"ZA",
|
|
672
|
-
"ZM",
|
|
673
|
-
"ZW"
|
|
674
|
-
]);
|
|
675
|
-
|
|
676
424
|
const createAdRequestSchema = v4.z.object({
|
|
677
425
|
venueAccessor: v4.z.string().min(1),
|
|
678
426
|
get ownerEntityType() {
|
|
@@ -2194,6 +1942,8 @@ const featureCategorySchema = v4.z.enum([
|
|
|
2194
1942
|
"venues"
|
|
2195
1943
|
]);
|
|
2196
1944
|
|
|
1945
|
+
const featureGateSchema = v4.z.enum(["custom-email-sender"]);
|
|
1946
|
+
|
|
2197
1947
|
const featureStatusSchema = v4.z.enum([
|
|
2198
1948
|
"backlog",
|
|
2199
1949
|
"in_development",
|
|
@@ -3828,7 +3578,7 @@ const gbpSyncStatusSchema = v4.z.enum([
|
|
|
3828
3578
|
"removed"
|
|
3829
3579
|
]);
|
|
3830
3580
|
|
|
3831
|
-
const geoAreaTypeSchema = v4.z.enum(["postcode", "city"
|
|
3581
|
+
const geoAreaTypeSchema = v4.z.enum(["postcode", "city"]);
|
|
3832
3582
|
|
|
3833
3583
|
const getAreaAvailabilityResponseSchema = v4.z.object({
|
|
3834
3584
|
from: v4.z.string().regex(/^\d{4}-\d{2}-\d{2}$/),
|
|
@@ -4060,6 +3810,12 @@ const joinTeamOrderResponseSchema = v4.z.object({
|
|
|
4060
3810
|
|
|
4061
3811
|
const jurisdictionSchema = v4.z.enum(["DE", "CH", "FR", "IT"]);
|
|
4062
3812
|
|
|
3813
|
+
const jurisdictionTypeSchema = v4.z.enum([
|
|
3814
|
+
"country",
|
|
3815
|
+
"region",
|
|
3816
|
+
"municipality"
|
|
3817
|
+
]);
|
|
3818
|
+
|
|
4063
3819
|
const keywordDefaultScopeSchema = v4.z.enum(["venueType", "cuisine"]);
|
|
4064
3820
|
|
|
4065
3821
|
const keywordPolaritySchema = v4.z.enum(["positive", "negative"]);
|
|
@@ -4446,6 +4202,85 @@ const pendingSuperadminTransferStatusSchema = v4.z.enum([
|
|
|
4446
4202
|
"expired"
|
|
4447
4203
|
]);
|
|
4448
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
|
+
|
|
4449
4284
|
const placeOrderRequestSchema = v4.z.object({
|
|
4450
4285
|
venueAccessor: v4.z.string().min(1),
|
|
4451
4286
|
basketId: v4.z.string().min(1),
|
|
@@ -5419,7 +5254,7 @@ const schemas = {
|
|
|
5419
5254
|
ContactEmailType: contactEmailTypeSchema,
|
|
5420
5255
|
ContactEmailVerificationStatus: contactEmailVerificationStatusSchema,
|
|
5421
5256
|
ContactPreference: contactPreferenceSchema,
|
|
5422
|
-
Country: countrySchema,
|
|
5257
|
+
Country: deliveryAddressSchema.countrySchema,
|
|
5423
5258
|
CreateAdRequest: createAdRequestSchema,
|
|
5424
5259
|
CreateAdResponse: createAdResponseSchema,
|
|
5425
5260
|
CreateCalloutRequest: createCalloutRequestSchema,
|
|
@@ -5469,6 +5304,7 @@ const schemas = {
|
|
|
5469
5304
|
ExtendDeadlineTeamOrderRequest: extendDeadlineTeamOrderRequestSchema,
|
|
5470
5305
|
ExtendDeadlineTeamOrderResponse: extendDeadlineTeamOrderResponseSchema,
|
|
5471
5306
|
FeatureCategory: featureCategorySchema,
|
|
5307
|
+
FeatureGate: featureGateSchema,
|
|
5472
5308
|
FeatureImage: featureImageSchema,
|
|
5473
5309
|
FeatureStatus: featureStatusSchema,
|
|
5474
5310
|
FetchAdResponse: fetchAdResponseSchema,
|
|
@@ -5515,6 +5351,7 @@ const schemas = {
|
|
|
5515
5351
|
JoinTeamOrderRequest: joinTeamOrderRequestSchema,
|
|
5516
5352
|
JoinTeamOrderResponse: joinTeamOrderResponseSchema,
|
|
5517
5353
|
Jurisdiction: jurisdictionSchema,
|
|
5354
|
+
JurisdictionType: jurisdictionTypeSchema,
|
|
5518
5355
|
KeywordDefaultScope: keywordDefaultScopeSchema,
|
|
5519
5356
|
KeywordPolarity: keywordPolaritySchema,
|
|
5520
5357
|
Locale: localeSchema,
|
|
@@ -5541,6 +5378,7 @@ const schemas = {
|
|
|
5541
5378
|
PaymentMethod: deliveryAddressSchema.paymentMethodSchema,
|
|
5542
5379
|
PaymentStatus: paymentStatusSchema,
|
|
5543
5380
|
PendingSuperadminTransferStatus: pendingSuperadminTransferStatusSchema,
|
|
5381
|
+
Permission: permissionSchema,
|
|
5544
5382
|
PlaceOrderRequest: placeOrderRequestSchema,
|
|
5545
5383
|
PlaceOrderResponse: placeOrderResponseSchema,
|
|
5546
5384
|
PlatformRole: platformRoleSchema,
|