order3000 2.2.2 → 2.2.4
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 +11 -10
- package/dist/client.d.cts +9 -3
- package/dist/client.d.mts +9 -3
- package/dist/index-ChIpruKt.d.cts +4458 -0
- package/dist/index-ChIpruKt.d.mts +4458 -0
- package/dist/{index-B7V1wOj_.d.cts → index-DJ6-ihXb.d.cts} +123 -142
- package/dist/{index-B7V1wOj_.d.mts → index-DJ6-ihXb.d.mts} +123 -142
- package/dist/menu.d.cts +1 -1
- package/dist/menu.d.mts +1 -1
- package/dist/schemas.cjs +180 -207
- package/dist/schemas.d.cts +181 -9
- package/dist/schemas.d.mts +181 -9
- package/dist/schemas.mjs +180 -207
- package/package.json +6 -5
package/dist/schemas.mjs
CHANGED
|
@@ -368,8 +368,6 @@ const beverageCategorySchema = z.enum([
|
|
|
368
368
|
|
|
369
369
|
const billingIntervalSchema = z.enum(["month", "year"]);
|
|
370
370
|
|
|
371
|
-
const billingModeSchema = z.enum(["single_anchor", "split"]);
|
|
372
|
-
|
|
373
371
|
const bookingChannelSchema = z.enum(["reservation", "order"]);
|
|
374
372
|
|
|
375
373
|
const bookletSectionInputSchema = z.object({
|
|
@@ -411,8 +409,6 @@ const cancellationReasonSchema = z.enum([
|
|
|
411
409
|
"restaurant_request"
|
|
412
410
|
]);
|
|
413
411
|
|
|
414
|
-
const chargeTypeSchema = z.enum(["base", "addon"]);
|
|
415
|
-
|
|
416
412
|
const chatChannelTypeSchema = z.enum([
|
|
417
413
|
"team",
|
|
418
414
|
"direct",
|
|
@@ -1728,6 +1724,50 @@ const editEventRequestSchema = z.object({
|
|
|
1728
1724
|
ritualAccessor: z.string().nullish()
|
|
1729
1725
|
}).describe("Partial-update body for an existing event");
|
|
1730
1726
|
|
|
1727
|
+
const scheduleOverrideSchema = z.object({
|
|
1728
|
+
id: z.string(),
|
|
1729
|
+
scheduleId: z.string(),
|
|
1730
|
+
date: z.string(),
|
|
1731
|
+
reason: z.nullable(
|
|
1732
|
+
z.union([
|
|
1733
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1734
|
+
z.array(z.any()),
|
|
1735
|
+
z.object({}).catchall(z.any())
|
|
1736
|
+
])
|
|
1737
|
+
),
|
|
1738
|
+
isActive: z.boolean(),
|
|
1739
|
+
updatedAt: z.nullable(z.any()),
|
|
1740
|
+
updatedBy: z.nullable(z.string()),
|
|
1741
|
+
createdAt: z.nullable(z.any()),
|
|
1742
|
+
createdBy: z.nullable(z.string()),
|
|
1743
|
+
scheduleOverrideTimeSlots: z.array(
|
|
1744
|
+
z.object({
|
|
1745
|
+
overrideId: z.string(),
|
|
1746
|
+
timeSlotId: z.string(),
|
|
1747
|
+
sortIndex: z.nullable(z.string().max(255)),
|
|
1748
|
+
timeSlot: z.object({
|
|
1749
|
+
id: z.string(),
|
|
1750
|
+
startTime: z.string(),
|
|
1751
|
+
endTime: z.nullable(z.string()),
|
|
1752
|
+
get channel() {
|
|
1753
|
+
return bookingChannelSchema;
|
|
1754
|
+
},
|
|
1755
|
+
isActive: z.nullable(z.boolean()),
|
|
1756
|
+
isSchedulable: z.nullable(z.boolean()),
|
|
1757
|
+
maxBookings: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1758
|
+
maxGuests: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1759
|
+
overflowBookings: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1760
|
+
overflowGuests: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1761
|
+
sortIndex: z.nullable(z.string().max(255)),
|
|
1762
|
+
updatedAt: z.nullable(z.any()),
|
|
1763
|
+
updatedBy: z.nullable(z.string()),
|
|
1764
|
+
createdAt: z.nullable(z.any()),
|
|
1765
|
+
createdBy: z.nullable(z.string())
|
|
1766
|
+
})
|
|
1767
|
+
})
|
|
1768
|
+
)
|
|
1769
|
+
});
|
|
1770
|
+
|
|
1731
1771
|
const scheduleSchema = z.object({
|
|
1732
1772
|
id: z.string(),
|
|
1733
1773
|
name: z.union([
|
|
@@ -1796,57 +1836,9 @@ const scheduleSchema = z.object({
|
|
|
1796
1836
|
})
|
|
1797
1837
|
)
|
|
1798
1838
|
),
|
|
1799
|
-
scheduleOverrides
|
|
1800
|
-
z.array(
|
|
1801
|
-
|
|
1802
|
-
id: z.string(),
|
|
1803
|
-
scheduleId: z.string(),
|
|
1804
|
-
date: z.string(),
|
|
1805
|
-
reason: z.nullable(
|
|
1806
|
-
z.union([
|
|
1807
|
-
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1808
|
-
z.array(z.any()),
|
|
1809
|
-
z.object({}).catchall(z.any())
|
|
1810
|
-
])
|
|
1811
|
-
),
|
|
1812
|
-
isActive: z.boolean(),
|
|
1813
|
-
updatedAt: z.nullable(z.any()),
|
|
1814
|
-
updatedBy: z.nullable(z.string()),
|
|
1815
|
-
createdAt: z.nullable(z.any()),
|
|
1816
|
-
createdBy: z.nullable(z.string()),
|
|
1817
|
-
scheduleOverrideTimeSlots: z.array(
|
|
1818
|
-
z.object({
|
|
1819
|
-
overrideId: z.string(),
|
|
1820
|
-
timeSlotId: z.string(),
|
|
1821
|
-
sortIndex: z.nullable(z.string().max(255)),
|
|
1822
|
-
timeSlot: z.object({
|
|
1823
|
-
id: z.string(),
|
|
1824
|
-
startTime: z.string(),
|
|
1825
|
-
endTime: z.nullable(z.string()),
|
|
1826
|
-
get channel() {
|
|
1827
|
-
return bookingChannelSchema;
|
|
1828
|
-
},
|
|
1829
|
-
isActive: z.nullable(z.boolean()),
|
|
1830
|
-
isSchedulable: z.nullable(z.boolean()),
|
|
1831
|
-
maxBookings: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1832
|
-
maxGuests: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1833
|
-
overflowBookings: z.nullable(
|
|
1834
|
-
z.int().min(-2147483648).max(2147483647)
|
|
1835
|
-
),
|
|
1836
|
-
overflowGuests: z.nullable(
|
|
1837
|
-
z.int().min(-2147483648).max(2147483647)
|
|
1838
|
-
),
|
|
1839
|
-
sortIndex: z.nullable(z.string().max(255)),
|
|
1840
|
-
updatedAt: z.nullable(z.any()),
|
|
1841
|
-
updatedBy: z.nullable(z.string()),
|
|
1842
|
-
createdAt: z.nullable(z.any()),
|
|
1843
|
-
createdBy: z.nullable(z.string())
|
|
1844
|
-
})
|
|
1845
|
-
})
|
|
1846
|
-
)
|
|
1847
|
-
})
|
|
1848
|
-
)
|
|
1849
|
-
),
|
|
1839
|
+
get scheduleOverrides() {
|
|
1840
|
+
return z.array(scheduleOverrideSchema).optional();
|
|
1841
|
+
},
|
|
1850
1842
|
scheduleSlotPolicies: z.optional(
|
|
1851
1843
|
z.array(
|
|
1852
1844
|
z.object({
|
|
@@ -2108,7 +2100,11 @@ const featureCategorySchema = z.enum([
|
|
|
2108
2100
|
"venues"
|
|
2109
2101
|
]);
|
|
2110
2102
|
|
|
2111
|
-
const featureGateSchema = z.enum([
|
|
2103
|
+
const featureGateSchema = z.enum([
|
|
2104
|
+
"vanity-email",
|
|
2105
|
+
"vanity-mailbox",
|
|
2106
|
+
"vanity-url"
|
|
2107
|
+
]);
|
|
2112
2108
|
|
|
2113
2109
|
const featureStatusSchema = z.enum([
|
|
2114
2110
|
"backlog",
|
|
@@ -3463,6 +3459,97 @@ const fetchMenuSubscriptionsResponseSchema = z.array(
|
|
|
3463
3459
|
})
|
|
3464
3460
|
);
|
|
3465
3461
|
|
|
3462
|
+
const hydratedScheduleSchema = z.object({
|
|
3463
|
+
id: z.string(),
|
|
3464
|
+
name: z.union([
|
|
3465
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3466
|
+
z.array(z.any()),
|
|
3467
|
+
z.object({}).catchall(z.any())
|
|
3468
|
+
]),
|
|
3469
|
+
description: z.nullable(
|
|
3470
|
+
z.union([
|
|
3471
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3472
|
+
z.array(z.any()),
|
|
3473
|
+
z.object({}).catchall(z.any())
|
|
3474
|
+
])
|
|
3475
|
+
),
|
|
3476
|
+
timezone: z.string(),
|
|
3477
|
+
rrule: z.nullable(z.string()),
|
|
3478
|
+
exdates: z.nullable(z.array(z.string())),
|
|
3479
|
+
validFrom: z.nullable(z.string()),
|
|
3480
|
+
validTo: z.nullable(z.string()),
|
|
3481
|
+
get slotMode() {
|
|
3482
|
+
return slotModeSchema;
|
|
3483
|
+
},
|
|
3484
|
+
intervalDuration: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
3485
|
+
duration: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
3486
|
+
isActive: z.boolean(),
|
|
3487
|
+
sortIndex: z.nullable(z.string().max(255)),
|
|
3488
|
+
updatedAt: z.nullable(z.any()),
|
|
3489
|
+
updatedBy: z.nullable(z.string()),
|
|
3490
|
+
createdAt: z.nullable(z.any()),
|
|
3491
|
+
createdBy: z.nullable(z.string()),
|
|
3492
|
+
scheduleTimeSlots: z.array(
|
|
3493
|
+
z.object({
|
|
3494
|
+
id: z.string(),
|
|
3495
|
+
scheduleId: z.string(),
|
|
3496
|
+
timeSlotId: z.string(),
|
|
3497
|
+
get dayOfWeek() {
|
|
3498
|
+
return dayOfWeekSchema;
|
|
3499
|
+
},
|
|
3500
|
+
sortIndex: z.nullable(z.string().max(255)),
|
|
3501
|
+
timeSlot: z.nullable(
|
|
3502
|
+
z.object({
|
|
3503
|
+
id: z.string(),
|
|
3504
|
+
startTime: z.string(),
|
|
3505
|
+
endTime: z.nullable(z.string()),
|
|
3506
|
+
get channel() {
|
|
3507
|
+
return bookingChannelSchema;
|
|
3508
|
+
},
|
|
3509
|
+
isActive: z.nullable(z.boolean()),
|
|
3510
|
+
isSchedulable: z.nullable(z.boolean()),
|
|
3511
|
+
maxBookings: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
3512
|
+
maxGuests: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
3513
|
+
overflowBookings: z.nullable(
|
|
3514
|
+
z.int().min(-2147483648).max(2147483647)
|
|
3515
|
+
),
|
|
3516
|
+
overflowGuests: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
3517
|
+
sortIndex: z.nullable(z.string().max(255)),
|
|
3518
|
+
updatedAt: z.nullable(z.any()),
|
|
3519
|
+
updatedBy: z.nullable(z.string()),
|
|
3520
|
+
createdAt: z.nullable(z.any()),
|
|
3521
|
+
createdBy: z.nullable(z.string())
|
|
3522
|
+
})
|
|
3523
|
+
)
|
|
3524
|
+
})
|
|
3525
|
+
),
|
|
3526
|
+
get scheduleOverrides() {
|
|
3527
|
+
return z.array(scheduleOverrideSchema);
|
|
3528
|
+
},
|
|
3529
|
+
scheduleSlotPolicies: z.array(
|
|
3530
|
+
z.object({
|
|
3531
|
+
id: z.string(),
|
|
3532
|
+
scheduleId: z.string(),
|
|
3533
|
+
get channel() {
|
|
3534
|
+
return bookingChannelSchema;
|
|
3535
|
+
},
|
|
3536
|
+
get slotMode() {
|
|
3537
|
+
return slotModeSchema;
|
|
3538
|
+
},
|
|
3539
|
+
intervalDuration: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
3540
|
+
duration: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
3541
|
+
bookingOpensAtDays: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
3542
|
+
bookingClosesAtOffset: z.nullable(
|
|
3543
|
+
z.int().min(-2147483648).max(2147483647)
|
|
3544
|
+
),
|
|
3545
|
+
updatedAt: z.nullable(z.any()),
|
|
3546
|
+
updatedBy: z.nullable(z.string()),
|
|
3547
|
+
createdAt: z.nullable(z.any()),
|
|
3548
|
+
createdBy: z.nullable(z.string())
|
|
3549
|
+
})
|
|
3550
|
+
)
|
|
3551
|
+
});
|
|
3552
|
+
|
|
3466
3553
|
const fetchRitualResponseSchema = z.object({
|
|
3467
3554
|
id: z.string(),
|
|
3468
3555
|
venueId: z.string(),
|
|
@@ -3616,152 +3703,9 @@ const fetchRitualResponseSchema = z.object({
|
|
|
3616
3703
|
covers: z.number()
|
|
3617
3704
|
})
|
|
3618
3705
|
),
|
|
3619
|
-
schedule
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
name: z.union([
|
|
3623
|
-
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3624
|
-
z.array(z.any()),
|
|
3625
|
-
z.object({}).catchall(z.any())
|
|
3626
|
-
]),
|
|
3627
|
-
description: z.nullable(
|
|
3628
|
-
z.union([
|
|
3629
|
-
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3630
|
-
z.array(z.any()),
|
|
3631
|
-
z.object({}).catchall(z.any())
|
|
3632
|
-
])
|
|
3633
|
-
),
|
|
3634
|
-
timezone: z.string(),
|
|
3635
|
-
rrule: z.nullable(z.string()),
|
|
3636
|
-
exdates: z.nullable(z.array(z.string())),
|
|
3637
|
-
validFrom: z.nullable(z.string()),
|
|
3638
|
-
validTo: z.nullable(z.string()),
|
|
3639
|
-
get slotMode() {
|
|
3640
|
-
return slotModeSchema;
|
|
3641
|
-
},
|
|
3642
|
-
intervalDuration: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
3643
|
-
duration: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
3644
|
-
isActive: z.boolean(),
|
|
3645
|
-
sortIndex: z.nullable(z.string().max(255)),
|
|
3646
|
-
updatedAt: z.nullable(z.any()),
|
|
3647
|
-
updatedBy: z.nullable(z.string()),
|
|
3648
|
-
createdAt: z.nullable(z.any()),
|
|
3649
|
-
createdBy: z.nullable(z.string()),
|
|
3650
|
-
scheduleTimeSlots: z.array(
|
|
3651
|
-
z.object({
|
|
3652
|
-
id: z.string(),
|
|
3653
|
-
scheduleId: z.string(),
|
|
3654
|
-
timeSlotId: z.string(),
|
|
3655
|
-
get dayOfWeek() {
|
|
3656
|
-
return dayOfWeekSchema;
|
|
3657
|
-
},
|
|
3658
|
-
sortIndex: z.nullable(z.string().max(255)),
|
|
3659
|
-
timeSlot: z.nullable(
|
|
3660
|
-
z.object({
|
|
3661
|
-
id: z.string(),
|
|
3662
|
-
startTime: z.string(),
|
|
3663
|
-
endTime: z.nullable(z.string()),
|
|
3664
|
-
get channel() {
|
|
3665
|
-
return bookingChannelSchema;
|
|
3666
|
-
},
|
|
3667
|
-
isActive: z.nullable(z.boolean()),
|
|
3668
|
-
isSchedulable: z.nullable(z.boolean()),
|
|
3669
|
-
maxBookings: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
3670
|
-
maxGuests: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
3671
|
-
overflowBookings: z.nullable(
|
|
3672
|
-
z.int().min(-2147483648).max(2147483647)
|
|
3673
|
-
),
|
|
3674
|
-
overflowGuests: z.nullable(
|
|
3675
|
-
z.int().min(-2147483648).max(2147483647)
|
|
3676
|
-
),
|
|
3677
|
-
sortIndex: z.nullable(z.string().max(255)),
|
|
3678
|
-
updatedAt: z.nullable(z.any()),
|
|
3679
|
-
updatedBy: z.nullable(z.string()),
|
|
3680
|
-
createdAt: z.nullable(z.any()),
|
|
3681
|
-
createdBy: z.nullable(z.string())
|
|
3682
|
-
})
|
|
3683
|
-
)
|
|
3684
|
-
})
|
|
3685
|
-
),
|
|
3686
|
-
scheduleOverrides: z.array(
|
|
3687
|
-
z.object({
|
|
3688
|
-
id: z.string(),
|
|
3689
|
-
scheduleId: z.string(),
|
|
3690
|
-
date: z.string(),
|
|
3691
|
-
reason: z.nullable(
|
|
3692
|
-
z.union([
|
|
3693
|
-
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3694
|
-
z.array(z.any()),
|
|
3695
|
-
z.object({}).catchall(z.any())
|
|
3696
|
-
])
|
|
3697
|
-
),
|
|
3698
|
-
isActive: z.boolean(),
|
|
3699
|
-
updatedAt: z.nullable(z.any()),
|
|
3700
|
-
updatedBy: z.nullable(z.string()),
|
|
3701
|
-
createdAt: z.nullable(z.any()),
|
|
3702
|
-
createdBy: z.nullable(z.string()),
|
|
3703
|
-
scheduleOverrideTimeSlots: z.array(
|
|
3704
|
-
z.object({
|
|
3705
|
-
overrideId: z.string(),
|
|
3706
|
-
timeSlotId: z.string(),
|
|
3707
|
-
sortIndex: z.nullable(z.string().max(255)),
|
|
3708
|
-
timeSlot: z.object({
|
|
3709
|
-
id: z.string(),
|
|
3710
|
-
startTime: z.string(),
|
|
3711
|
-
endTime: z.nullable(z.string()),
|
|
3712
|
-
get channel() {
|
|
3713
|
-
return bookingChannelSchema;
|
|
3714
|
-
},
|
|
3715
|
-
isActive: z.nullable(z.boolean()),
|
|
3716
|
-
isSchedulable: z.nullable(z.boolean()),
|
|
3717
|
-
maxBookings: z.nullable(
|
|
3718
|
-
z.int().min(-2147483648).max(2147483647)
|
|
3719
|
-
),
|
|
3720
|
-
maxGuests: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
3721
|
-
overflowBookings: z.nullable(
|
|
3722
|
-
z.int().min(-2147483648).max(2147483647)
|
|
3723
|
-
),
|
|
3724
|
-
overflowGuests: z.nullable(
|
|
3725
|
-
z.int().min(-2147483648).max(2147483647)
|
|
3726
|
-
),
|
|
3727
|
-
sortIndex: z.nullable(z.string().max(255)),
|
|
3728
|
-
updatedAt: z.nullable(z.any()),
|
|
3729
|
-
updatedBy: z.nullable(z.string()),
|
|
3730
|
-
createdAt: z.nullable(z.any()),
|
|
3731
|
-
createdBy: z.nullable(z.string())
|
|
3732
|
-
})
|
|
3733
|
-
})
|
|
3734
|
-
)
|
|
3735
|
-
})
|
|
3736
|
-
),
|
|
3737
|
-
scheduleSlotPolicies: z.array(
|
|
3738
|
-
z.object({
|
|
3739
|
-
id: z.string(),
|
|
3740
|
-
scheduleId: z.string(),
|
|
3741
|
-
get channel() {
|
|
3742
|
-
return bookingChannelSchema;
|
|
3743
|
-
},
|
|
3744
|
-
get slotMode() {
|
|
3745
|
-
return slotModeSchema;
|
|
3746
|
-
},
|
|
3747
|
-
intervalDuration: z.nullable(
|
|
3748
|
-
z.int().min(-2147483648).max(2147483647)
|
|
3749
|
-
),
|
|
3750
|
-
duration: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
3751
|
-
bookingOpensAtDays: z.nullable(
|
|
3752
|
-
z.int().min(-2147483648).max(2147483647)
|
|
3753
|
-
),
|
|
3754
|
-
bookingClosesAtOffset: z.nullable(
|
|
3755
|
-
z.int().min(-2147483648).max(2147483647)
|
|
3756
|
-
),
|
|
3757
|
-
updatedAt: z.nullable(z.any()),
|
|
3758
|
-
updatedBy: z.nullable(z.string()),
|
|
3759
|
-
createdAt: z.nullable(z.any()),
|
|
3760
|
-
createdBy: z.nullable(z.string())
|
|
3761
|
-
})
|
|
3762
|
-
)
|
|
3763
|
-
})
|
|
3764
|
-
)
|
|
3706
|
+
get schedule() {
|
|
3707
|
+
return hydratedScheduleSchema.nullable();
|
|
3708
|
+
}
|
|
3765
3709
|
});
|
|
3766
3710
|
|
|
3767
3711
|
const occupancyReasonSchema = z.enum([
|
|
@@ -3816,6 +3760,7 @@ const fetchTeamOrderResponseSchema = z.object({
|
|
|
3816
3760
|
diningLocation: z.nullable(z.string()),
|
|
3817
3761
|
diningTime: z.nullable(z.string()),
|
|
3818
3762
|
isDeliveryEnabled: z.boolean(),
|
|
3763
|
+
isVenueAcceptingOrders: z.boolean(),
|
|
3819
3764
|
quickReferenceNumber: z.nullable(
|
|
3820
3765
|
z.int().min(-9007199254740991).max(9007199254740991)
|
|
3821
3766
|
)
|
|
@@ -3909,6 +3854,8 @@ const fontRoleSchema = z.enum(["system", "accent"]);
|
|
|
3909
3854
|
|
|
3910
3855
|
const fontStyleSchema = z.enum(["normal", "italic"]);
|
|
3911
3856
|
|
|
3857
|
+
const formOfAddressSchema = z.enum(["formal", "informal"]);
|
|
3858
|
+
|
|
3912
3859
|
const gbpMediaCategorySchema = z.enum([
|
|
3913
3860
|
"cover",
|
|
3914
3861
|
"logo",
|
|
@@ -4596,6 +4543,10 @@ const metaIntegrationStatusSchema = z.enum([
|
|
|
4596
4543
|
|
|
4597
4544
|
const metaServingTargetStatusSchema = z.enum(["ACTIVE", "PAUSED"]);
|
|
4598
4545
|
|
|
4546
|
+
const moduleScopeSchema = z.enum(["account", "tenant"]);
|
|
4547
|
+
|
|
4548
|
+
const onboardingCardSchema = z.enum(["own_domain"]);
|
|
4549
|
+
|
|
4599
4550
|
const orientationSchema = z.enum(["vertical", "horizontal"]);
|
|
4600
4551
|
|
|
4601
4552
|
const partyGenderSchema = z.enum(["male", "female", "neutral"]);
|
|
@@ -4995,6 +4946,13 @@ const scanTokenEntityTypeSchema = z.enum(["order", "depositware"]);
|
|
|
4995
4946
|
|
|
4996
4947
|
const scheduleOverrideModeSchema = z.enum(["closed", "deviating"]);
|
|
4997
4948
|
|
|
4949
|
+
const senderNameSourceSchema = z.enum([
|
|
4950
|
+
"official",
|
|
4951
|
+
"legal",
|
|
4952
|
+
"brand",
|
|
4953
|
+
"short"
|
|
4954
|
+
]);
|
|
4955
|
+
|
|
4998
4956
|
const servedMarketAreaTypeSchema = z.enum([
|
|
4999
4957
|
"pin",
|
|
5000
4958
|
"postcode",
|
|
@@ -5411,6 +5369,8 @@ const setOrderLeadSettledResponseSchema = z.object({
|
|
|
5411
5369
|
leadSettledAt: z.nullable(z.string())
|
|
5412
5370
|
});
|
|
5413
5371
|
|
|
5372
|
+
const signatureStyleSchema = z.enum(["name", "team", "team_of"]);
|
|
5373
|
+
|
|
5414
5374
|
const sortOrderSchema = z.enum(["asc", "desc"]);
|
|
5415
5375
|
|
|
5416
5376
|
const submitAreaBookingPayloadSchema = z.object({
|
|
@@ -5653,7 +5613,12 @@ const venueAssetTypeSchema = z.enum([
|
|
|
5653
5613
|
"icon"
|
|
5654
5614
|
]);
|
|
5655
5615
|
|
|
5656
|
-
const
|
|
5616
|
+
const venueDomainAddressPurposeSchema = z.enum([
|
|
5617
|
+
"reservations",
|
|
5618
|
+
"contact"
|
|
5619
|
+
]);
|
|
5620
|
+
|
|
5621
|
+
const venueDomainStatusSchema = z.enum([
|
|
5657
5622
|
"pending",
|
|
5658
5623
|
"verified",
|
|
5659
5624
|
"failed",
|
|
@@ -5675,7 +5640,9 @@ const wizardKeySchema = z.enum([
|
|
|
5675
5640
|
"ads-dish-explainer-v1",
|
|
5676
5641
|
"ads-beverage-explainer-v1",
|
|
5677
5642
|
"settings-bank-accounts-v1",
|
|
5678
|
-
"settings-brand-icons-v1"
|
|
5643
|
+
"settings-brand-icons-v1",
|
|
5644
|
+
"settings-own-domains-v1",
|
|
5645
|
+
"settings-own-email-addresses-v1"
|
|
5679
5646
|
]);
|
|
5680
5647
|
|
|
5681
5648
|
const schemas = {
|
|
@@ -5714,7 +5681,6 @@ const schemas = {
|
|
|
5714
5681
|
BasketTotals: basketTotalsSchema,
|
|
5715
5682
|
BeverageCategory: beverageCategorySchema,
|
|
5716
5683
|
BillingInterval: billingIntervalSchema,
|
|
5717
|
-
BillingMode: billingModeSchema,
|
|
5718
5684
|
BookingChannel: bookingChannelSchema,
|
|
5719
5685
|
BookletSectionInput: bookletSectionInputSchema,
|
|
5720
5686
|
CampaignControlReason: campaignControlReasonSchema,
|
|
@@ -5723,7 +5689,6 @@ const schemas = {
|
|
|
5723
5689
|
CancelTeamOrderRequest: cancelTeamOrderRequestSchema,
|
|
5724
5690
|
CancelTeamOrderResponse: cancelTeamOrderResponseSchema,
|
|
5725
5691
|
CancellationReason: cancellationReasonSchema,
|
|
5726
|
-
ChargeType: chargeTypeSchema,
|
|
5727
5692
|
ChatChannelType: chatChannelTypeSchema,
|
|
5728
5693
|
ChatMemberRole: chatMemberRoleSchema,
|
|
5729
5694
|
ComposeMenuPublicationBookletRequest: composeMenuPublicationBookletRequestSchema,
|
|
@@ -5823,6 +5788,7 @@ const schemas = {
|
|
|
5823
5788
|
FetchTeamOrderResponse: fetchTeamOrderResponseSchema,
|
|
5824
5789
|
FontRole: fontRoleSchema,
|
|
5825
5790
|
FontStyle: fontStyleSchema,
|
|
5791
|
+
FormOfAddress: formOfAddressSchema,
|
|
5826
5792
|
FulfillmentType: fulfillmentTypeSchema,
|
|
5827
5793
|
GbpMediaCategory: gbpMediaCategorySchema,
|
|
5828
5794
|
GbpSyncStatus: gbpSyncStatusSchema,
|
|
@@ -5837,6 +5803,7 @@ const schemas = {
|
|
|
5837
5803
|
GetWebsitePagesResponse: getWebsitePagesResponseSchema,
|
|
5838
5804
|
GoogleAdsAssetFamily: googleAdsAssetFamilySchema,
|
|
5839
5805
|
GuestTier: guestTierSchema,
|
|
5806
|
+
HydratedSchedule: hydratedScheduleSchema,
|
|
5840
5807
|
IntegrationNotificationType: integrationNotificationTypeSchema,
|
|
5841
5808
|
IntegrationType: integrationTypeSchema,
|
|
5842
5809
|
InventoryAssetStatus: inventoryAssetStatusSchema,
|
|
@@ -5870,8 +5837,10 @@ const schemas = {
|
|
|
5870
5837
|
MetaInsightsDatePreset: metaInsightsDatePresetSchema,
|
|
5871
5838
|
MetaIntegrationStatus: metaIntegrationStatusSchema,
|
|
5872
5839
|
MetaServingTargetStatus: metaServingTargetStatusSchema,
|
|
5840
|
+
ModuleScope: moduleScopeSchema,
|
|
5873
5841
|
OccupancyReason: occupancyReasonSchema,
|
|
5874
5842
|
OgImage: ogImageSchema,
|
|
5843
|
+
OnboardingCard: onboardingCardSchema,
|
|
5875
5844
|
OrderStatus: orderStatusSchema,
|
|
5876
5845
|
Orientation: orientationSchema,
|
|
5877
5846
|
ParticipantStatus: participantStatusSchema,
|
|
@@ -5932,7 +5901,9 @@ const schemas = {
|
|
|
5932
5901
|
SaveAdWebsitePagesResponse: saveAdWebsitePagesResponseSchema,
|
|
5933
5902
|
ScanTokenEntityType: scanTokenEntityTypeSchema,
|
|
5934
5903
|
ScheduleOverrideMode: scheduleOverrideModeSchema,
|
|
5904
|
+
ScheduleOverride: scheduleOverrideSchema,
|
|
5935
5905
|
Schedule: scheduleSchema,
|
|
5906
|
+
SenderNameSource: senderNameSourceSchema,
|
|
5936
5907
|
ServedMarketAreaType: servedMarketAreaTypeSchema,
|
|
5937
5908
|
ServedMarketScope: servedMarketScopeSchema,
|
|
5938
5909
|
SetAdBudgetRequest: setAdBudgetRequestSchema,
|
|
@@ -5950,6 +5921,7 @@ const schemas = {
|
|
|
5950
5921
|
SetMenuPublicationBlocksResponse: setMenuPublicationBlocksResponseSchema,
|
|
5951
5922
|
SetOrderLeadSettledRequest: setOrderLeadSettledRequestSchema,
|
|
5952
5923
|
SetOrderLeadSettledResponse: setOrderLeadSettledResponseSchema,
|
|
5924
|
+
SignatureStyle: signatureStyleSchema,
|
|
5953
5925
|
SlotMode: slotModeSchema,
|
|
5954
5926
|
SortOrder: sortOrderSchema,
|
|
5955
5927
|
SubmitAreaBookingPayload: submitAreaBookingPayloadSchema,
|
|
@@ -5976,7 +5948,8 @@ const schemas = {
|
|
|
5976
5948
|
UploadAssetResponse: uploadAssetResponseSchema,
|
|
5977
5949
|
Variant: variantSchema,
|
|
5978
5950
|
VenueAssetType: venueAssetTypeSchema,
|
|
5979
|
-
|
|
5951
|
+
VenueDomainAddressPurpose: venueDomainAddressPurposeSchema,
|
|
5952
|
+
VenueDomainStatus: venueDomainStatusSchema,
|
|
5980
5953
|
VenueType: venueTypeSchema,
|
|
5981
5954
|
VenueUserStatus: venueUserStatusSchema,
|
|
5982
5955
|
WebsitePageOwnerType: websitePageOwnerTypeSchema,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "order3000",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.4",
|
|
4
4
|
"description": "order3000 node.js sdk",
|
|
5
5
|
"main": "./dist/client.cjs",
|
|
6
6
|
"module": "./dist/client.mjs",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@supabase/supabase-js": "^2.49.8",
|
|
53
53
|
"react-type-animation": "^3.2.0",
|
|
54
54
|
"zod": "^4.2.1",
|
|
55
|
-
"@kolaveri/money": "1.4.
|
|
55
|
+
"@kolaveri/money": "1.4.1"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@kubb/cli": "4.37.5",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"prettier": "^3.7.4",
|
|
68
68
|
"tsx": "^4.19.2",
|
|
69
69
|
"typescript": "^5.9.3",
|
|
70
|
-
"@kolaveri/eslint-config": "1.
|
|
70
|
+
"@kolaveri/eslint-config": "1.25.0",
|
|
71
71
|
"@kolaveri/prettier-config": "1.0.6",
|
|
72
72
|
"@kolaveri/tsconfig": "1.0.1"
|
|
73
73
|
},
|
|
@@ -77,9 +77,10 @@
|
|
|
77
77
|
"prettier": "@kolaveri/prettier-config",
|
|
78
78
|
"scripts": {
|
|
79
79
|
"dev": "scripts/dev.sh tsx src/dev.ts",
|
|
80
|
-
"build:types": "openapi-typescript
|
|
80
|
+
"build:types": "openapi-typescript ../../../apps/order3000/order3000/public/openapi.json -o src/types/generated.d.ts",
|
|
81
81
|
"build:zod": "kubb generate && tsx scripts/build-schemas-namespace.ts",
|
|
82
|
-
"
|
|
82
|
+
"generate": "npm run build:types && npm run build:zod",
|
|
83
|
+
"build": "pkgroll",
|
|
83
84
|
"lint": "eslint src/types/index.ts src/schemas.ts src/schemas/index.ts"
|
|
84
85
|
}
|
|
85
86
|
}
|