order3000 1.13.1 → 2.0.1
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-D7ZH0AzE.d.cts} +29 -7
- package/dist/{index-BYRSx8Te.d.mts → index-D7ZH0AzE.d.mts} +29 -7
- package/dist/menu.d.cts +1 -1
- package/dist/menu.d.mts +1 -1
- package/dist/schemas.cjs +136 -255
- package/dist/schemas.d.cts +1142 -16
- package/dist/schemas.d.mts +1142 -16
- package/dist/schemas.mjs +135 -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}$/),
|
|
@@ -4039,6 +3789,16 @@ const invitationScenarioSchema = z.enum([
|
|
|
4039
3789
|
"former_employee"
|
|
4040
3790
|
]);
|
|
4041
3791
|
|
|
3792
|
+
const invitationStatusSchema = z.enum([
|
|
3793
|
+
"pending",
|
|
3794
|
+
"accepted",
|
|
3795
|
+
"rejected",
|
|
3796
|
+
"expired",
|
|
3797
|
+
"revoked"
|
|
3798
|
+
]);
|
|
3799
|
+
|
|
3800
|
+
const invitationTypeSchema = z.enum(["venue_user", "party_connection"]);
|
|
3801
|
+
|
|
4042
3802
|
const joinTeamOrderRequestSchema = z.object({
|
|
4043
3803
|
publicId: z.string().min(1),
|
|
4044
3804
|
sessionId: z.string().min(1),
|
|
@@ -4058,6 +3818,12 @@ const joinTeamOrderResponseSchema = z.object({
|
|
|
4058
3818
|
|
|
4059
3819
|
const jurisdictionSchema = z.enum(["DE", "CH", "FR", "IT"]);
|
|
4060
3820
|
|
|
3821
|
+
const jurisdictionTypeSchema = z.enum([
|
|
3822
|
+
"country",
|
|
3823
|
+
"region",
|
|
3824
|
+
"municipality"
|
|
3825
|
+
]);
|
|
3826
|
+
|
|
4061
3827
|
const keywordDefaultScopeSchema = z.enum(["venueType", "cuisine"]);
|
|
4062
3828
|
|
|
4063
3829
|
const keywordPolaritySchema = z.enum(["positive", "negative"]);
|
|
@@ -4398,6 +4164,28 @@ const menuItemMarkerSchema = z.enum([
|
|
|
4398
4164
|
"spicy"
|
|
4399
4165
|
]);
|
|
4400
4166
|
|
|
4167
|
+
const messageDirectionSchema = z.enum(["incoming", "outgoing"]);
|
|
4168
|
+
|
|
4169
|
+
const messageSourceSchema = z.enum(["platform"]);
|
|
4170
|
+
|
|
4171
|
+
const messageStatusSchema = z.enum([
|
|
4172
|
+
"draft",
|
|
4173
|
+
"submitting",
|
|
4174
|
+
"submitted",
|
|
4175
|
+
"rejected",
|
|
4176
|
+
"failed",
|
|
4177
|
+
"received"
|
|
4178
|
+
]);
|
|
4179
|
+
|
|
4180
|
+
const messageThreadStatusSchema = z.enum([
|
|
4181
|
+
"open",
|
|
4182
|
+
"awaiting_them",
|
|
4183
|
+
"awaiting_us",
|
|
4184
|
+
"closed"
|
|
4185
|
+
]);
|
|
4186
|
+
|
|
4187
|
+
const messageThreadSubjectTypeSchema = z.enum(["party"]);
|
|
4188
|
+
|
|
4401
4189
|
const metaCallToActionSchema = z.enum([
|
|
4402
4190
|
"LEARN_MORE",
|
|
4403
4191
|
"BOOK_TRAVEL",
|
|
@@ -4425,6 +4213,8 @@ const metaServingTargetStatusSchema = z.enum(["ACTIVE", "PAUSED"]);
|
|
|
4425
4213
|
|
|
4426
4214
|
const orientationSchema = z.enum(["vertical", "horizontal"]);
|
|
4427
4215
|
|
|
4216
|
+
const partyGenderSchema = z.enum(["male", "female", "neutral"]);
|
|
4217
|
+
|
|
4428
4218
|
const partyTypeSchema = z.enum(["natural_person", "legal_entity"]);
|
|
4429
4219
|
|
|
4430
4220
|
const patchArticleFeatureImageBodySchema = z.object({
|
|
@@ -4444,6 +4234,86 @@ const pendingSuperadminTransferStatusSchema = z.enum([
|
|
|
4444
4234
|
"expired"
|
|
4445
4235
|
]);
|
|
4446
4236
|
|
|
4237
|
+
const permissionSchema = z.enum([
|
|
4238
|
+
"area-booking-requests:create",
|
|
4239
|
+
"bank-accounts:manage",
|
|
4240
|
+
"bank-accounts:view",
|
|
4241
|
+
"beverages:create",
|
|
4242
|
+
"beverages:delete",
|
|
4243
|
+
"beverages:read",
|
|
4244
|
+
"beverages:update",
|
|
4245
|
+
"categories:create",
|
|
4246
|
+
"categories:delete",
|
|
4247
|
+
"categories:update",
|
|
4248
|
+
"deposits:calculate",
|
|
4249
|
+
"deposits:mark-lost",
|
|
4250
|
+
"deposits:override-penalty",
|
|
4251
|
+
"deposits:process-return",
|
|
4252
|
+
"deposits:report",
|
|
4253
|
+
"deposits:view",
|
|
4254
|
+
"dishes:create",
|
|
4255
|
+
"dishes:delete",
|
|
4256
|
+
"dishes:read",
|
|
4257
|
+
"dishes:update",
|
|
4258
|
+
"features:create",
|
|
4259
|
+
"features:delete",
|
|
4260
|
+
"features:update",
|
|
4261
|
+
"features:view",
|
|
4262
|
+
"fulfillment:assign",
|
|
4263
|
+
"fulfillment:mark-delivered",
|
|
4264
|
+
"iam:human",
|
|
4265
|
+
"iam:robot",
|
|
4266
|
+
"inbox:view",
|
|
4267
|
+
"kitchen:mark-preparing",
|
|
4268
|
+
"kitchen:mark-ready",
|
|
4269
|
+
"kitchen:view",
|
|
4270
|
+
"m2m:ping",
|
|
4271
|
+
"menus:manage",
|
|
4272
|
+
"menus:read",
|
|
4273
|
+
"orders:activity",
|
|
4274
|
+
"orders:analytics",
|
|
4275
|
+
"orders:cancel",
|
|
4276
|
+
"orders:create",
|
|
4277
|
+
"orders:discount",
|
|
4278
|
+
"orders:export",
|
|
4279
|
+
"orders:read-all",
|
|
4280
|
+
"orders:read-own",
|
|
4281
|
+
"orders:refund",
|
|
4282
|
+
"orders:update",
|
|
4283
|
+
"orders:void",
|
|
4284
|
+
"payments:process",
|
|
4285
|
+
"payments:refund",
|
|
4286
|
+
"plans:create",
|
|
4287
|
+
"plans:delete",
|
|
4288
|
+
"plans:update",
|
|
4289
|
+
"plans:view",
|
|
4290
|
+
"platform:view",
|
|
4291
|
+
"users:delete",
|
|
4292
|
+
"platform-mention-fields:manage",
|
|
4293
|
+
"reports:analytics",
|
|
4294
|
+
"reports:orders",
|
|
4295
|
+
"roles:assign",
|
|
4296
|
+
"roles:create",
|
|
4297
|
+
"roles:delete",
|
|
4298
|
+
"roles:update",
|
|
4299
|
+
"roles:view",
|
|
4300
|
+
"rolodex:manage",
|
|
4301
|
+
"rolodex:view",
|
|
4302
|
+
"subscriptions:create",
|
|
4303
|
+
"subscriptions:delete",
|
|
4304
|
+
"subscriptions:update",
|
|
4305
|
+
"subscriptions:view",
|
|
4306
|
+
"team:invite",
|
|
4307
|
+
"team:remove",
|
|
4308
|
+
"team:revoke",
|
|
4309
|
+
"team:update",
|
|
4310
|
+
"team:view",
|
|
4311
|
+
"venue:manage-gbp",
|
|
4312
|
+
"venue:manage-payments",
|
|
4313
|
+
"venue:update",
|
|
4314
|
+
"venue:view"
|
|
4315
|
+
]);
|
|
4316
|
+
|
|
4447
4317
|
const placeOrderRequestSchema = z.object({
|
|
4448
4318
|
venueAccessor: z.string().min(1),
|
|
4449
4319
|
basketId: z.string().min(1),
|
|
@@ -5467,6 +5337,7 @@ const schemas = {
|
|
|
5467
5337
|
ExtendDeadlineTeamOrderRequest: extendDeadlineTeamOrderRequestSchema,
|
|
5468
5338
|
ExtendDeadlineTeamOrderResponse: extendDeadlineTeamOrderResponseSchema,
|
|
5469
5339
|
FeatureCategory: featureCategorySchema,
|
|
5340
|
+
FeatureGate: featureGateSchema,
|
|
5470
5341
|
FeatureImage: featureImageSchema,
|
|
5471
5342
|
FeatureStatus: featureStatusSchema,
|
|
5472
5343
|
FetchAdResponse: fetchAdResponseSchema,
|
|
@@ -5510,9 +5381,12 @@ const schemas = {
|
|
|
5510
5381
|
InventoryAssetStatus: inventoryAssetStatusSchema,
|
|
5511
5382
|
InventoryCategory: inventoryCategorySchema,
|
|
5512
5383
|
InvitationScenario: invitationScenarioSchema,
|
|
5384
|
+
InvitationStatus: invitationStatusSchema,
|
|
5385
|
+
InvitationType: invitationTypeSchema,
|
|
5513
5386
|
JoinTeamOrderRequest: joinTeamOrderRequestSchema,
|
|
5514
5387
|
JoinTeamOrderResponse: joinTeamOrderResponseSchema,
|
|
5515
5388
|
Jurisdiction: jurisdictionSchema,
|
|
5389
|
+
JurisdictionType: jurisdictionTypeSchema,
|
|
5516
5390
|
KeywordDefaultScope: keywordDefaultScopeSchema,
|
|
5517
5391
|
KeywordPolarity: keywordPolaritySchema,
|
|
5518
5392
|
Locale: localeSchema,
|
|
@@ -5523,6 +5397,11 @@ const schemas = {
|
|
|
5523
5397
|
MentionType: mentionTypeSchema,
|
|
5524
5398
|
MenuItemMarker: menuItemMarkerSchema,
|
|
5525
5399
|
MenuItemType: menuItemTypeSchema,
|
|
5400
|
+
MessageDirection: messageDirectionSchema,
|
|
5401
|
+
MessageSource: messageSourceSchema,
|
|
5402
|
+
MessageStatus: messageStatusSchema,
|
|
5403
|
+
MessageThreadStatus: messageThreadStatusSchema,
|
|
5404
|
+
MessageThreadSubjectType: messageThreadSubjectTypeSchema,
|
|
5526
5405
|
MetaCallToAction: metaCallToActionSchema,
|
|
5527
5406
|
MetaChannel: metaChannelSchema,
|
|
5528
5407
|
MetaInsightsDatePreset: metaInsightsDatePresetSchema,
|
|
@@ -5533,12 +5412,14 @@ const schemas = {
|
|
|
5533
5412
|
OrderStatus: orderStatusSchema,
|
|
5534
5413
|
Orientation: orientationSchema,
|
|
5535
5414
|
ParticipantStatus: participantStatusSchema,
|
|
5415
|
+
PartyGender: partyGenderSchema,
|
|
5536
5416
|
PartyType: partyTypeSchema,
|
|
5537
5417
|
PatchArticleFeatureImageBody: patchArticleFeatureImageBodySchema,
|
|
5538
5418
|
PaxBand: paxBandSchema,
|
|
5539
5419
|
PaymentMethod: paymentMethodSchema,
|
|
5540
5420
|
PaymentStatus: paymentStatusSchema,
|
|
5541
5421
|
PendingSuperadminTransferStatus: pendingSuperadminTransferStatusSchema,
|
|
5422
|
+
Permission: permissionSchema,
|
|
5542
5423
|
PlaceOrderRequest: placeOrderRequestSchema,
|
|
5543
5424
|
PlaceOrderResponse: placeOrderResponseSchema,
|
|
5544
5425
|
PlatformRole: platformRoleSchema,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "order3000",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
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.1",
|
|
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 };
|