@deliverart/sdk-js-menu 2.5.1 → 2.5.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/dist/index.cjs +96 -58
- package/dist/index.d.cts +147 -14
- package/dist/index.d.ts +147 -14
- package/dist/index.js +93 -56
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -770,7 +770,6 @@ declare const writableMenuItemSchema: z.ZodObject<{
|
|
|
770
770
|
}, z.core.$strip>;
|
|
771
771
|
declare const menuItemCategorySchema: z.ZodObject<{
|
|
772
772
|
id: z.ZodString;
|
|
773
|
-
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>>;
|
|
774
773
|
name: z.ZodArray<z.ZodObject<{
|
|
775
774
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
776
775
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -805,7 +804,6 @@ declare const menuItemCategorySchema: z.ZodObject<{
|
|
|
805
804
|
type MenuItemCategory = z.infer<typeof menuItemCategorySchema>;
|
|
806
805
|
declare const menuItemCategoryDetailsSchema: z.ZodObject<{
|
|
807
806
|
id: z.ZodString;
|
|
808
|
-
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>>;
|
|
809
807
|
name: z.ZodArray<z.ZodObject<{
|
|
810
808
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
811
809
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -836,11 +834,11 @@ declare const menuItemCategoryDetailsSchema: z.ZodObject<{
|
|
|
836
834
|
}, z.core.$strip>>>;
|
|
837
835
|
createdAt: z.ZodString;
|
|
838
836
|
updatedAt: z.ZodString;
|
|
837
|
+
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>>;
|
|
839
838
|
items: z.ZodDefault<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>>>>;
|
|
840
839
|
}, z.core.$strip>;
|
|
841
840
|
type MenuItemCategoryDetails = z.infer<typeof menuItemCategoryDetailsSchema>;
|
|
842
841
|
declare const writableMenuItemCategorySchema: z.ZodObject<{
|
|
843
|
-
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>>;
|
|
844
842
|
name: z.ZodArray<z.ZodObject<{
|
|
845
843
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
846
844
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -851,6 +849,7 @@ declare const writableMenuItemCategorySchema: z.ZodObject<{
|
|
|
851
849
|
}, z.core.$strip>>>;
|
|
852
850
|
suspended: z.ZodDefault<z.ZodBoolean>;
|
|
853
851
|
sorting: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
852
|
+
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>>;
|
|
854
853
|
images: z.ZodDefault<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown>>>>;
|
|
855
854
|
}, z.core.$strip>;
|
|
856
855
|
declare const menuItemModifierSchema: z.ZodObject<{
|
|
@@ -1392,7 +1391,6 @@ declare const menuDtoSchema: z.ZodObject<{
|
|
|
1392
1391
|
type MenuDto = z.infer<typeof menuDtoSchema>;
|
|
1393
1392
|
|
|
1394
1393
|
declare const createMenuItemCategoryInputSchema: z.ZodObject<{
|
|
1395
|
-
pointOfSale: z.ZodNonOptional<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>>>;
|
|
1396
1394
|
name: z.ZodNonOptional<z.ZodArray<z.ZodObject<{
|
|
1397
1395
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
1398
1396
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -1403,12 +1401,12 @@ declare const createMenuItemCategoryInputSchema: z.ZodObject<{
|
|
|
1403
1401
|
}, z.core.$strip>>>>;
|
|
1404
1402
|
suspended: z.ZodNonOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1405
1403
|
sorting: z.ZodNonOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
1404
|
+
pointOfSale: z.ZodNonOptional<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>>>;
|
|
1406
1405
|
images: z.ZodNonOptional<z.ZodDefault<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown>>>>>;
|
|
1407
1406
|
}, z.core.$strip>;
|
|
1408
1407
|
type CreateMenuItemCategoryInput = z.input<typeof createMenuItemCategoryInputSchema>;
|
|
1409
1408
|
declare const createMenuItemCategoryResponseSchema: z.ZodObject<{
|
|
1410
1409
|
id: z.ZodString;
|
|
1411
|
-
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>>;
|
|
1412
1410
|
name: z.ZodArray<z.ZodObject<{
|
|
1413
1411
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
1414
1412
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -1439,6 +1437,7 @@ declare const createMenuItemCategoryResponseSchema: z.ZodObject<{
|
|
|
1439
1437
|
}, z.core.$strip>>>;
|
|
1440
1438
|
createdAt: z.ZodString;
|
|
1441
1439
|
updatedAt: z.ZodString;
|
|
1440
|
+
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>>;
|
|
1442
1441
|
items: z.ZodDefault<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>>>>;
|
|
1443
1442
|
}, z.core.$strip>;
|
|
1444
1443
|
type CreateMenuItemCategoryResponse = z.output<typeof createMenuItemCategoryResponseSchema>;
|
|
@@ -1447,7 +1446,6 @@ declare class CreateMenuItemCategory extends AbstractApiRequest<typeof createMen
|
|
|
1447
1446
|
readonly contentType = "application/json";
|
|
1448
1447
|
readonly accept = "application/json";
|
|
1449
1448
|
readonly inputSchema: z.ZodObject<{
|
|
1450
|
-
pointOfSale: z.ZodNonOptional<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>>>;
|
|
1451
1449
|
name: z.ZodNonOptional<z.ZodArray<z.ZodObject<{
|
|
1452
1450
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
1453
1451
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -1458,11 +1456,11 @@ declare class CreateMenuItemCategory extends AbstractApiRequest<typeof createMen
|
|
|
1458
1456
|
}, z.core.$strip>>>>;
|
|
1459
1457
|
suspended: z.ZodNonOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1460
1458
|
sorting: z.ZodNonOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
1459
|
+
pointOfSale: z.ZodNonOptional<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>>>;
|
|
1461
1460
|
images: z.ZodNonOptional<z.ZodDefault<z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/images/:id">, unknown>>>>>;
|
|
1462
1461
|
}, z.core.$strip>;
|
|
1463
1462
|
readonly outputSchema: z.ZodObject<{
|
|
1464
1463
|
id: z.ZodString;
|
|
1465
|
-
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>>;
|
|
1466
1464
|
name: z.ZodArray<z.ZodObject<{
|
|
1467
1465
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
1468
1466
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -1493,6 +1491,7 @@ declare class CreateMenuItemCategory extends AbstractApiRequest<typeof createMen
|
|
|
1493
1491
|
}, z.core.$strip>>>;
|
|
1494
1492
|
createdAt: z.ZodString;
|
|
1495
1493
|
updatedAt: z.ZodString;
|
|
1494
|
+
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>>;
|
|
1496
1495
|
items: z.ZodDefault<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>>>>;
|
|
1497
1496
|
}, z.core.$strip>;
|
|
1498
1497
|
readonly querySchema: undefined;
|
|
@@ -1538,7 +1537,6 @@ type GetMenuItemCategoriesInput = z.input<typeof getMenuItemCategoriesInputSchem
|
|
|
1538
1537
|
declare const getMenuItemCategoriesResponseSchema: z.ZodObject<{
|
|
1539
1538
|
data: z.ZodArray<z.ZodObject<{
|
|
1540
1539
|
id: z.ZodString;
|
|
1541
|
-
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>>;
|
|
1542
1540
|
name: z.ZodArray<z.ZodObject<{
|
|
1543
1541
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
1544
1542
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -1588,7 +1586,6 @@ declare class GetMenuItemCategories extends AbstractApiRequest<typeof getMenuIte
|
|
|
1588
1586
|
readonly outputSchema: z.ZodObject<{
|
|
1589
1587
|
data: z.ZodArray<z.ZodObject<{
|
|
1590
1588
|
id: z.ZodString;
|
|
1591
|
-
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>>;
|
|
1592
1589
|
name: z.ZodArray<z.ZodObject<{
|
|
1593
1590
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
1594
1591
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -1653,11 +1650,146 @@ declare class GetMenuItemCategories extends AbstractApiRequest<typeof getMenuIte
|
|
|
1653
1650
|
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuItemCategory>;
|
|
1654
1651
|
}
|
|
1655
1652
|
|
|
1653
|
+
declare const getMenuItemCategoriesFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
1654
|
+
suspended: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
1655
|
+
'order[sorting]': z.ZodOptional<z.ZodEnum<{
|
|
1656
|
+
asc: "asc";
|
|
1657
|
+
desc: "desc";
|
|
1658
|
+
}>>;
|
|
1659
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1660
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
1661
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1662
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
1663
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1664
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
1665
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1666
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
1667
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1668
|
+
}, z.core.$strip>;
|
|
1669
|
+
type GetMenuItemCategoriesFromPointOfSaleQueryParams = z.infer<typeof getMenuItemCategoriesFromPointOfSaleQuerySchema>;
|
|
1670
|
+
declare const getMenuItemCategoriesFromPointOfSaleInputSchema: z.ZodUndefined;
|
|
1671
|
+
type GetMenuItemCategoriesFromPointOfSaleInput = z.input<typeof getMenuItemCategoriesFromPointOfSaleInputSchema>;
|
|
1672
|
+
declare const getMenuItemCategoriesFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
1673
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1674
|
+
id: z.ZodString;
|
|
1675
|
+
name: z.ZodArray<z.ZodObject<{
|
|
1676
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1677
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1678
|
+
}, z.core.$strip>>;
|
|
1679
|
+
description: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1680
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1681
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1682
|
+
}, z.core.$strip>>>;
|
|
1683
|
+
sorting: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1684
|
+
suspended: z.ZodDefault<z.ZodBoolean>;
|
|
1685
|
+
images: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1686
|
+
id: z.ZodString;
|
|
1687
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
1688
|
+
contentUrl: z.ZodURL;
|
|
1689
|
+
filePath: z.ZodString;
|
|
1690
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1691
|
+
createdAt: z.ZodString;
|
|
1692
|
+
updatedAt: z.ZodString;
|
|
1693
|
+
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1694
|
+
id: z.ZodString;
|
|
1695
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
1696
|
+
contentUrl: z.ZodURL;
|
|
1697
|
+
filePath: z.ZodString;
|
|
1698
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1699
|
+
createdAt: z.ZodString;
|
|
1700
|
+
updatedAt: z.ZodString;
|
|
1701
|
+
}, z.core.$strip>>>;
|
|
1702
|
+
}, z.core.$strip>>>;
|
|
1703
|
+
createdAt: z.ZodString;
|
|
1704
|
+
updatedAt: z.ZodString;
|
|
1705
|
+
}, z.core.$strip>>;
|
|
1706
|
+
pagination: z.ZodObject<{
|
|
1707
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1708
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1709
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1710
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1711
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1712
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1713
|
+
}, z.core.$strip>;
|
|
1714
|
+
}, z.core.$strip>;
|
|
1715
|
+
type GetMenuItemCategoriesFromPointOfSaleResponse = z.infer<typeof getMenuItemCategoriesFromPointOfSaleResponseSchema>;
|
|
1716
|
+
declare class GetMenuItemCategoriesFromPointOfSale extends AbstractApiRequest<typeof getMenuItemCategoriesFromPointOfSaleInputSchema, typeof getMenuItemCategoriesFromPointOfSaleResponseSchema, GetMenuItemCategoriesFromPointOfSaleQueryParams> {
|
|
1717
|
+
readonly method = "GET";
|
|
1718
|
+
readonly contentType = "application/json";
|
|
1719
|
+
readonly accept = "application/json";
|
|
1720
|
+
readonly inputSchema: z.ZodUndefined;
|
|
1721
|
+
readonly outputSchema: z.ZodObject<{
|
|
1722
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1723
|
+
id: z.ZodString;
|
|
1724
|
+
name: z.ZodArray<z.ZodObject<{
|
|
1725
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1726
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1727
|
+
}, z.core.$strip>>;
|
|
1728
|
+
description: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1729
|
+
locale: z.ZodNonOptional<z.ZodString>;
|
|
1730
|
+
text: z.ZodNonOptional<z.ZodString>;
|
|
1731
|
+
}, z.core.$strip>>>;
|
|
1732
|
+
sorting: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1733
|
+
suspended: z.ZodDefault<z.ZodBoolean>;
|
|
1734
|
+
images: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1735
|
+
id: z.ZodString;
|
|
1736
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
1737
|
+
contentUrl: z.ZodURL;
|
|
1738
|
+
filePath: z.ZodString;
|
|
1739
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1740
|
+
createdAt: z.ZodString;
|
|
1741
|
+
updatedAt: z.ZodString;
|
|
1742
|
+
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1743
|
+
id: z.ZodString;
|
|
1744
|
+
variant: z.ZodNullable<z.ZodString>;
|
|
1745
|
+
contentUrl: z.ZodURL;
|
|
1746
|
+
filePath: z.ZodString;
|
|
1747
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1748
|
+
createdAt: z.ZodString;
|
|
1749
|
+
updatedAt: z.ZodString;
|
|
1750
|
+
}, z.core.$strip>>>;
|
|
1751
|
+
}, z.core.$strip>>>;
|
|
1752
|
+
createdAt: z.ZodString;
|
|
1753
|
+
updatedAt: z.ZodString;
|
|
1754
|
+
}, z.core.$strip>>;
|
|
1755
|
+
pagination: z.ZodObject<{
|
|
1756
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1757
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1758
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1759
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1760
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1761
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1762
|
+
}, z.core.$strip>;
|
|
1763
|
+
}, z.core.$strip>;
|
|
1764
|
+
readonly querySchema: z.ZodObject<{
|
|
1765
|
+
suspended: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
1766
|
+
'order[sorting]': z.ZodOptional<z.ZodEnum<{
|
|
1767
|
+
asc: "asc";
|
|
1768
|
+
desc: "desc";
|
|
1769
|
+
}>>;
|
|
1770
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1771
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
1772
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1773
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
1774
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1775
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
1776
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1777
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
1778
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1779
|
+
}, z.core.$strip>;
|
|
1780
|
+
readonly headersSchema: undefined;
|
|
1781
|
+
private readonly pointOfSaleId;
|
|
1782
|
+
constructor(pointOfSaleId: string, options?: {
|
|
1783
|
+
query?: GetMenuItemCategoriesFromPointOfSaleQueryParams;
|
|
1784
|
+
});
|
|
1785
|
+
getPath(): string;
|
|
1786
|
+
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuItemCategory>;
|
|
1787
|
+
}
|
|
1788
|
+
|
|
1656
1789
|
declare const getMenuItemCategoryDetailsInputSchema: z.ZodUndefined;
|
|
1657
1790
|
type GetMenuItemCategoryDetailsInput = z.infer<typeof getMenuItemCategoryDetailsInputSchema>;
|
|
1658
1791
|
declare const getMenuItemCategoryDetailsResponseSchema: z.ZodObject<{
|
|
1659
1792
|
id: z.ZodString;
|
|
1660
|
-
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>>;
|
|
1661
1793
|
name: z.ZodArray<z.ZodObject<{
|
|
1662
1794
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
1663
1795
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -1688,6 +1820,7 @@ declare const getMenuItemCategoryDetailsResponseSchema: z.ZodObject<{
|
|
|
1688
1820
|
}, z.core.$strip>>>;
|
|
1689
1821
|
createdAt: z.ZodString;
|
|
1690
1822
|
updatedAt: z.ZodString;
|
|
1823
|
+
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>>;
|
|
1691
1824
|
items: z.ZodDefault<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>>>>;
|
|
1692
1825
|
}, z.core.$strip>;
|
|
1693
1826
|
type GetMenuItemCategoryDetailsResponse = z.infer<typeof getMenuItemCategoryDetailsResponseSchema>;
|
|
@@ -1698,7 +1831,6 @@ declare class GetMenuItemCategoryDetails extends AbstractApiRequest<typeof getMe
|
|
|
1698
1831
|
readonly inputSchema: z.ZodUndefined;
|
|
1699
1832
|
readonly outputSchema: z.ZodObject<{
|
|
1700
1833
|
id: z.ZodString;
|
|
1701
|
-
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>>;
|
|
1702
1834
|
name: z.ZodArray<z.ZodObject<{
|
|
1703
1835
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
1704
1836
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -1729,6 +1861,7 @@ declare class GetMenuItemCategoryDetails extends AbstractApiRequest<typeof getMe
|
|
|
1729
1861
|
}, z.core.$strip>>>;
|
|
1730
1862
|
createdAt: z.ZodString;
|
|
1731
1863
|
updatedAt: z.ZodString;
|
|
1864
|
+
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>>;
|
|
1732
1865
|
items: z.ZodDefault<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>>>>;
|
|
1733
1866
|
}, z.core.$strip>;
|
|
1734
1867
|
readonly querySchema: undefined;
|
|
@@ -1754,7 +1887,6 @@ declare const updateMenuItemCategoryInputSchema: z.ZodObject<{
|
|
|
1754
1887
|
type UpdateMenuItemCategoryInput = z.input<typeof updateMenuItemCategoryInputSchema>;
|
|
1755
1888
|
declare const updateMenuItemCategoryResponseSchema: z.ZodObject<{
|
|
1756
1889
|
id: z.ZodString;
|
|
1757
|
-
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>>;
|
|
1758
1890
|
name: z.ZodArray<z.ZodObject<{
|
|
1759
1891
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
1760
1892
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -1785,6 +1917,7 @@ declare const updateMenuItemCategoryResponseSchema: z.ZodObject<{
|
|
|
1785
1917
|
}, z.core.$strip>>>;
|
|
1786
1918
|
createdAt: z.ZodString;
|
|
1787
1919
|
updatedAt: z.ZodString;
|
|
1920
|
+
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>>;
|
|
1788
1921
|
items: z.ZodDefault<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>>>>;
|
|
1789
1922
|
}, z.core.$strip>;
|
|
1790
1923
|
type UpdateMenuItemCategoryResponse = z.infer<typeof updateMenuItemCategoryResponseSchema>;
|
|
@@ -1807,7 +1940,6 @@ declare class UpdateMenuItemCategory extends AbstractApiRequest<typeof updateMen
|
|
|
1807
1940
|
}, z.core.$strip>;
|
|
1808
1941
|
readonly outputSchema: z.ZodObject<{
|
|
1809
1942
|
id: z.ZodString;
|
|
1810
|
-
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>>;
|
|
1811
1943
|
name: z.ZodArray<z.ZodObject<{
|
|
1812
1944
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
1813
1945
|
text: z.ZodNonOptional<z.ZodString>;
|
|
@@ -1838,6 +1970,7 @@ declare class UpdateMenuItemCategory extends AbstractApiRequest<typeof updateMen
|
|
|
1838
1970
|
}, z.core.$strip>>>;
|
|
1839
1971
|
createdAt: z.ZodString;
|
|
1840
1972
|
updatedAt: z.ZodString;
|
|
1973
|
+
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>>;
|
|
1841
1974
|
items: z.ZodDefault<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>>>>;
|
|
1842
1975
|
}, z.core.$strip>;
|
|
1843
1976
|
readonly querySchema: undefined;
|
|
@@ -4996,4 +5129,4 @@ type MenuItemPriceOverrideSalesPriceIri = z.infer<typeof menuItemPriceOverrideSa
|
|
|
4996
5129
|
declare const menuItemPriceOverrideSalesPriceNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/sales_prices/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/menu_item_price_overrides/sales_prices/:id"> | null, unknown>>;
|
|
4997
5130
|
type MenuItemPriceOverrideSalesPriceNullableIri = z.infer<typeof menuItemPriceOverrideSalesPriceNullableIriSchema>;
|
|
4998
5131
|
|
|
4999
|
-
export { CreateMenuItem, CreateMenuItemCategory, type CreateMenuItemCategoryInput, type CreateMenuItemCategoryResponse, type CreateMenuItemInput, CreateMenuItemModifier, type CreateMenuItemModifierInput, type CreateMenuItemModifierResponse, CreateMenuItemPriceOverride, type CreateMenuItemPriceOverrideInput, type CreateMenuItemPriceOverrideResponse, type CreateMenuItemResponse, DeleteMenuItem, DeleteMenuItemCategory, DeleteMenuItemModifier, DeleteMenuItemPriceOverride, GetMenuItemCategories, type GetMenuItemCategoriesInput, type GetMenuItemCategoriesQueryParams, type GetMenuItemCategoriesResponse, GetMenuItemCategoryDetails, type GetMenuItemCategoryDetailsInput, type GetMenuItemCategoryDetailsResponse, GetMenuItemDetails, type GetMenuItemDetailsInput, type GetMenuItemDetailsResponse, GetMenuItemModifierDetails, type GetMenuItemModifierDetailsInput, type GetMenuItemModifierDetailsResponse, GetMenuItemModifiers, type GetMenuItemModifiersInput, type GetMenuItemModifiersQueryParams, type GetMenuItemModifiersResponse, GetMenuItemPriceOverrideDetails, type GetMenuItemPriceOverrideDetailsInput, type GetMenuItemPriceOverrideDetailsResponse, GetMenuItemPriceOverrides, type GetMenuItemPriceOverridesInput, type GetMenuItemPriceOverridesQueryParams, type GetMenuItemPriceOverridesResponse, GetMenuItems, type GetMenuItemsInput, type GetMenuItemsQueryParams, type GetMenuItemsResponse, GetMenuVersionDetails, type GetMenuVersionDetailsInput, type GetMenuVersionDetailsResponse, GetMenuVersions, type GetMenuVersionsInput, type GetMenuVersionsQueryParams, type GetMenuVersionsResponse, type MenuCategoryDto, type MenuDto, type MenuItem, type MenuItemCategoriesQueryParams, type MenuItemCategory, type MenuItemCategoryDetails, type MenuItemCategoryIri, type MenuItemCategoryNullableIri, type MenuItemDetails, type MenuItemDto, type MenuItemIri, type MenuItemModifier, type MenuItemModifierDetails, type MenuItemModifierIri, type MenuItemModifierNullableIri, type MenuItemModifiersQueryParams, type MenuItemNullableIri, type MenuItemPriceOverride, type MenuItemPriceOverrideDetails, type MenuItemPriceOverrideIri, type MenuItemPriceOverrideNullableIri, type MenuItemPriceOverrideSalesPriceIri, type MenuItemPriceOverrideSalesPriceNullableIri, type MenuItemPriceOverridesQueryParams, type MenuItemSalesPriceIri, type MenuItemSalesPriceNullableIri, type MenuItemsQueryParams, type MenuModifierDto, type MenuPriceDto, type MenuPriceOverrideDto, type MenuVersion, UpdateMenuItem, UpdateMenuItemCategory, type UpdateMenuItemCategoryInput, type UpdateMenuItemCategoryResponse, type UpdateMenuItemInput, UpdateMenuItemModifier, type UpdateMenuItemModifierInput, type UpdateMenuItemModifierResponse, UpdateMenuItemPriceOverride, type UpdateMenuItemPriceOverrideInput, type UpdateMenuItemPriceOverrideResponse, type UpdateMenuItemResponse, type WritableMenuItemPriceOverride, createMenuItemCategoryInputSchema, createMenuItemCategoryResponseSchema, createMenuItemInputSchema, createMenuItemModifierInputSchema, createMenuItemModifierResponseSchema, createMenuItemPriceOverrideInputSchema, createMenuItemPriceOverrideResponseSchema, createMenuItemResponseSchema, deleteMenuItemCategoryInputSchema, deleteMenuItemCategoryResponseSchema, deleteMenuItemInputSchema, deleteMenuItemModifierInputSchema, deleteMenuItemModifierResponseSchema, deleteMenuItemPriceOverrideInputSchema, deleteMenuItemPriceOverrideResponseSchema, deleteMenuItemResponseSchema, getMenuItemCategoriesInputSchema, getMenuItemCategoriesQuerySchema, getMenuItemCategoriesResponseSchema, getMenuItemCategoryDetailsInputSchema, getMenuItemCategoryDetailsResponseSchema, getMenuItemDetailsInputSchema, getMenuItemDetailsResponseSchema, getMenuItemModifierDetailsInputSchema, getMenuItemModifierDetailsResponseSchema, getMenuItemModifiersInputSchema, getMenuItemModifiersQuerySchema, getMenuItemModifiersResponseSchema, getMenuItemPriceOverrideDetailsInputSchema, getMenuItemPriceOverrideDetailsResponseSchema, getMenuItemPriceOverridesInputSchema, getMenuItemPriceOverridesQuerySchema, getMenuItemPriceOverridesResponseSchema, getMenuItemsInputSchema, getMenuItemsQuerySchema, getMenuItemsResponseSchema, getMenuVersionDetailsInputSchema, getMenuVersionDetailsResponseSchema, getMenuVersionsInputSchema, getMenuVersionsQuerySchema, getMenuVersionsResponseSchema, localeItemSchema, menuCategoryDtoSchema, menuDtoSchema, menuItemBundleSchema, menuItemCategoriesQuerySchema, menuItemCategoryDetailsSchema, menuItemCategoryIriSchema, menuItemCategoryNullableIriSchema, menuItemCategorySchema, menuItemChoiceSchema, menuItemDetailsSchema, menuItemDtoSchema, menuItemIriSchema, menuItemItemSchema, menuItemModifierDetailsSchema, menuItemModifierIriSchema, menuItemModifierNullableIriSchema, menuItemModifierSchema, menuItemModifiersQuerySchema, menuItemNullableIriSchema, menuItemPriceOverrideDetailsSchema, menuItemPriceOverrideIriSchema, menuItemPriceOverrideNullableIriSchema, menuItemPriceOverrideSalesPriceIriSchema, menuItemPriceOverrideSalesPriceNullableIriSchema, menuItemPriceOverrideSchema, menuItemPriceOverridesQuerySchema, menuItemSalesPriceIriSchema, menuItemSalesPriceNullableIriSchema, menuItemSchema, menuItemsQuerySchema, menuModifierDtoSchema, menuPriceDtoSchema, menuPriceOverrideDtoSchema, menuVersionSchema, salesPriceDTOSchema, updateMenuItemCategoryInputSchema, updateMenuItemCategoryResponseSchema, updateMenuItemInputSchema, updateMenuItemModifierInputSchema, updateMenuItemModifierResponseSchema, updateMenuItemPriceOverrideInputSchema, updateMenuItemPriceOverrideResponseSchema, updateMenuItemResponseSchema, writableMenuItemCategorySchema, writableMenuItemModifierSchema, writableMenuItemPriceOverridePartialSchema, writableMenuItemPriceOverrideSchema, writableMenuItemSchema };
|
|
5132
|
+
export { CreateMenuItem, CreateMenuItemCategory, type CreateMenuItemCategoryInput, type CreateMenuItemCategoryResponse, type CreateMenuItemInput, CreateMenuItemModifier, type CreateMenuItemModifierInput, type CreateMenuItemModifierResponse, CreateMenuItemPriceOverride, type CreateMenuItemPriceOverrideInput, type CreateMenuItemPriceOverrideResponse, type CreateMenuItemResponse, DeleteMenuItem, DeleteMenuItemCategory, DeleteMenuItemModifier, DeleteMenuItemPriceOverride, GetMenuItemCategories, GetMenuItemCategoriesFromPointOfSale, type GetMenuItemCategoriesFromPointOfSaleInput, type GetMenuItemCategoriesFromPointOfSaleQueryParams, type GetMenuItemCategoriesFromPointOfSaleResponse, type GetMenuItemCategoriesInput, type GetMenuItemCategoriesQueryParams, type GetMenuItemCategoriesResponse, GetMenuItemCategoryDetails, type GetMenuItemCategoryDetailsInput, type GetMenuItemCategoryDetailsResponse, GetMenuItemDetails, type GetMenuItemDetailsInput, type GetMenuItemDetailsResponse, GetMenuItemModifierDetails, type GetMenuItemModifierDetailsInput, type GetMenuItemModifierDetailsResponse, GetMenuItemModifiers, type GetMenuItemModifiersInput, type GetMenuItemModifiersQueryParams, type GetMenuItemModifiersResponse, GetMenuItemPriceOverrideDetails, type GetMenuItemPriceOverrideDetailsInput, type GetMenuItemPriceOverrideDetailsResponse, GetMenuItemPriceOverrides, type GetMenuItemPriceOverridesInput, type GetMenuItemPriceOverridesQueryParams, type GetMenuItemPriceOverridesResponse, GetMenuItems, type GetMenuItemsInput, type GetMenuItemsQueryParams, type GetMenuItemsResponse, GetMenuVersionDetails, type GetMenuVersionDetailsInput, type GetMenuVersionDetailsResponse, GetMenuVersions, type GetMenuVersionsInput, type GetMenuVersionsQueryParams, type GetMenuVersionsResponse, type MenuCategoryDto, type MenuDto, type MenuItem, type MenuItemCategoriesQueryParams, type MenuItemCategory, type MenuItemCategoryDetails, type MenuItemCategoryIri, type MenuItemCategoryNullableIri, type MenuItemDetails, type MenuItemDto, type MenuItemIri, type MenuItemModifier, type MenuItemModifierDetails, type MenuItemModifierIri, type MenuItemModifierNullableIri, type MenuItemModifiersQueryParams, type MenuItemNullableIri, type MenuItemPriceOverride, type MenuItemPriceOverrideDetails, type MenuItemPriceOverrideIri, type MenuItemPriceOverrideNullableIri, type MenuItemPriceOverrideSalesPriceIri, type MenuItemPriceOverrideSalesPriceNullableIri, type MenuItemPriceOverridesQueryParams, type MenuItemSalesPriceIri, type MenuItemSalesPriceNullableIri, type MenuItemsQueryParams, type MenuModifierDto, type MenuPriceDto, type MenuPriceOverrideDto, type MenuVersion, UpdateMenuItem, UpdateMenuItemCategory, type UpdateMenuItemCategoryInput, type UpdateMenuItemCategoryResponse, type UpdateMenuItemInput, UpdateMenuItemModifier, type UpdateMenuItemModifierInput, type UpdateMenuItemModifierResponse, UpdateMenuItemPriceOverride, type UpdateMenuItemPriceOverrideInput, type UpdateMenuItemPriceOverrideResponse, type UpdateMenuItemResponse, type WritableMenuItemPriceOverride, createMenuItemCategoryInputSchema, createMenuItemCategoryResponseSchema, createMenuItemInputSchema, createMenuItemModifierInputSchema, createMenuItemModifierResponseSchema, createMenuItemPriceOverrideInputSchema, createMenuItemPriceOverrideResponseSchema, createMenuItemResponseSchema, deleteMenuItemCategoryInputSchema, deleteMenuItemCategoryResponseSchema, deleteMenuItemInputSchema, deleteMenuItemModifierInputSchema, deleteMenuItemModifierResponseSchema, deleteMenuItemPriceOverrideInputSchema, deleteMenuItemPriceOverrideResponseSchema, deleteMenuItemResponseSchema, getMenuItemCategoriesFromPointOfSaleInputSchema, getMenuItemCategoriesFromPointOfSaleQuerySchema, getMenuItemCategoriesFromPointOfSaleResponseSchema, getMenuItemCategoriesInputSchema, getMenuItemCategoriesQuerySchema, getMenuItemCategoriesResponseSchema, getMenuItemCategoryDetailsInputSchema, getMenuItemCategoryDetailsResponseSchema, getMenuItemDetailsInputSchema, getMenuItemDetailsResponseSchema, getMenuItemModifierDetailsInputSchema, getMenuItemModifierDetailsResponseSchema, getMenuItemModifiersInputSchema, getMenuItemModifiersQuerySchema, getMenuItemModifiersResponseSchema, getMenuItemPriceOverrideDetailsInputSchema, getMenuItemPriceOverrideDetailsResponseSchema, getMenuItemPriceOverridesInputSchema, getMenuItemPriceOverridesQuerySchema, getMenuItemPriceOverridesResponseSchema, getMenuItemsInputSchema, getMenuItemsQuerySchema, getMenuItemsResponseSchema, getMenuVersionDetailsInputSchema, getMenuVersionDetailsResponseSchema, getMenuVersionsInputSchema, getMenuVersionsQuerySchema, getMenuVersionsResponseSchema, localeItemSchema, menuCategoryDtoSchema, menuDtoSchema, menuItemBundleSchema, menuItemCategoriesQuerySchema, menuItemCategoryDetailsSchema, menuItemCategoryIriSchema, menuItemCategoryNullableIriSchema, menuItemCategorySchema, menuItemChoiceSchema, menuItemDetailsSchema, menuItemDtoSchema, menuItemIriSchema, menuItemItemSchema, menuItemModifierDetailsSchema, menuItemModifierIriSchema, menuItemModifierNullableIriSchema, menuItemModifierSchema, menuItemModifiersQuerySchema, menuItemNullableIriSchema, menuItemPriceOverrideDetailsSchema, menuItemPriceOverrideIriSchema, menuItemPriceOverrideNullableIriSchema, menuItemPriceOverrideSalesPriceIriSchema, menuItemPriceOverrideSalesPriceNullableIriSchema, menuItemPriceOverrideSchema, menuItemPriceOverridesQuerySchema, menuItemSalesPriceIriSchema, menuItemSalesPriceNullableIriSchema, menuItemSchema, menuItemsQuerySchema, menuModifierDtoSchema, menuPriceDtoSchema, menuPriceOverrideDtoSchema, menuVersionSchema, salesPriceDTOSchema, updateMenuItemCategoryInputSchema, updateMenuItemCategoryResponseSchema, updateMenuItemInputSchema, updateMenuItemModifierInputSchema, updateMenuItemModifierResponseSchema, updateMenuItemPriceOverrideInputSchema, updateMenuItemPriceOverrideResponseSchema, updateMenuItemResponseSchema, writableMenuItemCategorySchema, writableMenuItemModifierSchema, writableMenuItemPriceOverridePartialSchema, writableMenuItemPriceOverrideSchema, writableMenuItemSchema };
|