@deliverart/sdk-js-menu 2.2.0 → 2.2.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 +4 -4
- package/dist/index.d.cts +68 -68
- package/dist/index.d.ts +68 -68
- package/dist/index.js +4 -4
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -11623,9 +11623,9 @@ var menuModifierDtoSchema = external_exports.object({
|
|
|
11623
11623
|
id: external_exports.uuid(),
|
|
11624
11624
|
name: external_exports.array(localeItemSchema).nonempty(),
|
|
11625
11625
|
description: external_exports.array(localeItemSchema),
|
|
11626
|
-
sorting: external_exports.number().int(),
|
|
11627
|
-
minSelection: external_exports.number().int(),
|
|
11628
|
-
maxSelection: external_exports.number().int().nullable(),
|
|
11626
|
+
sorting: external_exports.coerce.number().int(),
|
|
11627
|
+
minSelection: external_exports.coerce.number().int(),
|
|
11628
|
+
maxSelection: external_exports.coerce.number().int().nullable(),
|
|
11629
11629
|
repeatable: external_exports.boolean(),
|
|
11630
11630
|
choices: external_exports.array(external_exports.uuid()),
|
|
11631
11631
|
priceOverrides: external_exports.array(menuPriceOverrideDtoSchema),
|
|
@@ -12116,7 +12116,7 @@ var GetMenuVersionDetails = class extends import_sdk_js_core21.AbstractApiReques
|
|
|
12116
12116
|
var import_sdk_js_core22 = require("@deliverart/sdk-js-core");
|
|
12117
12117
|
var import_sdk_js_global_types7 = require("@deliverart/sdk-js-global-types");
|
|
12118
12118
|
var getMenuVersionsQuerySchema = external_exports.object({
|
|
12119
|
-
page: external_exports.number().optional()
|
|
12119
|
+
page: external_exports.coerce.number().optional()
|
|
12120
12120
|
});
|
|
12121
12121
|
var getMenuVersionsInputSchema = external_exports.undefined();
|
|
12122
12122
|
var getMenuVersionsResponseSchema = (0, import_sdk_js_global_types7.createPaginatedSchema)(menuVersionSchema);
|
package/dist/index.d.cts
CHANGED
|
@@ -1210,9 +1210,9 @@ declare const menuModifierDtoSchema: z.ZodObject<{
|
|
|
1210
1210
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
1211
1211
|
text: z.ZodNonOptional<z.ZodString>;
|
|
1212
1212
|
}, z.core.$strip>>;
|
|
1213
|
-
sorting: z.
|
|
1214
|
-
minSelection: z.
|
|
1215
|
-
maxSelection: z.ZodNullable<z.
|
|
1213
|
+
sorting: z.ZodCoercedNumber<unknown>;
|
|
1214
|
+
minSelection: z.ZodCoercedNumber<unknown>;
|
|
1215
|
+
maxSelection: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1216
1216
|
repeatable: z.ZodBoolean;
|
|
1217
1217
|
choices: z.ZodArray<z.ZodUUID>;
|
|
1218
1218
|
priceOverrides: z.ZodArray<z.ZodObject<{
|
|
@@ -1331,9 +1331,9 @@ declare const menuDtoSchema: z.ZodObject<{
|
|
|
1331
1331
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
1332
1332
|
text: z.ZodNonOptional<z.ZodString>;
|
|
1333
1333
|
}, z.core.$strip>>;
|
|
1334
|
-
sorting: z.
|
|
1335
|
-
minSelection: z.
|
|
1336
|
-
maxSelection: z.ZodNullable<z.
|
|
1334
|
+
sorting: z.ZodCoercedNumber<unknown>;
|
|
1335
|
+
minSelection: z.ZodCoercedNumber<unknown>;
|
|
1336
|
+
maxSelection: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1337
1337
|
repeatable: z.ZodBoolean;
|
|
1338
1338
|
choices: z.ZodArray<z.ZodUUID>;
|
|
1339
1339
|
priceOverrides: z.ZodArray<z.ZodObject<{
|
|
@@ -1542,12 +1542,12 @@ declare const getMenuItemCategoriesResponseSchema: z.ZodObject<{
|
|
|
1542
1542
|
updatedAt: z.ZodString;
|
|
1543
1543
|
}, z.core.$strip>>;
|
|
1544
1544
|
pagination: z.ZodObject<{
|
|
1545
|
-
from: z.
|
|
1546
|
-
to: z.
|
|
1547
|
-
itemsPerPage: z.
|
|
1548
|
-
totalItems: z.
|
|
1549
|
-
currentPage: z.
|
|
1550
|
-
lastPage: z.
|
|
1545
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1546
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1547
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1548
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1549
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1550
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1551
1551
|
}, z.core.$strip>;
|
|
1552
1552
|
}, z.core.$strip>;
|
|
1553
1553
|
type GetMenuItemCategoriesResponse = z.infer<typeof getMenuItemCategoriesResponseSchema>;
|
|
@@ -1590,12 +1590,12 @@ declare class GetMenuItemCategories extends AbstractApiRequest<typeof getMenuIte
|
|
|
1590
1590
|
updatedAt: z.ZodString;
|
|
1591
1591
|
}, z.core.$strip>>;
|
|
1592
1592
|
pagination: z.ZodObject<{
|
|
1593
|
-
from: z.
|
|
1594
|
-
to: z.
|
|
1595
|
-
itemsPerPage: z.
|
|
1596
|
-
totalItems: z.
|
|
1597
|
-
currentPage: z.
|
|
1598
|
-
lastPage: z.
|
|
1593
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1594
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1595
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1596
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1597
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1598
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1599
1599
|
}, z.core.$strip>;
|
|
1600
1600
|
}, z.core.$strip>;
|
|
1601
1601
|
readonly querySchema: z.ZodObject<{
|
|
@@ -2025,12 +2025,12 @@ declare const getMenuItemModifiersResponseSchema: z.ZodObject<{
|
|
|
2025
2025
|
updatedAt: z.ZodString;
|
|
2026
2026
|
}, z.core.$strip>>;
|
|
2027
2027
|
pagination: z.ZodObject<{
|
|
2028
|
-
from: z.
|
|
2029
|
-
to: z.
|
|
2030
|
-
itemsPerPage: z.
|
|
2031
|
-
totalItems: z.
|
|
2032
|
-
currentPage: z.
|
|
2033
|
-
lastPage: z.
|
|
2028
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
2029
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
2030
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
2031
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
2032
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
2033
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
2034
2034
|
}, z.core.$strip>;
|
|
2035
2035
|
}, z.core.$strip>;
|
|
2036
2036
|
type GetMenuItemModifiersResponse = z.infer<typeof getMenuItemModifiersResponseSchema>;
|
|
@@ -2063,12 +2063,12 @@ declare class GetMenuItemModifiers extends AbstractApiRequest<typeof getMenuItem
|
|
|
2063
2063
|
updatedAt: z.ZodString;
|
|
2064
2064
|
}, z.core.$strip>>;
|
|
2065
2065
|
pagination: z.ZodObject<{
|
|
2066
|
-
from: z.
|
|
2067
|
-
to: z.
|
|
2068
|
-
itemsPerPage: z.
|
|
2069
|
-
totalItems: z.
|
|
2070
|
-
currentPage: z.
|
|
2071
|
-
lastPage: z.
|
|
2066
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
2067
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
2068
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
2069
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
2070
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
2071
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
2072
2072
|
}, z.core.$strip>;
|
|
2073
2073
|
}, z.core.$strip>;
|
|
2074
2074
|
readonly querySchema: z.ZodObject<{
|
|
@@ -2414,12 +2414,12 @@ declare const getMenuItemPriceOverridesResponseSchema: z.ZodObject<{
|
|
|
2414
2414
|
updatedAt: z.ZodString;
|
|
2415
2415
|
}, z.core.$strip>>>;
|
|
2416
2416
|
pagination: z.ZodObject<{
|
|
2417
|
-
from: z.
|
|
2418
|
-
to: z.
|
|
2419
|
-
itemsPerPage: z.
|
|
2420
|
-
totalItems: z.
|
|
2421
|
-
currentPage: z.
|
|
2422
|
-
lastPage: z.
|
|
2417
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
2418
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
2419
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
2420
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
2421
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
2422
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
2423
2423
|
}, z.core.$strip>;
|
|
2424
2424
|
}, z.core.$strip>;
|
|
2425
2425
|
type GetMenuItemPriceOverridesResponse = z.infer<typeof getMenuItemPriceOverridesResponseSchema>;
|
|
@@ -2451,12 +2451,12 @@ declare class GetMenuItemPriceOverrides extends AbstractApiRequest<typeof getMen
|
|
|
2451
2451
|
updatedAt: z.ZodString;
|
|
2452
2452
|
}, z.core.$strip>>>;
|
|
2453
2453
|
pagination: z.ZodObject<{
|
|
2454
|
-
from: z.
|
|
2455
|
-
to: z.
|
|
2456
|
-
itemsPerPage: z.
|
|
2457
|
-
totalItems: z.
|
|
2458
|
-
currentPage: z.
|
|
2459
|
-
lastPage: z.
|
|
2454
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
2455
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
2456
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
2457
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
2458
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
2459
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
2460
2460
|
}, z.core.$strip>;
|
|
2461
2461
|
}, z.core.$strip>;
|
|
2462
2462
|
readonly querySchema: z.ZodObject<{
|
|
@@ -3915,12 +3915,12 @@ declare const getMenuItemsResponseSchema: z.ZodObject<{
|
|
|
3915
3915
|
type: z.ZodLiteral<"BUNDLE">;
|
|
3916
3916
|
}, z.core.$strip>]>>;
|
|
3917
3917
|
pagination: z.ZodObject<{
|
|
3918
|
-
from: z.
|
|
3919
|
-
to: z.
|
|
3920
|
-
itemsPerPage: z.
|
|
3921
|
-
totalItems: z.
|
|
3922
|
-
currentPage: z.
|
|
3923
|
-
lastPage: z.
|
|
3918
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
3919
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
3920
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
3921
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
3922
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
3923
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
3924
3924
|
}, z.core.$strip>;
|
|
3925
3925
|
}, z.core.$strip>;
|
|
3926
3926
|
type GetMenuItemsResponse = z.infer<typeof getMenuItemsResponseSchema>;
|
|
@@ -4153,12 +4153,12 @@ declare class GetMenuItems extends AbstractApiRequest<typeof getMenuItemsInputSc
|
|
|
4153
4153
|
type: z.ZodLiteral<"BUNDLE">;
|
|
4154
4154
|
}, z.core.$strip>]>>;
|
|
4155
4155
|
pagination: z.ZodObject<{
|
|
4156
|
-
from: z.
|
|
4157
|
-
to: z.
|
|
4158
|
-
itemsPerPage: z.
|
|
4159
|
-
totalItems: z.
|
|
4160
|
-
currentPage: z.
|
|
4161
|
-
lastPage: z.
|
|
4156
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
4157
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
4158
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
4159
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
4160
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
4161
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
4162
4162
|
}, z.core.$strip>;
|
|
4163
4163
|
}, z.core.$strip>;
|
|
4164
4164
|
readonly querySchema: z.ZodObject<{
|
|
@@ -4825,7 +4825,7 @@ declare class GetMenuVersionDetails extends AbstractApiRequest<typeof getMenuVer
|
|
|
4825
4825
|
}
|
|
4826
4826
|
|
|
4827
4827
|
declare const getMenuVersionsQuerySchema: z.ZodObject<{
|
|
4828
|
-
page: z.ZodOptional<z.
|
|
4828
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
4829
4829
|
}, z.core.$strip>;
|
|
4830
4830
|
type GetMenuVersionsQueryParams = z.infer<typeof getMenuVersionsQuerySchema>;
|
|
4831
4831
|
declare const getMenuVersionsInputSchema: z.ZodUndefined;
|
|
@@ -4840,12 +4840,12 @@ declare const getMenuVersionsResponseSchema: z.ZodObject<{
|
|
|
4840
4840
|
updatedAt: z.ZodString;
|
|
4841
4841
|
}, z.core.$strip>>;
|
|
4842
4842
|
pagination: z.ZodObject<{
|
|
4843
|
-
from: z.
|
|
4844
|
-
to: z.
|
|
4845
|
-
itemsPerPage: z.
|
|
4846
|
-
totalItems: z.
|
|
4847
|
-
currentPage: z.
|
|
4848
|
-
lastPage: z.
|
|
4843
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
4844
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
4845
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
4846
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
4847
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
4848
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
4849
4849
|
}, z.core.$strip>;
|
|
4850
4850
|
}, z.core.$strip>;
|
|
4851
4851
|
type GetMenuVersionsResponse = z.infer<typeof getMenuVersionsResponseSchema>;
|
|
@@ -4864,16 +4864,16 @@ declare class GetMenuVersions extends AbstractApiRequest<typeof getMenuVersionsI
|
|
|
4864
4864
|
updatedAt: z.ZodString;
|
|
4865
4865
|
}, z.core.$strip>>;
|
|
4866
4866
|
pagination: z.ZodObject<{
|
|
4867
|
-
from: z.
|
|
4868
|
-
to: z.
|
|
4869
|
-
itemsPerPage: z.
|
|
4870
|
-
totalItems: z.
|
|
4871
|
-
currentPage: z.
|
|
4872
|
-
lastPage: z.
|
|
4867
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
4868
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
4869
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
4870
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
4871
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
4872
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
4873
4873
|
}, z.core.$strip>;
|
|
4874
4874
|
}, z.core.$strip>;
|
|
4875
4875
|
readonly querySchema: z.ZodObject<{
|
|
4876
|
-
page: z.ZodOptional<z.
|
|
4876
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
4877
4877
|
}, z.core.$strip>;
|
|
4878
4878
|
readonly headersSchema: undefined;
|
|
4879
4879
|
private readonly pointOfSaleId;
|
package/dist/index.d.ts
CHANGED
|
@@ -1210,9 +1210,9 @@ declare const menuModifierDtoSchema: z.ZodObject<{
|
|
|
1210
1210
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
1211
1211
|
text: z.ZodNonOptional<z.ZodString>;
|
|
1212
1212
|
}, z.core.$strip>>;
|
|
1213
|
-
sorting: z.
|
|
1214
|
-
minSelection: z.
|
|
1215
|
-
maxSelection: z.ZodNullable<z.
|
|
1213
|
+
sorting: z.ZodCoercedNumber<unknown>;
|
|
1214
|
+
minSelection: z.ZodCoercedNumber<unknown>;
|
|
1215
|
+
maxSelection: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1216
1216
|
repeatable: z.ZodBoolean;
|
|
1217
1217
|
choices: z.ZodArray<z.ZodUUID>;
|
|
1218
1218
|
priceOverrides: z.ZodArray<z.ZodObject<{
|
|
@@ -1331,9 +1331,9 @@ declare const menuDtoSchema: z.ZodObject<{
|
|
|
1331
1331
|
locale: z.ZodNonOptional<z.ZodString>;
|
|
1332
1332
|
text: z.ZodNonOptional<z.ZodString>;
|
|
1333
1333
|
}, z.core.$strip>>;
|
|
1334
|
-
sorting: z.
|
|
1335
|
-
minSelection: z.
|
|
1336
|
-
maxSelection: z.ZodNullable<z.
|
|
1334
|
+
sorting: z.ZodCoercedNumber<unknown>;
|
|
1335
|
+
minSelection: z.ZodCoercedNumber<unknown>;
|
|
1336
|
+
maxSelection: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1337
1337
|
repeatable: z.ZodBoolean;
|
|
1338
1338
|
choices: z.ZodArray<z.ZodUUID>;
|
|
1339
1339
|
priceOverrides: z.ZodArray<z.ZodObject<{
|
|
@@ -1542,12 +1542,12 @@ declare const getMenuItemCategoriesResponseSchema: z.ZodObject<{
|
|
|
1542
1542
|
updatedAt: z.ZodString;
|
|
1543
1543
|
}, z.core.$strip>>;
|
|
1544
1544
|
pagination: z.ZodObject<{
|
|
1545
|
-
from: z.
|
|
1546
|
-
to: z.
|
|
1547
|
-
itemsPerPage: z.
|
|
1548
|
-
totalItems: z.
|
|
1549
|
-
currentPage: z.
|
|
1550
|
-
lastPage: z.
|
|
1545
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1546
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1547
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1548
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1549
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1550
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1551
1551
|
}, z.core.$strip>;
|
|
1552
1552
|
}, z.core.$strip>;
|
|
1553
1553
|
type GetMenuItemCategoriesResponse = z.infer<typeof getMenuItemCategoriesResponseSchema>;
|
|
@@ -1590,12 +1590,12 @@ declare class GetMenuItemCategories extends AbstractApiRequest<typeof getMenuIte
|
|
|
1590
1590
|
updatedAt: z.ZodString;
|
|
1591
1591
|
}, z.core.$strip>>;
|
|
1592
1592
|
pagination: z.ZodObject<{
|
|
1593
|
-
from: z.
|
|
1594
|
-
to: z.
|
|
1595
|
-
itemsPerPage: z.
|
|
1596
|
-
totalItems: z.
|
|
1597
|
-
currentPage: z.
|
|
1598
|
-
lastPage: z.
|
|
1593
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1594
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1595
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1596
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1597
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1598
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1599
1599
|
}, z.core.$strip>;
|
|
1600
1600
|
}, z.core.$strip>;
|
|
1601
1601
|
readonly querySchema: z.ZodObject<{
|
|
@@ -2025,12 +2025,12 @@ declare const getMenuItemModifiersResponseSchema: z.ZodObject<{
|
|
|
2025
2025
|
updatedAt: z.ZodString;
|
|
2026
2026
|
}, z.core.$strip>>;
|
|
2027
2027
|
pagination: z.ZodObject<{
|
|
2028
|
-
from: z.
|
|
2029
|
-
to: z.
|
|
2030
|
-
itemsPerPage: z.
|
|
2031
|
-
totalItems: z.
|
|
2032
|
-
currentPage: z.
|
|
2033
|
-
lastPage: z.
|
|
2028
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
2029
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
2030
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
2031
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
2032
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
2033
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
2034
2034
|
}, z.core.$strip>;
|
|
2035
2035
|
}, z.core.$strip>;
|
|
2036
2036
|
type GetMenuItemModifiersResponse = z.infer<typeof getMenuItemModifiersResponseSchema>;
|
|
@@ -2063,12 +2063,12 @@ declare class GetMenuItemModifiers extends AbstractApiRequest<typeof getMenuItem
|
|
|
2063
2063
|
updatedAt: z.ZodString;
|
|
2064
2064
|
}, z.core.$strip>>;
|
|
2065
2065
|
pagination: z.ZodObject<{
|
|
2066
|
-
from: z.
|
|
2067
|
-
to: z.
|
|
2068
|
-
itemsPerPage: z.
|
|
2069
|
-
totalItems: z.
|
|
2070
|
-
currentPage: z.
|
|
2071
|
-
lastPage: z.
|
|
2066
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
2067
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
2068
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
2069
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
2070
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
2071
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
2072
2072
|
}, z.core.$strip>;
|
|
2073
2073
|
}, z.core.$strip>;
|
|
2074
2074
|
readonly querySchema: z.ZodObject<{
|
|
@@ -2414,12 +2414,12 @@ declare const getMenuItemPriceOverridesResponseSchema: z.ZodObject<{
|
|
|
2414
2414
|
updatedAt: z.ZodString;
|
|
2415
2415
|
}, z.core.$strip>>>;
|
|
2416
2416
|
pagination: z.ZodObject<{
|
|
2417
|
-
from: z.
|
|
2418
|
-
to: z.
|
|
2419
|
-
itemsPerPage: z.
|
|
2420
|
-
totalItems: z.
|
|
2421
|
-
currentPage: z.
|
|
2422
|
-
lastPage: z.
|
|
2417
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
2418
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
2419
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
2420
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
2421
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
2422
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
2423
2423
|
}, z.core.$strip>;
|
|
2424
2424
|
}, z.core.$strip>;
|
|
2425
2425
|
type GetMenuItemPriceOverridesResponse = z.infer<typeof getMenuItemPriceOverridesResponseSchema>;
|
|
@@ -2451,12 +2451,12 @@ declare class GetMenuItemPriceOverrides extends AbstractApiRequest<typeof getMen
|
|
|
2451
2451
|
updatedAt: z.ZodString;
|
|
2452
2452
|
}, z.core.$strip>>>;
|
|
2453
2453
|
pagination: z.ZodObject<{
|
|
2454
|
-
from: z.
|
|
2455
|
-
to: z.
|
|
2456
|
-
itemsPerPage: z.
|
|
2457
|
-
totalItems: z.
|
|
2458
|
-
currentPage: z.
|
|
2459
|
-
lastPage: z.
|
|
2454
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
2455
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
2456
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
2457
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
2458
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
2459
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
2460
2460
|
}, z.core.$strip>;
|
|
2461
2461
|
}, z.core.$strip>;
|
|
2462
2462
|
readonly querySchema: z.ZodObject<{
|
|
@@ -3915,12 +3915,12 @@ declare const getMenuItemsResponseSchema: z.ZodObject<{
|
|
|
3915
3915
|
type: z.ZodLiteral<"BUNDLE">;
|
|
3916
3916
|
}, z.core.$strip>]>>;
|
|
3917
3917
|
pagination: z.ZodObject<{
|
|
3918
|
-
from: z.
|
|
3919
|
-
to: z.
|
|
3920
|
-
itemsPerPage: z.
|
|
3921
|
-
totalItems: z.
|
|
3922
|
-
currentPage: z.
|
|
3923
|
-
lastPage: z.
|
|
3918
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
3919
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
3920
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
3921
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
3922
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
3923
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
3924
3924
|
}, z.core.$strip>;
|
|
3925
3925
|
}, z.core.$strip>;
|
|
3926
3926
|
type GetMenuItemsResponse = z.infer<typeof getMenuItemsResponseSchema>;
|
|
@@ -4153,12 +4153,12 @@ declare class GetMenuItems extends AbstractApiRequest<typeof getMenuItemsInputSc
|
|
|
4153
4153
|
type: z.ZodLiteral<"BUNDLE">;
|
|
4154
4154
|
}, z.core.$strip>]>>;
|
|
4155
4155
|
pagination: z.ZodObject<{
|
|
4156
|
-
from: z.
|
|
4157
|
-
to: z.
|
|
4158
|
-
itemsPerPage: z.
|
|
4159
|
-
totalItems: z.
|
|
4160
|
-
currentPage: z.
|
|
4161
|
-
lastPage: z.
|
|
4156
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
4157
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
4158
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
4159
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
4160
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
4161
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
4162
4162
|
}, z.core.$strip>;
|
|
4163
4163
|
}, z.core.$strip>;
|
|
4164
4164
|
readonly querySchema: z.ZodObject<{
|
|
@@ -4825,7 +4825,7 @@ declare class GetMenuVersionDetails extends AbstractApiRequest<typeof getMenuVer
|
|
|
4825
4825
|
}
|
|
4826
4826
|
|
|
4827
4827
|
declare const getMenuVersionsQuerySchema: z.ZodObject<{
|
|
4828
|
-
page: z.ZodOptional<z.
|
|
4828
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
4829
4829
|
}, z.core.$strip>;
|
|
4830
4830
|
type GetMenuVersionsQueryParams = z.infer<typeof getMenuVersionsQuerySchema>;
|
|
4831
4831
|
declare const getMenuVersionsInputSchema: z.ZodUndefined;
|
|
@@ -4840,12 +4840,12 @@ declare const getMenuVersionsResponseSchema: z.ZodObject<{
|
|
|
4840
4840
|
updatedAt: z.ZodString;
|
|
4841
4841
|
}, z.core.$strip>>;
|
|
4842
4842
|
pagination: z.ZodObject<{
|
|
4843
|
-
from: z.
|
|
4844
|
-
to: z.
|
|
4845
|
-
itemsPerPage: z.
|
|
4846
|
-
totalItems: z.
|
|
4847
|
-
currentPage: z.
|
|
4848
|
-
lastPage: z.
|
|
4843
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
4844
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
4845
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
4846
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
4847
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
4848
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
4849
4849
|
}, z.core.$strip>;
|
|
4850
4850
|
}, z.core.$strip>;
|
|
4851
4851
|
type GetMenuVersionsResponse = z.infer<typeof getMenuVersionsResponseSchema>;
|
|
@@ -4864,16 +4864,16 @@ declare class GetMenuVersions extends AbstractApiRequest<typeof getMenuVersionsI
|
|
|
4864
4864
|
updatedAt: z.ZodString;
|
|
4865
4865
|
}, z.core.$strip>>;
|
|
4866
4866
|
pagination: z.ZodObject<{
|
|
4867
|
-
from: z.
|
|
4868
|
-
to: z.
|
|
4869
|
-
itemsPerPage: z.
|
|
4870
|
-
totalItems: z.
|
|
4871
|
-
currentPage: z.
|
|
4872
|
-
lastPage: z.
|
|
4867
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
4868
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
4869
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
4870
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
4871
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
4872
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
4873
4873
|
}, z.core.$strip>;
|
|
4874
4874
|
}, z.core.$strip>;
|
|
4875
4875
|
readonly querySchema: z.ZodObject<{
|
|
4876
|
-
page: z.ZodOptional<z.
|
|
4876
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
4877
4877
|
}, z.core.$strip>;
|
|
4878
4878
|
readonly headersSchema: undefined;
|
|
4879
4879
|
private readonly pointOfSaleId;
|
package/dist/index.js
CHANGED
|
@@ -11486,9 +11486,9 @@ var menuModifierDtoSchema = external_exports.object({
|
|
|
11486
11486
|
id: external_exports.uuid(),
|
|
11487
11487
|
name: external_exports.array(localeItemSchema).nonempty(),
|
|
11488
11488
|
description: external_exports.array(localeItemSchema),
|
|
11489
|
-
sorting: external_exports.number().int(),
|
|
11490
|
-
minSelection: external_exports.number().int(),
|
|
11491
|
-
maxSelection: external_exports.number().int().nullable(),
|
|
11489
|
+
sorting: external_exports.coerce.number().int(),
|
|
11490
|
+
minSelection: external_exports.coerce.number().int(),
|
|
11491
|
+
maxSelection: external_exports.coerce.number().int().nullable(),
|
|
11492
11492
|
repeatable: external_exports.boolean(),
|
|
11493
11493
|
choices: external_exports.array(external_exports.uuid()),
|
|
11494
11494
|
priceOverrides: external_exports.array(menuPriceOverrideDtoSchema),
|
|
@@ -11994,7 +11994,7 @@ import {
|
|
|
11994
11994
|
responseToPagination as responseToPagination5
|
|
11995
11995
|
} from "@deliverart/sdk-js-global-types";
|
|
11996
11996
|
var getMenuVersionsQuerySchema = external_exports.object({
|
|
11997
|
-
page: external_exports.number().optional()
|
|
11997
|
+
page: external_exports.coerce.number().optional()
|
|
11998
11998
|
});
|
|
11999
11999
|
var getMenuVersionsInputSchema = external_exports.undefined();
|
|
12000
12000
|
var getMenuVersionsResponseSchema = createPaginatedSchema5(menuVersionSchema);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deliverart/sdk-js-menu",
|
|
3
3
|
"description": "Deliverart JavaScript SDK for Menu Management",
|
|
4
|
-
"version": "2.2.
|
|
4
|
+
"version": "2.2.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@deliverart/sdk-js-core": "2.2.
|
|
22
|
-
"@deliverart/sdk-js-
|
|
23
|
-
"@deliverart/sdk-js-
|
|
24
|
-
"@deliverart/sdk-js-
|
|
25
|
-
"@deliverart/sdk-js-
|
|
21
|
+
"@deliverart/sdk-js-core": "2.2.1",
|
|
22
|
+
"@deliverart/sdk-js-image": "2.2.1",
|
|
23
|
+
"@deliverart/sdk-js-point-of-sale": "2.2.1",
|
|
24
|
+
"@deliverart/sdk-js-sales-mode": "2.2.1",
|
|
25
|
+
"@deliverart/sdk-js-global-types": "2.2.1"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|