order3000 2.2.2 → 2.2.3
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 +6 -6
- package/dist/client.d.cts +3 -3
- package/dist/client.d.mts +3 -3
- package/dist/{index-B7V1wOj_.d.cts → index-DvTqOMWP.d.cts} +108 -132
- package/dist/{index-B7V1wOj_.d.mts → index-DvTqOMWP.d.mts} +108 -132
- package/dist/menu.d.cts +1 -1
- package/dist/menu.d.mts +1 -1
- package/dist/schemas.cjs +162 -198
- package/dist/schemas.d.cts +166 -0
- package/dist/schemas.d.mts +166 -0
- package/dist/schemas.mjs +162 -198
- package/package.json +4 -4
package/dist/schemas.d.mts
CHANGED
|
@@ -2329,6 +2329,8 @@ declare const schemas: {
|
|
|
2329
2329
|
}>;
|
|
2330
2330
|
readonly FeatureGate: zod.ZodEnum<{
|
|
2331
2331
|
"vanity-email": "vanity-email";
|
|
2332
|
+
"vanity-mailbox": "vanity-mailbox";
|
|
2333
|
+
"vanity-url": "vanity-url";
|
|
2332
2334
|
}>;
|
|
2333
2335
|
readonly FeatureImage: zod.ZodObject<{
|
|
2334
2336
|
id: zod.ZodString;
|
|
@@ -3889,6 +3891,10 @@ declare const schemas: {
|
|
|
3889
3891
|
normal: "normal";
|
|
3890
3892
|
italic: "italic";
|
|
3891
3893
|
}>;
|
|
3894
|
+
readonly FormOfAddress: zod.ZodEnum<{
|
|
3895
|
+
formal: "formal";
|
|
3896
|
+
informal: "informal";
|
|
3897
|
+
}>;
|
|
3892
3898
|
readonly FulfillmentType: zod.ZodEnum<{
|
|
3893
3899
|
pickup: "pickup";
|
|
3894
3900
|
delivery: "delivery";
|
|
@@ -4074,6 +4080,119 @@ declare const schemas: {
|
|
|
4074
4080
|
newGuest: "newGuest";
|
|
4075
4081
|
regular: "regular";
|
|
4076
4082
|
}>;
|
|
4083
|
+
readonly HydratedSchedule: zod.ZodObject<{
|
|
4084
|
+
id: zod.ZodString;
|
|
4085
|
+
name: zod.ZodUnion<readonly [zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodString, zod.ZodNumber, zod.ZodEnum<{}>]>, zod.ZodArray<zod.ZodAny>, zod.ZodObject<{}, zod_v4_core.$catchall<zod.ZodAny>>]>;
|
|
4086
|
+
description: zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodString, zod.ZodNumber, zod.ZodEnum<{}>]>, zod.ZodArray<zod.ZodAny>, zod.ZodObject<{}, zod_v4_core.$catchall<zod.ZodAny>>]>>;
|
|
4087
|
+
timezone: zod.ZodString;
|
|
4088
|
+
rrule: zod.ZodNullable<zod.ZodString>;
|
|
4089
|
+
exdates: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
|
|
4090
|
+
validFrom: zod.ZodNullable<zod.ZodString>;
|
|
4091
|
+
validTo: zod.ZodNullable<zod.ZodString>;
|
|
4092
|
+
slotMode: zod.ZodEnum<{
|
|
4093
|
+
duration: "duration";
|
|
4094
|
+
interval: "interval";
|
|
4095
|
+
}>;
|
|
4096
|
+
intervalDuration: zod.ZodNullable<zod.ZodInt>;
|
|
4097
|
+
duration: zod.ZodNullable<zod.ZodInt>;
|
|
4098
|
+
isActive: zod.ZodBoolean;
|
|
4099
|
+
sortIndex: zod.ZodNullable<zod.ZodString>;
|
|
4100
|
+
updatedAt: zod.ZodNullable<zod.ZodAny>;
|
|
4101
|
+
updatedBy: zod.ZodNullable<zod.ZodString>;
|
|
4102
|
+
createdAt: zod.ZodNullable<zod.ZodAny>;
|
|
4103
|
+
createdBy: zod.ZodNullable<zod.ZodString>;
|
|
4104
|
+
scheduleTimeSlots: zod.ZodArray<zod.ZodObject<{
|
|
4105
|
+
id: zod.ZodString;
|
|
4106
|
+
scheduleId: zod.ZodString;
|
|
4107
|
+
timeSlotId: zod.ZodString;
|
|
4108
|
+
dayOfWeek: zod.ZodEnum<{
|
|
4109
|
+
monday: "monday";
|
|
4110
|
+
tuesday: "tuesday";
|
|
4111
|
+
wednesday: "wednesday";
|
|
4112
|
+
thursday: "thursday";
|
|
4113
|
+
friday: "friday";
|
|
4114
|
+
saturday: "saturday";
|
|
4115
|
+
sunday: "sunday";
|
|
4116
|
+
}>;
|
|
4117
|
+
sortIndex: zod.ZodNullable<zod.ZodString>;
|
|
4118
|
+
timeSlot: zod.ZodNullable<zod.ZodObject<{
|
|
4119
|
+
id: zod.ZodString;
|
|
4120
|
+
startTime: zod.ZodString;
|
|
4121
|
+
endTime: zod.ZodNullable<zod.ZodString>;
|
|
4122
|
+
channel: zod.ZodEnum<{
|
|
4123
|
+
reservation: "reservation";
|
|
4124
|
+
order: "order";
|
|
4125
|
+
}>;
|
|
4126
|
+
isActive: zod.ZodNullable<zod.ZodBoolean>;
|
|
4127
|
+
isSchedulable: zod.ZodNullable<zod.ZodBoolean>;
|
|
4128
|
+
maxBookings: zod.ZodNullable<zod.ZodInt>;
|
|
4129
|
+
maxGuests: zod.ZodNullable<zod.ZodInt>;
|
|
4130
|
+
overflowBookings: zod.ZodNullable<zod.ZodInt>;
|
|
4131
|
+
overflowGuests: zod.ZodNullable<zod.ZodInt>;
|
|
4132
|
+
sortIndex: zod.ZodNullable<zod.ZodString>;
|
|
4133
|
+
updatedAt: zod.ZodNullable<zod.ZodAny>;
|
|
4134
|
+
updatedBy: zod.ZodNullable<zod.ZodString>;
|
|
4135
|
+
createdAt: zod.ZodNullable<zod.ZodAny>;
|
|
4136
|
+
createdBy: zod.ZodNullable<zod.ZodString>;
|
|
4137
|
+
}, zod_v4_core.$strip>>;
|
|
4138
|
+
}, zod_v4_core.$strip>>;
|
|
4139
|
+
scheduleOverrides: zod.ZodArray<zod.ZodObject<{
|
|
4140
|
+
id: zod.ZodString;
|
|
4141
|
+
scheduleId: zod.ZodString;
|
|
4142
|
+
date: zod.ZodString;
|
|
4143
|
+
reason: zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodString, zod.ZodNumber, zod.ZodEnum<{}>]>, zod.ZodArray<zod.ZodAny>, zod.ZodObject<{}, zod_v4_core.$catchall<zod.ZodAny>>]>>;
|
|
4144
|
+
isActive: zod.ZodBoolean;
|
|
4145
|
+
updatedAt: zod.ZodNullable<zod.ZodAny>;
|
|
4146
|
+
updatedBy: zod.ZodNullable<zod.ZodString>;
|
|
4147
|
+
createdAt: zod.ZodNullable<zod.ZodAny>;
|
|
4148
|
+
createdBy: zod.ZodNullable<zod.ZodString>;
|
|
4149
|
+
scheduleOverrideTimeSlots: zod.ZodArray<zod.ZodObject<{
|
|
4150
|
+
overrideId: zod.ZodString;
|
|
4151
|
+
timeSlotId: zod.ZodString;
|
|
4152
|
+
sortIndex: zod.ZodNullable<zod.ZodString>;
|
|
4153
|
+
timeSlot: zod.ZodObject<{
|
|
4154
|
+
id: zod.ZodString;
|
|
4155
|
+
startTime: zod.ZodString;
|
|
4156
|
+
endTime: zod.ZodNullable<zod.ZodString>;
|
|
4157
|
+
channel: zod.ZodEnum<{
|
|
4158
|
+
reservation: "reservation";
|
|
4159
|
+
order: "order";
|
|
4160
|
+
}>;
|
|
4161
|
+
isActive: zod.ZodNullable<zod.ZodBoolean>;
|
|
4162
|
+
isSchedulable: zod.ZodNullable<zod.ZodBoolean>;
|
|
4163
|
+
maxBookings: zod.ZodNullable<zod.ZodInt>;
|
|
4164
|
+
maxGuests: zod.ZodNullable<zod.ZodInt>;
|
|
4165
|
+
overflowBookings: zod.ZodNullable<zod.ZodInt>;
|
|
4166
|
+
overflowGuests: zod.ZodNullable<zod.ZodInt>;
|
|
4167
|
+
sortIndex: zod.ZodNullable<zod.ZodString>;
|
|
4168
|
+
updatedAt: zod.ZodNullable<zod.ZodAny>;
|
|
4169
|
+
updatedBy: zod.ZodNullable<zod.ZodString>;
|
|
4170
|
+
createdAt: zod.ZodNullable<zod.ZodAny>;
|
|
4171
|
+
createdBy: zod.ZodNullable<zod.ZodString>;
|
|
4172
|
+
}, zod_v4_core.$strip>;
|
|
4173
|
+
}, zod_v4_core.$strip>>;
|
|
4174
|
+
}, zod_v4_core.$strip>>;
|
|
4175
|
+
scheduleSlotPolicies: zod.ZodArray<zod.ZodObject<{
|
|
4176
|
+
id: zod.ZodString;
|
|
4177
|
+
scheduleId: zod.ZodString;
|
|
4178
|
+
channel: zod.ZodEnum<{
|
|
4179
|
+
reservation: "reservation";
|
|
4180
|
+
order: "order";
|
|
4181
|
+
}>;
|
|
4182
|
+
slotMode: zod.ZodEnum<{
|
|
4183
|
+
duration: "duration";
|
|
4184
|
+
interval: "interval";
|
|
4185
|
+
}>;
|
|
4186
|
+
intervalDuration: zod.ZodNullable<zod.ZodInt>;
|
|
4187
|
+
duration: zod.ZodNullable<zod.ZodInt>;
|
|
4188
|
+
bookingOpensAtDays: zod.ZodNullable<zod.ZodInt>;
|
|
4189
|
+
bookingClosesAtOffset: zod.ZodNullable<zod.ZodInt>;
|
|
4190
|
+
updatedAt: zod.ZodNullable<zod.ZodAny>;
|
|
4191
|
+
updatedBy: zod.ZodNullable<zod.ZodString>;
|
|
4192
|
+
createdAt: zod.ZodNullable<zod.ZodAny>;
|
|
4193
|
+
createdBy: zod.ZodNullable<zod.ZodString>;
|
|
4194
|
+
}, zod_v4_core.$strip>>;
|
|
4195
|
+
}, zod_v4_core.$strip>;
|
|
4077
4196
|
readonly IntegrationNotificationType: zod.ZodEnum<{
|
|
4078
4197
|
order_created: "order_created";
|
|
4079
4198
|
order_cancelled: "order_cancelled";
|
|
@@ -5024,6 +5143,42 @@ declare const schemas: {
|
|
|
5024
5143
|
closed: "closed";
|
|
5025
5144
|
deviating: "deviating";
|
|
5026
5145
|
}>;
|
|
5146
|
+
readonly ScheduleOverride: zod.ZodObject<{
|
|
5147
|
+
id: zod.ZodString;
|
|
5148
|
+
scheduleId: zod.ZodString;
|
|
5149
|
+
date: zod.ZodString;
|
|
5150
|
+
reason: zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodString, zod.ZodNumber, zod.ZodEnum<{}>]>, zod.ZodArray<zod.ZodAny>, zod.ZodObject<{}, zod_v4_core.$catchall<zod.ZodAny>>]>>;
|
|
5151
|
+
isActive: zod.ZodBoolean;
|
|
5152
|
+
updatedAt: zod.ZodNullable<zod.ZodAny>;
|
|
5153
|
+
updatedBy: zod.ZodNullable<zod.ZodString>;
|
|
5154
|
+
createdAt: zod.ZodNullable<zod.ZodAny>;
|
|
5155
|
+
createdBy: zod.ZodNullable<zod.ZodString>;
|
|
5156
|
+
scheduleOverrideTimeSlots: zod.ZodArray<zod.ZodObject<{
|
|
5157
|
+
overrideId: zod.ZodString;
|
|
5158
|
+
timeSlotId: zod.ZodString;
|
|
5159
|
+
sortIndex: zod.ZodNullable<zod.ZodString>;
|
|
5160
|
+
timeSlot: zod.ZodObject<{
|
|
5161
|
+
id: zod.ZodString;
|
|
5162
|
+
startTime: zod.ZodString;
|
|
5163
|
+
endTime: zod.ZodNullable<zod.ZodString>;
|
|
5164
|
+
channel: zod.ZodEnum<{
|
|
5165
|
+
reservation: "reservation";
|
|
5166
|
+
order: "order";
|
|
5167
|
+
}>;
|
|
5168
|
+
isActive: zod.ZodNullable<zod.ZodBoolean>;
|
|
5169
|
+
isSchedulable: zod.ZodNullable<zod.ZodBoolean>;
|
|
5170
|
+
maxBookings: zod.ZodNullable<zod.ZodInt>;
|
|
5171
|
+
maxGuests: zod.ZodNullable<zod.ZodInt>;
|
|
5172
|
+
overflowBookings: zod.ZodNullable<zod.ZodInt>;
|
|
5173
|
+
overflowGuests: zod.ZodNullable<zod.ZodInt>;
|
|
5174
|
+
sortIndex: zod.ZodNullable<zod.ZodString>;
|
|
5175
|
+
updatedAt: zod.ZodNullable<zod.ZodAny>;
|
|
5176
|
+
updatedBy: zod.ZodNullable<zod.ZodString>;
|
|
5177
|
+
createdAt: zod.ZodNullable<zod.ZodAny>;
|
|
5178
|
+
createdBy: zod.ZodNullable<zod.ZodString>;
|
|
5179
|
+
}, zod_v4_core.$strip>;
|
|
5180
|
+
}, zod_v4_core.$strip>>;
|
|
5181
|
+
}, zod_v4_core.$strip>;
|
|
5027
5182
|
readonly Schedule: zod.ZodObject<{
|
|
5028
5183
|
id: zod.ZodString;
|
|
5029
5184
|
name: zod.ZodUnion<readonly [zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodString, zod.ZodNumber, zod.ZodEnum<{}>]>, zod.ZodArray<zod.ZodAny>, zod.ZodObject<{}, zod_v4_core.$catchall<zod.ZodAny>>]>;
|
|
@@ -5137,6 +5292,12 @@ declare const schemas: {
|
|
|
5137
5292
|
createdBy: zod.ZodNullable<zod.ZodString>;
|
|
5138
5293
|
}, zod_v4_core.$strip>>>;
|
|
5139
5294
|
}, zod_v4_core.$strip>;
|
|
5295
|
+
readonly SenderNameSource: zod.ZodEnum<{
|
|
5296
|
+
legal: "legal";
|
|
5297
|
+
official: "official";
|
|
5298
|
+
brand: "brand";
|
|
5299
|
+
short: "short";
|
|
5300
|
+
}>;
|
|
5140
5301
|
readonly ServedMarketAreaType: zod.ZodEnum<{
|
|
5141
5302
|
city: "city";
|
|
5142
5303
|
region: "region";
|
|
@@ -5498,6 +5659,11 @@ declare const schemas: {
|
|
|
5498
5659
|
orderId: zod.ZodUUID;
|
|
5499
5660
|
leadSettledAt: zod.ZodNullable<zod.ZodString>;
|
|
5500
5661
|
}, zod_v4_core.$strip>;
|
|
5662
|
+
readonly SignatureStyle: zod.ZodEnum<{
|
|
5663
|
+
name: "name";
|
|
5664
|
+
team: "team";
|
|
5665
|
+
team_of: "team_of";
|
|
5666
|
+
}>;
|
|
5501
5667
|
readonly SlotMode: zod.ZodEnum<{
|
|
5502
5668
|
duration: "duration";
|
|
5503
5669
|
interval: "interval";
|
package/dist/schemas.mjs
CHANGED
|
@@ -1728,6 +1728,50 @@ const editEventRequestSchema = z.object({
|
|
|
1728
1728
|
ritualAccessor: z.string().nullish()
|
|
1729
1729
|
}).describe("Partial-update body for an existing event");
|
|
1730
1730
|
|
|
1731
|
+
const scheduleOverrideSchema = z.object({
|
|
1732
|
+
id: z.string(),
|
|
1733
|
+
scheduleId: z.string(),
|
|
1734
|
+
date: z.string(),
|
|
1735
|
+
reason: z.nullable(
|
|
1736
|
+
z.union([
|
|
1737
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1738
|
+
z.array(z.any()),
|
|
1739
|
+
z.object({}).catchall(z.any())
|
|
1740
|
+
])
|
|
1741
|
+
),
|
|
1742
|
+
isActive: z.boolean(),
|
|
1743
|
+
updatedAt: z.nullable(z.any()),
|
|
1744
|
+
updatedBy: z.nullable(z.string()),
|
|
1745
|
+
createdAt: z.nullable(z.any()),
|
|
1746
|
+
createdBy: z.nullable(z.string()),
|
|
1747
|
+
scheduleOverrideTimeSlots: z.array(
|
|
1748
|
+
z.object({
|
|
1749
|
+
overrideId: z.string(),
|
|
1750
|
+
timeSlotId: z.string(),
|
|
1751
|
+
sortIndex: z.nullable(z.string().max(255)),
|
|
1752
|
+
timeSlot: z.object({
|
|
1753
|
+
id: z.string(),
|
|
1754
|
+
startTime: z.string(),
|
|
1755
|
+
endTime: z.nullable(z.string()),
|
|
1756
|
+
get channel() {
|
|
1757
|
+
return bookingChannelSchema;
|
|
1758
|
+
},
|
|
1759
|
+
isActive: z.nullable(z.boolean()),
|
|
1760
|
+
isSchedulable: z.nullable(z.boolean()),
|
|
1761
|
+
maxBookings: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1762
|
+
maxGuests: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1763
|
+
overflowBookings: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1764
|
+
overflowGuests: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1765
|
+
sortIndex: z.nullable(z.string().max(255)),
|
|
1766
|
+
updatedAt: z.nullable(z.any()),
|
|
1767
|
+
updatedBy: z.nullable(z.string()),
|
|
1768
|
+
createdAt: z.nullable(z.any()),
|
|
1769
|
+
createdBy: z.nullable(z.string())
|
|
1770
|
+
})
|
|
1771
|
+
})
|
|
1772
|
+
)
|
|
1773
|
+
});
|
|
1774
|
+
|
|
1731
1775
|
const scheduleSchema = z.object({
|
|
1732
1776
|
id: z.string(),
|
|
1733
1777
|
name: z.union([
|
|
@@ -1796,57 +1840,9 @@ const scheduleSchema = z.object({
|
|
|
1796
1840
|
})
|
|
1797
1841
|
)
|
|
1798
1842
|
),
|
|
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
|
-
),
|
|
1843
|
+
get scheduleOverrides() {
|
|
1844
|
+
return z.array(scheduleOverrideSchema).optional();
|
|
1845
|
+
},
|
|
1850
1846
|
scheduleSlotPolicies: z.optional(
|
|
1851
1847
|
z.array(
|
|
1852
1848
|
z.object({
|
|
@@ -2108,7 +2104,11 @@ const featureCategorySchema = z.enum([
|
|
|
2108
2104
|
"venues"
|
|
2109
2105
|
]);
|
|
2110
2106
|
|
|
2111
|
-
const featureGateSchema = z.enum([
|
|
2107
|
+
const featureGateSchema = z.enum([
|
|
2108
|
+
"vanity-email",
|
|
2109
|
+
"vanity-mailbox",
|
|
2110
|
+
"vanity-url"
|
|
2111
|
+
]);
|
|
2112
2112
|
|
|
2113
2113
|
const featureStatusSchema = z.enum([
|
|
2114
2114
|
"backlog",
|
|
@@ -3463,6 +3463,97 @@ const fetchMenuSubscriptionsResponseSchema = z.array(
|
|
|
3463
3463
|
})
|
|
3464
3464
|
);
|
|
3465
3465
|
|
|
3466
|
+
const hydratedScheduleSchema = z.object({
|
|
3467
|
+
id: z.string(),
|
|
3468
|
+
name: z.union([
|
|
3469
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3470
|
+
z.array(z.any()),
|
|
3471
|
+
z.object({}).catchall(z.any())
|
|
3472
|
+
]),
|
|
3473
|
+
description: z.nullable(
|
|
3474
|
+
z.union([
|
|
3475
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
3476
|
+
z.array(z.any()),
|
|
3477
|
+
z.object({}).catchall(z.any())
|
|
3478
|
+
])
|
|
3479
|
+
),
|
|
3480
|
+
timezone: z.string(),
|
|
3481
|
+
rrule: z.nullable(z.string()),
|
|
3482
|
+
exdates: z.nullable(z.array(z.string())),
|
|
3483
|
+
validFrom: z.nullable(z.string()),
|
|
3484
|
+
validTo: z.nullable(z.string()),
|
|
3485
|
+
get slotMode() {
|
|
3486
|
+
return slotModeSchema;
|
|
3487
|
+
},
|
|
3488
|
+
intervalDuration: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
3489
|
+
duration: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
3490
|
+
isActive: z.boolean(),
|
|
3491
|
+
sortIndex: z.nullable(z.string().max(255)),
|
|
3492
|
+
updatedAt: z.nullable(z.any()),
|
|
3493
|
+
updatedBy: z.nullable(z.string()),
|
|
3494
|
+
createdAt: z.nullable(z.any()),
|
|
3495
|
+
createdBy: z.nullable(z.string()),
|
|
3496
|
+
scheduleTimeSlots: z.array(
|
|
3497
|
+
z.object({
|
|
3498
|
+
id: z.string(),
|
|
3499
|
+
scheduleId: z.string(),
|
|
3500
|
+
timeSlotId: z.string(),
|
|
3501
|
+
get dayOfWeek() {
|
|
3502
|
+
return dayOfWeekSchema;
|
|
3503
|
+
},
|
|
3504
|
+
sortIndex: z.nullable(z.string().max(255)),
|
|
3505
|
+
timeSlot: z.nullable(
|
|
3506
|
+
z.object({
|
|
3507
|
+
id: z.string(),
|
|
3508
|
+
startTime: z.string(),
|
|
3509
|
+
endTime: z.nullable(z.string()),
|
|
3510
|
+
get channel() {
|
|
3511
|
+
return bookingChannelSchema;
|
|
3512
|
+
},
|
|
3513
|
+
isActive: z.nullable(z.boolean()),
|
|
3514
|
+
isSchedulable: z.nullable(z.boolean()),
|
|
3515
|
+
maxBookings: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
3516
|
+
maxGuests: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
3517
|
+
overflowBookings: z.nullable(
|
|
3518
|
+
z.int().min(-2147483648).max(2147483647)
|
|
3519
|
+
),
|
|
3520
|
+
overflowGuests: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
3521
|
+
sortIndex: z.nullable(z.string().max(255)),
|
|
3522
|
+
updatedAt: z.nullable(z.any()),
|
|
3523
|
+
updatedBy: z.nullable(z.string()),
|
|
3524
|
+
createdAt: z.nullable(z.any()),
|
|
3525
|
+
createdBy: z.nullable(z.string())
|
|
3526
|
+
})
|
|
3527
|
+
)
|
|
3528
|
+
})
|
|
3529
|
+
),
|
|
3530
|
+
get scheduleOverrides() {
|
|
3531
|
+
return z.array(scheduleOverrideSchema);
|
|
3532
|
+
},
|
|
3533
|
+
scheduleSlotPolicies: z.array(
|
|
3534
|
+
z.object({
|
|
3535
|
+
id: z.string(),
|
|
3536
|
+
scheduleId: z.string(),
|
|
3537
|
+
get channel() {
|
|
3538
|
+
return bookingChannelSchema;
|
|
3539
|
+
},
|
|
3540
|
+
get slotMode() {
|
|
3541
|
+
return slotModeSchema;
|
|
3542
|
+
},
|
|
3543
|
+
intervalDuration: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
3544
|
+
duration: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
3545
|
+
bookingOpensAtDays: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
3546
|
+
bookingClosesAtOffset: z.nullable(
|
|
3547
|
+
z.int().min(-2147483648).max(2147483647)
|
|
3548
|
+
),
|
|
3549
|
+
updatedAt: z.nullable(z.any()),
|
|
3550
|
+
updatedBy: z.nullable(z.string()),
|
|
3551
|
+
createdAt: z.nullable(z.any()),
|
|
3552
|
+
createdBy: z.nullable(z.string())
|
|
3553
|
+
})
|
|
3554
|
+
)
|
|
3555
|
+
});
|
|
3556
|
+
|
|
3466
3557
|
const fetchRitualResponseSchema = z.object({
|
|
3467
3558
|
id: z.string(),
|
|
3468
3559
|
venueId: z.string(),
|
|
@@ -3616,152 +3707,9 @@ const fetchRitualResponseSchema = z.object({
|
|
|
3616
3707
|
covers: z.number()
|
|
3617
3708
|
})
|
|
3618
3709
|
),
|
|
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
|
-
)
|
|
3710
|
+
get schedule() {
|
|
3711
|
+
return hydratedScheduleSchema.nullable();
|
|
3712
|
+
}
|
|
3765
3713
|
});
|
|
3766
3714
|
|
|
3767
3715
|
const occupancyReasonSchema = z.enum([
|
|
@@ -3909,6 +3857,8 @@ const fontRoleSchema = z.enum(["system", "accent"]);
|
|
|
3909
3857
|
|
|
3910
3858
|
const fontStyleSchema = z.enum(["normal", "italic"]);
|
|
3911
3859
|
|
|
3860
|
+
const formOfAddressSchema = z.enum(["formal", "informal"]);
|
|
3861
|
+
|
|
3912
3862
|
const gbpMediaCategorySchema = z.enum([
|
|
3913
3863
|
"cover",
|
|
3914
3864
|
"logo",
|
|
@@ -4995,6 +4945,13 @@ const scanTokenEntityTypeSchema = z.enum(["order", "depositware"]);
|
|
|
4995
4945
|
|
|
4996
4946
|
const scheduleOverrideModeSchema = z.enum(["closed", "deviating"]);
|
|
4997
4947
|
|
|
4948
|
+
const senderNameSourceSchema = z.enum([
|
|
4949
|
+
"official",
|
|
4950
|
+
"legal",
|
|
4951
|
+
"brand",
|
|
4952
|
+
"short"
|
|
4953
|
+
]);
|
|
4954
|
+
|
|
4998
4955
|
const servedMarketAreaTypeSchema = z.enum([
|
|
4999
4956
|
"pin",
|
|
5000
4957
|
"postcode",
|
|
@@ -5411,6 +5368,8 @@ const setOrderLeadSettledResponseSchema = z.object({
|
|
|
5411
5368
|
leadSettledAt: z.nullable(z.string())
|
|
5412
5369
|
});
|
|
5413
5370
|
|
|
5371
|
+
const signatureStyleSchema = z.enum(["name", "team", "team_of"]);
|
|
5372
|
+
|
|
5414
5373
|
const sortOrderSchema = z.enum(["asc", "desc"]);
|
|
5415
5374
|
|
|
5416
5375
|
const submitAreaBookingPayloadSchema = z.object({
|
|
@@ -5823,6 +5782,7 @@ const schemas = {
|
|
|
5823
5782
|
FetchTeamOrderResponse: fetchTeamOrderResponseSchema,
|
|
5824
5783
|
FontRole: fontRoleSchema,
|
|
5825
5784
|
FontStyle: fontStyleSchema,
|
|
5785
|
+
FormOfAddress: formOfAddressSchema,
|
|
5826
5786
|
FulfillmentType: fulfillmentTypeSchema,
|
|
5827
5787
|
GbpMediaCategory: gbpMediaCategorySchema,
|
|
5828
5788
|
GbpSyncStatus: gbpSyncStatusSchema,
|
|
@@ -5837,6 +5797,7 @@ const schemas = {
|
|
|
5837
5797
|
GetWebsitePagesResponse: getWebsitePagesResponseSchema,
|
|
5838
5798
|
GoogleAdsAssetFamily: googleAdsAssetFamilySchema,
|
|
5839
5799
|
GuestTier: guestTierSchema,
|
|
5800
|
+
HydratedSchedule: hydratedScheduleSchema,
|
|
5840
5801
|
IntegrationNotificationType: integrationNotificationTypeSchema,
|
|
5841
5802
|
IntegrationType: integrationTypeSchema,
|
|
5842
5803
|
InventoryAssetStatus: inventoryAssetStatusSchema,
|
|
@@ -5932,7 +5893,9 @@ const schemas = {
|
|
|
5932
5893
|
SaveAdWebsitePagesResponse: saveAdWebsitePagesResponseSchema,
|
|
5933
5894
|
ScanTokenEntityType: scanTokenEntityTypeSchema,
|
|
5934
5895
|
ScheduleOverrideMode: scheduleOverrideModeSchema,
|
|
5896
|
+
ScheduleOverride: scheduleOverrideSchema,
|
|
5935
5897
|
Schedule: scheduleSchema,
|
|
5898
|
+
SenderNameSource: senderNameSourceSchema,
|
|
5936
5899
|
ServedMarketAreaType: servedMarketAreaTypeSchema,
|
|
5937
5900
|
ServedMarketScope: servedMarketScopeSchema,
|
|
5938
5901
|
SetAdBudgetRequest: setAdBudgetRequestSchema,
|
|
@@ -5950,6 +5913,7 @@ const schemas = {
|
|
|
5950
5913
|
SetMenuPublicationBlocksResponse: setMenuPublicationBlocksResponseSchema,
|
|
5951
5914
|
SetOrderLeadSettledRequest: setOrderLeadSettledRequestSchema,
|
|
5952
5915
|
SetOrderLeadSettledResponse: setOrderLeadSettledResponseSchema,
|
|
5916
|
+
SignatureStyle: signatureStyleSchema,
|
|
5953
5917
|
SlotMode: slotModeSchema,
|
|
5954
5918
|
SortOrder: sortOrderSchema,
|
|
5955
5919
|
SubmitAreaBookingPayload: submitAreaBookingPayloadSchema,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "order3000",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.3",
|
|
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.24.0",
|
|
71
71
|
"@kolaveri/prettier-config": "1.0.6",
|
|
72
72
|
"@kolaveri/tsconfig": "1.0.1"
|
|
73
73
|
},
|
|
@@ -77,7 +77,7 @@
|
|
|
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
|
"build": "npm run build:types && npm run build:zod && pkgroll",
|
|
83
83
|
"lint": "eslint src/types/index.ts src/schemas.ts src/schemas/index.ts"
|