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/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)
|
|
@@ -419,258 +419,6 @@ const contactEmailVerificationStatusSchema = z.enum([
|
|
|
419
419
|
|
|
420
420
|
const contactPreferenceSchema = z.enum(["email", "phone", "sms", "none"]);
|
|
421
421
|
|
|
422
|
-
const countrySchema = z.enum([
|
|
423
|
-
"AD",
|
|
424
|
-
"AE",
|
|
425
|
-
"AF",
|
|
426
|
-
"AG",
|
|
427
|
-
"AI",
|
|
428
|
-
"AL",
|
|
429
|
-
"AM",
|
|
430
|
-
"AO",
|
|
431
|
-
"AQ",
|
|
432
|
-
"AR",
|
|
433
|
-
"AS",
|
|
434
|
-
"AT",
|
|
435
|
-
"AU",
|
|
436
|
-
"AW",
|
|
437
|
-
"AX",
|
|
438
|
-
"AZ",
|
|
439
|
-
"BA",
|
|
440
|
-
"BB",
|
|
441
|
-
"BD",
|
|
442
|
-
"BE",
|
|
443
|
-
"BF",
|
|
444
|
-
"BG",
|
|
445
|
-
"BH",
|
|
446
|
-
"BI",
|
|
447
|
-
"BJ",
|
|
448
|
-
"BL",
|
|
449
|
-
"BM",
|
|
450
|
-
"BN",
|
|
451
|
-
"BO",
|
|
452
|
-
"BQ",
|
|
453
|
-
"BR",
|
|
454
|
-
"BS",
|
|
455
|
-
"BT",
|
|
456
|
-
"BV",
|
|
457
|
-
"BW",
|
|
458
|
-
"BY",
|
|
459
|
-
"BZ",
|
|
460
|
-
"CA",
|
|
461
|
-
"CC",
|
|
462
|
-
"CD",
|
|
463
|
-
"CF",
|
|
464
|
-
"CG",
|
|
465
|
-
"CH",
|
|
466
|
-
"CI",
|
|
467
|
-
"CK",
|
|
468
|
-
"CL",
|
|
469
|
-
"CM",
|
|
470
|
-
"CN",
|
|
471
|
-
"CO",
|
|
472
|
-
"CR",
|
|
473
|
-
"CU",
|
|
474
|
-
"CV",
|
|
475
|
-
"CW",
|
|
476
|
-
"CX",
|
|
477
|
-
"CY",
|
|
478
|
-
"CZ",
|
|
479
|
-
"DE",
|
|
480
|
-
"DJ",
|
|
481
|
-
"DK",
|
|
482
|
-
"DM",
|
|
483
|
-
"DO",
|
|
484
|
-
"DZ",
|
|
485
|
-
"EC",
|
|
486
|
-
"EE",
|
|
487
|
-
"EG",
|
|
488
|
-
"EH",
|
|
489
|
-
"ER",
|
|
490
|
-
"ES",
|
|
491
|
-
"ET",
|
|
492
|
-
"FI",
|
|
493
|
-
"FJ",
|
|
494
|
-
"FK",
|
|
495
|
-
"FM",
|
|
496
|
-
"FO",
|
|
497
|
-
"FR",
|
|
498
|
-
"GA",
|
|
499
|
-
"GB",
|
|
500
|
-
"GD",
|
|
501
|
-
"GE",
|
|
502
|
-
"GF",
|
|
503
|
-
"GG",
|
|
504
|
-
"GH",
|
|
505
|
-
"GI",
|
|
506
|
-
"GL",
|
|
507
|
-
"GM",
|
|
508
|
-
"GN",
|
|
509
|
-
"GP",
|
|
510
|
-
"GQ",
|
|
511
|
-
"GR",
|
|
512
|
-
"GS",
|
|
513
|
-
"GT",
|
|
514
|
-
"GU",
|
|
515
|
-
"GW",
|
|
516
|
-
"GY",
|
|
517
|
-
"HK",
|
|
518
|
-
"HM",
|
|
519
|
-
"HN",
|
|
520
|
-
"HR",
|
|
521
|
-
"HT",
|
|
522
|
-
"HU",
|
|
523
|
-
"ID",
|
|
524
|
-
"IE",
|
|
525
|
-
"IL",
|
|
526
|
-
"IM",
|
|
527
|
-
"IN",
|
|
528
|
-
"IO",
|
|
529
|
-
"IQ",
|
|
530
|
-
"IR",
|
|
531
|
-
"IS",
|
|
532
|
-
"IT",
|
|
533
|
-
"JE",
|
|
534
|
-
"JM",
|
|
535
|
-
"JO",
|
|
536
|
-
"JP",
|
|
537
|
-
"KE",
|
|
538
|
-
"KG",
|
|
539
|
-
"KH",
|
|
540
|
-
"KI",
|
|
541
|
-
"KM",
|
|
542
|
-
"KN",
|
|
543
|
-
"KP",
|
|
544
|
-
"KR",
|
|
545
|
-
"KW",
|
|
546
|
-
"KY",
|
|
547
|
-
"KZ",
|
|
548
|
-
"LA",
|
|
549
|
-
"LB",
|
|
550
|
-
"LC",
|
|
551
|
-
"LI",
|
|
552
|
-
"LK",
|
|
553
|
-
"LR",
|
|
554
|
-
"LS",
|
|
555
|
-
"LT",
|
|
556
|
-
"LU",
|
|
557
|
-
"LV",
|
|
558
|
-
"LY",
|
|
559
|
-
"MA",
|
|
560
|
-
"MC",
|
|
561
|
-
"MD",
|
|
562
|
-
"ME",
|
|
563
|
-
"MF",
|
|
564
|
-
"MG",
|
|
565
|
-
"MH",
|
|
566
|
-
"MK",
|
|
567
|
-
"ML",
|
|
568
|
-
"MM",
|
|
569
|
-
"MN",
|
|
570
|
-
"MO",
|
|
571
|
-
"MP",
|
|
572
|
-
"MQ",
|
|
573
|
-
"MR",
|
|
574
|
-
"MS",
|
|
575
|
-
"MT",
|
|
576
|
-
"MU",
|
|
577
|
-
"MV",
|
|
578
|
-
"MW",
|
|
579
|
-
"MX",
|
|
580
|
-
"MY",
|
|
581
|
-
"MZ",
|
|
582
|
-
"NA",
|
|
583
|
-
"NC",
|
|
584
|
-
"NE",
|
|
585
|
-
"NF",
|
|
586
|
-
"NG",
|
|
587
|
-
"NI",
|
|
588
|
-
"NL",
|
|
589
|
-
"NO",
|
|
590
|
-
"NP",
|
|
591
|
-
"NR",
|
|
592
|
-
"NU",
|
|
593
|
-
"NZ",
|
|
594
|
-
"OM",
|
|
595
|
-
"PA",
|
|
596
|
-
"PE",
|
|
597
|
-
"PF",
|
|
598
|
-
"PG",
|
|
599
|
-
"PH",
|
|
600
|
-
"PK",
|
|
601
|
-
"PL",
|
|
602
|
-
"PM",
|
|
603
|
-
"PN",
|
|
604
|
-
"PR",
|
|
605
|
-
"PS",
|
|
606
|
-
"PT",
|
|
607
|
-
"PW",
|
|
608
|
-
"PY",
|
|
609
|
-
"QA",
|
|
610
|
-
"RE",
|
|
611
|
-
"RO",
|
|
612
|
-
"RS",
|
|
613
|
-
"RU",
|
|
614
|
-
"RW",
|
|
615
|
-
"SA",
|
|
616
|
-
"SB",
|
|
617
|
-
"SC",
|
|
618
|
-
"SD",
|
|
619
|
-
"SE",
|
|
620
|
-
"SG",
|
|
621
|
-
"SH",
|
|
622
|
-
"SI",
|
|
623
|
-
"SJ",
|
|
624
|
-
"SK",
|
|
625
|
-
"SL",
|
|
626
|
-
"SM",
|
|
627
|
-
"SN",
|
|
628
|
-
"SO",
|
|
629
|
-
"SR",
|
|
630
|
-
"SS",
|
|
631
|
-
"ST",
|
|
632
|
-
"SV",
|
|
633
|
-
"SX",
|
|
634
|
-
"SY",
|
|
635
|
-
"SZ",
|
|
636
|
-
"TC",
|
|
637
|
-
"TD",
|
|
638
|
-
"TF",
|
|
639
|
-
"TG",
|
|
640
|
-
"TH",
|
|
641
|
-
"TJ",
|
|
642
|
-
"TK",
|
|
643
|
-
"TL",
|
|
644
|
-
"TM",
|
|
645
|
-
"TN",
|
|
646
|
-
"TO",
|
|
647
|
-
"TR",
|
|
648
|
-
"TT",
|
|
649
|
-
"TV",
|
|
650
|
-
"TW",
|
|
651
|
-
"TZ",
|
|
652
|
-
"UA",
|
|
653
|
-
"UG",
|
|
654
|
-
"UM",
|
|
655
|
-
"US",
|
|
656
|
-
"UY",
|
|
657
|
-
"UZ",
|
|
658
|
-
"VA",
|
|
659
|
-
"VC",
|
|
660
|
-
"VE",
|
|
661
|
-
"VG",
|
|
662
|
-
"VI",
|
|
663
|
-
"VN",
|
|
664
|
-
"VU",
|
|
665
|
-
"WF",
|
|
666
|
-
"WS",
|
|
667
|
-
"YE",
|
|
668
|
-
"YT",
|
|
669
|
-
"ZA",
|
|
670
|
-
"ZM",
|
|
671
|
-
"ZW"
|
|
672
|
-
]);
|
|
673
|
-
|
|
674
422
|
const createAdRequestSchema = z.object({
|
|
675
423
|
venueAccessor: z.string().min(1),
|
|
676
424
|
get ownerEntityType() {
|
|
@@ -2192,6 +1940,8 @@ const featureCategorySchema = z.enum([
|
|
|
2192
1940
|
"venues"
|
|
2193
1941
|
]);
|
|
2194
1942
|
|
|
1943
|
+
const featureGateSchema = z.enum(["custom-email-sender"]);
|
|
1944
|
+
|
|
2195
1945
|
const featureStatusSchema = z.enum([
|
|
2196
1946
|
"backlog",
|
|
2197
1947
|
"in_development",
|
|
@@ -3826,7 +3576,7 @@ const gbpSyncStatusSchema = z.enum([
|
|
|
3826
3576
|
"removed"
|
|
3827
3577
|
]);
|
|
3828
3578
|
|
|
3829
|
-
const geoAreaTypeSchema = z.enum(["postcode", "city"
|
|
3579
|
+
const geoAreaTypeSchema = z.enum(["postcode", "city"]);
|
|
3830
3580
|
|
|
3831
3581
|
const getAreaAvailabilityResponseSchema = z.object({
|
|
3832
3582
|
from: z.string().regex(/^\d{4}-\d{2}-\d{2}$/),
|
|
@@ -4058,6 +3808,12 @@ const joinTeamOrderResponseSchema = z.object({
|
|
|
4058
3808
|
|
|
4059
3809
|
const jurisdictionSchema = z.enum(["DE", "CH", "FR", "IT"]);
|
|
4060
3810
|
|
|
3811
|
+
const jurisdictionTypeSchema = z.enum([
|
|
3812
|
+
"country",
|
|
3813
|
+
"region",
|
|
3814
|
+
"municipality"
|
|
3815
|
+
]);
|
|
3816
|
+
|
|
4061
3817
|
const keywordDefaultScopeSchema = z.enum(["venueType", "cuisine"]);
|
|
4062
3818
|
|
|
4063
3819
|
const keywordPolaritySchema = z.enum(["positive", "negative"]);
|
|
@@ -4444,6 +4200,85 @@ const pendingSuperadminTransferStatusSchema = z.enum([
|
|
|
4444
4200
|
"expired"
|
|
4445
4201
|
]);
|
|
4446
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
|
+
|
|
4447
4282
|
const placeOrderRequestSchema = z.object({
|
|
4448
4283
|
venueAccessor: z.string().min(1),
|
|
4449
4284
|
basketId: z.string().min(1),
|
|
@@ -5467,6 +5302,7 @@ const schemas = {
|
|
|
5467
5302
|
ExtendDeadlineTeamOrderRequest: extendDeadlineTeamOrderRequestSchema,
|
|
5468
5303
|
ExtendDeadlineTeamOrderResponse: extendDeadlineTeamOrderResponseSchema,
|
|
5469
5304
|
FeatureCategory: featureCategorySchema,
|
|
5305
|
+
FeatureGate: featureGateSchema,
|
|
5470
5306
|
FeatureImage: featureImageSchema,
|
|
5471
5307
|
FeatureStatus: featureStatusSchema,
|
|
5472
5308
|
FetchAdResponse: fetchAdResponseSchema,
|
|
@@ -5513,6 +5349,7 @@ const schemas = {
|
|
|
5513
5349
|
JoinTeamOrderRequest: joinTeamOrderRequestSchema,
|
|
5514
5350
|
JoinTeamOrderResponse: joinTeamOrderResponseSchema,
|
|
5515
5351
|
Jurisdiction: jurisdictionSchema,
|
|
5352
|
+
JurisdictionType: jurisdictionTypeSchema,
|
|
5516
5353
|
KeywordDefaultScope: keywordDefaultScopeSchema,
|
|
5517
5354
|
KeywordPolarity: keywordPolaritySchema,
|
|
5518
5355
|
Locale: localeSchema,
|
|
@@ -5539,6 +5376,7 @@ const schemas = {
|
|
|
5539
5376
|
PaymentMethod: paymentMethodSchema,
|
|
5540
5377
|
PaymentStatus: paymentStatusSchema,
|
|
5541
5378
|
PendingSuperadminTransferStatus: pendingSuperadminTransferStatusSchema,
|
|
5379
|
+
Permission: permissionSchema,
|
|
5542
5380
|
PlaceOrderRequest: placeOrderRequestSchema,
|
|
5543
5381
|
PlaceOrderResponse: placeOrderResponseSchema,
|
|
5544
5382
|
PlatformRole: platformRoleSchema,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "order3000",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "order3000 node.js sdk",
|
|
5
5
|
"main": "./dist/client.cjs",
|
|
6
6
|
"module": "./dist/client.mjs",
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
"prettier": "^3.7.4",
|
|
68
68
|
"tsx": "^4.19.2",
|
|
69
69
|
"typescript": "^5.9.3",
|
|
70
|
+
"@kolaveri/eslint-config": "1.15.0",
|
|
70
71
|
"@kolaveri/prettier-config": "1.0.6",
|
|
71
|
-
"@kolaveri/eslint-config": "1.14.0",
|
|
72
72
|
"@kolaveri/tsconfig": "1.0.1"
|
|
73
73
|
},
|
|
74
74
|
"files": [
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var v4 = require('zod/v4');
|
|
4
|
-
|
|
5
|
-
const fulfillmentTypeSchema = v4.z.enum(["pickup", "delivery"]);
|
|
6
|
-
|
|
7
|
-
const participantStatusSchema = v4.z.enum([
|
|
8
|
-
"browsing",
|
|
9
|
-
"authorized",
|
|
10
|
-
"cash_pending",
|
|
11
|
-
"placed",
|
|
12
|
-
"completed",
|
|
13
|
-
"cancelled"
|
|
14
|
-
]);
|
|
15
|
-
|
|
16
|
-
const paymentMethodSchema = v4.z.enum(["card", "cash", "voucher"]);
|
|
17
|
-
|
|
18
|
-
const teamOrderStatusSchema = v4.z.enum([
|
|
19
|
-
"draft",
|
|
20
|
-
"collecting",
|
|
21
|
-
"locked",
|
|
22
|
-
"placed",
|
|
23
|
-
"ready",
|
|
24
|
-
"completed",
|
|
25
|
-
"cancelled"
|
|
26
|
-
]);
|
|
27
|
-
|
|
28
|
-
const deliveryAddressSchema = v4.z.object({
|
|
29
|
-
street: v4.z.string(),
|
|
30
|
-
city: v4.z.string(),
|
|
31
|
-
state: v4.z.string(),
|
|
32
|
-
postalCode: v4.z.string(),
|
|
33
|
-
country: v4.z.string()
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
exports.deliveryAddressSchema = deliveryAddressSchema;
|
|
37
|
-
exports.fulfillmentTypeSchema = fulfillmentTypeSchema;
|
|
38
|
-
exports.participantStatusSchema = participantStatusSchema;
|
|
39
|
-
exports.paymentMethodSchema = paymentMethodSchema;
|
|
40
|
-
exports.teamOrderStatusSchema = teamOrderStatusSchema;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod/v4';
|
|
2
|
-
|
|
3
|
-
const fulfillmentTypeSchema = z.enum(["pickup", "delivery"]);
|
|
4
|
-
|
|
5
|
-
const participantStatusSchema = z.enum([
|
|
6
|
-
"browsing",
|
|
7
|
-
"authorized",
|
|
8
|
-
"cash_pending",
|
|
9
|
-
"placed",
|
|
10
|
-
"completed",
|
|
11
|
-
"cancelled"
|
|
12
|
-
]);
|
|
13
|
-
|
|
14
|
-
const paymentMethodSchema = z.enum(["card", "cash", "voucher"]);
|
|
15
|
-
|
|
16
|
-
const teamOrderStatusSchema = z.enum([
|
|
17
|
-
"draft",
|
|
18
|
-
"collecting",
|
|
19
|
-
"locked",
|
|
20
|
-
"placed",
|
|
21
|
-
"ready",
|
|
22
|
-
"completed",
|
|
23
|
-
"cancelled"
|
|
24
|
-
]);
|
|
25
|
-
|
|
26
|
-
const deliveryAddressSchema = z.object({
|
|
27
|
-
street: z.string(),
|
|
28
|
-
city: z.string(),
|
|
29
|
-
state: z.string(),
|
|
30
|
-
postalCode: z.string(),
|
|
31
|
-
country: z.string()
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
export { paymentMethodSchema as a, deliveryAddressSchema as d, fulfillmentTypeSchema as f, participantStatusSchema as p, teamOrderStatusSchema as t };
|