@deliverart/sdk-js-menu 2.6.0 → 2.6.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/index.cjs +9 -9
- package/dist/index.d.cts +310 -36
- package/dist/index.d.ts +310 -36
- package/dist/index.js +18 -18
- package/package.json +6 -6
package/dist/index.d.cts
CHANGED
|
@@ -997,7 +997,7 @@ declare const getMenuItemCategoriesQuerySchema: z.ZodObject<{
|
|
|
997
997
|
type GetMenuItemCategoriesQueryParams = z.infer<typeof getMenuItemCategoriesQuerySchema>;
|
|
998
998
|
declare const getMenuItemCategoriesInputSchema: z.ZodUndefined;
|
|
999
999
|
type GetMenuItemCategoriesInput = z.input<typeof getMenuItemCategoriesInputSchema>;
|
|
1000
|
-
declare const getMenuItemCategoriesResponseSchema: z.ZodObject<{
|
|
1000
|
+
declare const getMenuItemCategoriesResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1001
1001
|
data: z.ZodArray<z.ZodObject<{
|
|
1002
1002
|
id: z.ZodString;
|
|
1003
1003
|
name: z.ZodArray<z.ZodObject<{
|
|
@@ -1039,14 +1039,46 @@ declare const getMenuItemCategoriesResponseSchema: z.ZodObject<{
|
|
|
1039
1039
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1040
1040
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1041
1041
|
}, z.core.$strip>;
|
|
1042
|
-
}, z.core.$strip
|
|
1042
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1043
|
+
id: z.ZodString;
|
|
1044
|
+
name: z.ZodArray<z.ZodObject<{
|
|
1045
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1046
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1047
|
+
}, z.core.$strip>>;
|
|
1048
|
+
description: z.ZodArray<z.ZodObject<{
|
|
1049
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1050
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1051
|
+
}, z.core.$strip>>;
|
|
1052
|
+
sorting: z.ZodCoercedNumber<unknown>;
|
|
1053
|
+
suspended: z.ZodBoolean;
|
|
1054
|
+
images: z.ZodArray<z.ZodObject<{
|
|
1055
|
+
id: z.ZodString;
|
|
1056
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
1057
|
+
contentUrl: z.ZodURL;
|
|
1058
|
+
filePath: z.ZodString;
|
|
1059
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1060
|
+
createdAt: z.ZodString;
|
|
1061
|
+
updatedAt: z.ZodString;
|
|
1062
|
+
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1063
|
+
id: z.ZodString;
|
|
1064
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
1065
|
+
contentUrl: z.ZodURL;
|
|
1066
|
+
filePath: z.ZodString;
|
|
1067
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1068
|
+
createdAt: z.ZodString;
|
|
1069
|
+
updatedAt: z.ZodString;
|
|
1070
|
+
}, z.core.$strip>>>;
|
|
1071
|
+
}, z.core.$strip>>;
|
|
1072
|
+
createdAt: z.ZodString;
|
|
1073
|
+
updatedAt: z.ZodString;
|
|
1074
|
+
}, z.core.$strip>>]>;
|
|
1043
1075
|
type GetMenuItemCategoriesResponse = z.infer<typeof getMenuItemCategoriesResponseSchema>;
|
|
1044
1076
|
declare class GetMenuItemCategories extends AbstractApiRequest<typeof getMenuItemCategoriesInputSchema, typeof getMenuItemCategoriesResponseSchema, GetMenuItemCategoriesQueryParams> {
|
|
1045
1077
|
readonly method: "GET";
|
|
1046
1078
|
readonly contentType: "application/json";
|
|
1047
1079
|
readonly accept: "application/json";
|
|
1048
1080
|
readonly inputSchema: z.ZodUndefined;
|
|
1049
|
-
readonly outputSchema: z.ZodObject<{
|
|
1081
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1050
1082
|
data: z.ZodArray<z.ZodObject<{
|
|
1051
1083
|
id: z.ZodString;
|
|
1052
1084
|
name: z.ZodArray<z.ZodObject<{
|
|
@@ -1088,7 +1120,39 @@ declare class GetMenuItemCategories extends AbstractApiRequest<typeof getMenuIte
|
|
|
1088
1120
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1089
1121
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1090
1122
|
}, z.core.$strip>;
|
|
1091
|
-
}, z.core.$strip
|
|
1123
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1124
|
+
id: z.ZodString;
|
|
1125
|
+
name: z.ZodArray<z.ZodObject<{
|
|
1126
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1127
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1128
|
+
}, z.core.$strip>>;
|
|
1129
|
+
description: z.ZodArray<z.ZodObject<{
|
|
1130
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1131
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1132
|
+
}, z.core.$strip>>;
|
|
1133
|
+
sorting: z.ZodCoercedNumber<unknown>;
|
|
1134
|
+
suspended: z.ZodBoolean;
|
|
1135
|
+
images: z.ZodArray<z.ZodObject<{
|
|
1136
|
+
id: z.ZodString;
|
|
1137
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
1138
|
+
contentUrl: z.ZodURL;
|
|
1139
|
+
filePath: z.ZodString;
|
|
1140
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1141
|
+
createdAt: z.ZodString;
|
|
1142
|
+
updatedAt: z.ZodString;
|
|
1143
|
+
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1144
|
+
id: z.ZodString;
|
|
1145
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
1146
|
+
contentUrl: z.ZodURL;
|
|
1147
|
+
filePath: z.ZodString;
|
|
1148
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1149
|
+
createdAt: z.ZodString;
|
|
1150
|
+
updatedAt: z.ZodString;
|
|
1151
|
+
}, z.core.$strip>>>;
|
|
1152
|
+
}, z.core.$strip>>;
|
|
1153
|
+
createdAt: z.ZodString;
|
|
1154
|
+
updatedAt: z.ZodString;
|
|
1155
|
+
}, z.core.$strip>>]>;
|
|
1092
1156
|
readonly querySchema: z.ZodObject<{
|
|
1093
1157
|
suspended: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
1094
1158
|
'order[nameSort]': z.ZodOptional<z.ZodEnum<{
|
|
@@ -1173,7 +1237,7 @@ declare const getMenuItemCategoriesFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
|
1173
1237
|
type GetMenuItemCategoriesFromPointOfSaleQueryParams = z.infer<typeof getMenuItemCategoriesFromPointOfSaleQuerySchema>;
|
|
1174
1238
|
declare const getMenuItemCategoriesFromPointOfSaleInputSchema: z.ZodUndefined;
|
|
1175
1239
|
type GetMenuItemCategoriesFromPointOfSaleInput = z.input<typeof getMenuItemCategoriesFromPointOfSaleInputSchema>;
|
|
1176
|
-
declare const getMenuItemCategoriesFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
1240
|
+
declare const getMenuItemCategoriesFromPointOfSaleResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1177
1241
|
data: z.ZodArray<z.ZodObject<{
|
|
1178
1242
|
id: z.ZodString;
|
|
1179
1243
|
name: z.ZodArray<z.ZodObject<{
|
|
@@ -1215,14 +1279,46 @@ declare const getMenuItemCategoriesFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
|
1215
1279
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1216
1280
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1217
1281
|
}, z.core.$strip>;
|
|
1218
|
-
}, z.core.$strip
|
|
1282
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1283
|
+
id: z.ZodString;
|
|
1284
|
+
name: z.ZodArray<z.ZodObject<{
|
|
1285
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1286
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1287
|
+
}, z.core.$strip>>;
|
|
1288
|
+
description: z.ZodArray<z.ZodObject<{
|
|
1289
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1290
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1291
|
+
}, z.core.$strip>>;
|
|
1292
|
+
sorting: z.ZodCoercedNumber<unknown>;
|
|
1293
|
+
suspended: z.ZodBoolean;
|
|
1294
|
+
images: z.ZodArray<z.ZodObject<{
|
|
1295
|
+
id: z.ZodString;
|
|
1296
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
1297
|
+
contentUrl: z.ZodURL;
|
|
1298
|
+
filePath: z.ZodString;
|
|
1299
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1300
|
+
createdAt: z.ZodString;
|
|
1301
|
+
updatedAt: z.ZodString;
|
|
1302
|
+
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1303
|
+
id: z.ZodString;
|
|
1304
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
1305
|
+
contentUrl: z.ZodURL;
|
|
1306
|
+
filePath: z.ZodString;
|
|
1307
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1308
|
+
createdAt: z.ZodString;
|
|
1309
|
+
updatedAt: z.ZodString;
|
|
1310
|
+
}, z.core.$strip>>>;
|
|
1311
|
+
}, z.core.$strip>>;
|
|
1312
|
+
createdAt: z.ZodString;
|
|
1313
|
+
updatedAt: z.ZodString;
|
|
1314
|
+
}, z.core.$strip>>]>;
|
|
1219
1315
|
type GetMenuItemCategoriesFromPointOfSaleResponse = z.infer<typeof getMenuItemCategoriesFromPointOfSaleResponseSchema>;
|
|
1220
1316
|
declare class GetMenuItemCategoriesFromPointOfSale extends AbstractApiRequest<typeof getMenuItemCategoriesFromPointOfSaleInputSchema, typeof getMenuItemCategoriesFromPointOfSaleResponseSchema, GetMenuItemCategoriesFromPointOfSaleQueryParams> {
|
|
1221
1317
|
readonly method: "GET";
|
|
1222
1318
|
readonly contentType: "application/json";
|
|
1223
1319
|
readonly accept: "application/json";
|
|
1224
1320
|
readonly inputSchema: z.ZodUndefined;
|
|
1225
|
-
readonly outputSchema: z.ZodObject<{
|
|
1321
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1226
1322
|
data: z.ZodArray<z.ZodObject<{
|
|
1227
1323
|
id: z.ZodString;
|
|
1228
1324
|
name: z.ZodArray<z.ZodObject<{
|
|
@@ -1264,7 +1360,39 @@ declare class GetMenuItemCategoriesFromPointOfSale extends AbstractApiRequest<ty
|
|
|
1264
1360
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1265
1361
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1266
1362
|
}, z.core.$strip>;
|
|
1267
|
-
}, z.core.$strip
|
|
1363
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1364
|
+
id: z.ZodString;
|
|
1365
|
+
name: z.ZodArray<z.ZodObject<{
|
|
1366
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1367
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1368
|
+
}, z.core.$strip>>;
|
|
1369
|
+
description: z.ZodArray<z.ZodObject<{
|
|
1370
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1371
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1372
|
+
}, z.core.$strip>>;
|
|
1373
|
+
sorting: z.ZodCoercedNumber<unknown>;
|
|
1374
|
+
suspended: z.ZodBoolean;
|
|
1375
|
+
images: z.ZodArray<z.ZodObject<{
|
|
1376
|
+
id: z.ZodString;
|
|
1377
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
1378
|
+
contentUrl: z.ZodURL;
|
|
1379
|
+
filePath: z.ZodString;
|
|
1380
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1381
|
+
createdAt: z.ZodString;
|
|
1382
|
+
updatedAt: z.ZodString;
|
|
1383
|
+
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1384
|
+
id: z.ZodString;
|
|
1385
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
1386
|
+
contentUrl: z.ZodURL;
|
|
1387
|
+
filePath: z.ZodString;
|
|
1388
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1389
|
+
createdAt: z.ZodString;
|
|
1390
|
+
updatedAt: z.ZodString;
|
|
1391
|
+
}, z.core.$strip>>>;
|
|
1392
|
+
}, z.core.$strip>>;
|
|
1393
|
+
createdAt: z.ZodString;
|
|
1394
|
+
updatedAt: z.ZodString;
|
|
1395
|
+
}, z.core.$strip>>]>;
|
|
1268
1396
|
readonly querySchema: z.ZodObject<{
|
|
1269
1397
|
suspended: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
1270
1398
|
'order[nameSort]': z.ZodOptional<z.ZodEnum<{
|
|
@@ -1742,7 +1870,7 @@ declare const getMenuItemModifiersQuerySchema: z.ZodObject<{
|
|
|
1742
1870
|
type GetMenuItemModifiersQueryParams = z.infer<typeof getMenuItemModifiersQuerySchema>;
|
|
1743
1871
|
declare const getMenuItemModifiersInputSchema: z.ZodUndefined;
|
|
1744
1872
|
type GetMenuItemModifiersInput = z.input<typeof getMenuItemModifiersInputSchema>;
|
|
1745
|
-
declare const getMenuItemModifiersResponseSchema: z.ZodObject<{
|
|
1873
|
+
declare const getMenuItemModifiersResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1746
1874
|
data: z.ZodArray<z.ZodObject<{
|
|
1747
1875
|
id: z.ZodString;
|
|
1748
1876
|
targetItemType: z.ZodEnum<{
|
|
@@ -1776,14 +1904,38 @@ declare const getMenuItemModifiersResponseSchema: z.ZodObject<{
|
|
|
1776
1904
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1777
1905
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1778
1906
|
}, z.core.$strip>;
|
|
1779
|
-
}, z.core.$strip
|
|
1907
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1908
|
+
id: z.ZodString;
|
|
1909
|
+
targetItemType: z.ZodEnum<{
|
|
1910
|
+
ITEM: "ITEM";
|
|
1911
|
+
BUNDLE: "BUNDLE";
|
|
1912
|
+
}>;
|
|
1913
|
+
name: z.ZodArray<z.ZodObject<{
|
|
1914
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1915
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1916
|
+
}, z.core.$strip>>;
|
|
1917
|
+
description: z.ZodArray<z.ZodObject<{
|
|
1918
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1919
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1920
|
+
}, z.core.$strip>>;
|
|
1921
|
+
sorting: z.ZodCoercedNumber<unknown>;
|
|
1922
|
+
minSelection: z.ZodCoercedNumber<unknown>;
|
|
1923
|
+
maxSelection: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1924
|
+
repeatable: z.ZodBoolean;
|
|
1925
|
+
items: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown>>>;
|
|
1926
|
+
choices: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown>>>;
|
|
1927
|
+
priceOverrides: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown>>>;
|
|
1928
|
+
variantOverrides: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown>>>;
|
|
1929
|
+
createdAt: z.ZodString;
|
|
1930
|
+
updatedAt: z.ZodString;
|
|
1931
|
+
}, z.core.$strip>>]>;
|
|
1780
1932
|
type GetMenuItemModifiersResponse = z.infer<typeof getMenuItemModifiersResponseSchema>;
|
|
1781
1933
|
declare class GetMenuItemModifiers extends AbstractApiRequest<typeof getMenuItemModifiersInputSchema, typeof getMenuItemModifiersResponseSchema, GetMenuItemModifiersQueryParams> {
|
|
1782
1934
|
readonly method: "GET";
|
|
1783
1935
|
readonly contentType: "application/json";
|
|
1784
1936
|
readonly accept: "application/json";
|
|
1785
1937
|
readonly inputSchema: z.ZodUndefined;
|
|
1786
|
-
readonly outputSchema: z.ZodObject<{
|
|
1938
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1787
1939
|
data: z.ZodArray<z.ZodObject<{
|
|
1788
1940
|
id: z.ZodString;
|
|
1789
1941
|
targetItemType: z.ZodEnum<{
|
|
@@ -1817,7 +1969,31 @@ declare class GetMenuItemModifiers extends AbstractApiRequest<typeof getMenuItem
|
|
|
1817
1969
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1818
1970
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1819
1971
|
}, z.core.$strip>;
|
|
1820
|
-
}, z.core.$strip
|
|
1972
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1973
|
+
id: z.ZodString;
|
|
1974
|
+
targetItemType: z.ZodEnum<{
|
|
1975
|
+
ITEM: "ITEM";
|
|
1976
|
+
BUNDLE: "BUNDLE";
|
|
1977
|
+
}>;
|
|
1978
|
+
name: z.ZodArray<z.ZodObject<{
|
|
1979
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1980
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1981
|
+
}, z.core.$strip>>;
|
|
1982
|
+
description: z.ZodArray<z.ZodObject<{
|
|
1983
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1984
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1985
|
+
}, z.core.$strip>>;
|
|
1986
|
+
sorting: z.ZodCoercedNumber<unknown>;
|
|
1987
|
+
minSelection: z.ZodCoercedNumber<unknown>;
|
|
1988
|
+
maxSelection: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1989
|
+
repeatable: z.ZodBoolean;
|
|
1990
|
+
items: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown>>>;
|
|
1991
|
+
choices: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown>>>;
|
|
1992
|
+
priceOverrides: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown>>>;
|
|
1993
|
+
variantOverrides: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown>>>;
|
|
1994
|
+
createdAt: z.ZodString;
|
|
1995
|
+
updatedAt: z.ZodString;
|
|
1996
|
+
}, z.core.$strip>>]>;
|
|
1821
1997
|
readonly querySchema: z.ZodObject<{
|
|
1822
1998
|
repeatable: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
1823
1999
|
'minSelection[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -1914,7 +2090,7 @@ declare const getMenuItemModifiersFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
|
1914
2090
|
type GetMenuItemModifiersFromPointOfSaleQueryParams = z.infer<typeof getMenuItemModifiersFromPointOfSaleQuerySchema>;
|
|
1915
2091
|
declare const getMenuItemModifiersFromPointOfSaleInputSchema: z.ZodUndefined;
|
|
1916
2092
|
type GetMenuItemModifiersFromPointOfSaleInput = z.input<typeof getMenuItemModifiersFromPointOfSaleInputSchema>;
|
|
1917
|
-
declare const getMenuItemModifiersFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
2093
|
+
declare const getMenuItemModifiersFromPointOfSaleResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1918
2094
|
data: z.ZodArray<z.ZodObject<{
|
|
1919
2095
|
id: z.ZodString;
|
|
1920
2096
|
targetItemType: z.ZodEnum<{
|
|
@@ -1948,14 +2124,38 @@ declare const getMenuItemModifiersFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
|
1948
2124
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1949
2125
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1950
2126
|
}, z.core.$strip>;
|
|
1951
|
-
}, z.core.$strip
|
|
2127
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
2128
|
+
id: z.ZodString;
|
|
2129
|
+
targetItemType: z.ZodEnum<{
|
|
2130
|
+
ITEM: "ITEM";
|
|
2131
|
+
BUNDLE: "BUNDLE";
|
|
2132
|
+
}>;
|
|
2133
|
+
name: z.ZodArray<z.ZodObject<{
|
|
2134
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
2135
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
2136
|
+
}, z.core.$strip>>;
|
|
2137
|
+
description: z.ZodArray<z.ZodObject<{
|
|
2138
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
2139
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
2140
|
+
}, z.core.$strip>>;
|
|
2141
|
+
sorting: z.ZodCoercedNumber<unknown>;
|
|
2142
|
+
minSelection: z.ZodCoercedNumber<unknown>;
|
|
2143
|
+
maxSelection: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
2144
|
+
repeatable: z.ZodBoolean;
|
|
2145
|
+
items: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown>>>;
|
|
2146
|
+
choices: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown>>>;
|
|
2147
|
+
priceOverrides: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown>>>;
|
|
2148
|
+
variantOverrides: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown>>>;
|
|
2149
|
+
createdAt: z.ZodString;
|
|
2150
|
+
updatedAt: z.ZodString;
|
|
2151
|
+
}, z.core.$strip>>]>;
|
|
1952
2152
|
type GetMenuItemModifiersFromPointOfSaleResponse = z.infer<typeof getMenuItemModifiersFromPointOfSaleResponseSchema>;
|
|
1953
2153
|
declare class GetMenuItemModifiersFromPointOfSale extends AbstractApiRequest<typeof getMenuItemModifiersFromPointOfSaleInputSchema, typeof getMenuItemModifiersFromPointOfSaleResponseSchema, GetMenuItemModifiersFromPointOfSaleQueryParams> {
|
|
1954
2154
|
readonly method: "GET";
|
|
1955
2155
|
readonly contentType: "application/json";
|
|
1956
2156
|
readonly accept: "application/json";
|
|
1957
2157
|
readonly inputSchema: z.ZodUndefined;
|
|
1958
|
-
readonly outputSchema: z.ZodObject<{
|
|
2158
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1959
2159
|
data: z.ZodArray<z.ZodObject<{
|
|
1960
2160
|
id: z.ZodString;
|
|
1961
2161
|
targetItemType: z.ZodEnum<{
|
|
@@ -1989,7 +2189,31 @@ declare class GetMenuItemModifiersFromPointOfSale extends AbstractApiRequest<typ
|
|
|
1989
2189
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1990
2190
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1991
2191
|
}, z.core.$strip>;
|
|
1992
|
-
}, z.core.$strip
|
|
2192
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
2193
|
+
id: z.ZodString;
|
|
2194
|
+
targetItemType: z.ZodEnum<{
|
|
2195
|
+
ITEM: "ITEM";
|
|
2196
|
+
BUNDLE: "BUNDLE";
|
|
2197
|
+
}>;
|
|
2198
|
+
name: z.ZodArray<z.ZodObject<{
|
|
2199
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
2200
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
2201
|
+
}, z.core.$strip>>;
|
|
2202
|
+
description: z.ZodArray<z.ZodObject<{
|
|
2203
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
2204
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
2205
|
+
}, z.core.$strip>>;
|
|
2206
|
+
sorting: z.ZodCoercedNumber<unknown>;
|
|
2207
|
+
minSelection: z.ZodCoercedNumber<unknown>;
|
|
2208
|
+
maxSelection: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
2209
|
+
repeatable: z.ZodBoolean;
|
|
2210
|
+
items: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown>>>;
|
|
2211
|
+
choices: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown>>>;
|
|
2212
|
+
priceOverrides: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown>>>;
|
|
2213
|
+
variantOverrides: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/:id">, unknown>>>;
|
|
2214
|
+
createdAt: z.ZodString;
|
|
2215
|
+
updatedAt: z.ZodString;
|
|
2216
|
+
}, z.core.$strip>>]>;
|
|
1993
2217
|
readonly querySchema: z.ZodObject<{
|
|
1994
2218
|
repeatable: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
1995
2219
|
'minSelection[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -2336,7 +2560,7 @@ declare const getMenuItemPriceOverridesQuerySchema: z.ZodObject<{
|
|
|
2336
2560
|
type GetMenuItemPriceOverridesQueryParams = z.infer<typeof getMenuItemPriceOverridesQuerySchema>;
|
|
2337
2561
|
declare const getMenuItemPriceOverridesInputSchema: z.ZodUndefined;
|
|
2338
2562
|
type GetMenuItemPriceOverridesInput = z.input<typeof getMenuItemPriceOverridesInputSchema>;
|
|
2339
|
-
declare const getMenuItemPriceOverridesResponseSchema: z.ZodObject<{
|
|
2563
|
+
declare const getMenuItemPriceOverridesResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
2340
2564
|
data: z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2341
2565
|
type: z.ZodLiteral<"ITEM">;
|
|
2342
2566
|
fromItem: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id"> | null, unknown>>;
|
|
@@ -2364,14 +2588,32 @@ declare const getMenuItemPriceOverridesResponseSchema: z.ZodObject<{
|
|
|
2364
2588
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
2365
2589
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
2366
2590
|
}, z.core.$strip>;
|
|
2367
|
-
}, z.core.$strip
|
|
2591
|
+
}, z.core.$strip>, z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2592
|
+
type: z.ZodLiteral<"ITEM">;
|
|
2593
|
+
fromItem: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id"> | null, unknown>>;
|
|
2594
|
+
inModifier: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_modifiers/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_modifiers/:id"> | null, unknown>>;
|
|
2595
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2596
|
+
type: z.ZodLiteral<"MODIFIER">;
|
|
2597
|
+
fromModifier: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_modifiers/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_modifiers/:id"> | null, unknown>>;
|
|
2598
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
2599
|
+
id: z.ZodString;
|
|
2600
|
+
price: z.ZodString;
|
|
2601
|
+
referenceItem: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id"> | null, unknown>>;
|
|
2602
|
+
suspended: z.ZodBoolean;
|
|
2603
|
+
salesPrices: z.ZodArray<z.ZodObject<{
|
|
2604
|
+
salesMode: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown>>;
|
|
2605
|
+
price: z.ZodString;
|
|
2606
|
+
}, z.core.$strip>>;
|
|
2607
|
+
createdAt: z.ZodString;
|
|
2608
|
+
updatedAt: z.ZodString;
|
|
2609
|
+
}, z.core.$strip>>>]>;
|
|
2368
2610
|
type GetMenuItemPriceOverridesResponse = z.infer<typeof getMenuItemPriceOverridesResponseSchema>;
|
|
2369
2611
|
declare class GetMenuItemPriceOverrides extends AbstractApiRequest<typeof getMenuItemPriceOverridesInputSchema, typeof getMenuItemPriceOverridesResponseSchema, GetMenuItemPriceOverridesQueryParams> {
|
|
2370
2612
|
readonly method: "GET";
|
|
2371
2613
|
readonly contentType: "application/json";
|
|
2372
2614
|
readonly accept: "application/json";
|
|
2373
2615
|
readonly inputSchema: z.ZodUndefined;
|
|
2374
|
-
readonly outputSchema: z.ZodObject<{
|
|
2616
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
2375
2617
|
data: z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2376
2618
|
type: z.ZodLiteral<"ITEM">;
|
|
2377
2619
|
fromItem: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id"> | null, unknown>>;
|
|
@@ -2399,7 +2641,25 @@ declare class GetMenuItemPriceOverrides extends AbstractApiRequest<typeof getMen
|
|
|
2399
2641
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
2400
2642
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
2401
2643
|
}, z.core.$strip>;
|
|
2402
|
-
}, z.core.$strip
|
|
2644
|
+
}, z.core.$strip>, z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2645
|
+
type: z.ZodLiteral<"ITEM">;
|
|
2646
|
+
fromItem: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id"> | null, unknown>>;
|
|
2647
|
+
inModifier: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_modifiers/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_modifiers/:id"> | null, unknown>>;
|
|
2648
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2649
|
+
type: z.ZodLiteral<"MODIFIER">;
|
|
2650
|
+
fromModifier: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_modifiers/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_modifiers/:id"> | null, unknown>>;
|
|
2651
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
2652
|
+
id: z.ZodString;
|
|
2653
|
+
price: z.ZodString;
|
|
2654
|
+
referenceItem: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id"> | null, unknown>>;
|
|
2655
|
+
suspended: z.ZodBoolean;
|
|
2656
|
+
salesPrices: z.ZodArray<z.ZodObject<{
|
|
2657
|
+
salesMode: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/sales_modes/:id">, unknown>>;
|
|
2658
|
+
price: z.ZodString;
|
|
2659
|
+
}, z.core.$strip>>;
|
|
2660
|
+
createdAt: z.ZodString;
|
|
2661
|
+
updatedAt: z.ZodString;
|
|
2662
|
+
}, z.core.$strip>>>]>;
|
|
2403
2663
|
readonly querySchema: z.ZodObject<{
|
|
2404
2664
|
suspended: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
2405
2665
|
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
@@ -3187,7 +3447,7 @@ declare const getMenuItemsQuerySchema: z.ZodObject<{
|
|
|
3187
3447
|
type GetMenuItemsQueryParams = z.infer<typeof getMenuItemsQuerySchema>;
|
|
3188
3448
|
declare const getMenuItemsInputSchema: z.ZodUndefined;
|
|
3189
3449
|
type GetMenuItemsInput = z.input<typeof getMenuItemsInputSchema>;
|
|
3190
|
-
declare const getMenuItemsResponseSchema: z.ZodObject<{
|
|
3450
|
+
declare const getMenuItemsResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
3191
3451
|
data: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
3192
3452
|
pagination: z.ZodObject<{
|
|
3193
3453
|
from: z.ZodCoercedNumber<unknown>;
|
|
@@ -3197,14 +3457,14 @@ declare const getMenuItemsResponseSchema: z.ZodObject<{
|
|
|
3197
3457
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
3198
3458
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
3199
3459
|
}, z.core.$strip>;
|
|
3200
|
-
}, z.core.$strip>;
|
|
3460
|
+
}, z.core.$strip>, z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>]>;
|
|
3201
3461
|
type GetMenuItemsResponse = z.infer<typeof getMenuItemsResponseSchema>;
|
|
3202
3462
|
declare class GetMenuItems extends AbstractApiRequest<typeof getMenuItemsInputSchema, typeof getMenuItemsResponseSchema, GetMenuItemsQueryParams> {
|
|
3203
3463
|
readonly method: "GET";
|
|
3204
3464
|
readonly contentType: "application/json";
|
|
3205
3465
|
readonly accept: "application/json";
|
|
3206
3466
|
readonly inputSchema: z.ZodUndefined;
|
|
3207
|
-
readonly outputSchema: z.ZodObject<{
|
|
3467
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
3208
3468
|
data: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
3209
3469
|
pagination: z.ZodObject<{
|
|
3210
3470
|
from: z.ZodCoercedNumber<unknown>;
|
|
@@ -3214,7 +3474,7 @@ declare class GetMenuItems extends AbstractApiRequest<typeof getMenuItemsInputSc
|
|
|
3214
3474
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
3215
3475
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
3216
3476
|
}, z.core.$strip>;
|
|
3217
|
-
}, z.core.$strip>;
|
|
3477
|
+
}, z.core.$strip>, z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>]>;
|
|
3218
3478
|
readonly querySchema: z.ZodObject<{
|
|
3219
3479
|
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown>>, z.ZodArray<z.ZodUUID>, z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown>>>]>>;
|
|
3220
3480
|
countable: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
@@ -3492,7 +3752,7 @@ declare const getMenuItemsFromMenuItemCategoryQuerySchema: z.ZodObject<{
|
|
|
3492
3752
|
type GetMenuItemsFromMenuItemCategoryQueryParams = z.infer<typeof getMenuItemsFromMenuItemCategoryQuerySchema>;
|
|
3493
3753
|
declare const getMenuItemsFromMenuItemCategoryInputSchema: z.ZodUndefined;
|
|
3494
3754
|
type GetMenuItemsFromMenuItemCategoryInput = z.input<typeof getMenuItemsFromMenuItemCategoryInputSchema>;
|
|
3495
|
-
declare const getMenuItemsFromMenuItemCategoryResponseSchema: z.ZodObject<{
|
|
3755
|
+
declare const getMenuItemsFromMenuItemCategoryResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
3496
3756
|
data: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
3497
3757
|
pagination: z.ZodObject<{
|
|
3498
3758
|
from: z.ZodCoercedNumber<unknown>;
|
|
@@ -3502,14 +3762,14 @@ declare const getMenuItemsFromMenuItemCategoryResponseSchema: z.ZodObject<{
|
|
|
3502
3762
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
3503
3763
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
3504
3764
|
}, z.core.$strip>;
|
|
3505
|
-
}, z.core.$strip>;
|
|
3765
|
+
}, z.core.$strip>, z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>]>;
|
|
3506
3766
|
type GetMenuItemsFromMenuItemCategoryResponse = z.infer<typeof getMenuItemsFromMenuItemCategoryResponseSchema>;
|
|
3507
3767
|
declare class GetMenuItemsFromMenuItemCategory extends AbstractApiRequest<typeof getMenuItemsFromMenuItemCategoryInputSchema, typeof getMenuItemsFromMenuItemCategoryResponseSchema, GetMenuItemsFromMenuItemCategoryQueryParams> {
|
|
3508
3768
|
readonly method: "GET";
|
|
3509
3769
|
readonly contentType: "application/json";
|
|
3510
3770
|
readonly accept: "application/json";
|
|
3511
3771
|
readonly inputSchema: z.ZodUndefined;
|
|
3512
|
-
readonly outputSchema: z.ZodObject<{
|
|
3772
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
3513
3773
|
data: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
3514
3774
|
pagination: z.ZodObject<{
|
|
3515
3775
|
from: z.ZodCoercedNumber<unknown>;
|
|
@@ -3519,7 +3779,7 @@ declare class GetMenuItemsFromMenuItemCategory extends AbstractApiRequest<typeof
|
|
|
3519
3779
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
3520
3780
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
3521
3781
|
}, z.core.$strip>;
|
|
3522
|
-
}, z.core.$strip>;
|
|
3782
|
+
}, z.core.$strip>, z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>]>;
|
|
3523
3783
|
readonly querySchema: z.ZodObject<{
|
|
3524
3784
|
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown>>, z.ZodArray<z.ZodUUID>, z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown>>>]>>;
|
|
3525
3785
|
countable: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
@@ -3798,7 +4058,7 @@ declare const getMenuItemsFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
|
3798
4058
|
type GetMenuItemsFromPointOfSaleQueryParams = z.infer<typeof getMenuItemsFromPointOfSaleQuerySchema>;
|
|
3799
4059
|
declare const getMenuItemsFromPointOfSaleInputSchema: z.ZodUndefined;
|
|
3800
4060
|
type GetMenuItemsFromPointOfSaleInput = z.input<typeof getMenuItemsFromPointOfSaleInputSchema>;
|
|
3801
|
-
declare const getMenuItemsFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
4061
|
+
declare const getMenuItemsFromPointOfSaleResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
3802
4062
|
data: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
3803
4063
|
pagination: z.ZodObject<{
|
|
3804
4064
|
from: z.ZodCoercedNumber<unknown>;
|
|
@@ -3808,14 +4068,14 @@ declare const getMenuItemsFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
|
3808
4068
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
3809
4069
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
3810
4070
|
}, z.core.$strip>;
|
|
3811
|
-
}, z.core.$strip>;
|
|
4071
|
+
}, z.core.$strip>, z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>]>;
|
|
3812
4072
|
type GetMenuItemsFromPointOfSaleResponse = z.infer<typeof getMenuItemsFromPointOfSaleResponseSchema>;
|
|
3813
4073
|
declare class GetMenuItemsFromPointOfSale extends AbstractApiRequest<typeof getMenuItemsFromPointOfSaleInputSchema, typeof getMenuItemsFromPointOfSaleResponseSchema, GetMenuItemsFromPointOfSaleQueryParams> {
|
|
3814
4074
|
readonly method: "GET";
|
|
3815
4075
|
readonly contentType: "application/json";
|
|
3816
4076
|
readonly accept: "application/json";
|
|
3817
4077
|
readonly inputSchema: z.ZodUndefined;
|
|
3818
|
-
readonly outputSchema: z.ZodObject<{
|
|
4078
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
3819
4079
|
data: z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>;
|
|
3820
4080
|
pagination: z.ZodObject<{
|
|
3821
4081
|
from: z.ZodCoercedNumber<unknown>;
|
|
@@ -3825,7 +4085,7 @@ declare class GetMenuItemsFromPointOfSale extends AbstractApiRequest<typeof getM
|
|
|
3825
4085
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
3826
4086
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
3827
4087
|
}, z.core.$strip>;
|
|
3828
|
-
}, z.core.$strip>;
|
|
4088
|
+
}, z.core.$strip>, z.ZodArray<z.ZodType<MenuItem, unknown, z.core.$ZodTypeInternals<MenuItem, unknown>>>]>;
|
|
3829
4089
|
readonly querySchema: z.ZodObject<{
|
|
3830
4090
|
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown>>, z.ZodArray<z.ZodUUID>, z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_items/:id">, unknown>>>]>>;
|
|
3831
4091
|
countable: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
@@ -4083,7 +4343,7 @@ declare const getMenuVersionsQuerySchema: z.ZodObject<{
|
|
|
4083
4343
|
type GetMenuVersionsQueryParams = z.infer<typeof getMenuVersionsQuerySchema>;
|
|
4084
4344
|
declare const getMenuVersionsInputSchema: z.ZodUndefined;
|
|
4085
4345
|
type GetMenuVersionsInput = z.input<typeof getMenuVersionsInputSchema>;
|
|
4086
|
-
declare const getMenuVersionsResponseSchema: z.ZodObject<{
|
|
4346
|
+
declare const getMenuVersionsResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
4087
4347
|
data: z.ZodArray<z.ZodObject<{
|
|
4088
4348
|
id: z.ZodString;
|
|
4089
4349
|
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
@@ -4100,14 +4360,21 @@ declare const getMenuVersionsResponseSchema: z.ZodObject<{
|
|
|
4100
4360
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
4101
4361
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
4102
4362
|
}, z.core.$strip>;
|
|
4103
|
-
}, z.core.$strip
|
|
4363
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
4364
|
+
id: z.ZodString;
|
|
4365
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
4366
|
+
contentUrl: z.ZodURL;
|
|
4367
|
+
filePath: z.ZodString;
|
|
4368
|
+
createdAt: z.ZodString;
|
|
4369
|
+
updatedAt: z.ZodString;
|
|
4370
|
+
}, z.core.$strip>>]>;
|
|
4104
4371
|
type GetMenuVersionsResponse = z.infer<typeof getMenuVersionsResponseSchema>;
|
|
4105
4372
|
declare class GetMenuVersions extends AbstractApiRequest<typeof getMenuVersionsInputSchema, typeof getMenuVersionsResponseSchema> {
|
|
4106
4373
|
readonly method: "GET";
|
|
4107
4374
|
readonly contentType: "application/json";
|
|
4108
4375
|
readonly accept: "application/json";
|
|
4109
4376
|
readonly inputSchema: z.ZodUndefined;
|
|
4110
|
-
readonly outputSchema: z.ZodObject<{
|
|
4377
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
4111
4378
|
data: z.ZodArray<z.ZodObject<{
|
|
4112
4379
|
id: z.ZodString;
|
|
4113
4380
|
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
@@ -4124,7 +4391,14 @@ declare class GetMenuVersions extends AbstractApiRequest<typeof getMenuVersionsI
|
|
|
4124
4391
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
4125
4392
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
4126
4393
|
}, z.core.$strip>;
|
|
4127
|
-
}, z.core.$strip
|
|
4394
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
4395
|
+
id: z.ZodString;
|
|
4396
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
4397
|
+
contentUrl: z.ZodURL;
|
|
4398
|
+
filePath: z.ZodString;
|
|
4399
|
+
createdAt: z.ZodString;
|
|
4400
|
+
updatedAt: z.ZodString;
|
|
4401
|
+
}, z.core.$strip>>]>;
|
|
4128
4402
|
readonly querySchema: z.ZodObject<{
|
|
4129
4403
|
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
4130
4404
|
}, z.core.$strip>;
|