order3000 1.10.0 → 1.11.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 +81 -0
- package/dist/client.d.cts +42 -3496
- package/dist/client.d.mts +42 -3496
- package/dist/client.mjs +81 -0
- package/dist/index-CQHgJH4m.d.cts +3648 -0
- package/dist/index-CQHgJH4m.d.mts +3648 -0
- package/dist/menu.cjs +35 -0
- package/dist/menu.d.cts +51 -0
- package/dist/menu.d.mts +51 -0
- package/dist/menu.mjs +30 -0
- package/dist/schemas.cjs +175 -0
- package/dist/schemas.d.cts +113 -0
- package/dist/schemas.d.mts +113 -0
- package/dist/schemas.mjs +175 -0
- package/package.json +13 -3
package/dist/schemas.d.mts
CHANGED
|
@@ -1078,6 +1078,50 @@ declare const schemas: {
|
|
|
1078
1078
|
locale: zod.ZodString;
|
|
1079
1079
|
}, zod_v4_core.$strip>>>;
|
|
1080
1080
|
}, zod_v4_core.$strip>;
|
|
1081
|
+
readonly EditDishRequest: zod.ZodObject<{
|
|
1082
|
+
venueAccessor: zod.ZodString;
|
|
1083
|
+
id: zod.ZodString;
|
|
1084
|
+
name: zod.ZodObject<{}, zod_v4_core.$catchall<zod.ZodString>>;
|
|
1085
|
+
shortName: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{}, zod_v4_core.$catchall<zod.ZodString>>>>;
|
|
1086
|
+
description: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{}, zod_v4_core.$catchall<zod.ZodString>>>>;
|
|
1087
|
+
longDescription: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{}, zod_v4_core.$catchall<zod.ZodString>>>>;
|
|
1088
|
+
suggestedPrice: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
|
|
1089
|
+
currency: zod.ZodEnum<{
|
|
1090
|
+
EUR: "EUR";
|
|
1091
|
+
CHF: "CHF";
|
|
1092
|
+
}>;
|
|
1093
|
+
isVegan: zod.ZodDefault<zod.ZodBoolean>;
|
|
1094
|
+
isVegetarian: zod.ZodDefault<zod.ZodBoolean>;
|
|
1095
|
+
isGlutenFree: zod.ZodDefault<zod.ZodBoolean>;
|
|
1096
|
+
isDairyFree: zod.ZodDefault<zod.ZodBoolean>;
|
|
1097
|
+
spiciness: zod.ZodDefault<zod.ZodInt>;
|
|
1098
|
+
isActive: zod.ZodDefault<zod.ZodBoolean>;
|
|
1099
|
+
}, zod_v4_core.$strip>;
|
|
1100
|
+
readonly EditDishResponse: zod.ZodObject<{
|
|
1101
|
+
id: zod.ZodString;
|
|
1102
|
+
venueId: zod.ZodString;
|
|
1103
|
+
accessor: zod.ZodString;
|
|
1104
|
+
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>>]>;
|
|
1105
|
+
shortName: 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>>]>>;
|
|
1106
|
+
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>>]>>;
|
|
1107
|
+
longDescription: 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>>]>>;
|
|
1108
|
+
isVegan: zod.ZodNullable<zod.ZodBoolean>;
|
|
1109
|
+
isVegetarian: zod.ZodNullable<zod.ZodBoolean>;
|
|
1110
|
+
isGlutenFree: zod.ZodNullable<zod.ZodBoolean>;
|
|
1111
|
+
isDairyFree: zod.ZodNullable<zod.ZodBoolean>;
|
|
1112
|
+
spiciness: zod.ZodNullable<zod.ZodInt>;
|
|
1113
|
+
suggestedPrice: zod.ZodNullable<zod.ZodInt>;
|
|
1114
|
+
currency: zod.ZodEnum<{
|
|
1115
|
+
EUR: "EUR";
|
|
1116
|
+
CHF: "CHF";
|
|
1117
|
+
}>;
|
|
1118
|
+
isActive: zod.ZodBoolean;
|
|
1119
|
+
sortIndex: zod.ZodNullable<zod.ZodString>;
|
|
1120
|
+
updatedAt: zod.ZodNullable<zod.ZodAny>;
|
|
1121
|
+
updatedBy: zod.ZodNullable<zod.ZodString>;
|
|
1122
|
+
createdAt: zod.ZodNullable<zod.ZodAny>;
|
|
1123
|
+
createdBy: zod.ZodNullable<zod.ZodString>;
|
|
1124
|
+
}, zod_v4_core.$strip>;
|
|
1081
1125
|
readonly EditEventRequest: zod.ZodObject<{
|
|
1082
1126
|
accessor: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1083
1127
|
name: zod.ZodOptional<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>>]>>;
|
|
@@ -1771,6 +1815,58 @@ declare const schemas: {
|
|
|
1771
1815
|
createdAt: zod.ZodNullable<zod.ZodString>;
|
|
1772
1816
|
updatedAt: zod.ZodNullable<zod.ZodString>;
|
|
1773
1817
|
}, zod_v4_core.$strip>;
|
|
1818
|
+
readonly FetchDishResponse: zod.ZodObject<{
|
|
1819
|
+
id: zod.ZodString;
|
|
1820
|
+
venueId: zod.ZodString;
|
|
1821
|
+
accessor: zod.ZodString;
|
|
1822
|
+
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>>]>;
|
|
1823
|
+
shortName: 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>>]>>;
|
|
1824
|
+
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>>]>>;
|
|
1825
|
+
longDescription: 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>>]>>;
|
|
1826
|
+
isVegan: zod.ZodNullable<zod.ZodBoolean>;
|
|
1827
|
+
isVegetarian: zod.ZodNullable<zod.ZodBoolean>;
|
|
1828
|
+
isGlutenFree: zod.ZodNullable<zod.ZodBoolean>;
|
|
1829
|
+
isDairyFree: zod.ZodNullable<zod.ZodBoolean>;
|
|
1830
|
+
spiciness: zod.ZodNullable<zod.ZodInt>;
|
|
1831
|
+
suggestedPrice: zod.ZodNullable<zod.ZodInt>;
|
|
1832
|
+
currency: zod.ZodEnum<{
|
|
1833
|
+
EUR: "EUR";
|
|
1834
|
+
CHF: "CHF";
|
|
1835
|
+
}>;
|
|
1836
|
+
isActive: zod.ZodBoolean;
|
|
1837
|
+
sortIndex: zod.ZodNullable<zod.ZodString>;
|
|
1838
|
+
updatedAt: zod.ZodNullable<zod.ZodAny>;
|
|
1839
|
+
updatedBy: zod.ZodNullable<zod.ZodString>;
|
|
1840
|
+
createdAt: zod.ZodNullable<zod.ZodAny>;
|
|
1841
|
+
createdBy: zod.ZodNullable<zod.ZodString>;
|
|
1842
|
+
assets: zod.ZodArray<zod.ZodObject<{
|
|
1843
|
+
id: zod.ZodString;
|
|
1844
|
+
type: zod.ZodEnum<{
|
|
1845
|
+
image: "image";
|
|
1846
|
+
video: "video";
|
|
1847
|
+
document: "document";
|
|
1848
|
+
}>;
|
|
1849
|
+
tags: zod.ZodNullable<zod.ZodArray<zod.ZodString>>;
|
|
1850
|
+
bucket: zod.ZodString;
|
|
1851
|
+
storagePath: zod.ZodString;
|
|
1852
|
+
filename: zod.ZodString;
|
|
1853
|
+
contentType: zod.ZodString;
|
|
1854
|
+
sizeBytes: zod.ZodInt;
|
|
1855
|
+
caption: 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>>]>;
|
|
1856
|
+
alt: 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>>]>;
|
|
1857
|
+
metadata: 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>>]>>;
|
|
1858
|
+
cropArea: 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>>]>>;
|
|
1859
|
+
isActive: zod.ZodBoolean;
|
|
1860
|
+
sortIndex: zod.ZodNullable<zod.ZodString>;
|
|
1861
|
+
createdAt: zod.ZodNullable<zod.ZodAny>;
|
|
1862
|
+
updatedAt: zod.ZodNullable<zod.ZodAny>;
|
|
1863
|
+
createdBy: zod.ZodNullable<zod.ZodString>;
|
|
1864
|
+
updatedBy: zod.ZodNullable<zod.ZodString>;
|
|
1865
|
+
venueId: zod.ZodNullable<zod.ZodString>;
|
|
1866
|
+
contentHash: zod.ZodNullable<zod.ZodString>;
|
|
1867
|
+
publicUrl: zod.ZodNullable<zod.ZodString>;
|
|
1868
|
+
}, zod_v4_core.$strip>>;
|
|
1869
|
+
}, zod_v4_core.$strip>;
|
|
1774
1870
|
readonly FetchEventResponse: zod.ZodObject<{
|
|
1775
1871
|
id: zod.ZodString;
|
|
1776
1872
|
venueId: zod.ZodString;
|
|
@@ -2213,6 +2309,7 @@ declare const schemas: {
|
|
|
2213
2309
|
width: zod.ZodNumber;
|
|
2214
2310
|
height: zod.ZodNumber;
|
|
2215
2311
|
}, zod_v4_core.$strip>>;
|
|
2312
|
+
contentHash: zod.ZodNullable<zod.ZodString>;
|
|
2216
2313
|
publicUrl: zod.ZodString;
|
|
2217
2314
|
}, zod_v4_core.$strip>>;
|
|
2218
2315
|
items: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
@@ -2230,6 +2327,16 @@ declare const schemas: {
|
|
|
2230
2327
|
isActive: zod.ZodBoolean;
|
|
2231
2328
|
isFeatured: zod.ZodBoolean;
|
|
2232
2329
|
sortIndex: zod.ZodNullable<zod.ZodString>;
|
|
2330
|
+
availableDays: zod.ZodNullable<zod.ZodArray<zod.ZodEnum<{
|
|
2331
|
+
monday: "monday";
|
|
2332
|
+
tuesday: "tuesday";
|
|
2333
|
+
wednesday: "wednesday";
|
|
2334
|
+
thursday: "thursday";
|
|
2335
|
+
friday: "friday";
|
|
2336
|
+
saturday: "saturday";
|
|
2337
|
+
sunday: "sunday";
|
|
2338
|
+
}>>>;
|
|
2339
|
+
availableWeeks: zod.ZodNullable<zod.ZodArray<zod.ZodInt>>;
|
|
2233
2340
|
dish: zod.ZodNullable<zod.ZodObject<{
|
|
2234
2341
|
id: zod.ZodString;
|
|
2235
2342
|
accessor: zod.ZodString;
|
|
@@ -2275,6 +2382,7 @@ declare const schemas: {
|
|
|
2275
2382
|
width: zod.ZodNumber;
|
|
2276
2383
|
height: zod.ZodNumber;
|
|
2277
2384
|
}, zod_v4_core.$strip>>;
|
|
2385
|
+
contentHash: zod.ZodNullable<zod.ZodString>;
|
|
2278
2386
|
publicUrl: zod.ZodString;
|
|
2279
2387
|
}, zod_v4_core.$strip>>>;
|
|
2280
2388
|
}, zod_v4_core.$strip>>;
|
|
@@ -2318,6 +2426,7 @@ declare const schemas: {
|
|
|
2318
2426
|
width: zod.ZodNumber;
|
|
2319
2427
|
height: zod.ZodNumber;
|
|
2320
2428
|
}, zod_v4_core.$strip>>;
|
|
2429
|
+
contentHash: zod.ZodNullable<zod.ZodString>;
|
|
2321
2430
|
publicUrl: zod.ZodString;
|
|
2322
2431
|
}, zod_v4_core.$strip>>>;
|
|
2323
2432
|
}, zod_v4_core.$strip>>;
|
|
@@ -2830,6 +2939,10 @@ declare const schemas: {
|
|
|
2830
2939
|
createdAt: zod.ZodAny;
|
|
2831
2940
|
updatedAt: zod.ZodAny;
|
|
2832
2941
|
}, zod_v4_core.$strip>>;
|
|
2942
|
+
readonly GoogleAdsAssetFamily: zod.ZodEnum<{
|
|
2943
|
+
sitelinks: "sitelinks";
|
|
2944
|
+
callouts: "callouts";
|
|
2945
|
+
}>;
|
|
2833
2946
|
readonly IntegrationNotificationType: zod.ZodEnum<{
|
|
2834
2947
|
order_created: "order_created";
|
|
2835
2948
|
order_cancelled: "order_cancelled";
|
package/dist/schemas.mjs
CHANGED
|
@@ -1330,6 +1330,72 @@ const editArticleResponseSchema = z.object({
|
|
|
1330
1330
|
"A venue's article. `content` is a TipTap JSON document; treat it as opaque on the wire. `featureImage` is resolved per-locale with a fallback to the venue's primary locale. `ogImage` overrides the social-card image when set; `null` means it falls back to `featureImage`."
|
|
1331
1331
|
);
|
|
1332
1332
|
|
|
1333
|
+
const editDishRequestSchema = z.object({
|
|
1334
|
+
venueAccessor: z.string().min(1),
|
|
1335
|
+
id: z.string(),
|
|
1336
|
+
name: z.object({}).catchall(z.string().min(1)),
|
|
1337
|
+
shortName: z.object({}).catchall(z.string()).nullish(),
|
|
1338
|
+
description: z.object({}).catchall(z.string()).nullish(),
|
|
1339
|
+
longDescription: z.object({}).catchall(z.string()).nullish(),
|
|
1340
|
+
suggestedPrice: z.number().nullish(),
|
|
1341
|
+
get currency() {
|
|
1342
|
+
return currencySchema;
|
|
1343
|
+
},
|
|
1344
|
+
isVegan: z.boolean().default(false),
|
|
1345
|
+
isVegetarian: z.boolean().default(false),
|
|
1346
|
+
isGlutenFree: z.boolean().default(false),
|
|
1347
|
+
isDairyFree: z.boolean().default(false),
|
|
1348
|
+
spiciness: z.int().min(0).max(9007199254740991).default(0),
|
|
1349
|
+
isActive: z.boolean().default(true)
|
|
1350
|
+
});
|
|
1351
|
+
|
|
1352
|
+
const editDishResponseSchema = z.object({
|
|
1353
|
+
id: z.string(),
|
|
1354
|
+
venueId: z.string(),
|
|
1355
|
+
accessor: z.string(),
|
|
1356
|
+
name: z.union([
|
|
1357
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1358
|
+
z.array(z.any()),
|
|
1359
|
+
z.object({}).catchall(z.any())
|
|
1360
|
+
]),
|
|
1361
|
+
shortName: z.nullable(
|
|
1362
|
+
z.union([
|
|
1363
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1364
|
+
z.array(z.any()),
|
|
1365
|
+
z.object({}).catchall(z.any())
|
|
1366
|
+
])
|
|
1367
|
+
),
|
|
1368
|
+
description: z.nullable(
|
|
1369
|
+
z.union([
|
|
1370
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1371
|
+
z.array(z.any()),
|
|
1372
|
+
z.object({}).catchall(z.any())
|
|
1373
|
+
])
|
|
1374
|
+
),
|
|
1375
|
+
longDescription: z.nullable(
|
|
1376
|
+
z.union([
|
|
1377
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
1378
|
+
z.array(z.any()),
|
|
1379
|
+
z.object({}).catchall(z.any())
|
|
1380
|
+
])
|
|
1381
|
+
),
|
|
1382
|
+
isVegan: z.nullable(z.boolean()),
|
|
1383
|
+
isVegetarian: z.nullable(z.boolean()),
|
|
1384
|
+
isGlutenFree: z.nullable(z.boolean()),
|
|
1385
|
+
isDairyFree: z.nullable(z.boolean()),
|
|
1386
|
+
spiciness: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1387
|
+
suggestedPrice: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
1388
|
+
get currency() {
|
|
1389
|
+
return currencySchema;
|
|
1390
|
+
},
|
|
1391
|
+
isActive: z.boolean(),
|
|
1392
|
+
sortIndex: z.nullable(z.string().max(255)),
|
|
1393
|
+
updatedAt: z.nullable(z.any()),
|
|
1394
|
+
updatedBy: z.nullable(z.string()),
|
|
1395
|
+
createdAt: z.nullable(z.any()),
|
|
1396
|
+
createdBy: z.nullable(z.string())
|
|
1397
|
+
});
|
|
1398
|
+
|
|
1333
1399
|
const editEventRequestSchema = z.object({
|
|
1334
1400
|
accessor: z.string().nullish(),
|
|
1335
1401
|
name: z.optional(
|
|
@@ -2183,6 +2249,100 @@ const fetchBasketResponseSchema = z.object({
|
|
|
2183
2249
|
updatedAt: z.nullable(z.string())
|
|
2184
2250
|
});
|
|
2185
2251
|
|
|
2252
|
+
const fetchDishResponseSchema = z.object({
|
|
2253
|
+
id: z.string(),
|
|
2254
|
+
venueId: z.string(),
|
|
2255
|
+
accessor: z.string(),
|
|
2256
|
+
name: z.union([
|
|
2257
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2258
|
+
z.array(z.any()),
|
|
2259
|
+
z.object({}).catchall(z.any())
|
|
2260
|
+
]),
|
|
2261
|
+
shortName: z.nullable(
|
|
2262
|
+
z.union([
|
|
2263
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2264
|
+
z.array(z.any()),
|
|
2265
|
+
z.object({}).catchall(z.any())
|
|
2266
|
+
])
|
|
2267
|
+
),
|
|
2268
|
+
description: z.nullable(
|
|
2269
|
+
z.union([
|
|
2270
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2271
|
+
z.array(z.any()),
|
|
2272
|
+
z.object({}).catchall(z.any())
|
|
2273
|
+
])
|
|
2274
|
+
),
|
|
2275
|
+
longDescription: z.nullable(
|
|
2276
|
+
z.union([
|
|
2277
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2278
|
+
z.array(z.any()),
|
|
2279
|
+
z.object({}).catchall(z.any())
|
|
2280
|
+
])
|
|
2281
|
+
),
|
|
2282
|
+
isVegan: z.nullable(z.boolean()),
|
|
2283
|
+
isVegetarian: z.nullable(z.boolean()),
|
|
2284
|
+
isGlutenFree: z.nullable(z.boolean()),
|
|
2285
|
+
isDairyFree: z.nullable(z.boolean()),
|
|
2286
|
+
spiciness: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
2287
|
+
suggestedPrice: z.nullable(z.int().min(-2147483648).max(2147483647)),
|
|
2288
|
+
get currency() {
|
|
2289
|
+
return currencySchema;
|
|
2290
|
+
},
|
|
2291
|
+
isActive: z.boolean(),
|
|
2292
|
+
sortIndex: z.nullable(z.string().max(255)),
|
|
2293
|
+
updatedAt: z.nullable(z.any()),
|
|
2294
|
+
updatedBy: z.nullable(z.string()),
|
|
2295
|
+
createdAt: z.nullable(z.any()),
|
|
2296
|
+
createdBy: z.nullable(z.string()),
|
|
2297
|
+
assets: z.array(
|
|
2298
|
+
z.object({
|
|
2299
|
+
id: z.string(),
|
|
2300
|
+
get type() {
|
|
2301
|
+
return assetTypeSchema;
|
|
2302
|
+
},
|
|
2303
|
+
tags: z.nullable(z.array(z.string())),
|
|
2304
|
+
bucket: z.string(),
|
|
2305
|
+
storagePath: z.string(),
|
|
2306
|
+
filename: z.string(),
|
|
2307
|
+
contentType: z.string(),
|
|
2308
|
+
sizeBytes: z.int().min(-2147483648).max(2147483647),
|
|
2309
|
+
caption: z.union([
|
|
2310
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2311
|
+
z.array(z.any()),
|
|
2312
|
+
z.object({}).catchall(z.any())
|
|
2313
|
+
]),
|
|
2314
|
+
alt: z.union([
|
|
2315
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2316
|
+
z.array(z.any()),
|
|
2317
|
+
z.object({}).catchall(z.any())
|
|
2318
|
+
]),
|
|
2319
|
+
metadata: z.nullable(
|
|
2320
|
+
z.union([
|
|
2321
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2322
|
+
z.array(z.any()),
|
|
2323
|
+
z.object({}).catchall(z.any())
|
|
2324
|
+
])
|
|
2325
|
+
),
|
|
2326
|
+
cropArea: z.nullable(
|
|
2327
|
+
z.union([
|
|
2328
|
+
z.union([z.boolean(), z.string(), z.number(), z.enum([])]),
|
|
2329
|
+
z.array(z.any()),
|
|
2330
|
+
z.object({}).catchall(z.any())
|
|
2331
|
+
])
|
|
2332
|
+
),
|
|
2333
|
+
isActive: z.boolean(),
|
|
2334
|
+
sortIndex: z.nullable(z.string().max(255)),
|
|
2335
|
+
createdAt: z.nullable(z.any()),
|
|
2336
|
+
updatedAt: z.nullable(z.any()),
|
|
2337
|
+
createdBy: z.nullable(z.string()),
|
|
2338
|
+
updatedBy: z.nullable(z.string()),
|
|
2339
|
+
venueId: z.nullable(z.string()),
|
|
2340
|
+
contentHash: z.nullable(z.string()),
|
|
2341
|
+
publicUrl: z.nullable(z.string())
|
|
2342
|
+
})
|
|
2343
|
+
)
|
|
2344
|
+
});
|
|
2345
|
+
|
|
2186
2346
|
const fetchEventResponseSchema = z.object({
|
|
2187
2347
|
id: z.string(),
|
|
2188
2348
|
venueId: z.string(),
|
|
@@ -2655,6 +2815,7 @@ const fetchMenuResponseSchema = z.object({
|
|
|
2655
2815
|
height: z.number()
|
|
2656
2816
|
})
|
|
2657
2817
|
),
|
|
2818
|
+
contentHash: z.nullable(z.string()),
|
|
2658
2819
|
publicUrl: z.string()
|
|
2659
2820
|
})
|
|
2660
2821
|
),
|
|
@@ -2673,6 +2834,12 @@ const fetchMenuResponseSchema = z.object({
|
|
|
2673
2834
|
isActive: z.boolean(),
|
|
2674
2835
|
isFeatured: z.boolean(),
|
|
2675
2836
|
sortIndex: z.nullable(z.string()),
|
|
2837
|
+
get availableDays() {
|
|
2838
|
+
return z.array(dayOfWeekSchema).nullable();
|
|
2839
|
+
},
|
|
2840
|
+
availableWeeks: z.nullable(
|
|
2841
|
+
z.array(z.int().min(-9007199254740991).max(9007199254740991))
|
|
2842
|
+
),
|
|
2676
2843
|
dish: z.nullable(
|
|
2677
2844
|
z.object({
|
|
2678
2845
|
id: z.string(),
|
|
@@ -2723,6 +2890,7 @@ const fetchMenuResponseSchema = z.object({
|
|
|
2723
2890
|
height: z.number()
|
|
2724
2891
|
})
|
|
2725
2892
|
),
|
|
2893
|
+
contentHash: z.nullable(z.string()),
|
|
2726
2894
|
publicUrl: z.string()
|
|
2727
2895
|
})
|
|
2728
2896
|
)
|
|
@@ -2774,6 +2942,7 @@ const fetchMenuResponseSchema = z.object({
|
|
|
2774
2942
|
height: z.number()
|
|
2775
2943
|
})
|
|
2776
2944
|
),
|
|
2945
|
+
contentHash: z.nullable(z.string()),
|
|
2777
2946
|
publicUrl: z.string()
|
|
2778
2947
|
})
|
|
2779
2948
|
)
|
|
@@ -3302,6 +3471,8 @@ const getWebsitePagesResponseSchema = z.array(
|
|
|
3302
3471
|
})
|
|
3303
3472
|
);
|
|
3304
3473
|
|
|
3474
|
+
const googleAdsAssetFamilySchema = z.enum(["sitelinks", "callouts"]);
|
|
3475
|
+
|
|
3305
3476
|
const integrationNotificationTypeSchema = z.enum([
|
|
3306
3477
|
"order_created",
|
|
3307
3478
|
"order_cancelled",
|
|
@@ -4341,6 +4512,8 @@ const schemas = {
|
|
|
4341
4512
|
EditAdResponse: editAdResponseSchema,
|
|
4342
4513
|
EditArticleRequest: editArticleRequestSchema,
|
|
4343
4514
|
EditArticleResponse: editArticleResponseSchema,
|
|
4515
|
+
EditDishRequest: editDishRequestSchema,
|
|
4516
|
+
EditDishResponse: editDishResponseSchema,
|
|
4344
4517
|
EditEventRequest: editEventRequestSchema,
|
|
4345
4518
|
EditEventResponse: editEventResponseSchema,
|
|
4346
4519
|
EditMetaAdRequest: editMetaAdRequestSchema,
|
|
@@ -4363,6 +4536,7 @@ const schemas = {
|
|
|
4363
4536
|
FetchArticlesResponse: fetchArticlesResponseSchema,
|
|
4364
4537
|
FetchAssetsByTagResponse: fetchAssetsByTagResponseSchema,
|
|
4365
4538
|
FetchBasketResponse: fetchBasketResponseSchema,
|
|
4539
|
+
FetchDishResponse: fetchDishResponseSchema,
|
|
4366
4540
|
FetchEventResponse: fetchEventResponseSchema,
|
|
4367
4541
|
FetchEventsResponse: fetchEventsResponseSchema,
|
|
4368
4542
|
FetchLatestOrderResponse: fetchLatestOrderResponseSchema,
|
|
@@ -4384,6 +4558,7 @@ const schemas = {
|
|
|
4384
4558
|
GetSubscriptionResponse: getSubscriptionResponseSchema,
|
|
4385
4559
|
GetVenueResponse: getVenueResponseSchema,
|
|
4386
4560
|
GetWebsitePagesResponse: getWebsitePagesResponseSchema,
|
|
4561
|
+
GoogleAdsAssetFamily: googleAdsAssetFamilySchema,
|
|
4387
4562
|
IntegrationNotificationType: integrationNotificationTypeSchema,
|
|
4388
4563
|
IntegrationType: integrationTypeSchema,
|
|
4389
4564
|
InventoryAssetStatus: inventoryAssetStatusSchema,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "order3000",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"description": "order3000 node.js sdk",
|
|
5
5
|
"main": "./dist/client.cjs",
|
|
6
6
|
"module": "./dist/client.mjs",
|
|
@@ -35,6 +35,16 @@
|
|
|
35
35
|
"types": "./dist/tracking.d.mts",
|
|
36
36
|
"default": "./dist/tracking.mjs"
|
|
37
37
|
}
|
|
38
|
+
},
|
|
39
|
+
"./menu": {
|
|
40
|
+
"require": {
|
|
41
|
+
"types": "./dist/menu.d.cts",
|
|
42
|
+
"default": "./dist/menu.cjs"
|
|
43
|
+
},
|
|
44
|
+
"import": {
|
|
45
|
+
"types": "./dist/menu.d.mts",
|
|
46
|
+
"default": "./dist/menu.mjs"
|
|
47
|
+
}
|
|
38
48
|
}
|
|
39
49
|
},
|
|
40
50
|
"dependencies": {
|
|
@@ -58,8 +68,8 @@
|
|
|
58
68
|
"tsx": "^4.19.2",
|
|
59
69
|
"typescript": "^5.9.3",
|
|
60
70
|
"@kolaveri/eslint-config": "1.11.0",
|
|
61
|
-
"@kolaveri/
|
|
62
|
-
"@kolaveri/
|
|
71
|
+
"@kolaveri/prettier-config": "1.0.6",
|
|
72
|
+
"@kolaveri/tsconfig": "1.0.1"
|
|
63
73
|
},
|
|
64
74
|
"files": [
|
|
65
75
|
"dist"
|